@halibegic/react-video-player 0.0.9 → 0.0.10
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 +7 -11
- package/dist/components/player/ui/player-progress.styles.d.ts +4 -4
- package/dist/components/player/ui/player-remaining-time.styles.d.ts +5 -9
- package/dist/react-video-player.es.js +2245 -989
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +120 -47
- package/dist/react-video-player.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import Ue, { useLayoutEffect as vn, useEffect as be, useRef as ve, useState as ye, createContext as or, useContext as Je, createElement as gn, forwardRef as lt, useCallback as he } from "react";
|
|
2
|
+
import { create as ir, useStore as ar } from "zustand";
|
|
3
|
+
import * as ut from "@radix-ui/react-slider";
|
|
4
|
+
import De from "hls.js";
|
|
5
|
+
import * as Ke from "@radix-ui/react-dropdown-menu";
|
|
6
|
+
function yn(e) {
|
|
7
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
8
|
+
}
|
|
9
|
+
var Qe = { exports: {} }, qe = {};
|
|
8
10
|
/**
|
|
9
11
|
* @license React
|
|
10
12
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,21 +16,21 @@ var pe = { exports: {} }, ae = {};
|
|
|
14
16
|
* This source code is licensed under the MIT license found in the
|
|
15
17
|
* LICENSE file in the root directory of this source tree.
|
|
16
18
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
var e =
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
for (
|
|
26
|
-
if (
|
|
27
|
-
return { $$typeof:
|
|
19
|
+
var Vt;
|
|
20
|
+
function wn() {
|
|
21
|
+
if (Vt) return qe;
|
|
22
|
+
Vt = 1;
|
|
23
|
+
var e = Ue, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
24
|
+
function l(d, u, f) {
|
|
25
|
+
var v, w = {}, L = null, R = null;
|
|
26
|
+
f !== void 0 && (L = "" + f), u.key !== void 0 && (L = "" + u.key), u.ref !== void 0 && (R = u.ref);
|
|
27
|
+
for (v in u) n.call(u, v) && !c.hasOwnProperty(v) && (w[v] = u[v]);
|
|
28
|
+
if (d && d.defaultProps) for (v in u = d.defaultProps, u) w[v] === void 0 && (w[v] = u[v]);
|
|
29
|
+
return { $$typeof: r, type: d, key: L, ref: R, props: w, _owner: i.current };
|
|
28
30
|
}
|
|
29
|
-
return
|
|
31
|
+
return qe.Fragment = t, qe.jsx = l, qe.jsxs = l, qe;
|
|
30
32
|
}
|
|
31
|
-
var
|
|
33
|
+
var Ze = {};
|
|
32
34
|
/**
|
|
33
35
|
* @license React
|
|
34
36
|
* react-jsx-runtime.development.js
|
|
@@ -38,91 +40,91 @@ var le = {};
|
|
|
38
40
|
* This source code is licensed under the MIT license found in the
|
|
39
41
|
* LICENSE file in the root directory of this source tree.
|
|
40
42
|
*/
|
|
41
|
-
var
|
|
42
|
-
function
|
|
43
|
-
return
|
|
44
|
-
var e =
|
|
45
|
-
function
|
|
46
|
-
if (
|
|
43
|
+
var $t;
|
|
44
|
+
function bn() {
|
|
45
|
+
return $t || ($t = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
46
|
+
var e = Ue, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), E = Symbol.iterator, k = "@@iterator";
|
|
47
|
+
function _(o) {
|
|
48
|
+
if (o === null || typeof o != "object")
|
|
47
49
|
return null;
|
|
48
|
-
var
|
|
49
|
-
return typeof
|
|
50
|
+
var m = E && o[E] || o[k];
|
|
51
|
+
return typeof m == "function" ? m : null;
|
|
50
52
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
53
|
+
var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
+
function x(o) {
|
|
53
55
|
{
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
for (var m = arguments.length, C = new Array(m > 1 ? m - 1 : 0), O = 1; O < m; O++)
|
|
57
|
+
C[O - 1] = arguments[O];
|
|
58
|
+
g("error", o, C);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
|
-
function
|
|
61
|
+
function g(o, m, C) {
|
|
60
62
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
return String(
|
|
63
|
+
var O = j.ReactDebugCurrentFrame, W = O.getStackAddendum();
|
|
64
|
+
W !== "" && (m += "%s", C = C.concat([W]));
|
|
65
|
+
var X = C.map(function(z) {
|
|
66
|
+
return String(z);
|
|
65
67
|
});
|
|
66
|
-
|
|
68
|
+
X.unshift("Warning: " + m), Function.prototype.apply.call(console[o], console, X);
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof
|
|
71
|
+
var A = !1, p = !1, U = !1, de = !1, te = !1, ce;
|
|
72
|
+
ce = Symbol.for("react.module.reference");
|
|
73
|
+
function M(o) {
|
|
74
|
+
return !!(typeof o == "string" || typeof o == "function" || o === n || o === c || te || o === i || o === f || o === v || de || o === R || A || p || U || typeof o == "object" && o !== null && (o.$$typeof === L || o.$$typeof === w || o.$$typeof === l || o.$$typeof === d || o.$$typeof === u || // This needs to include all possible module reference object
|
|
73
75
|
// types supported by any Flight configuration anywhere since
|
|
74
76
|
// we don't know which Flight build this will end up being used
|
|
75
77
|
// with.
|
|
76
|
-
|
|
78
|
+
o.$$typeof === ce || o.getModuleId !== void 0));
|
|
77
79
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
80
|
+
function xe(o, m, C) {
|
|
81
|
+
var O = o.displayName;
|
|
82
|
+
if (O)
|
|
83
|
+
return O;
|
|
84
|
+
var W = m.displayName || m.name || "";
|
|
85
|
+
return W !== "" ? C + "(" + W + ")" : C;
|
|
84
86
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
87
|
+
function re(o) {
|
|
88
|
+
return o.displayName || "Context";
|
|
87
89
|
}
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
90
|
+
function J(o) {
|
|
91
|
+
if (o == null)
|
|
90
92
|
return null;
|
|
91
|
-
if (typeof
|
|
92
|
-
return
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
switch (
|
|
96
|
-
case
|
|
93
|
+
if (typeof o.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
94
|
+
return o.displayName || o.name || null;
|
|
95
|
+
if (typeof o == "string")
|
|
96
|
+
return o;
|
|
97
|
+
switch (o) {
|
|
98
|
+
case n:
|
|
97
99
|
return "Fragment";
|
|
98
|
-
case
|
|
100
|
+
case t:
|
|
99
101
|
return "Portal";
|
|
100
|
-
case
|
|
102
|
+
case c:
|
|
101
103
|
return "Profiler";
|
|
102
|
-
case
|
|
104
|
+
case i:
|
|
103
105
|
return "StrictMode";
|
|
104
|
-
case
|
|
106
|
+
case f:
|
|
105
107
|
return "Suspense";
|
|
106
|
-
case
|
|
108
|
+
case v:
|
|
107
109
|
return "SuspenseList";
|
|
108
110
|
}
|
|
109
|
-
if (typeof
|
|
110
|
-
switch (
|
|
111
|
-
case
|
|
112
|
-
var
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
var
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var
|
|
111
|
+
if (typeof o == "object")
|
|
112
|
+
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
|
+
case u:
|
|
120
|
+
return xe(o, o.render, "ForwardRef");
|
|
121
|
+
case w:
|
|
122
|
+
var O = o.displayName || null;
|
|
123
|
+
return O !== null ? O : J(o.type) || "Memo";
|
|
124
|
+
case L: {
|
|
125
|
+
var W = o, X = W._payload, z = W._init;
|
|
124
126
|
try {
|
|
125
|
-
return
|
|
127
|
+
return J(z(X));
|
|
126
128
|
} catch {
|
|
127
129
|
return null;
|
|
128
130
|
}
|
|
@@ -130,588 +132,1842 @@ function Tn() {
|
|
|
130
132
|
}
|
|
131
133
|
return null;
|
|
132
134
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
135
|
+
var ne = Object.assign, K = 0, Se, Q, pe, Pe, Ee, Re, P;
|
|
136
|
+
function S() {
|
|
135
137
|
}
|
|
136
|
-
|
|
137
|
-
function
|
|
138
|
+
S.__reactDisabledLog = !0;
|
|
139
|
+
function T() {
|
|
138
140
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
141
|
-
var
|
|
141
|
+
if (K === 0) {
|
|
142
|
+
Se = console.log, Q = console.info, pe = console.warn, Pe = console.error, Ee = console.group, Re = console.groupCollapsed, P = console.groupEnd;
|
|
143
|
+
var o = {
|
|
142
144
|
configurable: !0,
|
|
143
145
|
enumerable: !0,
|
|
144
|
-
value:
|
|
146
|
+
value: S,
|
|
145
147
|
writable: !0
|
|
146
148
|
};
|
|
147
149
|
Object.defineProperties(console, {
|
|
148
|
-
info:
|
|
149
|
-
log:
|
|
150
|
-
warn:
|
|
151
|
-
error:
|
|
152
|
-
group:
|
|
153
|
-
groupCollapsed:
|
|
154
|
-
groupEnd:
|
|
150
|
+
info: o,
|
|
151
|
+
log: o,
|
|
152
|
+
warn: o,
|
|
153
|
+
error: o,
|
|
154
|
+
group: o,
|
|
155
|
+
groupCollapsed: o,
|
|
156
|
+
groupEnd: o
|
|
155
157
|
});
|
|
156
158
|
}
|
|
157
|
-
|
|
159
|
+
K++;
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
|
-
function
|
|
162
|
+
function D() {
|
|
161
163
|
{
|
|
162
|
-
if (
|
|
163
|
-
var
|
|
164
|
+
if (K--, K === 0) {
|
|
165
|
+
var o = {
|
|
164
166
|
configurable: !0,
|
|
165
167
|
enumerable: !0,
|
|
166
168
|
writable: !0
|
|
167
169
|
};
|
|
168
170
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
171
|
+
log: ne({}, o, {
|
|
172
|
+
value: Se
|
|
171
173
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
174
|
+
info: ne({}, o, {
|
|
175
|
+
value: Q
|
|
174
176
|
}),
|
|
175
|
-
warn:
|
|
176
|
-
value:
|
|
177
|
+
warn: ne({}, o, {
|
|
178
|
+
value: pe
|
|
177
179
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value:
|
|
180
|
+
error: ne({}, o, {
|
|
181
|
+
value: Pe
|
|
180
182
|
}),
|
|
181
|
-
group:
|
|
182
|
-
value:
|
|
183
|
+
group: ne({}, o, {
|
|
184
|
+
value: Ee
|
|
183
185
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value:
|
|
186
|
+
groupCollapsed: ne({}, o, {
|
|
187
|
+
value: Re
|
|
186
188
|
}),
|
|
187
|
-
groupEnd:
|
|
188
|
-
value:
|
|
189
|
+
groupEnd: ne({}, o, {
|
|
190
|
+
value: P
|
|
189
191
|
})
|
|
190
192
|
});
|
|
191
193
|
}
|
|
192
|
-
|
|
194
|
+
K < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
195
|
}
|
|
194
196
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
197
|
+
var s = j.ReactCurrentDispatcher, V;
|
|
198
|
+
function y(o, m, C) {
|
|
197
199
|
{
|
|
198
|
-
if (
|
|
200
|
+
if (V === void 0)
|
|
199
201
|
try {
|
|
200
202
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
|
|
203
|
+
} catch (W) {
|
|
204
|
+
var O = W.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
V = O && O[1] || "";
|
|
204
206
|
}
|
|
205
207
|
return `
|
|
206
|
-
` +
|
|
208
|
+
` + V + o;
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
|
-
var
|
|
211
|
+
var G = !1, N;
|
|
210
212
|
{
|
|
211
|
-
var
|
|
212
|
-
|
|
213
|
+
var H = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
N = new H();
|
|
213
215
|
}
|
|
214
|
-
function
|
|
215
|
-
if (!
|
|
216
|
+
function h(o, m) {
|
|
217
|
+
if (!o || G)
|
|
216
218
|
return "";
|
|
217
219
|
{
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
return
|
|
220
|
+
var C = N.get(o);
|
|
221
|
+
if (C !== void 0)
|
|
222
|
+
return C;
|
|
221
223
|
}
|
|
222
|
-
var
|
|
223
|
-
|
|
224
|
-
var
|
|
224
|
+
var O;
|
|
225
|
+
G = !0;
|
|
226
|
+
var W = Error.prepareStackTrace;
|
|
225
227
|
Error.prepareStackTrace = void 0;
|
|
226
|
-
var
|
|
227
|
-
|
|
228
|
+
var X;
|
|
229
|
+
X = s.current, s.current = null, T();
|
|
228
230
|
try {
|
|
229
|
-
if (
|
|
230
|
-
var
|
|
231
|
+
if (m) {
|
|
232
|
+
var z = function() {
|
|
231
233
|
throw Error();
|
|
232
234
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(z.prototype, "props", {
|
|
234
236
|
set: function() {
|
|
235
237
|
throw Error();
|
|
236
238
|
}
|
|
237
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
240
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
|
|
241
|
+
Reflect.construct(z, []);
|
|
242
|
+
} catch (we) {
|
|
243
|
+
O = we;
|
|
242
244
|
}
|
|
243
|
-
Reflect.construct(
|
|
245
|
+
Reflect.construct(o, [], z);
|
|
244
246
|
} else {
|
|
245
247
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
248
|
+
z.call();
|
|
249
|
+
} catch (we) {
|
|
250
|
+
O = we;
|
|
249
251
|
}
|
|
250
|
-
|
|
252
|
+
o.call(z.prototype);
|
|
251
253
|
}
|
|
252
254
|
} else {
|
|
253
255
|
try {
|
|
254
256
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
257
|
+
} catch (we) {
|
|
258
|
+
O = we;
|
|
257
259
|
}
|
|
258
|
-
|
|
260
|
+
o();
|
|
259
261
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
262
|
+
} catch (we) {
|
|
263
|
+
if (we && O && typeof we.stack == "string") {
|
|
264
|
+
for (var $ = we.stack.split(`
|
|
265
|
+
`), ge = O.stack.split(`
|
|
266
|
+
`), se = $.length - 1, ue = ge.length - 1; se >= 1 && ue >= 0 && $[se] !== ge[ue]; )
|
|
267
|
+
ue--;
|
|
268
|
+
for (; se >= 1 && ue >= 0; se--, ue--)
|
|
269
|
+
if ($[se] !== ge[ue]) {
|
|
270
|
+
if (se !== 1 || ue !== 1)
|
|
269
271
|
do
|
|
270
|
-
if (
|
|
271
|
-
var
|
|
272
|
-
` +
|
|
273
|
-
return
|
|
272
|
+
if (se--, ue--, ue < 0 || $[se] !== ge[ue]) {
|
|
273
|
+
var Te = `
|
|
274
|
+
` + $[se].replace(" at new ", " at ");
|
|
275
|
+
return o.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", o.displayName)), typeof o == "function" && N.set(o, Te), Te;
|
|
274
276
|
}
|
|
275
|
-
while (
|
|
277
|
+
while (se >= 1 && ue >= 0);
|
|
276
278
|
break;
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
} finally {
|
|
280
|
-
|
|
282
|
+
G = !1, s.current = X, D(), Error.prepareStackTrace = W;
|
|
281
283
|
}
|
|
282
|
-
var
|
|
283
|
-
return typeof
|
|
284
|
+
var He = o ? o.displayName || o.name : "", Oe = He ? y(He) : "";
|
|
285
|
+
return typeof o == "function" && N.set(o, Oe), Oe;
|
|
284
286
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
287
|
+
function oe(o, m, C) {
|
|
288
|
+
return h(o, !1);
|
|
287
289
|
}
|
|
288
|
-
function
|
|
289
|
-
var
|
|
290
|
-
return !!(
|
|
290
|
+
function ae(o) {
|
|
291
|
+
var m = o.prototype;
|
|
292
|
+
return !!(m && m.isReactComponent);
|
|
291
293
|
}
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
294
|
+
function F(o, m, C) {
|
|
295
|
+
if (o == null)
|
|
294
296
|
return "";
|
|
295
|
-
if (typeof
|
|
296
|
-
return
|
|
297
|
-
if (typeof
|
|
298
|
-
return
|
|
299
|
-
switch (
|
|
300
|
-
case
|
|
301
|
-
return
|
|
302
|
-
case
|
|
303
|
-
return
|
|
297
|
+
if (typeof o == "function")
|
|
298
|
+
return h(o, ae(o));
|
|
299
|
+
if (typeof o == "string")
|
|
300
|
+
return y(o);
|
|
301
|
+
switch (o) {
|
|
302
|
+
case f:
|
|
303
|
+
return y("Suspense");
|
|
304
|
+
case v:
|
|
305
|
+
return y("SuspenseList");
|
|
304
306
|
}
|
|
305
|
-
if (typeof
|
|
306
|
-
switch (
|
|
307
|
-
case
|
|
308
|
-
return
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
var
|
|
307
|
+
if (typeof o == "object")
|
|
308
|
+
switch (o.$$typeof) {
|
|
309
|
+
case u:
|
|
310
|
+
return oe(o.render);
|
|
311
|
+
case w:
|
|
312
|
+
return F(o.type, m, C);
|
|
313
|
+
case L: {
|
|
314
|
+
var O = o, W = O._payload, X = O._init;
|
|
313
315
|
try {
|
|
314
|
-
return
|
|
316
|
+
return F(X(W), m, C);
|
|
315
317
|
} catch {
|
|
316
318
|
}
|
|
317
319
|
}
|
|
318
320
|
}
|
|
319
321
|
return "";
|
|
320
322
|
}
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
if (
|
|
324
|
-
var
|
|
325
|
-
|
|
323
|
+
var ie = Object.prototype.hasOwnProperty, B = {}, le = j.ReactDebugCurrentFrame;
|
|
324
|
+
function ke(o) {
|
|
325
|
+
if (o) {
|
|
326
|
+
var m = o._owner, C = F(o.type, o._source, m ? m.type : null);
|
|
327
|
+
le.setExtraStackFrame(C);
|
|
326
328
|
} else
|
|
327
|
-
|
|
329
|
+
le.setExtraStackFrame(null);
|
|
328
330
|
}
|
|
329
|
-
function
|
|
331
|
+
function fe(o, m, C, O, W) {
|
|
330
332
|
{
|
|
331
|
-
var
|
|
332
|
-
for (var
|
|
333
|
-
if (
|
|
334
|
-
var
|
|
333
|
+
var X = Function.call.bind(ie);
|
|
334
|
+
for (var z in o)
|
|
335
|
+
if (X(o, z)) {
|
|
336
|
+
var $ = void 0;
|
|
335
337
|
try {
|
|
336
|
-
if (typeof
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
338
|
+
if (typeof o[z] != "function") {
|
|
339
|
+
var ge = Error((O || "React class") + ": " + C + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
|
+
throw ge.name = "Invariant Violation", ge;
|
|
339
341
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
342
|
+
$ = o[z](m, z, O, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (se) {
|
|
344
|
+
$ = se;
|
|
343
345
|
}
|
|
344
|
-
|
|
346
|
+
$ && !($ instanceof Error) && (ke(W), x("%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).", O || "React class", C, z, typeof $), ke(null)), $ instanceof Error && !($.message in B) && (B[$.message] = !0, ke(W), x("Failed %s type: %s", C, $.message), ke(null));
|
|
345
347
|
}
|
|
346
348
|
}
|
|
347
349
|
}
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
return
|
|
350
|
+
var Fe = Array.isArray;
|
|
351
|
+
function Ae(o) {
|
|
352
|
+
return Fe(o);
|
|
351
353
|
}
|
|
352
|
-
function
|
|
354
|
+
function Ce(o) {
|
|
353
355
|
{
|
|
354
|
-
var
|
|
355
|
-
return
|
|
356
|
+
var m = typeof Symbol == "function" && Symbol.toStringTag, C = m && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
357
|
+
return C;
|
|
356
358
|
}
|
|
357
359
|
}
|
|
358
|
-
function
|
|
360
|
+
function I(o) {
|
|
359
361
|
try {
|
|
360
|
-
return
|
|
362
|
+
return ee(o), !1;
|
|
361
363
|
} catch {
|
|
362
364
|
return !0;
|
|
363
365
|
}
|
|
364
366
|
}
|
|
365
|
-
function
|
|
366
|
-
return "" +
|
|
367
|
+
function ee(o) {
|
|
368
|
+
return "" + o;
|
|
367
369
|
}
|
|
368
|
-
function
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
370
|
+
function Ne(o) {
|
|
371
|
+
if (I(o))
|
|
372
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ce(o)), ee(o);
|
|
371
373
|
}
|
|
372
|
-
var
|
|
374
|
+
var Ve = j.ReactCurrentOwner, _e = {
|
|
373
375
|
key: !0,
|
|
374
376
|
ref: !0,
|
|
375
377
|
__self: !0,
|
|
376
378
|
__source: !0
|
|
377
|
-
},
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
379
|
+
}, At, jt;
|
|
380
|
+
function Kr(o) {
|
|
381
|
+
if (ie.call(o, "ref")) {
|
|
382
|
+
var m = Object.getOwnPropertyDescriptor(o, "ref").get;
|
|
383
|
+
if (m && m.isReactWarning)
|
|
382
384
|
return !1;
|
|
383
385
|
}
|
|
384
|
-
return
|
|
386
|
+
return o.ref !== void 0;
|
|
385
387
|
}
|
|
386
|
-
function
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
388
|
+
function Qr(o) {
|
|
389
|
+
if (ie.call(o, "key")) {
|
|
390
|
+
var m = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
391
|
+
if (m && m.isReactWarning)
|
|
390
392
|
return !1;
|
|
391
393
|
}
|
|
392
|
-
return
|
|
394
|
+
return o.key !== void 0;
|
|
393
395
|
}
|
|
394
|
-
function
|
|
395
|
-
typeof
|
|
396
|
+
function en(o, m) {
|
|
397
|
+
typeof o.ref == "string" && Ve.current;
|
|
396
398
|
}
|
|
397
|
-
function
|
|
399
|
+
function tn(o, m) {
|
|
398
400
|
{
|
|
399
|
-
var
|
|
400
|
-
|
|
401
|
+
var C = function() {
|
|
402
|
+
At || (At = !0, x("%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)", m));
|
|
401
403
|
};
|
|
402
|
-
|
|
403
|
-
get:
|
|
404
|
+
C.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
405
|
+
get: C,
|
|
404
406
|
configurable: !0
|
|
405
407
|
});
|
|
406
408
|
}
|
|
407
409
|
}
|
|
408
|
-
function
|
|
410
|
+
function rn(o, m) {
|
|
409
411
|
{
|
|
410
|
-
var
|
|
411
|
-
|
|
412
|
+
var C = function() {
|
|
413
|
+
jt || (jt = !0, x("%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)", m));
|
|
412
414
|
};
|
|
413
|
-
|
|
414
|
-
get:
|
|
415
|
+
C.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
416
|
+
get: C,
|
|
415
417
|
configurable: !0
|
|
416
418
|
});
|
|
417
419
|
}
|
|
418
420
|
}
|
|
419
|
-
var
|
|
420
|
-
var
|
|
421
|
+
var nn = function(o, m, C, O, W, X, z) {
|
|
422
|
+
var $ = {
|
|
421
423
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof:
|
|
424
|
+
$$typeof: r,
|
|
423
425
|
// Built-in properties that belong on the element
|
|
424
|
-
type:
|
|
425
|
-
key:
|
|
426
|
-
ref:
|
|
427
|
-
props:
|
|
426
|
+
type: o,
|
|
427
|
+
key: m,
|
|
428
|
+
ref: C,
|
|
429
|
+
props: z,
|
|
428
430
|
// Record the component responsible for creating this element.
|
|
429
|
-
_owner:
|
|
431
|
+
_owner: X
|
|
430
432
|
};
|
|
431
|
-
return
|
|
433
|
+
return $._store = {}, Object.defineProperty($._store, "validated", {
|
|
432
434
|
configurable: !1,
|
|
433
435
|
enumerable: !1,
|
|
434
436
|
writable: !0,
|
|
435
437
|
value: !1
|
|
436
|
-
}), Object.defineProperty(
|
|
438
|
+
}), Object.defineProperty($, "_self", {
|
|
437
439
|
configurable: !1,
|
|
438
440
|
enumerable: !1,
|
|
439
441
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.defineProperty(
|
|
442
|
+
value: O
|
|
443
|
+
}), Object.defineProperty($, "_source", {
|
|
442
444
|
configurable: !1,
|
|
443
445
|
enumerable: !1,
|
|
444
446
|
writable: !1,
|
|
445
|
-
value:
|
|
446
|
-
}), Object.freeze && (Object.freeze(
|
|
447
|
+
value: W
|
|
448
|
+
}), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
|
|
447
449
|
};
|
|
448
|
-
function
|
|
450
|
+
function on(o, m, C, O, W) {
|
|
449
451
|
{
|
|
450
|
-
var
|
|
451
|
-
|
|
452
|
-
for (
|
|
453
|
-
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
for (
|
|
457
|
-
|
|
452
|
+
var X, z = {}, $ = null, ge = null;
|
|
453
|
+
C !== void 0 && (Ne(C), $ = "" + C), Qr(m) && (Ne(m.key), $ = "" + m.key), Kr(m) && (ge = m.ref, en(m, W));
|
|
454
|
+
for (X in m)
|
|
455
|
+
ie.call(m, X) && !_e.hasOwnProperty(X) && (z[X] = m[X]);
|
|
456
|
+
if (o && o.defaultProps) {
|
|
457
|
+
var se = o.defaultProps;
|
|
458
|
+
for (X in se)
|
|
459
|
+
z[X] === void 0 && (z[X] = se[X]);
|
|
458
460
|
}
|
|
459
|
-
if (
|
|
460
|
-
var
|
|
461
|
-
|
|
461
|
+
if ($ || ge) {
|
|
462
|
+
var ue = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
463
|
+
$ && tn(z, ue), ge && rn(z, ue);
|
|
462
464
|
}
|
|
463
|
-
return
|
|
465
|
+
return nn(o, $, ge, W, O, Ve.current, z);
|
|
464
466
|
}
|
|
465
467
|
}
|
|
466
|
-
var
|
|
467
|
-
function
|
|
468
|
-
if (
|
|
469
|
-
var
|
|
470
|
-
|
|
468
|
+
var pt = j.ReactCurrentOwner, Lt = j.ReactDebugCurrentFrame;
|
|
469
|
+
function $e(o) {
|
|
470
|
+
if (o) {
|
|
471
|
+
var m = o._owner, C = F(o.type, o._source, m ? m.type : null);
|
|
472
|
+
Lt.setExtraStackFrame(C);
|
|
471
473
|
} else
|
|
472
|
-
|
|
474
|
+
Lt.setExtraStackFrame(null);
|
|
473
475
|
}
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
function
|
|
477
|
-
return typeof
|
|
476
|
+
var ht;
|
|
477
|
+
ht = !1;
|
|
478
|
+
function mt(o) {
|
|
479
|
+
return typeof o == "object" && o !== null && o.$$typeof === r;
|
|
478
480
|
}
|
|
479
|
-
function
|
|
481
|
+
function It() {
|
|
480
482
|
{
|
|
481
|
-
if (
|
|
482
|
-
var
|
|
483
|
-
if (
|
|
483
|
+
if (pt.current) {
|
|
484
|
+
var o = J(pt.current.type);
|
|
485
|
+
if (o)
|
|
484
486
|
return `
|
|
485
487
|
|
|
486
|
-
Check the render method of \`` +
|
|
488
|
+
Check the render method of \`` + o + "`.";
|
|
487
489
|
}
|
|
488
490
|
return "";
|
|
489
491
|
}
|
|
490
492
|
}
|
|
491
|
-
function
|
|
493
|
+
function an(o) {
|
|
492
494
|
return "";
|
|
493
495
|
}
|
|
494
|
-
var
|
|
495
|
-
function
|
|
496
|
+
var Ot = {};
|
|
497
|
+
function sn(o) {
|
|
496
498
|
{
|
|
497
|
-
var
|
|
498
|
-
if (!
|
|
499
|
-
var
|
|
500
|
-
|
|
499
|
+
var m = It();
|
|
500
|
+
if (!m) {
|
|
501
|
+
var C = typeof o == "string" ? o : o.displayName || o.name;
|
|
502
|
+
C && (m = `
|
|
501
503
|
|
|
502
|
-
Check the top-level render call using <` +
|
|
504
|
+
Check the top-level render call using <` + C + ">.");
|
|
503
505
|
}
|
|
504
|
-
return
|
|
506
|
+
return m;
|
|
505
507
|
}
|
|
506
508
|
}
|
|
507
|
-
function
|
|
509
|
+
function Dt(o, m) {
|
|
508
510
|
{
|
|
509
|
-
if (!
|
|
511
|
+
if (!o._store || o._store.validated || o.key != null)
|
|
510
512
|
return;
|
|
511
|
-
|
|
512
|
-
var
|
|
513
|
-
if (
|
|
513
|
+
o._store.validated = !0;
|
|
514
|
+
var C = sn(m);
|
|
515
|
+
if (Ot[C])
|
|
514
516
|
return;
|
|
515
|
-
|
|
516
|
-
var
|
|
517
|
-
|
|
517
|
+
Ot[C] = !0;
|
|
518
|
+
var O = "";
|
|
519
|
+
o && o._owner && o._owner !== pt.current && (O = " It was passed a child from " + J(o._owner.type) + "."), $e(o), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, O), $e(null);
|
|
518
520
|
}
|
|
519
521
|
}
|
|
520
|
-
function
|
|
522
|
+
function Mt(o, m) {
|
|
521
523
|
{
|
|
522
|
-
if (typeof
|
|
524
|
+
if (typeof o != "object")
|
|
523
525
|
return;
|
|
524
|
-
if (
|
|
525
|
-
for (var
|
|
526
|
-
var
|
|
527
|
-
|
|
526
|
+
if (Ae(o))
|
|
527
|
+
for (var C = 0; C < o.length; C++) {
|
|
528
|
+
var O = o[C];
|
|
529
|
+
mt(O) && Dt(O, m);
|
|
528
530
|
}
|
|
529
|
-
else if (
|
|
530
|
-
|
|
531
|
-
else if (
|
|
532
|
-
var
|
|
533
|
-
if (typeof
|
|
534
|
-
for (var
|
|
535
|
-
|
|
531
|
+
else if (mt(o))
|
|
532
|
+
o._store && (o._store.validated = !0);
|
|
533
|
+
else if (o) {
|
|
534
|
+
var W = _(o);
|
|
535
|
+
if (typeof W == "function" && W !== o.entries)
|
|
536
|
+
for (var X = W.call(o), z; !(z = X.next()).done; )
|
|
537
|
+
mt(z.value) && Dt(z.value, m);
|
|
536
538
|
}
|
|
537
539
|
}
|
|
538
540
|
}
|
|
539
|
-
function
|
|
541
|
+
function cn(o) {
|
|
540
542
|
{
|
|
541
|
-
var
|
|
542
|
-
if (
|
|
543
|
+
var m = o.type;
|
|
544
|
+
if (m == null || typeof m == "string")
|
|
543
545
|
return;
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
|
|
547
|
-
else if (typeof
|
|
546
|
+
var C;
|
|
547
|
+
if (typeof m == "function")
|
|
548
|
+
C = m.propTypes;
|
|
549
|
+
else if (typeof m == "object" && (m.$$typeof === u || // Note: Memo only checks outer props here.
|
|
548
550
|
// Inner props are checked in the reconciler.
|
|
549
|
-
|
|
550
|
-
|
|
551
|
+
m.$$typeof === w))
|
|
552
|
+
C = m.propTypes;
|
|
551
553
|
else
|
|
552
554
|
return;
|
|
553
|
-
if (
|
|
554
|
-
var
|
|
555
|
-
|
|
556
|
-
} else if (
|
|
557
|
-
|
|
558
|
-
var
|
|
559
|
-
|
|
555
|
+
if (C) {
|
|
556
|
+
var O = J(m);
|
|
557
|
+
fe(C, o.props, "prop", O, o);
|
|
558
|
+
} else if (m.PropTypes !== void 0 && !ht) {
|
|
559
|
+
ht = !0;
|
|
560
|
+
var W = J(m);
|
|
561
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
560
562
|
}
|
|
561
|
-
typeof
|
|
563
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
562
564
|
}
|
|
563
565
|
}
|
|
564
|
-
function
|
|
566
|
+
function ln(o) {
|
|
565
567
|
{
|
|
566
|
-
for (var
|
|
567
|
-
var
|
|
568
|
-
if (
|
|
569
|
-
|
|
568
|
+
for (var m = Object.keys(o.props), C = 0; C < m.length; C++) {
|
|
569
|
+
var O = m[C];
|
|
570
|
+
if (O !== "children" && O !== "key") {
|
|
571
|
+
$e(o), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), $e(null);
|
|
570
572
|
break;
|
|
571
573
|
}
|
|
572
574
|
}
|
|
573
|
-
|
|
575
|
+
o.ref !== null && ($e(o), x("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
+
var Ft = {};
|
|
579
|
+
function Nt(o, m, C, O, W, X) {
|
|
578
580
|
{
|
|
579
|
-
var
|
|
580
|
-
if (!
|
|
581
|
-
var
|
|
582
|
-
(
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
|
|
581
|
+
var z = M(o);
|
|
582
|
+
if (!z) {
|
|
583
|
+
var $ = "";
|
|
584
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
585
|
+
var ge = an();
|
|
586
|
+
ge ? $ += ge : $ += It();
|
|
587
|
+
var se;
|
|
588
|
+
o === null ? se = "null" : Ae(o) ? se = "array" : o !== void 0 && o.$$typeof === r ? (se = "<" + (J(o.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : se = typeof o, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", se, $);
|
|
587
589
|
}
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
591
|
-
if (
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
if (
|
|
595
|
-
if (
|
|
596
|
-
for (var
|
|
597
|
-
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
var ue = on(o, m, C, W, X);
|
|
591
|
+
if (ue == null)
|
|
592
|
+
return ue;
|
|
593
|
+
if (z) {
|
|
594
|
+
var Te = m.children;
|
|
595
|
+
if (Te !== void 0)
|
|
596
|
+
if (O)
|
|
597
|
+
if (Ae(Te)) {
|
|
598
|
+
for (var He = 0; He < Te.length; He++)
|
|
599
|
+
Mt(Te[He], o);
|
|
600
|
+
Object.freeze && Object.freeze(Te);
|
|
599
601
|
} else
|
|
600
|
-
|
|
602
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
603
|
else
|
|
602
|
-
|
|
604
|
+
Mt(Te, o);
|
|
603
605
|
}
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
return
|
|
607
|
-
}),
|
|
608
|
-
if (!
|
|
609
|
-
var
|
|
610
|
-
|
|
606
|
+
if (ie.call(m, "key")) {
|
|
607
|
+
var Oe = J(o), we = Object.keys(m).filter(function(mn) {
|
|
608
|
+
return mn !== "key";
|
|
609
|
+
}), vt = we.length > 0 ? "{key: someKey, " + we.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
610
|
+
if (!Ft[Oe + vt]) {
|
|
611
|
+
var hn = we.length > 0 ? "{" + we.join(": ..., ") + ": ...}" : "{}";
|
|
612
|
+
x(`A props object containing a "key" prop is being spread into JSX:
|
|
611
613
|
let props = %s;
|
|
612
614
|
<%s {...props} />
|
|
613
615
|
React keys must be passed directly to JSX without using spread:
|
|
614
616
|
let props = %s;
|
|
615
|
-
<%s key={someKey} {...props} />`,
|
|
617
|
+
<%s key={someKey} {...props} />`, vt, Oe, hn, Oe), Ft[Oe + vt] = !0;
|
|
616
618
|
}
|
|
617
619
|
}
|
|
618
|
-
return
|
|
620
|
+
return o === n ? ln(ue) : cn(ue), ue;
|
|
619
621
|
}
|
|
620
622
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
623
|
+
function un(o, m, C) {
|
|
624
|
+
return Nt(o, m, C, !0);
|
|
623
625
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
626
|
+
function dn(o, m, C) {
|
|
627
|
+
return Nt(o, m, C, !1);
|
|
626
628
|
}
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
})()),
|
|
629
|
+
var fn = dn, pn = un;
|
|
630
|
+
Ze.Fragment = n, Ze.jsx = fn, Ze.jsxs = pn;
|
|
631
|
+
})()), Ze;
|
|
630
632
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
633
|
-
return
|
|
633
|
+
var Ht;
|
|
634
|
+
function xn() {
|
|
635
|
+
return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? Qe.exports = wn() : Qe.exports = bn()), Qe.exports;
|
|
634
636
|
}
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
function
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}, [e]),
|
|
642
|
-
if (
|
|
637
|
+
var a = xn();
|
|
638
|
+
const Sn = typeof window < "u" ? vn : be;
|
|
639
|
+
function dt(e, r) {
|
|
640
|
+
const t = ve(e);
|
|
641
|
+
Sn(() => {
|
|
642
|
+
t.current = e;
|
|
643
|
+
}, [e]), be(() => {
|
|
644
|
+
if (r === null)
|
|
643
645
|
return;
|
|
644
|
-
const
|
|
645
|
-
|
|
646
|
-
},
|
|
646
|
+
const n = setInterval(() => {
|
|
647
|
+
t.current();
|
|
648
|
+
}, r);
|
|
647
649
|
return () => {
|
|
648
|
-
clearInterval(
|
|
650
|
+
clearInterval(n);
|
|
649
651
|
};
|
|
650
|
-
}, [
|
|
652
|
+
}, [r]);
|
|
651
653
|
}
|
|
652
|
-
function
|
|
653
|
-
const [,
|
|
654
|
-
|
|
654
|
+
function Cn(e) {
|
|
655
|
+
const [, r] = ye(0);
|
|
656
|
+
dt(() => r((t) => t + 1), e);
|
|
655
657
|
}
|
|
656
|
-
const
|
|
658
|
+
const En = (e, r) => ir((t) => ({
|
|
657
659
|
delay: 0,
|
|
658
660
|
startDate: e,
|
|
659
|
-
endDate:
|
|
661
|
+
endDate: r,
|
|
660
662
|
startTime: e.getTime(),
|
|
661
|
-
endTime:
|
|
662
|
-
setDelay: (
|
|
663
|
-
setStartDate: (
|
|
664
|
-
setEndDate: (
|
|
665
|
-
})),
|
|
663
|
+
endTime: r.getTime(),
|
|
664
|
+
setDelay: (n) => t({ delay: n }),
|
|
665
|
+
setStartDate: (n) => t({ startDate: n }),
|
|
666
|
+
setEndDate: (n) => t({ endDate: n })
|
|
667
|
+
})), sr = or(
|
|
666
668
|
null
|
|
667
|
-
),
|
|
669
|
+
), Tn = ({
|
|
668
670
|
children: e,
|
|
669
|
-
startDate:
|
|
670
|
-
endDate:
|
|
671
|
+
startDate: r,
|
|
672
|
+
endDate: t
|
|
671
673
|
}) => {
|
|
672
|
-
const
|
|
674
|
+
const n = ve(
|
|
673
675
|
null
|
|
674
676
|
);
|
|
675
|
-
return
|
|
676
|
-
},
|
|
677
|
-
const
|
|
678
|
-
if (!
|
|
677
|
+
return n.current || (n.current = En(r, t)), /* @__PURE__ */ a.jsx(sr.Provider, { value: n.current, children: e });
|
|
678
|
+
}, me = (e) => {
|
|
679
|
+
const r = Je(sr);
|
|
680
|
+
if (!r)
|
|
679
681
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
680
|
-
return
|
|
682
|
+
return ar(r, e);
|
|
683
|
+
};
|
|
684
|
+
var et = { exports: {} }, q = {};
|
|
685
|
+
/** @license React v16.13.1
|
|
686
|
+
* react-is.production.min.js
|
|
687
|
+
*
|
|
688
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
689
|
+
*
|
|
690
|
+
* This source code is licensed under the MIT license found in the
|
|
691
|
+
* LICENSE file in the root directory of this source tree.
|
|
692
|
+
*/
|
|
693
|
+
var zt;
|
|
694
|
+
function Pn() {
|
|
695
|
+
if (zt) return q;
|
|
696
|
+
zt = 1;
|
|
697
|
+
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;
|
|
698
|
+
function g(p) {
|
|
699
|
+
if (typeof p == "object" && p !== null) {
|
|
700
|
+
var U = p.$$typeof;
|
|
701
|
+
switch (U) {
|
|
702
|
+
case r:
|
|
703
|
+
switch (p = p.type, p) {
|
|
704
|
+
case u:
|
|
705
|
+
case f:
|
|
706
|
+
case n:
|
|
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
|
+
}
|
|
727
|
+
}
|
|
728
|
+
function A(p) {
|
|
729
|
+
return g(p) === f;
|
|
730
|
+
}
|
|
731
|
+
return q.AsyncMode = u, q.ConcurrentMode = f, q.ContextConsumer = d, q.ContextProvider = l, q.Element = r, q.ForwardRef = v, q.Fragment = n, q.Lazy = E, q.Memo = R, q.Portal = t, q.Profiler = c, q.StrictMode = i, q.Suspense = w, q.isAsyncMode = function(p) {
|
|
732
|
+
return A(p) || g(p) === u;
|
|
733
|
+
}, q.isConcurrentMode = A, q.isContextConsumer = function(p) {
|
|
734
|
+
return g(p) === d;
|
|
735
|
+
}, q.isContextProvider = function(p) {
|
|
736
|
+
return g(p) === l;
|
|
737
|
+
}, q.isElement = function(p) {
|
|
738
|
+
return typeof p == "object" && p !== null && p.$$typeof === r;
|
|
739
|
+
}, q.isForwardRef = function(p) {
|
|
740
|
+
return g(p) === v;
|
|
741
|
+
}, q.isFragment = function(p) {
|
|
742
|
+
return g(p) === n;
|
|
743
|
+
}, q.isLazy = function(p) {
|
|
744
|
+
return g(p) === E;
|
|
745
|
+
}, q.isMemo = function(p) {
|
|
746
|
+
return g(p) === R;
|
|
747
|
+
}, q.isPortal = function(p) {
|
|
748
|
+
return g(p) === t;
|
|
749
|
+
}, q.isProfiler = function(p) {
|
|
750
|
+
return g(p) === c;
|
|
751
|
+
}, q.isStrictMode = function(p) {
|
|
752
|
+
return g(p) === i;
|
|
753
|
+
}, q.isSuspense = function(p) {
|
|
754
|
+
return g(p) === w;
|
|
755
|
+
}, q.isValidElementType = function(p) {
|
|
756
|
+
return typeof p == "string" || typeof p == "function" || p === n || p === f || p === c || p === i || p === w || p === L || typeof p == "object" && p !== null && (p.$$typeof === E || p.$$typeof === R || p.$$typeof === l || p.$$typeof === d || p.$$typeof === v || p.$$typeof === _ || p.$$typeof === j || p.$$typeof === x || p.$$typeof === k);
|
|
757
|
+
}, q.typeOf = g, q;
|
|
758
|
+
}
|
|
759
|
+
var Z = {};
|
|
760
|
+
/** @license React v16.13.1
|
|
761
|
+
* react-is.development.js
|
|
762
|
+
*
|
|
763
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
764
|
+
*
|
|
765
|
+
* This source code is licensed under the MIT license found in the
|
|
766
|
+
* LICENSE file in the root directory of this source tree.
|
|
767
|
+
*/
|
|
768
|
+
var Yt;
|
|
769
|
+
function Rn() {
|
|
770
|
+
return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
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;
|
|
847
|
+
}
|
|
848
|
+
Z.AsyncMode = p, Z.ConcurrentMode = U, Z.ContextConsumer = de, Z.ContextProvider = te, Z.Element = ce, Z.ForwardRef = M, Z.Fragment = xe, Z.Lazy = re, Z.Memo = J, Z.Portal = ne, Z.Profiler = K, Z.StrictMode = Se, Z.Suspense = Q, Z.isAsyncMode = Pe, Z.isConcurrentMode = Ee, Z.isContextConsumer = Re, Z.isContextProvider = P, Z.isElement = S, Z.isForwardRef = T, Z.isFragment = D, Z.isLazy = s, Z.isMemo = V, Z.isPortal = y, Z.isProfiler = G, Z.isStrictMode = N, Z.isSuspense = H, Z.isValidElementType = g, Z.typeOf = A;
|
|
849
|
+
})()), Z;
|
|
850
|
+
}
|
|
851
|
+
var Bt;
|
|
852
|
+
function cr() {
|
|
853
|
+
return Bt || (Bt = 1, process.env.NODE_ENV === "production" ? et.exports = Pn() : et.exports = Rn()), et.exports;
|
|
854
|
+
}
|
|
855
|
+
var Rt = cr();
|
|
856
|
+
function kn(e) {
|
|
857
|
+
function r(P, S, T, D, s) {
|
|
858
|
+
for (var V = 0, y = 0, G = 0, N = 0, H, h, oe = 0, ae = 0, F, ie = F = H = 0, B = 0, le = 0, ke = 0, fe = 0, Fe = T.length, Ae = Fe - 1, Ce, I = "", ee = "", Ne = "", Ve = "", _e; B < Fe; ) {
|
|
859
|
+
if (h = T.charCodeAt(B), B === Ae && y + N + G + V !== 0 && (y !== 0 && (h = y === 47 ? 10 : 47), N = G = V = 0, Fe++, Ae++), y + N + G + V === 0) {
|
|
860
|
+
if (B === Ae && (0 < le && (I = I.replace(L, "")), 0 < I.trim().length)) {
|
|
861
|
+
switch (h) {
|
|
862
|
+
case 32:
|
|
863
|
+
case 9:
|
|
864
|
+
case 59:
|
|
865
|
+
case 13:
|
|
866
|
+
case 10:
|
|
867
|
+
break;
|
|
868
|
+
default:
|
|
869
|
+
I += T.charAt(B);
|
|
870
|
+
}
|
|
871
|
+
h = 59;
|
|
872
|
+
}
|
|
873
|
+
switch (h) {
|
|
874
|
+
case 123:
|
|
875
|
+
for (I = I.trim(), H = I.charCodeAt(0), F = 1, fe = ++B; B < Fe; ) {
|
|
876
|
+
switch (h = T.charCodeAt(B)) {
|
|
877
|
+
case 123:
|
|
878
|
+
F++;
|
|
879
|
+
break;
|
|
880
|
+
case 125:
|
|
881
|
+
F--;
|
|
882
|
+
break;
|
|
883
|
+
case 47:
|
|
884
|
+
switch (h = T.charCodeAt(B + 1)) {
|
|
885
|
+
case 42:
|
|
886
|
+
case 47:
|
|
887
|
+
e: {
|
|
888
|
+
for (ie = B + 1; ie < Ae; ++ie)
|
|
889
|
+
switch (T.charCodeAt(ie)) {
|
|
890
|
+
case 47:
|
|
891
|
+
if (h === 42 && T.charCodeAt(ie - 1) === 42 && B + 2 !== ie) {
|
|
892
|
+
B = ie + 1;
|
|
893
|
+
break e;
|
|
894
|
+
}
|
|
895
|
+
break;
|
|
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);
|
|
950
|
+
break;
|
|
951
|
+
case 125:
|
|
952
|
+
case 59:
|
|
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);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
switch (h) {
|
|
968
|
+
case 13:
|
|
969
|
+
case 10:
|
|
970
|
+
y === 47 ? y = 0 : 1 + H === 0 && D !== 107 && 0 < I.length && (le = 1, I += "\0"), 0 < pe * Ee && d(0, I, S, P, J, re, ee.length, D, s, D), re = 1, J++;
|
|
971
|
+
break;
|
|
972
|
+
case 59:
|
|
973
|
+
case 125:
|
|
974
|
+
if (y + N + G + V === 0) {
|
|
975
|
+
re++;
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
default:
|
|
979
|
+
switch (re++, Ce = T.charAt(B), h) {
|
|
980
|
+
case 9:
|
|
981
|
+
case 32:
|
|
982
|
+
if (N + V + y === 0) switch (oe) {
|
|
983
|
+
case 44:
|
|
984
|
+
case 58:
|
|
985
|
+
case 9:
|
|
986
|
+
case 32:
|
|
987
|
+
Ce = "";
|
|
988
|
+
break;
|
|
989
|
+
default:
|
|
990
|
+
h !== 32 && (Ce = " ");
|
|
991
|
+
}
|
|
992
|
+
break;
|
|
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:
|
|
1036
|
+
break;
|
|
1037
|
+
default:
|
|
1038
|
+
H = 1;
|
|
1039
|
+
}
|
|
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
|
+
}
|
|
1076
|
+
ne = 0;
|
|
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();
|
|
1091
|
+
break;
|
|
1092
|
+
default:
|
|
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());
|
|
1105
|
+
case 58:
|
|
1106
|
+
return P.trim() + S.replace(j, "$1" + P.trim());
|
|
1107
|
+
default:
|
|
1108
|
+
if (0 < 1 * T && 0 < S.indexOf("\f")) return S.replace(j, (P.charCodeAt(0) === 58 ? "" : "$1") + P.trim());
|
|
1109
|
+
}
|
|
1110
|
+
return P + S;
|
|
1111
|
+
}
|
|
1112
|
+
function i(P, S, T, D) {
|
|
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;
|
|
1149
|
+
}
|
|
1150
|
+
return "-webkit-" + s + "-ms-" + s + s;
|
|
1151
|
+
case 964:
|
|
1152
|
+
return "-webkit-" + s + "-ms-flex-" + s + s;
|
|
1153
|
+
case 1023:
|
|
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");
|
|
1162
|
+
break;
|
|
1163
|
+
case 232:
|
|
1164
|
+
y = s.replace(p, "tb-rl");
|
|
1165
|
+
break;
|
|
1166
|
+
case 220:
|
|
1167
|
+
y = s.replace(p, "lr");
|
|
1168
|
+
break;
|
|
1169
|
+
default:
|
|
1170
|
+
return s;
|
|
1171
|
+
}
|
|
1172
|
+
return "-webkit-" + s + "-ms-" + y + s;
|
|
1173
|
+
case 1017:
|
|
1174
|
+
if (s.indexOf("sticky", 9) === -1) break;
|
|
1175
|
+
case 975:
|
|
1176
|
+
switch (S = (s = P).length - 10, y = (s.charCodeAt(S) === 33 ? s.substring(0, S) : s).substring(P.indexOf(":", 7) + 1).trim(), V = y.charCodeAt(0) + (y.charCodeAt(7) | 0)) {
|
|
1177
|
+
case 203:
|
|
1178
|
+
if (111 > y.charCodeAt(8)) break;
|
|
1179
|
+
case 115:
|
|
1180
|
+
s = s.replace(y, "-webkit-" + y) + ";" + s;
|
|
1181
|
+
break;
|
|
1182
|
+
case 207:
|
|
1183
|
+
case 102:
|
|
1184
|
+
s = s.replace(y, "-webkit-" + (102 < V ? "inline-" : "") + "box") + ";" + s.replace(y, "-webkit-" + y) + ";" + s.replace(y, "-ms-" + y + "box") + ";" + s;
|
|
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;
|
|
1191
|
+
case 115:
|
|
1192
|
+
return "-webkit-" + s + "-ms-flex-item-" + s.replace(te, "") + s;
|
|
1193
|
+
default:
|
|
1194
|
+
return "-webkit-" + s + "-ms-flex-line-pack" + s.replace("align-content", "").replace(te, "") + s;
|
|
1195
|
+
}
|
|
1196
|
+
break;
|
|
1197
|
+
case 973:
|
|
1198
|
+
case 989:
|
|
1199
|
+
if (s.charCodeAt(3) !== 45 || s.charCodeAt(4) === 122) break;
|
|
1200
|
+
case 931:
|
|
1201
|
+
case 953:
|
|
1202
|
+
if (M.test(P) === !0) return (y = P.substring(P.indexOf(":") + 1)).charCodeAt(0) === 115 ? i(P.replace("stretch", "fill-available"), S, T, D).replace(":fill-available", ":stretch") : s.replace(y, "-webkit-" + y) + s.replace(y, "-moz-" + y.replace("fill-", "")) + s;
|
|
1203
|
+
break;
|
|
1204
|
+
case 962:
|
|
1205
|
+
if (s = "-webkit-" + s + (s.charCodeAt(5) === 102 ? "-ms-" + s : "") + s, T + D === 211 && s.charCodeAt(13) === 105 && 0 < s.indexOf("transform", 10)) return s.substring(0, s.indexOf(";", 27) + 1).replace(k, "$1-webkit-$2") + s;
|
|
1206
|
+
}
|
|
1207
|
+
return s;
|
|
1208
|
+
}
|
|
1209
|
+
function c(P, S) {
|
|
1210
|
+
var T = P.indexOf(S === 1 ? ":" : "{"), D = P.substring(0, S !== 3 ? T : 10);
|
|
1211
|
+
return T = P.substring(T + 1, P.length - 1), Pe(S !== 2 ? D : D.replace(ce, "$1"), T, S);
|
|
1212
|
+
}
|
|
1213
|
+
function l(P, S) {
|
|
1214
|
+
var T = i(S, S.charCodeAt(0), S.charCodeAt(1), S.charCodeAt(2));
|
|
1215
|
+
return T !== S + ";" ? T.replace(de, " or ($1)").substring(4) : "(" + S + ")";
|
|
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;
|
|
1227
|
+
}
|
|
1228
|
+
if (oe !== S) return oe;
|
|
1229
|
+
}
|
|
1230
|
+
function u(P) {
|
|
1231
|
+
switch (P) {
|
|
1232
|
+
case void 0:
|
|
1233
|
+
case null:
|
|
1234
|
+
pe = Q.length = 0;
|
|
1235
|
+
break;
|
|
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;
|
|
1246
|
+
}
|
|
1247
|
+
function v(P, S) {
|
|
1248
|
+
var T = P;
|
|
1249
|
+
if (33 > T.charCodeAt(0) && (T = T.trim()), Re = T, T = [Re], 0 < pe) {
|
|
1250
|
+
var D = d(-1, S, T, T, J, re, 0, 0, 0, 0);
|
|
1251
|
+
D !== void 0 && typeof D == "string" && (S = D);
|
|
1252
|
+
}
|
|
1253
|
+
var s = r(Se, T, S, 0, 0);
|
|
1254
|
+
return 0 < pe && (D = d(-2, s, T, T, J, re, s.length, 0, 0, 0), D !== void 0 && (s = D)), Re = "", ne = 0, re = J = 1, s;
|
|
1255
|
+
}
|
|
1256
|
+
var w = /^\0+/g, L = /[\0\r\f]/g, R = /: */g, E = /zoo|gra/, k = /([,: ])(transform)/g, _ = /,\r+?/g, j = /([\t\r\n ])*\f?&/g, x = /@(k\w+)\s*(\S*)\s*/, g = /::(place)/g, A = /:(read-only)/g, p = /[svh]\w+-[tblr]{2}/, U = /\(\s*(.*)\s*\)/g, de = /([\s\S]*?);/g, te = /-self|flex-/g, ce = /[^]*?(:[rp][el]a[\w-]+)[^]*/, M = /stretch|:\s*\w+\-(?:conte|avail)/, xe = /([^-])(image-set\()/, re = 1, J = 1, ne = 0, K = 1, Se = [], Q = [], pe = 0, Pe = null, Ee = 0, Re = "";
|
|
1257
|
+
return v.use = u, v.set = f, e !== void 0 && f(e), v;
|
|
1258
|
+
}
|
|
1259
|
+
var _n = {
|
|
1260
|
+
animationIterationCount: 1,
|
|
1261
|
+
borderImageOutset: 1,
|
|
1262
|
+
borderImageSlice: 1,
|
|
1263
|
+
borderImageWidth: 1,
|
|
1264
|
+
boxFlex: 1,
|
|
1265
|
+
boxFlexGroup: 1,
|
|
1266
|
+
boxOrdinalGroup: 1,
|
|
1267
|
+
columnCount: 1,
|
|
1268
|
+
columns: 1,
|
|
1269
|
+
flex: 1,
|
|
1270
|
+
flexGrow: 1,
|
|
1271
|
+
flexPositive: 1,
|
|
1272
|
+
flexShrink: 1,
|
|
1273
|
+
flexNegative: 1,
|
|
1274
|
+
flexOrder: 1,
|
|
1275
|
+
gridRow: 1,
|
|
1276
|
+
gridRowEnd: 1,
|
|
1277
|
+
gridRowSpan: 1,
|
|
1278
|
+
gridRowStart: 1,
|
|
1279
|
+
gridColumn: 1,
|
|
1280
|
+
gridColumnEnd: 1,
|
|
1281
|
+
gridColumnSpan: 1,
|
|
1282
|
+
gridColumnStart: 1,
|
|
1283
|
+
msGridRow: 1,
|
|
1284
|
+
msGridRowSpan: 1,
|
|
1285
|
+
msGridColumn: 1,
|
|
1286
|
+
msGridColumnSpan: 1,
|
|
1287
|
+
fontWeight: 1,
|
|
1288
|
+
lineHeight: 1,
|
|
1289
|
+
opacity: 1,
|
|
1290
|
+
order: 1,
|
|
1291
|
+
orphans: 1,
|
|
1292
|
+
tabSize: 1,
|
|
1293
|
+
widows: 1,
|
|
1294
|
+
zIndex: 1,
|
|
1295
|
+
zoom: 1,
|
|
1296
|
+
WebkitLineClamp: 1,
|
|
1297
|
+
// SVG-related properties
|
|
1298
|
+
fillOpacity: 1,
|
|
1299
|
+
floodOpacity: 1,
|
|
1300
|
+
stopOpacity: 1,
|
|
1301
|
+
strokeDasharray: 1,
|
|
1302
|
+
strokeDashoffset: 1,
|
|
1303
|
+
strokeMiterlimit: 1,
|
|
1304
|
+
strokeOpacity: 1,
|
|
1305
|
+
strokeWidth: 1
|
|
1306
|
+
};
|
|
1307
|
+
function An(e) {
|
|
1308
|
+
var r = /* @__PURE__ */ Object.create(null);
|
|
1309
|
+
return function(t) {
|
|
1310
|
+
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
var jn = /^((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)-.*))$/, Ut = /* @__PURE__ */ An(
|
|
1314
|
+
function(e) {
|
|
1315
|
+
return jn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1316
|
+
}
|
|
1317
|
+
/* Z+1 */
|
|
1318
|
+
), gt, Wt;
|
|
1319
|
+
function Ln() {
|
|
1320
|
+
if (Wt) return gt;
|
|
1321
|
+
Wt = 1;
|
|
1322
|
+
var e = cr(), r = {
|
|
1323
|
+
childContextTypes: !0,
|
|
1324
|
+
contextType: !0,
|
|
1325
|
+
contextTypes: !0,
|
|
1326
|
+
defaultProps: !0,
|
|
1327
|
+
displayName: !0,
|
|
1328
|
+
getDefaultProps: !0,
|
|
1329
|
+
getDerivedStateFromError: !0,
|
|
1330
|
+
getDerivedStateFromProps: !0,
|
|
1331
|
+
mixins: !0,
|
|
1332
|
+
propTypes: !0,
|
|
1333
|
+
type: !0
|
|
1334
|
+
}, t = {
|
|
1335
|
+
name: !0,
|
|
1336
|
+
length: !0,
|
|
1337
|
+
prototype: !0,
|
|
1338
|
+
caller: !0,
|
|
1339
|
+
callee: !0,
|
|
1340
|
+
arguments: !0,
|
|
1341
|
+
arity: !0
|
|
1342
|
+
}, n = {
|
|
1343
|
+
$$typeof: !0,
|
|
1344
|
+
render: !0,
|
|
1345
|
+
defaultProps: !0,
|
|
1346
|
+
displayName: !0,
|
|
1347
|
+
propTypes: !0
|
|
1348
|
+
}, i = {
|
|
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
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
return E;
|
|
1381
|
+
}
|
|
1382
|
+
return gt = R, gt;
|
|
1383
|
+
}
|
|
1384
|
+
var In = Ln();
|
|
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) {
|
|
1402
|
+
return typeof e == "function";
|
|
1403
|
+
}
|
|
1404
|
+
function xt(e) {
|
|
1405
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1406
|
+
}
|
|
1407
|
+
function kt(e) {
|
|
1408
|
+
return e && typeof e.styledComponentId == "string";
|
|
1409
|
+
}
|
|
1410
|
+
var ze = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", _t = typeof window < "u" && "HTMLElement" in window, Dn = !!(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 : 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")), Mn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1411
|
+
|
|
1412
|
+
`, 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
|
+
|
|
1414
|
+
- Are you trying to reuse it across renders?
|
|
1415
|
+
- Are you accidentally calling collectStyles twice?
|
|
1416
|
+
|
|
1417
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1418
|
+
|
|
1419
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1420
|
+
|
|
1421
|
+
- Does this error occur on the client and is your target falsy?
|
|
1422
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1423
|
+
|
|
1424
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1425
|
+
|
|
1426
|
+
- Are you running in a client-like environment on the server?
|
|
1427
|
+
- Are you trying to run SSR on the client?
|
|
1428
|
+
|
|
1429
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1430
|
+
|
|
1431
|
+
- Are you using a custom target that isn't mounted?
|
|
1432
|
+
- Does your document not have a valid head element?
|
|
1433
|
+
- Have you accidentally removed a style tag manually?
|
|
1434
|
+
|
|
1435
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1436
|
+
|
|
1437
|
+
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1438
|
+
|
|
1439
|
+
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1440
|
+
|
|
1441
|
+
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s 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.
|
|
1442
|
+
|
|
1443
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1444
|
+
|
|
1445
|
+
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1446
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1447
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1448
|
+
|
|
1449
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1450
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1451
|
+
` } : {};
|
|
1452
|
+
function Fn() {
|
|
1453
|
+
for (var e = arguments.length <= 0 ? void 0 : arguments[0], r = [], t = 1, n = arguments.length; t < n; t += 1) r.push(t < 0 || arguments.length <= t ? void 0 : arguments[t]);
|
|
1454
|
+
return r.forEach((function(i) {
|
|
1455
|
+
e = e.replace(/%[a-z]/, i);
|
|
1456
|
+
})), e;
|
|
1457
|
+
}
|
|
1458
|
+
function We(e) {
|
|
1459
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
|
|
1460
|
+
throw process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (t.length > 0 ? " Args: " + t.join(", ") : "")) : new Error(Fn.apply(void 0, [Mn[e]].concat(t)).trim());
|
|
1461
|
+
}
|
|
1462
|
+
var Nn = (function() {
|
|
1463
|
+
function e(t) {
|
|
1464
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1465
|
+
}
|
|
1466
|
+
var r = e.prototype;
|
|
1467
|
+
return r.indexOfGroup = function(t) {
|
|
1468
|
+
for (var n = 0, i = 0; i < t; i++) n += this.groupSizes[i];
|
|
1469
|
+
return n;
|
|
1470
|
+
}, r.insertRules = function(t, n) {
|
|
1471
|
+
if (t >= this.groupSizes.length) {
|
|
1472
|
+
for (var i = this.groupSizes, c = i.length, l = c; t >= l; ) (l <<= 1) < 0 && We(16, "" + t);
|
|
1473
|
+
this.groupSizes = new Uint32Array(l), this.groupSizes.set(i), this.length = l;
|
|
1474
|
+
for (var d = c; d < l; d++) this.groupSizes[d] = 0;
|
|
1475
|
+
}
|
|
1476
|
+
for (var u = this.indexOfGroup(t + 1), f = 0, v = n.length; f < v; f++) this.tag.insertRule(u, n[f]) && (this.groupSizes[t]++, u++);
|
|
1477
|
+
}, r.clearGroup = function(t) {
|
|
1478
|
+
if (t < this.length) {
|
|
1479
|
+
var n = this.groupSizes[t], i = this.indexOfGroup(t), c = i + n;
|
|
1480
|
+
this.groupSizes[t] = 0;
|
|
1481
|
+
for (var l = i; l < c; l++) this.tag.deleteRule(i);
|
|
1482
|
+
}
|
|
1483
|
+
}, r.getGroup = function(t) {
|
|
1484
|
+
var n = "";
|
|
1485
|
+
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1486
|
+
for (var i = this.groupSizes[t], c = this.indexOfGroup(t), l = c + i, d = c; d < l; d++) n += this.tag.getRule(d) + `/*!sc*/
|
|
1487
|
+
`;
|
|
1488
|
+
return n;
|
|
1489
|
+
}, e;
|
|
1490
|
+
})(), ot = /* @__PURE__ */ new Map(), at = /* @__PURE__ */ new Map(), Ge = 1, tt = function(e) {
|
|
1491
|
+
if (ot.has(e)) return ot.get(e);
|
|
1492
|
+
for (; at.has(Ge); ) Ge++;
|
|
1493
|
+
var r = Ge++;
|
|
1494
|
+
return process.env.NODE_ENV !== "production" && ((0 | r) < 0 || r > 1 << 30) && We(16, "" + r), ot.set(e, r), at.set(r, e), r;
|
|
1495
|
+
}, Vn = function(e) {
|
|
1496
|
+
return at.get(e);
|
|
1497
|
+
}, $n = function(e, r) {
|
|
1498
|
+
r >= Ge && (Ge = r + 1), ot.set(e, r), at.set(r, e);
|
|
1499
|
+
}, Hn = "style[" + ze + '][data-styled-version="5.3.11"]', zn = new RegExp("^" + ze + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), Yn = function(e, r, t) {
|
|
1500
|
+
for (var n, i = t.split(","), c = 0, l = i.length; c < l; c++) (n = i[c]) && e.registerName(r, n);
|
|
1501
|
+
}, Bn = function(e, r) {
|
|
1502
|
+
for (var t = (r.textContent || "").split(`/*!sc*/
|
|
1503
|
+
`), n = [], i = 0, c = t.length; i < c; i++) {
|
|
1504
|
+
var l = t[i].trim();
|
|
1505
|
+
if (l) {
|
|
1506
|
+
var d = l.match(zn);
|
|
1507
|
+
if (d) {
|
|
1508
|
+
var u = 0 | parseInt(d[1], 10), f = d[2];
|
|
1509
|
+
u !== 0 && ($n(f, u), Yn(e, f, d[3]), e.getTag().insertRules(u, n)), n.length = 0;
|
|
1510
|
+
} else n.push(l);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
}, Un = function() {
|
|
1514
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1515
|
+
}, lr = function(e) {
|
|
1516
|
+
var r = document.head, t = e || r, n = document.createElement("style"), i = (function(d) {
|
|
1517
|
+
for (var u = d.childNodes, f = u.length; f >= 0; f--) {
|
|
1518
|
+
var v = u[f];
|
|
1519
|
+
if (v && v.nodeType === 1 && v.hasAttribute(ze)) return v;
|
|
1520
|
+
}
|
|
1521
|
+
})(t), c = i !== void 0 ? i.nextSibling : null;
|
|
1522
|
+
n.setAttribute(ze, "active"), n.setAttribute("data-styled-version", "5.3.11");
|
|
1523
|
+
var l = Un();
|
|
1524
|
+
return l && n.setAttribute("nonce", l), t.insertBefore(n, c), n;
|
|
1525
|
+
}, Wn = (function() {
|
|
1526
|
+
function e(t) {
|
|
1527
|
+
var n = this.element = lr(t);
|
|
1528
|
+
n.appendChild(document.createTextNode("")), this.sheet = (function(i) {
|
|
1529
|
+
if (i.sheet) return i.sheet;
|
|
1530
|
+
for (var c = document.styleSheets, l = 0, d = c.length; l < d; l++) {
|
|
1531
|
+
var u = c[l];
|
|
1532
|
+
if (u.ownerNode === i) return u;
|
|
1533
|
+
}
|
|
1534
|
+
We(17);
|
|
1535
|
+
})(n), this.length = 0;
|
|
1536
|
+
}
|
|
1537
|
+
var r = e.prototype;
|
|
1538
|
+
return r.insertRule = function(t, n) {
|
|
1539
|
+
try {
|
|
1540
|
+
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
1541
|
+
} catch {
|
|
1542
|
+
return !1;
|
|
1543
|
+
}
|
|
1544
|
+
}, r.deleteRule = function(t) {
|
|
1545
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1546
|
+
}, r.getRule = function(t) {
|
|
1547
|
+
var n = this.sheet.cssRules[t];
|
|
1548
|
+
return n !== void 0 && typeof n.cssText == "string" ? n.cssText : "";
|
|
1549
|
+
}, e;
|
|
1550
|
+
})(), qn = (function() {
|
|
1551
|
+
function e(t) {
|
|
1552
|
+
var n = this.element = lr(t);
|
|
1553
|
+
this.nodes = n.childNodes, this.length = 0;
|
|
1554
|
+
}
|
|
1555
|
+
var r = e.prototype;
|
|
1556
|
+
return r.insertRule = function(t, n) {
|
|
1557
|
+
if (t <= this.length && t >= 0) {
|
|
1558
|
+
var i = document.createTextNode(n), c = this.nodes[t];
|
|
1559
|
+
return this.element.insertBefore(i, c || null), this.length++, !0;
|
|
1560
|
+
}
|
|
1561
|
+
return !1;
|
|
1562
|
+
}, r.deleteRule = function(t) {
|
|
1563
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1564
|
+
}, r.getRule = function(t) {
|
|
1565
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1566
|
+
}, e;
|
|
1567
|
+
})(), Zn = (function() {
|
|
1568
|
+
function e(t) {
|
|
1569
|
+
this.rules = [], this.length = 0;
|
|
1570
|
+
}
|
|
1571
|
+
var r = e.prototype;
|
|
1572
|
+
return r.insertRule = function(t, n) {
|
|
1573
|
+
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
1574
|
+
}, r.deleteRule = function(t) {
|
|
1575
|
+
this.rules.splice(t, 1), this.length--;
|
|
1576
|
+
}, r.getRule = function(t) {
|
|
1577
|
+
return t < this.length ? this.rules[t] : "";
|
|
1578
|
+
}, e;
|
|
1579
|
+
})(), Zt = _t, Gn = { isServer: !_t, useCSSOMInjection: !Dn }, ur = (function() {
|
|
1580
|
+
function e(t, n, i) {
|
|
1581
|
+
t === void 0 && (t = Le), n === void 0 && (n = {}), this.options = je({}, Gn, {}, t), this.gs = n, this.names = new Map(i), this.server = !!t.isServer, !this.server && _t && Zt && (Zt = !1, (function(c) {
|
|
1582
|
+
for (var l = document.querySelectorAll(Hn), d = 0, u = l.length; d < u; d++) {
|
|
1583
|
+
var f = l[d];
|
|
1584
|
+
f && f.getAttribute(ze) !== "active" && (Bn(c, f), f.parentNode && f.parentNode.removeChild(f));
|
|
1585
|
+
}
|
|
1586
|
+
})(this));
|
|
1587
|
+
}
|
|
1588
|
+
e.registerId = function(t) {
|
|
1589
|
+
return tt(t);
|
|
1590
|
+
};
|
|
1591
|
+
var r = e.prototype;
|
|
1592
|
+
return r.reconstructWithOptions = function(t, n) {
|
|
1593
|
+
return n === void 0 && (n = !0), new e(je({}, this.options, {}, t), this.gs, n && this.names || void 0);
|
|
1594
|
+
}, r.allocateGSInstance = function(t) {
|
|
1595
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1596
|
+
}, r.getTag = function() {
|
|
1597
|
+
return this.tag || (this.tag = (i = (n = this.options).isServer, c = n.useCSSOMInjection, l = n.target, t = i ? new Zn(l) : c ? new Wn(l) : new qn(l), new Nn(t)));
|
|
1598
|
+
var t, n, i, c, l;
|
|
1599
|
+
}, r.hasNameForId = function(t, n) {
|
|
1600
|
+
return this.names.has(t) && this.names.get(t).has(n);
|
|
1601
|
+
}, r.registerName = function(t, n) {
|
|
1602
|
+
if (tt(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1603
|
+
else {
|
|
1604
|
+
var i = /* @__PURE__ */ new Set();
|
|
1605
|
+
i.add(n), this.names.set(t, i);
|
|
1606
|
+
}
|
|
1607
|
+
}, r.insertRules = function(t, n, i) {
|
|
1608
|
+
this.registerName(t, n), this.getTag().insertRules(tt(t), i);
|
|
1609
|
+
}, r.clearNames = function(t) {
|
|
1610
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1611
|
+
}, r.clearRules = function(t) {
|
|
1612
|
+
this.getTag().clearGroup(tt(t)), this.clearNames(t);
|
|
1613
|
+
}, r.clearTag = function() {
|
|
1614
|
+
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
|
+
}, e;
|
|
1633
|
+
})(), Xn = /(a)(d)/gi, Gt = function(e) {
|
|
1634
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1635
|
+
};
|
|
1636
|
+
function St(e) {
|
|
1637
|
+
var r, t = "";
|
|
1638
|
+
for (r = Math.abs(e); r > 52; r = r / 52 | 0) t = Gt(r % 52) + t;
|
|
1639
|
+
return (Gt(r % 52) + t).replace(Xn, "$1-$2");
|
|
1640
|
+
}
|
|
1641
|
+
var Me = function(e, r) {
|
|
1642
|
+
for (var t = r.length; t; ) e = 33 * e ^ r.charCodeAt(--t);
|
|
1643
|
+
return e;
|
|
1644
|
+
}, dr = function(e) {
|
|
1645
|
+
return Me(5381, e);
|
|
1646
|
+
};
|
|
1647
|
+
function Jn(e) {
|
|
1648
|
+
for (var r = 0; r < e.length; r += 1) {
|
|
1649
|
+
var t = e[r];
|
|
1650
|
+
if (Xe(t) && !kt(t)) return !1;
|
|
1651
|
+
}
|
|
1652
|
+
return !0;
|
|
1653
|
+
}
|
|
1654
|
+
var Kn = dr("5.3.11"), Qn = (function() {
|
|
1655
|
+
function e(r, t, n) {
|
|
1656
|
+
this.rules = r, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && Jn(r), this.componentId = t, this.baseHash = Me(Kn, t), this.baseStyle = n, ur.registerId(t);
|
|
1657
|
+
}
|
|
1658
|
+
return e.prototype.generateAndInjectStyles = function(r, t, n) {
|
|
1659
|
+
var i = this.componentId, c = [];
|
|
1660
|
+
if (this.baseStyle && c.push(this.baseStyle.generateAndInjectStyles(r, t, n)), this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(i, this.staticRulesId)) c.push(this.staticRulesId);
|
|
1661
|
+
else {
|
|
1662
|
+
var l = Ye(this.rules, r, t, n).join(""), d = St(Me(this.baseHash, l) >>> 0);
|
|
1663
|
+
if (!t.hasNameForId(i, d)) {
|
|
1664
|
+
var u = n(l, "." + d, void 0, i);
|
|
1665
|
+
t.insertRules(i, d, u);
|
|
1666
|
+
}
|
|
1667
|
+
c.push(d), this.staticRulesId = d;
|
|
1668
|
+
}
|
|
1669
|
+
else {
|
|
1670
|
+
for (var f = this.rules.length, v = Me(this.baseHash, n.hash), w = "", L = 0; L < f; L++) {
|
|
1671
|
+
var R = this.rules[L];
|
|
1672
|
+
if (typeof R == "string") w += R, process.env.NODE_ENV !== "production" && (v = Me(v, R + L));
|
|
1673
|
+
else if (R) {
|
|
1674
|
+
var E = Ye(R, r, t, n), k = Array.isArray(E) ? E.join("") : E;
|
|
1675
|
+
v = Me(v, k + L), w += k;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
if (w) {
|
|
1679
|
+
var _ = St(v >>> 0);
|
|
1680
|
+
if (!t.hasNameForId(i, _)) {
|
|
1681
|
+
var j = n(w, "." + _, void 0, i);
|
|
1682
|
+
t.insertRules(i, _, j);
|
|
1683
|
+
}
|
|
1684
|
+
c.push(_);
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
return c.join(" ");
|
|
1688
|
+
}, e;
|
|
1689
|
+
})(), eo = /^\s*\/\/.*$/gm, to = [":", "[", ".", "#"];
|
|
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();
|
|
1740
|
+
fr.Consumer;
|
|
1741
|
+
var pr = Ue.createContext(), no = (pr.Consumer, new ur()), Ct = ro();
|
|
1742
|
+
function oo() {
|
|
1743
|
+
return Je(fr) || no;
|
|
1744
|
+
}
|
|
1745
|
+
function io() {
|
|
1746
|
+
return Je(pr) || Ct;
|
|
1747
|
+
}
|
|
1748
|
+
var hr = (function() {
|
|
1749
|
+
function e(r, t) {
|
|
1750
|
+
var n = this;
|
|
1751
|
+
this.inject = function(i, c) {
|
|
1752
|
+
c === void 0 && (c = Ct);
|
|
1753
|
+
var l = n.name + c.hash;
|
|
1754
|
+
i.hasNameForId(n.id, l) || i.insertRules(n.id, l, c(n.rules, l, "@keyframes"));
|
|
1755
|
+
}, this.toString = function() {
|
|
1756
|
+
return We(12, String(n.name));
|
|
1757
|
+
}, this.name = r, this.id = "sc-keyframes-" + r, this.rules = t;
|
|
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);
|
|
1782
|
+
}
|
|
1783
|
+
var f;
|
|
1784
|
+
return e instanceof hr ? t ? (e.inject(t, n), e.getName(n)) : e : bt(e) ? (function v(w, L) {
|
|
1785
|
+
var R, E, k = [];
|
|
1786
|
+
for (var _ in w) w.hasOwnProperty(_) && !Jt(w[_]) && (Array.isArray(w[_]) && w[_].isCss || Xe(w[_]) ? k.push(Xt(_) + ":", w[_], ";") : bt(w[_]) ? k.push.apply(k, v(w[_], _)) : k.push(Xt(_) + ": " + (R = _, (E = w[_]) == null || typeof E == "boolean" || E === "" ? "" : typeof E != "number" || E === 0 || R in _n || R.startsWith("--") ? String(E).trim() : E + "px") + ";"));
|
|
1787
|
+
return L ? [L + " {"].concat(k, ["}"]) : k;
|
|
1788
|
+
})(e) : e.toString();
|
|
1789
|
+
}
|
|
1790
|
+
var Kt = function(e) {
|
|
1791
|
+
return Array.isArray(e) && (e.isCss = !0), e;
|
|
681
1792
|
};
|
|
682
|
-
function
|
|
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));
|
|
1809
|
+
}
|
|
1810
|
+
}, ve(), i && !rt.has(t) && (console.warn(t), rt.add(t));
|
|
1811
|
+
} catch (c) {
|
|
1812
|
+
Qt.test(c.message) && rt.delete(t);
|
|
1813
|
+
} finally {
|
|
1814
|
+
console.error = n;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
}, fo = function(e, r, t) {
|
|
1818
|
+
return t === void 0 && (t = Le), e.theme !== t.theme && e.theme || r || t.theme;
|
|
1819
|
+
}, po = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, ho = /(^-|-$)/g;
|
|
1820
|
+
function yt(e) {
|
|
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);
|
|
1843
|
+
}
|
|
1844
|
+
return e;
|
|
1845
|
+
}
|
|
1846
|
+
var gr = Ue.createContext();
|
|
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() {
|
|
1887
|
+
return this._foldedDefaultProps;
|
|
1888
|
+
}, set: function(x) {
|
|
1889
|
+
this._foldedDefaultProps = n ? vr({}, e.defaultProps, x) : x;
|
|
1890
|
+
} }), process.env.NODE_ENV !== "production" && (uo(v, w), E.warnTooManyClasses = /* @__PURE__ */ (function(x, g) {
|
|
1891
|
+
var A = {}, p = !1;
|
|
1892
|
+
return function(U) {
|
|
1893
|
+
if (!p && (A[U] = !0, Object.keys(A).length >= 200)) {
|
|
1894
|
+
var de = g ? ' with the id of "' + g + '"' : "";
|
|
1895
|
+
console.warn("Over 200 classes were generated for component " + x + de + `.
|
|
1896
|
+
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1897
|
+
Example:
|
|
1898
|
+
const Component = styled.div.attrs(props => ({
|
|
1899
|
+
style: {
|
|
1900
|
+
background: props.background,
|
|
1901
|
+
},
|
|
1902
|
+
}))\`width: 100%;\`
|
|
1903
|
+
|
|
1904
|
+
<Component />`), p = !0, A = {};
|
|
1905
|
+
}
|
|
1906
|
+
};
|
|
1907
|
+
})(v, w)), Object.defineProperty(E, "toString", { value: function() {
|
|
1908
|
+
return "." + E.styledComponentId;
|
|
1909
|
+
} }), i && On(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), E;
|
|
1910
|
+
}
|
|
1911
|
+
var Y = function(e) {
|
|
1912
|
+
return (function r(t, n, i) {
|
|
1913
|
+
if (i === void 0 && (i = Le), !Rt.isValidElementType(n)) return We(1, String(n));
|
|
1914
|
+
var c = function() {
|
|
1915
|
+
return t(n, i, st.apply(void 0, arguments));
|
|
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);
|
|
1923
|
+
};
|
|
1924
|
+
["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", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "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", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach((function(e) {
|
|
1925
|
+
Y[e] = Y(e);
|
|
1926
|
+
}));
|
|
1927
|
+
function go(e) {
|
|
1928
|
+
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
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) t[n - 1] = arguments[n];
|
|
1930
|
+
var i = st.apply(void 0, [e].concat(t)).join(""), c = mr(i);
|
|
1931
|
+
return new hr(c, i);
|
|
1932
|
+
}
|
|
1933
|
+
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
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1935
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, window["__styled-components-init__"] === 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
|
+
|
|
1937
|
+
See https://s-c.sh/2BAXzed for more info.`), window["__styled-components-init__"] += 1);
|
|
1938
|
+
function yo({
|
|
683
1939
|
children: e,
|
|
684
|
-
eventFinishedMessage:
|
|
685
|
-
eventNotStartedMessage:
|
|
686
|
-
eventStartingSoonMessage:
|
|
1940
|
+
eventFinishedMessage: r,
|
|
1941
|
+
eventNotStartedMessage: t,
|
|
1942
|
+
eventStartingSoonMessage: n
|
|
687
1943
|
}) {
|
|
688
|
-
const
|
|
689
|
-
return
|
|
690
|
-
|
|
1944
|
+
const i = me((f) => f.startDate), c = me((f) => f.endDate), l = Date.now(), d = l < i.getTime(), u = l > c.getTime();
|
|
1945
|
+
return Cn(5e3), d ? /* @__PURE__ */ a.jsx(
|
|
1946
|
+
wo,
|
|
691
1947
|
{
|
|
692
|
-
startDate:
|
|
693
|
-
title:
|
|
694
|
-
message:
|
|
1948
|
+
startDate: i,
|
|
1949
|
+
title: t || "Event has not started yet.",
|
|
1950
|
+
message: n || "Starting in few seconds..."
|
|
695
1951
|
}
|
|
696
|
-
) :
|
|
1952
|
+
) : u ? /* @__PURE__ */ a.jsx(bo, { title: r || "Event has finished." }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
|
|
697
1953
|
}
|
|
698
|
-
function
|
|
699
|
-
const
|
|
700
|
-
|
|
1954
|
+
function wo({ startDate: e, title: r, message: t }) {
|
|
1955
|
+
const n = e.getTime() - Date.now(), i = Math.floor(n / (1e3 * 60 * 60)), c = Math.floor(
|
|
1956
|
+
n % (1e3 * 60 * 60) / (1e3 * 60)
|
|
701
1957
|
);
|
|
702
|
-
return
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
1958
|
+
return i || c ? /* @__PURE__ */ a.jsxs(Tt, { children: [
|
|
1959
|
+
/* @__PURE__ */ a.jsx(Pt, { children: r }),
|
|
1960
|
+
/* @__PURE__ */ a.jsxs(xo, { children: [
|
|
705
1961
|
"(",
|
|
706
|
-
|
|
1962
|
+
i > 0 ? `${i}h ${c}m` : `${c}m`,
|
|
707
1963
|
")"
|
|
708
1964
|
] })
|
|
709
|
-
] }) : /* @__PURE__ */
|
|
1965
|
+
] }) : /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(Pt, { children: t }) });
|
|
710
1966
|
}
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */
|
|
1967
|
+
function bo({ title: e }) {
|
|
1968
|
+
return /* @__PURE__ */ a.jsx(Tt, { children: /* @__PURE__ */ a.jsx(Pt, { children: e }) });
|
|
713
1969
|
}
|
|
714
|
-
const
|
|
1970
|
+
const Tt = Y.div`
|
|
715
1971
|
position: absolute;
|
|
716
1972
|
top: 0;
|
|
717
1973
|
left: 0;
|
|
@@ -724,14 +1980,14 @@ const Ee = b.div`
|
|
|
724
1980
|
justify-content: center;
|
|
725
1981
|
color: black;
|
|
726
1982
|
background: #f7e406;
|
|
727
|
-
`,
|
|
1983
|
+
`, Pt = Y.h3`
|
|
728
1984
|
margin: 0;
|
|
729
1985
|
padding: 0.5rem 0;
|
|
730
1986
|
font-size: 1.5rem;
|
|
731
1987
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
732
1988
|
"Helvetica Neue", Arial, sans-serif;
|
|
733
1989
|
font-weight: 500;
|
|
734
|
-
`,
|
|
1990
|
+
`, xo = Y.p`
|
|
735
1991
|
margin: 0;
|
|
736
1992
|
height: 1.25rem;
|
|
737
1993
|
font-size: 1rem;
|
|
@@ -739,22 +1995,22 @@ const Ee = b.div`
|
|
|
739
1995
|
"Helvetica Neue", Arial, sans-serif;
|
|
740
1996
|
font-weight: 500;
|
|
741
1997
|
`;
|
|
742
|
-
function
|
|
743
|
-
return /* @__PURE__ */
|
|
1998
|
+
function So() {
|
|
1999
|
+
return /* @__PURE__ */ a.jsx(
|
|
744
2000
|
"svg",
|
|
745
2001
|
{
|
|
746
2002
|
xmlns: "http://www.w3.org/2000/svg",
|
|
747
2003
|
viewBox: "0 0 24 24",
|
|
748
2004
|
fill: "currentColor",
|
|
749
|
-
children: /* @__PURE__ */
|
|
2005
|
+
children: /* @__PURE__ */ a.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" })
|
|
750
2006
|
}
|
|
751
2007
|
);
|
|
752
2008
|
}
|
|
753
|
-
const
|
|
754
|
-
({ shape: e = "circle", ...
|
|
2009
|
+
const Ie = lt(
|
|
2010
|
+
({ shape: e = "circle", ...r }, t) => /* @__PURE__ */ a.jsx(Co, { ref: t, $shape: e, ...r })
|
|
755
2011
|
);
|
|
756
|
-
|
|
757
|
-
const
|
|
2012
|
+
Ie.displayName = "PlayerButton";
|
|
2013
|
+
const Co = Y.button`
|
|
758
2014
|
margin: 0;
|
|
759
2015
|
display: flex;
|
|
760
2016
|
align-items: center;
|
|
@@ -792,83 +2048,83 @@ const In = b.button`
|
|
|
792
2048
|
cursor: not-allowed;
|
|
793
2049
|
}
|
|
794
2050
|
|
|
795
|
-
${({ $shape: e }) => e === "circle" &&
|
|
2051
|
+
${({ $shape: e }) => e === "circle" && st`
|
|
796
2052
|
padding: 0;
|
|
797
2053
|
width: 2rem;
|
|
798
2054
|
height: 2rem;
|
|
799
2055
|
`}
|
|
800
2056
|
|
|
801
|
-
${({ $shape: e }) => e === "square" &&
|
|
2057
|
+
${({ $shape: e }) => e === "square" && st`
|
|
802
2058
|
padding: 0.25rem 0.5rem;
|
|
803
2059
|
`}
|
|
804
2060
|
`;
|
|
805
|
-
function
|
|
806
|
-
const
|
|
807
|
-
return
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
2061
|
+
function Eo({ message: e, ...r }) {
|
|
2062
|
+
const t = me((c) => c.delay), n = me((c) => c.setDelay), i = () => n(0);
|
|
2063
|
+
return t ? /* @__PURE__ */ a.jsxs(Ie, { onClick: i, shape: "square", ...r, children: [
|
|
2064
|
+
/* @__PURE__ */ a.jsx("span", { children: e || "Live" }),
|
|
2065
|
+
/* @__PURE__ */ a.jsx(So, {})
|
|
810
2066
|
] }) : null;
|
|
811
2067
|
}
|
|
812
|
-
function
|
|
813
|
-
return /* @__PURE__ */
|
|
2068
|
+
function wr() {
|
|
2069
|
+
return /* @__PURE__ */ a.jsx(
|
|
814
2070
|
"svg",
|
|
815
2071
|
{
|
|
816
2072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
817
2073
|
viewBox: "0 0 24 24",
|
|
818
2074
|
fill: "currentColor",
|
|
819
|
-
children: /* @__PURE__ */
|
|
2075
|
+
children: /* @__PURE__ */ a.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
820
2076
|
}
|
|
821
2077
|
);
|
|
822
2078
|
}
|
|
823
|
-
function
|
|
824
|
-
return /* @__PURE__ */
|
|
2079
|
+
function br() {
|
|
2080
|
+
return /* @__PURE__ */ a.jsx(
|
|
825
2081
|
"svg",
|
|
826
2082
|
{
|
|
827
2083
|
xmlns: "http://www.w3.org/2000/svg",
|
|
828
2084
|
viewBox: "0 0 24 24",
|
|
829
2085
|
fill: "currentColor",
|
|
830
|
-
children: /* @__PURE__ */
|
|
2086
|
+
children: /* @__PURE__ */ a.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" })
|
|
831
2087
|
}
|
|
832
2088
|
);
|
|
833
2089
|
}
|
|
834
|
-
function
|
|
835
|
-
const
|
|
2090
|
+
function To(e, r, t) {
|
|
2091
|
+
const n = {
|
|
836
2092
|
days: 86400,
|
|
837
2093
|
hours: 3600,
|
|
838
2094
|
minutes: 60,
|
|
839
2095
|
seconds: 1,
|
|
840
2096
|
milliseconds: 1e-3
|
|
841
2097
|
};
|
|
842
|
-
return e * (
|
|
2098
|
+
return e * (n[r] / n[t]);
|
|
843
2099
|
}
|
|
844
|
-
function
|
|
845
|
-
return
|
|
2100
|
+
function Po(e) {
|
|
2101
|
+
return To(e, "milliseconds", "seconds");
|
|
846
2102
|
}
|
|
847
|
-
const
|
|
848
|
-
const
|
|
849
|
-
return `${
|
|
2103
|
+
const Be = (e) => {
|
|
2104
|
+
const r = Math.floor(e / 60), t = Math.floor(e % 60);
|
|
2105
|
+
return `${r.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
|
|
850
2106
|
};
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
return e.test(
|
|
2107
|
+
function Ro(e) {
|
|
2108
|
+
const r = typeof window < "u" && window.navigator?.userAgent || "";
|
|
2109
|
+
return e.test(r);
|
|
854
2110
|
}
|
|
855
|
-
const
|
|
856
|
-
function
|
|
2111
|
+
const xr = Ro(/iPhone|iPad|iPod/i);
|
|
2112
|
+
function ko() {
|
|
857
2113
|
const e = document;
|
|
858
2114
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
859
2115
|
}
|
|
860
|
-
function
|
|
2116
|
+
function _o(e) {
|
|
861
2117
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
862
2118
|
}
|
|
863
|
-
function
|
|
2119
|
+
function Ao(e) {
|
|
864
2120
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
865
2121
|
}
|
|
866
|
-
function
|
|
867
|
-
return e.addEventListener("fullscreenchange",
|
|
868
|
-
e.removeEventListener("fullscreenchange",
|
|
2122
|
+
function jo(e, r) {
|
|
2123
|
+
return e.addEventListener("fullscreenchange", r), e.addEventListener("webkitfullscreenchange", r), e.addEventListener("mozfullscreenchange", r), e.addEventListener("MSFullscreenChange", r), () => {
|
|
2124
|
+
e.removeEventListener("fullscreenchange", r), e.removeEventListener("webkitfullscreenchange", r), e.removeEventListener("mozfullscreenchange", r), e.removeEventListener("MSFullscreenChange", r);
|
|
869
2125
|
};
|
|
870
2126
|
}
|
|
871
|
-
const
|
|
2127
|
+
const Lo = (e, r) => ({
|
|
872
2128
|
currentTime: 0,
|
|
873
2129
|
duration: 0,
|
|
874
2130
|
isEnded: !1,
|
|
@@ -885,11 +2141,11 @@ const Bn = (e, n) => ({
|
|
|
885
2141
|
destroy: () => {
|
|
886
2142
|
},
|
|
887
2143
|
handleDurationChange: () => {
|
|
888
|
-
const
|
|
889
|
-
|
|
2144
|
+
const t = r().techRef.current;
|
|
2145
|
+
t && e({ duration: t.duration });
|
|
890
2146
|
},
|
|
891
2147
|
handleEnd: () => {
|
|
892
|
-
|
|
2148
|
+
r().techRef.current && e({
|
|
893
2149
|
isEnded: !0,
|
|
894
2150
|
isLoading: !1,
|
|
895
2151
|
isMetaLoaded: !1,
|
|
@@ -897,18 +2153,18 @@ const Bn = (e, n) => ({
|
|
|
897
2153
|
});
|
|
898
2154
|
},
|
|
899
2155
|
handleLoadedMetadata: () => {
|
|
900
|
-
const
|
|
901
|
-
|
|
902
|
-
currentTime:
|
|
903
|
-
duration:
|
|
2156
|
+
const t = r().techRef.current;
|
|
2157
|
+
t && (t.loop = r().isLoop, t.volume = t.muted ? 0 : 1, r().startTime !== -1 && (t.currentTime = r().startTime), e({
|
|
2158
|
+
currentTime: r().startTime !== -1 ? r().startTime : t.currentTime,
|
|
2159
|
+
duration: t.duration,
|
|
904
2160
|
startTime: -1,
|
|
905
2161
|
isMetaLoaded: !0,
|
|
906
|
-
volume:
|
|
2162
|
+
volume: t.muted ? 0 : 100
|
|
907
2163
|
}));
|
|
908
2164
|
},
|
|
909
2165
|
handleLoadStart: () => {
|
|
910
|
-
const
|
|
911
|
-
|
|
2166
|
+
const t = r().techRef.current;
|
|
2167
|
+
t && (e({ isReady: !0 }), t.play().then(() => {
|
|
912
2168
|
e({
|
|
913
2169
|
isEnded: !1,
|
|
914
2170
|
isLoading: !1,
|
|
@@ -917,7 +2173,7 @@ const Bn = (e, n) => ({
|
|
|
917
2173
|
pauseTime: 0
|
|
918
2174
|
});
|
|
919
2175
|
}).catch(
|
|
920
|
-
(
|
|
2176
|
+
(n) => e(() => (console.info("Player failed to autoplay", n), {
|
|
921
2177
|
isStarted: !1,
|
|
922
2178
|
isEnded: !1,
|
|
923
2179
|
isLoading: !1,
|
|
@@ -937,134 +2193,134 @@ const Bn = (e, n) => ({
|
|
|
937
2193
|
handleSeeked: () => e({ isLoading: !1 }),
|
|
938
2194
|
handleSeeking: () => e({ isLoading: !0 }),
|
|
939
2195
|
handleTimeUpdate: () => {
|
|
940
|
-
const
|
|
941
|
-
|
|
2196
|
+
const t = r().techRef.current;
|
|
2197
|
+
t && e({ currentTime: t.currentTime });
|
|
942
2198
|
},
|
|
943
2199
|
handleWaiting: () => e({ isLoading: !0 }),
|
|
944
2200
|
pause: () => {
|
|
945
|
-
const
|
|
946
|
-
|
|
2201
|
+
const t = r().techRef.current;
|
|
2202
|
+
t && (t.pause(), e({
|
|
947
2203
|
isEnded: !1,
|
|
948
2204
|
isPlaying: !1,
|
|
949
2205
|
pauseTime: Date.now()
|
|
950
2206
|
}));
|
|
951
2207
|
},
|
|
952
|
-
pauseTimeDiff: () =>
|
|
2208
|
+
pauseTimeDiff: () => Po(Date.now() - r().pauseTime),
|
|
953
2209
|
play: () => {
|
|
954
|
-
const
|
|
955
|
-
|
|
2210
|
+
const t = r().techRef.current;
|
|
2211
|
+
t && (t.play(), e({
|
|
956
2212
|
isEnded: !1,
|
|
957
2213
|
isPlaying: !0,
|
|
958
2214
|
isStarted: !0,
|
|
959
2215
|
pauseTime: 0
|
|
960
2216
|
}));
|
|
961
2217
|
},
|
|
962
|
-
seek: (
|
|
963
|
-
const
|
|
964
|
-
|
|
2218
|
+
seek: (t) => {
|
|
2219
|
+
const n = r().techRef.current;
|
|
2220
|
+
n && (n.currentTime = t, (n.paused || n.ended) && n.play(), e({
|
|
965
2221
|
seekTime: -1,
|
|
966
|
-
currentTime:
|
|
2222
|
+
currentTime: t,
|
|
967
2223
|
isStarted: !0,
|
|
968
2224
|
isEnded: !1,
|
|
969
2225
|
isPlaying: !0
|
|
970
2226
|
}));
|
|
971
2227
|
},
|
|
972
|
-
setIsLoading: (
|
|
973
|
-
setIsLoop: (
|
|
974
|
-
const
|
|
975
|
-
|
|
2228
|
+
setIsLoading: (t) => e({ isLoading: t }),
|
|
2229
|
+
setIsLoop: (t) => {
|
|
2230
|
+
const n = r().techRef.current;
|
|
2231
|
+
n && (n.loop = t, e({ isLoop: t }));
|
|
976
2232
|
},
|
|
977
|
-
setStartTime: (
|
|
978
|
-
setVolume: (
|
|
979
|
-
const
|
|
980
|
-
|
|
2233
|
+
setStartTime: (t) => e({ startTime: t }),
|
|
2234
|
+
setVolume: (t) => {
|
|
2235
|
+
const n = r().techRef.current;
|
|
2236
|
+
n && (n.muted = t === 0, n.volume = t / 100, e({ volume: t }));
|
|
981
2237
|
},
|
|
982
2238
|
stop: () => {
|
|
983
|
-
|
|
2239
|
+
r().techRef.current && e({
|
|
984
2240
|
isPlaying: !1,
|
|
985
2241
|
isLoading: !1
|
|
986
2242
|
});
|
|
987
2243
|
}
|
|
988
|
-
}),
|
|
2244
|
+
}), Io = (e) => ({
|
|
989
2245
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
990
|
-
addIdleLock: (
|
|
991
|
-
idleLocks: new Set(
|
|
2246
|
+
addIdleLock: (r) => e((t) => ({
|
|
2247
|
+
idleLocks: new Set(t.idleLocks).add(r)
|
|
992
2248
|
})),
|
|
993
|
-
removeIdleLock: (
|
|
994
|
-
const
|
|
995
|
-
return
|
|
2249
|
+
removeIdleLock: (r) => e((t) => {
|
|
2250
|
+
const n = new Set(t.idleLocks);
|
|
2251
|
+
return n.delete(r), { idleLocks: n };
|
|
996
2252
|
})
|
|
997
|
-
}),
|
|
2253
|
+
}), Oo = (e) => ({
|
|
998
2254
|
level: null,
|
|
999
2255
|
levels: null,
|
|
1000
|
-
setLevels: (
|
|
1001
|
-
setLevel: (
|
|
1002
|
-
}),
|
|
2256
|
+
setLevels: (r) => e({ levels: r }),
|
|
2257
|
+
setLevel: (r) => e({ level: r })
|
|
2258
|
+
}), Do = (e, r) => ({
|
|
1003
2259
|
isFullscreen: !1,
|
|
1004
2260
|
isFullscreenReady: !1,
|
|
1005
2261
|
exitFullscreen: () => {
|
|
1006
|
-
|
|
2262
|
+
Ao(document), e({ isFullscreen: !1 });
|
|
1007
2263
|
},
|
|
1008
2264
|
requestFullscreen: () => {
|
|
1009
|
-
const
|
|
1010
|
-
if (!
|
|
1011
|
-
const
|
|
1012
|
-
|
|
2265
|
+
const t = r().techRef.current, n = r().containerRef.current;
|
|
2266
|
+
if (!t || !n) return;
|
|
2267
|
+
const i = xr ? t : n;
|
|
2268
|
+
i && _o(i), e({ isFullscreen: !0 });
|
|
1013
2269
|
},
|
|
1014
|
-
setIsFullscreen: (
|
|
1015
|
-
setIsFullscreenReady: (
|
|
1016
|
-
}),
|
|
2270
|
+
setIsFullscreen: (t) => e({ isFullscreen: t }),
|
|
2271
|
+
setIsFullscreenReady: (t) => e({ isFullscreenReady: t })
|
|
2272
|
+
}), Mo = (e) => () => ({
|
|
1017
2273
|
...e
|
|
1018
|
-
}),
|
|
1019
|
-
...
|
|
1020
|
-
...
|
|
1021
|
-
...
|
|
1022
|
-
...
|
|
1023
|
-
...
|
|
1024
|
-
})),
|
|
1025
|
-
function
|
|
1026
|
-
const
|
|
1027
|
-
return
|
|
1028
|
-
}
|
|
1029
|
-
const
|
|
1030
|
-
const
|
|
1031
|
-
if (!
|
|
2274
|
+
}), Fo = (e, r) => ir()((...t) => ({
|
|
2275
|
+
...Lo(...t),
|
|
2276
|
+
...Io(...t),
|
|
2277
|
+
...Do(...t),
|
|
2278
|
+
...Oo(...t),
|
|
2279
|
+
...Mo({ techRef: e, containerRef: r })(...t)
|
|
2280
|
+
})), Sr = or(null);
|
|
2281
|
+
function No({ children: e }) {
|
|
2282
|
+
const r = ve(null), t = ve(null), n = ve(null);
|
|
2283
|
+
return r.current || (r.current = Fo(t, n)), /* @__PURE__ */ a.jsx(Sr.Provider, { value: r.current, children: e });
|
|
2284
|
+
}
|
|
2285
|
+
const b = (e) => {
|
|
2286
|
+
const r = Je(Sr);
|
|
2287
|
+
if (!r)
|
|
1032
2288
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1033
|
-
return
|
|
2289
|
+
return ar(r, e);
|
|
1034
2290
|
};
|
|
1035
|
-
function
|
|
1036
|
-
const e =
|
|
1037
|
-
e ?
|
|
2291
|
+
function Vo() {
|
|
2292
|
+
const e = b((u) => u.isPlaying), r = b((u) => u.pause), t = b((u) => u.pauseTime), n = b((u) => u.pauseTimeDiff), i = b((u) => u.play), c = me((u) => u.delay), l = me((u) => u.setDelay), d = () => {
|
|
2293
|
+
e ? r() : (t && l(c + n()), i());
|
|
1038
2294
|
};
|
|
1039
|
-
return /* @__PURE__ */
|
|
2295
|
+
return /* @__PURE__ */ a.jsx(Ie, { onClick: d, children: e ? /* @__PURE__ */ a.jsx(wr, {}) : /* @__PURE__ */ a.jsx(br, {}) });
|
|
1040
2296
|
}
|
|
1041
|
-
function
|
|
2297
|
+
function Cr({
|
|
1042
2298
|
className: e,
|
|
1043
|
-
onClick:
|
|
1044
|
-
...
|
|
2299
|
+
onClick: r,
|
|
2300
|
+
...t
|
|
1045
2301
|
}) {
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
},
|
|
1049
|
-
|
|
1050
|
-
|
|
2302
|
+
const n = ve(null), i = b((w) => w.exitFullscreen), c = b((w) => w.isFullscreen), l = b((w) => w.requestFullscreen), d = (w) => {
|
|
2303
|
+
v() ? (f(), c ? i() : l()) : u(w);
|
|
2304
|
+
}, u = (w) => {
|
|
2305
|
+
n.current = window.setTimeout(() => {
|
|
2306
|
+
r?.(w), f();
|
|
1051
2307
|
}, 200);
|
|
1052
|
-
},
|
|
1053
|
-
|
|
1054
|
-
},
|
|
1055
|
-
return
|
|
1056
|
-
|
|
1057
|
-
}, []), /* @__PURE__ */
|
|
1058
|
-
|
|
2308
|
+
}, f = () => {
|
|
2309
|
+
n.current !== null && (window.clearTimeout(n.current), n.current = null);
|
|
2310
|
+
}, v = () => n.current !== null;
|
|
2311
|
+
return be(() => () => {
|
|
2312
|
+
f();
|
|
2313
|
+
}, []), /* @__PURE__ */ a.jsx(
|
|
2314
|
+
$o,
|
|
1059
2315
|
{
|
|
1060
|
-
onClick:
|
|
2316
|
+
onClick: d,
|
|
1061
2317
|
className: e,
|
|
1062
2318
|
"aria-label": "Player playback indicator",
|
|
1063
|
-
...
|
|
2319
|
+
...t
|
|
1064
2320
|
}
|
|
1065
2321
|
);
|
|
1066
2322
|
}
|
|
1067
|
-
const
|
|
2323
|
+
const $o = Y.button`
|
|
1068
2324
|
position: absolute;
|
|
1069
2325
|
top: 0;
|
|
1070
2326
|
left: 0;
|
|
@@ -1083,17 +2339,17 @@ const Xn = b.button`
|
|
|
1083
2339
|
outline: none;
|
|
1084
2340
|
}
|
|
1085
2341
|
`;
|
|
1086
|
-
function
|
|
1087
|
-
const e =
|
|
1088
|
-
e ||
|
|
2342
|
+
function Ho() {
|
|
2343
|
+
const e = b((n) => n.isPlaying), r = b((n) => n.play), t = () => {
|
|
2344
|
+
e || r();
|
|
1089
2345
|
};
|
|
1090
|
-
return /* @__PURE__ */
|
|
2346
|
+
return /* @__PURE__ */ a.jsx(Cr, { onClick: t });
|
|
1091
2347
|
}
|
|
1092
|
-
const
|
|
2348
|
+
const Er = Y.div`
|
|
1093
2349
|
position: relative;
|
|
1094
2350
|
width: 100%;
|
|
1095
2351
|
margin-bottom: -0.25rem;
|
|
1096
|
-
`,
|
|
2352
|
+
`, Tr = Y.div`
|
|
1097
2353
|
position: absolute;
|
|
1098
2354
|
bottom: 1.75rem;
|
|
1099
2355
|
left: 0;
|
|
@@ -1104,7 +2360,7 @@ const gt = b.div`
|
|
|
1104
2360
|
opacity: ${({ $isVisible: e }) => e ? 1 : 0};
|
|
1105
2361
|
transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
|
|
1106
2362
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
1107
|
-
`,
|
|
2363
|
+
`, Pr = Y.p`
|
|
1108
2364
|
margin: 0;
|
|
1109
2365
|
padding: 0.25rem;
|
|
1110
2366
|
font-variant-numeric: tabular-nums;
|
|
@@ -1116,27 +2372,27 @@ const gt = b.div`
|
|
|
1116
2372
|
color: white;
|
|
1117
2373
|
background: rgba(0, 0, 0, 0.8);
|
|
1118
2374
|
border-radius: 1rem;
|
|
1119
|
-
`,
|
|
1120
|
-
|
|
2375
|
+
`, ft = lt(({ max: e = 100, min: r = 0, ...t }, n) => /* @__PURE__ */ a.jsxs(
|
|
2376
|
+
zo,
|
|
1121
2377
|
{
|
|
1122
|
-
ref:
|
|
1123
|
-
min:
|
|
2378
|
+
ref: n,
|
|
2379
|
+
min: r,
|
|
1124
2380
|
max: e,
|
|
1125
2381
|
"aria-label": "Player progress",
|
|
1126
|
-
onKeyDown: (
|
|
2382
|
+
onKeyDown: (i) => (
|
|
1127
2383
|
// Prevent the slider from being controlled by the keyboard
|
|
1128
2384
|
// when the slider is focused by a click
|
|
1129
|
-
|
|
2385
|
+
i.preventDefault()
|
|
1130
2386
|
),
|
|
1131
|
-
...
|
|
2387
|
+
...t,
|
|
1132
2388
|
children: [
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ a.jsx(Yo, { children: /* @__PURE__ */ a.jsx(Bo, {}) }),
|
|
2390
|
+
/* @__PURE__ */ a.jsx(Uo, {})
|
|
1135
2391
|
]
|
|
1136
2392
|
}
|
|
1137
2393
|
));
|
|
1138
|
-
|
|
1139
|
-
const
|
|
2394
|
+
ft.displayName = "PlayerSlider";
|
|
2395
|
+
const zo = Y(ut.Root)`
|
|
1140
2396
|
position: relative;
|
|
1141
2397
|
display: flex;
|
|
1142
2398
|
align-items: center;
|
|
@@ -1150,20 +2406,20 @@ const Gn = b(ye.Root)`
|
|
|
1150
2406
|
cursor: not-allowed;
|
|
1151
2407
|
opacity: 0.5;
|
|
1152
2408
|
}
|
|
1153
|
-
`,
|
|
2409
|
+
`, Yo = Y(ut.Track)`
|
|
1154
2410
|
position: relative;
|
|
1155
2411
|
height: 0.25rem;
|
|
1156
2412
|
flex-grow: 1;
|
|
1157
2413
|
background: rgba(255, 255, 255, 0.2);
|
|
1158
2414
|
border-radius: 1rem;
|
|
1159
2415
|
overflow: hidden;
|
|
1160
|
-
`,
|
|
2416
|
+
`, Bo = Y(ut.Range)`
|
|
1161
2417
|
position: absolute;
|
|
1162
2418
|
height: 100%;
|
|
1163
2419
|
background: #f7e406;
|
|
1164
2420
|
transition: width 0.2s ease-in-out;
|
|
1165
2421
|
border-radius: 1rem;
|
|
1166
|
-
`,
|
|
2422
|
+
`, Uo = Y(ut.Thumb)`
|
|
1167
2423
|
display: block;
|
|
1168
2424
|
width: 0.875rem;
|
|
1169
2425
|
height: 0.875rem;
|
|
@@ -1187,106 +2443,106 @@ const Gn = b(ye.Root)`
|
|
|
1187
2443
|
opacity: 0.5;
|
|
1188
2444
|
}
|
|
1189
2445
|
`;
|
|
1190
|
-
function
|
|
1191
|
-
const
|
|
2446
|
+
function ct(e) {
|
|
2447
|
+
const r = e.getBoundingClientRect();
|
|
1192
2448
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
1193
|
-
left:
|
|
1194
|
-
right:
|
|
1195
|
-
top:
|
|
1196
|
-
bottom:
|
|
1197
|
-
width:
|
|
1198
|
-
height:
|
|
1199
|
-
} :
|
|
1200
|
-
}
|
|
1201
|
-
const
|
|
1202
|
-
Math.max(0, (Date.now() - (e +
|
|
1203
|
-
),
|
|
1204
|
-
const
|
|
1205
|
-
return `${parseFloat((e / Math.pow(1024,
|
|
2449
|
+
left: r.left * 100,
|
|
2450
|
+
right: r.right * 100,
|
|
2451
|
+
top: r.top * 100,
|
|
2452
|
+
bottom: r.bottom * 100,
|
|
2453
|
+
width: r.width * 100,
|
|
2454
|
+
height: r.height * 100
|
|
2455
|
+
} : r;
|
|
2456
|
+
}
|
|
2457
|
+
const Rr = (e, r = 0) => parseInt(
|
|
2458
|
+
Math.max(0, (Date.now() - (e + r * 1e3)) / 1e3).toFixed(0)
|
|
2459
|
+
), kr = (e, r) => Math.max(0, (Date.now() - e - r * 1e3) / 1e3), _r = (e, r) => Math.max(0, (r - e) / 1e3), Wo = (e, r = 0) => {
|
|
2460
|
+
const n = r < 0 ? 0 : r, i = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], c = Math.floor(Math.log(e) / Math.log(1024));
|
|
2461
|
+
return `${parseFloat((e / Math.pow(1024, c)).toFixed(n))}${i[c]}`;
|
|
1206
2462
|
};
|
|
1207
|
-
function
|
|
2463
|
+
function qo({
|
|
1208
2464
|
isAuto: e,
|
|
1209
|
-
level:
|
|
1210
|
-
levels:
|
|
2465
|
+
level: r,
|
|
2466
|
+
levels: t
|
|
1211
2467
|
}) {
|
|
1212
|
-
const
|
|
1213
|
-
return
|
|
2468
|
+
const n = t.length, i = [];
|
|
2469
|
+
return n > 1 && i.push({
|
|
1214
2470
|
sid: "quality-level-auto",
|
|
1215
2471
|
label: "Auto",
|
|
1216
2472
|
value: -1,
|
|
1217
|
-
selected: e ||
|
|
1218
|
-
}),
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1221
|
-
}),
|
|
1222
|
-
const { bitrate:
|
|
1223
|
-
|
|
1224
|
-
sid: `quality-level-${
|
|
1225
|
-
label:
|
|
1226
|
-
value:
|
|
1227
|
-
selected:
|
|
2473
|
+
selected: e || r === -1
|
|
2474
|
+
}), t.sort(function(c, l) {
|
|
2475
|
+
const d = c.height || c.bitrate || 0, u = l.height || l.bitrate || 0;
|
|
2476
|
+
return d === u ? 0 : d > u ? 1 : -1;
|
|
2477
|
+
}), t.map((c) => {
|
|
2478
|
+
const { bitrate: l, height: d, index: u } = c;
|
|
2479
|
+
i.push({
|
|
2480
|
+
sid: `quality-level-${u}`,
|
|
2481
|
+
label: d ? `${d}p` : Wo(l),
|
|
2482
|
+
value: u,
|
|
2483
|
+
selected: n === 1 || !e && u === r
|
|
1228
2484
|
});
|
|
1229
|
-
}),
|
|
1230
|
-
}
|
|
1231
|
-
const
|
|
1232
|
-
function
|
|
1233
|
-
const e =
|
|
1234
|
-
|
|
1235
|
-
}, [
|
|
1236
|
-
(
|
|
1237
|
-
),
|
|
1238
|
-
|
|
1239
|
-
},
|
|
1240
|
-
if (
|
|
1241
|
-
const
|
|
1242
|
-
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
|
-
(
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
let
|
|
1251
|
-
|
|
2485
|
+
}), i;
|
|
2486
|
+
}
|
|
2487
|
+
const er = "vod-player-progress-bar";
|
|
2488
|
+
function Zo() {
|
|
2489
|
+
const e = ve(null), r = ve(null), [t, n] = ye(0), [i, c] = ye(0), [l, d] = ye(!1), [u, f] = ye(-1), [v, w] = ye(-1), L = me((M) => M.delay), R = me((M) => M.startTime), E = me((M) => M.endTime), k = me((M) => M.setDelay), _ = b((M) => M.isPlaying), j = b((M) => M.addIdleLock), x = b((M) => M.removeIdleLock), g = he(() => {
|
|
2490
|
+
n(kr(R, L)), c(_r(R, E));
|
|
2491
|
+
}, [L, E, R]), A = parseFloat(
|
|
2492
|
+
(i ? (v !== -1 ? v : t) / i * 100 : 0).toFixed(1)
|
|
2493
|
+
), p = (M) => {
|
|
2494
|
+
w(i * (M[0] / 100)), j(er);
|
|
2495
|
+
}, U = () => {
|
|
2496
|
+
if (v !== -1) {
|
|
2497
|
+
const M = Rr(R, v);
|
|
2498
|
+
k(M), w(-1), x(er);
|
|
2499
|
+
}
|
|
2500
|
+
}, de = () => d(!0), te = () => d(!1), ce = he(
|
|
2501
|
+
(M) => {
|
|
2502
|
+
const xe = e.current, re = r.current;
|
|
2503
|
+
if (xe && re) {
|
|
2504
|
+
const J = ct(xe), ne = ct(re), K = (M.pageX || M.clientX) - J.left, Se = K / J.width;
|
|
2505
|
+
if (Se < 0) return;
|
|
2506
|
+
let Q = K - ne.width / 2;
|
|
2507
|
+
Q < 0 && (Q = 0), Q > J.width - ne.width && (Q = -1), re.style.left = Q > -1 ? `${Q}px` : "auto", re.style.right = Q > -1 ? "auto" : "0px", f(Se * i);
|
|
1252
2508
|
}
|
|
1253
|
-
|
|
2509
|
+
de();
|
|
1254
2510
|
},
|
|
1255
|
-
[
|
|
2511
|
+
[i]
|
|
1256
2512
|
);
|
|
1257
|
-
return
|
|
1258
|
-
|
|
1259
|
-
}, [
|
|
1260
|
-
/* @__PURE__ */
|
|
1261
|
-
|
|
2513
|
+
return dt(() => g(), _ ? 1e3 : null), be(() => {
|
|
2514
|
+
g();
|
|
2515
|
+
}, [g]), /* @__PURE__ */ a.jsxs(Er, { children: [
|
|
2516
|
+
/* @__PURE__ */ a.jsx(
|
|
2517
|
+
ft,
|
|
1262
2518
|
{
|
|
1263
2519
|
ref: e,
|
|
1264
|
-
value: [
|
|
1265
|
-
onPointerLeave:
|
|
1266
|
-
onPointerDown:
|
|
1267
|
-
onPointerMove:
|
|
1268
|
-
onValueChange:
|
|
1269
|
-
onValueCommit:
|
|
2520
|
+
value: [A],
|
|
2521
|
+
onPointerLeave: te,
|
|
2522
|
+
onPointerDown: te,
|
|
2523
|
+
onPointerMove: ce,
|
|
2524
|
+
onValueChange: p,
|
|
2525
|
+
onValueCommit: U,
|
|
1270
2526
|
step: 0.1
|
|
1271
2527
|
}
|
|
1272
2528
|
),
|
|
1273
|
-
/* @__PURE__ */
|
|
2529
|
+
/* @__PURE__ */ a.jsx(Tr, { ref: r, $isVisible: l, children: /* @__PURE__ */ a.jsx(Pr, { children: Be(u) }) })
|
|
1274
2530
|
] });
|
|
1275
2531
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return /* @__PURE__ */
|
|
2532
|
+
function Ar({ children: e }) {
|
|
2533
|
+
return /* @__PURE__ */ a.jsx(No, { children: e });
|
|
1278
2534
|
}
|
|
1279
|
-
function
|
|
2535
|
+
function Go({
|
|
1280
2536
|
children: e,
|
|
1281
|
-
startDate:
|
|
1282
|
-
endDate:
|
|
2537
|
+
startDate: r,
|
|
2538
|
+
endDate: t
|
|
1283
2539
|
}) {
|
|
1284
|
-
return /* @__PURE__ */
|
|
2540
|
+
return /* @__PURE__ */ a.jsx(Tn, { startDate: r, endDate: t, children: /* @__PURE__ */ a.jsx(Ar, { children: e }) });
|
|
1285
2541
|
}
|
|
1286
|
-
const
|
|
2542
|
+
const jr = Y.div`
|
|
1287
2543
|
display: flex;
|
|
1288
2544
|
align-items: center;
|
|
1289
|
-
`,
|
|
2545
|
+
`, Lr = Y.p`
|
|
1290
2546
|
margin: 0;
|
|
1291
2547
|
padding: 0;
|
|
1292
2548
|
font-variant-numeric: tabular-nums;
|
|
@@ -1294,11 +2550,11 @@ const jt = b.div`
|
|
|
1294
2550
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1295
2551
|
"Helvetica Neue", Arial, sans-serif;
|
|
1296
2552
|
font-weight: 500;
|
|
1297
|
-
`,
|
|
2553
|
+
`, Ir = Y(Lr)`
|
|
1298
2554
|
margin-right: 0.5rem;
|
|
1299
|
-
`,
|
|
2555
|
+
`, Or = Y(Lr)`
|
|
1300
2556
|
margin-left: 0.5rem;
|
|
1301
|
-
`,
|
|
2557
|
+
`, Dr = Y.p`
|
|
1302
2558
|
margin: 0;
|
|
1303
2559
|
padding: 0;
|
|
1304
2560
|
font-size: 0.8125rem;
|
|
@@ -1310,69 +2566,69 @@ const jt = b.div`
|
|
|
1310
2566
|
content: "/";
|
|
1311
2567
|
}
|
|
1312
2568
|
`;
|
|
1313
|
-
function
|
|
1314
|
-
const [e,
|
|
1315
|
-
|
|
1316
|
-
}, [
|
|
1317
|
-
return
|
|
1318
|
-
|
|
1319
|
-
}, [
|
|
1320
|
-
/* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
2569
|
+
function Xo() {
|
|
2570
|
+
const [e, r] = ye(0), [t, n] = ye(0), i = b((f) => f.isPlaying), c = me((f) => f.delay), l = me((f) => f.startTime), d = me((f) => f.endTime), u = he(() => {
|
|
2571
|
+
r(kr(l, c)), n(_r(l, d));
|
|
2572
|
+
}, [c, d, l]);
|
|
2573
|
+
return dt(() => u(), i ? 1e3 : null), be(() => {
|
|
2574
|
+
u();
|
|
2575
|
+
}, [u]), c ? /* @__PURE__ */ a.jsxs(jr, { children: [
|
|
2576
|
+
/* @__PURE__ */ a.jsx(Ir, { children: Be(e) }),
|
|
2577
|
+
/* @__PURE__ */ a.jsx(Dr, {}),
|
|
2578
|
+
/* @__PURE__ */ a.jsx(Or, { children: Be(t) })
|
|
1323
2579
|
] }) : null;
|
|
1324
2580
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return /* @__PURE__ */
|
|
2581
|
+
function Jo() {
|
|
2582
|
+
return /* @__PURE__ */ a.jsx(
|
|
1327
2583
|
"svg",
|
|
1328
2584
|
{
|
|
1329
2585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1330
2586
|
viewBox: "0 0 24 24",
|
|
1331
2587
|
fill: "currentColor",
|
|
1332
|
-
children: /* @__PURE__ */
|
|
2588
|
+
children: /* @__PURE__ */ a.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" })
|
|
1333
2589
|
}
|
|
1334
2590
|
);
|
|
1335
2591
|
}
|
|
1336
|
-
function
|
|
1337
|
-
const e =
|
|
1338
|
-
return /* @__PURE__ */
|
|
1339
|
-
}
|
|
1340
|
-
function
|
|
1341
|
-
const
|
|
1342
|
-
(
|
|
1343
|
-
if (
|
|
1344
|
-
const
|
|
1345
|
-
...
|
|
1346
|
-
selected:
|
|
2592
|
+
function Ko() {
|
|
2593
|
+
const e = me((n) => n.startTime), r = me((n) => n.setDelay), t = () => r(Rr(e));
|
|
2594
|
+
return /* @__PURE__ */ a.jsx(Ie, { onClick: t, children: /* @__PURE__ */ a.jsx(Jo, {}) });
|
|
2595
|
+
}
|
|
2596
|
+
function Qo({ url: e, isLive: r }) {
|
|
2597
|
+
const t = ve(null), n = b((R) => R.level), i = b((R) => R.levels), c = b((R) => R.setLevel), l = b((R) => R.setLevels), d = b((R) => R.techRef), u = he(
|
|
2598
|
+
(R) => {
|
|
2599
|
+
if (t.current && (t.current.nextLevel = R, c(null), i)) {
|
|
2600
|
+
const E = i.map((k) => ({
|
|
2601
|
+
...k,
|
|
2602
|
+
selected: k.value === R
|
|
1347
2603
|
}));
|
|
1348
|
-
|
|
2604
|
+
l(E);
|
|
1349
2605
|
}
|
|
1350
2606
|
},
|
|
1351
|
-
[
|
|
1352
|
-
),
|
|
1353
|
-
|
|
1354
|
-
}, [e]),
|
|
1355
|
-
if (!
|
|
2607
|
+
[i, c, l, t]
|
|
2608
|
+
), f = he(() => {
|
|
2609
|
+
t.current && (console.log("[Player][Event]", "MEDIA_ATTACHED"), t.current.loadSource(e));
|
|
2610
|
+
}, [e]), v = he(() => {
|
|
2611
|
+
if (!t.current) return;
|
|
1356
2612
|
console.log("[Player][Event]", "MANIFEST_LOADED");
|
|
1357
|
-
const
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
levels:
|
|
1361
|
-
const { bitrate:
|
|
2613
|
+
const R = t.current.levels, E = t.current.currentLevel, k = t.current.autoLevelEnabled;
|
|
2614
|
+
l(
|
|
2615
|
+
qo({
|
|
2616
|
+
levels: R.map((_, j) => {
|
|
2617
|
+
const { bitrate: x, height: g, width: A } = _;
|
|
1362
2618
|
return {
|
|
1363
|
-
bitrate:
|
|
1364
|
-
height:
|
|
1365
|
-
index:
|
|
1366
|
-
width:
|
|
2619
|
+
bitrate: x,
|
|
2620
|
+
height: g,
|
|
2621
|
+
index: j,
|
|
2622
|
+
width: A
|
|
1367
2623
|
};
|
|
1368
2624
|
}),
|
|
1369
|
-
level:
|
|
1370
|
-
isAuto:
|
|
2625
|
+
level: E,
|
|
2626
|
+
isAuto: k
|
|
1371
2627
|
})
|
|
1372
2628
|
);
|
|
1373
|
-
}, [
|
|
1374
|
-
if (!
|
|
1375
|
-
const
|
|
2629
|
+
}, [l]), w = he(() => {
|
|
2630
|
+
if (!d.current) return;
|
|
2631
|
+
const k = r ? {
|
|
1376
2632
|
backBufferLength: 10,
|
|
1377
2633
|
startLevel: -1
|
|
1378
2634
|
} : {
|
|
@@ -1380,52 +2636,52 @@ function cr({ url: e, isLive: n }) {
|
|
|
1380
2636
|
startLevel: -1
|
|
1381
2637
|
};
|
|
1382
2638
|
try {
|
|
1383
|
-
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(
|
|
1384
|
-
} catch (
|
|
1385
|
-
throw new Error(`Error initializing Hls: ${
|
|
1386
|
-
}
|
|
1387
|
-
}, [
|
|
1388
|
-
|
|
1389
|
-
}, [
|
|
1390
|
-
return
|
|
1391
|
-
|
|
1392
|
-
}, [
|
|
1393
|
-
}
|
|
1394
|
-
function
|
|
1395
|
-
const
|
|
1396
|
-
onDurationChange:
|
|
1397
|
-
onSeeked:
|
|
1398
|
-
onSeeking:
|
|
1399
|
-
onTimeUpdate:
|
|
1400
|
-
},
|
|
1401
|
-
(!
|
|
1402
|
-
},
|
|
1403
|
-
return /* @__PURE__ */
|
|
1404
|
-
/* @__PURE__ */
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
|
|
2639
|
+
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(k)), console.log("[Player] Version", De.version), t.current = new De(k), t.current.attachMedia(d.current), t.current.on(De.Events.MEDIA_ATTACHED, f), t.current.on(De.Events.MANIFEST_LOADED, v);
|
|
2640
|
+
} catch (_) {
|
|
2641
|
+
throw new Error(`Error initializing Hls: ${_}`);
|
|
2642
|
+
}
|
|
2643
|
+
}, [v, f, r, d, e]), L = he(() => {
|
|
2644
|
+
t.current && (t.current.off(De.Events.MEDIA_ATTACHED, f), t.current.off(De.Events.MANIFEST_LOADED, v), t.current.destroy(), t.current = null);
|
|
2645
|
+
}, [v, f]);
|
|
2646
|
+
return be(() => {
|
|
2647
|
+
n !== null && u(n);
|
|
2648
|
+
}, [n, u]), be(() => (De.isSupported() && w(), L), [L, w]), null;
|
|
2649
|
+
}
|
|
2650
|
+
function Mr({ url: e, isLive: r, isMuted: t = !1 }) {
|
|
2651
|
+
const n = b((g) => g.handleDurationChange), i = b((g) => g.handleEnd), c = b((g) => g.handleLoadedMetadata), l = b((g) => g.handleLoadStart), d = b((g) => g.handlePause), u = b((g) => g.handlePlay), f = b((g) => g.handlePlaying), v = b((g) => g.handleSeeked), w = b((g) => g.handleSeeking), L = b((g) => g.handleTimeUpdate), R = b((g) => g.handleWaiting), E = b((g) => g.techRef), k = ve(null), _ = () => r ? {} : {
|
|
2652
|
+
onDurationChange: n,
|
|
2653
|
+
onSeeked: v,
|
|
2654
|
+
onSeeking: w,
|
|
2655
|
+
onTimeUpdate: j
|
|
2656
|
+
}, j = () => {
|
|
2657
|
+
(!k.current || Date.now() - k.current >= 1e3) && (L(), k.current = Date.now());
|
|
2658
|
+
}, x = _();
|
|
2659
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2660
|
+
/* @__PURE__ */ a.jsx(Qo, { isLive: r, url: e }),
|
|
2661
|
+
/* @__PURE__ */ a.jsx(
|
|
2662
|
+
ei,
|
|
1407
2663
|
{
|
|
1408
|
-
ref:
|
|
2664
|
+
ref: E,
|
|
1409
2665
|
playsInline: !0,
|
|
1410
2666
|
autoPlay: !0,
|
|
1411
2667
|
controls: !1,
|
|
1412
|
-
muted:
|
|
2668
|
+
muted: t,
|
|
1413
2669
|
preload: "auto",
|
|
1414
2670
|
crossOrigin: "anonymous",
|
|
1415
|
-
onEnded:
|
|
1416
|
-
onLoadedMetadata:
|
|
1417
|
-
onLoadStart:
|
|
1418
|
-
onPause:
|
|
1419
|
-
onPlay:
|
|
1420
|
-
onPlaying:
|
|
1421
|
-
onWaiting:
|
|
2671
|
+
onEnded: i,
|
|
2672
|
+
onLoadedMetadata: c,
|
|
2673
|
+
onLoadStart: l,
|
|
2674
|
+
onPause: d,
|
|
2675
|
+
onPlay: u,
|
|
2676
|
+
onPlaying: f,
|
|
2677
|
+
onWaiting: R,
|
|
1422
2678
|
tabIndex: -1,
|
|
1423
|
-
...
|
|
2679
|
+
...x
|
|
1424
2680
|
}
|
|
1425
2681
|
)
|
|
1426
2682
|
] });
|
|
1427
2683
|
}
|
|
1428
|
-
const
|
|
2684
|
+
const ei = Y.video`
|
|
1429
2685
|
position: relative;
|
|
1430
2686
|
width: 100%;
|
|
1431
2687
|
height: 100%;
|
|
@@ -1434,20 +2690,20 @@ const ur = b.video`
|
|
|
1434
2690
|
pointer-events: none;
|
|
1435
2691
|
}
|
|
1436
2692
|
`;
|
|
1437
|
-
function
|
|
1438
|
-
const [
|
|
1439
|
-
|
|
1440
|
-
|
|
2693
|
+
function ti({ url: e }) {
|
|
2694
|
+
const [r, t] = ye(null), n = me((c) => c.delay), i = he(async () => {
|
|
2695
|
+
t(
|
|
2696
|
+
n ? e.replace(
|
|
1441
2697
|
"playlist.m3u8",
|
|
1442
|
-
`playlist_fmp4_dvr_timeshift-${
|
|
2698
|
+
`playlist_fmp4_dvr_timeshift-${n}.m3u8`
|
|
1443
2699
|
) : e
|
|
1444
2700
|
);
|
|
1445
|
-
}, [
|
|
1446
|
-
return
|
|
1447
|
-
|
|
1448
|
-
}, [
|
|
2701
|
+
}, [n, e]);
|
|
2702
|
+
return be(() => {
|
|
2703
|
+
i();
|
|
2704
|
+
}, [i]), r ? /* @__PURE__ */ a.jsx(Mr, { url: r, isLive: !0 }) : null;
|
|
1449
2705
|
}
|
|
1450
|
-
const
|
|
2706
|
+
const Fr = Y.div`
|
|
1451
2707
|
position: absolute;
|
|
1452
2708
|
top: 0;
|
|
1453
2709
|
left: 0;
|
|
@@ -1456,7 +2712,7 @@ const kt = b.div`
|
|
|
1456
2712
|
color: white;
|
|
1457
2713
|
background: black;
|
|
1458
2714
|
overflow: hidden;
|
|
1459
|
-
`,
|
|
2715
|
+
`, Nr = Y.div`
|
|
1460
2716
|
position: absolute;
|
|
1461
2717
|
left: 0;
|
|
1462
2718
|
width: 100%;
|
|
@@ -1468,7 +2724,7 @@ const kt = b.div`
|
|
|
1468
2724
|
@media (min-width: 768px) {
|
|
1469
2725
|
padding-top: 2rem;
|
|
1470
2726
|
}
|
|
1471
|
-
`,
|
|
2727
|
+
`, Vr = Y.div`
|
|
1472
2728
|
display: flex;
|
|
1473
2729
|
flex-direction: column;
|
|
1474
2730
|
padding-left: 0.5rem;
|
|
@@ -1480,83 +2736,83 @@ const kt = b.div`
|
|
|
1480
2736
|
padding-left: 1rem;
|
|
1481
2737
|
padding-right: 1rem;
|
|
1482
2738
|
}
|
|
1483
|
-
`,
|
|
2739
|
+
`, $r = Y.div`
|
|
1484
2740
|
display: flex;
|
|
1485
2741
|
padding: 0.5rem 0;
|
|
1486
2742
|
width: 100%;
|
|
1487
2743
|
align-items: center;
|
|
1488
|
-
`,
|
|
2744
|
+
`, Hr = Y.div`
|
|
1489
2745
|
display: flex;
|
|
1490
2746
|
flex: 1;
|
|
1491
2747
|
align-items: center;
|
|
1492
2748
|
gap: 0.5rem;
|
|
1493
|
-
`,
|
|
2749
|
+
`, zr = Y(Hr)`
|
|
1494
2750
|
justify-content: flex-start;
|
|
1495
|
-
`,
|
|
2751
|
+
`, Yr = Y(Hr)`
|
|
1496
2752
|
justify-content: flex-end;
|
|
1497
2753
|
`;
|
|
1498
|
-
function
|
|
1499
|
-
return /* @__PURE__ */
|
|
2754
|
+
function ri() {
|
|
2755
|
+
return /* @__PURE__ */ a.jsx(
|
|
1500
2756
|
"svg",
|
|
1501
2757
|
{
|
|
1502
2758
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1503
2759
|
viewBox: "0 0 24 24",
|
|
1504
2760
|
fill: "currentColor",
|
|
1505
|
-
children: /* @__PURE__ */
|
|
2761
|
+
children: /* @__PURE__ */ a.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
1506
2762
|
}
|
|
1507
2763
|
);
|
|
1508
2764
|
}
|
|
1509
|
-
function
|
|
1510
|
-
return /* @__PURE__ */
|
|
2765
|
+
function ni() {
|
|
2766
|
+
return /* @__PURE__ */ a.jsx(
|
|
1511
2767
|
"svg",
|
|
1512
2768
|
{
|
|
1513
2769
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1514
2770
|
viewBox: "0 0 24 24",
|
|
1515
2771
|
fill: "currentColor",
|
|
1516
|
-
children: /* @__PURE__ */
|
|
2772
|
+
children: /* @__PURE__ */ a.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
1517
2773
|
}
|
|
1518
2774
|
);
|
|
1519
2775
|
}
|
|
1520
|
-
function
|
|
1521
|
-
const e =
|
|
1522
|
-
(
|
|
1523
|
-
|
|
2776
|
+
function Br() {
|
|
2777
|
+
const e = b((f) => f.containerRef), r = b((f) => f.exitFullscreen), t = b((f) => f.isFullscreen), n = b((f) => f.requestFullscreen), i = b((f) => f.setIsFullscreen), c = b((f) => f.setIsFullscreenReady), l = b((f) => f.techRef), d = he(
|
|
2778
|
+
(f) => {
|
|
2779
|
+
f.stopPropagation(), i(ko());
|
|
1524
2780
|
},
|
|
1525
|
-
[
|
|
1526
|
-
),
|
|
1527
|
-
|
|
2781
|
+
[i]
|
|
2782
|
+
), u = () => {
|
|
2783
|
+
t ? r() : n();
|
|
1528
2784
|
};
|
|
1529
|
-
return
|
|
1530
|
-
const
|
|
1531
|
-
if (
|
|
1532
|
-
return
|
|
1533
|
-
}, [e,
|
|
1534
|
-
|
|
1535
|
-
}, [
|
|
1536
|
-
}
|
|
1537
|
-
const
|
|
1538
|
-
function
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
}, []),
|
|
1542
|
-
|
|
1543
|
-
}, [
|
|
1544
|
-
return
|
|
1545
|
-
|
|
1546
|
-
}), [
|
|
1547
|
-
const
|
|
1548
|
-
if (!
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
},
|
|
1552
|
-
|
|
2785
|
+
return be(() => {
|
|
2786
|
+
const f = xr ? l.current : e.current;
|
|
2787
|
+
if (f)
|
|
2788
|
+
return jo(f, d);
|
|
2789
|
+
}, [e, d, l]), be(() => {
|
|
2790
|
+
c(!0);
|
|
2791
|
+
}, [c]), /* @__PURE__ */ a.jsx(Ie, { onClick: u, children: t ? /* @__PURE__ */ a.jsx(ni, {}) : /* @__PURE__ */ a.jsx(ri, {}) });
|
|
2792
|
+
}
|
|
2793
|
+
const oi = 5 * 1e3;
|
|
2794
|
+
function Ur({ children: e }) {
|
|
2795
|
+
const r = ve(null), [t, n] = ye(!1), i = ve(null), l = b((f) => f.idleLocks).size, d = he(() => {
|
|
2796
|
+
i.current !== null && (window.clearTimeout(i.current), i.current = null);
|
|
2797
|
+
}, []), u = he(() => {
|
|
2798
|
+
d(), i.current = window.setTimeout(() => n(!0), oi);
|
|
2799
|
+
}, [d]);
|
|
2800
|
+
return be(() => (n(!1), u(), () => {
|
|
2801
|
+
d();
|
|
2802
|
+
}), [d, u]), be(() => {
|
|
2803
|
+
const f = r.current;
|
|
2804
|
+
if (!f) return;
|
|
2805
|
+
const v = (L) => {
|
|
2806
|
+
t && (L.stopPropagation(), n(!1), u());
|
|
2807
|
+
}, w = () => {
|
|
2808
|
+
t && n(!1), u();
|
|
1553
2809
|
};
|
|
1554
|
-
return
|
|
1555
|
-
|
|
2810
|
+
return f.addEventListener("click", v), f.addEventListener("mousemove", w), () => {
|
|
2811
|
+
f.removeEventListener("click", v), f.removeEventListener("mousemove", w);
|
|
1556
2812
|
};
|
|
1557
|
-
}, [
|
|
2813
|
+
}, [r, t, n, u]), /* @__PURE__ */ a.jsx(ii, { ref: r, $isIdle: t && !l, children: e });
|
|
1558
2814
|
}
|
|
1559
|
-
const
|
|
2815
|
+
const ii = Y.div`
|
|
1560
2816
|
position: absolute;
|
|
1561
2817
|
top: 0;
|
|
1562
2818
|
left: 0;
|
|
@@ -1566,38 +2822,38 @@ const pr = b.div`
|
|
|
1566
2822
|
cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
|
|
1567
2823
|
opacity: ${({ $isIdle: e }) => e ? 0 : 1};
|
|
1568
2824
|
`;
|
|
1569
|
-
function
|
|
1570
|
-
return /* @__PURE__ */
|
|
2825
|
+
function ai(e) {
|
|
2826
|
+
return /* @__PURE__ */ a.jsx(ci, { ...e });
|
|
1571
2827
|
}
|
|
1572
|
-
const
|
|
2828
|
+
const si = go`
|
|
1573
2829
|
from {
|
|
1574
2830
|
transform: rotate(0deg);
|
|
1575
2831
|
}
|
|
1576
2832
|
to {
|
|
1577
2833
|
transform: rotate(360deg);
|
|
1578
2834
|
}
|
|
1579
|
-
`,
|
|
2835
|
+
`, ci = Y.div`
|
|
1580
2836
|
width: 1.5rem;
|
|
1581
2837
|
height: 1.5rem;
|
|
1582
2838
|
border: 2px solid white;
|
|
1583
2839
|
border-bottom-color: transparent;
|
|
1584
2840
|
border-radius: 50%;
|
|
1585
|
-
animation: ${
|
|
2841
|
+
animation: ${si} 1s linear infinite;
|
|
1586
2842
|
`;
|
|
1587
|
-
function
|
|
1588
|
-
const [
|
|
1589
|
-
return
|
|
1590
|
-
const
|
|
2843
|
+
function li(e, r = 500) {
|
|
2844
|
+
const [t, n] = ye(e);
|
|
2845
|
+
return be(() => {
|
|
2846
|
+
const i = window.setTimeout(() => n(e), r);
|
|
1591
2847
|
return () => {
|
|
1592
|
-
window.clearTimeout(
|
|
2848
|
+
window.clearTimeout(i);
|
|
1593
2849
|
};
|
|
1594
|
-
}, [e,
|
|
2850
|
+
}, [e, r]), t;
|
|
1595
2851
|
}
|
|
1596
|
-
function
|
|
1597
|
-
const
|
|
1598
|
-
return
|
|
2852
|
+
function Wr({ style: e, ...r }) {
|
|
2853
|
+
const t = b((i) => i.isLoading);
|
|
2854
|
+
return li(t, 100) ? /* @__PURE__ */ a.jsx(ui, { style: e, ...r, children: /* @__PURE__ */ a.jsx(ai, {}) }) : null;
|
|
1599
2855
|
}
|
|
1600
|
-
const
|
|
2856
|
+
const ui = Y.div`
|
|
1601
2857
|
pointer-events: none;
|
|
1602
2858
|
position: absolute;
|
|
1603
2859
|
top: 0;
|
|
@@ -1610,43 +2866,43 @@ const wr = b.div`
|
|
|
1610
2866
|
align-items: center;
|
|
1611
2867
|
justify-content: center;
|
|
1612
2868
|
`;
|
|
1613
|
-
function
|
|
1614
|
-
return /* @__PURE__ */
|
|
2869
|
+
function di() {
|
|
2870
|
+
return /* @__PURE__ */ a.jsx(
|
|
1615
2871
|
"svg",
|
|
1616
2872
|
{
|
|
1617
2873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1618
2874
|
viewBox: "0 0 24 24",
|
|
1619
2875
|
fill: "currentColor",
|
|
1620
|
-
children: /* @__PURE__ */
|
|
2876
|
+
children: /* @__PURE__ */ a.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" })
|
|
1621
2877
|
}
|
|
1622
2878
|
);
|
|
1623
2879
|
}
|
|
1624
|
-
function
|
|
1625
|
-
return /* @__PURE__ */
|
|
2880
|
+
function fi() {
|
|
2881
|
+
return /* @__PURE__ */ a.jsx(
|
|
1626
2882
|
"svg",
|
|
1627
2883
|
{
|
|
1628
2884
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1629
2885
|
viewBox: "0 0 24 24",
|
|
1630
2886
|
fill: "currentColor",
|
|
1631
|
-
children: /* @__PURE__ */
|
|
2887
|
+
children: /* @__PURE__ */ a.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" })
|
|
1632
2888
|
}
|
|
1633
2889
|
);
|
|
1634
2890
|
}
|
|
1635
|
-
const
|
|
1636
|
-
|
|
2891
|
+
const pi = Ke.Root, hi = Ke.Trigger, mi = Ke.Portal, qr = lt(({ sideOffset: e = 4, ...r }, t) => /* @__PURE__ */ a.jsx(
|
|
2892
|
+
vi,
|
|
1637
2893
|
{
|
|
1638
|
-
ref:
|
|
2894
|
+
ref: t,
|
|
1639
2895
|
sideOffset: e,
|
|
1640
|
-
onCloseAutoFocus: (
|
|
1641
|
-
|
|
2896
|
+
onCloseAutoFocus: (n) => {
|
|
2897
|
+
n.preventDefault();
|
|
1642
2898
|
},
|
|
1643
|
-
...
|
|
2899
|
+
...r
|
|
1644
2900
|
}
|
|
1645
2901
|
));
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1648
|
-
|
|
1649
|
-
const
|
|
2902
|
+
qr.displayName = "PlayerDropdownMenuContent";
|
|
2903
|
+
const Zr = lt((e, r) => /* @__PURE__ */ a.jsx(gi, { ref: r, ...e }));
|
|
2904
|
+
Zr.displayName = "PlayerDropdownMenuItem";
|
|
2905
|
+
const vi = Y(Ke.Content).withConfig({
|
|
1650
2906
|
shouldForwardProp: (e) => e !== "ref"
|
|
1651
2907
|
})`
|
|
1652
2908
|
padding: 0.25rem;
|
|
@@ -1723,7 +2979,7 @@ const Sr = b(ce.Content).withConfig({
|
|
|
1723
2979
|
transform: translateX(0);
|
|
1724
2980
|
}
|
|
1725
2981
|
}
|
|
1726
|
-
`,
|
|
2982
|
+
`, gi = Y(Ke.Item)`
|
|
1727
2983
|
position: relative;
|
|
1728
2984
|
display: flex;
|
|
1729
2985
|
align-items: center;
|
|
@@ -1760,87 +3016,87 @@ const Sr = b(ce.Content).withConfig({
|
|
|
1760
3016
|
color: rgba(255, 255, 255, 0.5);
|
|
1761
3017
|
pointer-events: none;
|
|
1762
3018
|
}
|
|
1763
|
-
`,
|
|
1764
|
-
function
|
|
1765
|
-
const [e,
|
|
1766
|
-
(
|
|
1767
|
-
|
|
3019
|
+
`, tr = "settings";
|
|
3020
|
+
function Gr() {
|
|
3021
|
+
const [e, r] = ye(!1), t = b((u) => u.containerRef), n = b((u) => u.addIdleLock), i = b((u) => u.removeIdleLock), c = b((u) => u.levels), l = b((u) => u.setLevel), d = he(
|
|
3022
|
+
(u) => {
|
|
3023
|
+
r(u), u ? n(tr) : i(tr);
|
|
1768
3024
|
},
|
|
1769
|
-
[
|
|
3025
|
+
[n, i]
|
|
1770
3026
|
);
|
|
1771
|
-
return /* @__PURE__ */
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1774
|
-
|
|
3027
|
+
return /* @__PURE__ */ a.jsxs(pi, { open: e, onOpenChange: d, children: [
|
|
3028
|
+
/* @__PURE__ */ a.jsx(hi, { asChild: !0, children: /* @__PURE__ */ a.jsx(Ie, { children: /* @__PURE__ */ a.jsx(fi, {}) }) }),
|
|
3029
|
+
/* @__PURE__ */ a.jsx(mi, { container: t.current, children: /* @__PURE__ */ a.jsx(qr, { side: "top", align: "end", children: c?.map((u) => /* @__PURE__ */ a.jsxs(
|
|
3030
|
+
Zr,
|
|
1775
3031
|
{
|
|
1776
|
-
onClick: () =>
|
|
3032
|
+
onClick: () => l(u.value),
|
|
1777
3033
|
children: [
|
|
1778
|
-
|
|
1779
|
-
|
|
3034
|
+
u.label,
|
|
3035
|
+
u.selected && /* @__PURE__ */ a.jsx(di, {})
|
|
1780
3036
|
]
|
|
1781
3037
|
},
|
|
1782
|
-
|
|
3038
|
+
u.sid
|
|
1783
3039
|
)) }) })
|
|
1784
3040
|
] });
|
|
1785
3041
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return /* @__PURE__ */
|
|
3042
|
+
function yi() {
|
|
3043
|
+
return /* @__PURE__ */ a.jsx(
|
|
1788
3044
|
"svg",
|
|
1789
3045
|
{
|
|
1790
3046
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1791
3047
|
viewBox: "0 0 24 24",
|
|
1792
3048
|
fill: "currentColor",
|
|
1793
|
-
children: /* @__PURE__ */
|
|
3049
|
+
children: /* @__PURE__ */ a.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" })
|
|
1794
3050
|
}
|
|
1795
3051
|
);
|
|
1796
3052
|
}
|
|
1797
|
-
function
|
|
1798
|
-
return /* @__PURE__ */
|
|
3053
|
+
function wi() {
|
|
3054
|
+
return /* @__PURE__ */ a.jsx(
|
|
1799
3055
|
"svg",
|
|
1800
3056
|
{
|
|
1801
3057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1802
3058
|
viewBox: "0 0 24 24",
|
|
1803
3059
|
fill: "currentColor",
|
|
1804
|
-
children: /* @__PURE__ */
|
|
3060
|
+
children: /* @__PURE__ */ a.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" })
|
|
1805
3061
|
}
|
|
1806
3062
|
);
|
|
1807
3063
|
}
|
|
1808
|
-
function
|
|
1809
|
-
return /* @__PURE__ */
|
|
3064
|
+
function bi() {
|
|
3065
|
+
return /* @__PURE__ */ a.jsx(
|
|
1810
3066
|
"svg",
|
|
1811
3067
|
{
|
|
1812
3068
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1813
3069
|
viewBox: "0 0 24 24",
|
|
1814
3070
|
fill: "currentColor",
|
|
1815
|
-
children: /* @__PURE__ */
|
|
3071
|
+
children: /* @__PURE__ */ a.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" })
|
|
1816
3072
|
}
|
|
1817
3073
|
);
|
|
1818
3074
|
}
|
|
1819
|
-
const
|
|
1820
|
-
function
|
|
1821
|
-
|
|
1822
|
-
const e =
|
|
1823
|
-
e(
|
|
1824
|
-
},
|
|
1825
|
-
|
|
1826
|
-
},
|
|
1827
|
-
return /* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1830
|
-
|
|
3075
|
+
const rr = "volume";
|
|
3076
|
+
function Xr() {
|
|
3077
|
+
b((d) => d.containerRef);
|
|
3078
|
+
const e = b((d) => d.setVolume), r = b((d) => d.volume), t = b((d) => d.addIdleLock), n = b((d) => d.removeIdleLock), i = (d) => {
|
|
3079
|
+
e(d[0]), t(rr);
|
|
3080
|
+
}, c = () => {
|
|
3081
|
+
n(rr);
|
|
3082
|
+
}, l = () => e(r ? 0 : 100);
|
|
3083
|
+
return /* @__PURE__ */ a.jsxs(xi, { children: [
|
|
3084
|
+
/* @__PURE__ */ a.jsx(Ie, { onClick: l, className: "shrink-0", children: r ? r > 50 ? /* @__PURE__ */ a.jsx(yi, {}) : /* @__PURE__ */ a.jsx(wi, {}) : /* @__PURE__ */ a.jsx(bi, {}) }),
|
|
3085
|
+
/* @__PURE__ */ a.jsx(Jr, { children: /* @__PURE__ */ a.jsx(
|
|
3086
|
+
ft,
|
|
1831
3087
|
{
|
|
1832
|
-
value: [
|
|
1833
|
-
onValueChange:
|
|
1834
|
-
onValueCommit:
|
|
3088
|
+
value: [r],
|
|
3089
|
+
onValueChange: i,
|
|
3090
|
+
onValueCommit: c
|
|
1835
3091
|
}
|
|
1836
3092
|
) })
|
|
1837
3093
|
] });
|
|
1838
3094
|
}
|
|
1839
|
-
const
|
|
3095
|
+
const Jr = Y.div`
|
|
1840
3096
|
width: 0;
|
|
1841
3097
|
opacity: 0;
|
|
1842
3098
|
transition: all 0.2s ease-in-out;
|
|
1843
|
-
`,
|
|
3099
|
+
`, xi = Y.div`
|
|
1844
3100
|
display: flex;
|
|
1845
3101
|
align-items: center;
|
|
1846
3102
|
gap: 0.25rem;
|
|
@@ -1851,49 +3107,49 @@ const Wt = b.div`
|
|
|
1851
3107
|
&:hover {
|
|
1852
3108
|
width: 6rem;
|
|
1853
3109
|
|
|
1854
|
-
${
|
|
3110
|
+
${Jr} {
|
|
1855
3111
|
width: 100%;
|
|
1856
3112
|
opacity: 1;
|
|
1857
3113
|
}
|
|
1858
3114
|
}
|
|
1859
3115
|
}
|
|
1860
3116
|
`;
|
|
1861
|
-
function
|
|
1862
|
-
return /* @__PURE__ */
|
|
1863
|
-
|
|
3117
|
+
function Oi({ url: e, startDate: r, endDate: t, messages: n }) {
|
|
3118
|
+
return /* @__PURE__ */ a.jsx(
|
|
3119
|
+
Go,
|
|
1864
3120
|
{
|
|
1865
|
-
startDate: new Date(
|
|
1866
|
-
endDate: new Date(
|
|
1867
|
-
children: /* @__PURE__ */
|
|
3121
|
+
startDate: new Date(r),
|
|
3122
|
+
endDate: new Date(t),
|
|
3123
|
+
children: /* @__PURE__ */ a.jsx(Si, { url: e, messages: n })
|
|
1868
3124
|
}
|
|
1869
3125
|
);
|
|
1870
3126
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const
|
|
1873
|
-
return /* @__PURE__ */
|
|
1874
|
-
|
|
3127
|
+
function Si({ url: e, messages: r }) {
|
|
3128
|
+
const t = b((n) => n.containerRef);
|
|
3129
|
+
return /* @__PURE__ */ a.jsx(Fr, { ref: t, children: /* @__PURE__ */ a.jsxs(
|
|
3130
|
+
yo,
|
|
1875
3131
|
{
|
|
1876
|
-
eventFinishedMessage:
|
|
1877
|
-
eventNotStartedMessage:
|
|
1878
|
-
eventStartingSoonMessage:
|
|
3132
|
+
eventFinishedMessage: r?.eventFinished,
|
|
3133
|
+
eventNotStartedMessage: r?.eventNotStarted,
|
|
3134
|
+
eventStartingSoonMessage: r?.eventStartingSoon,
|
|
1879
3135
|
children: [
|
|
1880
|
-
/* @__PURE__ */
|
|
1881
|
-
/* @__PURE__ */
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
/* @__PURE__ */
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1889
|
-
/* @__PURE__ */
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
3136
|
+
/* @__PURE__ */ a.jsx(ti, { url: e }),
|
|
3137
|
+
/* @__PURE__ */ a.jsx(Wr, {}),
|
|
3138
|
+
/* @__PURE__ */ a.jsxs(Ur, { children: [
|
|
3139
|
+
/* @__PURE__ */ a.jsx(Ho, {}),
|
|
3140
|
+
/* @__PURE__ */ a.jsx(Nr, { children: /* @__PURE__ */ a.jsxs(Vr, { children: [
|
|
3141
|
+
/* @__PURE__ */ a.jsx(Zo, {}),
|
|
3142
|
+
/* @__PURE__ */ a.jsxs($r, { children: [
|
|
3143
|
+
/* @__PURE__ */ a.jsxs(zr, { children: [
|
|
3144
|
+
/* @__PURE__ */ a.jsx(Vo, {}),
|
|
3145
|
+
/* @__PURE__ */ a.jsx(Ko, {}),
|
|
3146
|
+
/* @__PURE__ */ a.jsx(Xr, {}),
|
|
3147
|
+
/* @__PURE__ */ a.jsx(Xo, {})
|
|
1892
3148
|
] }),
|
|
1893
|
-
/* @__PURE__ */
|
|
1894
|
-
/* @__PURE__ */
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
/* @__PURE__ */
|
|
3149
|
+
/* @__PURE__ */ a.jsxs(Yr, { children: [
|
|
3150
|
+
/* @__PURE__ */ a.jsx(Eo, { message: r?.live }),
|
|
3151
|
+
/* @__PURE__ */ a.jsx(Gr, {}),
|
|
3152
|
+
/* @__PURE__ */ a.jsx(Br, {})
|
|
1897
3153
|
] })
|
|
1898
3154
|
] })
|
|
1899
3155
|
] }) })
|
|
@@ -1902,119 +3158,119 @@ function _r({ url: e, messages: n }) {
|
|
|
1902
3158
|
}
|
|
1903
3159
|
) });
|
|
1904
3160
|
}
|
|
1905
|
-
function
|
|
1906
|
-
const e =
|
|
1907
|
-
e ?
|
|
3161
|
+
function Ci() {
|
|
3162
|
+
const e = b((i) => i.isPlaying), r = b((i) => i.pause), t = b((i) => i.play), n = () => {
|
|
3163
|
+
e ? r() : t();
|
|
1908
3164
|
};
|
|
1909
|
-
return /* @__PURE__ */
|
|
3165
|
+
return /* @__PURE__ */ a.jsx(Ie, { onClick: n, children: e ? /* @__PURE__ */ a.jsx(wr, {}) : /* @__PURE__ */ a.jsx(br, {}) });
|
|
1910
3166
|
}
|
|
1911
|
-
function
|
|
1912
|
-
const e =
|
|
1913
|
-
e ?
|
|
3167
|
+
function Ei() {
|
|
3168
|
+
const e = b((i) => i.isPlaying), r = b((i) => i.pause), t = b((i) => i.play), n = () => {
|
|
3169
|
+
e ? r() : t();
|
|
1914
3170
|
};
|
|
1915
|
-
return /* @__PURE__ */
|
|
1916
|
-
}
|
|
1917
|
-
const
|
|
1918
|
-
function
|
|
1919
|
-
const e =
|
|
1920
|
-
(
|
|
1921
|
-
),
|
|
1922
|
-
f
|
|
1923
|
-
},
|
|
1924
|
-
|
|
1925
|
-
},
|
|
1926
|
-
(
|
|
1927
|
-
const
|
|
1928
|
-
if (
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1931
|
-
let
|
|
1932
|
-
|
|
3171
|
+
return /* @__PURE__ */ a.jsx(Cr, { onClick: n });
|
|
3172
|
+
}
|
|
3173
|
+
const nr = "vod-player-progress-bar";
|
|
3174
|
+
function Ti() {
|
|
3175
|
+
const e = ve(null), r = ve(null), [t, n] = ye(!1), [i, c] = ye(-1), [l, d] = ye(-1), u = b((g) => g.currentTime), f = b((g) => g.duration), v = b((g) => g.seek), w = b((g) => g.addIdleLock), L = b((g) => g.removeIdleLock), R = parseFloat(
|
|
3176
|
+
(f ? (l !== -1 ? l : u) / f * 100 : 0).toFixed(1)
|
|
3177
|
+
), E = (g) => {
|
|
3178
|
+
d(f * (g[0] / 100)), w(nr);
|
|
3179
|
+
}, k = () => {
|
|
3180
|
+
l !== -1 && (v(l), d(-1), L(nr));
|
|
3181
|
+
}, _ = () => n(!0), j = () => n(!1), x = he(
|
|
3182
|
+
(g) => {
|
|
3183
|
+
const A = e.current, p = r.current;
|
|
3184
|
+
if (A && p) {
|
|
3185
|
+
const U = ct(A), de = ct(p), te = (g.pageX || g.clientX) - U.left, ce = te / U.width;
|
|
3186
|
+
if (ce < 0) return;
|
|
3187
|
+
let M = te - de.width / 2;
|
|
3188
|
+
M < 0 && (M = 0), M > U.width - de.width && (M = -1), p.style.left = M > -1 ? `${M}px` : "auto", p.style.right = M > -1 ? "auto" : "0px", c(ce * f);
|
|
1933
3189
|
}
|
|
1934
|
-
|
|
3190
|
+
_();
|
|
1935
3191
|
},
|
|
1936
|
-
[
|
|
3192
|
+
[f]
|
|
1937
3193
|
);
|
|
1938
|
-
return /* @__PURE__ */
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
|
|
3194
|
+
return /* @__PURE__ */ a.jsxs(Er, { children: [
|
|
3195
|
+
/* @__PURE__ */ a.jsx(
|
|
3196
|
+
ft,
|
|
1941
3197
|
{
|
|
1942
3198
|
ref: e,
|
|
1943
|
-
value: [
|
|
1944
|
-
onPointerLeave:
|
|
1945
|
-
onPointerDown:
|
|
1946
|
-
onPointerMove:
|
|
1947
|
-
onValueChange:
|
|
1948
|
-
onValueCommit:
|
|
3199
|
+
value: [R],
|
|
3200
|
+
onPointerLeave: j,
|
|
3201
|
+
onPointerDown: j,
|
|
3202
|
+
onPointerMove: x,
|
|
3203
|
+
onValueChange: E,
|
|
3204
|
+
onValueCommit: k,
|
|
1949
3205
|
step: 0.1
|
|
1950
3206
|
}
|
|
1951
3207
|
),
|
|
1952
|
-
/* @__PURE__ */
|
|
3208
|
+
/* @__PURE__ */ a.jsx(Tr, { ref: r, $isVisible: t, children: /* @__PURE__ */ a.jsx(Pr, { children: Be(i) }) })
|
|
1953
3209
|
] });
|
|
1954
3210
|
}
|
|
1955
|
-
function
|
|
1956
|
-
const e =
|
|
1957
|
-
return /* @__PURE__ */
|
|
1958
|
-
/* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
/* @__PURE__ */
|
|
3211
|
+
function Pi() {
|
|
3212
|
+
const e = b((t) => t.currentTime), r = b((t) => t.duration);
|
|
3213
|
+
return /* @__PURE__ */ a.jsxs(jr, { children: [
|
|
3214
|
+
/* @__PURE__ */ a.jsx(Ir, { children: Be(e) }),
|
|
3215
|
+
/* @__PURE__ */ a.jsx(Dr, {}),
|
|
3216
|
+
/* @__PURE__ */ a.jsx(Or, { children: Be(r) })
|
|
1961
3217
|
] });
|
|
1962
3218
|
}
|
|
1963
|
-
const
|
|
1964
|
-
function
|
|
1965
|
-
const
|
|
3219
|
+
const Ri = 60, ki = 95;
|
|
3220
|
+
function _i({ storageKey: e }) {
|
|
3221
|
+
const r = b((v) => v.currentTime), t = b((v) => v.duration), n = b((v) => v.isPlaying), i = b((v) => v.setStartTime), c = ve(!1), l = he(() => {
|
|
1966
3222
|
window.localStorage.setItem(
|
|
1967
3223
|
e,
|
|
1968
3224
|
JSON.stringify({
|
|
1969
|
-
currentTime:
|
|
1970
|
-
duration:
|
|
3225
|
+
currentTime: r,
|
|
3226
|
+
duration: t
|
|
1971
3227
|
})
|
|
1972
3228
|
);
|
|
1973
|
-
}, [
|
|
1974
|
-
const
|
|
1975
|
-
if (
|
|
1976
|
-
const
|
|
3229
|
+
}, [r, t, e]), d = he(() => {
|
|
3230
|
+
const v = window.localStorage.getItem(e);
|
|
3231
|
+
if (v) {
|
|
3232
|
+
const w = JSON.parse(v);
|
|
1977
3233
|
return {
|
|
1978
|
-
startTime:
|
|
1979
|
-
progress:
|
|
3234
|
+
startTime: w.currentTime,
|
|
3235
|
+
progress: w.currentTime / w.duration * 100
|
|
1980
3236
|
};
|
|
1981
3237
|
}
|
|
1982
3238
|
return { startTime: null, progress: null };
|
|
1983
|
-
}, [e]),
|
|
1984
|
-
|
|
1985
|
-
}, [
|
|
1986
|
-
if (
|
|
1987
|
-
const { progress:
|
|
1988
|
-
|
|
1989
|
-
}, [
|
|
1990
|
-
return
|
|
1991
|
-
|
|
1992
|
-
}, [
|
|
3239
|
+
}, [e]), u = he(() => {
|
|
3240
|
+
r < Ri || l();
|
|
3241
|
+
}, [r, l]), f = he(() => {
|
|
3242
|
+
if (c.current) return;
|
|
3243
|
+
const { progress: v, startTime: w } = d();
|
|
3244
|
+
w && v && v < ki && (i(w), c.current = !0);
|
|
3245
|
+
}, [d, i]);
|
|
3246
|
+
return dt(() => u(), n ? 1e3 : null), be(() => {
|
|
3247
|
+
f();
|
|
3248
|
+
}, [f]), null;
|
|
1993
3249
|
}
|
|
1994
|
-
function
|
|
1995
|
-
return /* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
|
|
3250
|
+
function Di({ url: e, watchHistory: r }) {
|
|
3251
|
+
return /* @__PURE__ */ a.jsxs(Ar, { children: [
|
|
3252
|
+
/* @__PURE__ */ a.jsx(Ai, { url: e }),
|
|
3253
|
+
r?.enabled && /* @__PURE__ */ a.jsx(_i, { storageKey: r.storageKey })
|
|
1998
3254
|
] });
|
|
1999
3255
|
}
|
|
2000
|
-
function
|
|
2001
|
-
const
|
|
2002
|
-
return /* @__PURE__ */
|
|
2003
|
-
/* @__PURE__ */
|
|
2004
|
-
/* @__PURE__ */
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
/* @__PURE__ */
|
|
2007
|
-
/* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
3256
|
+
function Ai({ url: e }) {
|
|
3257
|
+
const r = b((t) => t.containerRef);
|
|
3258
|
+
return /* @__PURE__ */ a.jsxs(Fr, { ref: r, children: [
|
|
3259
|
+
/* @__PURE__ */ a.jsx(Mr, { url: e, isLive: !1 }),
|
|
3260
|
+
/* @__PURE__ */ a.jsx(Wr, {}),
|
|
3261
|
+
/* @__PURE__ */ a.jsxs(Ur, { children: [
|
|
3262
|
+
/* @__PURE__ */ a.jsx(Ei, {}),
|
|
3263
|
+
/* @__PURE__ */ a.jsx(Nr, { children: /* @__PURE__ */ a.jsxs(Vr, { children: [
|
|
3264
|
+
/* @__PURE__ */ a.jsx(Ti, {}),
|
|
3265
|
+
/* @__PURE__ */ a.jsxs($r, { children: [
|
|
3266
|
+
/* @__PURE__ */ a.jsxs(zr, { children: [
|
|
3267
|
+
/* @__PURE__ */ a.jsx(Ci, {}),
|
|
3268
|
+
/* @__PURE__ */ a.jsx(Xr, {}),
|
|
3269
|
+
/* @__PURE__ */ a.jsx(Pi, {})
|
|
2014
3270
|
] }),
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
3271
|
+
/* @__PURE__ */ a.jsxs(Yr, { children: [
|
|
3272
|
+
/* @__PURE__ */ a.jsx(Gr, {}),
|
|
3273
|
+
/* @__PURE__ */ a.jsx(Br, {})
|
|
2018
3274
|
] })
|
|
2019
3275
|
] })
|
|
2020
3276
|
] }) })
|
|
@@ -2022,7 +3278,7 @@ function $r({ url: e }) {
|
|
|
2022
3278
|
] });
|
|
2023
3279
|
}
|
|
2024
3280
|
export {
|
|
2025
|
-
|
|
2026
|
-
|
|
3281
|
+
Oi as LivePlayer,
|
|
3282
|
+
Di as VodPlayer
|
|
2027
3283
|
};
|
|
2028
3284
|
//# sourceMappingURL=react-video-player.es.js.map
|