@halibegic/react-video-player 0.0.10 → 0.0.12
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/ui/player-controls.styles.d.ts +11 -7
- package/dist/components/player/ui/player-progress.styles.d.ts +4 -4
- package/dist/components/player/ui/player-remaining-time.styles.d.ts +9 -5
- package/dist/react-video-player.es.js +1866 -1967
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +57 -71
- package/dist/react-video-player.umd.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { create as
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
|
|
7
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
|
-
}
|
|
9
|
-
var Qe = { exports: {} }, qe = {};
|
|
1
|
+
import Re, { useLayoutEffect as vo, useEffect as te, useRef as Y, useState as X, createContext as Nn, useContext as Zt, useDebugValue as mn, createElement as wo, forwardRef as yt, useCallback as B } from "react";
|
|
2
|
+
import { create as $n, useStore as Hn } from "zustand";
|
|
3
|
+
import * as vt from "@radix-ui/react-slider";
|
|
4
|
+
import Ce from "hls.js";
|
|
5
|
+
import * as Qe from "@radix-ui/react-dropdown-menu";
|
|
6
|
+
var nt = { exports: {} }, Ge = {};
|
|
10
7
|
/**
|
|
11
8
|
* @license React
|
|
12
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -16,21 +13,21 @@ var Qe = { exports: {} }, qe = {};
|
|
|
16
13
|
* This source code is licensed under the MIT license found in the
|
|
17
14
|
* LICENSE file in the root directory of this source tree.
|
|
18
15
|
*/
|
|
19
|
-
var
|
|
20
|
-
function
|
|
21
|
-
if (
|
|
22
|
-
|
|
23
|
-
var e =
|
|
24
|
-
function l(
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
for (
|
|
28
|
-
if (
|
|
29
|
-
return { $$typeof:
|
|
16
|
+
var gn;
|
|
17
|
+
function bo() {
|
|
18
|
+
if (gn) return Ge;
|
|
19
|
+
gn = 1;
|
|
20
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function l(u, s, d) {
|
|
22
|
+
var p, g = {}, w = null, v = null;
|
|
23
|
+
d !== void 0 && (w = "" + d), s.key !== void 0 && (w = "" + s.key), s.ref !== void 0 && (v = s.ref);
|
|
24
|
+
for (p in s) r.call(s, p) && !a.hasOwnProperty(p) && (g[p] = s[p]);
|
|
25
|
+
if (u && u.defaultProps) for (p in s = u.defaultProps, s) g[p] === void 0 && (g[p] = s[p]);
|
|
26
|
+
return { $$typeof: t, type: u, key: w, ref: v, props: g, _owner: i.current };
|
|
30
27
|
}
|
|
31
|
-
return
|
|
28
|
+
return Ge.Fragment = n, Ge.jsx = l, Ge.jsxs = l, Ge;
|
|
32
29
|
}
|
|
33
|
-
var
|
|
30
|
+
var Xe = {};
|
|
34
31
|
/**
|
|
35
32
|
* @license React
|
|
36
33
|
* react-jsx-runtime.development.js
|
|
@@ -40,91 +37,91 @@ var Ze = {};
|
|
|
40
37
|
* This source code is licensed under the MIT license found in the
|
|
41
38
|
* LICENSE file in the root directory of this source tree.
|
|
42
39
|
*/
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
return
|
|
46
|
-
var e =
|
|
47
|
-
function
|
|
40
|
+
var yn;
|
|
41
|
+
function xo() {
|
|
42
|
+
return yn || (yn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
43
|
+
var e = Re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), E = Symbol.iterator, T = "@@iterator";
|
|
44
|
+
function M(o) {
|
|
48
45
|
if (o === null || typeof o != "object")
|
|
49
46
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
47
|
+
var f = E && o[E] || o[T];
|
|
48
|
+
return typeof f == "function" ? f : null;
|
|
52
49
|
}
|
|
53
|
-
var
|
|
54
|
-
function
|
|
50
|
+
var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function b(o) {
|
|
55
52
|
{
|
|
56
|
-
for (var
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
for (var f = arguments.length, y = new Array(f > 1 ? f - 1 : 0), S = 1; S < f; S++)
|
|
54
|
+
y[S - 1] = arguments[S];
|
|
55
|
+
h("error", o, y);
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
|
-
function
|
|
58
|
+
function h(o, f, y) {
|
|
62
59
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
60
|
+
var S = P.ReactDebugCurrentFrame, A = S.getStackAddendum();
|
|
61
|
+
A !== "" && (f += "%s", y = y.concat([A]));
|
|
62
|
+
var F = y.map(function(j) {
|
|
63
|
+
return String(j);
|
|
67
64
|
});
|
|
68
|
-
|
|
65
|
+
F.unshift("Warning: " + f), Function.prototype.apply.call(console[o], console, F);
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof o == "string" || typeof o == "function" || o ===
|
|
68
|
+
var L = !1, D = !1, C = !1, x = !1, W = !1, J;
|
|
69
|
+
J = Symbol.for("react.module.reference");
|
|
70
|
+
function I(o) {
|
|
71
|
+
return !!(typeof o == "string" || typeof o == "function" || o === r || o === a || W || o === i || o === d || o === p || x || o === v || L || D || C || typeof o == "object" && o !== null && (o.$$typeof === w || o.$$typeof === g || o.$$typeof === l || o.$$typeof === u || o.$$typeof === s || // This needs to include all possible module reference object
|
|
75
72
|
// types supported by any Flight configuration anywhere since
|
|
76
73
|
// we don't know which Flight build this will end up being used
|
|
77
74
|
// with.
|
|
78
|
-
o.$$typeof ===
|
|
75
|
+
o.$$typeof === J || o.getModuleId !== void 0));
|
|
79
76
|
}
|
|
80
|
-
function
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
77
|
+
function _e(o, f, y) {
|
|
78
|
+
var S = o.displayName;
|
|
79
|
+
if (S)
|
|
80
|
+
return S;
|
|
81
|
+
var A = f.displayName || f.name || "";
|
|
82
|
+
return A !== "" ? y + "(" + A + ")" : y;
|
|
86
83
|
}
|
|
87
|
-
function
|
|
84
|
+
function fe(o) {
|
|
88
85
|
return o.displayName || "Context";
|
|
89
86
|
}
|
|
90
|
-
function
|
|
87
|
+
function q(o) {
|
|
91
88
|
if (o == null)
|
|
92
89
|
return null;
|
|
93
|
-
if (typeof o.tag == "number" &&
|
|
90
|
+
if (typeof o.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
94
91
|
return o.displayName || o.name || null;
|
|
95
92
|
if (typeof o == "string")
|
|
96
93
|
return o;
|
|
97
94
|
switch (o) {
|
|
98
|
-
case
|
|
95
|
+
case r:
|
|
99
96
|
return "Fragment";
|
|
100
|
-
case
|
|
97
|
+
case n:
|
|
101
98
|
return "Portal";
|
|
102
|
-
case
|
|
99
|
+
case a:
|
|
103
100
|
return "Profiler";
|
|
104
101
|
case i:
|
|
105
102
|
return "StrictMode";
|
|
106
|
-
case
|
|
103
|
+
case d:
|
|
107
104
|
return "Suspense";
|
|
108
|
-
case
|
|
105
|
+
case p:
|
|
109
106
|
return "SuspenseList";
|
|
110
107
|
}
|
|
111
108
|
if (typeof o == "object")
|
|
112
109
|
switch (o.$$typeof) {
|
|
113
|
-
case d:
|
|
114
|
-
var m = o;
|
|
115
|
-
return re(m) + ".Consumer";
|
|
116
|
-
case l:
|
|
117
|
-
var C = o;
|
|
118
|
-
return re(C._context) + ".Provider";
|
|
119
110
|
case u:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
111
|
+
var f = o;
|
|
112
|
+
return fe(f) + ".Consumer";
|
|
113
|
+
case l:
|
|
114
|
+
var y = o;
|
|
115
|
+
return fe(y._context) + ".Provider";
|
|
116
|
+
case s:
|
|
117
|
+
return _e(o, o.render, "ForwardRef");
|
|
118
|
+
case g:
|
|
119
|
+
var S = o.displayName || null;
|
|
120
|
+
return S !== null ? S : q(o.type) || "Memo";
|
|
121
|
+
case w: {
|
|
122
|
+
var A = o, F = A._payload, j = A._init;
|
|
126
123
|
try {
|
|
127
|
-
return
|
|
124
|
+
return q(j(F));
|
|
128
125
|
} catch {
|
|
129
126
|
return null;
|
|
130
127
|
}
|
|
@@ -132,18 +129,18 @@ function bn() {
|
|
|
132
129
|
}
|
|
133
130
|
return null;
|
|
134
131
|
}
|
|
135
|
-
var ne = Object.assign,
|
|
136
|
-
function
|
|
132
|
+
var ne = Object.assign, ue = 0, xe, K, Ye, re, me, ge, Z;
|
|
133
|
+
function Ie() {
|
|
137
134
|
}
|
|
138
|
-
|
|
139
|
-
function
|
|
135
|
+
Ie.__reactDisabledLog = !0;
|
|
136
|
+
function qe() {
|
|
140
137
|
{
|
|
141
|
-
if (
|
|
142
|
-
|
|
138
|
+
if (ue === 0) {
|
|
139
|
+
xe = console.log, K = console.info, Ye = console.warn, re = console.error, me = console.group, ge = console.groupCollapsed, Z = console.groupEnd;
|
|
143
140
|
var o = {
|
|
144
141
|
configurable: !0,
|
|
145
142
|
enumerable: !0,
|
|
146
|
-
value:
|
|
143
|
+
value: Ie,
|
|
147
144
|
writable: !0
|
|
148
145
|
};
|
|
149
146
|
Object.defineProperties(console, {
|
|
@@ -156,12 +153,12 @@ function bn() {
|
|
|
156
153
|
groupEnd: o
|
|
157
154
|
});
|
|
158
155
|
}
|
|
159
|
-
|
|
156
|
+
ue++;
|
|
160
157
|
}
|
|
161
158
|
}
|
|
162
|
-
function
|
|
159
|
+
function De() {
|
|
163
160
|
{
|
|
164
|
-
if (
|
|
161
|
+
if (ue--, ue === 0) {
|
|
165
162
|
var o = {
|
|
166
163
|
configurable: !0,
|
|
167
164
|
enumerable: !0,
|
|
@@ -169,319 +166,319 @@ function bn() {
|
|
|
169
166
|
};
|
|
170
167
|
Object.defineProperties(console, {
|
|
171
168
|
log: ne({}, o, {
|
|
172
|
-
value:
|
|
169
|
+
value: xe
|
|
173
170
|
}),
|
|
174
171
|
info: ne({}, o, {
|
|
175
|
-
value:
|
|
172
|
+
value: K
|
|
176
173
|
}),
|
|
177
174
|
warn: ne({}, o, {
|
|
178
|
-
value:
|
|
175
|
+
value: Ye
|
|
179
176
|
}),
|
|
180
177
|
error: ne({}, o, {
|
|
181
|
-
value:
|
|
178
|
+
value: re
|
|
182
179
|
}),
|
|
183
180
|
group: ne({}, o, {
|
|
184
|
-
value:
|
|
181
|
+
value: me
|
|
185
182
|
}),
|
|
186
183
|
groupCollapsed: ne({}, o, {
|
|
187
|
-
value:
|
|
184
|
+
value: ge
|
|
188
185
|
}),
|
|
189
186
|
groupEnd: ne({}, o, {
|
|
190
|
-
value:
|
|
187
|
+
value: Z
|
|
191
188
|
})
|
|
192
189
|
});
|
|
193
190
|
}
|
|
194
|
-
|
|
191
|
+
ue < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
192
|
}
|
|
196
193
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
194
|
+
var pe = P.ReactCurrentDispatcher, ye;
|
|
195
|
+
function se(o, f, y) {
|
|
199
196
|
{
|
|
200
|
-
if (
|
|
197
|
+
if (ye === void 0)
|
|
201
198
|
try {
|
|
202
199
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
|
|
200
|
+
} catch (A) {
|
|
201
|
+
var S = A.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ye = S && S[1] || "";
|
|
206
203
|
}
|
|
207
204
|
return `
|
|
208
|
-
` +
|
|
205
|
+
` + ye + o;
|
|
209
206
|
}
|
|
210
207
|
}
|
|
211
|
-
var
|
|
208
|
+
var ae = !1, ve;
|
|
212
209
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
210
|
+
var Ae = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
ve = new Ae();
|
|
215
212
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!o ||
|
|
213
|
+
function ce(o, f) {
|
|
214
|
+
if (!o || ae)
|
|
218
215
|
return "";
|
|
219
216
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
217
|
+
var y = ve.get(o);
|
|
218
|
+
if (y !== void 0)
|
|
219
|
+
return y;
|
|
223
220
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
var
|
|
221
|
+
var S;
|
|
222
|
+
ae = !0;
|
|
223
|
+
var A = Error.prepareStackTrace;
|
|
227
224
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
225
|
+
var F;
|
|
226
|
+
F = pe.current, pe.current = null, qe();
|
|
230
227
|
try {
|
|
231
|
-
if (
|
|
232
|
-
var
|
|
228
|
+
if (f) {
|
|
229
|
+
var j = function() {
|
|
233
230
|
throw Error();
|
|
234
231
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(j.prototype, "props", {
|
|
236
233
|
set: function() {
|
|
237
234
|
throw Error();
|
|
238
235
|
}
|
|
239
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
237
|
try {
|
|
241
|
-
Reflect.construct(
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
238
|
+
Reflect.construct(j, []);
|
|
239
|
+
} catch (Q) {
|
|
240
|
+
S = Q;
|
|
244
241
|
}
|
|
245
|
-
Reflect.construct(o, [],
|
|
242
|
+
Reflect.construct(o, [], j);
|
|
246
243
|
} else {
|
|
247
244
|
try {
|
|
248
|
-
|
|
249
|
-
} catch (
|
|
250
|
-
|
|
245
|
+
j.call();
|
|
246
|
+
} catch (Q) {
|
|
247
|
+
S = Q;
|
|
251
248
|
}
|
|
252
|
-
o.call(
|
|
249
|
+
o.call(j.prototype);
|
|
253
250
|
}
|
|
254
251
|
} else {
|
|
255
252
|
try {
|
|
256
253
|
throw Error();
|
|
257
|
-
} catch (
|
|
258
|
-
|
|
254
|
+
} catch (Q) {
|
|
255
|
+
S = Q;
|
|
259
256
|
}
|
|
260
257
|
o();
|
|
261
258
|
}
|
|
262
|
-
} catch (
|
|
263
|
-
if (
|
|
264
|
-
for (var
|
|
265
|
-
`),
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
259
|
+
} catch (Q) {
|
|
260
|
+
if (Q && S && typeof Q.stack == "string") {
|
|
261
|
+
for (var R = Q.stack.split(`
|
|
262
|
+
`), G = S.stack.split(`
|
|
263
|
+
`), N = R.length - 1, $ = G.length - 1; N >= 1 && $ >= 0 && R[N] !== G[$]; )
|
|
264
|
+
$--;
|
|
265
|
+
for (; N >= 1 && $ >= 0; N--, $--)
|
|
266
|
+
if (R[N] !== G[$]) {
|
|
267
|
+
if (N !== 1 || $ !== 1)
|
|
271
268
|
do
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
274
|
-
` +
|
|
275
|
-
return o.displayName &&
|
|
269
|
+
if (N--, $--, $ < 0 || R[N] !== G[$]) {
|
|
270
|
+
var oe = `
|
|
271
|
+
` + R[N].replace(" at new ", " at ");
|
|
272
|
+
return o.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", o.displayName)), typeof o == "function" && ve.set(o, oe), oe;
|
|
276
273
|
}
|
|
277
|
-
while (
|
|
274
|
+
while (N >= 1 && $ >= 0);
|
|
278
275
|
break;
|
|
279
276
|
}
|
|
280
277
|
}
|
|
281
278
|
} finally {
|
|
282
|
-
|
|
279
|
+
ae = !1, pe.current = F, De(), Error.prepareStackTrace = A;
|
|
283
280
|
}
|
|
284
|
-
var
|
|
285
|
-
return typeof o == "function" &&
|
|
281
|
+
var Fe = o ? o.displayName || o.name : "", Se = Fe ? se(Fe) : "";
|
|
282
|
+
return typeof o == "function" && ve.set(o, Se), Se;
|
|
286
283
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
284
|
+
function qr(o, f, y) {
|
|
285
|
+
return ce(o, !1);
|
|
289
286
|
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
287
|
+
function Zr(o) {
|
|
288
|
+
var f = o.prototype;
|
|
289
|
+
return !!(f && f.isReactComponent);
|
|
293
290
|
}
|
|
294
|
-
function
|
|
291
|
+
function et(o, f, y) {
|
|
295
292
|
if (o == null)
|
|
296
293
|
return "";
|
|
297
294
|
if (typeof o == "function")
|
|
298
|
-
return
|
|
295
|
+
return ce(o, Zr(o));
|
|
299
296
|
if (typeof o == "string")
|
|
300
|
-
return
|
|
297
|
+
return se(o);
|
|
301
298
|
switch (o) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
299
|
+
case d:
|
|
300
|
+
return se("Suspense");
|
|
301
|
+
case p:
|
|
302
|
+
return se("SuspenseList");
|
|
306
303
|
}
|
|
307
304
|
if (typeof o == "object")
|
|
308
305
|
switch (o.$$typeof) {
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
var
|
|
306
|
+
case s:
|
|
307
|
+
return qr(o.render);
|
|
308
|
+
case g:
|
|
309
|
+
return et(o.type, f, y);
|
|
310
|
+
case w: {
|
|
311
|
+
var S = o, A = S._payload, F = S._init;
|
|
315
312
|
try {
|
|
316
|
-
return F(
|
|
313
|
+
return et(F(A), f, y);
|
|
317
314
|
} catch {
|
|
318
315
|
}
|
|
319
316
|
}
|
|
320
317
|
}
|
|
321
318
|
return "";
|
|
322
319
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
320
|
+
var Ze = Object.prototype.hasOwnProperty, en = {}, tn = P.ReactDebugCurrentFrame;
|
|
321
|
+
function tt(o) {
|
|
325
322
|
if (o) {
|
|
326
|
-
var
|
|
327
|
-
|
|
323
|
+
var f = o._owner, y = et(o.type, o._source, f ? f.type : null);
|
|
324
|
+
tn.setExtraStackFrame(y);
|
|
328
325
|
} else
|
|
329
|
-
|
|
326
|
+
tn.setExtraStackFrame(null);
|
|
330
327
|
}
|
|
331
|
-
function
|
|
328
|
+
function Gr(o, f, y, S, A) {
|
|
332
329
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
330
|
+
var F = Function.call.bind(Ze);
|
|
331
|
+
for (var j in o)
|
|
332
|
+
if (F(o, j)) {
|
|
333
|
+
var R = void 0;
|
|
337
334
|
try {
|
|
338
|
-
if (typeof o[
|
|
339
|
-
var
|
|
340
|
-
throw
|
|
335
|
+
if (typeof o[j] != "function") {
|
|
336
|
+
var G = Error((S || "React class") + ": " + y + " type `" + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[j] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw G.name = "Invariant Violation", G;
|
|
341
338
|
}
|
|
342
|
-
|
|
343
|
-
} catch (
|
|
344
|
-
|
|
339
|
+
R = o[j](f, j, S, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (N) {
|
|
341
|
+
R = N;
|
|
345
342
|
}
|
|
346
|
-
|
|
343
|
+
R && !(R instanceof Error) && (tt(A), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", y, j, typeof R), tt(null)), R instanceof Error && !(R.message in en) && (en[R.message] = !0, tt(A), b("Failed %s type: %s", y, R.message), tt(null));
|
|
347
344
|
}
|
|
348
345
|
}
|
|
349
346
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
352
|
-
return
|
|
347
|
+
var Xr = Array.isArray;
|
|
348
|
+
function Pt(o) {
|
|
349
|
+
return Xr(o);
|
|
353
350
|
}
|
|
354
|
-
function
|
|
351
|
+
function Jr(o) {
|
|
355
352
|
{
|
|
356
|
-
var
|
|
357
|
-
return
|
|
353
|
+
var f = typeof Symbol == "function" && Symbol.toStringTag, y = f && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
354
|
+
return y;
|
|
358
355
|
}
|
|
359
356
|
}
|
|
360
|
-
function
|
|
357
|
+
function Kr(o) {
|
|
361
358
|
try {
|
|
362
|
-
return
|
|
359
|
+
return nn(o), !1;
|
|
363
360
|
} catch {
|
|
364
361
|
return !0;
|
|
365
362
|
}
|
|
366
363
|
}
|
|
367
|
-
function
|
|
364
|
+
function nn(o) {
|
|
368
365
|
return "" + o;
|
|
369
366
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
367
|
+
function rn(o) {
|
|
368
|
+
if (Kr(o))
|
|
369
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jr(o)), nn(o);
|
|
373
370
|
}
|
|
374
|
-
var
|
|
371
|
+
var on = P.ReactCurrentOwner, Qr = {
|
|
375
372
|
key: !0,
|
|
376
373
|
ref: !0,
|
|
377
374
|
__self: !0,
|
|
378
375
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
function
|
|
381
|
-
if (
|
|
382
|
-
var
|
|
383
|
-
if (
|
|
376
|
+
}, sn, an;
|
|
377
|
+
function eo(o) {
|
|
378
|
+
if (Ze.call(o, "ref")) {
|
|
379
|
+
var f = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
380
|
+
if (f && f.isReactWarning)
|
|
384
381
|
return !1;
|
|
385
382
|
}
|
|
386
383
|
return o.ref !== void 0;
|
|
387
384
|
}
|
|
388
|
-
function
|
|
389
|
-
if (
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
385
|
+
function to(o) {
|
|
386
|
+
if (Ze.call(o, "key")) {
|
|
387
|
+
var f = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
388
|
+
if (f && f.isReactWarning)
|
|
392
389
|
return !1;
|
|
393
390
|
}
|
|
394
391
|
return o.key !== void 0;
|
|
395
392
|
}
|
|
396
|
-
function
|
|
397
|
-
typeof o.ref == "string" &&
|
|
393
|
+
function no(o, f) {
|
|
394
|
+
typeof o.ref == "string" && on.current;
|
|
398
395
|
}
|
|
399
|
-
function
|
|
396
|
+
function ro(o, f) {
|
|
400
397
|
{
|
|
401
|
-
var
|
|
402
|
-
|
|
398
|
+
var y = function() {
|
|
399
|
+
sn || (sn = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
403
400
|
};
|
|
404
|
-
|
|
405
|
-
get:
|
|
401
|
+
y.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
402
|
+
get: y,
|
|
406
403
|
configurable: !0
|
|
407
404
|
});
|
|
408
405
|
}
|
|
409
406
|
}
|
|
410
|
-
function
|
|
407
|
+
function oo(o, f) {
|
|
411
408
|
{
|
|
412
|
-
var
|
|
413
|
-
|
|
409
|
+
var y = function() {
|
|
410
|
+
an || (an = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
|
|
414
411
|
};
|
|
415
|
-
|
|
416
|
-
get:
|
|
412
|
+
y.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
413
|
+
get: y,
|
|
417
414
|
configurable: !0
|
|
418
415
|
});
|
|
419
416
|
}
|
|
420
417
|
}
|
|
421
|
-
var
|
|
422
|
-
var
|
|
418
|
+
var io = function(o, f, y, S, A, F, j) {
|
|
419
|
+
var R = {
|
|
423
420
|
// This tag allows us to uniquely identify this as a React Element
|
|
424
|
-
$$typeof:
|
|
421
|
+
$$typeof: t,
|
|
425
422
|
// Built-in properties that belong on the element
|
|
426
423
|
type: o,
|
|
427
|
-
key:
|
|
428
|
-
ref:
|
|
429
|
-
props:
|
|
424
|
+
key: f,
|
|
425
|
+
ref: y,
|
|
426
|
+
props: j,
|
|
430
427
|
// Record the component responsible for creating this element.
|
|
431
|
-
_owner:
|
|
428
|
+
_owner: F
|
|
432
429
|
};
|
|
433
|
-
return
|
|
430
|
+
return R._store = {}, Object.defineProperty(R._store, "validated", {
|
|
434
431
|
configurable: !1,
|
|
435
432
|
enumerable: !1,
|
|
436
433
|
writable: !0,
|
|
437
434
|
value: !1
|
|
438
|
-
}), Object.defineProperty(
|
|
435
|
+
}), Object.defineProperty(R, "_self", {
|
|
439
436
|
configurable: !1,
|
|
440
437
|
enumerable: !1,
|
|
441
438
|
writable: !1,
|
|
442
|
-
value:
|
|
443
|
-
}), Object.defineProperty(
|
|
439
|
+
value: S
|
|
440
|
+
}), Object.defineProperty(R, "_source", {
|
|
444
441
|
configurable: !1,
|
|
445
442
|
enumerable: !1,
|
|
446
443
|
writable: !1,
|
|
447
|
-
value:
|
|
448
|
-
}), Object.freeze && (Object.freeze(
|
|
444
|
+
value: A
|
|
445
|
+
}), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
|
|
449
446
|
};
|
|
450
|
-
function
|
|
447
|
+
function so(o, f, y, S, A) {
|
|
451
448
|
{
|
|
452
|
-
var
|
|
453
|
-
|
|
454
|
-
for (
|
|
455
|
-
|
|
449
|
+
var F, j = {}, R = null, G = null;
|
|
450
|
+
y !== void 0 && (rn(y), R = "" + y), to(f) && (rn(f.key), R = "" + f.key), eo(f) && (G = f.ref, no(f, A));
|
|
451
|
+
for (F in f)
|
|
452
|
+
Ze.call(f, F) && !Qr.hasOwnProperty(F) && (j[F] = f[F]);
|
|
456
453
|
if (o && o.defaultProps) {
|
|
457
|
-
var
|
|
458
|
-
for (
|
|
459
|
-
|
|
454
|
+
var N = o.defaultProps;
|
|
455
|
+
for (F in N)
|
|
456
|
+
j[F] === void 0 && (j[F] = N[F]);
|
|
460
457
|
}
|
|
461
|
-
if (
|
|
462
|
-
var
|
|
463
|
-
|
|
458
|
+
if (R || G) {
|
|
459
|
+
var $ = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
460
|
+
R && ro(j, $), G && oo(j, $);
|
|
464
461
|
}
|
|
465
|
-
return
|
|
462
|
+
return io(o, R, G, A, S, on.current, j);
|
|
466
463
|
}
|
|
467
464
|
}
|
|
468
|
-
var
|
|
469
|
-
function
|
|
465
|
+
var Rt = P.ReactCurrentOwner, cn = P.ReactDebugCurrentFrame;
|
|
466
|
+
function Oe(o) {
|
|
470
467
|
if (o) {
|
|
471
|
-
var
|
|
472
|
-
|
|
468
|
+
var f = o._owner, y = et(o.type, o._source, f ? f.type : null);
|
|
469
|
+
cn.setExtraStackFrame(y);
|
|
473
470
|
} else
|
|
474
|
-
|
|
471
|
+
cn.setExtraStackFrame(null);
|
|
475
472
|
}
|
|
476
|
-
var
|
|
477
|
-
|
|
478
|
-
function
|
|
479
|
-
return typeof o == "object" && o !== null && o.$$typeof ===
|
|
473
|
+
var jt;
|
|
474
|
+
jt = !1;
|
|
475
|
+
function Lt(o) {
|
|
476
|
+
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
480
477
|
}
|
|
481
|
-
function
|
|
478
|
+
function ln() {
|
|
482
479
|
{
|
|
483
|
-
if (
|
|
484
|
-
var o =
|
|
480
|
+
if (Rt.current) {
|
|
481
|
+
var o = q(Rt.current.type);
|
|
485
482
|
if (o)
|
|
486
483
|
return `
|
|
487
484
|
|
|
@@ -490,774 +487,747 @@ Check the render method of \`` + o + "`.";
|
|
|
490
487
|
return "";
|
|
491
488
|
}
|
|
492
489
|
}
|
|
493
|
-
function
|
|
490
|
+
function ao(o) {
|
|
494
491
|
return "";
|
|
495
492
|
}
|
|
496
|
-
var
|
|
497
|
-
function
|
|
493
|
+
var un = {};
|
|
494
|
+
function co(o) {
|
|
498
495
|
{
|
|
499
|
-
var
|
|
500
|
-
if (!
|
|
501
|
-
var
|
|
502
|
-
|
|
496
|
+
var f = ln();
|
|
497
|
+
if (!f) {
|
|
498
|
+
var y = typeof o == "string" ? o : o.displayName || o.name;
|
|
499
|
+
y && (f = `
|
|
503
500
|
|
|
504
|
-
Check the top-level render call using <` +
|
|
501
|
+
Check the top-level render call using <` + y + ">.");
|
|
505
502
|
}
|
|
506
|
-
return
|
|
503
|
+
return f;
|
|
507
504
|
}
|
|
508
505
|
}
|
|
509
|
-
function
|
|
506
|
+
function dn(o, f) {
|
|
510
507
|
{
|
|
511
508
|
if (!o._store || o._store.validated || o.key != null)
|
|
512
509
|
return;
|
|
513
510
|
o._store.validated = !0;
|
|
514
|
-
var
|
|
515
|
-
if (
|
|
511
|
+
var y = co(f);
|
|
512
|
+
if (un[y])
|
|
516
513
|
return;
|
|
517
|
-
|
|
518
|
-
var
|
|
519
|
-
o && o._owner && o._owner !==
|
|
514
|
+
un[y] = !0;
|
|
515
|
+
var S = "";
|
|
516
|
+
o && o._owner && o._owner !== Rt.current && (S = " It was passed a child from " + q(o._owner.type) + "."), Oe(o), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, S), Oe(null);
|
|
520
517
|
}
|
|
521
518
|
}
|
|
522
|
-
function
|
|
519
|
+
function fn(o, f) {
|
|
523
520
|
{
|
|
524
521
|
if (typeof o != "object")
|
|
525
522
|
return;
|
|
526
|
-
if (
|
|
527
|
-
for (var
|
|
528
|
-
var
|
|
529
|
-
|
|
523
|
+
if (Pt(o))
|
|
524
|
+
for (var y = 0; y < o.length; y++) {
|
|
525
|
+
var S = o[y];
|
|
526
|
+
Lt(S) && dn(S, f);
|
|
530
527
|
}
|
|
531
|
-
else if (
|
|
528
|
+
else if (Lt(o))
|
|
532
529
|
o._store && (o._store.validated = !0);
|
|
533
530
|
else if (o) {
|
|
534
|
-
var
|
|
535
|
-
if (typeof
|
|
536
|
-
for (var
|
|
537
|
-
|
|
531
|
+
var A = M(o);
|
|
532
|
+
if (typeof A == "function" && A !== o.entries)
|
|
533
|
+
for (var F = A.call(o), j; !(j = F.next()).done; )
|
|
534
|
+
Lt(j.value) && dn(j.value, f);
|
|
538
535
|
}
|
|
539
536
|
}
|
|
540
537
|
}
|
|
541
|
-
function
|
|
538
|
+
function lo(o) {
|
|
542
539
|
{
|
|
543
|
-
var
|
|
544
|
-
if (
|
|
540
|
+
var f = o.type;
|
|
541
|
+
if (f == null || typeof f == "string")
|
|
545
542
|
return;
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
|
|
549
|
-
else if (typeof
|
|
543
|
+
var y;
|
|
544
|
+
if (typeof f == "function")
|
|
545
|
+
y = f.propTypes;
|
|
546
|
+
else if (typeof f == "object" && (f.$$typeof === s || // Note: Memo only checks outer props here.
|
|
550
547
|
// Inner props are checked in the reconciler.
|
|
551
|
-
|
|
552
|
-
|
|
548
|
+
f.$$typeof === g))
|
|
549
|
+
y = f.propTypes;
|
|
553
550
|
else
|
|
554
551
|
return;
|
|
555
|
-
if (
|
|
556
|
-
var
|
|
557
|
-
|
|
558
|
-
} else if (
|
|
559
|
-
|
|
560
|
-
var
|
|
561
|
-
|
|
552
|
+
if (y) {
|
|
553
|
+
var S = q(f);
|
|
554
|
+
Gr(y, o.props, "prop", S, o);
|
|
555
|
+
} else if (f.PropTypes !== void 0 && !jt) {
|
|
556
|
+
jt = !0;
|
|
557
|
+
var A = q(f);
|
|
558
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
562
559
|
}
|
|
563
|
-
typeof
|
|
560
|
+
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
564
561
|
}
|
|
565
562
|
}
|
|
566
|
-
function
|
|
563
|
+
function uo(o) {
|
|
567
564
|
{
|
|
568
|
-
for (var
|
|
569
|
-
var
|
|
570
|
-
if (
|
|
571
|
-
|
|
565
|
+
for (var f = Object.keys(o.props), y = 0; y < f.length; y++) {
|
|
566
|
+
var S = f[y];
|
|
567
|
+
if (S !== "children" && S !== "key") {
|
|
568
|
+
Oe(o), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), Oe(null);
|
|
572
569
|
break;
|
|
573
570
|
}
|
|
574
571
|
}
|
|
575
|
-
o.ref !== null && (
|
|
572
|
+
o.ref !== null && (Oe(o), b("Invalid attribute `ref` supplied to `React.Fragment`."), Oe(null));
|
|
576
573
|
}
|
|
577
574
|
}
|
|
578
|
-
var
|
|
579
|
-
function
|
|
575
|
+
var pn = {};
|
|
576
|
+
function hn(o, f, y, S, A, F) {
|
|
580
577
|
{
|
|
581
|
-
var
|
|
582
|
-
if (!
|
|
583
|
-
var
|
|
584
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
585
|
-
var
|
|
586
|
-
|
|
587
|
-
var
|
|
588
|
-
o === null ?
|
|
578
|
+
var j = I(o);
|
|
579
|
+
if (!j) {
|
|
580
|
+
var R = "";
|
|
581
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
+
var G = ao();
|
|
583
|
+
G ? R += G : R += ln();
|
|
584
|
+
var N;
|
|
585
|
+
o === null ? N = "null" : Pt(o) ? N = "array" : o !== void 0 && o.$$typeof === t ? (N = "<" + (q(o.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : N = typeof o, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, R);
|
|
589
586
|
}
|
|
590
|
-
var
|
|
591
|
-
if (
|
|
592
|
-
return
|
|
593
|
-
if (
|
|
594
|
-
var
|
|
595
|
-
if (
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
for (var
|
|
599
|
-
|
|
600
|
-
Object.freeze && Object.freeze(
|
|
587
|
+
var $ = so(o, f, y, A, F);
|
|
588
|
+
if ($ == null)
|
|
589
|
+
return $;
|
|
590
|
+
if (j) {
|
|
591
|
+
var oe = f.children;
|
|
592
|
+
if (oe !== void 0)
|
|
593
|
+
if (S)
|
|
594
|
+
if (Pt(oe)) {
|
|
595
|
+
for (var Fe = 0; Fe < oe.length; Fe++)
|
|
596
|
+
fn(oe[Fe], o);
|
|
597
|
+
Object.freeze && Object.freeze(oe);
|
|
601
598
|
} else
|
|
602
|
-
|
|
599
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
603
600
|
else
|
|
604
|
-
|
|
601
|
+
fn(oe, o);
|
|
605
602
|
}
|
|
606
|
-
if (
|
|
607
|
-
var
|
|
608
|
-
return
|
|
609
|
-
}),
|
|
610
|
-
if (!
|
|
611
|
-
var
|
|
612
|
-
|
|
603
|
+
if (Ze.call(f, "key")) {
|
|
604
|
+
var Se = q(o), Q = Object.keys(f).filter(function(yo) {
|
|
605
|
+
return yo !== "key";
|
|
606
|
+
}), _t = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
+
if (!pn[Se + _t]) {
|
|
608
|
+
var go = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
613
610
|
let props = %s;
|
|
614
611
|
<%s {...props} />
|
|
615
612
|
React keys must be passed directly to JSX without using spread:
|
|
616
613
|
let props = %s;
|
|
617
|
-
<%s key={someKey} {...props} />`,
|
|
614
|
+
<%s key={someKey} {...props} />`, _t, Se, go, Se), pn[Se + _t] = !0;
|
|
618
615
|
}
|
|
619
616
|
}
|
|
620
|
-
return o ===
|
|
617
|
+
return o === r ? uo($) : lo($), $;
|
|
621
618
|
}
|
|
622
619
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
620
|
+
function fo(o, f, y) {
|
|
621
|
+
return hn(o, f, y, !0);
|
|
625
622
|
}
|
|
626
|
-
function
|
|
627
|
-
return
|
|
623
|
+
function po(o, f, y) {
|
|
624
|
+
return hn(o, f, y, !1);
|
|
628
625
|
}
|
|
629
|
-
var
|
|
630
|
-
|
|
631
|
-
})()),
|
|
626
|
+
var ho = po, mo = fo;
|
|
627
|
+
Xe.Fragment = r, Xe.jsx = ho, Xe.jsxs = mo;
|
|
628
|
+
})()), Xe;
|
|
632
629
|
}
|
|
633
|
-
var
|
|
634
|
-
function
|
|
635
|
-
return
|
|
636
|
-
}
|
|
637
|
-
var
|
|
638
|
-
const
|
|
639
|
-
function
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
}, [e]),
|
|
644
|
-
if (
|
|
630
|
+
var vn;
|
|
631
|
+
function So() {
|
|
632
|
+
return vn || (vn = 1, process.env.NODE_ENV === "production" ? nt.exports = bo() : nt.exports = xo()), nt.exports;
|
|
633
|
+
}
|
|
634
|
+
var c = So();
|
|
635
|
+
const Co = typeof window < "u" ? vo : te;
|
|
636
|
+
function wt(e, t) {
|
|
637
|
+
const n = Y(e);
|
|
638
|
+
Co(() => {
|
|
639
|
+
n.current = e;
|
|
640
|
+
}, [e]), te(() => {
|
|
641
|
+
if (t === null)
|
|
645
642
|
return;
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
},
|
|
643
|
+
const r = setInterval(() => {
|
|
644
|
+
n.current();
|
|
645
|
+
}, t);
|
|
649
646
|
return () => {
|
|
650
|
-
clearInterval(
|
|
647
|
+
clearInterval(r);
|
|
651
648
|
};
|
|
652
|
-
}, [
|
|
649
|
+
}, [t]);
|
|
653
650
|
}
|
|
654
|
-
function
|
|
655
|
-
const [,
|
|
656
|
-
|
|
651
|
+
function ko(e) {
|
|
652
|
+
const [, t] = X(0);
|
|
653
|
+
wt(() => t((n) => n + 1), e);
|
|
657
654
|
}
|
|
658
|
-
const
|
|
655
|
+
const To = (e, t) => $n((n) => ({
|
|
659
656
|
delay: 0,
|
|
660
657
|
startDate: e,
|
|
661
|
-
endDate:
|
|
658
|
+
endDate: t,
|
|
662
659
|
startTime: e.getTime(),
|
|
663
|
-
endTime:
|
|
664
|
-
setDelay: (
|
|
665
|
-
setStartDate: (
|
|
666
|
-
setEndDate: (
|
|
667
|
-
})),
|
|
660
|
+
endTime: t.getTime(),
|
|
661
|
+
setDelay: (r) => n({ delay: r }),
|
|
662
|
+
setStartDate: (r) => n({ startDate: r }),
|
|
663
|
+
setEndDate: (r) => n({ endDate: r })
|
|
664
|
+
})), zn = Nn(
|
|
668
665
|
null
|
|
669
|
-
),
|
|
666
|
+
), Eo = ({
|
|
670
667
|
children: e,
|
|
671
|
-
startDate:
|
|
672
|
-
endDate:
|
|
668
|
+
startDate: t,
|
|
669
|
+
endDate: n
|
|
673
670
|
}) => {
|
|
674
|
-
const
|
|
671
|
+
const r = Y(
|
|
675
672
|
null
|
|
676
673
|
);
|
|
677
|
-
return
|
|
678
|
-
},
|
|
679
|
-
const
|
|
680
|
-
if (!
|
|
674
|
+
return r.current || (r.current = To(t, n)), /* @__PURE__ */ c.jsx(zn.Provider, { value: r.current, children: e });
|
|
675
|
+
}, U = (e) => {
|
|
676
|
+
const t = Zt(zn);
|
|
677
|
+
if (!t)
|
|
681
678
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
682
|
-
return
|
|
679
|
+
return Hn(t, e);
|
|
683
680
|
};
|
|
684
|
-
var
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
case c:
|
|
708
|
-
case i:
|
|
709
|
-
case w:
|
|
710
|
-
return p;
|
|
711
|
-
default:
|
|
712
|
-
switch (p = p && p.$$typeof, p) {
|
|
713
|
-
case d:
|
|
714
|
-
case v:
|
|
715
|
-
case E:
|
|
716
|
-
case R:
|
|
717
|
-
case l:
|
|
718
|
-
return p;
|
|
719
|
-
default:
|
|
720
|
-
return U;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
case t:
|
|
724
|
-
return U;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
681
|
+
var ee = function() {
|
|
682
|
+
return ee = Object.assign || function(t) {
|
|
683
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
684
|
+
n = arguments[r];
|
|
685
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
686
|
+
}
|
|
687
|
+
return t;
|
|
688
|
+
}, ee.apply(this, arguments);
|
|
689
|
+
};
|
|
690
|
+
function je(e, t, n) {
|
|
691
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
|
|
692
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
693
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
694
|
+
}
|
|
695
|
+
function Po(e) {
|
|
696
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
697
|
+
return function(n) {
|
|
698
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
var Ro = /^((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)-.*))$/, jo = /* @__PURE__ */ Po(
|
|
702
|
+
function(e) {
|
|
703
|
+
return Ro.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
727
704
|
}
|
|
728
|
-
|
|
729
|
-
|
|
705
|
+
/* Z+1 */
|
|
706
|
+
), V = "-ms-", Ke = "-moz-", O = "-webkit-", Bn = "comm", bt = "rule", Gt = "decl", Lo = "@import", Un = "@keyframes", _o = "@layer", Wn = Math.abs, Xt = String.fromCharCode, Ft = Object.assign;
|
|
707
|
+
function Io(e, t) {
|
|
708
|
+
return z(e, 0) ^ 45 ? (((t << 2 ^ z(e, 0)) << 2 ^ z(e, 1)) << 2 ^ z(e, 2)) << 2 ^ z(e, 3) : 0;
|
|
709
|
+
}
|
|
710
|
+
function Yn(e) {
|
|
711
|
+
return e.trim();
|
|
712
|
+
}
|
|
713
|
+
function he(e, t) {
|
|
714
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
715
|
+
}
|
|
716
|
+
function k(e, t, n) {
|
|
717
|
+
return e.replace(t, n);
|
|
718
|
+
}
|
|
719
|
+
function at(e, t, n) {
|
|
720
|
+
return e.indexOf(t, n);
|
|
721
|
+
}
|
|
722
|
+
function z(e, t) {
|
|
723
|
+
return e.charCodeAt(t) | 0;
|
|
724
|
+
}
|
|
725
|
+
function Ve(e, t, n) {
|
|
726
|
+
return e.slice(t, n);
|
|
727
|
+
}
|
|
728
|
+
function de(e) {
|
|
729
|
+
return e.length;
|
|
730
|
+
}
|
|
731
|
+
function qn(e) {
|
|
732
|
+
return e.length;
|
|
733
|
+
}
|
|
734
|
+
function Je(e, t) {
|
|
735
|
+
return t.push(e), e;
|
|
736
|
+
}
|
|
737
|
+
function Do(e, t) {
|
|
738
|
+
return e.map(t).join("");
|
|
739
|
+
}
|
|
740
|
+
function wn(e, t) {
|
|
741
|
+
return e.filter(function(n) {
|
|
742
|
+
return !he(n, t);
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
var xt = 1, Ne = 1, Zn = 0, ie = 0, H = 0, Ue = "";
|
|
746
|
+
function St(e, t, n, r, i, a, l, u) {
|
|
747
|
+
return { value: e, root: t, parent: n, type: r, props: i, children: a, line: xt, column: Ne, length: l, return: "", siblings: u };
|
|
748
|
+
}
|
|
749
|
+
function we(e, t) {
|
|
750
|
+
return Ft(St("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
751
|
+
}
|
|
752
|
+
function Me(e) {
|
|
753
|
+
for (; e.root; )
|
|
754
|
+
e = we(e.root, { children: [e] });
|
|
755
|
+
Je(e, e.siblings);
|
|
756
|
+
}
|
|
757
|
+
function Ao() {
|
|
758
|
+
return H;
|
|
759
|
+
}
|
|
760
|
+
function Oo() {
|
|
761
|
+
return H = ie > 0 ? z(Ue, --ie) : 0, Ne--, H === 10 && (Ne = 1, xt--), H;
|
|
762
|
+
}
|
|
763
|
+
function le() {
|
|
764
|
+
return H = ie < Zn ? z(Ue, ie++) : 0, Ne++, H === 10 && (Ne = 1, xt++), H;
|
|
765
|
+
}
|
|
766
|
+
function Ee() {
|
|
767
|
+
return z(Ue, ie);
|
|
768
|
+
}
|
|
769
|
+
function ct() {
|
|
770
|
+
return ie;
|
|
771
|
+
}
|
|
772
|
+
function Ct(e, t) {
|
|
773
|
+
return Ve(Ue, e, t);
|
|
774
|
+
}
|
|
775
|
+
function Mt(e) {
|
|
776
|
+
switch (e) {
|
|
777
|
+
// \0 \t \n \r \s whitespace token
|
|
778
|
+
case 0:
|
|
779
|
+
case 9:
|
|
780
|
+
case 10:
|
|
781
|
+
case 13:
|
|
782
|
+
case 32:
|
|
783
|
+
return 5;
|
|
784
|
+
// ! + , / > @ ~ isolate token
|
|
785
|
+
case 33:
|
|
786
|
+
case 43:
|
|
787
|
+
case 44:
|
|
788
|
+
case 47:
|
|
789
|
+
case 62:
|
|
790
|
+
case 64:
|
|
791
|
+
case 126:
|
|
792
|
+
// ; { } breakpoint token
|
|
793
|
+
case 59:
|
|
794
|
+
case 123:
|
|
795
|
+
case 125:
|
|
796
|
+
return 4;
|
|
797
|
+
// : accompanied token
|
|
798
|
+
case 58:
|
|
799
|
+
return 3;
|
|
800
|
+
// " ' ( [ opening delimit token
|
|
801
|
+
case 34:
|
|
802
|
+
case 39:
|
|
803
|
+
case 40:
|
|
804
|
+
case 91:
|
|
805
|
+
return 2;
|
|
806
|
+
// ) ] closing delimit token
|
|
807
|
+
case 41:
|
|
808
|
+
case 93:
|
|
809
|
+
return 1;
|
|
730
810
|
}
|
|
731
|
-
return
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, L = e ? Symbol.for("react.suspense_list") : 60120, R = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, k = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
772
|
-
function g(h) {
|
|
773
|
-
return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
774
|
-
h === n || h === f || h === c || h === i || h === w || h === L || typeof h == "object" && h !== null && (h.$$typeof === E || h.$$typeof === R || h.$$typeof === l || h.$$typeof === d || h.$$typeof === v || h.$$typeof === _ || h.$$typeof === j || h.$$typeof === x || h.$$typeof === k);
|
|
775
|
-
}
|
|
776
|
-
function A(h) {
|
|
777
|
-
if (typeof h == "object" && h !== null) {
|
|
778
|
-
var oe = h.$$typeof;
|
|
779
|
-
switch (oe) {
|
|
780
|
-
case r:
|
|
781
|
-
var ae = h.type;
|
|
782
|
-
switch (ae) {
|
|
783
|
-
case u:
|
|
784
|
-
case f:
|
|
785
|
-
case n:
|
|
786
|
-
case c:
|
|
787
|
-
case i:
|
|
788
|
-
case w:
|
|
789
|
-
return ae;
|
|
790
|
-
default:
|
|
791
|
-
var F = ae && ae.$$typeof;
|
|
792
|
-
switch (F) {
|
|
793
|
-
case d:
|
|
794
|
-
case v:
|
|
795
|
-
case E:
|
|
796
|
-
case R:
|
|
797
|
-
case l:
|
|
798
|
-
return F;
|
|
799
|
-
default:
|
|
800
|
-
return oe;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
case t:
|
|
804
|
-
return oe;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
var p = u, U = f, de = d, te = l, ce = r, M = v, xe = n, re = E, J = R, ne = t, K = c, Se = i, Q = w, pe = !1;
|
|
809
|
-
function Pe(h) {
|
|
810
|
-
return pe || (pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Ee(h) || A(h) === u;
|
|
811
|
-
}
|
|
812
|
-
function Ee(h) {
|
|
813
|
-
return A(h) === f;
|
|
814
|
-
}
|
|
815
|
-
function Re(h) {
|
|
816
|
-
return A(h) === d;
|
|
817
|
-
}
|
|
818
|
-
function P(h) {
|
|
819
|
-
return A(h) === l;
|
|
820
|
-
}
|
|
821
|
-
function S(h) {
|
|
822
|
-
return typeof h == "object" && h !== null && h.$$typeof === r;
|
|
823
|
-
}
|
|
824
|
-
function T(h) {
|
|
825
|
-
return A(h) === v;
|
|
826
|
-
}
|
|
827
|
-
function D(h) {
|
|
828
|
-
return A(h) === n;
|
|
829
|
-
}
|
|
830
|
-
function s(h) {
|
|
831
|
-
return A(h) === E;
|
|
832
|
-
}
|
|
833
|
-
function V(h) {
|
|
834
|
-
return A(h) === R;
|
|
835
|
-
}
|
|
836
|
-
function y(h) {
|
|
837
|
-
return A(h) === t;
|
|
838
|
-
}
|
|
839
|
-
function G(h) {
|
|
840
|
-
return A(h) === c;
|
|
841
|
-
}
|
|
842
|
-
function N(h) {
|
|
843
|
-
return A(h) === i;
|
|
844
|
-
}
|
|
845
|
-
function H(h) {
|
|
846
|
-
return A(h) === w;
|
|
811
|
+
return 0;
|
|
812
|
+
}
|
|
813
|
+
function Fo(e) {
|
|
814
|
+
return xt = Ne = 1, Zn = de(Ue = e), ie = 0, [];
|
|
815
|
+
}
|
|
816
|
+
function Mo(e) {
|
|
817
|
+
return Ue = "", e;
|
|
818
|
+
}
|
|
819
|
+
function It(e) {
|
|
820
|
+
return Yn(Ct(ie - 1, Vt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
821
|
+
}
|
|
822
|
+
function Vo(e) {
|
|
823
|
+
for (; (H = Ee()) && H < 33; )
|
|
824
|
+
le();
|
|
825
|
+
return Mt(e) > 2 || Mt(H) > 3 ? "" : " ";
|
|
826
|
+
}
|
|
827
|
+
function No(e, t) {
|
|
828
|
+
for (; --t && le() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
829
|
+
;
|
|
830
|
+
return Ct(e, ct() + (t < 6 && Ee() == 32 && le() == 32));
|
|
831
|
+
}
|
|
832
|
+
function Vt(e) {
|
|
833
|
+
for (; le(); )
|
|
834
|
+
switch (H) {
|
|
835
|
+
// ] ) " '
|
|
836
|
+
case e:
|
|
837
|
+
return ie;
|
|
838
|
+
// " '
|
|
839
|
+
case 34:
|
|
840
|
+
case 39:
|
|
841
|
+
e !== 34 && e !== 39 && Vt(H);
|
|
842
|
+
break;
|
|
843
|
+
// (
|
|
844
|
+
case 40:
|
|
845
|
+
e === 41 && Vt(e);
|
|
846
|
+
break;
|
|
847
|
+
// \
|
|
848
|
+
case 92:
|
|
849
|
+
le();
|
|
850
|
+
break;
|
|
847
851
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
function
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
852
|
+
return ie;
|
|
853
|
+
}
|
|
854
|
+
function $o(e, t) {
|
|
855
|
+
for (; le() && e + H !== 57; )
|
|
856
|
+
if (e + H === 84 && Ee() === 47)
|
|
857
|
+
break;
|
|
858
|
+
return "/*" + Ct(t, ie - 1) + "*" + Xt(e === 47 ? e : le());
|
|
859
|
+
}
|
|
860
|
+
function Ho(e) {
|
|
861
|
+
for (; !Mt(Ee()); )
|
|
862
|
+
le();
|
|
863
|
+
return Ct(e, ie);
|
|
864
|
+
}
|
|
865
|
+
function zo(e) {
|
|
866
|
+
return Mo(lt("", null, null, null, [""], e = Fo(e), 0, [0], e));
|
|
867
|
+
}
|
|
868
|
+
function lt(e, t, n, r, i, a, l, u, s) {
|
|
869
|
+
for (var d = 0, p = 0, g = l, w = 0, v = 0, E = 0, T = 1, M = 1, P = 1, b = 0, h = "", L = i, D = a, C = r, x = h; M; )
|
|
870
|
+
switch (E = b, b = le()) {
|
|
871
|
+
// (
|
|
872
|
+
case 40:
|
|
873
|
+
if (E != 108 && z(x, g - 1) == 58) {
|
|
874
|
+
at(x += k(It(b), "&", "&\f"), "&\f", Wn(d ? u[d - 1] : 0)) != -1 && (P = -1);
|
|
875
|
+
break;
|
|
872
876
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
case 10:
|
|
897
|
-
if (h === 47) {
|
|
898
|
-
B = ie + 1;
|
|
899
|
-
break e;
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
B = ie;
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
break;
|
|
906
|
-
case 91:
|
|
907
|
-
h++;
|
|
908
|
-
case 40:
|
|
909
|
-
h++;
|
|
910
|
-
case 34:
|
|
911
|
-
case 39:
|
|
912
|
-
for (; B++ < Ae && T.charCodeAt(B) !== h; )
|
|
913
|
-
;
|
|
914
|
-
}
|
|
915
|
-
if (F === 0) break;
|
|
916
|
-
B++;
|
|
917
|
-
}
|
|
918
|
-
switch (F = T.substring(fe, B), H === 0 && (H = (I = I.replace(w, "").trim()).charCodeAt(0)), H) {
|
|
919
|
-
case 64:
|
|
920
|
-
switch (0 < le && (I = I.replace(L, "")), h = I.charCodeAt(1), h) {
|
|
921
|
-
case 100:
|
|
922
|
-
case 109:
|
|
923
|
-
case 115:
|
|
924
|
-
case 45:
|
|
925
|
-
le = S;
|
|
926
|
-
break;
|
|
927
|
-
default:
|
|
928
|
-
le = Se;
|
|
929
|
-
}
|
|
930
|
-
if (F = r(S, le, F, h, s + 1), fe = F.length, 0 < pe && (le = t(Se, I, ke), _e = d(3, F, le, S, J, re, fe, h, s, D), I = le.join(""), _e !== void 0 && (fe = (F = _e.trim()).length) === 0 && (h = 0, F = "")), 0 < fe) switch (h) {
|
|
931
|
-
case 115:
|
|
932
|
-
I = I.replace(U, l);
|
|
933
|
-
case 100:
|
|
934
|
-
case 109:
|
|
935
|
-
case 45:
|
|
936
|
-
F = I + "{" + F + "}";
|
|
937
|
-
break;
|
|
938
|
-
case 107:
|
|
939
|
-
I = I.replace(x, "$1 $2"), F = I + "{" + F + "}", F = K === 1 || K === 2 && c("@" + F, 3) ? "@-webkit-" + F + "@" + F : "@" + F;
|
|
940
|
-
break;
|
|
941
|
-
default:
|
|
942
|
-
F = I + F, D === 112 && (F = (ee += F, ""));
|
|
943
|
-
}
|
|
944
|
-
else F = "";
|
|
945
|
-
break;
|
|
946
|
-
default:
|
|
947
|
-
F = r(S, t(S, I, ke), F, D, s + 1);
|
|
948
|
-
}
|
|
949
|
-
Ne += F, F = ke = le = ie = H = 0, I = "", h = T.charCodeAt(++B);
|
|
877
|
+
// " ' [
|
|
878
|
+
case 34:
|
|
879
|
+
case 39:
|
|
880
|
+
case 91:
|
|
881
|
+
x += It(b);
|
|
882
|
+
break;
|
|
883
|
+
// \t \n \r \s
|
|
884
|
+
case 9:
|
|
885
|
+
case 10:
|
|
886
|
+
case 13:
|
|
887
|
+
case 32:
|
|
888
|
+
x += Vo(E);
|
|
889
|
+
break;
|
|
890
|
+
// \
|
|
891
|
+
case 92:
|
|
892
|
+
x += No(ct() - 1, 7);
|
|
893
|
+
continue;
|
|
894
|
+
// /
|
|
895
|
+
case 47:
|
|
896
|
+
switch (Ee()) {
|
|
897
|
+
case 42:
|
|
898
|
+
case 47:
|
|
899
|
+
Je(Bo($o(le(), ct()), t, n, s), s);
|
|
950
900
|
break;
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
if (I = (0 < le ? I.replace(L, "") : I).trim(), 1 < (fe = I.length)) switch (ie === 0 && (H = I.charCodeAt(0), H === 45 || 96 < H && 123 > H) && (fe = (I = I.replace(" ", ":")).length), 0 < pe && (_e = d(1, I, S, P, J, re, ee.length, D, s, D)) !== void 0 && (fe = (I = _e.trim()).length) === 0 && (I = "\0\0"), H = I.charCodeAt(0), h = I.charCodeAt(1), H) {
|
|
954
|
-
case 0:
|
|
955
|
-
break;
|
|
956
|
-
case 64:
|
|
957
|
-
if (h === 105 || h === 99) {
|
|
958
|
-
Ve += I + T.charAt(B);
|
|
959
|
-
break;
|
|
960
|
-
}
|
|
961
|
-
default:
|
|
962
|
-
I.charCodeAt(fe - 1) !== 58 && (ee += i(I, H, h, I.charCodeAt(2)));
|
|
963
|
-
}
|
|
964
|
-
ke = le = ie = H = 0, I = "", h = T.charCodeAt(++B);
|
|
901
|
+
default:
|
|
902
|
+
x += "/";
|
|
965
903
|
}
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
904
|
+
break;
|
|
905
|
+
// {
|
|
906
|
+
case 123 * T:
|
|
907
|
+
u[d++] = de(x) * P;
|
|
908
|
+
// } ; \0
|
|
909
|
+
case 125 * T:
|
|
910
|
+
case 59:
|
|
911
|
+
case 0:
|
|
912
|
+
switch (b) {
|
|
913
|
+
// \0 }
|
|
914
|
+
case 0:
|
|
915
|
+
case 125:
|
|
916
|
+
M = 0;
|
|
917
|
+
// ;
|
|
918
|
+
case 59 + p:
|
|
919
|
+
P == -1 && (x = k(x, /\f/g, "")), v > 0 && de(x) - g && Je(v > 32 ? xn(x + ";", r, n, g - 1, s) : xn(k(x, " ", "") + ";", r, n, g - 2, s), s);
|
|
976
920
|
break;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
case 0:
|
|
994
|
-
Ce = "\\0";
|
|
995
|
-
break;
|
|
996
|
-
case 12:
|
|
997
|
-
Ce = "\\f";
|
|
998
|
-
break;
|
|
999
|
-
case 11:
|
|
1000
|
-
Ce = "\\v";
|
|
1001
|
-
break;
|
|
1002
|
-
case 38:
|
|
1003
|
-
N + y + V === 0 && (le = ke = 1, Ce = "\f" + Ce);
|
|
1004
|
-
break;
|
|
1005
|
-
case 108:
|
|
1006
|
-
if (N + y + V + ne === 0 && 0 < ie) switch (B - ie) {
|
|
1007
|
-
case 2:
|
|
1008
|
-
oe === 112 && T.charCodeAt(B - 3) === 58 && (ne = oe);
|
|
1009
|
-
case 8:
|
|
1010
|
-
ae === 111 && (ne = ae);
|
|
1011
|
-
}
|
|
1012
|
-
break;
|
|
1013
|
-
case 58:
|
|
1014
|
-
N + y + V === 0 && (ie = B);
|
|
1015
|
-
break;
|
|
1016
|
-
case 44:
|
|
1017
|
-
y + G + N + V === 0 && (le = 1, Ce += "\r");
|
|
1018
|
-
break;
|
|
1019
|
-
case 34:
|
|
1020
|
-
case 39:
|
|
1021
|
-
y === 0 && (N = N === h ? 0 : N === 0 ? h : N);
|
|
1022
|
-
break;
|
|
1023
|
-
case 91:
|
|
1024
|
-
N + y + G === 0 && V++;
|
|
1025
|
-
break;
|
|
1026
|
-
case 93:
|
|
1027
|
-
N + y + G === 0 && V--;
|
|
1028
|
-
break;
|
|
1029
|
-
case 41:
|
|
1030
|
-
N + y + V === 0 && G--;
|
|
1031
|
-
break;
|
|
1032
|
-
case 40:
|
|
1033
|
-
if (N + y + V === 0) {
|
|
1034
|
-
if (H === 0) switch (2 * oe + 3 * ae) {
|
|
1035
|
-
case 533:
|
|
921
|
+
// @ ;
|
|
922
|
+
case 59:
|
|
923
|
+
x += ";";
|
|
924
|
+
// { rule/at-rule
|
|
925
|
+
default:
|
|
926
|
+
if (Je(C = bn(x, t, n, d, p, i, u, h, L = [], D = [], g, a), a), b === 123)
|
|
927
|
+
if (p === 0)
|
|
928
|
+
lt(x, t, C, C, L, a, g, u, D);
|
|
929
|
+
else
|
|
930
|
+
switch (w === 99 && z(x, 3) === 110 ? 100 : w) {
|
|
931
|
+
// d l m s
|
|
932
|
+
case 100:
|
|
933
|
+
case 108:
|
|
934
|
+
case 109:
|
|
935
|
+
case 115:
|
|
936
|
+
lt(e, C, C, r && Je(bn(e, C, C, 0, 0, i, u, h, i, L = [], g, D), D), i, D, g, u, r ? L : D);
|
|
1036
937
|
break;
|
|
1037
938
|
default:
|
|
1038
|
-
|
|
939
|
+
lt(x, C, C, C, [""], D, 0, u, D);
|
|
1039
940
|
}
|
|
1040
|
-
G++;
|
|
1041
|
-
}
|
|
1042
|
-
break;
|
|
1043
|
-
case 64:
|
|
1044
|
-
y + G + N + V + ie + F === 0 && (F = 1);
|
|
1045
|
-
break;
|
|
1046
|
-
case 42:
|
|
1047
|
-
case 47:
|
|
1048
|
-
if (!(0 < N + V + G)) switch (y) {
|
|
1049
|
-
case 0:
|
|
1050
|
-
switch (2 * h + 3 * T.charCodeAt(B + 1)) {
|
|
1051
|
-
case 235:
|
|
1052
|
-
y = 47;
|
|
1053
|
-
break;
|
|
1054
|
-
case 220:
|
|
1055
|
-
fe = B, y = 42;
|
|
1056
|
-
}
|
|
1057
|
-
break;
|
|
1058
|
-
case 42:
|
|
1059
|
-
h === 47 && oe === 42 && fe + 2 !== B && (T.charCodeAt(fe + 2) === 33 && (ee += T.substring(fe, B + 1)), Ce = "", y = 0);
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
y === 0 && (I += Ce);
|
|
1063
|
-
}
|
|
1064
|
-
ae = oe, oe = h, B++;
|
|
1065
|
-
}
|
|
1066
|
-
if (fe = ee.length, 0 < fe) {
|
|
1067
|
-
if (le = S, 0 < pe && (_e = d(2, ee, le, P, J, re, fe, D, s, D), _e !== void 0 && (ee = _e).length === 0)) return Ve + ee + Ne;
|
|
1068
|
-
if (ee = le.join(",") + "{" + ee + "}", K * ne !== 0) {
|
|
1069
|
-
switch (K !== 2 || c(ee, 2) || (ne = 0), ne) {
|
|
1070
|
-
case 111:
|
|
1071
|
-
ee = ee.replace(A, ":-moz-$1") + ee;
|
|
1072
|
-
break;
|
|
1073
|
-
case 112:
|
|
1074
|
-
ee = ee.replace(g, "::-webkit-input-$1") + ee.replace(g, "::-moz-$1") + ee.replace(g, ":-ms-input-$1") + ee;
|
|
1075
941
|
}
|
|
1076
|
-
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
return Ve + ee + Ne;
|
|
1080
|
-
}
|
|
1081
|
-
function t(P, S, T) {
|
|
1082
|
-
var D = S.trim().split(_);
|
|
1083
|
-
S = D;
|
|
1084
|
-
var s = D.length, V = P.length;
|
|
1085
|
-
switch (V) {
|
|
1086
|
-
case 0:
|
|
1087
|
-
case 1:
|
|
1088
|
-
var y = 0;
|
|
1089
|
-
for (P = V === 0 ? "" : P[0] + " "; y < s; ++y)
|
|
1090
|
-
S[y] = n(P, S[y], T).trim();
|
|
942
|
+
d = p = v = 0, T = P = 1, h = x = "", g = l;
|
|
1091
943
|
break;
|
|
1092
|
-
|
|
1093
|
-
var G = y = 0;
|
|
1094
|
-
for (S = []; y < s; ++y)
|
|
1095
|
-
for (var N = 0; N < V; ++N)
|
|
1096
|
-
S[G++] = n(P[N] + " ", D[y], T).trim();
|
|
1097
|
-
}
|
|
1098
|
-
return S;
|
|
1099
|
-
}
|
|
1100
|
-
function n(P, S, T) {
|
|
1101
|
-
var D = S.charCodeAt(0);
|
|
1102
|
-
switch (33 > D && (D = (S = S.trim()).charCodeAt(0)), D) {
|
|
1103
|
-
case 38:
|
|
1104
|
-
return S.replace(j, "$1" + P.trim());
|
|
944
|
+
// :
|
|
1105
945
|
case 58:
|
|
1106
|
-
|
|
946
|
+
g = 1 + de(x), v = E;
|
|
1107
947
|
default:
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
var s = P + ";", V = 2 * S + 3 * T + 4 * D;
|
|
1114
|
-
if (V === 944) {
|
|
1115
|
-
P = s.indexOf(":", 9) + 1;
|
|
1116
|
-
var y = s.substring(P, s.length - 1).trim();
|
|
1117
|
-
return y = s.substring(0, P).trim() + y + ";", K === 1 || K === 2 && c(y, 1) ? "-webkit-" + y + y : y;
|
|
1118
|
-
}
|
|
1119
|
-
if (K === 0 || K === 2 && !c(s, 1)) return s;
|
|
1120
|
-
switch (V) {
|
|
1121
|
-
case 1015:
|
|
1122
|
-
return s.charCodeAt(10) === 97 ? "-webkit-" + s + s : s;
|
|
1123
|
-
case 951:
|
|
1124
|
-
return s.charCodeAt(3) === 116 ? "-webkit-" + s + s : s;
|
|
1125
|
-
case 963:
|
|
1126
|
-
return s.charCodeAt(5) === 110 ? "-webkit-" + s + s : s;
|
|
1127
|
-
case 1009:
|
|
1128
|
-
if (s.charCodeAt(4) !== 100) break;
|
|
1129
|
-
case 969:
|
|
1130
|
-
case 942:
|
|
1131
|
-
return "-webkit-" + s + s;
|
|
1132
|
-
case 978:
|
|
1133
|
-
return "-webkit-" + s + "-moz-" + s + s;
|
|
1134
|
-
case 1019:
|
|
1135
|
-
case 983:
|
|
1136
|
-
return "-webkit-" + s + "-moz-" + s + "-ms-" + s + s;
|
|
1137
|
-
case 883:
|
|
1138
|
-
if (s.charCodeAt(8) === 45) return "-webkit-" + s + s;
|
|
1139
|
-
if (0 < s.indexOf("image-set(", 11)) return s.replace(xe, "$1-webkit-$2") + s;
|
|
1140
|
-
break;
|
|
1141
|
-
case 932:
|
|
1142
|
-
if (s.charCodeAt(4) === 45) switch (s.charCodeAt(5)) {
|
|
1143
|
-
case 103:
|
|
1144
|
-
return "-webkit-box-" + s.replace("-grow", "") + "-webkit-" + s + "-ms-" + s.replace("grow", "positive") + s;
|
|
1145
|
-
case 115:
|
|
1146
|
-
return "-webkit-" + s + "-ms-" + s.replace("shrink", "negative") + s;
|
|
1147
|
-
case 98:
|
|
1148
|
-
return "-webkit-" + s + "-ms-" + s.replace("basis", "preferred-size") + s;
|
|
948
|
+
if (T < 1) {
|
|
949
|
+
if (b == 123)
|
|
950
|
+
--T;
|
|
951
|
+
else if (b == 125 && T++ == 0 && Oo() == 125)
|
|
952
|
+
continue;
|
|
1149
953
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
if (s.charCodeAt(8) !== 99) break;
|
|
1155
|
-
return y = s.substring(s.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify"), "-webkit-box-pack" + y + "-webkit-" + s + "-ms-flex-pack" + y + s;
|
|
1156
|
-
case 1005:
|
|
1157
|
-
return E.test(s) ? s.replace(R, ":-webkit-") + s.replace(R, ":-moz-") + s : s;
|
|
1158
|
-
case 1e3:
|
|
1159
|
-
switch (y = s.substring(13).trim(), S = y.indexOf("-") + 1, y.charCodeAt(0) + y.charCodeAt(S)) {
|
|
1160
|
-
case 226:
|
|
1161
|
-
y = s.replace(p, "tb");
|
|
954
|
+
switch (x += Xt(b), b * T) {
|
|
955
|
+
// &
|
|
956
|
+
case 38:
|
|
957
|
+
P = p > 0 ? 1 : (x += "\f", -1);
|
|
1162
958
|
break;
|
|
1163
|
-
|
|
1164
|
-
|
|
959
|
+
// ,
|
|
960
|
+
case 44:
|
|
961
|
+
u[d++] = (de(x) - 1) * P, P = 1;
|
|
1165
962
|
break;
|
|
1166
|
-
|
|
1167
|
-
|
|
963
|
+
// @
|
|
964
|
+
case 64:
|
|
965
|
+
Ee() === 45 && (x += It(le())), w = Ee(), p = g = de(h = x += Ho(ct())), b++;
|
|
1168
966
|
break;
|
|
1169
|
-
|
|
1170
|
-
|
|
967
|
+
// -
|
|
968
|
+
case 45:
|
|
969
|
+
E === 45 && de(x) == 2 && (T = 0);
|
|
1171
970
|
}
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
971
|
+
}
|
|
972
|
+
return a;
|
|
973
|
+
}
|
|
974
|
+
function bn(e, t, n, r, i, a, l, u, s, d, p, g) {
|
|
975
|
+
for (var w = i - 1, v = i === 0 ? a : [""], E = qn(v), T = 0, M = 0, P = 0; T < r; ++T)
|
|
976
|
+
for (var b = 0, h = Ve(e, w + 1, w = Wn(M = l[T])), L = e; b < E; ++b)
|
|
977
|
+
(L = Yn(M > 0 ? v[b] + " " + h : k(h, /&\f/g, v[b]))) && (s[P++] = L);
|
|
978
|
+
return St(e, t, n, i === 0 ? bt : u, s, d, p, g);
|
|
979
|
+
}
|
|
980
|
+
function Bo(e, t, n, r) {
|
|
981
|
+
return St(e, t, n, Bn, Xt(Ao()), Ve(e, 2, -2), 0, r);
|
|
982
|
+
}
|
|
983
|
+
function xn(e, t, n, r, i) {
|
|
984
|
+
return St(e, t, n, Gt, Ve(e, 0, r), Ve(e, r + 1, -1), r, i);
|
|
985
|
+
}
|
|
986
|
+
function Gn(e, t, n) {
|
|
987
|
+
switch (Io(e, t)) {
|
|
988
|
+
// color-adjust
|
|
989
|
+
case 5103:
|
|
990
|
+
return O + "print-" + e + e;
|
|
991
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
992
|
+
case 5737:
|
|
993
|
+
case 4201:
|
|
994
|
+
case 3177:
|
|
995
|
+
case 3433:
|
|
996
|
+
case 1641:
|
|
997
|
+
case 4457:
|
|
998
|
+
case 2921:
|
|
999
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1000
|
+
case 5572:
|
|
1001
|
+
case 6356:
|
|
1002
|
+
case 5844:
|
|
1003
|
+
case 3191:
|
|
1004
|
+
case 6645:
|
|
1005
|
+
case 3005:
|
|
1006
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1007
|
+
case 6391:
|
|
1008
|
+
case 5879:
|
|
1009
|
+
case 5623:
|
|
1010
|
+
case 6135:
|
|
1011
|
+
case 4599:
|
|
1012
|
+
case 4855:
|
|
1013
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1014
|
+
case 4215:
|
|
1015
|
+
case 6389:
|
|
1016
|
+
case 5109:
|
|
1017
|
+
case 5365:
|
|
1018
|
+
case 5621:
|
|
1019
|
+
case 3829:
|
|
1020
|
+
return O + e + e;
|
|
1021
|
+
// tab-size
|
|
1022
|
+
case 4789:
|
|
1023
|
+
return Ke + e + e;
|
|
1024
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1025
|
+
case 5349:
|
|
1026
|
+
case 4246:
|
|
1027
|
+
case 4810:
|
|
1028
|
+
case 6968:
|
|
1029
|
+
case 2756:
|
|
1030
|
+
return O + e + Ke + e + V + e + e;
|
|
1031
|
+
// writing-mode
|
|
1032
|
+
case 5936:
|
|
1033
|
+
switch (z(e, t + 11)) {
|
|
1034
|
+
// vertical-l(r)
|
|
1035
|
+
case 114:
|
|
1036
|
+
return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
1037
|
+
// vertical-r(l)
|
|
1038
|
+
case 108:
|
|
1039
|
+
return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
1040
|
+
// horizontal(-)tb
|
|
1041
|
+
case 45:
|
|
1042
|
+
return O + e + V + k(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
1043
|
+
}
|
|
1044
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
1045
|
+
case 6828:
|
|
1046
|
+
case 4268:
|
|
1047
|
+
case 2903:
|
|
1048
|
+
return O + e + V + e + e;
|
|
1049
|
+
// order
|
|
1050
|
+
case 6165:
|
|
1051
|
+
return O + e + V + "flex-" + e + e;
|
|
1052
|
+
// align-items
|
|
1053
|
+
case 5187:
|
|
1054
|
+
return O + e + k(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + V + "flex-$1$2") + e;
|
|
1055
|
+
// align-self
|
|
1056
|
+
case 5443:
|
|
1057
|
+
return O + e + V + "flex-item-" + k(e, /flex-|-self/g, "") + (he(e, /flex-|baseline/) ? "" : V + "grid-row-" + k(e, /flex-|-self/g, "")) + e;
|
|
1058
|
+
// align-content
|
|
1059
|
+
case 4675:
|
|
1060
|
+
return O + e + V + "flex-line-pack" + k(e, /align-content|flex-|-self/g, "") + e;
|
|
1061
|
+
// flex-shrink
|
|
1062
|
+
case 5548:
|
|
1063
|
+
return O + e + V + k(e, "shrink", "negative") + e;
|
|
1064
|
+
// flex-basis
|
|
1065
|
+
case 5292:
|
|
1066
|
+
return O + e + V + k(e, "basis", "preferred-size") + e;
|
|
1067
|
+
// flex-grow
|
|
1068
|
+
case 6060:
|
|
1069
|
+
return O + "box-" + k(e, "-grow", "") + O + e + V + k(e, "grow", "positive") + e;
|
|
1070
|
+
// transition
|
|
1071
|
+
case 4554:
|
|
1072
|
+
return O + k(e, /([^-])(transform)/g, "$1" + O + "$2") + e;
|
|
1073
|
+
// cursor
|
|
1074
|
+
case 6187:
|
|
1075
|
+
return k(k(k(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e;
|
|
1076
|
+
// background, background-image
|
|
1077
|
+
case 5495:
|
|
1078
|
+
case 3959:
|
|
1079
|
+
return k(e, /(image-set\([^]*)/, O + "$1$`$1");
|
|
1080
|
+
// justify-content
|
|
1081
|
+
case 4968:
|
|
1082
|
+
return k(k(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e;
|
|
1083
|
+
// justify-self
|
|
1084
|
+
case 4200:
|
|
1085
|
+
if (!he(e, /flex-|baseline/)) return V + "grid-column-align" + Ve(e, t) + e;
|
|
1086
|
+
break;
|
|
1087
|
+
// grid-template-(columns|rows)
|
|
1088
|
+
case 2592:
|
|
1089
|
+
case 3360:
|
|
1090
|
+
return V + k(e, "template-", "") + e;
|
|
1091
|
+
// grid-(row|column)-start
|
|
1092
|
+
case 4384:
|
|
1093
|
+
case 3616:
|
|
1094
|
+
return n && n.some(function(r, i) {
|
|
1095
|
+
return t = i, he(r.props, /grid-\w+-end/);
|
|
1096
|
+
}) ? ~at(e + (n = n[t].value), "span", 0) ? e : V + k(e, "-start", "") + e + V + "grid-row-span:" + (~at(n, "span", 0) ? he(n, /\d+/) : +he(n, /\d+/) - +he(e, /\d+/)) + ";" : V + k(e, "-start", "") + e;
|
|
1097
|
+
// grid-(row|column)-end
|
|
1098
|
+
case 4896:
|
|
1099
|
+
case 4128:
|
|
1100
|
+
return n && n.some(function(r) {
|
|
1101
|
+
return he(r.props, /grid-\w+-start/);
|
|
1102
|
+
}) ? e : V + k(k(e, "-end", "-span"), "span ", "") + e;
|
|
1103
|
+
// (margin|padding)-inline-(start|end)
|
|
1104
|
+
case 4095:
|
|
1105
|
+
case 3583:
|
|
1106
|
+
case 4068:
|
|
1107
|
+
case 2532:
|
|
1108
|
+
return k(e, /(.+)-inline(.+)/, O + "$1$2") + e;
|
|
1109
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1110
|
+
case 8116:
|
|
1111
|
+
case 7059:
|
|
1112
|
+
case 5753:
|
|
1113
|
+
case 5535:
|
|
1114
|
+
case 5445:
|
|
1115
|
+
case 5701:
|
|
1116
|
+
case 4933:
|
|
1117
|
+
case 4677:
|
|
1118
|
+
case 5533:
|
|
1119
|
+
case 5789:
|
|
1120
|
+
case 5021:
|
|
1121
|
+
case 4765:
|
|
1122
|
+
if (de(e) - 1 - t > 6)
|
|
1123
|
+
switch (z(e, t + 1)) {
|
|
1124
|
+
// (m)ax-content, (m)in-content
|
|
1125
|
+
case 109:
|
|
1126
|
+
if (z(e, t + 4) !== 45)
|
|
1127
|
+
break;
|
|
1128
|
+
// (f)ill-available, (f)it-content
|
|
1183
1129
|
case 102:
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
return s + ";";
|
|
1187
|
-
case 938:
|
|
1188
|
-
if (s.charCodeAt(5) === 45) switch (s.charCodeAt(6)) {
|
|
1189
|
-
case 105:
|
|
1190
|
-
return y = s.replace("-items", ""), "-webkit-" + s + "-webkit-box-" + y + "-ms-flex-" + y + s;
|
|
1130
|
+
return k(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + Ke + (z(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1131
|
+
// (s)tretch
|
|
1191
1132
|
case 115:
|
|
1192
|
-
return "
|
|
1193
|
-
default:
|
|
1194
|
-
return "-webkit-" + s + "-ms-flex-line-pack" + s.replace("align-content", "").replace(te, "") + s;
|
|
1133
|
+
return ~at(e, "stretch", 0) ? Gn(k(e, "stretch", "fill-available"), t, n) + e : e;
|
|
1195
1134
|
}
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
function d(P, S, T, D, s, V, y, G, N, H) {
|
|
1218
|
-
for (var h = 0, oe = S, ae; h < pe; ++h)
|
|
1219
|
-
switch (ae = Q[h].call(v, P, oe, T, D, s, V, y, G, N, H)) {
|
|
1220
|
-
case void 0:
|
|
1221
|
-
case !1:
|
|
1222
|
-
case !0:
|
|
1223
|
-
case null:
|
|
1224
|
-
break;
|
|
1225
|
-
default:
|
|
1226
|
-
oe = ae;
|
|
1135
|
+
break;
|
|
1136
|
+
// grid-(column|row)
|
|
1137
|
+
case 5152:
|
|
1138
|
+
case 5920:
|
|
1139
|
+
return k(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, i, a, l, u, s, d) {
|
|
1140
|
+
return V + i + ":" + a + d + (l ? V + i + "-span:" + (u ? s : +s - +a) + d : "") + e;
|
|
1141
|
+
});
|
|
1142
|
+
// position: sticky
|
|
1143
|
+
case 4949:
|
|
1144
|
+
if (z(e, t + 6) === 121)
|
|
1145
|
+
return k(e, ":", ":" + O) + e;
|
|
1146
|
+
break;
|
|
1147
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
1148
|
+
case 6444:
|
|
1149
|
+
switch (z(e, z(e, 14) === 45 ? 18 : 11)) {
|
|
1150
|
+
// (inline-)?fle(x)
|
|
1151
|
+
case 120:
|
|
1152
|
+
return k(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + O + (z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + V + "$2box$3") + e;
|
|
1153
|
+
// (inline-)?gri(d)
|
|
1154
|
+
case 100:
|
|
1155
|
+
return k(e, ":", ":" + V) + e;
|
|
1227
1156
|
}
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
default:
|
|
1237
|
-
if (typeof P == "function") Q[pe++] = P;
|
|
1238
|
-
else if (typeof P == "object") for (var S = 0, T = P.length; S < T; ++S)
|
|
1239
|
-
u(P[S]);
|
|
1240
|
-
else Ee = !!P | 0;
|
|
1241
|
-
}
|
|
1242
|
-
return u;
|
|
1243
|
-
}
|
|
1244
|
-
function f(P) {
|
|
1245
|
-
return P = P.prefix, P !== void 0 && (Pe = null, P ? typeof P != "function" ? K = 1 : (K = 2, Pe = P) : K = 0), f;
|
|
1157
|
+
break;
|
|
1158
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
1159
|
+
case 5719:
|
|
1160
|
+
case 2647:
|
|
1161
|
+
case 2135:
|
|
1162
|
+
case 3927:
|
|
1163
|
+
case 2391:
|
|
1164
|
+
return k(e, "scroll-", "scroll-snap-") + e;
|
|
1246
1165
|
}
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1166
|
+
return e;
|
|
1167
|
+
}
|
|
1168
|
+
function ft(e, t) {
|
|
1169
|
+
for (var n = "", r = 0; r < e.length; r++)
|
|
1170
|
+
n += t(e[r], r, e, t) || "";
|
|
1171
|
+
return n;
|
|
1172
|
+
}
|
|
1173
|
+
function Uo(e, t, n, r) {
|
|
1174
|
+
switch (e.type) {
|
|
1175
|
+
case _o:
|
|
1176
|
+
if (e.children.length) break;
|
|
1177
|
+
case Lo:
|
|
1178
|
+
case Gt:
|
|
1179
|
+
return e.return = e.return || e.value;
|
|
1180
|
+
case Bn:
|
|
1181
|
+
return "";
|
|
1182
|
+
case Un:
|
|
1183
|
+
return e.return = e.value + "{" + ft(e.children, r) + "}";
|
|
1184
|
+
case bt:
|
|
1185
|
+
if (!de(e.value = e.props.join(","))) return "";
|
|
1255
1186
|
}
|
|
1256
|
-
|
|
1257
|
-
|
|
1187
|
+
return de(n = ft(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
1188
|
+
}
|
|
1189
|
+
function Wo(e) {
|
|
1190
|
+
var t = qn(e);
|
|
1191
|
+
return function(n, r, i, a) {
|
|
1192
|
+
for (var l = "", u = 0; u < t; u++)
|
|
1193
|
+
l += e[u](n, r, i, a) || "";
|
|
1194
|
+
return l;
|
|
1195
|
+
};
|
|
1258
1196
|
}
|
|
1259
|
-
|
|
1197
|
+
function Yo(e) {
|
|
1198
|
+
return function(t) {
|
|
1199
|
+
t.root || (t = t.return) && e(t);
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
function qo(e, t, n, r) {
|
|
1203
|
+
if (e.length > -1 && !e.return)
|
|
1204
|
+
switch (e.type) {
|
|
1205
|
+
case Gt:
|
|
1206
|
+
e.return = Gn(e.value, e.length, n);
|
|
1207
|
+
return;
|
|
1208
|
+
case Un:
|
|
1209
|
+
return ft([we(e, { value: k(e.value, "@", "@" + O) })], r);
|
|
1210
|
+
case bt:
|
|
1211
|
+
if (e.length)
|
|
1212
|
+
return Do(n = e.props, function(i) {
|
|
1213
|
+
switch (he(i, r = /(::plac\w+|:read-\w+)/)) {
|
|
1214
|
+
// :read-(only|write)
|
|
1215
|
+
case ":read-only":
|
|
1216
|
+
case ":read-write":
|
|
1217
|
+
Me(we(e, { props: [k(i, /:(read-\w+)/, ":" + Ke + "$1")] })), Me(we(e, { props: [i] })), Ft(e, { props: wn(n, r) });
|
|
1218
|
+
break;
|
|
1219
|
+
// :placeholder
|
|
1220
|
+
case "::placeholder":
|
|
1221
|
+
Me(we(e, { props: [k(i, /:(plac\w+)/, ":" + O + "input-$1")] })), Me(we(e, { props: [k(i, /:(plac\w+)/, ":" + Ke + "$1")] })), Me(we(e, { props: [k(i, /:(plac\w+)/, V + "input-$1")] })), Me(we(e, { props: [i] })), Ft(e, { props: wn(n, r) });
|
|
1222
|
+
break;
|
|
1223
|
+
}
|
|
1224
|
+
return "";
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
var Zo = {
|
|
1260
1229
|
animationIterationCount: 1,
|
|
1230
|
+
aspectRatio: 1,
|
|
1261
1231
|
borderImageOutset: 1,
|
|
1262
1232
|
borderImageSlice: 1,
|
|
1263
1233
|
borderImageWidth: 1,
|
|
@@ -1303,111 +1273,111 @@ var _n = {
|
|
|
1303
1273
|
strokeMiterlimit: 1,
|
|
1304
1274
|
strokeOpacity: 1,
|
|
1305
1275
|
strokeWidth: 1
|
|
1276
|
+
}, Le = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Xn = "active", Jn = "data-styled-version", kt = "6.1.19", Jt = `/*!sc*/
|
|
1277
|
+
`, pt = typeof window < "u" && typeof document < "u", Go = !!(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"), Sn = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), Xo = function(e, t) {
|
|
1278
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1279
|
+
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
1280
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1281
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
1282
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
1283
|
+
`, i = console.error;
|
|
1284
|
+
try {
|
|
1285
|
+
var a = !0;
|
|
1286
|
+
console.error = function(l) {
|
|
1287
|
+
for (var u = [], s = 1; s < arguments.length; s++) u[s - 1] = arguments[s];
|
|
1288
|
+
Sn.test(l) ? (a = !1, rt.delete(r)) : i.apply(void 0, je([l], u, !1));
|
|
1289
|
+
}, Y(), a && !rt.has(r) && (console.warn(r), rt.add(r));
|
|
1290
|
+
} catch (l) {
|
|
1291
|
+
Sn.test(l.message) && rt.delete(r);
|
|
1292
|
+
} finally {
|
|
1293
|
+
console.error = i;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}, Tt = Object.freeze([]), $e = Object.freeze({});
|
|
1297
|
+
function Jo(e, t, n) {
|
|
1298
|
+
return n === void 0 && (n = $e), e.theme !== n.theme && e.theme || t || n.theme;
|
|
1299
|
+
}
|
|
1300
|
+
var Nt = /* @__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"]), Ko = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Qo = /(^-|-$)/g;
|
|
1301
|
+
function Cn(e) {
|
|
1302
|
+
return e.replace(Ko, "-").replace(Qo, "");
|
|
1303
|
+
}
|
|
1304
|
+
var ei = /(a)(d)/gi, ot = 52, kn = function(e) {
|
|
1305
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1306
1306
|
};
|
|
1307
|
-
function
|
|
1308
|
-
var
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
};
|
|
1307
|
+
function $t(e) {
|
|
1308
|
+
var t, n = "";
|
|
1309
|
+
for (t = Math.abs(e); t > ot; t = t / ot | 0) n = kn(t % ot) + n;
|
|
1310
|
+
return (kn(t % ot) + n).replace(ei, "$1-$2");
|
|
1312
1311
|
}
|
|
1313
|
-
var
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
function
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
$$typeof: !0,
|
|
1350
|
-
compare: !0,
|
|
1351
|
-
defaultProps: !0,
|
|
1352
|
-
displayName: !0,
|
|
1353
|
-
propTypes: !0,
|
|
1354
|
-
type: !0
|
|
1355
|
-
}, c = {};
|
|
1356
|
-
c[e.ForwardRef] = n, c[e.Memo] = i;
|
|
1357
|
-
function l(E) {
|
|
1358
|
-
return e.isMemo(E) ? i : c[E.$$typeof] || r;
|
|
1359
|
-
}
|
|
1360
|
-
var d = Object.defineProperty, u = Object.getOwnPropertyNames, f = Object.getOwnPropertySymbols, v = Object.getOwnPropertyDescriptor, w = Object.getPrototypeOf, L = Object.prototype;
|
|
1361
|
-
function R(E, k, _) {
|
|
1362
|
-
if (typeof k != "string") {
|
|
1363
|
-
if (L) {
|
|
1364
|
-
var j = w(k);
|
|
1365
|
-
j && j !== L && R(E, j, _);
|
|
1366
|
-
}
|
|
1367
|
-
var x = u(k);
|
|
1368
|
-
f && (x = x.concat(f(k)));
|
|
1369
|
-
for (var g = l(E), A = l(k), p = 0; p < x.length; ++p) {
|
|
1370
|
-
var U = x[p];
|
|
1371
|
-
if (!t[U] && !(_ && _[U]) && !(A && A[U]) && !(g && g[U])) {
|
|
1372
|
-
var de = v(k, U);
|
|
1373
|
-
try {
|
|
1374
|
-
d(E, U, de);
|
|
1375
|
-
} catch {
|
|
1376
|
-
}
|
|
1312
|
+
var Dt, Kn = 5381, ke = function(e, t) {
|
|
1313
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
1314
|
+
return e;
|
|
1315
|
+
}, Qn = function(e) {
|
|
1316
|
+
return ke(Kn, e);
|
|
1317
|
+
};
|
|
1318
|
+
function er(e) {
|
|
1319
|
+
return $t(Qn(e) >>> 0);
|
|
1320
|
+
}
|
|
1321
|
+
function tr(e) {
|
|
1322
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1323
|
+
}
|
|
1324
|
+
function At(e) {
|
|
1325
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1326
|
+
}
|
|
1327
|
+
var nr = typeof Symbol == "function" && Symbol.for, rr = nr ? Symbol.for("react.memo") : 60115, ti = nr ? Symbol.for("react.forward_ref") : 60112, ni = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, ri = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, or = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, oi = ((Dt = {})[ti] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Dt[rr] = or, Dt);
|
|
1328
|
+
function Tn(e) {
|
|
1329
|
+
return ("type" in (t = e) && t.type.$$typeof) === rr ? or : "$$typeof" in e ? oi[e.$$typeof] : ni;
|
|
1330
|
+
var t;
|
|
1331
|
+
}
|
|
1332
|
+
var ii = Object.defineProperty, si = Object.getOwnPropertyNames, En = Object.getOwnPropertySymbols, ai = Object.getOwnPropertyDescriptor, ci = Object.getPrototypeOf, Pn = Object.prototype;
|
|
1333
|
+
function ir(e, t, n) {
|
|
1334
|
+
if (typeof t != "string") {
|
|
1335
|
+
if (Pn) {
|
|
1336
|
+
var r = ci(t);
|
|
1337
|
+
r && r !== Pn && ir(e, r, n);
|
|
1338
|
+
}
|
|
1339
|
+
var i = si(t);
|
|
1340
|
+
En && (i = i.concat(En(t)));
|
|
1341
|
+
for (var a = Tn(e), l = Tn(t), u = 0; u < i.length; ++u) {
|
|
1342
|
+
var s = i[u];
|
|
1343
|
+
if (!(s in ri || n && n[s] || l && s in l || a && s in a)) {
|
|
1344
|
+
var d = ai(t, s);
|
|
1345
|
+
try {
|
|
1346
|
+
ii(e, s, d);
|
|
1347
|
+
} catch {
|
|
1377
1348
|
}
|
|
1378
1349
|
}
|
|
1379
1350
|
}
|
|
1380
|
-
return E;
|
|
1381
1351
|
}
|
|
1382
|
-
return
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
const On = /* @__PURE__ */ yn(In);
|
|
1386
|
-
function je() {
|
|
1387
|
-
return (je = Object.assign || function(e) {
|
|
1388
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
1389
|
-
var t = arguments[r];
|
|
1390
|
-
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
1391
|
-
}
|
|
1392
|
-
return e;
|
|
1393
|
-
}).apply(this, arguments);
|
|
1394
|
-
}
|
|
1395
|
-
var qt = function(e, r) {
|
|
1396
|
-
for (var t = [e[0]], n = 0, i = r.length; n < i; n += 1) t.push(r[n], e[n + 1]);
|
|
1397
|
-
return t;
|
|
1398
|
-
}, bt = function(e) {
|
|
1399
|
-
return e !== null && typeof e == "object" && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === "[object Object]" && !Rt.typeOf(e);
|
|
1400
|
-
}, it = Object.freeze([]), Le = Object.freeze({});
|
|
1401
|
-
function Xe(e) {
|
|
1352
|
+
return e;
|
|
1353
|
+
}
|
|
1354
|
+
function He(e) {
|
|
1402
1355
|
return typeof e == "function";
|
|
1403
1356
|
}
|
|
1404
|
-
function
|
|
1405
|
-
return
|
|
1357
|
+
function Kt(e) {
|
|
1358
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1359
|
+
}
|
|
1360
|
+
function Te(e, t) {
|
|
1361
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1406
1362
|
}
|
|
1407
|
-
function
|
|
1408
|
-
|
|
1363
|
+
function Ht(e, t) {
|
|
1364
|
+
if (e.length === 0) return "";
|
|
1365
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
|
|
1366
|
+
return n;
|
|
1409
1367
|
}
|
|
1410
|
-
|
|
1368
|
+
function ze(e) {
|
|
1369
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1370
|
+
}
|
|
1371
|
+
function zt(e, t, n) {
|
|
1372
|
+
if (n === void 0 && (n = !1), !n && !ze(e) && !Array.isArray(e)) return t;
|
|
1373
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = zt(e[r], t[r]);
|
|
1374
|
+
else if (ze(t)) for (var r in t) e[r] = zt(e[r], t[r]);
|
|
1375
|
+
return e;
|
|
1376
|
+
}
|
|
1377
|
+
function Qt(e, t) {
|
|
1378
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1379
|
+
}
|
|
1380
|
+
var li = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1411
1381
|
|
|
1412
1382
|
`, 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.
|
|
1413
1383
|
|
|
@@ -1448,452 +1418,364 @@ as for instance in your render method then you may be running into this limitati
|
|
|
1448
1418
|
|
|
1449
1419
|
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1450
1420
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
1451
|
-
|
|
1452
|
-
function
|
|
1453
|
-
for (var e =
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1421
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1422
|
+
function ui() {
|
|
1423
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1424
|
+
for (var n = e[0], r = [], i = 1, a = e.length; i < a; i += 1) r.push(e[i]);
|
|
1425
|
+
return r.forEach(function(l) {
|
|
1426
|
+
n = n.replace(/%[a-z]/, l);
|
|
1427
|
+
}), n;
|
|
1457
1428
|
}
|
|
1458
1429
|
function We(e) {
|
|
1459
|
-
for (var
|
|
1460
|
-
|
|
1430
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1431
|
+
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(ui.apply(void 0, je([li[e]], t, !1)).trim());
|
|
1461
1432
|
}
|
|
1462
|
-
var
|
|
1433
|
+
var di = (function() {
|
|
1463
1434
|
function e(t) {
|
|
1464
1435
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1465
1436
|
}
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
for (var n = 0, i = 0; i < t; i++) n += this.groupSizes[i];
|
|
1437
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1438
|
+
for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
|
|
1469
1439
|
return n;
|
|
1470
|
-
},
|
|
1440
|
+
}, e.prototype.insertRules = function(t, n) {
|
|
1471
1441
|
if (t >= this.groupSizes.length) {
|
|
1472
|
-
for (var
|
|
1473
|
-
this.groupSizes = new Uint32Array(
|
|
1474
|
-
for (var
|
|
1442
|
+
for (var r = this.groupSizes, i = r.length, a = i; t >= a; ) if ((a <<= 1) < 0) throw We(16, "".concat(t));
|
|
1443
|
+
this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
|
|
1444
|
+
for (var l = i; l < a; l++) this.groupSizes[l] = 0;
|
|
1475
1445
|
}
|
|
1476
|
-
for (var u = this.indexOfGroup(t + 1),
|
|
1477
|
-
},
|
|
1446
|
+
for (var u = this.indexOfGroup(t + 1), s = (l = 0, n.length); l < s; l++) this.tag.insertRule(u, n[l]) && (this.groupSizes[t]++, u++);
|
|
1447
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1478
1448
|
if (t < this.length) {
|
|
1479
|
-
var n = this.groupSizes[t],
|
|
1449
|
+
var n = this.groupSizes[t], r = this.indexOfGroup(t), i = r + n;
|
|
1480
1450
|
this.groupSizes[t] = 0;
|
|
1481
|
-
for (var
|
|
1451
|
+
for (var a = r; a < i; a++) this.tag.deleteRule(r);
|
|
1482
1452
|
}
|
|
1483
|
-
},
|
|
1453
|
+
}, e.prototype.getGroup = function(t) {
|
|
1484
1454
|
var n = "";
|
|
1485
1455
|
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1486
|
-
for (var
|
|
1487
|
-
`;
|
|
1456
|
+
for (var r = this.groupSizes[t], i = this.indexOfGroup(t), a = i + r, l = i; l < a; l++) n += "".concat(this.tag.getRule(l)).concat(Jt);
|
|
1488
1457
|
return n;
|
|
1489
1458
|
}, e;
|
|
1490
|
-
})(),
|
|
1491
|
-
if (
|
|
1492
|
-
for (;
|
|
1493
|
-
var
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
u !== 0 && ($n(f, u), Yn(e, f, d[3]), e.getTag().insertRules(u, n)), n.length = 0;
|
|
1510
|
-
} else n.push(l);
|
|
1459
|
+
})(), fi = 1 << 30, ut = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), dt = 1, it = function(e) {
|
|
1460
|
+
if (ut.has(e)) return ut.get(e);
|
|
1461
|
+
for (; ht.has(dt); ) dt++;
|
|
1462
|
+
var t = dt++;
|
|
1463
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > fi)) throw We(16, "".concat(t));
|
|
1464
|
+
return ut.set(e, t), ht.set(t, e), t;
|
|
1465
|
+
}, pi = function(e, t) {
|
|
1466
|
+
dt = t + 1, ut.set(e, t), ht.set(t, e);
|
|
1467
|
+
}, hi = "style[".concat(Le, "][").concat(Jn, '="').concat(kt, '"]'), mi = new RegExp("^".concat(Le, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), gi = function(e, t, n) {
|
|
1468
|
+
for (var r, i = n.split(","), a = 0, l = i.length; a < l; a++) (r = i[a]) && e.registerName(t, r);
|
|
1469
|
+
}, yi = function(e, t) {
|
|
1470
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Jt), i = [], a = 0, l = r.length; a < l; a++) {
|
|
1471
|
+
var u = r[a].trim();
|
|
1472
|
+
if (u) {
|
|
1473
|
+
var s = u.match(mi);
|
|
1474
|
+
if (s) {
|
|
1475
|
+
var d = 0 | parseInt(s[1], 10), p = s[2];
|
|
1476
|
+
d !== 0 && (pi(p, d), gi(e, p, s[3]), e.getTag().insertRules(d, i)), i.length = 0;
|
|
1477
|
+
} else i.push(u);
|
|
1511
1478
|
}
|
|
1512
1479
|
}
|
|
1513
|
-
},
|
|
1480
|
+
}, Rn = function(e) {
|
|
1481
|
+
for (var t = document.querySelectorAll(hi), n = 0, r = t.length; n < r; n++) {
|
|
1482
|
+
var i = t[n];
|
|
1483
|
+
i && i.getAttribute(Le) !== Xn && (yi(e, i), i.parentNode && i.parentNode.removeChild(i));
|
|
1484
|
+
}
|
|
1485
|
+
};
|
|
1486
|
+
function vi() {
|
|
1514
1487
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
}, Wn = (function() {
|
|
1488
|
+
}
|
|
1489
|
+
var sr = function(e) {
|
|
1490
|
+
var t = document.head, n = e || t, r = document.createElement("style"), i = (function(u) {
|
|
1491
|
+
var s = Array.from(u.querySelectorAll("style[".concat(Le, "]")));
|
|
1492
|
+
return s[s.length - 1];
|
|
1493
|
+
})(n), a = i !== void 0 ? i.nextSibling : null;
|
|
1494
|
+
r.setAttribute(Le, Xn), r.setAttribute(Jn, kt);
|
|
1495
|
+
var l = vi();
|
|
1496
|
+
return l && r.setAttribute("nonce", l), n.insertBefore(r, a), r;
|
|
1497
|
+
}, wi = (function() {
|
|
1526
1498
|
function e(t) {
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
if (u.ownerNode === i) return u;
|
|
1499
|
+
this.element = sr(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
|
|
1500
|
+
if (n.sheet) return n.sheet;
|
|
1501
|
+
for (var r = document.styleSheets, i = 0, a = r.length; i < a; i++) {
|
|
1502
|
+
var l = r[i];
|
|
1503
|
+
if (l.ownerNode === n) return l;
|
|
1533
1504
|
}
|
|
1534
|
-
We(17);
|
|
1535
|
-
})(
|
|
1505
|
+
throw We(17);
|
|
1506
|
+
})(this.element), this.length = 0;
|
|
1536
1507
|
}
|
|
1537
|
-
|
|
1538
|
-
return r.insertRule = function(t, n) {
|
|
1508
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1539
1509
|
try {
|
|
1540
1510
|
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
1541
1511
|
} catch {
|
|
1542
1512
|
return !1;
|
|
1543
1513
|
}
|
|
1544
|
-
},
|
|
1514
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1545
1515
|
this.sheet.deleteRule(t), this.length--;
|
|
1546
|
-
},
|
|
1516
|
+
}, e.prototype.getRule = function(t) {
|
|
1547
1517
|
var n = this.sheet.cssRules[t];
|
|
1548
|
-
return n
|
|
1518
|
+
return n && n.cssText ? n.cssText : "";
|
|
1549
1519
|
}, e;
|
|
1550
|
-
})(),
|
|
1520
|
+
})(), bi = (function() {
|
|
1551
1521
|
function e(t) {
|
|
1552
|
-
|
|
1553
|
-
this.nodes = n.childNodes, this.length = 0;
|
|
1522
|
+
this.element = sr(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1554
1523
|
}
|
|
1555
|
-
|
|
1556
|
-
return r.insertRule = function(t, n) {
|
|
1524
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1557
1525
|
if (t <= this.length && t >= 0) {
|
|
1558
|
-
var
|
|
1559
|
-
return this.element.insertBefore(
|
|
1526
|
+
var r = document.createTextNode(n);
|
|
1527
|
+
return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
|
|
1560
1528
|
}
|
|
1561
1529
|
return !1;
|
|
1562
|
-
},
|
|
1530
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1563
1531
|
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1564
|
-
},
|
|
1532
|
+
}, e.prototype.getRule = function(t) {
|
|
1565
1533
|
return t < this.length ? this.nodes[t].textContent : "";
|
|
1566
1534
|
}, e;
|
|
1567
|
-
})(),
|
|
1535
|
+
})(), xi = (function() {
|
|
1568
1536
|
function e(t) {
|
|
1569
1537
|
this.rules = [], this.length = 0;
|
|
1570
1538
|
}
|
|
1571
|
-
|
|
1572
|
-
return r.insertRule = function(t, n) {
|
|
1539
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1573
1540
|
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
1574
|
-
},
|
|
1541
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1575
1542
|
this.rules.splice(t, 1), this.length--;
|
|
1576
|
-
},
|
|
1543
|
+
}, e.prototype.getRule = function(t) {
|
|
1577
1544
|
return t < this.length ? this.rules[t] : "";
|
|
1578
1545
|
}, e;
|
|
1579
|
-
})(),
|
|
1580
|
-
function e(t, n,
|
|
1581
|
-
t === void 0 && (t =
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1546
|
+
})(), jn = pt, Si = { isServer: !pt, useCSSOMInjection: !Go }, ar = (function() {
|
|
1547
|
+
function e(t, n, r) {
|
|
1548
|
+
t === void 0 && (t = $e), n === void 0 && (n = {});
|
|
1549
|
+
var i = this;
|
|
1550
|
+
this.options = ee(ee({}, Si), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && pt && jn && (jn = !1, Rn(this)), Qt(this, function() {
|
|
1551
|
+
return (function(a) {
|
|
1552
|
+
for (var l = a.getTag(), u = l.length, s = "", d = function(g) {
|
|
1553
|
+
var w = (function(P) {
|
|
1554
|
+
return ht.get(P);
|
|
1555
|
+
})(g);
|
|
1556
|
+
if (w === void 0) return "continue";
|
|
1557
|
+
var v = a.names.get(w), E = l.getGroup(g);
|
|
1558
|
+
if (v === void 0 || !v.size || E.length === 0) return "continue";
|
|
1559
|
+
var T = "".concat(Le, ".g").concat(g, '[id="').concat(w, '"]'), M = "";
|
|
1560
|
+
v !== void 0 && v.forEach(function(P) {
|
|
1561
|
+
P.length > 0 && (M += "".concat(P, ","));
|
|
1562
|
+
}), s += "".concat(E).concat(T, '{content:"').concat(M, '"}').concat(Jt);
|
|
1563
|
+
}, p = 0; p < u; p++) d(p);
|
|
1564
|
+
return s;
|
|
1565
|
+
})(i);
|
|
1566
|
+
});
|
|
1587
1567
|
}
|
|
1588
|
-
e.registerId = function(t) {
|
|
1589
|
-
return
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
return n === void 0 && (n = !0), new e(
|
|
1594
|
-
},
|
|
1568
|
+
return e.registerId = function(t) {
|
|
1569
|
+
return it(t);
|
|
1570
|
+
}, e.prototype.rehydrate = function() {
|
|
1571
|
+
!this.server && pt && Rn(this);
|
|
1572
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1573
|
+
return n === void 0 && (n = !0), new e(ee(ee({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1574
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1595
1575
|
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1596
|
-
},
|
|
1597
|
-
return this.tag || (this.tag = (
|
|
1598
|
-
|
|
1599
|
-
|
|
1576
|
+
}, e.prototype.getTag = function() {
|
|
1577
|
+
return this.tag || (this.tag = (t = (function(n) {
|
|
1578
|
+
var r = n.useCSSOMInjection, i = n.target;
|
|
1579
|
+
return n.isServer ? new xi(i) : r ? new wi(i) : new bi(i);
|
|
1580
|
+
})(this.options), new di(t)));
|
|
1581
|
+
var t;
|
|
1582
|
+
}, e.prototype.hasNameForId = function(t, n) {
|
|
1600
1583
|
return this.names.has(t) && this.names.get(t).has(n);
|
|
1601
|
-
},
|
|
1602
|
-
if (
|
|
1584
|
+
}, e.prototype.registerName = function(t, n) {
|
|
1585
|
+
if (it(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1603
1586
|
else {
|
|
1604
|
-
var
|
|
1605
|
-
|
|
1587
|
+
var r = /* @__PURE__ */ new Set();
|
|
1588
|
+
r.add(n), this.names.set(t, r);
|
|
1606
1589
|
}
|
|
1607
|
-
},
|
|
1608
|
-
this.registerName(t, n), this.getTag().insertRules(
|
|
1609
|
-
},
|
|
1590
|
+
}, e.prototype.insertRules = function(t, n, r) {
|
|
1591
|
+
this.registerName(t, n), this.getTag().insertRules(it(t), r);
|
|
1592
|
+
}, e.prototype.clearNames = function(t) {
|
|
1610
1593
|
this.names.has(t) && this.names.get(t).clear();
|
|
1611
|
-
},
|
|
1612
|
-
this.getTag().clearGroup(
|
|
1613
|
-
},
|
|
1594
|
+
}, e.prototype.clearRules = function(t) {
|
|
1595
|
+
this.getTag().clearGroup(it(t)), this.clearNames(t);
|
|
1596
|
+
}, e.prototype.clearTag = function() {
|
|
1614
1597
|
this.tag = void 0;
|
|
1615
|
-
}, r.toString = function() {
|
|
1616
|
-
return (function(t) {
|
|
1617
|
-
for (var n = t.getTag(), i = n.length, c = "", l = 0; l < i; l++) {
|
|
1618
|
-
var d = Vn(l);
|
|
1619
|
-
if (d !== void 0) {
|
|
1620
|
-
var u = t.names.get(d), f = n.getGroup(l);
|
|
1621
|
-
if (u && f && u.size) {
|
|
1622
|
-
var v = ze + ".g" + l + '[id="' + d + '"]', w = "";
|
|
1623
|
-
u !== void 0 && u.forEach((function(L) {
|
|
1624
|
-
L.length > 0 && (w += L + ",");
|
|
1625
|
-
})), c += "" + f + v + '{content:"' + w + `"}/*!sc*/
|
|
1626
|
-
`;
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
return c;
|
|
1631
|
-
})(this);
|
|
1632
1598
|
}, e;
|
|
1633
|
-
})(),
|
|
1634
|
-
|
|
1599
|
+
})(), Ci = /&/g, ki = /^\s*\/\/.*$/gm;
|
|
1600
|
+
function cr(e, t) {
|
|
1601
|
+
return e.map(function(n) {
|
|
1602
|
+
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) {
|
|
1603
|
+
return "".concat(t, " ").concat(r);
|
|
1604
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = cr(n.children, t)), n;
|
|
1605
|
+
});
|
|
1606
|
+
}
|
|
1607
|
+
function Ti(e) {
|
|
1608
|
+
var t, n, r, i = $e, a = i.options, l = a === void 0 ? $e : a, u = i.plugins, s = u === void 0 ? Tt : u, d = function(w, v, E) {
|
|
1609
|
+
return E.startsWith(n) && E.endsWith(n) && E.replaceAll(n, "").length > 0 ? ".".concat(t) : w;
|
|
1610
|
+
}, p = s.slice();
|
|
1611
|
+
p.push(function(w) {
|
|
1612
|
+
w.type === bt && w.value.includes("&") && (w.props[0] = w.props[0].replace(Ci, n).replace(r, d));
|
|
1613
|
+
}), l.prefix && p.push(qo), p.push(Uo);
|
|
1614
|
+
var g = function(w, v, E, T) {
|
|
1615
|
+
v === void 0 && (v = ""), E === void 0 && (E = ""), T === void 0 && (T = "&"), t = T, n = v, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1616
|
+
var M = w.replace(ki, ""), P = zo(E || v ? "".concat(E, " ").concat(v, " { ").concat(M, " }") : M);
|
|
1617
|
+
l.namespace && (P = cr(P, l.namespace));
|
|
1618
|
+
var b = [];
|
|
1619
|
+
return ft(P, Wo(p.concat(Yo(function(h) {
|
|
1620
|
+
return b.push(h);
|
|
1621
|
+
})))), b;
|
|
1622
|
+
};
|
|
1623
|
+
return g.hash = s.length ? s.reduce(function(w, v) {
|
|
1624
|
+
return v.name || We(15), ke(w, v.name);
|
|
1625
|
+
}, Kn).toString() : "", g;
|
|
1626
|
+
}
|
|
1627
|
+
var Ei = new ar(), Bt = Ti(), lr = Re.createContext({ shouldForwardProp: void 0, styleSheet: Ei, stylis: Bt });
|
|
1628
|
+
lr.Consumer;
|
|
1629
|
+
Re.createContext(void 0);
|
|
1630
|
+
function Ln() {
|
|
1631
|
+
return Zt(lr);
|
|
1632
|
+
}
|
|
1633
|
+
var Ut = (function() {
|
|
1634
|
+
function e(t, n) {
|
|
1635
|
+
var r = this;
|
|
1636
|
+
this.inject = function(i, a) {
|
|
1637
|
+
a === void 0 && (a = Bt);
|
|
1638
|
+
var l = r.name + a.hash;
|
|
1639
|
+
i.hasNameForId(r.id, l) || i.insertRules(r.id, l, a(r.rules, l, "@keyframes"));
|
|
1640
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Qt(this, function() {
|
|
1641
|
+
throw We(12, String(r.name));
|
|
1642
|
+
});
|
|
1643
|
+
}
|
|
1644
|
+
return e.prototype.getName = function(t) {
|
|
1645
|
+
return t === void 0 && (t = Bt), this.name + t.hash;
|
|
1646
|
+
}, e;
|
|
1647
|
+
})(), Pi = function(e) {
|
|
1648
|
+
return e >= "A" && e <= "Z";
|
|
1635
1649
|
};
|
|
1636
|
-
function
|
|
1637
|
-
var
|
|
1638
|
-
|
|
1639
|
-
|
|
1650
|
+
function _n(e) {
|
|
1651
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1652
|
+
var r = e[n];
|
|
1653
|
+
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
1654
|
+
Pi(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
1655
|
+
}
|
|
1656
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1640
1657
|
}
|
|
1641
|
-
var
|
|
1642
|
-
|
|
1643
|
-
return e;
|
|
1658
|
+
var ur = function(e) {
|
|
1659
|
+
return e == null || e === !1 || e === "";
|
|
1644
1660
|
}, dr = function(e) {
|
|
1645
|
-
|
|
1661
|
+
var t, n, r = [];
|
|
1662
|
+
for (var i in e) {
|
|
1663
|
+
var a = e[i];
|
|
1664
|
+
e.hasOwnProperty(i) && !ur(a) && (Array.isArray(a) && a.isCss || He(a) ? r.push("".concat(_n(i), ":"), a, ";") : ze(a) ? r.push.apply(r, je(je(["".concat(i, " {")], dr(a), !1), ["}"], !1)) : r.push("".concat(_n(i), ": ").concat((t = i, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in Zo || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1665
|
+
}
|
|
1666
|
+
return r;
|
|
1646
1667
|
};
|
|
1647
|
-
function
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1668
|
+
function Pe(e, t, n, r) {
|
|
1669
|
+
if (ur(e)) return [];
|
|
1670
|
+
if (Kt(e)) return [".".concat(e.styledComponentId)];
|
|
1671
|
+
if (He(e)) {
|
|
1672
|
+
if (!He(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
|
|
1673
|
+
var i = e(t);
|
|
1674
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof Ut || ze(i) || i === null || console.error("".concat(tr(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.")), Pe(i, t, n, r);
|
|
1675
|
+
}
|
|
1676
|
+
var a;
|
|
1677
|
+
return e instanceof Ut ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : ze(e) ? dr(e) : Array.isArray(e) ? Array.prototype.concat.apply(Tt, e.map(function(l) {
|
|
1678
|
+
return Pe(l, t, n, r);
|
|
1679
|
+
})) : [e.toString()];
|
|
1680
|
+
}
|
|
1681
|
+
function Ri(e) {
|
|
1682
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1683
|
+
var n = e[t];
|
|
1684
|
+
if (He(n) && !Kt(n)) return !1;
|
|
1651
1685
|
}
|
|
1652
1686
|
return !0;
|
|
1653
1687
|
}
|
|
1654
|
-
var
|
|
1655
|
-
function e(
|
|
1656
|
-
this.rules =
|
|
1688
|
+
var ji = Qn(kt), Li = (function() {
|
|
1689
|
+
function e(t, n, r) {
|
|
1690
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Ri(t), this.componentId = n, this.baseHash = ke(ji, n), this.baseStyle = r, ar.registerId(n);
|
|
1657
1691
|
}
|
|
1658
|
-
return e.prototype.generateAndInjectStyles = function(
|
|
1659
|
-
var i = this.
|
|
1660
|
-
if (this.
|
|
1692
|
+
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1693
|
+
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
1694
|
+
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) i = Te(i, this.staticRulesId);
|
|
1661
1695
|
else {
|
|
1662
|
-
var
|
|
1663
|
-
if (!
|
|
1664
|
-
var u =
|
|
1665
|
-
|
|
1696
|
+
var a = Ht(Pe(this.rules, t, n, r)), l = $t(ke(this.baseHash, a) >>> 0);
|
|
1697
|
+
if (!n.hasNameForId(this.componentId, l)) {
|
|
1698
|
+
var u = r(a, ".".concat(l), void 0, this.componentId);
|
|
1699
|
+
n.insertRules(this.componentId, l, u);
|
|
1666
1700
|
}
|
|
1667
|
-
|
|
1701
|
+
i = Te(i, l), this.staticRulesId = l;
|
|
1668
1702
|
}
|
|
1669
1703
|
else {
|
|
1670
|
-
for (var
|
|
1671
|
-
var
|
|
1672
|
-
if (typeof
|
|
1673
|
-
else if (
|
|
1674
|
-
var
|
|
1675
|
-
|
|
1704
|
+
for (var s = ke(this.baseHash, r.hash), d = "", p = 0; p < this.rules.length; p++) {
|
|
1705
|
+
var g = this.rules[p];
|
|
1706
|
+
if (typeof g == "string") d += g, process.env.NODE_ENV !== "production" && (s = ke(s, g));
|
|
1707
|
+
else if (g) {
|
|
1708
|
+
var w = Ht(Pe(g, t, n, r));
|
|
1709
|
+
s = ke(s, w + p), d += w;
|
|
1676
1710
|
}
|
|
1677
1711
|
}
|
|
1678
|
-
if (
|
|
1679
|
-
var
|
|
1680
|
-
|
|
1681
|
-
var j = n(w, "." + _, void 0, i);
|
|
1682
|
-
t.insertRules(i, _, j);
|
|
1683
|
-
}
|
|
1684
|
-
c.push(_);
|
|
1712
|
+
if (d) {
|
|
1713
|
+
var v = $t(s >>> 0);
|
|
1714
|
+
n.hasNameForId(this.componentId, v) || n.insertRules(this.componentId, v, r(d, ".".concat(v), void 0, this.componentId)), i = Te(i, v);
|
|
1685
1715
|
}
|
|
1686
1716
|
}
|
|
1687
|
-
return
|
|
1717
|
+
return i;
|
|
1688
1718
|
}, e;
|
|
1689
|
-
})(),
|
|
1690
|
-
function ro(e) {
|
|
1691
|
-
var r, t, n, i, c = Le, l = c.options, d = l === void 0 ? Le : l, u = c.plugins, f = u === void 0 ? it : u, v = new kn(d), w = [], L = /* @__PURE__ */ (function(k) {
|
|
1692
|
-
function _(j) {
|
|
1693
|
-
if (j) try {
|
|
1694
|
-
k(j + "}");
|
|
1695
|
-
} catch {
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
return function(j, x, g, A, p, U, de, te, ce, M) {
|
|
1699
|
-
switch (j) {
|
|
1700
|
-
case 1:
|
|
1701
|
-
if (ce === 0 && x.charCodeAt(0) === 64) return k(x + ";"), "";
|
|
1702
|
-
break;
|
|
1703
|
-
case 2:
|
|
1704
|
-
if (te === 0) return x + "/*|*/";
|
|
1705
|
-
break;
|
|
1706
|
-
case 3:
|
|
1707
|
-
switch (te) {
|
|
1708
|
-
case 102:
|
|
1709
|
-
case 112:
|
|
1710
|
-
return k(g[0] + x), "";
|
|
1711
|
-
default:
|
|
1712
|
-
return x + (M === 0 ? "/*|*/" : "");
|
|
1713
|
-
}
|
|
1714
|
-
case -2:
|
|
1715
|
-
x.split("/*|*/}").forEach(_);
|
|
1716
|
-
}
|
|
1717
|
-
};
|
|
1718
|
-
})((function(k) {
|
|
1719
|
-
w.push(k);
|
|
1720
|
-
})), R = function(k, _, j) {
|
|
1721
|
-
return _ === 0 && to.indexOf(j[t.length]) !== -1 || j.match(i) ? k : "." + r;
|
|
1722
|
-
};
|
|
1723
|
-
function E(k, _, j, x) {
|
|
1724
|
-
x === void 0 && (x = "&");
|
|
1725
|
-
var g = k.replace(eo, ""), A = _ && j ? j + " " + _ + " { " + g + " }" : g;
|
|
1726
|
-
return r = x, t = _, n = new RegExp("\\" + t + "\\b", "g"), i = new RegExp("(\\" + t + "\\b){2,}"), v(j || !_ ? "" : _, A);
|
|
1727
|
-
}
|
|
1728
|
-
return v.use([].concat(f, [function(k, _, j) {
|
|
1729
|
-
k === 2 && j.length && j[0].lastIndexOf(t) > 0 && (j[0] = j[0].replace(n, R));
|
|
1730
|
-
}, L, function(k) {
|
|
1731
|
-
if (k === -2) {
|
|
1732
|
-
var _ = w;
|
|
1733
|
-
return w = [], _;
|
|
1734
|
-
}
|
|
1735
|
-
}])), E.hash = f.length ? f.reduce((function(k, _) {
|
|
1736
|
-
return _.name || We(15), Me(k, _.name);
|
|
1737
|
-
}), 5381).toString() : "", E;
|
|
1738
|
-
}
|
|
1739
|
-
var fr = Ue.createContext();
|
|
1719
|
+
})(), fr = Re.createContext(void 0);
|
|
1740
1720
|
fr.Consumer;
|
|
1741
|
-
var
|
|
1742
|
-
function
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
return e.prototype.getName = function(r) {
|
|
1760
|
-
return r === void 0 && (r = Ct), this.name + r.hash;
|
|
1761
|
-
}, e;
|
|
1762
|
-
})(), ao = /([A-Z])/, so = /([A-Z])/g, co = /^ms-/, lo = function(e) {
|
|
1763
|
-
return "-" + e.toLowerCase();
|
|
1764
|
-
};
|
|
1765
|
-
function Xt(e) {
|
|
1766
|
-
return ao.test(e) ? e.replace(so, lo).replace(co, "-ms-") : e;
|
|
1767
|
-
}
|
|
1768
|
-
var Jt = function(e) {
|
|
1769
|
-
return e == null || e === !1 || e === "";
|
|
1770
|
-
};
|
|
1771
|
-
function Ye(e, r, t, n) {
|
|
1772
|
-
if (Array.isArray(e)) {
|
|
1773
|
-
for (var i, c = [], l = 0, d = e.length; l < d; l += 1) (i = Ye(e[l], r, t, n)) !== "" && (Array.isArray(i) ? c.push.apply(c, i) : c.push(i));
|
|
1774
|
-
return c;
|
|
1775
|
-
}
|
|
1776
|
-
if (Jt(e)) return "";
|
|
1777
|
-
if (kt(e)) return "." + e.styledComponentId;
|
|
1778
|
-
if (Xe(e)) {
|
|
1779
|
-
if (typeof (f = e) != "function" || f.prototype && f.prototype.isReactComponent || !r) return e;
|
|
1780
|
-
var u = e(r);
|
|
1781
|
-
return process.env.NODE_ENV !== "production" && Rt.isElement(u) && console.warn(xt(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."), Ye(u, r, t, n);
|
|
1721
|
+
var Ot = {}, In = /* @__PURE__ */ new Set();
|
|
1722
|
+
function _i(e, t, n) {
|
|
1723
|
+
var r = Kt(e), i = e, a = !At(e), l = t.attrs, u = l === void 0 ? Tt : l, s = t.componentId, d = s === void 0 ? (function(L, D) {
|
|
1724
|
+
var C = typeof L != "string" ? "sc" : Cn(L);
|
|
1725
|
+
Ot[C] = (Ot[C] || 0) + 1;
|
|
1726
|
+
var x = "".concat(C, "-").concat(er(kt + C + Ot[C]));
|
|
1727
|
+
return D ? "".concat(D, "-").concat(x) : x;
|
|
1728
|
+
})(t.displayName, t.parentComponentId) : s, p = t.displayName, g = p === void 0 ? (function(L) {
|
|
1729
|
+
return At(L) ? "styled.".concat(L) : "Styled(".concat(tr(L), ")");
|
|
1730
|
+
})(e) : p, w = t.displayName && t.componentId ? "".concat(Cn(t.displayName), "-").concat(t.componentId) : t.componentId || d, v = r && i.attrs ? i.attrs.concat(u).filter(Boolean) : u, E = t.shouldForwardProp;
|
|
1731
|
+
if (r && i.shouldForwardProp) {
|
|
1732
|
+
var T = i.shouldForwardProp;
|
|
1733
|
+
if (t.shouldForwardProp) {
|
|
1734
|
+
var M = t.shouldForwardProp;
|
|
1735
|
+
E = function(L, D) {
|
|
1736
|
+
return T(L, D) && M(L, D);
|
|
1737
|
+
};
|
|
1738
|
+
} else E = T;
|
|
1782
1739
|
}
|
|
1783
|
-
var
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
}
|
|
1790
|
-
var
|
|
1791
|
-
|
|
1792
|
-
};
|
|
1793
|
-
function st(e) {
|
|
1794
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
|
|
1795
|
-
return Xe(e) || bt(e) ? Kt(Ye(qt(it, [e].concat(t)))) : t.length === 0 && e.length === 1 && typeof e[0] == "string" ? e : Kt(Ye(qt(e, t)));
|
|
1796
|
-
}
|
|
1797
|
-
var Qt = /invalid hook call/i, rt = /* @__PURE__ */ new Set(), uo = function(e, r) {
|
|
1798
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1799
|
-
var t = "The component " + e + (r ? ' with the id of "' + r + '"' : "") + ` has been created dynamically.
|
|
1800
|
-
You may see this warning because you've called styled inside another component.
|
|
1801
|
-
To resolve this only create new StyledComponents outside of any render method and function component.`, n = console.error;
|
|
1802
|
-
try {
|
|
1803
|
-
var i = !0;
|
|
1804
|
-
console.error = function(c) {
|
|
1805
|
-
if (Qt.test(c)) i = !1, rt.delete(t);
|
|
1806
|
-
else {
|
|
1807
|
-
for (var l = arguments.length, d = new Array(l > 1 ? l - 1 : 0), u = 1; u < l; u++) d[u - 1] = arguments[u];
|
|
1808
|
-
n.apply(void 0, [c].concat(d));
|
|
1740
|
+
var P = new Li(n, w, r ? i.componentStyle : void 0);
|
|
1741
|
+
function b(L, D) {
|
|
1742
|
+
return (function(C, x, W) {
|
|
1743
|
+
var J = C.attrs, I = C.componentStyle, _e = C.defaultProps, fe = C.foldedComponentIds, q = C.styledComponentId, ne = C.target, ue = Re.useContext(fr), xe = Ln(), K = C.shouldForwardProp || xe.shouldForwardProp;
|
|
1744
|
+
process.env.NODE_ENV !== "production" && mn(q);
|
|
1745
|
+
var Ye = Jo(x, ue, _e) || $e, re = (function(De, pe, ye) {
|
|
1746
|
+
for (var se, ae = ee(ee({}, pe), { className: void 0, theme: ye }), ve = 0; ve < De.length; ve += 1) {
|
|
1747
|
+
var Ae = He(se = De[ve]) ? se(ae) : se;
|
|
1748
|
+
for (var ce in Ae) ae[ce] = ce === "className" ? Te(ae[ce], Ae[ce]) : ce === "style" ? ee(ee({}, ae[ce]), Ae[ce]) : Ae[ce];
|
|
1809
1749
|
}
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
return e.replace(po, "-").replace(ho, "");
|
|
1822
|
-
}
|
|
1823
|
-
var mr = function(e) {
|
|
1824
|
-
return St(dr(e) >>> 0);
|
|
1825
|
-
};
|
|
1826
|
-
function nt(e) {
|
|
1827
|
-
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1828
|
-
}
|
|
1829
|
-
var Et = function(e) {
|
|
1830
|
-
return typeof e == "function" || typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1831
|
-
}, mo = function(e) {
|
|
1832
|
-
return e !== "__proto__" && e !== "constructor" && e !== "prototype";
|
|
1833
|
-
};
|
|
1834
|
-
function vo(e, r, t) {
|
|
1835
|
-
var n = e[t];
|
|
1836
|
-
Et(r) && Et(n) ? vr(n, r) : e[t] = r;
|
|
1837
|
-
}
|
|
1838
|
-
function vr(e) {
|
|
1839
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
|
|
1840
|
-
for (var i = 0, c = t; i < c.length; i++) {
|
|
1841
|
-
var l = c[i];
|
|
1842
|
-
if (Et(l)) for (var d in l) mo(d) && vo(e, l[d], d);
|
|
1750
|
+
return pe.className && (ae.className = Te(ae.className, pe.className)), ae;
|
|
1751
|
+
})(J, x, Ye), me = re.as || ne, ge = {};
|
|
1752
|
+
for (var Z in re) re[Z] === void 0 || Z[0] === "$" || Z === "as" || Z === "theme" && re.theme === Ye || (Z === "forwardedAs" ? ge.as = re.forwardedAs : K && !K(Z, me) || (ge[Z] = re[Z], K || process.env.NODE_ENV !== "development" || jo(Z) || In.has(Z) || !Nt.has(me) || (In.add(Z), console.warn('styled-components: it looks like an unknown prop "'.concat(Z, '" 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.)')))));
|
|
1753
|
+
var Ie = (function(De, pe) {
|
|
1754
|
+
var ye = Ln(), se = De.generateAndInjectStyles(pe, ye.styleSheet, ye.stylis);
|
|
1755
|
+
return process.env.NODE_ENV !== "production" && mn(se), se;
|
|
1756
|
+
})(I, re);
|
|
1757
|
+
process.env.NODE_ENV !== "production" && C.warnTooManyClasses && C.warnTooManyClasses(Ie);
|
|
1758
|
+
var qe = Te(fe, q);
|
|
1759
|
+
return Ie && (qe += " " + Ie), re.className && (qe += " " + re.className), ge[At(me) && !Nt.has(me) ? "class" : "className"] = qe, W && (ge.ref = W), wo(me, ge);
|
|
1760
|
+
})(h, L, D);
|
|
1843
1761
|
}
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
gr.Consumer;
|
|
1848
|
-
var wt = {};
|
|
1849
|
-
function yr(e, r, t) {
|
|
1850
|
-
var n = kt(e), i = !nt(e), c = r.attrs, l = c === void 0 ? it : c, d = r.componentId, u = d === void 0 ? (function(x, g) {
|
|
1851
|
-
var A = typeof x != "string" ? "sc" : yt(x);
|
|
1852
|
-
wt[A] = (wt[A] || 0) + 1;
|
|
1853
|
-
var p = A + "-" + mr("5.3.11" + A + wt[A]);
|
|
1854
|
-
return g ? g + "-" + p : p;
|
|
1855
|
-
})(r.displayName, r.parentComponentId) : d, f = r.displayName, v = f === void 0 ? (function(x) {
|
|
1856
|
-
return nt(x) ? "styled." + x : "Styled(" + xt(x) + ")";
|
|
1857
|
-
})(e) : f, w = r.displayName && r.componentId ? yt(r.displayName) + "-" + r.componentId : r.componentId || u, L = n && e.attrs ? Array.prototype.concat(e.attrs, l).filter(Boolean) : l, R = r.shouldForwardProp;
|
|
1858
|
-
n && e.shouldForwardProp && (R = r.shouldForwardProp ? function(x, g, A) {
|
|
1859
|
-
return e.shouldForwardProp(x, g, A) && r.shouldForwardProp(x, g, A);
|
|
1860
|
-
} : e.shouldForwardProp);
|
|
1861
|
-
var E, k = new Qn(t, w, n ? e.componentStyle : void 0), _ = k.isStatic && l.length === 0, j = function(x, g) {
|
|
1862
|
-
return (function(A, p, U, de) {
|
|
1863
|
-
var te = A.attrs, ce = A.componentStyle, M = A.defaultProps, xe = A.foldedComponentIds, re = A.shouldForwardProp, J = A.styledComponentId, ne = A.target, K = (function(D, s, V) {
|
|
1864
|
-
D === void 0 && (D = Le);
|
|
1865
|
-
var y = je({}, s, { theme: D }), G = {};
|
|
1866
|
-
return V.forEach((function(N) {
|
|
1867
|
-
var H, h, oe, ae = N;
|
|
1868
|
-
for (H in Xe(ae) && (ae = ae(y)), ae) y[H] = G[H] = H === "className" ? (h = G[H], oe = ae[H], h && oe ? h + " " + oe : h || oe) : ae[H];
|
|
1869
|
-
})), [y, G];
|
|
1870
|
-
})(fo(p, Je(gr), M) || Le, p, te), Se = K[0], Q = K[1], pe = (function(D, s, V, y) {
|
|
1871
|
-
var G = oo(), N = io(), H = s ? D.generateAndInjectStyles(Le, G, N) : D.generateAndInjectStyles(V, G, N);
|
|
1872
|
-
return process.env.NODE_ENV !== "production" && !s && y && y(H), H;
|
|
1873
|
-
})(ce, de, Se, process.env.NODE_ENV !== "production" ? A.warnTooManyClasses : void 0), Pe = U, Ee = Q.$as || p.$as || Q.as || p.as || ne, Re = nt(Ee), P = Q !== p ? je({}, p, {}, Q) : p, S = {};
|
|
1874
|
-
for (var T in P) T[0] !== "$" && T !== "as" && (T === "forwardedAs" ? S.as = P[T] : (re ? re(T, Ut, Ee) : !Re || Ut(T)) && (S[T] = P[T]));
|
|
1875
|
-
return p.style && Q.style !== p.style && (S.style = je({}, p.style, {}, Q.style)), S.className = Array.prototype.concat(xe, J, pe !== J ? pe : null, p.className, Q.className).filter(Boolean).join(" "), S.ref = Pe, gn(Ee, S);
|
|
1876
|
-
})(E, x, g, _);
|
|
1877
|
-
};
|
|
1878
|
-
return j.displayName = v, (E = Ue.forwardRef(j)).attrs = L, E.componentStyle = k, E.displayName = v, E.shouldForwardProp = R, E.foldedComponentIds = n ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : it, E.styledComponentId = w, E.target = n ? e.target : e, E.withComponent = function(x) {
|
|
1879
|
-
var g = r.componentId, A = (function(U, de) {
|
|
1880
|
-
if (U == null) return {};
|
|
1881
|
-
var te, ce, M = {}, xe = Object.keys(U);
|
|
1882
|
-
for (ce = 0; ce < xe.length; ce++) te = xe[ce], de.indexOf(te) >= 0 || (M[te] = U[te]);
|
|
1883
|
-
return M;
|
|
1884
|
-
})(r, ["componentId"]), p = g && g + "-" + (nt(x) ? x : yt(xt(x)));
|
|
1885
|
-
return yr(x, je({}, A, { attrs: L, componentId: p }), t);
|
|
1886
|
-
}, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
1762
|
+
b.displayName = g;
|
|
1763
|
+
var h = Re.forwardRef(b);
|
|
1764
|
+
return h.attrs = v, h.componentStyle = P, h.displayName = g, h.shouldForwardProp = E, h.foldedComponentIds = r ? Te(i.foldedComponentIds, i.styledComponentId) : "", h.styledComponentId = w, h.target = r ? i.target : e, Object.defineProperty(h, "defaultProps", { get: function() {
|
|
1887
1765
|
return this._foldedDefaultProps;
|
|
1888
|
-
}, set: function(
|
|
1889
|
-
this._foldedDefaultProps =
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1766
|
+
}, set: function(L) {
|
|
1767
|
+
this._foldedDefaultProps = r ? (function(D) {
|
|
1768
|
+
for (var C = [], x = 1; x < arguments.length; x++) C[x - 1] = arguments[x];
|
|
1769
|
+
for (var W = 0, J = C; W < J.length; W++) zt(D, J[W], !0);
|
|
1770
|
+
return D;
|
|
1771
|
+
})({}, i.defaultProps, L) : L;
|
|
1772
|
+
} }), process.env.NODE_ENV !== "production" && (Xo(g, w), h.warnTooManyClasses = /* @__PURE__ */ (function(L, D) {
|
|
1773
|
+
var C = {}, x = !1;
|
|
1774
|
+
return function(W) {
|
|
1775
|
+
if (!x && (C[W] = !0, Object.keys(C).length >= 200)) {
|
|
1776
|
+
var J = D ? ' with the id of "'.concat(D, '"') : "";
|
|
1777
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(L).concat(J, `.
|
|
1778
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1897
1779
|
Example:
|
|
1898
1780
|
const Component = styled.div.attrs(props => ({
|
|
1899
1781
|
style: {
|
|
@@ -1901,73 +1783,90 @@ Example:
|
|
|
1901
1783
|
},
|
|
1902
1784
|
}))\`width: 100%;\`
|
|
1903
1785
|
|
|
1904
|
-
<Component />`),
|
|
1786
|
+
<Component />`), x = !0, C = {};
|
|
1905
1787
|
}
|
|
1906
1788
|
};
|
|
1907
|
-
})(
|
|
1908
|
-
return "."
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
return c.withConfig = function(l) {
|
|
1918
|
-
return r(t, n, je({}, i, {}, l));
|
|
1919
|
-
}, c.attrs = function(l) {
|
|
1920
|
-
return r(t, n, je({}, i, { attrs: Array.prototype.concat(i.attrs, l).filter(Boolean) }));
|
|
1921
|
-
}, c;
|
|
1922
|
-
})(yr, e);
|
|
1789
|
+
})(g, w)), Qt(h, function() {
|
|
1790
|
+
return ".".concat(h.styledComponentId);
|
|
1791
|
+
}), a && ir(h, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), h;
|
|
1792
|
+
}
|
|
1793
|
+
function Dn(e, t) {
|
|
1794
|
+
for (var n = [e[0]], r = 0, i = t.length; r < i; r += 1) n.push(t[r], e[r + 1]);
|
|
1795
|
+
return n;
|
|
1796
|
+
}
|
|
1797
|
+
var An = function(e) {
|
|
1798
|
+
return Object.assign(e, { isCss: !0 });
|
|
1923
1799
|
};
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1800
|
+
function mt(e) {
|
|
1801
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1802
|
+
if (He(e) || ze(e)) return An(Pe(Dn(Tt, je([e], t, !0))));
|
|
1803
|
+
var r = e;
|
|
1804
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? Pe(r) : An(Pe(Dn(r, t)));
|
|
1805
|
+
}
|
|
1806
|
+
function Wt(e, t, n) {
|
|
1807
|
+
if (n === void 0 && (n = $e), !t) throw We(1, t);
|
|
1808
|
+
var r = function(i) {
|
|
1809
|
+
for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
|
|
1810
|
+
return e(t, n, mt.apply(void 0, je([i], a, !1)));
|
|
1811
|
+
};
|
|
1812
|
+
return r.attrs = function(i) {
|
|
1813
|
+
return Wt(e, t, ee(ee({}, n), { attrs: Array.prototype.concat(n.attrs, i).filter(Boolean) }));
|
|
1814
|
+
}, r.withConfig = function(i) {
|
|
1815
|
+
return Wt(e, t, ee(ee({}, n), i));
|
|
1816
|
+
}, r;
|
|
1817
|
+
}
|
|
1818
|
+
var pr = function(e) {
|
|
1819
|
+
return Wt(_i, e);
|
|
1820
|
+
}, _ = pr;
|
|
1821
|
+
Nt.forEach(function(e) {
|
|
1822
|
+
_[e] = pr(e);
|
|
1823
|
+
});
|
|
1824
|
+
function Ii(e) {
|
|
1825
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1928
1826
|
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.");
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
return new hr(c, i);
|
|
1827
|
+
var r = Ht(mt.apply(void 0, je([e], t, !1))), i = er(r);
|
|
1828
|
+
return new Ut(i, r);
|
|
1932
1829
|
}
|
|
1933
1830
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1934
1831
|
Perhaps you're looking to import 'styled-components/native'?
|
|
1935
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`)
|
|
1832
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1833
|
+
var st = "__sc-".concat(Le, "__");
|
|
1834
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[st] || (window[st] = 0), window[st] === 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.
|
|
1936
1835
|
|
|
1937
|
-
See https://s-c.sh/2BAXzed for more info.`), window[
|
|
1938
|
-
function
|
|
1836
|
+
See https://s-c.sh/2BAXzed for more info.`), window[st] += 1);
|
|
1837
|
+
function Di({
|
|
1939
1838
|
children: e,
|
|
1940
|
-
eventFinishedMessage:
|
|
1941
|
-
eventNotStartedMessage:
|
|
1942
|
-
eventStartingSoonMessage:
|
|
1839
|
+
eventFinishedMessage: t,
|
|
1840
|
+
eventNotStartedMessage: n,
|
|
1841
|
+
eventStartingSoonMessage: r
|
|
1943
1842
|
}) {
|
|
1944
|
-
const i =
|
|
1945
|
-
return
|
|
1946
|
-
|
|
1843
|
+
const i = U((d) => d.startDate), a = U((d) => d.endDate), l = Date.now(), u = l < i.getTime(), s = l > a.getTime();
|
|
1844
|
+
return ko(5e3), u ? /* @__PURE__ */ c.jsx(
|
|
1845
|
+
Ai,
|
|
1947
1846
|
{
|
|
1948
1847
|
startDate: i,
|
|
1949
|
-
title:
|
|
1950
|
-
message:
|
|
1848
|
+
title: n || "Event has not started yet.",
|
|
1849
|
+
message: r || "Starting in few seconds..."
|
|
1951
1850
|
}
|
|
1952
|
-
) :
|
|
1851
|
+
) : s ? /* @__PURE__ */ c.jsx(Oi, { title: t || "Event has finished." }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
1953
1852
|
}
|
|
1954
|
-
function
|
|
1955
|
-
const
|
|
1956
|
-
|
|
1853
|
+
function Ai({ startDate: e, title: t, message: n }) {
|
|
1854
|
+
const r = e.getTime() - Date.now(), i = Math.floor(r / (1e3 * 60 * 60)), a = Math.floor(
|
|
1855
|
+
r % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1957
1856
|
);
|
|
1958
|
-
return i ||
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
1857
|
+
return i || a ? /* @__PURE__ */ c.jsxs(Yt, { children: [
|
|
1858
|
+
/* @__PURE__ */ c.jsx(qt, { children: t }),
|
|
1859
|
+
/* @__PURE__ */ c.jsxs(Fi, { children: [
|
|
1961
1860
|
"(",
|
|
1962
|
-
i > 0 ? `${i}h ${
|
|
1861
|
+
i > 0 ? `${i}h ${a}m` : `${a}m`,
|
|
1963
1862
|
")"
|
|
1964
1863
|
] })
|
|
1965
|
-
] }) : /* @__PURE__ */
|
|
1864
|
+
] }) : /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: n }) });
|
|
1966
1865
|
}
|
|
1967
|
-
function
|
|
1968
|
-
return /* @__PURE__ */
|
|
1866
|
+
function Oi({ title: e }) {
|
|
1867
|
+
return /* @__PURE__ */ c.jsx(Yt, { children: /* @__PURE__ */ c.jsx(qt, { children: e }) });
|
|
1969
1868
|
}
|
|
1970
|
-
const
|
|
1869
|
+
const Yt = _.div`
|
|
1971
1870
|
position: absolute;
|
|
1972
1871
|
top: 0;
|
|
1973
1872
|
left: 0;
|
|
@@ -1980,14 +1879,14 @@ const Tt = Y.div`
|
|
|
1980
1879
|
justify-content: center;
|
|
1981
1880
|
color: black;
|
|
1982
1881
|
background: #f7e406;
|
|
1983
|
-
`,
|
|
1882
|
+
`, qt = _.h3`
|
|
1984
1883
|
margin: 0;
|
|
1985
1884
|
padding: 0.5rem 0;
|
|
1986
1885
|
font-size: 1.5rem;
|
|
1987
1886
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1988
1887
|
"Helvetica Neue", Arial, sans-serif;
|
|
1989
1888
|
font-weight: 500;
|
|
1990
|
-
`,
|
|
1889
|
+
`, Fi = _.p`
|
|
1991
1890
|
margin: 0;
|
|
1992
1891
|
height: 1.25rem;
|
|
1993
1892
|
font-size: 1rem;
|
|
@@ -1995,22 +1894,22 @@ const Tt = Y.div`
|
|
|
1995
1894
|
"Helvetica Neue", Arial, sans-serif;
|
|
1996
1895
|
font-weight: 500;
|
|
1997
1896
|
`;
|
|
1998
|
-
function
|
|
1999
|
-
return /* @__PURE__ */
|
|
1897
|
+
function Mi() {
|
|
1898
|
+
return /* @__PURE__ */ c.jsx(
|
|
2000
1899
|
"svg",
|
|
2001
1900
|
{
|
|
2002
1901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2003
1902
|
viewBox: "0 0 24 24",
|
|
2004
1903
|
fill: "currentColor",
|
|
2005
|
-
children: /* @__PURE__ */
|
|
1904
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
|
|
2006
1905
|
}
|
|
2007
1906
|
);
|
|
2008
1907
|
}
|
|
2009
|
-
const
|
|
2010
|
-
({ shape: e = "circle", ...
|
|
1908
|
+
const be = yt(
|
|
1909
|
+
({ shape: e = "circle", ...t }, n) => /* @__PURE__ */ c.jsx(Vi, { ref: n, $shape: e, ...t })
|
|
2011
1910
|
);
|
|
2012
|
-
|
|
2013
|
-
const
|
|
1911
|
+
be.displayName = "PlayerButton";
|
|
1912
|
+
const Vi = _.button`
|
|
2014
1913
|
margin: 0;
|
|
2015
1914
|
display: flex;
|
|
2016
1915
|
align-items: center;
|
|
@@ -2048,83 +1947,83 @@ const Co = Y.button`
|
|
|
2048
1947
|
cursor: not-allowed;
|
|
2049
1948
|
}
|
|
2050
1949
|
|
|
2051
|
-
${({ $shape: e }) => e === "circle" &&
|
|
1950
|
+
${({ $shape: e }) => e === "circle" && mt`
|
|
2052
1951
|
padding: 0;
|
|
2053
1952
|
width: 2rem;
|
|
2054
1953
|
height: 2rem;
|
|
2055
1954
|
`}
|
|
2056
1955
|
|
|
2057
|
-
${({ $shape: e }) => e === "square" &&
|
|
1956
|
+
${({ $shape: e }) => e === "square" && mt`
|
|
2058
1957
|
padding: 0.25rem 0.5rem;
|
|
2059
1958
|
`}
|
|
2060
1959
|
`;
|
|
2061
|
-
function
|
|
2062
|
-
const
|
|
2063
|
-
return
|
|
2064
|
-
/* @__PURE__ */
|
|
2065
|
-
/* @__PURE__ */
|
|
1960
|
+
function Ni({ message: e, ...t }) {
|
|
1961
|
+
const n = U((a) => a.delay), r = U((a) => a.setDelay), i = () => r(0);
|
|
1962
|
+
return n ? /* @__PURE__ */ c.jsxs(be, { onClick: i, shape: "square", ...t, children: [
|
|
1963
|
+
/* @__PURE__ */ c.jsx("span", { children: e || "Live" }),
|
|
1964
|
+
/* @__PURE__ */ c.jsx(Mi, {})
|
|
2066
1965
|
] }) : null;
|
|
2067
1966
|
}
|
|
2068
|
-
function
|
|
2069
|
-
return /* @__PURE__ */
|
|
1967
|
+
function hr() {
|
|
1968
|
+
return /* @__PURE__ */ c.jsx(
|
|
2070
1969
|
"svg",
|
|
2071
1970
|
{
|
|
2072
1971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2073
1972
|
viewBox: "0 0 24 24",
|
|
2074
1973
|
fill: "currentColor",
|
|
2075
|
-
children: /* @__PURE__ */
|
|
1974
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
2076
1975
|
}
|
|
2077
1976
|
);
|
|
2078
1977
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return /* @__PURE__ */
|
|
1978
|
+
function mr() {
|
|
1979
|
+
return /* @__PURE__ */ c.jsx(
|
|
2081
1980
|
"svg",
|
|
2082
1981
|
{
|
|
2083
1982
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2084
1983
|
viewBox: "0 0 24 24",
|
|
2085
1984
|
fill: "currentColor",
|
|
2086
|
-
children: /* @__PURE__ */
|
|
1985
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M19.376 12.4161L8.77735 19.4818C8.54759 19.635 8.23715 19.5729 8.08397 19.3432C8.02922 19.261 8 19.1645 8 19.0658V4.93433C8 4.65818 8.22386 4.43433 8.5 4.43433C8.59871 4.43433 8.69522 4.46355 8.77735 4.5183L19.376 11.584C19.6057 11.7372 19.6678 12.0477 19.5146 12.2774C19.478 12.3323 19.4309 12.3795 19.376 12.4161Z" })
|
|
2087
1986
|
}
|
|
2088
1987
|
);
|
|
2089
1988
|
}
|
|
2090
|
-
function
|
|
2091
|
-
const
|
|
1989
|
+
function $i(e, t, n) {
|
|
1990
|
+
const r = {
|
|
2092
1991
|
days: 86400,
|
|
2093
1992
|
hours: 3600,
|
|
2094
1993
|
minutes: 60,
|
|
2095
1994
|
seconds: 1,
|
|
2096
1995
|
milliseconds: 1e-3
|
|
2097
1996
|
};
|
|
2098
|
-
return e * (
|
|
1997
|
+
return e * (r[t] / r[n]);
|
|
2099
1998
|
}
|
|
2100
|
-
function
|
|
2101
|
-
return
|
|
1999
|
+
function Hi(e) {
|
|
2000
|
+
return $i(e, "milliseconds", "seconds");
|
|
2102
2001
|
}
|
|
2103
2002
|
const Be = (e) => {
|
|
2104
|
-
const
|
|
2105
|
-
return `${
|
|
2003
|
+
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
2004
|
+
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
2106
2005
|
};
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
return e.test(
|
|
2006
|
+
function zi(e) {
|
|
2007
|
+
const t = typeof window < "u" && window.navigator?.userAgent || "";
|
|
2008
|
+
return e.test(t);
|
|
2110
2009
|
}
|
|
2111
|
-
const
|
|
2112
|
-
function
|
|
2010
|
+
const gr = zi(/iPhone|iPad|iPod/i);
|
|
2011
|
+
function Bi() {
|
|
2113
2012
|
const e = document;
|
|
2114
2013
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
2115
2014
|
}
|
|
2116
|
-
function
|
|
2015
|
+
function Ui(e) {
|
|
2117
2016
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
2118
2017
|
}
|
|
2119
|
-
function
|
|
2018
|
+
function Wi(e) {
|
|
2120
2019
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
2121
2020
|
}
|
|
2122
|
-
function
|
|
2123
|
-
return e.addEventListener("fullscreenchange",
|
|
2124
|
-
e.removeEventListener("fullscreenchange",
|
|
2021
|
+
function Yi(e, t) {
|
|
2022
|
+
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
2023
|
+
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
2125
2024
|
};
|
|
2126
2025
|
}
|
|
2127
|
-
const
|
|
2026
|
+
const qi = (e, t) => ({
|
|
2128
2027
|
currentTime: 0,
|
|
2129
2028
|
duration: 0,
|
|
2130
2029
|
isEnded: !1,
|
|
@@ -2141,11 +2040,11 @@ const Lo = (e, r) => ({
|
|
|
2141
2040
|
destroy: () => {
|
|
2142
2041
|
},
|
|
2143
2042
|
handleDurationChange: () => {
|
|
2144
|
-
const
|
|
2145
|
-
|
|
2043
|
+
const n = t().techRef.current;
|
|
2044
|
+
n && e({ duration: n.duration });
|
|
2146
2045
|
},
|
|
2147
2046
|
handleEnd: () => {
|
|
2148
|
-
|
|
2047
|
+
t().techRef.current && e({
|
|
2149
2048
|
isEnded: !0,
|
|
2150
2049
|
isLoading: !1,
|
|
2151
2050
|
isMetaLoaded: !1,
|
|
@@ -2153,18 +2052,18 @@ const Lo = (e, r) => ({
|
|
|
2153
2052
|
});
|
|
2154
2053
|
},
|
|
2155
2054
|
handleLoadedMetadata: () => {
|
|
2156
|
-
const
|
|
2157
|
-
|
|
2158
|
-
currentTime:
|
|
2159
|
-
duration:
|
|
2055
|
+
const n = t().techRef.current;
|
|
2056
|
+
n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
|
|
2057
|
+
currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
|
|
2058
|
+
duration: n.duration,
|
|
2160
2059
|
startTime: -1,
|
|
2161
2060
|
isMetaLoaded: !0,
|
|
2162
|
-
volume:
|
|
2061
|
+
volume: n.muted ? 0 : 100
|
|
2163
2062
|
}));
|
|
2164
2063
|
},
|
|
2165
2064
|
handleLoadStart: () => {
|
|
2166
|
-
const
|
|
2167
|
-
|
|
2065
|
+
const n = t().techRef.current;
|
|
2066
|
+
n && (e({ isReady: !0 }), n.play().then(() => {
|
|
2168
2067
|
e({
|
|
2169
2068
|
isEnded: !1,
|
|
2170
2069
|
isLoading: !1,
|
|
@@ -2173,7 +2072,7 @@ const Lo = (e, r) => ({
|
|
|
2173
2072
|
pauseTime: 0
|
|
2174
2073
|
});
|
|
2175
2074
|
}).catch(
|
|
2176
|
-
(
|
|
2075
|
+
(r) => e(() => (console.info("Player failed to autoplay", r), {
|
|
2177
2076
|
isStarted: !1,
|
|
2178
2077
|
isEnded: !1,
|
|
2179
2078
|
isLoading: !1,
|
|
@@ -2193,134 +2092,134 @@ const Lo = (e, r) => ({
|
|
|
2193
2092
|
handleSeeked: () => e({ isLoading: !1 }),
|
|
2194
2093
|
handleSeeking: () => e({ isLoading: !0 }),
|
|
2195
2094
|
handleTimeUpdate: () => {
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2095
|
+
const n = t().techRef.current;
|
|
2096
|
+
n && e({ currentTime: n.currentTime });
|
|
2198
2097
|
},
|
|
2199
2098
|
handleWaiting: () => e({ isLoading: !0 }),
|
|
2200
2099
|
pause: () => {
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2100
|
+
const n = t().techRef.current;
|
|
2101
|
+
n && (n.pause(), e({
|
|
2203
2102
|
isEnded: !1,
|
|
2204
2103
|
isPlaying: !1,
|
|
2205
2104
|
pauseTime: Date.now()
|
|
2206
2105
|
}));
|
|
2207
2106
|
},
|
|
2208
|
-
pauseTimeDiff: () =>
|
|
2107
|
+
pauseTimeDiff: () => parseInt(Hi(Date.now() - t().pauseTime).toFixed(0)),
|
|
2209
2108
|
play: () => {
|
|
2210
|
-
const
|
|
2211
|
-
|
|
2109
|
+
const n = t().techRef.current;
|
|
2110
|
+
n && (n.play(), e({
|
|
2212
2111
|
isEnded: !1,
|
|
2213
2112
|
isPlaying: !0,
|
|
2214
2113
|
isStarted: !0,
|
|
2215
2114
|
pauseTime: 0
|
|
2216
2115
|
}));
|
|
2217
2116
|
},
|
|
2218
|
-
seek: (
|
|
2219
|
-
const
|
|
2220
|
-
|
|
2117
|
+
seek: (n) => {
|
|
2118
|
+
const r = t().techRef.current;
|
|
2119
|
+
r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
|
|
2221
2120
|
seekTime: -1,
|
|
2222
|
-
currentTime:
|
|
2121
|
+
currentTime: n,
|
|
2223
2122
|
isStarted: !0,
|
|
2224
2123
|
isEnded: !1,
|
|
2225
2124
|
isPlaying: !0
|
|
2226
2125
|
}));
|
|
2227
2126
|
},
|
|
2228
|
-
setIsLoading: (
|
|
2229
|
-
setIsLoop: (
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2127
|
+
setIsLoading: (n) => e({ isLoading: n }),
|
|
2128
|
+
setIsLoop: (n) => {
|
|
2129
|
+
const r = t().techRef.current;
|
|
2130
|
+
r && (r.loop = n, e({ isLoop: n }));
|
|
2232
2131
|
},
|
|
2233
|
-
setStartTime: (
|
|
2234
|
-
setVolume: (
|
|
2235
|
-
const
|
|
2236
|
-
|
|
2132
|
+
setStartTime: (n) => e({ startTime: n }),
|
|
2133
|
+
setVolume: (n) => {
|
|
2134
|
+
const r = t().techRef.current;
|
|
2135
|
+
r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
|
|
2237
2136
|
},
|
|
2238
2137
|
stop: () => {
|
|
2239
|
-
|
|
2138
|
+
t().techRef.current && e({
|
|
2240
2139
|
isPlaying: !1,
|
|
2241
2140
|
isLoading: !1
|
|
2242
2141
|
});
|
|
2243
2142
|
}
|
|
2244
|
-
}),
|
|
2143
|
+
}), Zi = (e) => ({
|
|
2245
2144
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
2246
|
-
addIdleLock: (
|
|
2247
|
-
idleLocks: new Set(
|
|
2145
|
+
addIdleLock: (t) => e((n) => ({
|
|
2146
|
+
idleLocks: new Set(n.idleLocks).add(t)
|
|
2248
2147
|
})),
|
|
2249
|
-
removeIdleLock: (
|
|
2250
|
-
const
|
|
2251
|
-
return
|
|
2148
|
+
removeIdleLock: (t) => e((n) => {
|
|
2149
|
+
const r = new Set(n.idleLocks);
|
|
2150
|
+
return r.delete(t), { idleLocks: r };
|
|
2252
2151
|
})
|
|
2253
|
-
}),
|
|
2152
|
+
}), Gi = (e) => ({
|
|
2254
2153
|
level: null,
|
|
2255
2154
|
levels: null,
|
|
2256
|
-
setLevels: (
|
|
2257
|
-
setLevel: (
|
|
2258
|
-
}),
|
|
2155
|
+
setLevels: (t) => e({ levels: t }),
|
|
2156
|
+
setLevel: (t) => e({ level: t })
|
|
2157
|
+
}), Xi = (e, t) => ({
|
|
2259
2158
|
isFullscreen: !1,
|
|
2260
2159
|
isFullscreenReady: !1,
|
|
2261
2160
|
exitFullscreen: () => {
|
|
2262
|
-
|
|
2161
|
+
Wi(document), e({ isFullscreen: !1 });
|
|
2263
2162
|
},
|
|
2264
2163
|
requestFullscreen: () => {
|
|
2265
|
-
const
|
|
2266
|
-
if (!
|
|
2267
|
-
const i =
|
|
2268
|
-
i &&
|
|
2164
|
+
const n = t().techRef.current, r = t().containerRef.current;
|
|
2165
|
+
if (!n || !r) return;
|
|
2166
|
+
const i = gr ? n : r;
|
|
2167
|
+
i && Ui(i), e({ isFullscreen: !0 });
|
|
2269
2168
|
},
|
|
2270
|
-
setIsFullscreen: (
|
|
2271
|
-
setIsFullscreenReady: (
|
|
2272
|
-
}),
|
|
2169
|
+
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
2170
|
+
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
2171
|
+
}), Ji = (e) => () => ({
|
|
2273
2172
|
...e
|
|
2274
|
-
}),
|
|
2275
|
-
...
|
|
2276
|
-
...
|
|
2277
|
-
...
|
|
2278
|
-
...
|
|
2279
|
-
...
|
|
2280
|
-
})),
|
|
2281
|
-
function
|
|
2282
|
-
const
|
|
2283
|
-
return
|
|
2284
|
-
}
|
|
2285
|
-
const
|
|
2286
|
-
const
|
|
2287
|
-
if (!
|
|
2173
|
+
}), Ki = (e, t) => $n()((...n) => ({
|
|
2174
|
+
...qi(...n),
|
|
2175
|
+
...Zi(...n),
|
|
2176
|
+
...Xi(...n),
|
|
2177
|
+
...Gi(...n),
|
|
2178
|
+
...Ji({ techRef: e, containerRef: t })(...n)
|
|
2179
|
+
})), yr = Nn(null);
|
|
2180
|
+
function Qi({ children: e }) {
|
|
2181
|
+
const t = Y(null), n = Y(null), r = Y(null);
|
|
2182
|
+
return t.current || (t.current = Ki(n, r)), /* @__PURE__ */ c.jsx(yr.Provider, { value: t.current, children: e });
|
|
2183
|
+
}
|
|
2184
|
+
const m = (e) => {
|
|
2185
|
+
const t = Zt(yr);
|
|
2186
|
+
if (!t)
|
|
2288
2187
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
2289
|
-
return
|
|
2188
|
+
return Hn(t, e);
|
|
2290
2189
|
};
|
|
2291
|
-
function
|
|
2292
|
-
const e =
|
|
2293
|
-
e ?
|
|
2190
|
+
function es() {
|
|
2191
|
+
const e = m((s) => s.isPlaying), t = m((s) => s.pause), n = m((s) => s.pauseTime), r = m((s) => s.pauseTimeDiff), i = m((s) => s.play), a = U((s) => s.delay), l = U((s) => s.setDelay), u = () => {
|
|
2192
|
+
e ? t() : (n && l(a + r()), i());
|
|
2294
2193
|
};
|
|
2295
|
-
return /* @__PURE__ */
|
|
2194
|
+
return /* @__PURE__ */ c.jsx(be, { onClick: u, children: e ? /* @__PURE__ */ c.jsx(hr, {}) : /* @__PURE__ */ c.jsx(mr, {}) });
|
|
2296
2195
|
}
|
|
2297
|
-
function
|
|
2196
|
+
function vr({
|
|
2298
2197
|
className: e,
|
|
2299
|
-
onClick:
|
|
2300
|
-
...
|
|
2198
|
+
onClick: t,
|
|
2199
|
+
...n
|
|
2301
2200
|
}) {
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
},
|
|
2305
|
-
|
|
2306
|
-
|
|
2201
|
+
const r = Y(null), i = m((g) => g.exitFullscreen), a = m((g) => g.isFullscreen), l = m((g) => g.requestFullscreen), u = (g) => {
|
|
2202
|
+
p() ? (d(), a ? i() : l()) : s(g);
|
|
2203
|
+
}, s = (g) => {
|
|
2204
|
+
r.current = window.setTimeout(() => {
|
|
2205
|
+
t?.(g), d();
|
|
2307
2206
|
}, 200);
|
|
2308
|
-
},
|
|
2309
|
-
|
|
2310
|
-
},
|
|
2311
|
-
return
|
|
2312
|
-
|
|
2313
|
-
}, []), /* @__PURE__ */
|
|
2314
|
-
|
|
2207
|
+
}, d = () => {
|
|
2208
|
+
r.current !== null && (window.clearTimeout(r.current), r.current = null);
|
|
2209
|
+
}, p = () => r.current !== null;
|
|
2210
|
+
return te(() => () => {
|
|
2211
|
+
d();
|
|
2212
|
+
}, []), /* @__PURE__ */ c.jsx(
|
|
2213
|
+
ts,
|
|
2315
2214
|
{
|
|
2316
|
-
onClick:
|
|
2215
|
+
onClick: u,
|
|
2317
2216
|
className: e,
|
|
2318
2217
|
"aria-label": "Player playback indicator",
|
|
2319
|
-
...
|
|
2218
|
+
...n
|
|
2320
2219
|
}
|
|
2321
2220
|
);
|
|
2322
2221
|
}
|
|
2323
|
-
const
|
|
2222
|
+
const ts = _.button`
|
|
2324
2223
|
position: absolute;
|
|
2325
2224
|
top: 0;
|
|
2326
2225
|
left: 0;
|
|
@@ -2339,17 +2238,17 @@ const $o = Y.button`
|
|
|
2339
2238
|
outline: none;
|
|
2340
2239
|
}
|
|
2341
2240
|
`;
|
|
2342
|
-
function
|
|
2343
|
-
const e =
|
|
2344
|
-
e
|
|
2241
|
+
function ns() {
|
|
2242
|
+
const e = m((s) => s.isPlaying), t = m((s) => s.pause), n = m((s) => s.pauseTime), r = m((s) => s.pauseTimeDiff), i = m((s) => s.play), a = U((s) => s.delay), l = U((s) => s.setDelay), u = () => {
|
|
2243
|
+
e ? t() : (n && l(a + r()), i());
|
|
2345
2244
|
};
|
|
2346
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ c.jsx(vr, { onClick: u });
|
|
2347
2246
|
}
|
|
2348
|
-
const
|
|
2247
|
+
const wr = _.div`
|
|
2349
2248
|
position: relative;
|
|
2350
2249
|
width: 100%;
|
|
2351
2250
|
margin-bottom: -0.25rem;
|
|
2352
|
-
`,
|
|
2251
|
+
`, br = _.div`
|
|
2353
2252
|
position: absolute;
|
|
2354
2253
|
bottom: 1.75rem;
|
|
2355
2254
|
left: 0;
|
|
@@ -2360,7 +2259,7 @@ const Er = Y.div`
|
|
|
2360
2259
|
opacity: ${({ $isVisible: e }) => e ? 1 : 0};
|
|
2361
2260
|
transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
|
|
2362
2261
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
2363
|
-
`,
|
|
2262
|
+
`, xr = _.p`
|
|
2364
2263
|
margin: 0;
|
|
2365
2264
|
padding: 0.25rem;
|
|
2366
2265
|
font-variant-numeric: tabular-nums;
|
|
@@ -2372,11 +2271,11 @@ const Er = Y.div`
|
|
|
2372
2271
|
color: white;
|
|
2373
2272
|
background: rgba(0, 0, 0, 0.8);
|
|
2374
2273
|
border-radius: 1rem;
|
|
2375
|
-
`,
|
|
2376
|
-
|
|
2274
|
+
`, Et = yt(({ max: e = 100, min: t = 0, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
2275
|
+
rs,
|
|
2377
2276
|
{
|
|
2378
|
-
ref:
|
|
2379
|
-
min:
|
|
2277
|
+
ref: r,
|
|
2278
|
+
min: t,
|
|
2380
2279
|
max: e,
|
|
2381
2280
|
"aria-label": "Player progress",
|
|
2382
2281
|
onKeyDown: (i) => (
|
|
@@ -2384,15 +2283,15 @@ const Er = Y.div`
|
|
|
2384
2283
|
// when the slider is focused by a click
|
|
2385
2284
|
i.preventDefault()
|
|
2386
2285
|
),
|
|
2387
|
-
...
|
|
2286
|
+
...n,
|
|
2388
2287
|
children: [
|
|
2389
|
-
/* @__PURE__ */
|
|
2390
|
-
/* @__PURE__ */
|
|
2288
|
+
/* @__PURE__ */ c.jsx(os, { children: /* @__PURE__ */ c.jsx(is, {}) }),
|
|
2289
|
+
/* @__PURE__ */ c.jsx(ss, {})
|
|
2391
2290
|
]
|
|
2392
2291
|
}
|
|
2393
2292
|
));
|
|
2394
|
-
|
|
2395
|
-
const
|
|
2293
|
+
Et.displayName = "PlayerSlider";
|
|
2294
|
+
const rs = _(vt.Root)`
|
|
2396
2295
|
position: relative;
|
|
2397
2296
|
display: flex;
|
|
2398
2297
|
align-items: center;
|
|
@@ -2406,20 +2305,20 @@ const zo = Y(ut.Root)`
|
|
|
2406
2305
|
cursor: not-allowed;
|
|
2407
2306
|
opacity: 0.5;
|
|
2408
2307
|
}
|
|
2409
|
-
`,
|
|
2308
|
+
`, os = _(vt.Track)`
|
|
2410
2309
|
position: relative;
|
|
2411
2310
|
height: 0.25rem;
|
|
2412
2311
|
flex-grow: 1;
|
|
2413
2312
|
background: rgba(255, 255, 255, 0.2);
|
|
2414
2313
|
border-radius: 1rem;
|
|
2415
2314
|
overflow: hidden;
|
|
2416
|
-
`,
|
|
2315
|
+
`, is = _(vt.Range)`
|
|
2417
2316
|
position: absolute;
|
|
2418
2317
|
height: 100%;
|
|
2419
2318
|
background: #f7e406;
|
|
2420
2319
|
transition: width 0.2s ease-in-out;
|
|
2421
2320
|
border-radius: 1rem;
|
|
2422
|
-
`,
|
|
2321
|
+
`, ss = _(vt.Thumb)`
|
|
2423
2322
|
display: block;
|
|
2424
2323
|
width: 0.875rem;
|
|
2425
2324
|
height: 0.875rem;
|
|
@@ -2443,106 +2342,106 @@ const zo = Y(ut.Root)`
|
|
|
2443
2342
|
opacity: 0.5;
|
|
2444
2343
|
}
|
|
2445
2344
|
`;
|
|
2446
|
-
function
|
|
2447
|
-
const
|
|
2345
|
+
function gt(e) {
|
|
2346
|
+
const t = e.getBoundingClientRect();
|
|
2448
2347
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
2449
|
-
left:
|
|
2450
|
-
right:
|
|
2451
|
-
top:
|
|
2452
|
-
bottom:
|
|
2453
|
-
width:
|
|
2454
|
-
height:
|
|
2455
|
-
} :
|
|
2456
|
-
}
|
|
2457
|
-
const
|
|
2458
|
-
Math.max(0, (Date.now() - (e +
|
|
2459
|
-
),
|
|
2460
|
-
const
|
|
2461
|
-
return `${parseFloat((e / Math.pow(1024,
|
|
2348
|
+
left: t.left * 100,
|
|
2349
|
+
right: t.right * 100,
|
|
2350
|
+
top: t.top * 100,
|
|
2351
|
+
bottom: t.bottom * 100,
|
|
2352
|
+
width: t.width * 100,
|
|
2353
|
+
height: t.height * 100
|
|
2354
|
+
} : t;
|
|
2355
|
+
}
|
|
2356
|
+
const Sr = (e, t = 0) => parseInt(
|
|
2357
|
+
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
2358
|
+
), Cr = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), kr = (e, t) => Math.max(0, (t - e) / 1e3), as = (e, t = 0) => {
|
|
2359
|
+
const r = t < 0 ? 0 : t, i = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], a = Math.floor(Math.log(e) / Math.log(1024));
|
|
2360
|
+
return `${parseFloat((e / Math.pow(1024, a)).toFixed(r))}${i[a]}`;
|
|
2462
2361
|
};
|
|
2463
|
-
function
|
|
2362
|
+
function cs({
|
|
2464
2363
|
isAuto: e,
|
|
2465
|
-
level:
|
|
2466
|
-
levels:
|
|
2364
|
+
level: t,
|
|
2365
|
+
levels: n
|
|
2467
2366
|
}) {
|
|
2468
|
-
const
|
|
2469
|
-
return
|
|
2367
|
+
const r = n.length, i = [];
|
|
2368
|
+
return r > 1 && i.push({
|
|
2470
2369
|
sid: "quality-level-auto",
|
|
2471
2370
|
label: "Auto",
|
|
2472
2371
|
value: -1,
|
|
2473
|
-
selected: e ||
|
|
2474
|
-
}),
|
|
2475
|
-
const
|
|
2476
|
-
return
|
|
2477
|
-
}),
|
|
2478
|
-
const { bitrate: l, height:
|
|
2372
|
+
selected: e || t === -1
|
|
2373
|
+
}), n.sort(function(a, l) {
|
|
2374
|
+
const u = a.height || a.bitrate || 0, s = l.height || l.bitrate || 0;
|
|
2375
|
+
return u === s ? 0 : u > s ? 1 : -1;
|
|
2376
|
+
}), n.map((a) => {
|
|
2377
|
+
const { bitrate: l, height: u, index: s } = a;
|
|
2479
2378
|
i.push({
|
|
2480
|
-
sid: `quality-level-${
|
|
2481
|
-
label:
|
|
2482
|
-
value:
|
|
2483
|
-
selected:
|
|
2379
|
+
sid: `quality-level-${s}`,
|
|
2380
|
+
label: u ? `${u}p` : as(l),
|
|
2381
|
+
value: s,
|
|
2382
|
+
selected: r === 1 || !e && s === t
|
|
2484
2383
|
});
|
|
2485
2384
|
}), i;
|
|
2486
2385
|
}
|
|
2487
|
-
const
|
|
2488
|
-
function
|
|
2489
|
-
const e =
|
|
2490
|
-
|
|
2491
|
-
}, [
|
|
2492
|
-
(i ? (
|
|
2493
|
-
),
|
|
2494
|
-
|
|
2495
|
-
},
|
|
2496
|
-
if (
|
|
2497
|
-
const
|
|
2498
|
-
|
|
2499
|
-
}
|
|
2500
|
-
},
|
|
2501
|
-
(
|
|
2502
|
-
const
|
|
2503
|
-
if (
|
|
2504
|
-
const
|
|
2505
|
-
if (
|
|
2506
|
-
let
|
|
2507
|
-
|
|
2386
|
+
const On = "vod-player-progress-bar";
|
|
2387
|
+
function ls() {
|
|
2388
|
+
const e = Y(null), t = Y(null), [n, r] = X(0), [i, a] = X(0), [l, u] = X(!1), [s, d] = X(-1), [p, g] = X(-1), w = U((I) => I.delay), v = U((I) => I.startTime), E = U((I) => I.endTime), T = U((I) => I.setDelay), M = m((I) => I.isPlaying), P = m((I) => I.addIdleLock), b = m((I) => I.removeIdleLock), h = B(() => {
|
|
2389
|
+
r(Cr(v, w)), a(kr(v, E));
|
|
2390
|
+
}, [w, E, v]), L = parseFloat(
|
|
2391
|
+
(i ? (p !== -1 ? p : n) / i * 100 : 0).toFixed(1)
|
|
2392
|
+
), D = (I) => {
|
|
2393
|
+
g(i * (I[0] / 100)), P(On);
|
|
2394
|
+
}, C = () => {
|
|
2395
|
+
if (p !== -1) {
|
|
2396
|
+
const I = Sr(v, p);
|
|
2397
|
+
T(I), g(-1), b(On);
|
|
2398
|
+
}
|
|
2399
|
+
}, x = () => u(!0), W = () => u(!1), J = B(
|
|
2400
|
+
(I) => {
|
|
2401
|
+
const _e = e.current, fe = t.current;
|
|
2402
|
+
if (_e && fe) {
|
|
2403
|
+
const q = gt(_e), ne = gt(fe), ue = (I.pageX || I.clientX) - q.left, xe = ue / q.width;
|
|
2404
|
+
if (xe < 0) return;
|
|
2405
|
+
let K = ue - ne.width / 2;
|
|
2406
|
+
K < 0 && (K = 0), K > q.width - ne.width && (K = -1), fe.style.left = K > -1 ? `${K}px` : "auto", fe.style.right = K > -1 ? "auto" : "0px", d(xe * i);
|
|
2508
2407
|
}
|
|
2509
|
-
|
|
2408
|
+
x();
|
|
2510
2409
|
},
|
|
2511
2410
|
[i]
|
|
2512
2411
|
);
|
|
2513
|
-
return
|
|
2514
|
-
|
|
2515
|
-
}, [
|
|
2516
|
-
/* @__PURE__ */
|
|
2517
|
-
|
|
2412
|
+
return wt(() => h(), M ? 1e3 : null), te(() => {
|
|
2413
|
+
h();
|
|
2414
|
+
}, [h]), /* @__PURE__ */ c.jsxs(wr, { children: [
|
|
2415
|
+
/* @__PURE__ */ c.jsx(
|
|
2416
|
+
Et,
|
|
2518
2417
|
{
|
|
2519
2418
|
ref: e,
|
|
2520
|
-
value: [
|
|
2521
|
-
onPointerLeave:
|
|
2522
|
-
onPointerDown:
|
|
2523
|
-
onPointerMove:
|
|
2524
|
-
onValueChange:
|
|
2525
|
-
onValueCommit:
|
|
2419
|
+
value: [L],
|
|
2420
|
+
onPointerLeave: W,
|
|
2421
|
+
onPointerDown: W,
|
|
2422
|
+
onPointerMove: J,
|
|
2423
|
+
onValueChange: D,
|
|
2424
|
+
onValueCommit: C,
|
|
2526
2425
|
step: 0.1
|
|
2527
2426
|
}
|
|
2528
2427
|
),
|
|
2529
|
-
/* @__PURE__ */
|
|
2428
|
+
/* @__PURE__ */ c.jsx(br, { ref: t, $isVisible: l, children: /* @__PURE__ */ c.jsx(xr, { children: Be(s) }) })
|
|
2530
2429
|
] });
|
|
2531
2430
|
}
|
|
2532
|
-
function
|
|
2533
|
-
return /* @__PURE__ */
|
|
2431
|
+
function Tr({ children: e }) {
|
|
2432
|
+
return /* @__PURE__ */ c.jsx(Qi, { children: e });
|
|
2534
2433
|
}
|
|
2535
|
-
function
|
|
2434
|
+
function us({
|
|
2536
2435
|
children: e,
|
|
2537
|
-
startDate:
|
|
2538
|
-
endDate:
|
|
2436
|
+
startDate: t,
|
|
2437
|
+
endDate: n
|
|
2539
2438
|
}) {
|
|
2540
|
-
return /* @__PURE__ */
|
|
2439
|
+
return /* @__PURE__ */ c.jsx(Eo, { startDate: t, endDate: n, children: /* @__PURE__ */ c.jsx(Tr, { children: e }) });
|
|
2541
2440
|
}
|
|
2542
|
-
const
|
|
2441
|
+
const Er = _.div`
|
|
2543
2442
|
display: flex;
|
|
2544
2443
|
align-items: center;
|
|
2545
|
-
`,
|
|
2444
|
+
`, Pr = _.p`
|
|
2546
2445
|
margin: 0;
|
|
2547
2446
|
padding: 0;
|
|
2548
2447
|
font-variant-numeric: tabular-nums;
|
|
@@ -2550,11 +2449,11 @@ const jr = Y.div`
|
|
|
2550
2449
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
2551
2450
|
"Helvetica Neue", Arial, sans-serif;
|
|
2552
2451
|
font-weight: 500;
|
|
2553
|
-
`,
|
|
2452
|
+
`, Rr = _(Pr)`
|
|
2554
2453
|
margin-right: 0.5rem;
|
|
2555
|
-
`,
|
|
2454
|
+
`, jr = _(Pr)`
|
|
2556
2455
|
margin-left: 0.5rem;
|
|
2557
|
-
`,
|
|
2456
|
+
`, Lr = _.p`
|
|
2558
2457
|
margin: 0;
|
|
2559
2458
|
padding: 0;
|
|
2560
2459
|
font-size: 0.8125rem;
|
|
@@ -2566,69 +2465,69 @@ const jr = Y.div`
|
|
|
2566
2465
|
content: "/";
|
|
2567
2466
|
}
|
|
2568
2467
|
`;
|
|
2569
|
-
function
|
|
2570
|
-
const [e,
|
|
2571
|
-
|
|
2572
|
-
}, [
|
|
2573
|
-
return
|
|
2574
|
-
|
|
2575
|
-
}, [
|
|
2576
|
-
/* @__PURE__ */
|
|
2577
|
-
/* @__PURE__ */
|
|
2578
|
-
/* @__PURE__ */
|
|
2468
|
+
function ds() {
|
|
2469
|
+
const [e, t] = X(0), [n, r] = X(0), i = m((d) => d.isPlaying), a = U((d) => d.delay), l = U((d) => d.startTime), u = U((d) => d.endTime), s = B(() => {
|
|
2470
|
+
t(Cr(l, a)), r(kr(l, u));
|
|
2471
|
+
}, [a, u, l]);
|
|
2472
|
+
return wt(() => s(), i ? 1e3 : null), te(() => {
|
|
2473
|
+
s();
|
|
2474
|
+
}, [s]), a ? /* @__PURE__ */ c.jsxs(Er, { children: [
|
|
2475
|
+
/* @__PURE__ */ c.jsx(Rr, { children: Be(e) }),
|
|
2476
|
+
/* @__PURE__ */ c.jsx(Lr, {}),
|
|
2477
|
+
/* @__PURE__ */ c.jsx(jr, { children: Be(n) })
|
|
2579
2478
|
] }) : null;
|
|
2580
2479
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return /* @__PURE__ */
|
|
2480
|
+
function fs() {
|
|
2481
|
+
return /* @__PURE__ */ c.jsx(
|
|
2583
2482
|
"svg",
|
|
2584
2483
|
{
|
|
2585
2484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2586
2485
|
viewBox: "0 0 24 24",
|
|
2587
2486
|
fill: "currentColor",
|
|
2588
|
-
children: /* @__PURE__ */
|
|
2487
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M22 12C22 17.5228 17.5229 22 12 22C6.4772 22 2 17.5228 2 12C2 6.47715 6.4772 2 12 2V4C7.5817 4 4 7.58172 4 12C4 16.4183 7.5817 20 12 20C16.4183 20 20 16.4183 20 12C20 9.53614 18.8862 7.33243 17.1346 5.86492L15 8V2L21 2L18.5535 4.44656C20.6649 6.28002 22 8.9841 22 12Z" })
|
|
2589
2488
|
}
|
|
2590
2489
|
);
|
|
2591
2490
|
}
|
|
2592
|
-
function
|
|
2593
|
-
const e =
|
|
2594
|
-
return /* @__PURE__ */
|
|
2595
|
-
}
|
|
2596
|
-
function
|
|
2597
|
-
const
|
|
2598
|
-
(
|
|
2599
|
-
if (
|
|
2600
|
-
const E = i.map((
|
|
2601
|
-
...
|
|
2602
|
-
selected:
|
|
2491
|
+
function ps() {
|
|
2492
|
+
const e = U((r) => r.startTime), t = U((r) => r.setDelay), n = () => t(Sr(e));
|
|
2493
|
+
return /* @__PURE__ */ c.jsx(be, { onClick: n, children: /* @__PURE__ */ c.jsx(fs, {}) });
|
|
2494
|
+
}
|
|
2495
|
+
function hs({ url: e, isLive: t }) {
|
|
2496
|
+
const n = Y(null), r = m((v) => v.level), i = m((v) => v.levels), a = m((v) => v.setLevel), l = m((v) => v.setLevels), u = m((v) => v.techRef), s = B(
|
|
2497
|
+
(v) => {
|
|
2498
|
+
if (n.current && (n.current.nextLevel = v, a(null), i)) {
|
|
2499
|
+
const E = i.map((T) => ({
|
|
2500
|
+
...T,
|
|
2501
|
+
selected: T.value === v
|
|
2603
2502
|
}));
|
|
2604
2503
|
l(E);
|
|
2605
2504
|
}
|
|
2606
2505
|
},
|
|
2607
|
-
[i,
|
|
2608
|
-
),
|
|
2609
|
-
|
|
2610
|
-
}, [e]),
|
|
2611
|
-
if (!
|
|
2506
|
+
[i, a, l, n]
|
|
2507
|
+
), d = B(() => {
|
|
2508
|
+
n.current && (console.log("[Player][Event]", "MEDIA_ATTACHED"), n.current.loadSource(e));
|
|
2509
|
+
}, [e]), p = B(() => {
|
|
2510
|
+
if (!n.current) return;
|
|
2612
2511
|
console.log("[Player][Event]", "MANIFEST_LOADED");
|
|
2613
|
-
const
|
|
2512
|
+
const v = n.current.levels, E = n.current.currentLevel, T = n.current.autoLevelEnabled;
|
|
2614
2513
|
l(
|
|
2615
|
-
|
|
2616
|
-
levels:
|
|
2617
|
-
const { bitrate:
|
|
2514
|
+
cs({
|
|
2515
|
+
levels: v.map((M, P) => {
|
|
2516
|
+
const { bitrate: b, height: h, width: L } = M;
|
|
2618
2517
|
return {
|
|
2619
|
-
bitrate:
|
|
2620
|
-
height:
|
|
2621
|
-
index:
|
|
2622
|
-
width:
|
|
2518
|
+
bitrate: b,
|
|
2519
|
+
height: h,
|
|
2520
|
+
index: P,
|
|
2521
|
+
width: L
|
|
2623
2522
|
};
|
|
2624
2523
|
}),
|
|
2625
2524
|
level: E,
|
|
2626
|
-
isAuto:
|
|
2525
|
+
isAuto: T
|
|
2627
2526
|
})
|
|
2628
2527
|
);
|
|
2629
|
-
}, [l]),
|
|
2630
|
-
if (!
|
|
2631
|
-
const
|
|
2528
|
+
}, [l]), g = B(() => {
|
|
2529
|
+
if (!u.current) return;
|
|
2530
|
+
const T = t ? {
|
|
2632
2531
|
backBufferLength: 10,
|
|
2633
2532
|
startLevel: -1
|
|
2634
2533
|
} : {
|
|
@@ -2636,52 +2535,52 @@ function Qo({ url: e, isLive: r }) {
|
|
|
2636
2535
|
startLevel: -1
|
|
2637
2536
|
};
|
|
2638
2537
|
try {
|
|
2639
|
-
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(
|
|
2640
|
-
} catch (
|
|
2641
|
-
throw new Error(`Error initializing Hls: ${
|
|
2642
|
-
}
|
|
2643
|
-
}, [
|
|
2644
|
-
|
|
2645
|
-
}, [
|
|
2646
|
-
return
|
|
2647
|
-
|
|
2648
|
-
}, [
|
|
2649
|
-
}
|
|
2650
|
-
function
|
|
2651
|
-
const
|
|
2652
|
-
onDurationChange:
|
|
2653
|
-
onSeeked:
|
|
2654
|
-
onSeeking:
|
|
2655
|
-
onTimeUpdate:
|
|
2656
|
-
},
|
|
2657
|
-
(!
|
|
2658
|
-
},
|
|
2659
|
-
return /* @__PURE__ */
|
|
2660
|
-
/* @__PURE__ */
|
|
2661
|
-
/* @__PURE__ */
|
|
2662
|
-
|
|
2538
|
+
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(T)), console.log("[Player] Version", Ce.version), n.current = new Ce(T), n.current.attachMedia(u.current), n.current.on(Ce.Events.MEDIA_ATTACHED, d), n.current.on(Ce.Events.MANIFEST_LOADED, p);
|
|
2539
|
+
} catch (M) {
|
|
2540
|
+
throw new Error(`Error initializing Hls: ${M}`);
|
|
2541
|
+
}
|
|
2542
|
+
}, [p, d, t, u, e]), w = B(() => {
|
|
2543
|
+
n.current && (n.current.off(Ce.Events.MEDIA_ATTACHED, d), n.current.off(Ce.Events.MANIFEST_LOADED, p), n.current.destroy(), n.current = null);
|
|
2544
|
+
}, [p, d]);
|
|
2545
|
+
return te(() => {
|
|
2546
|
+
r !== null && s(r);
|
|
2547
|
+
}, [r, s]), te(() => (Ce.isSupported() && g(), w), [w, g]), null;
|
|
2548
|
+
}
|
|
2549
|
+
function _r({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
2550
|
+
const r = m((h) => h.handleDurationChange), i = m((h) => h.handleEnd), a = m((h) => h.handleLoadedMetadata), l = m((h) => h.handleLoadStart), u = m((h) => h.handlePause), s = m((h) => h.handlePlay), d = m((h) => h.handlePlaying), p = m((h) => h.handleSeeked), g = m((h) => h.handleSeeking), w = m((h) => h.handleTimeUpdate), v = m((h) => h.handleWaiting), E = m((h) => h.techRef), T = Y(null), M = () => t ? {} : {
|
|
2551
|
+
onDurationChange: r,
|
|
2552
|
+
onSeeked: p,
|
|
2553
|
+
onSeeking: g,
|
|
2554
|
+
onTimeUpdate: P
|
|
2555
|
+
}, P = () => {
|
|
2556
|
+
(!T.current || Date.now() - T.current >= 1e3) && (w(), T.current = Date.now());
|
|
2557
|
+
}, b = M();
|
|
2558
|
+
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2559
|
+
/* @__PURE__ */ c.jsx(hs, { isLive: t, url: e }),
|
|
2560
|
+
/* @__PURE__ */ c.jsx(
|
|
2561
|
+
ms,
|
|
2663
2562
|
{
|
|
2664
2563
|
ref: E,
|
|
2665
2564
|
playsInline: !0,
|
|
2666
2565
|
autoPlay: !0,
|
|
2667
2566
|
controls: !1,
|
|
2668
|
-
muted:
|
|
2567
|
+
muted: n,
|
|
2669
2568
|
preload: "auto",
|
|
2670
2569
|
crossOrigin: "anonymous",
|
|
2671
2570
|
onEnded: i,
|
|
2672
|
-
onLoadedMetadata:
|
|
2571
|
+
onLoadedMetadata: a,
|
|
2673
2572
|
onLoadStart: l,
|
|
2674
|
-
onPause:
|
|
2675
|
-
onPlay:
|
|
2676
|
-
onPlaying:
|
|
2677
|
-
onWaiting:
|
|
2573
|
+
onPause: u,
|
|
2574
|
+
onPlay: s,
|
|
2575
|
+
onPlaying: d,
|
|
2576
|
+
onWaiting: v,
|
|
2678
2577
|
tabIndex: -1,
|
|
2679
|
-
...
|
|
2578
|
+
...b
|
|
2680
2579
|
}
|
|
2681
2580
|
)
|
|
2682
2581
|
] });
|
|
2683
2582
|
}
|
|
2684
|
-
const
|
|
2583
|
+
const ms = _.video`
|
|
2685
2584
|
position: relative;
|
|
2686
2585
|
width: 100%;
|
|
2687
2586
|
height: 100%;
|
|
@@ -2690,20 +2589,20 @@ const ei = Y.video`
|
|
|
2690
2589
|
pointer-events: none;
|
|
2691
2590
|
}
|
|
2692
2591
|
`;
|
|
2693
|
-
function
|
|
2694
|
-
const [
|
|
2695
|
-
|
|
2696
|
-
|
|
2592
|
+
function gs({ url: e }) {
|
|
2593
|
+
const [t, n] = X(null), r = U((a) => a.delay), i = B(async () => {
|
|
2594
|
+
n(
|
|
2595
|
+
r ? e.replace(
|
|
2697
2596
|
"playlist.m3u8",
|
|
2698
|
-
`playlist_fmp4_dvr_timeshift-${
|
|
2597
|
+
`playlist_fmp4_dvr_timeshift-${r}.m3u8`
|
|
2699
2598
|
) : e
|
|
2700
2599
|
);
|
|
2701
|
-
}, [
|
|
2702
|
-
return
|
|
2600
|
+
}, [r, e]);
|
|
2601
|
+
return te(() => {
|
|
2703
2602
|
i();
|
|
2704
|
-
}, [i]),
|
|
2603
|
+
}, [i]), t ? /* @__PURE__ */ c.jsx(_r, { url: t, isLive: !0 }) : null;
|
|
2705
2604
|
}
|
|
2706
|
-
const
|
|
2605
|
+
const Ir = _.div`
|
|
2707
2606
|
position: absolute;
|
|
2708
2607
|
top: 0;
|
|
2709
2608
|
left: 0;
|
|
@@ -2712,7 +2611,7 @@ const Fr = Y.div`
|
|
|
2712
2611
|
color: white;
|
|
2713
2612
|
background: black;
|
|
2714
2613
|
overflow: hidden;
|
|
2715
|
-
`,
|
|
2614
|
+
`, Dr = _.div`
|
|
2716
2615
|
position: absolute;
|
|
2717
2616
|
left: 0;
|
|
2718
2617
|
width: 100%;
|
|
@@ -2724,7 +2623,7 @@ const Fr = Y.div`
|
|
|
2724
2623
|
@media (min-width: 768px) {
|
|
2725
2624
|
padding-top: 2rem;
|
|
2726
2625
|
}
|
|
2727
|
-
`,
|
|
2626
|
+
`, Ar = _.div`
|
|
2728
2627
|
display: flex;
|
|
2729
2628
|
flex-direction: column;
|
|
2730
2629
|
padding-left: 0.5rem;
|
|
@@ -2736,83 +2635,83 @@ const Fr = Y.div`
|
|
|
2736
2635
|
padding-left: 1rem;
|
|
2737
2636
|
padding-right: 1rem;
|
|
2738
2637
|
}
|
|
2739
|
-
`,
|
|
2638
|
+
`, Or = _.div`
|
|
2740
2639
|
display: flex;
|
|
2741
2640
|
padding: 0.5rem 0;
|
|
2742
2641
|
width: 100%;
|
|
2743
2642
|
align-items: center;
|
|
2744
|
-
`,
|
|
2643
|
+
`, Fr = _.div`
|
|
2745
2644
|
display: flex;
|
|
2746
2645
|
flex: 1;
|
|
2747
2646
|
align-items: center;
|
|
2748
2647
|
gap: 0.5rem;
|
|
2749
|
-
`,
|
|
2648
|
+
`, Mr = _(Fr)`
|
|
2750
2649
|
justify-content: flex-start;
|
|
2751
|
-
`,
|
|
2650
|
+
`, Vr = _(Fr)`
|
|
2752
2651
|
justify-content: flex-end;
|
|
2753
2652
|
`;
|
|
2754
|
-
function
|
|
2755
|
-
return /* @__PURE__ */
|
|
2653
|
+
function ys() {
|
|
2654
|
+
return /* @__PURE__ */ c.jsx(
|
|
2756
2655
|
"svg",
|
|
2757
2656
|
{
|
|
2758
2657
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2759
2658
|
viewBox: "0 0 24 24",
|
|
2760
2659
|
fill: "currentColor",
|
|
2761
|
-
children: /* @__PURE__ */
|
|
2660
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
2762
2661
|
}
|
|
2763
2662
|
);
|
|
2764
2663
|
}
|
|
2765
|
-
function
|
|
2766
|
-
return /* @__PURE__ */
|
|
2664
|
+
function vs() {
|
|
2665
|
+
return /* @__PURE__ */ c.jsx(
|
|
2767
2666
|
"svg",
|
|
2768
2667
|
{
|
|
2769
2668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2770
2669
|
viewBox: "0 0 24 24",
|
|
2771
2670
|
fill: "currentColor",
|
|
2772
|
-
children: /* @__PURE__ */
|
|
2671
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
2773
2672
|
}
|
|
2774
2673
|
);
|
|
2775
2674
|
}
|
|
2776
|
-
function
|
|
2777
|
-
const e =
|
|
2778
|
-
(
|
|
2779
|
-
|
|
2675
|
+
function Nr() {
|
|
2676
|
+
const e = m((d) => d.containerRef), t = m((d) => d.exitFullscreen), n = m((d) => d.isFullscreen), r = m((d) => d.requestFullscreen), i = m((d) => d.setIsFullscreen), a = m((d) => d.setIsFullscreenReady), l = m((d) => d.techRef), u = B(
|
|
2677
|
+
(d) => {
|
|
2678
|
+
d.stopPropagation(), i(Bi());
|
|
2780
2679
|
},
|
|
2781
2680
|
[i]
|
|
2782
|
-
),
|
|
2783
|
-
|
|
2681
|
+
), s = () => {
|
|
2682
|
+
n ? t() : r();
|
|
2784
2683
|
};
|
|
2785
|
-
return
|
|
2786
|
-
const
|
|
2787
|
-
if (
|
|
2788
|
-
return
|
|
2789
|
-
}, [e,
|
|
2790
|
-
|
|
2791
|
-
}, [
|
|
2792
|
-
}
|
|
2793
|
-
const
|
|
2794
|
-
function
|
|
2795
|
-
const
|
|
2684
|
+
return te(() => {
|
|
2685
|
+
const d = gr ? l.current : e.current;
|
|
2686
|
+
if (d)
|
|
2687
|
+
return Yi(d, u);
|
|
2688
|
+
}, [e, u, l]), te(() => {
|
|
2689
|
+
a(!0);
|
|
2690
|
+
}, [a]), /* @__PURE__ */ c.jsx(be, { onClick: s, children: n ? /* @__PURE__ */ c.jsx(vs, {}) : /* @__PURE__ */ c.jsx(ys, {}) });
|
|
2691
|
+
}
|
|
2692
|
+
const ws = 5 * 1e3;
|
|
2693
|
+
function $r({ children: e }) {
|
|
2694
|
+
const t = Y(null), [n, r] = X(!1), i = Y(null), l = m((d) => d.idleLocks).size, u = B(() => {
|
|
2796
2695
|
i.current !== null && (window.clearTimeout(i.current), i.current = null);
|
|
2797
|
-
}, []),
|
|
2798
|
-
|
|
2799
|
-
}, [
|
|
2800
|
-
return
|
|
2801
|
-
|
|
2802
|
-
}), [
|
|
2803
|
-
const
|
|
2804
|
-
if (!
|
|
2805
|
-
const
|
|
2806
|
-
|
|
2807
|
-
},
|
|
2808
|
-
|
|
2696
|
+
}, []), s = B(() => {
|
|
2697
|
+
u(), i.current = window.setTimeout(() => r(!0), ws);
|
|
2698
|
+
}, [u]);
|
|
2699
|
+
return te(() => (r(!1), s(), () => {
|
|
2700
|
+
u();
|
|
2701
|
+
}), [u, s]), te(() => {
|
|
2702
|
+
const d = t.current;
|
|
2703
|
+
if (!d) return;
|
|
2704
|
+
const p = (w) => {
|
|
2705
|
+
n && (w.stopPropagation(), r(!1), s());
|
|
2706
|
+
}, g = () => {
|
|
2707
|
+
n && r(!1), s();
|
|
2809
2708
|
};
|
|
2810
|
-
return
|
|
2811
|
-
|
|
2709
|
+
return d.addEventListener("click", p), d.addEventListener("mousemove", g), () => {
|
|
2710
|
+
d.removeEventListener("click", p), d.removeEventListener("mousemove", g);
|
|
2812
2711
|
};
|
|
2813
|
-
}, [
|
|
2712
|
+
}, [t, n, r, s]), /* @__PURE__ */ c.jsx(bs, { ref: t, $isIdle: n && !l, children: e });
|
|
2814
2713
|
}
|
|
2815
|
-
const
|
|
2714
|
+
const bs = _.div`
|
|
2816
2715
|
position: absolute;
|
|
2817
2716
|
top: 0;
|
|
2818
2717
|
left: 0;
|
|
@@ -2822,38 +2721,38 @@ const ii = Y.div`
|
|
|
2822
2721
|
cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
|
|
2823
2722
|
opacity: ${({ $isIdle: e }) => e ? 0 : 1};
|
|
2824
2723
|
`;
|
|
2825
|
-
function
|
|
2826
|
-
return /* @__PURE__ */
|
|
2724
|
+
function xs(e) {
|
|
2725
|
+
return /* @__PURE__ */ c.jsx(Cs, { ...e });
|
|
2827
2726
|
}
|
|
2828
|
-
const
|
|
2727
|
+
const Ss = Ii`
|
|
2829
2728
|
from {
|
|
2830
2729
|
transform: rotate(0deg);
|
|
2831
2730
|
}
|
|
2832
2731
|
to {
|
|
2833
2732
|
transform: rotate(360deg);
|
|
2834
2733
|
}
|
|
2835
|
-
`,
|
|
2734
|
+
`, Cs = _.div`
|
|
2836
2735
|
width: 1.5rem;
|
|
2837
2736
|
height: 1.5rem;
|
|
2838
2737
|
border: 2px solid white;
|
|
2839
2738
|
border-bottom-color: transparent;
|
|
2840
2739
|
border-radius: 50%;
|
|
2841
|
-
animation: ${
|
|
2740
|
+
animation: ${Ss} 1s linear infinite;
|
|
2842
2741
|
`;
|
|
2843
|
-
function
|
|
2844
|
-
const [
|
|
2845
|
-
return
|
|
2846
|
-
const i = window.setTimeout(() =>
|
|
2742
|
+
function ks(e, t = 500) {
|
|
2743
|
+
const [n, r] = X(e);
|
|
2744
|
+
return te(() => {
|
|
2745
|
+
const i = window.setTimeout(() => r(e), t);
|
|
2847
2746
|
return () => {
|
|
2848
2747
|
window.clearTimeout(i);
|
|
2849
2748
|
};
|
|
2850
|
-
}, [e,
|
|
2749
|
+
}, [e, t]), n;
|
|
2851
2750
|
}
|
|
2852
|
-
function
|
|
2853
|
-
const
|
|
2854
|
-
return
|
|
2751
|
+
function Hr({ style: e, ...t }) {
|
|
2752
|
+
const n = m((i) => i.isLoading);
|
|
2753
|
+
return ks(n, 100) ? /* @__PURE__ */ c.jsx(Ts, { style: e, ...t, children: /* @__PURE__ */ c.jsx(xs, {}) }) : null;
|
|
2855
2754
|
}
|
|
2856
|
-
const
|
|
2755
|
+
const Ts = _.div`
|
|
2857
2756
|
pointer-events: none;
|
|
2858
2757
|
position: absolute;
|
|
2859
2758
|
top: 0;
|
|
@@ -2866,43 +2765,43 @@ const ui = Y.div`
|
|
|
2866
2765
|
align-items: center;
|
|
2867
2766
|
justify-content: center;
|
|
2868
2767
|
`;
|
|
2869
|
-
function
|
|
2870
|
-
return /* @__PURE__ */
|
|
2768
|
+
function Es() {
|
|
2769
|
+
return /* @__PURE__ */ c.jsx(
|
|
2871
2770
|
"svg",
|
|
2872
2771
|
{
|
|
2873
2772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2874
2773
|
viewBox: "0 0 24 24",
|
|
2875
2774
|
fill: "currentColor",
|
|
2876
|
-
children: /* @__PURE__ */
|
|
2775
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z" })
|
|
2877
2776
|
}
|
|
2878
2777
|
);
|
|
2879
2778
|
}
|
|
2880
|
-
function
|
|
2881
|
-
return /* @__PURE__ */
|
|
2779
|
+
function Ps() {
|
|
2780
|
+
return /* @__PURE__ */ c.jsx(
|
|
2882
2781
|
"svg",
|
|
2883
2782
|
{
|
|
2884
2783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2885
2784
|
viewBox: "0 0 24 24",
|
|
2886
2785
|
fill: "currentColor",
|
|
2887
|
-
children: /* @__PURE__ */
|
|
2786
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M4 5V19H20V5H4ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3ZM7.5 11.25H9.5V9H11V15H9.5V12.75H7.5V15H6V9H7.5V11.25ZM14.5 10.5V13.5H16C16.2761 13.5 16.5 13.2761 16.5 13V11C16.5 10.7239 16.2761 10.5 16 10.5H14.5ZM13 9H16C17.1046 9 18 9.89543 18 11V13C18 14.1046 17.1046 15 16 15H13V9Z" })
|
|
2888
2787
|
}
|
|
2889
2788
|
);
|
|
2890
2789
|
}
|
|
2891
|
-
const
|
|
2892
|
-
|
|
2790
|
+
const Rs = Qe.Root, js = Qe.Trigger, Ls = Qe.Portal, zr = yt(({ sideOffset: e = 4, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
2791
|
+
_s,
|
|
2893
2792
|
{
|
|
2894
|
-
ref:
|
|
2793
|
+
ref: n,
|
|
2895
2794
|
sideOffset: e,
|
|
2896
|
-
onCloseAutoFocus: (
|
|
2897
|
-
|
|
2795
|
+
onCloseAutoFocus: (r) => {
|
|
2796
|
+
r.preventDefault();
|
|
2898
2797
|
},
|
|
2899
|
-
...
|
|
2798
|
+
...t
|
|
2900
2799
|
}
|
|
2901
2800
|
));
|
|
2902
|
-
|
|
2903
|
-
const
|
|
2904
|
-
|
|
2905
|
-
const
|
|
2801
|
+
zr.displayName = "PlayerDropdownMenuContent";
|
|
2802
|
+
const Br = yt((e, t) => /* @__PURE__ */ c.jsx(Is, { ref: t, ...e }));
|
|
2803
|
+
Br.displayName = "PlayerDropdownMenuItem";
|
|
2804
|
+
const _s = _(Qe.Content).withConfig({
|
|
2906
2805
|
shouldForwardProp: (e) => e !== "ref"
|
|
2907
2806
|
})`
|
|
2908
2807
|
padding: 0.25rem;
|
|
@@ -2979,7 +2878,7 @@ const vi = Y(Ke.Content).withConfig({
|
|
|
2979
2878
|
transform: translateX(0);
|
|
2980
2879
|
}
|
|
2981
2880
|
}
|
|
2982
|
-
`,
|
|
2881
|
+
`, Is = _(Qe.Item)`
|
|
2983
2882
|
position: relative;
|
|
2984
2883
|
display: flex;
|
|
2985
2884
|
align-items: center;
|
|
@@ -3016,87 +2915,87 @@ const vi = Y(Ke.Content).withConfig({
|
|
|
3016
2915
|
color: rgba(255, 255, 255, 0.5);
|
|
3017
2916
|
pointer-events: none;
|
|
3018
2917
|
}
|
|
3019
|
-
`,
|
|
3020
|
-
function
|
|
3021
|
-
const [e,
|
|
3022
|
-
(
|
|
3023
|
-
|
|
2918
|
+
`, Fn = "settings";
|
|
2919
|
+
function Ur() {
|
|
2920
|
+
const [e, t] = X(!1), n = m((s) => s.containerRef), r = m((s) => s.addIdleLock), i = m((s) => s.removeIdleLock), a = m((s) => s.levels), l = m((s) => s.setLevel), u = B(
|
|
2921
|
+
(s) => {
|
|
2922
|
+
t(s), s ? r(Fn) : i(Fn);
|
|
3024
2923
|
},
|
|
3025
|
-
[
|
|
2924
|
+
[r, i]
|
|
3026
2925
|
);
|
|
3027
|
-
return /* @__PURE__ */
|
|
3028
|
-
/* @__PURE__ */
|
|
3029
|
-
/* @__PURE__ */
|
|
3030
|
-
|
|
2926
|
+
return /* @__PURE__ */ c.jsxs(Rs, { open: e, onOpenChange: u, children: [
|
|
2927
|
+
/* @__PURE__ */ c.jsx(js, { asChild: !0, children: /* @__PURE__ */ c.jsx(be, { children: /* @__PURE__ */ c.jsx(Ps, {}) }) }),
|
|
2928
|
+
/* @__PURE__ */ c.jsx(Ls, { container: n.current, children: /* @__PURE__ */ c.jsx(zr, { side: "top", align: "end", children: a?.map((s) => /* @__PURE__ */ c.jsxs(
|
|
2929
|
+
Br,
|
|
3031
2930
|
{
|
|
3032
|
-
onClick: () => l(
|
|
2931
|
+
onClick: () => l(s.value),
|
|
3033
2932
|
children: [
|
|
3034
|
-
|
|
3035
|
-
|
|
2933
|
+
s.label,
|
|
2934
|
+
s.selected && /* @__PURE__ */ c.jsx(Es, {})
|
|
3036
2935
|
]
|
|
3037
2936
|
},
|
|
3038
|
-
|
|
2937
|
+
s.sid
|
|
3039
2938
|
)) }) })
|
|
3040
2939
|
] });
|
|
3041
2940
|
}
|
|
3042
|
-
function
|
|
3043
|
-
return /* @__PURE__ */
|
|
2941
|
+
function Ds() {
|
|
2942
|
+
return /* @__PURE__ */ c.jsx(
|
|
3044
2943
|
"svg",
|
|
3045
2944
|
{
|
|
3046
2945
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3047
2946
|
viewBox: "0 0 24 24",
|
|
3048
2947
|
fill: "currentColor",
|
|
3049
|
-
children: /* @__PURE__ */
|
|
2948
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
|
|
3050
2949
|
}
|
|
3051
2950
|
);
|
|
3052
2951
|
}
|
|
3053
|
-
function
|
|
3054
|
-
return /* @__PURE__ */
|
|
2952
|
+
function As() {
|
|
2953
|
+
return /* @__PURE__ */ c.jsx(
|
|
3055
2954
|
"svg",
|
|
3056
2955
|
{
|
|
3057
2956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3058
2957
|
viewBox: "0 0 24 24",
|
|
3059
2958
|
fill: "currentColor",
|
|
3060
|
-
children: /* @__PURE__ */
|
|
2959
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
|
|
3061
2960
|
}
|
|
3062
2961
|
);
|
|
3063
2962
|
}
|
|
3064
|
-
function
|
|
3065
|
-
return /* @__PURE__ */
|
|
2963
|
+
function Os() {
|
|
2964
|
+
return /* @__PURE__ */ c.jsx(
|
|
3066
2965
|
"svg",
|
|
3067
2966
|
{
|
|
3068
2967
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3069
2968
|
viewBox: "0 0 24 24",
|
|
3070
2969
|
fill: "currentColor",
|
|
3071
|
-
children: /* @__PURE__ */
|
|
2970
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
|
|
3072
2971
|
}
|
|
3073
2972
|
);
|
|
3074
2973
|
}
|
|
3075
|
-
const
|
|
3076
|
-
function
|
|
3077
|
-
|
|
3078
|
-
const e =
|
|
3079
|
-
e(
|
|
3080
|
-
},
|
|
3081
|
-
|
|
3082
|
-
}, l = () => e(
|
|
3083
|
-
return /* @__PURE__ */
|
|
3084
|
-
/* @__PURE__ */
|
|
3085
|
-
/* @__PURE__ */
|
|
3086
|
-
|
|
2974
|
+
const Mn = "volume";
|
|
2975
|
+
function Wr() {
|
|
2976
|
+
m((u) => u.containerRef);
|
|
2977
|
+
const e = m((u) => u.setVolume), t = m((u) => u.volume), n = m((u) => u.addIdleLock), r = m((u) => u.removeIdleLock), i = (u) => {
|
|
2978
|
+
e(u[0]), n(Mn);
|
|
2979
|
+
}, a = () => {
|
|
2980
|
+
r(Mn);
|
|
2981
|
+
}, l = () => e(t ? 0 : 100);
|
|
2982
|
+
return /* @__PURE__ */ c.jsxs(Fs, { children: [
|
|
2983
|
+
/* @__PURE__ */ c.jsx(be, { onClick: l, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ c.jsx(Ds, {}) : /* @__PURE__ */ c.jsx(As, {}) : /* @__PURE__ */ c.jsx(Os, {}) }),
|
|
2984
|
+
/* @__PURE__ */ c.jsx(Yr, { children: /* @__PURE__ */ c.jsx(
|
|
2985
|
+
Et,
|
|
3087
2986
|
{
|
|
3088
|
-
value: [
|
|
2987
|
+
value: [t],
|
|
3089
2988
|
onValueChange: i,
|
|
3090
|
-
onValueCommit:
|
|
2989
|
+
onValueCommit: a
|
|
3091
2990
|
}
|
|
3092
2991
|
) })
|
|
3093
2992
|
] });
|
|
3094
2993
|
}
|
|
3095
|
-
const
|
|
2994
|
+
const Yr = _.div`
|
|
3096
2995
|
width: 0;
|
|
3097
2996
|
opacity: 0;
|
|
3098
2997
|
transition: all 0.2s ease-in-out;
|
|
3099
|
-
`,
|
|
2998
|
+
`, Fs = _.div`
|
|
3100
2999
|
display: flex;
|
|
3101
3000
|
align-items: center;
|
|
3102
3001
|
gap: 0.25rem;
|
|
@@ -3107,49 +3006,49 @@ const Jr = Y.div`
|
|
|
3107
3006
|
&:hover {
|
|
3108
3007
|
width: 6rem;
|
|
3109
3008
|
|
|
3110
|
-
${
|
|
3009
|
+
${Yr} {
|
|
3111
3010
|
width: 100%;
|
|
3112
3011
|
opacity: 1;
|
|
3113
3012
|
}
|
|
3114
3013
|
}
|
|
3115
3014
|
}
|
|
3116
3015
|
`;
|
|
3117
|
-
function
|
|
3118
|
-
return /* @__PURE__ */
|
|
3119
|
-
|
|
3016
|
+
function Gs({ url: e, startDate: t, endDate: n, messages: r }) {
|
|
3017
|
+
return /* @__PURE__ */ c.jsx(
|
|
3018
|
+
us,
|
|
3120
3019
|
{
|
|
3121
|
-
startDate: new Date(
|
|
3122
|
-
endDate: new Date(
|
|
3123
|
-
children: /* @__PURE__ */
|
|
3020
|
+
startDate: new Date(t),
|
|
3021
|
+
endDate: new Date(n),
|
|
3022
|
+
children: /* @__PURE__ */ c.jsx(Ms, { url: e, messages: r })
|
|
3124
3023
|
}
|
|
3125
3024
|
);
|
|
3126
3025
|
}
|
|
3127
|
-
function
|
|
3128
|
-
const
|
|
3129
|
-
return /* @__PURE__ */
|
|
3130
|
-
|
|
3026
|
+
function Ms({ url: e, messages: t }) {
|
|
3027
|
+
const n = m((r) => r.containerRef);
|
|
3028
|
+
return /* @__PURE__ */ c.jsx(Ir, { ref: n, children: /* @__PURE__ */ c.jsxs(
|
|
3029
|
+
Di,
|
|
3131
3030
|
{
|
|
3132
|
-
eventFinishedMessage:
|
|
3133
|
-
eventNotStartedMessage:
|
|
3134
|
-
eventStartingSoonMessage:
|
|
3031
|
+
eventFinishedMessage: t?.eventFinished,
|
|
3032
|
+
eventNotStartedMessage: t?.eventNotStarted,
|
|
3033
|
+
eventStartingSoonMessage: t?.eventStartingSoon,
|
|
3135
3034
|
children: [
|
|
3136
|
-
/* @__PURE__ */
|
|
3137
|
-
/* @__PURE__ */
|
|
3138
|
-
/* @__PURE__ */
|
|
3139
|
-
/* @__PURE__ */
|
|
3140
|
-
/* @__PURE__ */
|
|
3141
|
-
/* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */
|
|
3143
|
-
/* @__PURE__ */
|
|
3144
|
-
/* @__PURE__ */
|
|
3145
|
-
/* @__PURE__ */
|
|
3146
|
-
/* @__PURE__ */
|
|
3147
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ c.jsx(gs, { url: e }),
|
|
3036
|
+
/* @__PURE__ */ c.jsx(Hr, {}),
|
|
3037
|
+
/* @__PURE__ */ c.jsxs($r, { children: [
|
|
3038
|
+
/* @__PURE__ */ c.jsx(ns, {}),
|
|
3039
|
+
/* @__PURE__ */ c.jsx(Dr, { children: /* @__PURE__ */ c.jsxs(Ar, { children: [
|
|
3040
|
+
/* @__PURE__ */ c.jsx(ls, {}),
|
|
3041
|
+
/* @__PURE__ */ c.jsxs(Or, { children: [
|
|
3042
|
+
/* @__PURE__ */ c.jsxs(Mr, { children: [
|
|
3043
|
+
/* @__PURE__ */ c.jsx(es, {}),
|
|
3044
|
+
/* @__PURE__ */ c.jsx(ps, {}),
|
|
3045
|
+
/* @__PURE__ */ c.jsx(Wr, {}),
|
|
3046
|
+
/* @__PURE__ */ c.jsx(ds, {})
|
|
3148
3047
|
] }),
|
|
3149
|
-
/* @__PURE__ */
|
|
3150
|
-
/* @__PURE__ */
|
|
3151
|
-
/* @__PURE__ */
|
|
3152
|
-
/* @__PURE__ */
|
|
3048
|
+
/* @__PURE__ */ c.jsxs(Vr, { children: [
|
|
3049
|
+
/* @__PURE__ */ c.jsx(Ni, { message: t?.live }),
|
|
3050
|
+
/* @__PURE__ */ c.jsx(Ur, {}),
|
|
3051
|
+
/* @__PURE__ */ c.jsx(Nr, {})
|
|
3153
3052
|
] })
|
|
3154
3053
|
] })
|
|
3155
3054
|
] }) })
|
|
@@ -3158,119 +3057,119 @@ function Si({ url: e, messages: r }) {
|
|
|
3158
3057
|
}
|
|
3159
3058
|
) });
|
|
3160
3059
|
}
|
|
3161
|
-
function
|
|
3162
|
-
const e =
|
|
3163
|
-
e ?
|
|
3060
|
+
function Vs() {
|
|
3061
|
+
const e = m((i) => i.isPlaying), t = m((i) => i.pause), n = m((i) => i.play), r = () => {
|
|
3062
|
+
e ? t() : n();
|
|
3164
3063
|
};
|
|
3165
|
-
return /* @__PURE__ */
|
|
3064
|
+
return /* @__PURE__ */ c.jsx(be, { onClick: r, children: e ? /* @__PURE__ */ c.jsx(hr, {}) : /* @__PURE__ */ c.jsx(mr, {}) });
|
|
3166
3065
|
}
|
|
3167
|
-
function
|
|
3168
|
-
const e =
|
|
3169
|
-
e ?
|
|
3066
|
+
function Ns() {
|
|
3067
|
+
const e = m((i) => i.isPlaying), t = m((i) => i.pause), n = m((i) => i.play), r = () => {
|
|
3068
|
+
e ? t() : n();
|
|
3170
3069
|
};
|
|
3171
|
-
return /* @__PURE__ */
|
|
3172
|
-
}
|
|
3173
|
-
const
|
|
3174
|
-
function
|
|
3175
|
-
const e =
|
|
3176
|
-
(
|
|
3177
|
-
), E = (
|
|
3178
|
-
d
|
|
3179
|
-
},
|
|
3180
|
-
l !== -1 && (
|
|
3181
|
-
},
|
|
3182
|
-
(
|
|
3183
|
-
const
|
|
3184
|
-
if (
|
|
3185
|
-
const
|
|
3186
|
-
if (
|
|
3187
|
-
let
|
|
3188
|
-
|
|
3070
|
+
return /* @__PURE__ */ c.jsx(vr, { onClick: r });
|
|
3071
|
+
}
|
|
3072
|
+
const Vn = "vod-player-progress-bar";
|
|
3073
|
+
function $s() {
|
|
3074
|
+
const e = Y(null), t = Y(null), [n, r] = X(!1), [i, a] = X(-1), [l, u] = X(-1), s = m((h) => h.currentTime), d = m((h) => h.duration), p = m((h) => h.seek), g = m((h) => h.addIdleLock), w = m((h) => h.removeIdleLock), v = parseFloat(
|
|
3075
|
+
(d ? (l !== -1 ? l : s) / d * 100 : 0).toFixed(1)
|
|
3076
|
+
), E = (h) => {
|
|
3077
|
+
u(d * (h[0] / 100)), g(Vn);
|
|
3078
|
+
}, T = () => {
|
|
3079
|
+
l !== -1 && (p(l), u(-1), w(Vn));
|
|
3080
|
+
}, M = () => r(!0), P = () => r(!1), b = B(
|
|
3081
|
+
(h) => {
|
|
3082
|
+
const L = e.current, D = t.current;
|
|
3083
|
+
if (L && D) {
|
|
3084
|
+
const C = gt(L), x = gt(D), W = (h.pageX || h.clientX) - C.left, J = W / C.width;
|
|
3085
|
+
if (J < 0) return;
|
|
3086
|
+
let I = W - x.width / 2;
|
|
3087
|
+
I < 0 && (I = 0), I > C.width - x.width && (I = -1), D.style.left = I > -1 ? `${I}px` : "auto", D.style.right = I > -1 ? "auto" : "0px", a(J * d);
|
|
3189
3088
|
}
|
|
3190
|
-
|
|
3089
|
+
M();
|
|
3191
3090
|
},
|
|
3192
|
-
[
|
|
3091
|
+
[d]
|
|
3193
3092
|
);
|
|
3194
|
-
return /* @__PURE__ */
|
|
3195
|
-
/* @__PURE__ */
|
|
3196
|
-
|
|
3093
|
+
return /* @__PURE__ */ c.jsxs(wr, { children: [
|
|
3094
|
+
/* @__PURE__ */ c.jsx(
|
|
3095
|
+
Et,
|
|
3197
3096
|
{
|
|
3198
3097
|
ref: e,
|
|
3199
|
-
value: [
|
|
3200
|
-
onPointerLeave:
|
|
3201
|
-
onPointerDown:
|
|
3202
|
-
onPointerMove:
|
|
3098
|
+
value: [v],
|
|
3099
|
+
onPointerLeave: P,
|
|
3100
|
+
onPointerDown: P,
|
|
3101
|
+
onPointerMove: b,
|
|
3203
3102
|
onValueChange: E,
|
|
3204
|
-
onValueCommit:
|
|
3103
|
+
onValueCommit: T,
|
|
3205
3104
|
step: 0.1
|
|
3206
3105
|
}
|
|
3207
3106
|
),
|
|
3208
|
-
/* @__PURE__ */
|
|
3107
|
+
/* @__PURE__ */ c.jsx(br, { ref: t, $isVisible: n, children: /* @__PURE__ */ c.jsx(xr, { children: Be(i) }) })
|
|
3209
3108
|
] });
|
|
3210
3109
|
}
|
|
3211
|
-
function
|
|
3212
|
-
const e =
|
|
3213
|
-
return /* @__PURE__ */
|
|
3214
|
-
/* @__PURE__ */
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
/* @__PURE__ */
|
|
3110
|
+
function Hs() {
|
|
3111
|
+
const e = m((n) => n.currentTime), t = m((n) => n.duration);
|
|
3112
|
+
return /* @__PURE__ */ c.jsxs(Er, { children: [
|
|
3113
|
+
/* @__PURE__ */ c.jsx(Rr, { children: Be(e) }),
|
|
3114
|
+
/* @__PURE__ */ c.jsx(Lr, {}),
|
|
3115
|
+
/* @__PURE__ */ c.jsx(jr, { children: Be(t) })
|
|
3217
3116
|
] });
|
|
3218
3117
|
}
|
|
3219
|
-
const
|
|
3220
|
-
function
|
|
3221
|
-
const
|
|
3118
|
+
const zs = 60, Bs = 95;
|
|
3119
|
+
function Us({ storageKey: e }) {
|
|
3120
|
+
const t = m((p) => p.currentTime), n = m((p) => p.duration), r = m((p) => p.isPlaying), i = m((p) => p.setStartTime), a = Y(!1), l = B(() => {
|
|
3222
3121
|
window.localStorage.setItem(
|
|
3223
3122
|
e,
|
|
3224
3123
|
JSON.stringify({
|
|
3225
|
-
currentTime:
|
|
3226
|
-
duration:
|
|
3124
|
+
currentTime: t,
|
|
3125
|
+
duration: n
|
|
3227
3126
|
})
|
|
3228
3127
|
);
|
|
3229
|
-
}, [
|
|
3230
|
-
const
|
|
3231
|
-
if (
|
|
3232
|
-
const
|
|
3128
|
+
}, [t, n, e]), u = B(() => {
|
|
3129
|
+
const p = window.localStorage.getItem(e);
|
|
3130
|
+
if (p) {
|
|
3131
|
+
const g = JSON.parse(p);
|
|
3233
3132
|
return {
|
|
3234
|
-
startTime:
|
|
3235
|
-
progress:
|
|
3133
|
+
startTime: g.currentTime,
|
|
3134
|
+
progress: g.currentTime / g.duration * 100
|
|
3236
3135
|
};
|
|
3237
3136
|
}
|
|
3238
3137
|
return { startTime: null, progress: null };
|
|
3239
|
-
}, [e]),
|
|
3240
|
-
|
|
3241
|
-
}, [
|
|
3242
|
-
if (
|
|
3243
|
-
const { progress:
|
|
3244
|
-
|
|
3245
|
-
}, [
|
|
3246
|
-
return
|
|
3247
|
-
|
|
3248
|
-
}, [
|
|
3249
|
-
}
|
|
3250
|
-
function
|
|
3251
|
-
return /* @__PURE__ */
|
|
3252
|
-
/* @__PURE__ */
|
|
3253
|
-
|
|
3138
|
+
}, [e]), s = B(() => {
|
|
3139
|
+
t < zs || l();
|
|
3140
|
+
}, [t, l]), d = B(() => {
|
|
3141
|
+
if (a.current) return;
|
|
3142
|
+
const { progress: p, startTime: g } = u();
|
|
3143
|
+
g && p && p < Bs && (i(g), a.current = !0);
|
|
3144
|
+
}, [u, i]);
|
|
3145
|
+
return wt(() => s(), r ? 1e3 : null), te(() => {
|
|
3146
|
+
d();
|
|
3147
|
+
}, [d]), null;
|
|
3148
|
+
}
|
|
3149
|
+
function Xs({ url: e, watchHistory: t }) {
|
|
3150
|
+
return /* @__PURE__ */ c.jsxs(Tr, { children: [
|
|
3151
|
+
/* @__PURE__ */ c.jsx(Ws, { url: e }),
|
|
3152
|
+
t?.enabled && /* @__PURE__ */ c.jsx(Us, { storageKey: t.storageKey })
|
|
3254
3153
|
] });
|
|
3255
3154
|
}
|
|
3256
|
-
function
|
|
3257
|
-
const
|
|
3258
|
-
return /* @__PURE__ */
|
|
3259
|
-
/* @__PURE__ */
|
|
3260
|
-
/* @__PURE__ */
|
|
3261
|
-
/* @__PURE__ */
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
/* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */
|
|
3266
|
-
/* @__PURE__ */
|
|
3267
|
-
/* @__PURE__ */
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
/* @__PURE__ */
|
|
3155
|
+
function Ws({ url: e }) {
|
|
3156
|
+
const t = m((n) => n.containerRef);
|
|
3157
|
+
return /* @__PURE__ */ c.jsxs(Ir, { ref: t, children: [
|
|
3158
|
+
/* @__PURE__ */ c.jsx(_r, { url: e, isLive: !1 }),
|
|
3159
|
+
/* @__PURE__ */ c.jsx(Hr, {}),
|
|
3160
|
+
/* @__PURE__ */ c.jsxs($r, { children: [
|
|
3161
|
+
/* @__PURE__ */ c.jsx(Ns, {}),
|
|
3162
|
+
/* @__PURE__ */ c.jsx(Dr, { children: /* @__PURE__ */ c.jsxs(Ar, { children: [
|
|
3163
|
+
/* @__PURE__ */ c.jsx($s, {}),
|
|
3164
|
+
/* @__PURE__ */ c.jsxs(Or, { children: [
|
|
3165
|
+
/* @__PURE__ */ c.jsxs(Mr, { children: [
|
|
3166
|
+
/* @__PURE__ */ c.jsx(Vs, {}),
|
|
3167
|
+
/* @__PURE__ */ c.jsx(Wr, {}),
|
|
3168
|
+
/* @__PURE__ */ c.jsx(Hs, {})
|
|
3270
3169
|
] }),
|
|
3271
|
-
/* @__PURE__ */
|
|
3272
|
-
/* @__PURE__ */
|
|
3273
|
-
/* @__PURE__ */
|
|
3170
|
+
/* @__PURE__ */ c.jsxs(Vr, { children: [
|
|
3171
|
+
/* @__PURE__ */ c.jsx(Ur, {}),
|
|
3172
|
+
/* @__PURE__ */ c.jsx(Nr, {})
|
|
3274
3173
|
] })
|
|
3275
3174
|
] })
|
|
3276
3175
|
] }) })
|
|
@@ -3278,7 +3177,7 @@ function Ai({ url: e }) {
|
|
|
3278
3177
|
] });
|
|
3279
3178
|
}
|
|
3280
3179
|
export {
|
|
3281
|
-
|
|
3282
|
-
|
|
3180
|
+
Gs as LivePlayer,
|
|
3181
|
+
Xs as VodPlayer
|
|
3283
3182
|
};
|
|
3284
3183
|
//# sourceMappingURL=react-video-player.es.js.map
|