@halibegic/react-video-player 0.0.57 → 0.0.59
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/react-video-player.es.js +1120 -1090
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +10 -10
- package/dist/react-video-player.umd.js.map +1 -1
- package/dist/src/components/player/player-native-hls-engine.d.ts +9 -0
- package/dist/src/utils/device.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Yn = Object.defineProperty, qn = Object.defineProperties;
|
|
2
2
|
var Zn = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Tt = (e, t, n) => t in e ?
|
|
3
|
+
var be = Object.getOwnPropertySymbols;
|
|
4
|
+
var Et = Object.prototype.hasOwnProperty, xt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Tt = (e, t, n) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, F = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Et.call(t, n) && Tt(e, n, t[n]);
|
|
8
|
+
if (be)
|
|
9
|
+
for (var n of be(t))
|
|
10
|
+
xt.call(t, n) && Tt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, he = (e, t) =>
|
|
12
|
+
}, he = (e, t) => qn(e, Zn(t));
|
|
13
13
|
var re = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var r in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var r of
|
|
19
|
-
t.indexOf(r) < 0 &&
|
|
16
|
+
Et.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
17
|
+
if (e != null && be)
|
|
18
|
+
for (var r of be(e))
|
|
19
|
+
t.indexOf(r) < 0 && xt.call(e, r) && (n[r] = e[r]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
import Nt, { useLayoutEffect as Kn, useEffect as
|
|
22
|
+
import Nt, { useLayoutEffect as Kn, useEffect as A, useRef as O, createContext as Mt, useContext as Ft, useState as K, useCallback as V, useMemo as Gn, forwardRef as Ve } from "react";
|
|
23
23
|
import { useStore as Vt, create as At } from "zustand";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
24
|
+
import Xn from "mitt";
|
|
25
|
+
import Q from "hls.js";
|
|
26
26
|
import * as Le from "@radix-ui/react-slider";
|
|
27
|
-
import * as
|
|
27
|
+
import * as Ee from "@radix-ui/react-popover";
|
|
28
28
|
import * as je from "@radix-ui/react-scroll-area";
|
|
29
29
|
function Ot(e) {
|
|
30
30
|
var t = this.constructor;
|
|
@@ -50,29 +50,29 @@ function Ht(e) {
|
|
|
50
50
|
typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
|
|
51
51
|
)
|
|
52
52
|
);
|
|
53
|
-
var
|
|
54
|
-
if (
|
|
55
|
-
var
|
|
56
|
-
function u(
|
|
53
|
+
var s = Array.prototype.slice.call(e);
|
|
54
|
+
if (s.length === 0) return n([]);
|
|
55
|
+
var l = s.length;
|
|
56
|
+
function u(c, d) {
|
|
57
57
|
if (d && (typeof d == "object" || typeof d == "function")) {
|
|
58
|
-
var
|
|
59
|
-
if (typeof
|
|
60
|
-
|
|
58
|
+
var v = d.then;
|
|
59
|
+
if (typeof v == "function") {
|
|
60
|
+
v.call(
|
|
61
61
|
d,
|
|
62
62
|
function(_) {
|
|
63
|
-
u(
|
|
63
|
+
u(c, _);
|
|
64
64
|
},
|
|
65
65
|
function(_) {
|
|
66
|
-
|
|
66
|
+
s[c] = { status: "rejected", reason: _ }, --l === 0 && n(s);
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
s[c] = { status: "fulfilled", value: d }, --l === 0 && n(s);
|
|
73
73
|
}
|
|
74
|
-
for (var i = 0; i <
|
|
75
|
-
u(i,
|
|
74
|
+
for (var i = 0; i < s.length; i++)
|
|
75
|
+
u(i, s[i]);
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
function $t(e, t) {
|
|
@@ -84,14 +84,14 @@ function Ut(e) {
|
|
|
84
84
|
return new t(function(n, r) {
|
|
85
85
|
if (!(e && typeof e.length != "undefined"))
|
|
86
86
|
return r(new TypeError("Promise.any accepts an array"));
|
|
87
|
-
var
|
|
88
|
-
if (
|
|
89
|
-
for (var
|
|
87
|
+
var s = Array.prototype.slice.call(e);
|
|
88
|
+
if (s.length === 0) return r();
|
|
89
|
+
for (var l = [], u = 0; u < s.length; u++)
|
|
90
90
|
try {
|
|
91
|
-
t.resolve(
|
|
92
|
-
|
|
91
|
+
t.resolve(s[u]).then(n).catch(function(i) {
|
|
92
|
+
l.push(i), l.length === s.length && r(
|
|
93
93
|
new $t(
|
|
94
|
-
|
|
94
|
+
l,
|
|
95
95
|
"All promises were rejected"
|
|
96
96
|
)
|
|
97
97
|
);
|
|
@@ -101,13 +101,13 @@ function Ut(e) {
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var Jn = setTimeout;
|
|
105
105
|
function Bt(e) {
|
|
106
106
|
return !!(e && typeof e.length != "undefined");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Qn() {
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function er(e, t) {
|
|
111
111
|
return function() {
|
|
112
112
|
e.apply(t, arguments);
|
|
113
113
|
};
|
|
@@ -134,8 +134,8 @@ function Wt(e, t) {
|
|
|
134
134
|
var r;
|
|
135
135
|
try {
|
|
136
136
|
r = n(e._value);
|
|
137
|
-
} catch (
|
|
138
|
-
_e(t.promise,
|
|
137
|
+
} catch (s) {
|
|
138
|
+
_e(t.promise, s);
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
Ge(t.promise, r);
|
|
@@ -151,7 +151,7 @@ function Ge(e, t) {
|
|
|
151
151
|
e._state = 3, e._value = t, Xe(e);
|
|
152
152
|
return;
|
|
153
153
|
} else if (typeof n == "function") {
|
|
154
|
-
zt(
|
|
154
|
+
zt(er(n, t), e);
|
|
155
155
|
return;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -171,7 +171,7 @@ function Xe(e) {
|
|
|
171
171
|
Wt(e, e._deferreds[t]);
|
|
172
172
|
e._deferreds = null;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function tr(e, t, n) {
|
|
175
175
|
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
176
176
|
}
|
|
177
177
|
function zt(e, t) {
|
|
@@ -194,8 +194,8 @@ $.prototype.catch = function(e) {
|
|
|
194
194
|
return this.then(null, e);
|
|
195
195
|
};
|
|
196
196
|
$.prototype.then = function(e, t) {
|
|
197
|
-
var n = new this.constructor(
|
|
198
|
-
return Wt(this, new
|
|
197
|
+
var n = new this.constructor(Qn);
|
|
198
|
+
return Wt(this, new tr(e, t, n)), n;
|
|
199
199
|
};
|
|
200
200
|
$.prototype.finally = Ot;
|
|
201
201
|
$.all = function(e) {
|
|
@@ -204,29 +204,29 @@ $.all = function(e) {
|
|
|
204
204
|
return n(new TypeError("Promise.all accepts an array"));
|
|
205
205
|
var r = Array.prototype.slice.call(e);
|
|
206
206
|
if (r.length === 0) return t([]);
|
|
207
|
-
var
|
|
208
|
-
function
|
|
207
|
+
var s = r.length;
|
|
208
|
+
function l(i, c) {
|
|
209
209
|
try {
|
|
210
|
-
if (
|
|
211
|
-
var d =
|
|
210
|
+
if (c && (typeof c == "object" || typeof c == "function")) {
|
|
211
|
+
var d = c.then;
|
|
212
212
|
if (typeof d == "function") {
|
|
213
213
|
d.call(
|
|
214
|
-
|
|
215
|
-
function(
|
|
216
|
-
|
|
214
|
+
c,
|
|
215
|
+
function(v) {
|
|
216
|
+
l(i, v);
|
|
217
217
|
},
|
|
218
218
|
n
|
|
219
219
|
);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
r[i] =
|
|
224
|
-
} catch (
|
|
225
|
-
n(
|
|
223
|
+
r[i] = c, --s === 0 && t(r);
|
|
224
|
+
} catch (v) {
|
|
225
|
+
n(v);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
for (var u = 0; u < r.length; u++)
|
|
229
|
-
|
|
229
|
+
l(u, r[u]);
|
|
230
230
|
});
|
|
231
231
|
};
|
|
232
232
|
$.any = Ut;
|
|
@@ -245,7 +245,7 @@ $.race = function(e) {
|
|
|
245
245
|
return new $(function(t, n) {
|
|
246
246
|
if (!Bt(e))
|
|
247
247
|
return n(new TypeError("Promise.race accepts an array"));
|
|
248
|
-
for (var r = 0,
|
|
248
|
+
for (var r = 0, s = e.length; r < s; r++)
|
|
249
249
|
$.resolve(e[r]).then(t, n);
|
|
250
250
|
});
|
|
251
251
|
};
|
|
@@ -253,12 +253,12 @@ $._immediateFn = // @ts-ignore
|
|
|
253
253
|
typeof setImmediate == "function" && function(e) {
|
|
254
254
|
setImmediate(e);
|
|
255
255
|
} || function(e) {
|
|
256
|
-
|
|
256
|
+
Jn(e, 0);
|
|
257
257
|
};
|
|
258
258
|
$._unhandledRejectionFn = function(t) {
|
|
259
259
|
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
|
|
260
260
|
};
|
|
261
|
-
var
|
|
261
|
+
var ce = (function() {
|
|
262
262
|
if (typeof self != "undefined")
|
|
263
263
|
return self;
|
|
264
264
|
if (typeof window != "undefined")
|
|
@@ -267,74 +267,74 @@ var le = (function() {
|
|
|
267
267
|
return global;
|
|
268
268
|
throw new Error("unable to locate global object");
|
|
269
269
|
})();
|
|
270
|
-
typeof
|
|
270
|
+
typeof ce.Promise != "function" ? ce.Promise = $ : (ce.Promise.prototype.finally || (ce.Promise.prototype.finally = Ot), ce.Promise.allSettled || (ce.Promise.allSettled = Ht), ce.Promise.any || (ce.Promise.any = Ut));
|
|
271
271
|
var Ie = { exports: {} }, ge = {};
|
|
272
|
-
var
|
|
273
|
-
function
|
|
274
|
-
if (
|
|
275
|
-
|
|
276
|
-
var e = Nt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty,
|
|
277
|
-
function u(i,
|
|
278
|
-
var
|
|
279
|
-
d !== void 0 && (
|
|
280
|
-
for (
|
|
281
|
-
if (i && i.defaultProps) for (
|
|
282
|
-
return { $$typeof: t, type: i, key:
|
|
272
|
+
var Rt;
|
|
273
|
+
function nr() {
|
|
274
|
+
if (Rt) return ge;
|
|
275
|
+
Rt = 1;
|
|
276
|
+
var e = Nt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
277
|
+
function u(i, c, d) {
|
|
278
|
+
var v, _ = {}, p = null, D = null;
|
|
279
|
+
d !== void 0 && (p = "" + d), c.key !== void 0 && (p = "" + c.key), c.ref !== void 0 && (D = c.ref);
|
|
280
|
+
for (v in c) r.call(c, v) && !l.hasOwnProperty(v) && (_[v] = c[v]);
|
|
281
|
+
if (i && i.defaultProps) for (v in c = i.defaultProps, c) _[v] === void 0 && (_[v] = c[v]);
|
|
282
|
+
return { $$typeof: t, type: i, key: p, ref: D, props: _, _owner: s.current };
|
|
283
283
|
}
|
|
284
284
|
return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
|
|
285
285
|
}
|
|
286
286
|
var we = {};
|
|
287
|
-
var
|
|
288
|
-
function
|
|
289
|
-
return
|
|
290
|
-
var e = Nt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"),
|
|
291
|
-
function
|
|
287
|
+
var Ct;
|
|
288
|
+
function rr() {
|
|
289
|
+
return Ct || (Ct = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
290
|
+
var e = Nt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), S = Symbol.iterator, C = "@@iterator";
|
|
291
|
+
function b(o) {
|
|
292
292
|
if (o === null || typeof o != "object")
|
|
293
293
|
return null;
|
|
294
|
-
var h =
|
|
294
|
+
var h = S && o[S] || o[C];
|
|
295
295
|
return typeof h == "function" ? h : null;
|
|
296
296
|
}
|
|
297
|
-
var
|
|
298
|
-
function
|
|
297
|
+
var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
298
|
+
function I(o) {
|
|
299
299
|
{
|
|
300
|
-
for (var h = arguments.length,
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), x = 1; x < h; x++)
|
|
301
|
+
m[x - 1] = arguments[x];
|
|
302
|
+
j("error", o, m);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function j(o, h, m) {
|
|
306
306
|
{
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
var
|
|
310
|
-
return String(
|
|
307
|
+
var x = T.ReactDebugCurrentFrame, k = x.getStackAddendum();
|
|
308
|
+
k !== "" && (h += "%s", m = m.concat([k]));
|
|
309
|
+
var M = m.map(function(L) {
|
|
310
|
+
return String(L);
|
|
311
311
|
});
|
|
312
|
-
|
|
312
|
+
M.unshift("Warning: " + h), Function.prototype.apply.call(console[o], console, M);
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
function
|
|
318
|
-
return !!(typeof o == "string" || typeof o == "function" || o === r || o ===
|
|
315
|
+
var g = !1, E = !1, y = !1, R = !1, w = !1, z;
|
|
316
|
+
z = Symbol.for("react.module.reference");
|
|
317
|
+
function H(o) {
|
|
318
|
+
return !!(typeof o == "string" || typeof o == "function" || o === r || o === l || w || o === s || o === d || o === v || R || o === D || g || E || y || typeof o == "object" && o !== null && (o.$$typeof === p || o.$$typeof === _ || o.$$typeof === u || o.$$typeof === i || o.$$typeof === c || // This needs to include all possible module reference object
|
|
319
319
|
// types supported by any Flight configuration anywhere since
|
|
320
320
|
// we don't know which Flight build this will end up being used
|
|
321
321
|
// with.
|
|
322
|
-
o.$$typeof ===
|
|
322
|
+
o.$$typeof === z || o.getModuleId !== void 0));
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
var
|
|
326
|
-
if (
|
|
327
|
-
return
|
|
328
|
-
var
|
|
329
|
-
return
|
|
324
|
+
function N(o, h, m) {
|
|
325
|
+
var x = o.displayName;
|
|
326
|
+
if (x)
|
|
327
|
+
return x;
|
|
328
|
+
var k = h.displayName || h.name || "";
|
|
329
|
+
return k !== "" ? m + "(" + k + ")" : m;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function ee(o) {
|
|
332
332
|
return o.displayName || "Context";
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function G(o) {
|
|
335
335
|
if (o == null)
|
|
336
336
|
return null;
|
|
337
|
-
if (typeof o.tag == "number" &&
|
|
337
|
+
if (typeof o.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
|
|
338
338
|
return o.displayName || o.name || null;
|
|
339
339
|
if (typeof o == "string")
|
|
340
340
|
return o;
|
|
@@ -343,47 +343,47 @@ function nr() {
|
|
|
343
343
|
return "Fragment";
|
|
344
344
|
case n:
|
|
345
345
|
return "Portal";
|
|
346
|
-
case
|
|
346
|
+
case l:
|
|
347
347
|
return "Profiler";
|
|
348
|
-
case
|
|
348
|
+
case s:
|
|
349
349
|
return "StrictMode";
|
|
350
350
|
case d:
|
|
351
351
|
return "Suspense";
|
|
352
|
-
case
|
|
352
|
+
case v:
|
|
353
353
|
return "SuspenseList";
|
|
354
354
|
}
|
|
355
355
|
if (typeof o == "object")
|
|
356
356
|
switch (o.$$typeof) {
|
|
357
357
|
case i:
|
|
358
358
|
var h = o;
|
|
359
|
-
return
|
|
359
|
+
return ee(h) + ".Consumer";
|
|
360
360
|
case u:
|
|
361
|
-
var
|
|
362
|
-
return
|
|
363
|
-
case
|
|
364
|
-
return
|
|
361
|
+
var m = o;
|
|
362
|
+
return ee(m._context) + ".Provider";
|
|
363
|
+
case c:
|
|
364
|
+
return N(o, o.render, "ForwardRef");
|
|
365
365
|
case _:
|
|
366
|
-
var
|
|
367
|
-
return
|
|
368
|
-
case
|
|
369
|
-
var
|
|
366
|
+
var x = o.displayName || null;
|
|
367
|
+
return x !== null ? x : G(o.type) || "Memo";
|
|
368
|
+
case p: {
|
|
369
|
+
var k = o, M = k._payload, L = k._init;
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
372
|
-
} catch (
|
|
371
|
+
return G(L(M));
|
|
372
|
+
} catch (P) {
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
return null;
|
|
378
378
|
}
|
|
379
|
-
var
|
|
379
|
+
var q = Object.assign, oe = 0, ue, ne, Z, pe, nt, rt, ot;
|
|
380
380
|
function it() {
|
|
381
381
|
}
|
|
382
382
|
it.__reactDisabledLog = !0;
|
|
383
383
|
function wn() {
|
|
384
384
|
{
|
|
385
385
|
if (oe === 0) {
|
|
386
|
-
ue = console.log, ne = console.info,
|
|
386
|
+
ue = console.log, ne = console.info, Z = console.warn, pe = console.error, nt = console.group, rt = console.groupCollapsed, ot = console.groupEnd;
|
|
387
387
|
var o = {
|
|
388
388
|
configurable: !0,
|
|
389
389
|
enumerable: !0,
|
|
@@ -412,210 +412,210 @@ function nr() {
|
|
|
412
412
|
writable: !0
|
|
413
413
|
};
|
|
414
414
|
Object.defineProperties(console, {
|
|
415
|
-
log:
|
|
415
|
+
log: q({}, o, {
|
|
416
416
|
value: ue
|
|
417
417
|
}),
|
|
418
|
-
info:
|
|
418
|
+
info: q({}, o, {
|
|
419
419
|
value: ne
|
|
420
420
|
}),
|
|
421
|
-
warn:
|
|
422
|
-
value:
|
|
421
|
+
warn: q({}, o, {
|
|
422
|
+
value: Z
|
|
423
423
|
}),
|
|
424
|
-
error:
|
|
424
|
+
error: q({}, o, {
|
|
425
425
|
value: pe
|
|
426
426
|
}),
|
|
427
|
-
group:
|
|
427
|
+
group: q({}, o, {
|
|
428
428
|
value: nt
|
|
429
429
|
}),
|
|
430
|
-
groupCollapsed:
|
|
430
|
+
groupCollapsed: q({}, o, {
|
|
431
431
|
value: rt
|
|
432
432
|
}),
|
|
433
|
-
groupEnd:
|
|
433
|
+
groupEnd: q({}, o, {
|
|
434
434
|
value: ot
|
|
435
435
|
})
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
oe < 0 &&
|
|
438
|
+
oe < 0 && I("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
var Oe =
|
|
442
|
-
function
|
|
441
|
+
var Oe = T.ReactCurrentDispatcher, He;
|
|
442
|
+
function Re(o, h, m) {
|
|
443
443
|
{
|
|
444
444
|
if (He === void 0)
|
|
445
445
|
try {
|
|
446
446
|
throw Error();
|
|
447
|
-
} catch (
|
|
448
|
-
var
|
|
449
|
-
He =
|
|
447
|
+
} catch (k) {
|
|
448
|
+
var x = k.stack.trim().match(/\n( *(at )?)/);
|
|
449
|
+
He = x && x[1] || "";
|
|
450
450
|
}
|
|
451
451
|
return `
|
|
452
452
|
` + He + o;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
var $e = !1,
|
|
455
|
+
var $e = !1, Ce;
|
|
456
456
|
{
|
|
457
457
|
var Tn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
458
|
-
|
|
458
|
+
Ce = new Tn();
|
|
459
459
|
}
|
|
460
460
|
function st(o, h) {
|
|
461
461
|
if (!o || $e)
|
|
462
462
|
return "";
|
|
463
463
|
{
|
|
464
|
-
var
|
|
465
|
-
if (
|
|
466
|
-
return
|
|
464
|
+
var m = Ce.get(o);
|
|
465
|
+
if (m !== void 0)
|
|
466
|
+
return m;
|
|
467
467
|
}
|
|
468
|
-
var
|
|
468
|
+
var x;
|
|
469
469
|
$e = !0;
|
|
470
|
-
var
|
|
470
|
+
var k = Error.prepareStackTrace;
|
|
471
471
|
Error.prepareStackTrace = void 0;
|
|
472
|
-
var
|
|
473
|
-
|
|
472
|
+
var M;
|
|
473
|
+
M = Oe.current, Oe.current = null, wn();
|
|
474
474
|
try {
|
|
475
475
|
if (h) {
|
|
476
|
-
var
|
|
476
|
+
var L = function() {
|
|
477
477
|
throw Error();
|
|
478
478
|
};
|
|
479
|
-
if (Object.defineProperty(
|
|
479
|
+
if (Object.defineProperty(L.prototype, "props", {
|
|
480
480
|
set: function() {
|
|
481
481
|
throw Error();
|
|
482
482
|
}
|
|
483
483
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
484
484
|
try {
|
|
485
|
-
Reflect.construct(
|
|
486
|
-
} catch (
|
|
487
|
-
|
|
485
|
+
Reflect.construct(L, []);
|
|
486
|
+
} catch (J) {
|
|
487
|
+
x = J;
|
|
488
488
|
}
|
|
489
|
-
Reflect.construct(o, [],
|
|
489
|
+
Reflect.construct(o, [], L);
|
|
490
490
|
} else {
|
|
491
491
|
try {
|
|
492
|
-
|
|
493
|
-
} catch (
|
|
494
|
-
|
|
492
|
+
L.call();
|
|
493
|
+
} catch (J) {
|
|
494
|
+
x = J;
|
|
495
495
|
}
|
|
496
|
-
o.call(
|
|
496
|
+
o.call(L.prototype);
|
|
497
497
|
}
|
|
498
498
|
} else {
|
|
499
499
|
try {
|
|
500
500
|
throw Error();
|
|
501
|
-
} catch (
|
|
502
|
-
|
|
501
|
+
} catch (J) {
|
|
502
|
+
x = J;
|
|
503
503
|
}
|
|
504
504
|
o();
|
|
505
505
|
}
|
|
506
|
-
} catch (
|
|
507
|
-
if (
|
|
508
|
-
for (var
|
|
509
|
-
`), X =
|
|
510
|
-
`),
|
|
511
|
-
|
|
512
|
-
for (;
|
|
513
|
-
if (
|
|
514
|
-
if (
|
|
506
|
+
} catch (J) {
|
|
507
|
+
if (J && x && typeof J.stack == "string") {
|
|
508
|
+
for (var P = J.stack.split(`
|
|
509
|
+
`), X = x.stack.split(`
|
|
510
|
+
`), B = P.length - 1, W = X.length - 1; B >= 1 && W >= 0 && P[B] !== X[W]; )
|
|
511
|
+
W--;
|
|
512
|
+
for (; B >= 1 && W >= 0; B--, W--)
|
|
513
|
+
if (P[B] !== X[W]) {
|
|
514
|
+
if (B !== 1 || W !== 1)
|
|
515
515
|
do
|
|
516
|
-
if (
|
|
516
|
+
if (B--, W--, W < 0 || P[B] !== X[W]) {
|
|
517
517
|
var te = `
|
|
518
|
-
` +
|
|
519
|
-
return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" &&
|
|
518
|
+
` + P[B].replace(" at new ", " at ");
|
|
519
|
+
return o.displayName && te.includes("<anonymous>") && (te = te.replace("<anonymous>", o.displayName)), typeof o == "function" && Ce.set(o, te), te;
|
|
520
520
|
}
|
|
521
|
-
while (
|
|
521
|
+
while (B >= 1 && W >= 0);
|
|
522
522
|
break;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
} finally {
|
|
526
|
-
$e = !1, Oe.current =
|
|
526
|
+
$e = !1, Oe.current = M, _n(), Error.prepareStackTrace = k;
|
|
527
527
|
}
|
|
528
|
-
var fe = o ? o.displayName || o.name : "",
|
|
529
|
-
return typeof o == "function" &&
|
|
528
|
+
var fe = o ? o.displayName || o.name : "", le = fe ? Re(fe) : "";
|
|
529
|
+
return typeof o == "function" && Ce.set(o, le), le;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function En(o, h, m) {
|
|
532
532
|
return st(o, !1);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function xn(o) {
|
|
535
535
|
var h = o.prototype;
|
|
536
536
|
return !!(h && h.isReactComponent);
|
|
537
537
|
}
|
|
538
|
-
function Se(o, h,
|
|
538
|
+
function Se(o, h, m) {
|
|
539
539
|
if (o == null)
|
|
540
540
|
return "";
|
|
541
541
|
if (typeof o == "function")
|
|
542
|
-
return st(o,
|
|
542
|
+
return st(o, xn(o));
|
|
543
543
|
if (typeof o == "string")
|
|
544
|
-
return
|
|
544
|
+
return Re(o);
|
|
545
545
|
switch (o) {
|
|
546
546
|
case d:
|
|
547
|
-
return
|
|
548
|
-
case
|
|
549
|
-
return
|
|
547
|
+
return Re("Suspense");
|
|
548
|
+
case v:
|
|
549
|
+
return Re("SuspenseList");
|
|
550
550
|
}
|
|
551
551
|
if (typeof o == "object")
|
|
552
552
|
switch (o.$$typeof) {
|
|
553
|
-
case
|
|
554
|
-
return
|
|
553
|
+
case c:
|
|
554
|
+
return En(o.render);
|
|
555
555
|
case _:
|
|
556
|
-
return Se(o.type, h,
|
|
557
|
-
case
|
|
558
|
-
var
|
|
556
|
+
return Se(o.type, h, m);
|
|
557
|
+
case p: {
|
|
558
|
+
var x = o, k = x._payload, M = x._init;
|
|
559
559
|
try {
|
|
560
|
-
return Se(
|
|
561
|
-
} catch (
|
|
560
|
+
return Se(M(k), h, m);
|
|
561
|
+
} catch (L) {
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
return "";
|
|
566
566
|
}
|
|
567
|
-
var ye = Object.prototype.hasOwnProperty, at = {},
|
|
568
|
-
function
|
|
567
|
+
var ye = Object.prototype.hasOwnProperty, at = {}, ct = T.ReactDebugCurrentFrame;
|
|
568
|
+
function Pe(o) {
|
|
569
569
|
if (o) {
|
|
570
|
-
var h = o._owner,
|
|
571
|
-
|
|
570
|
+
var h = o._owner, m = Se(o.type, o._source, h ? h.type : null);
|
|
571
|
+
ct.setExtraStackFrame(m);
|
|
572
572
|
} else
|
|
573
|
-
|
|
573
|
+
ct.setExtraStackFrame(null);
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Rn(o, h, m, x, k) {
|
|
576
576
|
{
|
|
577
|
-
var
|
|
578
|
-
for (var
|
|
579
|
-
if (
|
|
580
|
-
var
|
|
577
|
+
var M = Function.call.bind(ye);
|
|
578
|
+
for (var L in o)
|
|
579
|
+
if (M(o, L)) {
|
|
580
|
+
var P = void 0;
|
|
581
581
|
try {
|
|
582
|
-
if (typeof o[
|
|
583
|
-
var X = Error((
|
|
582
|
+
if (typeof o[L] != "function") {
|
|
583
|
+
var X = Error((x || "React class") + ": " + m + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
584
584
|
throw X.name = "Invariant Violation", X;
|
|
585
585
|
}
|
|
586
|
-
|
|
587
|
-
} catch (
|
|
588
|
-
|
|
586
|
+
P = o[L](h, L, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
587
|
+
} catch (B) {
|
|
588
|
+
P = B;
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
P && !(P instanceof Error) && (Pe(k), I("%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).", x || "React class", m, L, typeof P), Pe(null)), P instanceof Error && !(P.message in at) && (at[P.message] = !0, Pe(k), I("Failed %s type: %s", m, P.message), Pe(null));
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
var
|
|
594
|
+
var Cn = Array.isArray;
|
|
595
595
|
function Ue(o) {
|
|
596
|
-
return
|
|
596
|
+
return Cn(o);
|
|
597
597
|
}
|
|
598
598
|
function Sn(o) {
|
|
599
599
|
{
|
|
600
|
-
var h = typeof Symbol == "function" && Symbol.toStringTag,
|
|
601
|
-
return
|
|
600
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
601
|
+
return m;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Pn(o) {
|
|
605
605
|
try {
|
|
606
|
-
return
|
|
606
|
+
return lt(o), !1;
|
|
607
607
|
} catch (h) {
|
|
608
608
|
return !0;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function lt(o) {
|
|
612
612
|
return "" + o;
|
|
613
613
|
}
|
|
614
614
|
function ut(o) {
|
|
615
|
-
if (
|
|
616
|
-
return
|
|
615
|
+
if (Pn(o))
|
|
616
|
+
return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sn(o)), lt(o);
|
|
617
617
|
}
|
|
618
|
-
var dt =
|
|
618
|
+
var dt = T.ReactCurrentOwner, bn = {
|
|
619
619
|
key: !0,
|
|
620
620
|
ref: !0,
|
|
621
621
|
__self: !0,
|
|
@@ -642,78 +642,78 @@ function nr() {
|
|
|
642
642
|
}
|
|
643
643
|
function kn(o, h) {
|
|
644
644
|
{
|
|
645
|
-
var
|
|
646
|
-
ft || (ft = !0,
|
|
645
|
+
var m = function() {
|
|
646
|
+
ft || (ft = !0, I("%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)", h));
|
|
647
647
|
};
|
|
648
|
-
|
|
649
|
-
get:
|
|
648
|
+
m.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
649
|
+
get: m,
|
|
650
650
|
configurable: !0
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
function Dn(o, h) {
|
|
655
655
|
{
|
|
656
|
-
var
|
|
657
|
-
ht || (ht = !0,
|
|
656
|
+
var m = function() {
|
|
657
|
+
ht || (ht = !0, I("%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)", h));
|
|
658
658
|
};
|
|
659
|
-
|
|
660
|
-
get:
|
|
659
|
+
m.isReactWarning = !0, Object.defineProperty(o, "ref", {
|
|
660
|
+
get: m,
|
|
661
661
|
configurable: !0
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
var Nn = function(o, h,
|
|
666
|
-
var
|
|
665
|
+
var Nn = function(o, h, m, x, k, M, L) {
|
|
666
|
+
var P = {
|
|
667
667
|
// This tag allows us to uniquely identify this as a React Element
|
|
668
668
|
$$typeof: t,
|
|
669
669
|
// Built-in properties that belong on the element
|
|
670
670
|
type: o,
|
|
671
671
|
key: h,
|
|
672
|
-
ref:
|
|
673
|
-
props:
|
|
672
|
+
ref: m,
|
|
673
|
+
props: L,
|
|
674
674
|
// Record the component responsible for creating this element.
|
|
675
|
-
_owner:
|
|
675
|
+
_owner: M
|
|
676
676
|
};
|
|
677
|
-
return
|
|
677
|
+
return P._store = {}, Object.defineProperty(P._store, "validated", {
|
|
678
678
|
configurable: !1,
|
|
679
679
|
enumerable: !1,
|
|
680
680
|
writable: !0,
|
|
681
681
|
value: !1
|
|
682
|
-
}), Object.defineProperty(
|
|
682
|
+
}), Object.defineProperty(P, "_self", {
|
|
683
683
|
configurable: !1,
|
|
684
684
|
enumerable: !1,
|
|
685
685
|
writable: !1,
|
|
686
|
-
value:
|
|
687
|
-
}), Object.defineProperty(
|
|
686
|
+
value: x
|
|
687
|
+
}), Object.defineProperty(P, "_source", {
|
|
688
688
|
configurable: !1,
|
|
689
689
|
enumerable: !1,
|
|
690
690
|
writable: !1,
|
|
691
|
-
value:
|
|
692
|
-
}), Object.freeze && (Object.freeze(
|
|
691
|
+
value: k
|
|
692
|
+
}), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
|
|
693
693
|
};
|
|
694
|
-
function Mn(o, h,
|
|
694
|
+
function Mn(o, h, m, x, k) {
|
|
695
695
|
{
|
|
696
|
-
var
|
|
697
|
-
|
|
698
|
-
for (
|
|
699
|
-
ye.call(h,
|
|
696
|
+
var M, L = {}, P = null, X = null;
|
|
697
|
+
m !== void 0 && (ut(m), P = "" + m), jn(h) && (ut(h.key), P = "" + h.key), Ln(h) && (X = h.ref, In(h, k));
|
|
698
|
+
for (M in h)
|
|
699
|
+
ye.call(h, M) && !bn.hasOwnProperty(M) && (L[M] = h[M]);
|
|
700
700
|
if (o && o.defaultProps) {
|
|
701
|
-
var
|
|
702
|
-
for (
|
|
703
|
-
|
|
701
|
+
var B = o.defaultProps;
|
|
702
|
+
for (M in B)
|
|
703
|
+
L[M] === void 0 && (L[M] = B[M]);
|
|
704
704
|
}
|
|
705
|
-
if (
|
|
706
|
-
var
|
|
707
|
-
|
|
705
|
+
if (P || X) {
|
|
706
|
+
var W = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
|
|
707
|
+
P && kn(L, W), X && Dn(L, W);
|
|
708
708
|
}
|
|
709
|
-
return Nn(o,
|
|
709
|
+
return Nn(o, P, X, k, x, dt.current, L);
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
var Be =
|
|
712
|
+
var Be = T.ReactCurrentOwner, mt = T.ReactDebugCurrentFrame;
|
|
713
713
|
function de(o) {
|
|
714
714
|
if (o) {
|
|
715
|
-
var h = o._owner,
|
|
716
|
-
mt.setExtraStackFrame(
|
|
715
|
+
var h = o._owner, m = Se(o.type, o._source, h ? h.type : null);
|
|
716
|
+
mt.setExtraStackFrame(m);
|
|
717
717
|
} else
|
|
718
718
|
mt.setExtraStackFrame(null);
|
|
719
719
|
}
|
|
@@ -725,7 +725,7 @@ function nr() {
|
|
|
725
725
|
function vt() {
|
|
726
726
|
{
|
|
727
727
|
if (Be.current) {
|
|
728
|
-
var o =
|
|
728
|
+
var o = G(Be.current.type);
|
|
729
729
|
if (o)
|
|
730
730
|
return `
|
|
731
731
|
|
|
@@ -742,10 +742,10 @@ Check the render method of \`` + o + "`.";
|
|
|
742
742
|
{
|
|
743
743
|
var h = vt();
|
|
744
744
|
if (!h) {
|
|
745
|
-
var
|
|
746
|
-
|
|
745
|
+
var m = typeof o == "string" ? o : o.displayName || o.name;
|
|
746
|
+
m && (h = `
|
|
747
747
|
|
|
748
|
-
Check the top-level render call using <` +
|
|
748
|
+
Check the top-level render call using <` + m + ">.");
|
|
749
749
|
}
|
|
750
750
|
return h;
|
|
751
751
|
}
|
|
@@ -755,12 +755,12 @@ Check the top-level render call using <` + p + ">.");
|
|
|
755
755
|
if (!o._store || o._store.validated || o.key != null)
|
|
756
756
|
return;
|
|
757
757
|
o._store.validated = !0;
|
|
758
|
-
var
|
|
759
|
-
if (pt[
|
|
758
|
+
var m = Vn(h);
|
|
759
|
+
if (pt[m])
|
|
760
760
|
return;
|
|
761
|
-
pt[
|
|
762
|
-
var
|
|
763
|
-
o && o._owner && o._owner !== Be.current && (
|
|
761
|
+
pt[m] = !0;
|
|
762
|
+
var x = "";
|
|
763
|
+
o && o._owner && o._owner !== Be.current && (x = " It was passed a child from " + G(o._owner.type) + "."), de(o), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), de(null);
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
function gt(o, h) {
|
|
@@ -768,17 +768,17 @@ Check the top-level render call using <` + p + ">.");
|
|
|
768
768
|
if (typeof o != "object")
|
|
769
769
|
return;
|
|
770
770
|
if (Ue(o))
|
|
771
|
-
for (var
|
|
772
|
-
var
|
|
773
|
-
ze(
|
|
771
|
+
for (var m = 0; m < o.length; m++) {
|
|
772
|
+
var x = o[m];
|
|
773
|
+
ze(x) && yt(x, h);
|
|
774
774
|
}
|
|
775
775
|
else if (ze(o))
|
|
776
776
|
o._store && (o._store.validated = !0);
|
|
777
777
|
else if (o) {
|
|
778
|
-
var
|
|
779
|
-
if (typeof
|
|
780
|
-
for (var
|
|
781
|
-
ze(
|
|
778
|
+
var k = b(o);
|
|
779
|
+
if (typeof k == "function" && k !== o.entries)
|
|
780
|
+
for (var M = k.call(o), L; !(L = M.next()).done; )
|
|
781
|
+
ze(L.value) && yt(L.value, h);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
}
|
|
@@ -787,104 +787,104 @@ Check the top-level render call using <` + p + ">.");
|
|
|
787
787
|
var h = o.type;
|
|
788
788
|
if (h == null || typeof h == "string")
|
|
789
789
|
return;
|
|
790
|
-
var
|
|
790
|
+
var m;
|
|
791
791
|
if (typeof h == "function")
|
|
792
|
-
|
|
793
|
-
else if (typeof h == "object" && (h.$$typeof ===
|
|
792
|
+
m = h.propTypes;
|
|
793
|
+
else if (typeof h == "object" && (h.$$typeof === c || // Note: Memo only checks outer props here.
|
|
794
794
|
// Inner props are checked in the reconciler.
|
|
795
795
|
h.$$typeof === _))
|
|
796
|
-
|
|
796
|
+
m = h.propTypes;
|
|
797
797
|
else
|
|
798
798
|
return;
|
|
799
|
-
if (
|
|
800
|
-
var
|
|
801
|
-
|
|
799
|
+
if (m) {
|
|
800
|
+
var x = G(h);
|
|
801
|
+
Rn(m, o.props, "prop", x, o);
|
|
802
802
|
} else if (h.PropTypes !== void 0 && !We) {
|
|
803
803
|
We = !0;
|
|
804
|
-
var
|
|
805
|
-
|
|
804
|
+
var k = G(h);
|
|
805
|
+
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
|
|
806
806
|
}
|
|
807
|
-
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved &&
|
|
807
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
function On(o) {
|
|
811
811
|
{
|
|
812
|
-
for (var h = Object.keys(o.props),
|
|
813
|
-
var
|
|
814
|
-
if (
|
|
815
|
-
de(o),
|
|
812
|
+
for (var h = Object.keys(o.props), m = 0; m < h.length; m++) {
|
|
813
|
+
var x = h[m];
|
|
814
|
+
if (x !== "children" && x !== "key") {
|
|
815
|
+
de(o), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), de(null);
|
|
816
816
|
break;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
o.ref !== null && (de(o),
|
|
819
|
+
o.ref !== null && (de(o), I("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
var wt = {};
|
|
823
|
-
function _t(o, h,
|
|
823
|
+
function _t(o, h, m, x, k, M) {
|
|
824
824
|
{
|
|
825
|
-
var
|
|
826
|
-
if (!
|
|
827
|
-
var
|
|
828
|
-
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (
|
|
825
|
+
var L = H(o);
|
|
826
|
+
if (!L) {
|
|
827
|
+
var P = "";
|
|
828
|
+
(o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
829
829
|
var X = Fn();
|
|
830
|
-
X ?
|
|
831
|
-
var
|
|
832
|
-
o === null ?
|
|
830
|
+
X ? P += X : P += vt();
|
|
831
|
+
var B;
|
|
832
|
+
o === null ? B = "null" : Ue(o) ? B = "array" : o !== void 0 && o.$$typeof === t ? (B = "<" + (G(o.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : B = typeof o, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", B, P);
|
|
833
833
|
}
|
|
834
|
-
var
|
|
835
|
-
if (
|
|
836
|
-
return
|
|
837
|
-
if (
|
|
834
|
+
var W = Mn(o, h, m, k, M);
|
|
835
|
+
if (W == null)
|
|
836
|
+
return W;
|
|
837
|
+
if (L) {
|
|
838
838
|
var te = h.children;
|
|
839
839
|
if (te !== void 0)
|
|
840
|
-
if (
|
|
840
|
+
if (x)
|
|
841
841
|
if (Ue(te)) {
|
|
842
842
|
for (var fe = 0; fe < te.length; fe++)
|
|
843
843
|
gt(te[fe], o);
|
|
844
844
|
Object.freeze && Object.freeze(te);
|
|
845
845
|
} else
|
|
846
|
-
|
|
846
|
+
I("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
847
847
|
else
|
|
848
848
|
gt(te, o);
|
|
849
849
|
}
|
|
850
850
|
if (ye.call(h, "key")) {
|
|
851
|
-
var
|
|
851
|
+
var le = G(o), J = Object.keys(h).filter(function(zn) {
|
|
852
852
|
return zn !== "key";
|
|
853
|
-
}),
|
|
854
|
-
if (!wt[
|
|
855
|
-
var Wn =
|
|
856
|
-
|
|
853
|
+
}), Ye = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
854
|
+
if (!wt[le + Ye]) {
|
|
855
|
+
var Wn = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
|
|
856
|
+
I(`A props object containing a "key" prop is being spread into JSX:
|
|
857
857
|
let props = %s;
|
|
858
858
|
<%s {...props} />
|
|
859
859
|
React keys must be passed directly to JSX without using spread:
|
|
860
860
|
let props = %s;
|
|
861
|
-
<%s key={someKey} {...props} />`,
|
|
861
|
+
<%s key={someKey} {...props} />`, Ye, le, Wn, le), wt[le + Ye] = !0;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
return o === r ? On(
|
|
864
|
+
return o === r ? On(W) : An(W), W;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function Hn(o, h,
|
|
868
|
-
return _t(o, h,
|
|
867
|
+
function Hn(o, h, m) {
|
|
868
|
+
return _t(o, h, m, !0);
|
|
869
869
|
}
|
|
870
|
-
function $n(o, h,
|
|
871
|
-
return _t(o, h,
|
|
870
|
+
function $n(o, h, m) {
|
|
871
|
+
return _t(o, h, m, !1);
|
|
872
872
|
}
|
|
873
873
|
var Un = $n, Bn = Hn;
|
|
874
874
|
we.Fragment = r, we.jsx = Un, we.jsxs = Bn;
|
|
875
875
|
})()), we;
|
|
876
876
|
}
|
|
877
877
|
var St;
|
|
878
|
-
function
|
|
879
|
-
return St || (St = 1, process.env.NODE_ENV === "production" ? Ie.exports =
|
|
878
|
+
function or() {
|
|
879
|
+
return St || (St = 1, process.env.NODE_ENV === "production" ? Ie.exports = nr() : Ie.exports = rr()), Ie.exports;
|
|
880
880
|
}
|
|
881
|
-
var
|
|
882
|
-
const
|
|
883
|
-
function
|
|
881
|
+
var a = or();
|
|
882
|
+
const Yt = typeof window != "undefined" ? Kn : A;
|
|
883
|
+
function xe(e, t) {
|
|
884
884
|
const n = O(e);
|
|
885
|
-
|
|
885
|
+
Yt(() => {
|
|
886
886
|
n.current = e;
|
|
887
|
-
}, [e]),
|
|
887
|
+
}, [e]), A(() => {
|
|
888
888
|
if (t === null)
|
|
889
889
|
return;
|
|
890
890
|
const r = setInterval(() => {
|
|
@@ -895,8 +895,8 @@ function Ce(e, t) {
|
|
|
895
895
|
};
|
|
896
896
|
}, [t]);
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
var n, r,
|
|
898
|
+
function ir(e, t) {
|
|
899
|
+
var n, r, s, l, u, i;
|
|
900
900
|
if (typeof Intl != "undefined" && Intl.DateTimeFormat)
|
|
901
901
|
try {
|
|
902
902
|
const d = new Intl.DateTimeFormat("en-US", {
|
|
@@ -908,45 +908,45 @@ function or(e, t) {
|
|
|
908
908
|
minute: "2-digit",
|
|
909
909
|
second: "2-digit",
|
|
910
910
|
hour12: !1
|
|
911
|
-
}).formatToParts(e),
|
|
912
|
-
((n = d.find((
|
|
911
|
+
}).formatToParts(e), v = parseInt(
|
|
912
|
+
((n = d.find((b) => b.type === "year")) == null ? void 0 : n.value) || "0",
|
|
913
913
|
10
|
|
914
914
|
), _ = parseInt(
|
|
915
|
-
((r = d.find((
|
|
915
|
+
((r = d.find((b) => b.type === "month")) == null ? void 0 : r.value) || "0",
|
|
916
916
|
10
|
|
917
|
-
) - 1,
|
|
918
|
-
((
|
|
917
|
+
) - 1, p = parseInt(
|
|
918
|
+
((s = d.find((b) => b.type === "day")) == null ? void 0 : s.value) || "0",
|
|
919
919
|
10
|
|
920
|
-
),
|
|
921
|
-
((
|
|
920
|
+
), D = parseInt(
|
|
921
|
+
((l = d.find((b) => b.type === "hour")) == null ? void 0 : l.value) || "0",
|
|
922
922
|
10
|
|
923
|
-
),
|
|
924
|
-
((u = d.find((
|
|
923
|
+
), S = parseInt(
|
|
924
|
+
((u = d.find((b) => b.type === "minute")) == null ? void 0 : u.value) || "0",
|
|
925
925
|
10
|
|
926
|
-
),
|
|
927
|
-
((i = d.find((
|
|
926
|
+
), C = parseInt(
|
|
927
|
+
((i = d.find((b) => b.type === "second")) == null ? void 0 : i.value) || "0",
|
|
928
928
|
10
|
|
929
929
|
);
|
|
930
|
-
return new Date(
|
|
931
|
-
} catch (
|
|
930
|
+
return new Date(v, _, p, D, S, C);
|
|
931
|
+
} catch (c) {
|
|
932
932
|
return console.warn(
|
|
933
933
|
`Failed to convert date to timezone ${t}, returning original date:`,
|
|
934
|
-
|
|
934
|
+
c
|
|
935
935
|
), e;
|
|
936
936
|
}
|
|
937
937
|
return console.warn(
|
|
938
938
|
"Intl.DateTimeFormat not available, timezone conversion may be inaccurate"
|
|
939
939
|
), e;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
941
|
+
function sr(e, t, n) {
|
|
942
|
+
return qt(
|
|
943
943
|
t.getTime() - e.getTime(),
|
|
944
944
|
n,
|
|
945
945
|
"milliseconds"
|
|
946
946
|
);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
949
|
-
const e = /* @__PURE__ */ new Date(), t = "YYYY-MM-DD HH:mm:ss.SSSSSS", n = (
|
|
948
|
+
function ar() {
|
|
949
|
+
const e = /* @__PURE__ */ new Date(), t = "YYYY-MM-DD HH:mm:ss.SSSSSS", n = (s, l = 2) => String(s).padStart(l, "0"), r = {
|
|
950
950
|
YYYY: String(e.getFullYear()),
|
|
951
951
|
MM: n(e.getMonth() + 1),
|
|
952
952
|
DD: n(e.getDate()),
|
|
@@ -956,16 +956,16 @@ function sr() {
|
|
|
956
956
|
SSSSSS: n(e.getMilliseconds(), 3) + "000"
|
|
957
957
|
};
|
|
958
958
|
return Object.entries(r).reduce(
|
|
959
|
-
(
|
|
959
|
+
(s, [l, u]) => s.replace(l, u),
|
|
960
960
|
t
|
|
961
961
|
);
|
|
962
962
|
}
|
|
963
963
|
const Te = (e) => {
|
|
964
964
|
if (isNaN(e) || e === 1 / 0) return "0:00";
|
|
965
|
-
const t = (
|
|
966
|
-
return n === 0 ? `${r}:${t(
|
|
965
|
+
const t = (l) => (l < 10 ? "0" : "") + l, n = Math.floor(e / 3600), r = Math.floor(e % 3600 / 60), s = Math.floor(e % 60);
|
|
966
|
+
return n === 0 ? `${r}:${t(s)}` : `${n}:${t(r)}:${t(s)}`;
|
|
967
967
|
};
|
|
968
|
-
function
|
|
968
|
+
function cr() {
|
|
969
969
|
try {
|
|
970
970
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
971
971
|
} catch (e) {
|
|
@@ -976,9 +976,9 @@ function ar() {
|
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
function lr(e) {
|
|
979
|
-
return
|
|
979
|
+
return qt(e, "milliseconds", "seconds");
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function qt(e, t, n) {
|
|
982
982
|
const r = {
|
|
983
983
|
days: 86400,
|
|
984
984
|
hours: 3600,
|
|
@@ -988,28 +988,28 @@ function Yt(e, t, n) {
|
|
|
988
988
|
};
|
|
989
989
|
return e * (r[t] / r[n]);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function Zt(e) {
|
|
992
992
|
var n;
|
|
993
993
|
const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
|
|
994
994
|
return e.test(t);
|
|
995
995
|
}
|
|
996
|
-
const
|
|
997
|
-
function
|
|
996
|
+
const Je = Zt(/iPhone|iPad|iPod/i), ur = Zt(/Tizen/i);
|
|
997
|
+
function dr() {
|
|
998
998
|
const e = document;
|
|
999
999
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function fr(e) {
|
|
1002
1002
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function hr(e) {
|
|
1005
1005
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function mr(e, t) {
|
|
1008
1008
|
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
1009
1009
|
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
const
|
|
1012
|
+
const vr = () => Xn(), pr = (e, t) => ({
|
|
1013
1013
|
currentTime: 0,
|
|
1014
1014
|
duration: 0,
|
|
1015
1015
|
isEnded: !1,
|
|
@@ -1110,10 +1110,10 @@ const mr = () => Gn(), vr = (e, t) => ({
|
|
|
1110
1110
|
const r = t().techRef.current;
|
|
1111
1111
|
if (!r) return;
|
|
1112
1112
|
t().eventEmitter.emit("error", n);
|
|
1113
|
-
const
|
|
1114
|
-
if (!
|
|
1115
|
-
const
|
|
1116
|
-
e({ error: { message: u, code:
|
|
1113
|
+
const s = r.error;
|
|
1114
|
+
if (!s) return;
|
|
1115
|
+
const l = `${s.code}`, u = s.message || "Unknown error occurred";
|
|
1116
|
+
e({ error: { message: u, code: l, tech: "native" } });
|
|
1117
1117
|
},
|
|
1118
1118
|
pause: () => {
|
|
1119
1119
|
const n = t().techRef.current;
|
|
@@ -1174,11 +1174,11 @@ const mr = () => Gn(), vr = (e, t) => ({
|
|
|
1174
1174
|
isLoading: !1
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
|
-
}),
|
|
1177
|
+
}), yr = (e, t) => ({
|
|
1178
1178
|
isIdle: !1,
|
|
1179
1179
|
setIsIdle: (n) => e({ isIdle: n }),
|
|
1180
1180
|
resetIdle: () => t().eventEmitter.emit("resetIdle")
|
|
1181
|
-
}),
|
|
1181
|
+
}), gr = (e) => ({
|
|
1182
1182
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
1183
1183
|
addIdleLock: (t) => e((n) => ({
|
|
1184
1184
|
idleLocks: new Set(n.idleLocks).add(t)
|
|
@@ -1187,13 +1187,13 @@ const mr = () => Gn(), vr = (e, t) => ({
|
|
|
1187
1187
|
const r = new Set(n.idleLocks);
|
|
1188
1188
|
return r.delete(t), { idleLocks: r };
|
|
1189
1189
|
})
|
|
1190
|
-
}),
|
|
1190
|
+
}), wr = (e, t) => ({
|
|
1191
1191
|
playbackRate: 1,
|
|
1192
1192
|
setPlaybackRate: (n) => {
|
|
1193
1193
|
const r = t().techRef.current;
|
|
1194
1194
|
r && (r.playbackRate = n, e({ playbackRate: n }));
|
|
1195
1195
|
}
|
|
1196
|
-
}),
|
|
1196
|
+
}), _r = (e, t) => ({
|
|
1197
1197
|
level: null,
|
|
1198
1198
|
levels: null,
|
|
1199
1199
|
setLevels: (n) => e({ levels: n }),
|
|
@@ -1201,42 +1201,42 @@ const mr = () => Gn(), vr = (e, t) => ({
|
|
|
1201
1201
|
logLevel: (n) => {
|
|
1202
1202
|
n && t().eventEmitter.emit("qualityChange", { level: n });
|
|
1203
1203
|
}
|
|
1204
|
-
}),
|
|
1204
|
+
}), Tr = (e, t) => ({
|
|
1205
1205
|
isFullscreen: !1,
|
|
1206
1206
|
isFullscreenReady: !1,
|
|
1207
1207
|
exitFullscreen: () => {
|
|
1208
|
-
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }),
|
|
1208
|
+
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), hr(document), e({ isFullscreen: !1 });
|
|
1209
1209
|
},
|
|
1210
1210
|
requestFullscreen: () => {
|
|
1211
1211
|
const n = t().techRef.current, r = t().containerRef.current;
|
|
1212
1212
|
if (!n || !r) return;
|
|
1213
1213
|
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
|
|
1214
|
-
const
|
|
1215
|
-
|
|
1214
|
+
const s = Je ? n : r;
|
|
1215
|
+
s && fr(s), e({ isFullscreen: !0 });
|
|
1216
1216
|
},
|
|
1217
1217
|
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
1218
1218
|
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
1219
|
-
}),
|
|
1219
|
+
}), Er = (e) => ({
|
|
1220
1220
|
error: null,
|
|
1221
1221
|
setError: (t) => e({ error: t })
|
|
1222
1222
|
}), xr = () => ({
|
|
1223
|
-
eventEmitter:
|
|
1224
|
-
}),
|
|
1223
|
+
eventEmitter: vr()
|
|
1224
|
+
}), Rr = (e) => () => F({}, e), Cr = (e, t) => At()((...n) => F(F(F(F(F(F(F(F(F({}, pr(...n)), yr(...n)), gr(...n)), wr(...n)), _r(...n)), Tr(...n)), Er(...n)), xr(...n)), Rr({
|
|
1225
1225
|
techRef: e,
|
|
1226
1226
|
containerRef: t
|
|
1227
1227
|
})(...n))), Kt = Mt(null);
|
|
1228
|
-
function
|
|
1228
|
+
function Sr({ children: e }) {
|
|
1229
1229
|
const t = O(null), n = O(null), r = O(null);
|
|
1230
|
-
return t.current || (t.current =
|
|
1230
|
+
return t.current || (t.current = Cr(n, r)), /* @__PURE__ */ a.jsx(Kt.Provider, { value: t.current, children: e });
|
|
1231
1231
|
}
|
|
1232
1232
|
const f = (e) => {
|
|
1233
1233
|
const t = Ft(Kt);
|
|
1234
1234
|
if (!t)
|
|
1235
1235
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1236
1236
|
return Vt(t, e);
|
|
1237
|
-
},
|
|
1238
|
-
version:
|
|
1239
|
-
},
|
|
1237
|
+
}, Pr = "0.0.59", Qe = {
|
|
1238
|
+
version: Pr
|
|
1239
|
+
}, qe = 11e3, Ze = {
|
|
1240
1240
|
DEBUG: 2,
|
|
1241
1241
|
INFO: 3,
|
|
1242
1242
|
WARNING: 4
|
|
@@ -1246,83 +1246,83 @@ function Gt({
|
|
|
1246
1246
|
id: t,
|
|
1247
1247
|
kind: n,
|
|
1248
1248
|
delay: r,
|
|
1249
|
-
url:
|
|
1249
|
+
url: s
|
|
1250
1250
|
}) {
|
|
1251
|
-
const
|
|
1252
|
-
u.current =
|
|
1253
|
-
const
|
|
1251
|
+
const l = O(null), u = O(!1), [i, c] = K(null), d = f((T) => T.eventEmitter), v = f((T) => T.isPlaying), _ = s.includes("staging") ? "stg" : "prd", p = _ === "stg" ? "https://collector-staging.spectar.tv/ingest" : "https://collector.spectar.tv/ingest", D = _ === "stg" ? "spectar_fitnessanny_staging" : "spectar_fitnessanny_production";
|
|
1252
|
+
u.current = v;
|
|
1253
|
+
const S = V(
|
|
1254
1254
|
async ({
|
|
1255
|
-
type:
|
|
1256
|
-
message:
|
|
1257
|
-
level:
|
|
1258
|
-
duration:
|
|
1259
|
-
valueStr1:
|
|
1260
|
-
valueStr2:
|
|
1255
|
+
type: T,
|
|
1256
|
+
message: I,
|
|
1257
|
+
level: j = Ze.INFO,
|
|
1258
|
+
duration: g,
|
|
1259
|
+
valueStr1: E,
|
|
1260
|
+
valueStr2: y
|
|
1261
1261
|
}) => {
|
|
1262
|
-
const
|
|
1262
|
+
const R = {
|
|
1263
1263
|
content_kind: n,
|
|
1264
1264
|
datetime: {
|
|
1265
|
-
date:
|
|
1266
|
-
timezone:
|
|
1265
|
+
date: ar(),
|
|
1266
|
+
timezone: cr()
|
|
1267
1267
|
},
|
|
1268
|
-
installation:
|
|
1269
|
-
level_num:
|
|
1268
|
+
installation: D,
|
|
1269
|
+
level_num: j,
|
|
1270
1270
|
log_source: "fitnessanny_player",
|
|
1271
1271
|
capp_version: Qe.version,
|
|
1272
|
-
message:
|
|
1273
|
-
target_index:
|
|
1272
|
+
message: I,
|
|
1273
|
+
target_index: T === "client" ? "client_log" : "watching_activity_log"
|
|
1274
1274
|
};
|
|
1275
|
-
e && (
|
|
1276
|
-
const
|
|
1275
|
+
e && (R.title = e), t && (R.value_int1 = t), E && (R.value_str1 = E), y && (R.value_str2 = y), T === "watch" && (g && (R.interval_duration = g), r && (R.catchup_time = r));
|
|
1276
|
+
const w = await fetch(p, {
|
|
1277
1277
|
method: "POST",
|
|
1278
|
-
body: JSON.stringify(
|
|
1278
|
+
body: JSON.stringify(R)
|
|
1279
1279
|
});
|
|
1280
|
-
if (!
|
|
1281
|
-
throw new Error(`HTTP error! status: ${
|
|
1280
|
+
if (!w.ok)
|
|
1281
|
+
throw new Error(`HTTP error! status: ${w.status}`);
|
|
1282
1282
|
},
|
|
1283
|
-
[
|
|
1284
|
-
),
|
|
1285
|
-
|
|
1286
|
-
}, []),
|
|
1287
|
-
async (
|
|
1288
|
-
!
|
|
1283
|
+
[p, r, t, D, n, e]
|
|
1284
|
+
), C = V((T) => {
|
|
1285
|
+
l.current = T != null ? T : /* @__PURE__ */ new Date();
|
|
1286
|
+
}, []), b = V(
|
|
1287
|
+
async (T) => {
|
|
1288
|
+
!T && l.current && (T = sr(l.current, /* @__PURE__ */ new Date(), "milliseconds")), console.log("[Player][Activity]", "Watching", T), await S({ type: "watch", message: "WATCHING", duration: T });
|
|
1289
1289
|
},
|
|
1290
|
-
[
|
|
1290
|
+
[S]
|
|
1291
1291
|
);
|
|
1292
|
-
return
|
|
1293
|
-
|
|
1294
|
-
}, i),
|
|
1295
|
-
const
|
|
1296
|
-
|
|
1297
|
-
},
|
|
1298
|
-
|
|
1299
|
-
},
|
|
1300
|
-
|
|
1301
|
-
},
|
|
1302
|
-
|
|
1303
|
-
},
|
|
1304
|
-
|
|
1305
|
-
},
|
|
1306
|
-
|
|
1292
|
+
return xe(() => {
|
|
1293
|
+
b(i), C();
|
|
1294
|
+
}, i), A(() => {
|
|
1295
|
+
const T = () => {
|
|
1296
|
+
c(qe), S({ type: "watch", message: "PLAY" }), C();
|
|
1297
|
+
}, I = () => {
|
|
1298
|
+
c(null), S({ type: "watch", message: "PAUSE" }), b(), C();
|
|
1299
|
+
}, j = () => {
|
|
1300
|
+
c(qe), S({ type: "watch", message: "RESUME" }), C();
|
|
1301
|
+
}, g = () => {
|
|
1302
|
+
c(null), u.current && (S({ type: "watch", message: "STOP" }), b()), c(qe), S({ type: "watch", message: "PLAY" }), C();
|
|
1303
|
+
}, E = () => {
|
|
1304
|
+
c(null), S({ type: "watch", message: "STOP" }), u.current && b(), C();
|
|
1305
|
+
}, y = ({ level: w }) => {
|
|
1306
|
+
w && S({
|
|
1307
1307
|
type: "client",
|
|
1308
1308
|
message: "QUALITY_CHANGE",
|
|
1309
1309
|
level: Ze.DEBUG,
|
|
1310
|
-
valueStr1:
|
|
1310
|
+
valueStr1: w
|
|
1311
1311
|
});
|
|
1312
|
-
},
|
|
1313
|
-
let
|
|
1314
|
-
|
|
1312
|
+
}, R = (w) => {
|
|
1313
|
+
let z = "UNKNOWN_ERROR", H = "Unknown error occurred";
|
|
1314
|
+
w instanceof MediaError && (w.code && (z = `${w.code}`), w.message && (H = `${w.message}`)), S({
|
|
1315
1315
|
type: "client",
|
|
1316
1316
|
message: "ERROR",
|
|
1317
1317
|
level: Ze.WARNING,
|
|
1318
|
-
valueStr1:
|
|
1319
|
-
valueStr2:
|
|
1318
|
+
valueStr1: z,
|
|
1319
|
+
valueStr2: H
|
|
1320
1320
|
});
|
|
1321
1321
|
};
|
|
1322
|
-
return d.on("play",
|
|
1323
|
-
d.off("play",
|
|
1322
|
+
return d.on("play", T), d.on("pause", I), d.on("resume", j), d.on("restart", g), d.on("ended", E), d.on("qualityChange", y), d.on("error", R), () => {
|
|
1323
|
+
d.off("play", T), d.off("pause", I), d.off("resume", j), d.off("restart", g), d.off("ended", E), d.off("qualityChange", y), d.off("error", R);
|
|
1324
1324
|
};
|
|
1325
|
-
}, [d,
|
|
1325
|
+
}, [d, S, C, b]), null;
|
|
1326
1326
|
}
|
|
1327
1327
|
const br = () => At((e) => ({
|
|
1328
1328
|
delay: 0,
|
|
@@ -1333,11 +1333,11 @@ const br = () => At((e) => ({
|
|
|
1333
1333
|
setViewerCount: (t) => e({ viewerCount: t })
|
|
1334
1334
|
})), Xt = Mt(
|
|
1335
1335
|
null
|
|
1336
|
-
),
|
|
1336
|
+
), Lr = ({ children: e }) => {
|
|
1337
1337
|
const t = O(
|
|
1338
1338
|
null
|
|
1339
1339
|
);
|
|
1340
|
-
return t.current || (t.current = br()), /* @__PURE__ */
|
|
1340
|
+
return t.current || (t.current = br()), /* @__PURE__ */ a.jsx(Xt.Provider, { value: t.current, children: e });
|
|
1341
1341
|
}, U = (e) => {
|
|
1342
1342
|
const t = Ft(Xt);
|
|
1343
1343
|
if (!t)
|
|
@@ -1349,16 +1349,16 @@ const br = () => At((e) => ({
|
|
|
1349
1349
|
function Jt(e) {
|
|
1350
1350
|
try {
|
|
1351
1351
|
const n = new URL(e).searchParams, r = {};
|
|
1352
|
-
return n.forEach((
|
|
1353
|
-
r[
|
|
1352
|
+
return n.forEach((s, l) => {
|
|
1353
|
+
r[l] = s;
|
|
1354
1354
|
}), r;
|
|
1355
1355
|
} catch (t) {
|
|
1356
1356
|
return console.error("Invalid URL:", t), {};
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1360
|
-
const { video_id: t } = Jt(e), n = U((
|
|
1361
|
-
return r ? /* @__PURE__ */
|
|
1359
|
+
function jr({ url: e }) {
|
|
1360
|
+
const { video_id: t } = Jt(e), n = U((s) => s.delay), r = t ? Number(t) : void 0;
|
|
1361
|
+
return r ? /* @__PURE__ */ a.jsx(
|
|
1362
1362
|
Gt,
|
|
1363
1363
|
{
|
|
1364
1364
|
kind: n ? "catchup" : "live",
|
|
@@ -1368,46 +1368,46 @@ function Lr({ url: e }) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
) : null;
|
|
1370
1370
|
}
|
|
1371
|
-
const
|
|
1372
|
-
playerNotice:
|
|
1373
|
-
playerNoticeTitle:
|
|
1374
|
-
playerNoticeText:
|
|
1375
|
-
playerNoticeLowZIndex:
|
|
1371
|
+
const Ir = "_playerNotice_x3acc_1", kr = "_playerNoticeTitle_x3acc_19", Dr = "_playerNoticeText_x3acc_28", Nr = "_playerNoticeLowZIndex_x3acc_37", ie = {
|
|
1372
|
+
playerNotice: Ir,
|
|
1373
|
+
playerNoticeTitle: kr,
|
|
1374
|
+
playerNoticeText: Dr,
|
|
1375
|
+
playerNoticeLowZIndex: Nr
|
|
1376
1376
|
};
|
|
1377
|
-
function Nr(e) {
|
|
1378
|
-
const [, t] = G(0);
|
|
1379
|
-
Ce(() => t((n) => n + 1), e);
|
|
1380
|
-
}
|
|
1381
1377
|
function Mr(e) {
|
|
1378
|
+
const [, t] = K(0);
|
|
1379
|
+
xe(() => t((n) => n + 1), e);
|
|
1380
|
+
}
|
|
1381
|
+
function Fr(e) {
|
|
1382
1382
|
const t = e.split(`
|
|
1383
1383
|
`);
|
|
1384
1384
|
for (const n of t) {
|
|
1385
1385
|
const r = n.trim();
|
|
1386
1386
|
if (r.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
|
|
1387
|
-
const
|
|
1388
|
-
if (!isNaN(
|
|
1389
|
-
return
|
|
1387
|
+
const s = r.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), l = new Date(s);
|
|
1388
|
+
if (!isNaN(l.getTime()))
|
|
1389
|
+
return ir(l, "Europe/Sarajevo");
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
return null;
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function Vr(e, t) {
|
|
1395
1395
|
const n = e.split(`
|
|
1396
1396
|
`);
|
|
1397
1397
|
let r = !1;
|
|
1398
|
-
for (const
|
|
1399
|
-
const
|
|
1400
|
-
if (
|
|
1398
|
+
for (const s of n) {
|
|
1399
|
+
const l = s.trim();
|
|
1400
|
+
if (l.startsWith("#EXT-X-STREAM-INF:")) {
|
|
1401
1401
|
r = !0;
|
|
1402
1402
|
continue;
|
|
1403
1403
|
}
|
|
1404
|
-
if (r && !
|
|
1405
|
-
if (
|
|
1406
|
-
return
|
|
1404
|
+
if (r && !l.startsWith("#")) {
|
|
1405
|
+
if (l.startsWith("http"))
|
|
1406
|
+
return l;
|
|
1407
1407
|
{
|
|
1408
1408
|
const u = new URL(t);
|
|
1409
1409
|
return new URL(
|
|
1410
|
-
|
|
1410
|
+
l,
|
|
1411
1411
|
u.origin + u.pathname.substring(
|
|
1412
1412
|
0,
|
|
1413
1413
|
u.pathname.lastIndexOf("/")
|
|
@@ -1418,146 +1418,146 @@ function Fr(e, t) {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
return null;
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function Ar(e) {
|
|
1422
1422
|
return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
|
|
1423
1423
|
}
|
|
1424
|
-
async function
|
|
1424
|
+
async function Or(e) {
|
|
1425
1425
|
try {
|
|
1426
|
-
const t =
|
|
1426
|
+
const t = Ar(e);
|
|
1427
1427
|
console.log("Converting to DVR URL:", t);
|
|
1428
1428
|
const n = await fetch(t);
|
|
1429
1429
|
if (!n.ok)
|
|
1430
1430
|
throw new Error(
|
|
1431
1431
|
`Failed to fetch master playlist: ${n.status} ${n.statusText}`
|
|
1432
1432
|
);
|
|
1433
|
-
const r = await n.text(),
|
|
1433
|
+
const r = await n.text(), s = Vr(
|
|
1434
1434
|
r,
|
|
1435
1435
|
t
|
|
1436
1436
|
);
|
|
1437
|
-
if (!
|
|
1437
|
+
if (!s)
|
|
1438
1438
|
throw new Error("No chunklist URL found in master playlist");
|
|
1439
|
-
console.log("Found chunklist URL:",
|
|
1440
|
-
const
|
|
1441
|
-
if (!
|
|
1439
|
+
console.log("Found chunklist URL:", s);
|
|
1440
|
+
const l = await fetch(s);
|
|
1441
|
+
if (!l.ok)
|
|
1442
1442
|
throw new Error(
|
|
1443
|
-
`Failed to fetch chunklist: ${
|
|
1443
|
+
`Failed to fetch chunklist: ${l.status} ${l.statusText}`
|
|
1444
1444
|
);
|
|
1445
|
-
const u = await
|
|
1445
|
+
const u = await l.text(), i = Fr(u);
|
|
1446
1446
|
return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
|
|
1447
1447
|
} catch (t) {
|
|
1448
1448
|
return console.error("Error getting start time from HLS URL:", t), null;
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Hr(n) {
|
|
1452
1452
|
var r = n, { url: e } = r, t = re(r, ["url"]);
|
|
1453
|
-
const [
|
|
1454
|
-
const d = await
|
|
1453
|
+
const [s, l] = K(!0), u = U((d) => d.startDate), i = U((d) => d.setStartDate), c = V(async () => {
|
|
1454
|
+
const d = await Or(e);
|
|
1455
1455
|
d && i(d);
|
|
1456
1456
|
}, [e, i]);
|
|
1457
|
-
return
|
|
1457
|
+
return A(() => {
|
|
1458
1458
|
(async () => {
|
|
1459
|
-
|
|
1459
|
+
l(!0), await c(), l(!1);
|
|
1460
1460
|
})();
|
|
1461
|
-
}, [
|
|
1461
|
+
}, [c]), xe(c, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx($r, F({}, t));
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function $r({
|
|
1464
1464
|
children: e,
|
|
1465
1465
|
messages: t
|
|
1466
1466
|
}) {
|
|
1467
1467
|
const n = U((u) => u.startDate), r = f((u) => u.isStarted);
|
|
1468
|
-
return
|
|
1469
|
-
|
|
1468
|
+
return Mr(r ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ a.jsx(
|
|
1469
|
+
Ur,
|
|
1470
1470
|
{
|
|
1471
1471
|
startDate: n,
|
|
1472
1472
|
title: t.eventNotStarted,
|
|
1473
1473
|
message: t.eventStartingSoon
|
|
1474
1474
|
}
|
|
1475
|
-
) : /* @__PURE__ */
|
|
1475
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: t.unableToPlay }) });
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1478
|
-
const r = e.getTime() - Date.now(),
|
|
1477
|
+
function Ur({ startDate: e, title: t, message: n }) {
|
|
1478
|
+
const r = e.getTime() - Date.now(), s = Math.floor(r / (1e3 * 60 * 60)), l = Math.floor(
|
|
1479
1479
|
r % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1480
1480
|
);
|
|
1481
|
-
return
|
|
1482
|
-
/* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1481
|
+
return s || l ? /* @__PURE__ */ a.jsxs("div", { className: ie.playerNotice, children: [
|
|
1482
|
+
/* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: t }),
|
|
1483
|
+
/* @__PURE__ */ a.jsxs("p", { className: ie.playerNoticeText, children: [
|
|
1484
1484
|
"(",
|
|
1485
|
-
|
|
1485
|
+
s > 0 ? `${s}h ${l}m` : `${l}m`,
|
|
1486
1486
|
")"
|
|
1487
1487
|
] })
|
|
1488
|
-
] }) : /* @__PURE__ */
|
|
1488
|
+
] }) : /* @__PURE__ */ a.jsx("div", { className: ie.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: n }) });
|
|
1489
1489
|
}
|
|
1490
1490
|
function Qt({ callback: e }) {
|
|
1491
1491
|
const t = f((n) => n.eventEmitter);
|
|
1492
|
-
return
|
|
1493
|
-
const n = () => e("play", void 0), r = () => e("pause", void 0),
|
|
1494
|
-
return t.on("play", n), t.on("pause", r), t.on("resume",
|
|
1495
|
-
t.off("play", n), t.off("pause", r), t.off("resume",
|
|
1492
|
+
return A(() => {
|
|
1493
|
+
const n = () => e("play", void 0), r = () => e("pause", void 0), s = () => e("resume", void 0), l = () => e("restart", void 0), u = () => e("ended", void 0), i = () => e("seeking", void 0), c = () => e("seeked", void 0), d = (T) => e("volumeChange", T), v = (T) => e("fullscreenChange", T), _ = (T) => e("qualityChange", T), p = (T) => e("loadedMetadata", T), D = () => e("loadStart", void 0), S = () => e("playing", void 0), C = () => e("waiting", void 0), b = () => e("error", void 0);
|
|
1494
|
+
return t.on("play", n), t.on("pause", r), t.on("resume", s), t.on("restart", l), t.on("ended", u), t.on("seeking", i), t.on("seeked", c), t.on("volumeChange", d), t.on("fullscreenChange", v), t.on("qualityChange", _), t.on("loadedMetadata", p), t.on("loadStart", D), t.on("playing", S), t.on("waiting", C), t.on("error", b), () => {
|
|
1495
|
+
t.off("play", n), t.off("pause", r), t.off("resume", s), t.off("restart", l), t.off("ended", u), t.off("seeking", i), t.off("seeked", c), t.off("volumeChange", d), t.off("fullscreenChange", v), t.off("qualityChange", _), t.off("loadedMetadata", p), t.off("loadStart", D), t.off("playing", S), t.off("waiting", C), t.off("error", b);
|
|
1496
1496
|
};
|
|
1497
1497
|
}, [e, t]), null;
|
|
1498
1498
|
}
|
|
1499
1499
|
const en = (e, t = 0) => parseInt(
|
|
1500
1500
|
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
1501
|
-
), tn = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3),
|
|
1502
|
-
const r = t < 0 ? 0 : t,
|
|
1503
|
-
return `${parseFloat((e / Math.pow(1024,
|
|
1501
|
+
), tn = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Br = (e, t) => Math.max(0, (t - e) / 1e3), Wr = (e, t = 0) => {
|
|
1502
|
+
const r = t < 0 ? 0 : t, s = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], l = Math.floor(Math.log(e) / Math.log(1024));
|
|
1503
|
+
return `${parseFloat((e / Math.pow(1024, l)).toFixed(r))}${s[l]}`;
|
|
1504
1504
|
};
|
|
1505
|
-
function
|
|
1505
|
+
function zr({
|
|
1506
1506
|
isAuto: e,
|
|
1507
1507
|
level: t,
|
|
1508
1508
|
levels: n
|
|
1509
1509
|
}) {
|
|
1510
|
-
const r = n.length,
|
|
1511
|
-
return r > 1 &&
|
|
1510
|
+
const r = n.length, s = [];
|
|
1511
|
+
return r > 1 && s.push({
|
|
1512
1512
|
sid: "quality-level-auto",
|
|
1513
1513
|
label: "Auto",
|
|
1514
1514
|
value: -1,
|
|
1515
1515
|
selected: e || t === -1
|
|
1516
|
-
}), n.sort(function(
|
|
1517
|
-
const i =
|
|
1518
|
-
return i ===
|
|
1519
|
-
}), n.map((
|
|
1520
|
-
const { bitrate: u, height: i, index:
|
|
1521
|
-
|
|
1522
|
-
sid: `quality-level-${
|
|
1523
|
-
label: i ? `${i}p` :
|
|
1524
|
-
value:
|
|
1525
|
-
selected: r === 1 || !e &&
|
|
1516
|
+
}), n.sort(function(l, u) {
|
|
1517
|
+
const i = l.height || l.bitrate || 0, c = u.height || u.bitrate || 0;
|
|
1518
|
+
return i === c ? 0 : i > c ? 1 : -1;
|
|
1519
|
+
}), n.map((l) => {
|
|
1520
|
+
const { bitrate: u, height: i, index: c } = l;
|
|
1521
|
+
s.push({
|
|
1522
|
+
sid: `quality-level-${c}`,
|
|
1523
|
+
label: i ? `${i}p` : Wr(u),
|
|
1524
|
+
value: c,
|
|
1525
|
+
selected: r === 1 || !e && c === t
|
|
1526
1526
|
});
|
|
1527
|
-
}),
|
|
1527
|
+
}), s;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
const t = U((
|
|
1531
|
-
return
|
|
1532
|
-
const
|
|
1529
|
+
function Yr({ callback: e }) {
|
|
1530
|
+
const t = U((l) => l.delay), n = U((l) => l.startDate), r = n ? n.getTime() : 0, s = f((l) => l.eventEmitter);
|
|
1531
|
+
return A(() => {
|
|
1532
|
+
const l = () => e("timeUpdate", {
|
|
1533
1533
|
currentTime: tn(r, t),
|
|
1534
1534
|
duration: -1
|
|
1535
1535
|
});
|
|
1536
|
-
return
|
|
1537
|
-
|
|
1536
|
+
return s.on("timeUpdate", l), () => {
|
|
1537
|
+
s.off("timeUpdate", l);
|
|
1538
1538
|
};
|
|
1539
|
-
}, [e, t,
|
|
1539
|
+
}, [e, t, s, r]), /* @__PURE__ */ a.jsx(Qt, { callback: e });
|
|
1540
1540
|
}
|
|
1541
1541
|
function nn() {
|
|
1542
|
-
const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), r = f((i) => i.requestFullscreen),
|
|
1542
|
+
const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), r = f((i) => i.requestFullscreen), s = f((i) => i.setVolume), l = f((i) => i.volume), u = V(
|
|
1543
1543
|
(i) => {
|
|
1544
|
-
let
|
|
1544
|
+
let c = !1;
|
|
1545
1545
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
1546
1546
|
switch (i.code) {
|
|
1547
1547
|
case "ArrowUp":
|
|
1548
|
-
|
|
1548
|
+
s(l + 10 < 100 ? l + 10 : 100), c = !0;
|
|
1549
1549
|
break;
|
|
1550
1550
|
case "ArrowDown":
|
|
1551
|
-
|
|
1551
|
+
s(l - 10 > 0 ? l - 10 : 0), c = !0;
|
|
1552
1552
|
break;
|
|
1553
1553
|
case "KeyM":
|
|
1554
|
-
|
|
1554
|
+
s(l === 0 ? 100 : 0), c = !0;
|
|
1555
1555
|
break;
|
|
1556
1556
|
case "KeyF":
|
|
1557
|
-
n && (t ? e() : r(),
|
|
1557
|
+
n && (t ? e() : r(), c = !0);
|
|
1558
1558
|
break;
|
|
1559
1559
|
}
|
|
1560
|
-
|
|
1560
|
+
c && i.preventDefault();
|
|
1561
1561
|
}
|
|
1562
1562
|
},
|
|
1563
1563
|
[
|
|
@@ -1565,162 +1565,189 @@ function nn() {
|
|
|
1565
1565
|
t,
|
|
1566
1566
|
n,
|
|
1567
1567
|
r,
|
|
1568
|
-
|
|
1569
|
-
|
|
1568
|
+
s,
|
|
1569
|
+
l
|
|
1570
1570
|
]
|
|
1571
1571
|
);
|
|
1572
|
-
return
|
|
1572
|
+
return A(() => (document.addEventListener("keydown", u), () => {
|
|
1573
1573
|
document.removeEventListener("keydown", u);
|
|
1574
1574
|
}), [u]), null;
|
|
1575
1575
|
}
|
|
1576
1576
|
function qr() {
|
|
1577
|
-
const e = U((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), r = f((i) => i.getPauseTimeDiff),
|
|
1577
|
+
const e = U((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), r = f((i) => i.getPauseTimeDiff), s = f((i) => i.play), l = U((i) => i.setDelay), u = V(
|
|
1578
1578
|
(i) => {
|
|
1579
|
-
let
|
|
1579
|
+
let c = !1;
|
|
1580
1580
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
1581
1581
|
switch (i.code) {
|
|
1582
1582
|
case "ArrowLeft":
|
|
1583
|
-
|
|
1583
|
+
l(e + 10), c = !0;
|
|
1584
1584
|
break;
|
|
1585
1585
|
case "ArrowRight":
|
|
1586
|
-
|
|
1586
|
+
l(e - 10 > 0 ? e - 10 : 0), c = !0;
|
|
1587
1587
|
break;
|
|
1588
1588
|
case "Space":
|
|
1589
1589
|
if (t)
|
|
1590
1590
|
n();
|
|
1591
1591
|
else {
|
|
1592
1592
|
const d = r();
|
|
1593
|
-
d &&
|
|
1593
|
+
d && l(e + d), s();
|
|
1594
1594
|
}
|
|
1595
|
-
|
|
1595
|
+
c = !0;
|
|
1596
1596
|
break;
|
|
1597
1597
|
}
|
|
1598
|
-
|
|
1598
|
+
c && i.preventDefault();
|
|
1599
1599
|
}
|
|
1600
1600
|
},
|
|
1601
|
-
[e, r, t, n,
|
|
1601
|
+
[e, r, t, n, s, l]
|
|
1602
1602
|
);
|
|
1603
|
-
return
|
|
1603
|
+
return A(() => (document.addEventListener("keydown", u), () => {
|
|
1604
1604
|
document.removeEventListener("keydown", u);
|
|
1605
|
-
}), [u]), /* @__PURE__ */
|
|
1605
|
+
}), [u]), /* @__PURE__ */ a.jsx(nn, {});
|
|
1606
1606
|
}
|
|
1607
1607
|
function rn({ children: e }) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
1609
|
-
}
|
|
1610
|
-
function
|
|
1611
|
-
return /* @__PURE__ */
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1608
|
+
return /* @__PURE__ */ a.jsx(Sr, { children: e });
|
|
1609
|
+
}
|
|
1610
|
+
function Zr({ children: e }) {
|
|
1611
|
+
return /* @__PURE__ */ a.jsx(Lr, { children: /* @__PURE__ */ a.jsx(rn, { children: e }) });
|
|
1612
|
+
}
|
|
1613
|
+
const Kr = 50, Gr = 1e4;
|
|
1614
|
+
function Xr({ url: e, isLive: t, messages: n }) {
|
|
1615
|
+
const r = O(null), s = f((g) => g.level), l = f((g) => g.levels), u = f((g) => g.setLevel), i = f((g) => g.setLevels), c = f((g) => g.logLevel), d = f((g) => g.techRef), v = f((g) => g.setError), _ = O(0), p = O(null), D = V(
|
|
1616
|
+
(g) => {
|
|
1617
|
+
if (r.current && (r.current.nextLevel = g, u(null), l)) {
|
|
1618
|
+
const E = l.map((y) => he(F({}, y), {
|
|
1619
|
+
selected: y.value === g
|
|
1619
1620
|
}));
|
|
1620
|
-
i(
|
|
1621
|
+
i(E);
|
|
1621
1622
|
}
|
|
1622
1623
|
},
|
|
1623
|
-
[
|
|
1624
|
-
),
|
|
1625
|
-
|
|
1624
|
+
[l, u, i]
|
|
1625
|
+
), S = V(() => {
|
|
1626
|
+
const g = d.current;
|
|
1627
|
+
if (!g) return;
|
|
1626
1628
|
console.log("[Player][HLS] MEDIA_ATTACHING");
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
}, [e, d]),
|
|
1629
|
+
const E = document.createElement("source");
|
|
1630
|
+
E.src = e, E.type = "application/vnd.apple.mpegurl", E.dataset.id = "original-stream", g.appendChild(E), g.disableRemotePlayback = !1;
|
|
1631
|
+
}, [e, d]), C = V(() => {
|
|
1630
1632
|
if (!r.current) return;
|
|
1631
|
-
console.log("[Player][HLS] MANIFEST_LOADED"),
|
|
1632
|
-
const
|
|
1633
|
+
console.log("[Player][HLS] MANIFEST_LOADED"), v(null), p.current && (clearTimeout(p.current), p.current = null), _.current = 0;
|
|
1634
|
+
const g = r.current.levels, E = r.current.currentLevel, y = r.current.autoLevelEnabled;
|
|
1633
1635
|
i(
|
|
1634
|
-
|
|
1635
|
-
levels:
|
|
1636
|
-
const { bitrate:
|
|
1636
|
+
zr({
|
|
1637
|
+
levels: g.map((R, w) => {
|
|
1638
|
+
const { bitrate: z, height: H, width: N } = R;
|
|
1637
1639
|
return {
|
|
1638
|
-
bitrate:
|
|
1639
|
-
height:
|
|
1640
|
-
index:
|
|
1641
|
-
width:
|
|
1640
|
+
bitrate: z,
|
|
1641
|
+
height: H,
|
|
1642
|
+
index: w,
|
|
1643
|
+
width: N
|
|
1642
1644
|
};
|
|
1643
1645
|
}),
|
|
1644
|
-
level:
|
|
1645
|
-
isAuto:
|
|
1646
|
+
level: E,
|
|
1647
|
+
isAuto: y
|
|
1646
1648
|
})
|
|
1647
1649
|
);
|
|
1648
|
-
}, [
|
|
1650
|
+
}, [v, i]), b = V(() => {
|
|
1649
1651
|
if (!r.current) return;
|
|
1650
1652
|
console.log("[Player][HLS] LEVEL_SWITCHED");
|
|
1651
|
-
const
|
|
1652
|
-
if (
|
|
1653
|
-
let
|
|
1654
|
-
|
|
1653
|
+
const g = r.current.levels, E = r.current.currentLevel;
|
|
1654
|
+
if (g[E] ? JSON.stringify(g[E]) : null) {
|
|
1655
|
+
let R = "";
|
|
1656
|
+
g[E].height ? R = `${g[E].height}p` : g[E].bitrate && (R = `${g[E].bitrate}bps`), c(R);
|
|
1655
1657
|
}
|
|
1656
|
-
}, [
|
|
1658
|
+
}, [c]), T = V(
|
|
1657
1659
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1658
|
-
(
|
|
1659
|
-
if (r.current &&
|
|
1660
|
-
let
|
|
1661
|
-
switch (
|
|
1662
|
-
case
|
|
1663
|
-
|
|
1660
|
+
(g, E) => {
|
|
1661
|
+
if (r.current && E.fatal) {
|
|
1662
|
+
let y, R = "UNKNOWN_ERROR";
|
|
1663
|
+
switch (E.type) {
|
|
1664
|
+
case Q.ErrorTypes.NETWORK_ERROR:
|
|
1665
|
+
y = n.unableToPlay, console.log("[Player][HLS] NETWORK_ERROR", E), t ? (_.current < Kr && (p.current && clearTimeout(p.current), _.current += 1, p.current = setTimeout(() => {
|
|
1664
1666
|
if (r.current)
|
|
1665
1667
|
try {
|
|
1666
1668
|
console.log("[Player][HLS] Retrying stream..."), r.current.loadSource(e);
|
|
1667
|
-
} catch (
|
|
1668
|
-
console.error("[Player][HLS] Retry failed:",
|
|
1669
|
+
} catch (w) {
|
|
1670
|
+
console.error("[Player][HLS] Retry failed:", w);
|
|
1669
1671
|
}
|
|
1670
|
-
},
|
|
1672
|
+
}, Gr)), R = "LIVE_MANIFEST_LOAD_ERROR") : (r.current.startLoad(), R = "NETWORK_ERROR"), v({ message: y, code: R, tech: "hls" });
|
|
1671
1673
|
break;
|
|
1672
|
-
case
|
|
1674
|
+
case Q.ErrorTypes.MEDIA_ERROR:
|
|
1673
1675
|
r.current.recoverMediaError();
|
|
1674
1676
|
break;
|
|
1675
1677
|
}
|
|
1676
1678
|
}
|
|
1677
1679
|
},
|
|
1678
|
-
[t, e,
|
|
1679
|
-
),
|
|
1680
|
-
|
|
1681
|
-
|
|
1680
|
+
[t, e, v, n]
|
|
1681
|
+
), I = V(() => {
|
|
1682
|
+
const g = d.current;
|
|
1683
|
+
if (!g) return;
|
|
1684
|
+
const E = {
|
|
1682
1685
|
startLevel: -1,
|
|
1683
1686
|
maxBufferSize: 30 * 1024 * 1024
|
|
1684
1687
|
// 30MB
|
|
1685
1688
|
};
|
|
1686
|
-
|
|
1689
|
+
ur ? (E.backBufferLength = -1, E.enableWorker = !1) : t ? E.backBufferLength = 10 : E.backBufferLength = 60;
|
|
1687
1690
|
try {
|
|
1688
|
-
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(
|
|
1689
|
-
} catch (
|
|
1690
|
-
throw new Error(`Error initializing Hls: ${
|
|
1691
|
+
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(E)), console.log("[Player][HLS] Version", Q.version), r.current = new Q(E), r.current.on(Q.Events.MEDIA_ATTACHING, S), r.current.on(Q.Events.MANIFEST_LOADED, C), r.current.on(Q.Events.LEVEL_SWITCHED, b), r.current.on(Q.Events.ERROR, T), r.current.attachMedia(g), r.current.loadSource(e);
|
|
1692
|
+
} catch (y) {
|
|
1693
|
+
throw new Error(`Error initializing Hls: ${y}`);
|
|
1691
1694
|
}
|
|
1692
1695
|
}, [
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
L,
|
|
1696
|
+
S,
|
|
1697
|
+
C,
|
|
1696
1698
|
b,
|
|
1699
|
+
T,
|
|
1697
1700
|
t,
|
|
1698
1701
|
d,
|
|
1699
1702
|
e
|
|
1700
|
-
]),
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
}
|
|
1710
|
-
y.current && (clearTimeout(y.current), y.current = null), _.current = 0;
|
|
1703
|
+
]), j = V(() => {
|
|
1704
|
+
r.current && (r.current.off(Q.Events.MEDIA_ATTACHING, S), r.current.off(Q.Events.MANIFEST_LOADED, C), r.current.off(Q.Events.LEVEL_SWITCHED, b), r.current.off(Q.Events.ERROR, T), r.current.destroy(), r.current = null);
|
|
1705
|
+
const g = d.current;
|
|
1706
|
+
g && Array.from(g.children).filter(
|
|
1707
|
+
(y) => {
|
|
1708
|
+
var R;
|
|
1709
|
+
return ((R = y.dataset) == null ? void 0 : R.id) === "original-stream";
|
|
1710
|
+
}
|
|
1711
|
+
).forEach((y) => g.removeChild(y)), p.current && (clearTimeout(p.current), p.current = null), _.current = 0;
|
|
1711
1712
|
}, [
|
|
1712
|
-
|
|
1713
|
-
L,
|
|
1714
|
-
w,
|
|
1713
|
+
S,
|
|
1715
1714
|
b,
|
|
1715
|
+
C,
|
|
1716
|
+
T,
|
|
1716
1717
|
d
|
|
1717
1718
|
]);
|
|
1718
|
-
return
|
|
1719
|
-
|
|
1720
|
-
}, [
|
|
1719
|
+
return A(() => {
|
|
1720
|
+
s !== null && D(s);
|
|
1721
|
+
}, [s, D]), A(() => (Q.isSupported() && I(), j), [j, I]), null;
|
|
1722
|
+
}
|
|
1723
|
+
const Jr = 50, Qr = 1e4;
|
|
1724
|
+
function eo({
|
|
1725
|
+
url: e,
|
|
1726
|
+
isLive: t,
|
|
1727
|
+
messages: n
|
|
1728
|
+
}) {
|
|
1729
|
+
const r = f((v) => v.techRef), s = f((v) => v.setError), l = O(0), u = O(null), i = V(() => {
|
|
1730
|
+
const v = r.current;
|
|
1731
|
+
v && (v.src = e, v.load());
|
|
1732
|
+
}, [e, r]), c = V(() => {
|
|
1733
|
+
if (!r.current) return;
|
|
1734
|
+
const _ = n.unableToPlay, p = t ? "LIVE_MANIFEST_LOAD_ERROR" : "NETWORK_ERROR";
|
|
1735
|
+
console.log("[Player][Native HLS] ERROR", { message: _, code: p }), t && l.current < Jr ? (u.current && clearTimeout(u.current), l.current += 1, u.current = setTimeout(() => {
|
|
1736
|
+
console.log("[Player][Native HLS] Retrying stream..."), i();
|
|
1737
|
+
}, Qr)) : t || i(), s({ message: _, code: p, tech: "native" });
|
|
1738
|
+
}, [t, n.unableToPlay, s, r, i]), d = V(() => {
|
|
1739
|
+
s(null), u.current && (clearTimeout(u.current), u.current = null), l.current = 0;
|
|
1740
|
+
}, [s]);
|
|
1741
|
+
return A(() => {
|
|
1742
|
+
const v = r.current;
|
|
1743
|
+
if (v)
|
|
1744
|
+
return v.addEventListener("error", c), v.addEventListener("loadeddata", d), v.src = e, v.load(), () => {
|
|
1745
|
+
v.removeEventListener("error", c), v.removeEventListener("loadeddata", d), u.current && (clearTimeout(u.current), u.current = null), l.current = 0;
|
|
1746
|
+
};
|
|
1747
|
+
}, [e, c, d, r]), null;
|
|
1721
1748
|
}
|
|
1722
|
-
const
|
|
1723
|
-
playerVideo:
|
|
1749
|
+
const to = "_playerVideo_wc0sm_1", no = {
|
|
1750
|
+
playerVideo: to
|
|
1724
1751
|
};
|
|
1725
1752
|
function on({
|
|
1726
1753
|
url: e,
|
|
@@ -1728,81 +1755,84 @@ function on({
|
|
|
1728
1755
|
isMuted: n = !1,
|
|
1729
1756
|
messages: r
|
|
1730
1757
|
}) {
|
|
1731
|
-
const
|
|
1732
|
-
onTimeUpdate:
|
|
1758
|
+
const s = f((w) => w.destroy), l = f((w) => w.handleDurationChange), u = f((w) => w.handleEnd), i = f((w) => w.handleLoadedMetadata), c = f((w) => w.handleLoadStart), d = f((w) => w.handlePause), v = f((w) => w.handlePlay), _ = f((w) => w.handlePlaying), p = f((w) => w.handleSeeked), D = f((w) => w.handleSeeking), S = f((w) => w.handleTimeUpdate), C = f((w) => w.handleWaiting), b = f((w) => w.handleVolumeChange), T = f((w) => w.handleError), I = f((w) => w.techRef), j = O(null), g = () => t ? {
|
|
1759
|
+
onTimeUpdate: E
|
|
1733
1760
|
} : {
|
|
1734
|
-
onDurationChange:
|
|
1735
|
-
onSeeked:
|
|
1736
|
-
onSeeking:
|
|
1737
|
-
onTimeUpdate:
|
|
1738
|
-
},
|
|
1739
|
-
(!
|
|
1740
|
-
},
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1761
|
+
onDurationChange: l,
|
|
1762
|
+
onSeeked: p,
|
|
1763
|
+
onSeeking: D,
|
|
1764
|
+
onTimeUpdate: E
|
|
1765
|
+
}, E = () => {
|
|
1766
|
+
(!j.current || Date.now() - j.current >= 1e3) && (S(), j.current = Date.now());
|
|
1767
|
+
}, y = g(), R = Gn(
|
|
1768
|
+
() => typeof document != "undefined" && document.createElement("video").canPlayType("application/vnd.apple.mpegurl") !== "",
|
|
1769
|
+
[]
|
|
1770
|
+
);
|
|
1771
|
+
return A(() => () => {
|
|
1772
|
+
s();
|
|
1773
|
+
}, [s]), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1774
|
+
Je && R ? /* @__PURE__ */ a.jsx(eo, { isLive: t, url: e, messages: r }) : /* @__PURE__ */ a.jsx(Xr, { isLive: t, url: e, messages: r }),
|
|
1775
|
+
/* @__PURE__ */ a.jsx(
|
|
1746
1776
|
"video",
|
|
1747
|
-
|
|
1748
|
-
ref:
|
|
1749
|
-
className:
|
|
1777
|
+
F({
|
|
1778
|
+
ref: I,
|
|
1779
|
+
className: no.playerVideo,
|
|
1750
1780
|
playsInline: !0,
|
|
1751
1781
|
controls: !1,
|
|
1752
1782
|
muted: n,
|
|
1753
1783
|
preload: "auto",
|
|
1754
1784
|
crossOrigin: "anonymous",
|
|
1755
1785
|
onEnded: u,
|
|
1756
|
-
onError:
|
|
1786
|
+
onError: T,
|
|
1757
1787
|
onLoadedMetadata: i,
|
|
1758
|
-
onLoadStart:
|
|
1788
|
+
onLoadStart: c,
|
|
1759
1789
|
onPause: d,
|
|
1760
|
-
onPlay:
|
|
1790
|
+
onPlay: v,
|
|
1761
1791
|
onPlaying: _,
|
|
1762
|
-
onWaiting:
|
|
1763
|
-
onVolumeChange:
|
|
1792
|
+
onWaiting: C,
|
|
1793
|
+
onVolumeChange: b,
|
|
1764
1794
|
tabIndex: -1
|
|
1765
|
-
},
|
|
1795
|
+
}, y)
|
|
1766
1796
|
)
|
|
1767
1797
|
] });
|
|
1768
1798
|
}
|
|
1769
|
-
function
|
|
1770
|
-
const [n, r] =
|
|
1799
|
+
function ro({ url: e, messages: t }) {
|
|
1800
|
+
const [n, r] = K(null), s = U((u) => u.delay), l = V(async () => {
|
|
1771
1801
|
r(
|
|
1772
|
-
|
|
1802
|
+
s ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${s}.m3u8`) : e
|
|
1773
1803
|
);
|
|
1774
|
-
}, [
|
|
1775
|
-
return
|
|
1776
|
-
const u = requestAnimationFrame(() =>
|
|
1804
|
+
}, [s, e]);
|
|
1805
|
+
return A(() => {
|
|
1806
|
+
const u = requestAnimationFrame(() => l());
|
|
1777
1807
|
return () => cancelAnimationFrame(u);
|
|
1778
|
-
}, [
|
|
1808
|
+
}, [l]), n ? /* @__PURE__ */ a.jsx(on, { url: n, isLive: !0, messages: t }) : null;
|
|
1779
1809
|
}
|
|
1780
|
-
function
|
|
1781
|
-
return f((n) => n.isStarted) ? /* @__PURE__ */
|
|
1810
|
+
function oo({ url: e }) {
|
|
1811
|
+
return f((n) => n.isStarted) ? /* @__PURE__ */ a.jsx(io, { url: e }) : null;
|
|
1782
1812
|
}
|
|
1783
|
-
function
|
|
1784
|
-
const t = U((
|
|
1813
|
+
function io({ url: e }) {
|
|
1814
|
+
const t = U((l) => l.setViewerCount), n = O(null), r = (l) => {
|
|
1785
1815
|
try {
|
|
1786
|
-
return new URL(
|
|
1816
|
+
return new URL(l).pathname.split("/").filter((d) => d.length > 0)[0] || null;
|
|
1787
1817
|
} catch (u) {
|
|
1788
1818
|
return console.error("Failed to extract URI from player URL:", u), null;
|
|
1789
1819
|
}
|
|
1790
|
-
},
|
|
1791
|
-
var
|
|
1792
|
-
const
|
|
1793
|
-
if (!
|
|
1820
|
+
}, s = V(async () => {
|
|
1821
|
+
var c;
|
|
1822
|
+
const l = r(e);
|
|
1823
|
+
if (!l) {
|
|
1794
1824
|
console.error("Could not extract URI from URL:", e);
|
|
1795
1825
|
return;
|
|
1796
1826
|
}
|
|
1797
1827
|
n.current && n.current.abort(), n.current = new AbortController();
|
|
1798
|
-
const i = `https://${e.includes("staging") ? "stg" : "prd"}-fitnessanny.spectar.tv/analytics-api/v1/token-info/uri/${
|
|
1828
|
+
const i = `https://${e.includes("staging") ? "stg" : "prd"}-fitnessanny.spectar.tv/analytics-api/v1/token-info/uri/${l}`;
|
|
1799
1829
|
try {
|
|
1800
1830
|
const d = await fetch(i, {
|
|
1801
1831
|
signal: n.current.signal
|
|
1802
1832
|
});
|
|
1803
1833
|
if (!d.ok)
|
|
1804
1834
|
throw new Error(`HTTP error! status: ${d.status}`);
|
|
1805
|
-
const _ = (
|
|
1835
|
+
const _ = (c = (await d.json()).count) != null ? c : 0;
|
|
1806
1836
|
t(_);
|
|
1807
1837
|
} catch (d) {
|
|
1808
1838
|
if (d.name === "AbortError")
|
|
@@ -1810,43 +1840,43 @@ function Qr({ url: e }) {
|
|
|
1810
1840
|
console.error("Failed to fetch viewer count:", d), t(null);
|
|
1811
1841
|
}
|
|
1812
1842
|
}, [t, e]);
|
|
1813
|
-
return
|
|
1843
|
+
return A(() => (s(), () => {
|
|
1814
1844
|
n.current && n.current.abort();
|
|
1815
|
-
}), [
|
|
1845
|
+
}), [s, e]), xe(s, 15e3), null;
|
|
1816
1846
|
}
|
|
1817
|
-
function
|
|
1847
|
+
function so(e, {
|
|
1818
1848
|
defaultValue: t = !1,
|
|
1819
1849
|
initializeWithValue: n = !0
|
|
1820
1850
|
} = {}) {
|
|
1821
|
-
const r = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [
|
|
1851
|
+
const r = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [s, l] = K(() => n ? r(e) : t);
|
|
1822
1852
|
function u() {
|
|
1823
|
-
|
|
1853
|
+
l(r(e));
|
|
1824
1854
|
}
|
|
1825
|
-
return
|
|
1855
|
+
return Yt(() => {
|
|
1826
1856
|
if (typeof window == "undefined")
|
|
1827
1857
|
return;
|
|
1828
1858
|
const i = window.matchMedia(e);
|
|
1829
1859
|
return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
|
|
1830
1860
|
i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
|
|
1831
1861
|
};
|
|
1832
|
-
}, [e]),
|
|
1833
|
-
}
|
|
1834
|
-
const
|
|
1835
|
-
playbackButton:
|
|
1836
|
-
seekIndicator:
|
|
1837
|
-
seekIndicatorLeft:
|
|
1838
|
-
seekIndicatorRight:
|
|
1839
|
-
seekIndicatorVisible:
|
|
1840
|
-
},
|
|
1862
|
+
}, [e]), s;
|
|
1863
|
+
}
|
|
1864
|
+
const ao = "_playbackButton_lgsgw_1", co = "_seekIndicator_lgsgw_23", lo = "_seekIndicatorLeft_lgsgw_49", uo = "_seekIndicatorRight_lgsgw_53", fo = "_seekIndicatorVisible_lgsgw_57", me = {
|
|
1865
|
+
playbackButton: ao,
|
|
1866
|
+
seekIndicator: co,
|
|
1867
|
+
seekIndicatorLeft: lo,
|
|
1868
|
+
seekIndicatorRight: uo,
|
|
1869
|
+
seekIndicatorVisible: fo
|
|
1870
|
+
}, ho = 10;
|
|
1841
1871
|
function sn(i) {
|
|
1842
|
-
var
|
|
1872
|
+
var c = i, {
|
|
1843
1873
|
className: e,
|
|
1844
1874
|
onClick: t,
|
|
1845
1875
|
onForwardSeek: n,
|
|
1846
1876
|
onBackwardSeek: r,
|
|
1847
|
-
maxForwardTime:
|
|
1848
|
-
maxBackwardTime:
|
|
1849
|
-
} =
|
|
1877
|
+
maxForwardTime: s,
|
|
1878
|
+
maxBackwardTime: l
|
|
1879
|
+
} = c, u = re(c, [
|
|
1850
1880
|
"className",
|
|
1851
1881
|
"onClick",
|
|
1852
1882
|
"onForwardSeek",
|
|
@@ -1854,226 +1884,226 @@ function sn(i) {
|
|
|
1854
1884
|
"maxForwardTime",
|
|
1855
1885
|
"maxBackwardTime"
|
|
1856
1886
|
]);
|
|
1857
|
-
return
|
|
1858
|
-
|
|
1859
|
-
|
|
1887
|
+
return so("(pointer: coarse)") ? /* @__PURE__ */ a.jsx(
|
|
1888
|
+
vo,
|
|
1889
|
+
F({
|
|
1860
1890
|
className: e,
|
|
1861
|
-
maxForwardTime:
|
|
1862
|
-
maxBackwardTime:
|
|
1891
|
+
maxForwardTime: s,
|
|
1892
|
+
maxBackwardTime: l,
|
|
1863
1893
|
onForwardSeek: n,
|
|
1864
1894
|
onBackwardSeek: r
|
|
1865
1895
|
}, u)
|
|
1866
|
-
) : /* @__PURE__ */
|
|
1867
|
-
}
|
|
1868
|
-
function
|
|
1869
|
-
var
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
}, _ = (
|
|
1873
|
-
|
|
1874
|
-
t == null || t(
|
|
1896
|
+
) : /* @__PURE__ */ a.jsx(mo, F({ className: e, onClick: t }, u));
|
|
1897
|
+
}
|
|
1898
|
+
function mo(r) {
|
|
1899
|
+
var s = r, { className: e, onClick: t } = s, n = re(s, ["className", "onClick"]);
|
|
1900
|
+
const l = O(null), u = f((C) => C.exitFullscreen), i = f((C) => C.isFullscreen), c = f((C) => C.requestFullscreen), d = f((C) => C.resetIdle), v = (C) => {
|
|
1901
|
+
D() ? (p(), i ? u() : c()) : _(C);
|
|
1902
|
+
}, _ = (C) => {
|
|
1903
|
+
l.current = window.setTimeout(() => {
|
|
1904
|
+
t == null || t(C), p();
|
|
1875
1905
|
}, 200);
|
|
1876
|
-
},
|
|
1877
|
-
|
|
1878
|
-
},
|
|
1906
|
+
}, p = () => {
|
|
1907
|
+
l.current !== null && (window.clearTimeout(l.current), l.current = null);
|
|
1908
|
+
}, D = () => l.current !== null, S = () => {
|
|
1879
1909
|
d();
|
|
1880
1910
|
};
|
|
1881
|
-
return
|
|
1882
|
-
|
|
1883
|
-
}, []), /* @__PURE__ */
|
|
1911
|
+
return A(() => () => {
|
|
1912
|
+
p();
|
|
1913
|
+
}, []), /* @__PURE__ */ a.jsx(
|
|
1884
1914
|
"button",
|
|
1885
|
-
|
|
1886
|
-
onClick:
|
|
1887
|
-
onMouseMove:
|
|
1915
|
+
F({
|
|
1916
|
+
onClick: v,
|
|
1917
|
+
onMouseMove: S,
|
|
1888
1918
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1889
1919
|
"aria-label": "Player gestures"
|
|
1890
1920
|
}, n)
|
|
1891
1921
|
);
|
|
1892
1922
|
}
|
|
1893
|
-
function
|
|
1923
|
+
function vo(u) {
|
|
1894
1924
|
var i = u, {
|
|
1895
1925
|
className: e,
|
|
1896
1926
|
maxForwardTime: t,
|
|
1897
1927
|
maxBackwardTime: n,
|
|
1898
1928
|
onForwardSeek: r,
|
|
1899
|
-
onBackwardSeek:
|
|
1900
|
-
} = i,
|
|
1929
|
+
onBackwardSeek: s
|
|
1930
|
+
} = i, l = re(i, [
|
|
1901
1931
|
"className",
|
|
1902
1932
|
"maxForwardTime",
|
|
1903
1933
|
"maxBackwardTime",
|
|
1904
1934
|
"onForwardSeek",
|
|
1905
1935
|
"onBackwardSeek"
|
|
1906
1936
|
]);
|
|
1907
|
-
const
|
|
1937
|
+
const c = O(null), d = O({
|
|
1908
1938
|
single: null,
|
|
1909
1939
|
indicator: null,
|
|
1910
1940
|
accumulate: null
|
|
1911
|
-
}),
|
|
1912
|
-
if (!
|
|
1913
|
-
const
|
|
1914
|
-
if (!
|
|
1915
|
-
const
|
|
1916
|
-
if (
|
|
1941
|
+
}), v = O(null), _ = O(0), p = O(null), [D, S] = K({ visible: !1, direction: null, time: 0 }), C = f((y) => y.isIdle), b = f((y) => y.setIsIdle), T = f((y) => y.resetIdle), I = (y, R) => y < R / 2 ? "backward" : "forward", j = (y) => {
|
|
1942
|
+
if (!v.current) return;
|
|
1943
|
+
const R = y.changedTouches[0];
|
|
1944
|
+
if (!R) return;
|
|
1945
|
+
const w = Date.now(), z = v.current.getBoundingClientRect(), H = R.clientX - z.left, N = R.clientY - z.top;
|
|
1946
|
+
if (H < 0 || H > z.width || N < 0 || N > z.height)
|
|
1917
1947
|
return;
|
|
1918
|
-
const
|
|
1919
|
-
if (
|
|
1920
|
-
|
|
1921
|
-
const ne =
|
|
1948
|
+
const ee = c.current, G = ee ? w - ee.time : 1 / 0, q = I(H, z.width), oe = p.current !== null && p.current === q && ee !== null && G < 700 && Math.abs(H - ee.x) < 100;
|
|
1949
|
+
if (ee !== null && p.current === null && G < 300 && Math.abs(H - ee.x) < 50 || oe) {
|
|
1950
|
+
y.preventDefault(), y.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), T(), (p.current === null || p.current !== q) && (_.current = 0, p.current = q);
|
|
1951
|
+
const ne = q === "backward" ? n : t;
|
|
1922
1952
|
_.current = Math.min(
|
|
1923
|
-
_.current +
|
|
1953
|
+
_.current + ho,
|
|
1924
1954
|
ne != null ? ne : 1 / 0
|
|
1925
|
-
),
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1928
|
-
}, 500),
|
|
1955
|
+
), g(q, _.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1956
|
+
const Z = _.current;
|
|
1957
|
+
Z > 0 && (p.current === "backward" ? s == null || s(Z) : r == null || r(Z), T()), _.current = 0, p.current = null, c.current = null, E(), d.current.accumulate = null;
|
|
1958
|
+
}, 500), c.current = { time: w, x: H };
|
|
1929
1959
|
} else {
|
|
1930
|
-
|
|
1931
|
-
const ne =
|
|
1960
|
+
c.current = { time: w, x: H }, d.current.single && window.clearTimeout(d.current.single);
|
|
1961
|
+
const ne = p.current !== null ? 700 : 350;
|
|
1932
1962
|
d.current.single = window.setTimeout(() => {
|
|
1933
|
-
if (
|
|
1963
|
+
if (p.current === null) {
|
|
1934
1964
|
d.current.single = null;
|
|
1935
|
-
const
|
|
1936
|
-
|
|
1965
|
+
const Z = C;
|
|
1966
|
+
b(!Z), Z && T();
|
|
1937
1967
|
}
|
|
1938
|
-
|
|
1968
|
+
c.current = null;
|
|
1939
1969
|
}, ne);
|
|
1940
1970
|
}
|
|
1941
|
-
},
|
|
1942
|
-
|
|
1943
|
-
|
|
1971
|
+
}, g = (y, R) => {
|
|
1972
|
+
R !== 0 && (S({ visible: !0, direction: y, time: R }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
|
|
1973
|
+
E();
|
|
1944
1974
|
}, 700));
|
|
1945
|
-
},
|
|
1946
|
-
|
|
1975
|
+
}, E = () => {
|
|
1976
|
+
S({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
|
|
1947
1977
|
};
|
|
1948
|
-
return
|
|
1949
|
-
const
|
|
1978
|
+
return A(() => {
|
|
1979
|
+
const y = d.current;
|
|
1950
1980
|
return () => {
|
|
1951
|
-
|
|
1981
|
+
y != null && y.single && window.clearTimeout(y.single), y != null && y.indicator && window.clearTimeout(y.indicator), y != null && y.accumulate && window.clearTimeout(y.accumulate);
|
|
1952
1982
|
};
|
|
1953
|
-
}, []), /* @__PURE__ */
|
|
1954
|
-
/* @__PURE__ */
|
|
1983
|
+
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1984
|
+
/* @__PURE__ */ a.jsx(
|
|
1955
1985
|
"button",
|
|
1956
|
-
|
|
1957
|
-
ref:
|
|
1958
|
-
onTouchEnd:
|
|
1986
|
+
F({
|
|
1987
|
+
ref: v,
|
|
1988
|
+
onTouchEnd: j,
|
|
1959
1989
|
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1960
1990
|
"aria-label": "Player gestures"
|
|
1961
|
-
},
|
|
1991
|
+
}, l)
|
|
1962
1992
|
),
|
|
1963
|
-
|
|
1993
|
+
D.visible && /* @__PURE__ */ a.jsxs(
|
|
1964
1994
|
"div",
|
|
1965
1995
|
{
|
|
1966
|
-
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${
|
|
1996
|
+
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${D.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
|
|
1967
1997
|
children: [
|
|
1968
|
-
|
|
1969
|
-
Te(
|
|
1998
|
+
D.direction === "backward" ? "-" : "+",
|
|
1999
|
+
Te(D.time)
|
|
1970
2000
|
]
|
|
1971
2001
|
}
|
|
1972
2002
|
)
|
|
1973
2003
|
] });
|
|
1974
2004
|
}
|
|
1975
|
-
function
|
|
1976
|
-
const e = f((
|
|
1977
|
-
return /* @__PURE__ */
|
|
2005
|
+
function po() {
|
|
2006
|
+
const e = f((c) => c.isPlaying), t = f((c) => c.pause), n = f((c) => c.getPauseTimeDiff), r = f((c) => c.play), s = U((c) => c.delay), l = U((c) => c.setDelay), u = U((c) => c.startDate), i = u ? u.getTime() : 0;
|
|
2007
|
+
return /* @__PURE__ */ a.jsx(
|
|
1978
2008
|
sn,
|
|
1979
2009
|
{
|
|
1980
2010
|
onClick: () => {
|
|
1981
2011
|
if (e)
|
|
1982
2012
|
t();
|
|
1983
2013
|
else {
|
|
1984
|
-
const
|
|
1985
|
-
|
|
2014
|
+
const c = n();
|
|
2015
|
+
c && l(s + c), r();
|
|
1986
2016
|
}
|
|
1987
2017
|
},
|
|
1988
|
-
onBackwardSeek: (
|
|
1989
|
-
const d =
|
|
1990
|
-
|
|
2018
|
+
onBackwardSeek: (c) => {
|
|
2019
|
+
const d = s + c;
|
|
2020
|
+
l(d);
|
|
1991
2021
|
},
|
|
1992
|
-
onForwardSeek: (
|
|
1993
|
-
const d = Math.max(0,
|
|
1994
|
-
|
|
2022
|
+
onForwardSeek: (c) => {
|
|
2023
|
+
const d = Math.max(0, s - c);
|
|
2024
|
+
l(d);
|
|
1995
2025
|
},
|
|
1996
2026
|
maxBackwardTime: Math.floor(i),
|
|
1997
|
-
maxForwardTime: Math.floor(
|
|
2027
|
+
maxForwardTime: Math.floor(s)
|
|
1998
2028
|
}
|
|
1999
2029
|
);
|
|
2000
2030
|
}
|
|
2001
|
-
const
|
|
2002
|
-
playerButton:
|
|
2003
|
-
playerButtonCircle:
|
|
2031
|
+
const yo = "_playerButton_izwqq_1", go = "_playerButtonCircle_izwqq_42", Pt = {
|
|
2032
|
+
playerButton: yo,
|
|
2033
|
+
playerButtonCircle: go
|
|
2004
2034
|
}, ae = Ve(
|
|
2005
|
-
(
|
|
2006
|
-
var
|
|
2007
|
-
const u = e === "circle" ?
|
|
2008
|
-
return /* @__PURE__ */
|
|
2035
|
+
(s, r) => {
|
|
2036
|
+
var l = s, { shape: e = "circle", className: t } = l, n = re(l, ["shape", "className"]);
|
|
2037
|
+
const u = e === "circle" ? Pt.playerButtonCircle : "", i = [Pt.playerButton, u, t].filter(Boolean).join(" ");
|
|
2038
|
+
return /* @__PURE__ */ a.jsx("button", F({ ref: r, className: i }, n));
|
|
2009
2039
|
}
|
|
2010
2040
|
);
|
|
2011
2041
|
ae.displayName = "PlayerButton";
|
|
2012
|
-
const
|
|
2013
|
-
liveIndicator:
|
|
2014
|
-
liveIndicatorHasDelay:
|
|
2015
|
-
liveIndicatorNoDelay:
|
|
2042
|
+
const wo = "_liveIndicator_1jczn_1", _o = "_liveIndicatorHasDelay_1jczn_9", To = "_liveIndicatorNoDelay_1jczn_13", ke = {
|
|
2043
|
+
liveIndicator: wo,
|
|
2044
|
+
liveIndicatorHasDelay: _o,
|
|
2045
|
+
liveIndicatorNoDelay: To
|
|
2016
2046
|
};
|
|
2017
|
-
function
|
|
2047
|
+
function Eo(n) {
|
|
2018
2048
|
var r = n, { message: e } = r, t = re(r, ["message"]);
|
|
2019
|
-
const
|
|
2020
|
-
|
|
2021
|
-
},
|
|
2022
|
-
return /* @__PURE__ */
|
|
2023
|
-
/* @__PURE__ */
|
|
2049
|
+
const s = f((d) => d.restart), l = U((d) => d.delay), u = U((d) => d.setDelay), i = () => {
|
|
2050
|
+
l && (s(), u(0));
|
|
2051
|
+
}, c = l ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
|
|
2052
|
+
return /* @__PURE__ */ a.jsxs(ae, he(F({ onClick: i, shape: "square" }, t), { children: [
|
|
2053
|
+
/* @__PURE__ */ a.jsx("div", { className: c }),
|
|
2024
2054
|
e || "Live"
|
|
2025
2055
|
] }));
|
|
2026
2056
|
}
|
|
2027
2057
|
function an() {
|
|
2028
|
-
return /* @__PURE__ */
|
|
2058
|
+
return /* @__PURE__ */ a.jsx(
|
|
2029
2059
|
"svg",
|
|
2030
2060
|
{
|
|
2031
2061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2032
2062
|
viewBox: "0 0 24 24",
|
|
2033
2063
|
fill: "currentColor",
|
|
2034
|
-
children: /* @__PURE__ */
|
|
2064
|
+
children: /* @__PURE__ */ a.jsx("path", { d: "M6 5H8V19H6V5ZM16 5H18V19H16V5Z" })
|
|
2035
2065
|
}
|
|
2036
2066
|
);
|
|
2037
2067
|
}
|
|
2038
|
-
function
|
|
2039
|
-
return /* @__PURE__ */
|
|
2068
|
+
function cn() {
|
|
2069
|
+
return /* @__PURE__ */ a.jsx(
|
|
2040
2070
|
"svg",
|
|
2041
2071
|
{
|
|
2042
2072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2043
2073
|
viewBox: "0 0 24 24",
|
|
2044
2074
|
fill: "currentColor",
|
|
2045
|
-
children: /* @__PURE__ */
|
|
2075
|
+
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" })
|
|
2046
2076
|
}
|
|
2047
2077
|
);
|
|
2048
2078
|
}
|
|
2049
|
-
function
|
|
2050
|
-
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), r = f((i) => i.play),
|
|
2079
|
+
function xo() {
|
|
2080
|
+
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), r = f((i) => i.play), s = U((i) => i.delay), l = U((i) => i.setDelay), u = () => {
|
|
2051
2081
|
if (e)
|
|
2052
2082
|
t();
|
|
2053
2083
|
else {
|
|
2054
2084
|
const i = n();
|
|
2055
|
-
i &&
|
|
2085
|
+
i && l(s + i), r();
|
|
2056
2086
|
}
|
|
2057
2087
|
};
|
|
2058
|
-
return /* @__PURE__ */
|
|
2059
|
-
}
|
|
2060
|
-
const
|
|
2061
|
-
progressSlider:
|
|
2062
|
-
tipContainer:
|
|
2063
|
-
tipContainerVisible:
|
|
2064
|
-
tipContainerHidden:
|
|
2065
|
-
tipContent:
|
|
2066
|
-
},
|
|
2067
|
-
sliderRoot:
|
|
2068
|
-
sliderTrack:
|
|
2069
|
-
sliderRange:
|
|
2070
|
-
sliderThumb:
|
|
2071
|
-
}, Ae = Ve((
|
|
2072
|
-
var u =
|
|
2073
|
-
return /* @__PURE__ */
|
|
2088
|
+
return /* @__PURE__ */ a.jsx(ae, { onClick: u, children: e ? /* @__PURE__ */ a.jsx(an, {}) : /* @__PURE__ */ a.jsx(cn, {}) });
|
|
2089
|
+
}
|
|
2090
|
+
const Ro = "_progressSlider_hwzgf_1", Co = "_tipContainer_hwzgf_7", So = "_tipContainerVisible_hwzgf_17", Po = "_tipContainerHidden_hwzgf_22", bo = "_tipContent_hwzgf_27", se = {
|
|
2091
|
+
progressSlider: Ro,
|
|
2092
|
+
tipContainer: Co,
|
|
2093
|
+
tipContainerVisible: So,
|
|
2094
|
+
tipContainerHidden: Po,
|
|
2095
|
+
tipContent: bo
|
|
2096
|
+
}, Lo = "_sliderRoot_aeak6_1", jo = "_sliderTrack_aeak6_18", Io = "_sliderRange_aeak6_28", ko = "_sliderThumb_aeak6_37", De = {
|
|
2097
|
+
sliderRoot: Lo,
|
|
2098
|
+
sliderTrack: jo,
|
|
2099
|
+
sliderRange: Io,
|
|
2100
|
+
sliderThumb: ko
|
|
2101
|
+
}, Ae = Ve((l, s) => {
|
|
2102
|
+
var u = l, { max: e = 100, min: t = 0, className: n } = u, r = re(u, ["max", "min", "className"]);
|
|
2103
|
+
return /* @__PURE__ */ a.jsxs(
|
|
2074
2104
|
Le.Root,
|
|
2075
|
-
he(
|
|
2076
|
-
ref:
|
|
2105
|
+
he(F({
|
|
2106
|
+
ref: s,
|
|
2077
2107
|
min: t,
|
|
2078
2108
|
max: e,
|
|
2079
2109
|
"aria-label": "Player progress",
|
|
@@ -2085,8 +2115,8 @@ const go = "_progressSlider_hwzgf_1", wo = "_tipContainer_hwzgf_7", _o = "_tipCo
|
|
|
2085
2115
|
)
|
|
2086
2116
|
}, r), {
|
|
2087
2117
|
children: [
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ a.jsx(Le.Track, { className: De.sliderTrack, children: /* @__PURE__ */ a.jsx(Le.Range, { className: De.sliderRange }) }),
|
|
2119
|
+
/* @__PURE__ */ a.jsx(Le.Thumb, { className: De.sliderThumb })
|
|
2090
2120
|
]
|
|
2091
2121
|
})
|
|
2092
2122
|
);
|
|
@@ -2103,87 +2133,87 @@ function Fe(e) {
|
|
|
2103
2133
|
height: t.height * 100
|
|
2104
2134
|
} : t;
|
|
2105
2135
|
}
|
|
2106
|
-
const
|
|
2107
|
-
function
|
|
2108
|
-
const e = O(null), t = O(null), [n, r] =
|
|
2109
|
-
r(tn(
|
|
2110
|
-
}, [
|
|
2111
|
-
(
|
|
2112
|
-
),
|
|
2113
|
-
_(
|
|
2114
|
-
},
|
|
2115
|
-
if (
|
|
2116
|
-
const
|
|
2117
|
-
|
|
2118
|
-
}
|
|
2119
|
-
},
|
|
2120
|
-
(
|
|
2121
|
-
const
|
|
2122
|
-
if (
|
|
2123
|
-
const
|
|
2136
|
+
const bt = "vod-player-progress-bar";
|
|
2137
|
+
function Do() {
|
|
2138
|
+
const e = O(null), t = O(null), [n, r] = K(0), [s, l] = K(0), [u, i] = K(!1), [c, d] = K(-1), [v, _] = K(-1), p = U((N) => N.delay), D = U((N) => N.startDate), S = D ? D.getTime() : 0, C = (/* @__PURE__ */ new Date()).getTime(), b = U((N) => N.setDelay), T = f((N) => N.isPlaying), I = f((N) => N.addIdleLock), j = f((N) => N.removeIdleLock), g = V(() => {
|
|
2139
|
+
r(tn(S, p)), l(Br(S, C));
|
|
2140
|
+
}, [p, C, S]), E = parseFloat(
|
|
2141
|
+
(s ? (v !== -1 ? v : n) / s * 100 : 0).toFixed(1)
|
|
2142
|
+
), y = (N) => {
|
|
2143
|
+
_(s * (N[0] / 100)), I(bt);
|
|
2144
|
+
}, R = () => {
|
|
2145
|
+
if (v !== -1) {
|
|
2146
|
+
const N = en(S, v);
|
|
2147
|
+
b(N), _(-1), j(bt);
|
|
2148
|
+
}
|
|
2149
|
+
}, w = () => i(!0), z = () => i(!1), H = V(
|
|
2150
|
+
(N) => {
|
|
2151
|
+
const ee = e.current, G = t.current;
|
|
2152
|
+
if (ee && G) {
|
|
2153
|
+
const q = Fe(ee), oe = Fe(G), ue = (N.pageX || N.clientX) - q.left, ne = ue / q.width;
|
|
2124
2154
|
if (ne < 0) return;
|
|
2125
|
-
let
|
|
2126
|
-
|
|
2127
|
-
const pe =
|
|
2155
|
+
let Z = ue - oe.width / 2;
|
|
2156
|
+
Z < 0 && (Z = 0), Z > q.width - oe.width && (Z = -1), G.style.left = Z > -1 ? `${Z}px` : "auto", G.style.right = Z > -1 ? "auto" : "0px";
|
|
2157
|
+
const pe = s - ne * s;
|
|
2128
2158
|
d(pe > 0 ? pe : 0);
|
|
2129
2159
|
}
|
|
2130
|
-
|
|
2160
|
+
w();
|
|
2131
2161
|
},
|
|
2132
|
-
[
|
|
2162
|
+
[s]
|
|
2133
2163
|
);
|
|
2134
|
-
return
|
|
2135
|
-
const
|
|
2136
|
-
return () => cancelAnimationFrame(
|
|
2137
|
-
}, [
|
|
2138
|
-
/* @__PURE__ */
|
|
2164
|
+
return xe(() => g(), T ? 1e3 : null), A(() => {
|
|
2165
|
+
const N = requestAnimationFrame(() => g());
|
|
2166
|
+
return () => cancelAnimationFrame(N);
|
|
2167
|
+
}, [g]), /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
|
|
2168
|
+
/* @__PURE__ */ a.jsx(
|
|
2139
2169
|
Ae,
|
|
2140
2170
|
{
|
|
2141
2171
|
ref: e,
|
|
2142
|
-
value: [
|
|
2143
|
-
onPointerLeave:
|
|
2144
|
-
onPointerDown:
|
|
2145
|
-
onPointerMove:
|
|
2146
|
-
onValueChange:
|
|
2147
|
-
onValueCommit:
|
|
2172
|
+
value: [E],
|
|
2173
|
+
onPointerLeave: z,
|
|
2174
|
+
onPointerDown: z,
|
|
2175
|
+
onPointerMove: H,
|
|
2176
|
+
onValueChange: y,
|
|
2177
|
+
onValueCommit: R,
|
|
2148
2178
|
step: 0.1
|
|
2149
2179
|
}
|
|
2150
2180
|
),
|
|
2151
|
-
/* @__PURE__ */
|
|
2181
|
+
/* @__PURE__ */ a.jsx(
|
|
2152
2182
|
"div",
|
|
2153
2183
|
{
|
|
2154
2184
|
ref: t,
|
|
2155
2185
|
className: `${se.tipContainer} ${u ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
2156
|
-
children: /* @__PURE__ */
|
|
2186
|
+
children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: `-${Te(c)}` })
|
|
2157
2187
|
}
|
|
2158
2188
|
)
|
|
2159
2189
|
] });
|
|
2160
2190
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return /* @__PURE__ */
|
|
2191
|
+
function No() {
|
|
2192
|
+
return /* @__PURE__ */ a.jsx(
|
|
2163
2193
|
"svg",
|
|
2164
2194
|
{
|
|
2165
2195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2166
2196
|
viewBox: "0 0 24 24",
|
|
2167
2197
|
fill: "currentColor",
|
|
2168
|
-
children: /* @__PURE__ */
|
|
2198
|
+
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" })
|
|
2169
2199
|
}
|
|
2170
2200
|
);
|
|
2171
2201
|
}
|
|
2172
|
-
function
|
|
2173
|
-
const e = U((
|
|
2174
|
-
return /* @__PURE__ */
|
|
2202
|
+
function Mo() {
|
|
2203
|
+
const e = U((s) => s.startDate), t = U((s) => s.setDelay), n = e ? e.getTime() : 0, r = () => t(en(n));
|
|
2204
|
+
return /* @__PURE__ */ a.jsx(ae, { onClick: r, children: /* @__PURE__ */ a.jsx(No, {}) });
|
|
2175
2205
|
}
|
|
2176
|
-
const
|
|
2177
|
-
viewersContainer:
|
|
2178
|
-
viewersIndicator:
|
|
2179
|
-
viewersIcon:
|
|
2180
|
-
viewersCount:
|
|
2206
|
+
const Fo = "_viewersContainer_z1ihz_1", Vo = "_viewersIndicator_z1ihz_16", Ao = "_viewersIcon_z1ihz_24", Oo = "_viewersCount_z1ihz_28", Ne = {
|
|
2207
|
+
viewersContainer: Fo,
|
|
2208
|
+
viewersIndicator: Vo,
|
|
2209
|
+
viewersIcon: Ao,
|
|
2210
|
+
viewersCount: Oo
|
|
2181
2211
|
};
|
|
2182
|
-
function
|
|
2212
|
+
function Ho() {
|
|
2183
2213
|
const e = U((t) => t.viewerCount);
|
|
2184
|
-
return e ? /* @__PURE__ */
|
|
2185
|
-
/* @__PURE__ */
|
|
2186
|
-
/* @__PURE__ */
|
|
2214
|
+
return e ? /* @__PURE__ */ a.jsxs("div", { className: Ne.viewersContainer, children: [
|
|
2215
|
+
/* @__PURE__ */ a.jsx("span", { className: Ne.viewersIndicator }),
|
|
2216
|
+
/* @__PURE__ */ a.jsxs(
|
|
2187
2217
|
"svg",
|
|
2188
2218
|
{
|
|
2189
2219
|
className: Ne.viewersIcon,
|
|
@@ -2193,14 +2223,14 @@ function No() {
|
|
|
2193
2223
|
fill: "none",
|
|
2194
2224
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2195
2225
|
children: [
|
|
2196
|
-
/* @__PURE__ */
|
|
2226
|
+
/* @__PURE__ */ a.jsx(
|
|
2197
2227
|
"path",
|
|
2198
2228
|
{
|
|
2199
2229
|
d: "M8 7C9.10457 7 10 6.10457 10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5C6 6.10457 6.89543 7 8 7Z",
|
|
2200
2230
|
fill: "currentColor"
|
|
2201
2231
|
}
|
|
2202
2232
|
),
|
|
2203
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ a.jsx(
|
|
2204
2234
|
"path",
|
|
2205
2235
|
{
|
|
2206
2236
|
d: "M8 8C5.79086 8 4 9.79086 4 12V13H12V12C12 9.79086 10.2091 8 8 8Z",
|
|
@@ -2210,152 +2240,152 @@ function No() {
|
|
|
2210
2240
|
]
|
|
2211
2241
|
}
|
|
2212
2242
|
),
|
|
2213
|
-
/* @__PURE__ */
|
|
2243
|
+
/* @__PURE__ */ a.jsx("span", { className: Ne.viewersCount, children: e.toLocaleString() })
|
|
2214
2244
|
] }) : null;
|
|
2215
2245
|
}
|
|
2216
|
-
function
|
|
2246
|
+
function ln() {
|
|
2217
2247
|
const e = f((n) => n.error);
|
|
2218
2248
|
if (!e) return null;
|
|
2219
2249
|
const t = e.code === "LIVE_MANIFEST_LOAD_ERROR";
|
|
2220
|
-
return /* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ a.jsx(
|
|
2221
2251
|
"div",
|
|
2222
2252
|
{
|
|
2223
2253
|
className: `${ie.playerNotice} ${t ? ie.playerNoticeLowZIndex : ""}`,
|
|
2224
|
-
children: /* @__PURE__ */
|
|
2254
|
+
children: /* @__PURE__ */ a.jsx("h3", { className: ie.playerNoticeTitle, children: e.message })
|
|
2225
2255
|
}
|
|
2226
2256
|
);
|
|
2227
2257
|
}
|
|
2228
|
-
const
|
|
2229
|
-
playerContainer:
|
|
2230
|
-
controlsTop:
|
|
2231
|
-
controlsBottom:
|
|
2232
|
-
controlsContainer:
|
|
2233
|
-
controlsRow:
|
|
2234
|
-
controlsSection:
|
|
2235
|
-
controlsSectionStart:
|
|
2236
|
-
controlsSectionEnd:
|
|
2258
|
+
const $o = "_playerContainer_146tx_1", Uo = "_controlsTop_146tx_12", Bo = "_controlsBottom_146tx_29", Wo = "_controlsContainer_146tx_45", zo = "_controlsRow_146tx_61", Yo = "_controlsSection_146tx_68", qo = "_controlsSectionStart_146tx_78", Zo = "_controlsSectionEnd_146tx_82", Y = {
|
|
2259
|
+
playerContainer: $o,
|
|
2260
|
+
controlsTop: Uo,
|
|
2261
|
+
controlsBottom: Bo,
|
|
2262
|
+
controlsContainer: Wo,
|
|
2263
|
+
controlsRow: zo,
|
|
2264
|
+
controlsSection: Yo,
|
|
2265
|
+
controlsSectionStart: qo,
|
|
2266
|
+
controlsSectionEnd: Zo
|
|
2237
2267
|
};
|
|
2238
|
-
function
|
|
2239
|
-
return /* @__PURE__ */
|
|
2268
|
+
function Ko() {
|
|
2269
|
+
return /* @__PURE__ */ a.jsx(
|
|
2240
2270
|
"svg",
|
|
2241
2271
|
{
|
|
2242
2272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2243
2273
|
viewBox: "0 0 24 24",
|
|
2244
2274
|
fill: "currentColor",
|
|
2245
|
-
children: /* @__PURE__ */
|
|
2275
|
+
children: /* @__PURE__ */ a.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
2246
2276
|
}
|
|
2247
2277
|
);
|
|
2248
2278
|
}
|
|
2249
|
-
function
|
|
2250
|
-
return /* @__PURE__ */
|
|
2279
|
+
function Go() {
|
|
2280
|
+
return /* @__PURE__ */ a.jsx(
|
|
2251
2281
|
"svg",
|
|
2252
2282
|
{
|
|
2253
2283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2254
2284
|
viewBox: "0 0 24 24",
|
|
2255
2285
|
fill: "currentColor",
|
|
2256
|
-
children: /* @__PURE__ */
|
|
2286
|
+
children: /* @__PURE__ */ a.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
2257
2287
|
}
|
|
2258
2288
|
);
|
|
2259
2289
|
}
|
|
2260
2290
|
function un() {
|
|
2261
|
-
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), r = f((d) => d.requestFullscreen),
|
|
2291
|
+
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), r = f((d) => d.requestFullscreen), s = f((d) => d.setIsFullscreen), l = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = V(
|
|
2262
2292
|
(d) => {
|
|
2263
|
-
d.stopPropagation(),
|
|
2293
|
+
d.stopPropagation(), s(dr());
|
|
2264
2294
|
},
|
|
2265
|
-
[
|
|
2266
|
-
),
|
|
2295
|
+
[s]
|
|
2296
|
+
), c = () => {
|
|
2267
2297
|
n ? t() : r();
|
|
2268
2298
|
};
|
|
2269
|
-
return
|
|
2270
|
-
const d =
|
|
2299
|
+
return A(() => {
|
|
2300
|
+
const d = Je ? u.current : e.current;
|
|
2271
2301
|
if (d)
|
|
2272
|
-
return
|
|
2273
|
-
}, [e, i, u]),
|
|
2274
|
-
|
|
2275
|
-
}, [
|
|
2276
|
-
}
|
|
2277
|
-
const
|
|
2278
|
-
idleCheckContainer:
|
|
2279
|
-
idleCheckContainerIdle:
|
|
2280
|
-
idleCheckContainerActive:
|
|
2281
|
-
},
|
|
2302
|
+
return mr(d, i);
|
|
2303
|
+
}, [e, i, u]), A(() => {
|
|
2304
|
+
l(!0);
|
|
2305
|
+
}, [l]), /* @__PURE__ */ a.jsx(ae, { onClick: c, children: n ? /* @__PURE__ */ a.jsx(Go, {}) : /* @__PURE__ */ a.jsx(Ko, {}) });
|
|
2306
|
+
}
|
|
2307
|
+
const Xo = "_idleCheckContainer_crh2s_1", Jo = "_idleCheckContainerIdle_crh2s_5", Qo = "_idleCheckContainerActive_crh2s_11", Ke = {
|
|
2308
|
+
idleCheckContainer: Xo,
|
|
2309
|
+
idleCheckContainerIdle: Jo,
|
|
2310
|
+
idleCheckContainerActive: Qo
|
|
2311
|
+
}, ei = 5 * 1e3;
|
|
2282
2312
|
function dn({ children: e }) {
|
|
2283
|
-
const t = O(null), n = f((
|
|
2284
|
-
|
|
2285
|
-
}, []), d =
|
|
2286
|
-
|
|
2287
|
-
}, [
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
}), [
|
|
2291
|
-
const
|
|
2313
|
+
const t = O(null), n = f((p) => p.isIdle), r = f((p) => p.setIsIdle), s = O(null), u = f((p) => p.idleLocks).size, i = f((p) => p.eventEmitter), c = V(() => {
|
|
2314
|
+
s.current !== null && (window.clearTimeout(s.current), s.current = null);
|
|
2315
|
+
}, []), d = V(() => {
|
|
2316
|
+
c(), s.current = window.setTimeout(() => r(!0), ei);
|
|
2317
|
+
}, [c, r]);
|
|
2318
|
+
A(() => (r(!1), d(), () => {
|
|
2319
|
+
c();
|
|
2320
|
+
}), [c, r, d]), A(() => {
|
|
2321
|
+
const p = () => {
|
|
2292
2322
|
r(!1), d();
|
|
2293
2323
|
};
|
|
2294
|
-
return i.on("resetIdle",
|
|
2295
|
-
i.off("resetIdle",
|
|
2324
|
+
return i.on("resetIdle", p), () => {
|
|
2325
|
+
i.off("resetIdle", p);
|
|
2296
2326
|
};
|
|
2297
2327
|
}, [i, r, d]);
|
|
2298
|
-
const
|
|
2299
|
-
return /* @__PURE__ */
|
|
2328
|
+
const v = n && !u, _ = `${Ke.idleCheckContainer} ${v ? Ke.idleCheckContainerIdle : Ke.idleCheckContainerActive}`;
|
|
2329
|
+
return /* @__PURE__ */ a.jsx("div", { ref: t, className: _, children: e });
|
|
2300
2330
|
}
|
|
2301
|
-
const
|
|
2302
|
-
spinner:
|
|
2331
|
+
const ti = "_spinner_oo4hi_10", ni = {
|
|
2332
|
+
spinner: ti
|
|
2303
2333
|
};
|
|
2304
|
-
function
|
|
2305
|
-
return /* @__PURE__ */
|
|
2334
|
+
function ri(e) {
|
|
2335
|
+
return /* @__PURE__ */ a.jsx("div", F({ className: ni.spinner }, e));
|
|
2306
2336
|
}
|
|
2307
|
-
function
|
|
2308
|
-
const [n, r] =
|
|
2309
|
-
return
|
|
2310
|
-
const
|
|
2337
|
+
function oi(e, t = 500) {
|
|
2338
|
+
const [n, r] = K(e);
|
|
2339
|
+
return A(() => {
|
|
2340
|
+
const s = window.setTimeout(() => r(e), t);
|
|
2311
2341
|
return () => {
|
|
2312
|
-
window.clearTimeout(
|
|
2342
|
+
window.clearTimeout(s);
|
|
2313
2343
|
};
|
|
2314
2344
|
}, [e, t]), n;
|
|
2315
2345
|
}
|
|
2316
|
-
const
|
|
2317
|
-
loadingContainer:
|
|
2346
|
+
const ii = "_loadingContainer_v9v7r_1", si = {
|
|
2347
|
+
loadingContainer: ii
|
|
2318
2348
|
};
|
|
2319
2349
|
function fn(n) {
|
|
2320
2350
|
var r = n, { style: e } = r, t = re(r, ["style"]);
|
|
2321
|
-
const
|
|
2322
|
-
return
|
|
2351
|
+
const s = f((u) => u.isLoading);
|
|
2352
|
+
return oi(s, 100) ? /* @__PURE__ */ a.jsx("div", he(F({ className: si.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(ri, {}) })) : null;
|
|
2323
2353
|
}
|
|
2324
2354
|
function hn() {
|
|
2325
|
-
return /* @__PURE__ */
|
|
2355
|
+
return /* @__PURE__ */ a.jsx(
|
|
2326
2356
|
"svg",
|
|
2327
2357
|
{
|
|
2328
2358
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2329
2359
|
viewBox: "0 0 24 24",
|
|
2330
2360
|
fill: "currentColor",
|
|
2331
|
-
children: /* @__PURE__ */
|
|
2361
|
+
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" })
|
|
2332
2362
|
}
|
|
2333
2363
|
);
|
|
2334
2364
|
}
|
|
2335
|
-
function
|
|
2336
|
-
return /* @__PURE__ */
|
|
2365
|
+
function ai() {
|
|
2366
|
+
return /* @__PURE__ */ a.jsx(
|
|
2337
2367
|
"svg",
|
|
2338
2368
|
{
|
|
2339
2369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2340
2370
|
viewBox: "0 0 24 24",
|
|
2341
2371
|
fill: "currentColor",
|
|
2342
|
-
children: /* @__PURE__ */
|
|
2372
|
+
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" })
|
|
2343
2373
|
}
|
|
2344
2374
|
);
|
|
2345
2375
|
}
|
|
2346
|
-
const
|
|
2347
|
-
dropdownMenuContent:
|
|
2348
|
-
dropdownMenuItem:
|
|
2349
|
-
scrollAreaRoot:
|
|
2350
|
-
scrollAreaViewport:
|
|
2351
|
-
scrollAreaScrollbar:
|
|
2352
|
-
scrollAreaThumb:
|
|
2353
|
-
}, mn =
|
|
2354
|
-
var u =
|
|
2355
|
-
return /* @__PURE__ */
|
|
2356
|
-
|
|
2357
|
-
he(
|
|
2358
|
-
ref:
|
|
2376
|
+
const ci = "_dropdownMenuContent_zi433_1", li = "_dropdownMenuItem_zi433_77", ui = "_scrollAreaRoot_zi433_120", di = "_scrollAreaViewport_zi433_127", fi = "_scrollAreaScrollbar_zi433_133", hi = "_scrollAreaThumb_zi433_160", ve = {
|
|
2377
|
+
dropdownMenuContent: ci,
|
|
2378
|
+
dropdownMenuItem: li,
|
|
2379
|
+
scrollAreaRoot: ui,
|
|
2380
|
+
scrollAreaViewport: di,
|
|
2381
|
+
scrollAreaScrollbar: fi,
|
|
2382
|
+
scrollAreaThumb: hi
|
|
2383
|
+
}, mn = Ee.Root, vn = Ee.Trigger, pn = Ee.Portal, et = Ve((l, s) => {
|
|
2384
|
+
var u = l, { sideOffset: e = 4, className: t, children: n } = u, r = re(u, ["sideOffset", "className", "children"]);
|
|
2385
|
+
return /* @__PURE__ */ a.jsx(
|
|
2386
|
+
Ee.Content,
|
|
2387
|
+
he(F({
|
|
2388
|
+
ref: s,
|
|
2359
2389
|
sideOffset: e,
|
|
2360
2390
|
className: [ve.dropdownMenuContent, t].filter(Boolean).join(" "),
|
|
2361
2391
|
onOpenAutoFocus: (i) => {
|
|
@@ -2365,20 +2395,20 @@ const ni = "_dropdownMenuContent_zi433_1", ri = "_dropdownMenuItem_zi433_77", oi
|
|
|
2365
2395
|
i.preventDefault();
|
|
2366
2396
|
}
|
|
2367
2397
|
}, r), {
|
|
2368
|
-
children: /* @__PURE__ */
|
|
2398
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
2369
2399
|
je.Root,
|
|
2370
2400
|
{
|
|
2371
2401
|
className: ve.scrollAreaRoot,
|
|
2372
2402
|
type: "always",
|
|
2373
2403
|
scrollHideDelay: 0,
|
|
2374
2404
|
children: [
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ a.jsx(je.Viewport, { className: ve.scrollAreaViewport, children: n }),
|
|
2406
|
+
/* @__PURE__ */ a.jsx(
|
|
2377
2407
|
je.Scrollbar,
|
|
2378
2408
|
{
|
|
2379
2409
|
className: ve.scrollAreaScrollbar,
|
|
2380
2410
|
orientation: "vertical",
|
|
2381
|
-
children: /* @__PURE__ */
|
|
2411
|
+
children: /* @__PURE__ */ a.jsx(je.Thumb, { className: ve.scrollAreaThumb })
|
|
2382
2412
|
}
|
|
2383
2413
|
)
|
|
2384
2414
|
]
|
|
@@ -2388,16 +2418,16 @@ const ni = "_dropdownMenuContent_zi433_1", ri = "_dropdownMenuItem_zi433_77", oi
|
|
|
2388
2418
|
);
|
|
2389
2419
|
});
|
|
2390
2420
|
et.displayName = "PlayerMenuContent";
|
|
2391
|
-
const tt = Ve((
|
|
2392
|
-
var
|
|
2393
|
-
const u = (
|
|
2394
|
-
t == null || t(
|
|
2395
|
-
}, i = (
|
|
2396
|
-
(
|
|
2421
|
+
const tt = Ve((s, r) => {
|
|
2422
|
+
var l = s, { className: e, onClick: t } = l, n = re(l, ["className", "onClick"]);
|
|
2423
|
+
const u = (c) => {
|
|
2424
|
+
t == null || t(c);
|
|
2425
|
+
}, i = (c) => {
|
|
2426
|
+
(c.key === "Enter" || c.key === " ") && (c.preventDefault(), t == null || t(c));
|
|
2397
2427
|
};
|
|
2398
|
-
return /* @__PURE__ */
|
|
2428
|
+
return /* @__PURE__ */ a.jsx(Ee.Close, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
2399
2429
|
"div",
|
|
2400
|
-
|
|
2430
|
+
F({
|
|
2401
2431
|
ref: r,
|
|
2402
2432
|
className: [ve.dropdownMenuItem, e].filter(Boolean).join(" "),
|
|
2403
2433
|
role: "menuitem",
|
|
@@ -2410,193 +2440,193 @@ const tt = Ve((a, r) => {
|
|
|
2410
2440
|
tt.displayName = "PlayerMenuItem";
|
|
2411
2441
|
const Lt = "quality";
|
|
2412
2442
|
function yn() {
|
|
2413
|
-
const [e, t] =
|
|
2414
|
-
(
|
|
2415
|
-
t(
|
|
2443
|
+
const [e, t] = K(!1), n = f((c) => c.containerRef), r = f((c) => c.addIdleLock), s = f((c) => c.removeIdleLock), l = f((c) => c.levels), u = f((c) => c.setLevel), i = V(
|
|
2444
|
+
(c) => {
|
|
2445
|
+
t(c), c ? r(Lt) : s(Lt);
|
|
2416
2446
|
},
|
|
2417
|
-
[r,
|
|
2447
|
+
[r, s]
|
|
2418
2448
|
);
|
|
2419
|
-
return !
|
|
2420
|
-
/* @__PURE__ */
|
|
2421
|
-
/* @__PURE__ */
|
|
2449
|
+
return !l || l.length === 0 ? null : /* @__PURE__ */ a.jsxs(mn, { open: e, onOpenChange: i, children: [
|
|
2450
|
+
/* @__PURE__ */ a.jsx(vn, { asChild: !0, children: /* @__PURE__ */ a.jsx(ae, { children: /* @__PURE__ */ a.jsx(ai, {}) }) }),
|
|
2451
|
+
/* @__PURE__ */ a.jsx(pn, { container: n.current, children: /* @__PURE__ */ a.jsx(et, { side: "top", align: "end", children: l.map((c) => /* @__PURE__ */ a.jsxs(
|
|
2422
2452
|
tt,
|
|
2423
2453
|
{
|
|
2424
|
-
onClick: () => u(
|
|
2454
|
+
onClick: () => u(c.value),
|
|
2425
2455
|
children: [
|
|
2426
|
-
|
|
2427
|
-
|
|
2456
|
+
c.label,
|
|
2457
|
+
c.selected && /* @__PURE__ */ a.jsx(hn, {})
|
|
2428
2458
|
]
|
|
2429
2459
|
},
|
|
2430
|
-
|
|
2460
|
+
c.sid
|
|
2431
2461
|
)) }) })
|
|
2432
2462
|
] });
|
|
2433
2463
|
}
|
|
2434
|
-
function
|
|
2435
|
-
return /* @__PURE__ */
|
|
2464
|
+
function mi() {
|
|
2465
|
+
return /* @__PURE__ */ a.jsx(
|
|
2436
2466
|
"svg",
|
|
2437
2467
|
{
|
|
2438
2468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2439
2469
|
viewBox: "0 0 24 24",
|
|
2440
2470
|
fill: "currentColor",
|
|
2441
|
-
children: /* @__PURE__ */
|
|
2471
|
+
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" })
|
|
2442
2472
|
}
|
|
2443
2473
|
);
|
|
2444
2474
|
}
|
|
2445
|
-
function
|
|
2446
|
-
return /* @__PURE__ */
|
|
2475
|
+
function vi() {
|
|
2476
|
+
return /* @__PURE__ */ a.jsx(
|
|
2447
2477
|
"svg",
|
|
2448
2478
|
{
|
|
2449
2479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2450
2480
|
viewBox: "0 0 24 24",
|
|
2451
2481
|
fill: "currentColor",
|
|
2452
|
-
children: /* @__PURE__ */
|
|
2482
|
+
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" })
|
|
2453
2483
|
}
|
|
2454
2484
|
);
|
|
2455
2485
|
}
|
|
2456
|
-
function
|
|
2457
|
-
return /* @__PURE__ */
|
|
2486
|
+
function pi() {
|
|
2487
|
+
return /* @__PURE__ */ a.jsx(
|
|
2458
2488
|
"svg",
|
|
2459
2489
|
{
|
|
2460
2490
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2461
2491
|
viewBox: "0 0 24 24",
|
|
2462
2492
|
fill: "currentColor",
|
|
2463
|
-
children: /* @__PURE__ */
|
|
2493
|
+
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" })
|
|
2464
2494
|
}
|
|
2465
2495
|
);
|
|
2466
2496
|
}
|
|
2467
|
-
const
|
|
2468
|
-
volumeContainer:
|
|
2469
|
-
volumeSlider:
|
|
2497
|
+
const yi = "_volumeContainer_4d6jg_1", gi = "_volumeSlider_4d6jg_8", jt = {
|
|
2498
|
+
volumeContainer: yi,
|
|
2499
|
+
volumeSlider: gi
|
|
2470
2500
|
}, It = "volume";
|
|
2471
2501
|
function gn() {
|
|
2472
|
-
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), r = f((i) => i.removeIdleLock),
|
|
2502
|
+
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), r = f((i) => i.removeIdleLock), s = (i) => {
|
|
2473
2503
|
e(i[0]), n(It);
|
|
2474
|
-
},
|
|
2504
|
+
}, l = () => {
|
|
2475
2505
|
r(It);
|
|
2476
2506
|
}, u = () => e(t ? 0 : 100);
|
|
2477
|
-
return /* @__PURE__ */
|
|
2478
|
-
/* @__PURE__ */
|
|
2479
|
-
/* @__PURE__ */
|
|
2507
|
+
return /* @__PURE__ */ a.jsxs("div", { className: jt.volumeContainer, children: [
|
|
2508
|
+
/* @__PURE__ */ a.jsx(ae, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx(mi, {}) : /* @__PURE__ */ a.jsx(vi, {}) : /* @__PURE__ */ a.jsx(pi, {}) }),
|
|
2509
|
+
/* @__PURE__ */ a.jsx("div", { className: jt.volumeSlider, children: /* @__PURE__ */ a.jsx(
|
|
2480
2510
|
Ae,
|
|
2481
2511
|
{
|
|
2482
2512
|
value: [t],
|
|
2483
|
-
onValueChange:
|
|
2484
|
-
onValueCommit:
|
|
2513
|
+
onValueChange: s,
|
|
2514
|
+
onValueCommit: l
|
|
2485
2515
|
}
|
|
2486
2516
|
) })
|
|
2487
2517
|
] });
|
|
2488
2518
|
}
|
|
2489
|
-
function
|
|
2490
|
-
return /* @__PURE__ */
|
|
2519
|
+
function Ai(e) {
|
|
2520
|
+
return /* @__PURE__ */ a.jsx(Zr, { children: /* @__PURE__ */ a.jsx(wi, F({}, e)) });
|
|
2491
2521
|
}
|
|
2492
|
-
function
|
|
2493
|
-
var
|
|
2494
|
-
const r = f((d) => d.containerRef),
|
|
2522
|
+
function wi({ url: e, messages: t = {}, onEvent: n }) {
|
|
2523
|
+
var l, u, i, c;
|
|
2524
|
+
const r = f((d) => d.containerRef), s = {
|
|
2495
2525
|
eventNotStarted: "Event has not started yet.",
|
|
2496
2526
|
eventStartingSoon: "Starting in few seconds...",
|
|
2497
2527
|
unableToPlay: "Unable to play the live stream. Please try again later."
|
|
2498
2528
|
};
|
|
2499
|
-
return
|
|
2529
|
+
return A(() => {
|
|
2500
2530
|
console.log(`[Player][Live] Version: ${Qe.version}`);
|
|
2501
|
-
}, []), /* @__PURE__ */
|
|
2531
|
+
}, []), /* @__PURE__ */ a.jsxs(
|
|
2502
2532
|
"div",
|
|
2503
2533
|
{
|
|
2504
2534
|
ref: r,
|
|
2505
|
-
className:
|
|
2535
|
+
className: Y.playerContainer,
|
|
2506
2536
|
children: [
|
|
2507
|
-
/* @__PURE__ */
|
|
2508
|
-
|
|
2537
|
+
/* @__PURE__ */ a.jsxs(
|
|
2538
|
+
Hr,
|
|
2509
2539
|
{
|
|
2510
2540
|
url: e,
|
|
2511
2541
|
messages: {
|
|
2512
|
-
eventNotStarted: (
|
|
2513
|
-
eventStartingSoon: (u = t == null ? void 0 : t.eventStartingSoon) != null ? u :
|
|
2514
|
-
unableToPlay: (i = t == null ? void 0 : t.unableToPlay) != null ? i :
|
|
2542
|
+
eventNotStarted: (l = t == null ? void 0 : t.eventNotStarted) != null ? l : s.eventNotStarted,
|
|
2543
|
+
eventStartingSoon: (u = t == null ? void 0 : t.eventStartingSoon) != null ? u : s.eventStartingSoon,
|
|
2544
|
+
unableToPlay: (i = t == null ? void 0 : t.unableToPlay) != null ? i : s.unableToPlay
|
|
2515
2545
|
},
|
|
2516
2546
|
children: [
|
|
2517
|
-
/* @__PURE__ */
|
|
2518
|
-
|
|
2547
|
+
/* @__PURE__ */ a.jsx(
|
|
2548
|
+
ro,
|
|
2519
2549
|
{
|
|
2520
2550
|
url: e,
|
|
2521
2551
|
messages: {
|
|
2522
|
-
unableToPlay: (
|
|
2552
|
+
unableToPlay: (c = t == null ? void 0 : t.unableToPlay) != null ? c : s.unableToPlay
|
|
2523
2553
|
}
|
|
2524
2554
|
}
|
|
2525
2555
|
),
|
|
2526
|
-
/* @__PURE__ */
|
|
2527
|
-
/* @__PURE__ */
|
|
2528
|
-
/* @__PURE__ */
|
|
2529
|
-
/* @__PURE__ */
|
|
2530
|
-
/* @__PURE__ */
|
|
2531
|
-
/* @__PURE__ */
|
|
2532
|
-
/* @__PURE__ */
|
|
2533
|
-
/* @__PURE__ */
|
|
2534
|
-
/* @__PURE__ */
|
|
2556
|
+
/* @__PURE__ */ a.jsx(ln, {}),
|
|
2557
|
+
/* @__PURE__ */ a.jsx(fn, {}),
|
|
2558
|
+
/* @__PURE__ */ a.jsx(po, {}),
|
|
2559
|
+
/* @__PURE__ */ a.jsxs(dn, { children: [
|
|
2560
|
+
/* @__PURE__ */ a.jsx("div", { className: Y.controlsTop, children: /* @__PURE__ */ a.jsx("div", { className: Y.controlsContainer, children: /* @__PURE__ */ a.jsx("div", { className: Y.controlsRow, children: /* @__PURE__ */ a.jsx(Ho, {}) }) }) }),
|
|
2561
|
+
/* @__PURE__ */ a.jsx("div", { className: Y.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: Y.controlsContainer, children: [
|
|
2562
|
+
/* @__PURE__ */ a.jsx(Do, {}),
|
|
2563
|
+
/* @__PURE__ */ a.jsxs("div", { className: Y.controlsRow, children: [
|
|
2564
|
+
/* @__PURE__ */ a.jsxs(
|
|
2535
2565
|
"div",
|
|
2536
2566
|
{
|
|
2537
|
-
className: `${
|
|
2567
|
+
className: `${Y.controlsSection} ${Y.controlsSectionStart}`,
|
|
2538
2568
|
children: [
|
|
2539
|
-
/* @__PURE__ */
|
|
2540
|
-
/* @__PURE__ */
|
|
2541
|
-
/* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ a.jsx(xo, {}),
|
|
2570
|
+
/* @__PURE__ */ a.jsx(Mo, {}),
|
|
2571
|
+
/* @__PURE__ */ a.jsx(gn, {})
|
|
2542
2572
|
]
|
|
2543
2573
|
}
|
|
2544
2574
|
),
|
|
2545
|
-
/* @__PURE__ */
|
|
2575
|
+
/* @__PURE__ */ a.jsxs(
|
|
2546
2576
|
"div",
|
|
2547
2577
|
{
|
|
2548
|
-
className: `${
|
|
2578
|
+
className: `${Y.controlsSection} ${Y.controlsSectionEnd}`,
|
|
2549
2579
|
children: [
|
|
2550
|
-
/* @__PURE__ */
|
|
2551
|
-
/* @__PURE__ */
|
|
2552
|
-
/* @__PURE__ */
|
|
2580
|
+
/* @__PURE__ */ a.jsx(Eo, { message: t == null ? void 0 : t.live }),
|
|
2581
|
+
/* @__PURE__ */ a.jsx(yn, {}),
|
|
2582
|
+
/* @__PURE__ */ a.jsx(un, {})
|
|
2553
2583
|
]
|
|
2554
2584
|
}
|
|
2555
2585
|
)
|
|
2556
2586
|
] })
|
|
2557
2587
|
] }) })
|
|
2558
2588
|
] }),
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__PURE__ */
|
|
2589
|
+
/* @__PURE__ */ a.jsx(jr, { url: e }),
|
|
2590
|
+
/* @__PURE__ */ a.jsx(qr, {}),
|
|
2591
|
+
/* @__PURE__ */ a.jsx(oo, { url: e })
|
|
2562
2592
|
]
|
|
2563
2593
|
}
|
|
2564
2594
|
),
|
|
2565
|
-
n && /* @__PURE__ */
|
|
2595
|
+
n && /* @__PURE__ */ a.jsx(Yr, { callback: n })
|
|
2566
2596
|
]
|
|
2567
2597
|
}
|
|
2568
2598
|
);
|
|
2569
2599
|
}
|
|
2570
|
-
const
|
|
2571
|
-
function
|
|
2572
|
-
const [e, t] =
|
|
2573
|
-
(
|
|
2574
|
-
t(
|
|
2600
|
+
const _i = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], kt = "playback-rate";
|
|
2601
|
+
function Ti() {
|
|
2602
|
+
const [e, t] = K(!1), n = f((c) => c.containerRef), r = f((c) => c.addIdleLock), s = f((c) => c.removeIdleLock), l = f((c) => c.playbackRate), u = f((c) => c.setPlaybackRate), i = V(
|
|
2603
|
+
(c) => {
|
|
2604
|
+
t(c), c ? r(kt) : s(kt);
|
|
2575
2605
|
},
|
|
2576
|
-
[r,
|
|
2606
|
+
[r, s]
|
|
2577
2607
|
);
|
|
2578
|
-
return /* @__PURE__ */
|
|
2579
|
-
/* @__PURE__ */
|
|
2580
|
-
|
|
2608
|
+
return /* @__PURE__ */ a.jsxs(mn, { open: e, onOpenChange: i, children: [
|
|
2609
|
+
/* @__PURE__ */ a.jsx(vn, { asChild: !0, children: /* @__PURE__ */ a.jsxs(ae, { children: [
|
|
2610
|
+
l,
|
|
2581
2611
|
"x"
|
|
2582
2612
|
] }) }),
|
|
2583
|
-
/* @__PURE__ */
|
|
2613
|
+
/* @__PURE__ */ a.jsx(pn, { container: n.current, children: /* @__PURE__ */ a.jsx(et, { side: "top", align: "end", children: _i.map((c) => /* @__PURE__ */ a.jsxs(
|
|
2584
2614
|
tt,
|
|
2585
2615
|
{
|
|
2586
|
-
onClick: () => u(
|
|
2616
|
+
onClick: () => u(c),
|
|
2587
2617
|
children: [
|
|
2588
|
-
|
|
2618
|
+
c,
|
|
2589
2619
|
"x",
|
|
2590
|
-
|
|
2620
|
+
l === c && /* @__PURE__ */ a.jsx(hn, {})
|
|
2591
2621
|
]
|
|
2592
2622
|
},
|
|
2593
|
-
|
|
2623
|
+
c
|
|
2594
2624
|
)) }) })
|
|
2595
2625
|
] });
|
|
2596
2626
|
}
|
|
2597
|
-
function
|
|
2598
|
-
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), r = f((u) => u.currentTime),
|
|
2599
|
-
return /* @__PURE__ */
|
|
2627
|
+
function Ei() {
|
|
2628
|
+
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), r = f((u) => u.currentTime), s = f((u) => u.duration), l = f((u) => u.seek);
|
|
2629
|
+
return /* @__PURE__ */ a.jsx(
|
|
2600
2630
|
sn,
|
|
2601
2631
|
{
|
|
2602
2632
|
onClick: () => {
|
|
@@ -2604,138 +2634,138 @@ function pi() {
|
|
|
2604
2634
|
},
|
|
2605
2635
|
onBackwardSeek: (u) => {
|
|
2606
2636
|
const i = Math.max(0, r - u);
|
|
2607
|
-
|
|
2637
|
+
l(i);
|
|
2608
2638
|
},
|
|
2609
2639
|
onForwardSeek: (u) => {
|
|
2610
|
-
const i = Math.min(r + u,
|
|
2611
|
-
|
|
2640
|
+
const i = Math.min(r + u, s);
|
|
2641
|
+
l(i);
|
|
2612
2642
|
},
|
|
2613
2643
|
maxBackwardTime: Math.floor(r),
|
|
2614
|
-
maxForwardTime: Math.floor(
|
|
2644
|
+
maxForwardTime: Math.floor(s - r)
|
|
2615
2645
|
}
|
|
2616
2646
|
);
|
|
2617
2647
|
}
|
|
2618
|
-
function
|
|
2619
|
-
const e = f((
|
|
2648
|
+
function xi() {
|
|
2649
|
+
const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), r = () => {
|
|
2620
2650
|
e ? t() : n();
|
|
2621
2651
|
};
|
|
2622
|
-
return /* @__PURE__ */
|
|
2652
|
+
return /* @__PURE__ */ a.jsx(ae, { onClick: r, children: e ? /* @__PURE__ */ a.jsx(an, {}) : /* @__PURE__ */ a.jsx(cn, {}) });
|
|
2623
2653
|
}
|
|
2624
2654
|
const Dt = "vod-player-progress-bar";
|
|
2625
|
-
function
|
|
2626
|
-
const e = O(null), t = O(null), [n, r] =
|
|
2627
|
-
(d ? (u !== -1 ? u :
|
|
2628
|
-
),
|
|
2629
|
-
i(d * (
|
|
2630
|
-
},
|
|
2631
|
-
u !== -1 && (
|
|
2632
|
-
},
|
|
2633
|
-
(
|
|
2634
|
-
const
|
|
2635
|
-
if (
|
|
2636
|
-
const
|
|
2637
|
-
if (
|
|
2638
|
-
let
|
|
2639
|
-
|
|
2655
|
+
function Ri() {
|
|
2656
|
+
const e = O(null), t = O(null), [n, r] = K(!1), [s, l] = K(-1), [u, i] = K(-1), c = f((j) => j.currentTime), d = f((j) => j.duration), v = f((j) => j.seek), _ = f((j) => j.addIdleLock), p = f((j) => j.removeIdleLock), D = parseFloat(
|
|
2657
|
+
(d ? (u !== -1 ? u : c) / d * 100 : 0).toFixed(1)
|
|
2658
|
+
), S = (j) => {
|
|
2659
|
+
i(d * (j[0] / 100)), _(Dt);
|
|
2660
|
+
}, C = () => {
|
|
2661
|
+
u !== -1 && (v(u), i(-1), p(Dt));
|
|
2662
|
+
}, b = () => r(!0), T = () => r(!1), I = V(
|
|
2663
|
+
(j) => {
|
|
2664
|
+
const g = e.current, E = t.current;
|
|
2665
|
+
if (g && E) {
|
|
2666
|
+
const y = Fe(g), R = Fe(E), w = (j.pageX || j.clientX) - y.left, z = w / y.width;
|
|
2667
|
+
if (z < 0) return;
|
|
2668
|
+
let H = w - R.width / 2;
|
|
2669
|
+
H < 0 && (H = 0), H > y.width - R.width && (H = -1), E.style.left = H > -1 ? `${H}px` : "auto", E.style.right = H > -1 ? "auto" : "0px", l(z * d);
|
|
2640
2670
|
}
|
|
2641
|
-
|
|
2671
|
+
b();
|
|
2642
2672
|
},
|
|
2643
2673
|
[d]
|
|
2644
2674
|
);
|
|
2645
|
-
return /* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ a.jsxs("div", { className: se.progressSlider, children: [
|
|
2676
|
+
/* @__PURE__ */ a.jsx(
|
|
2647
2677
|
Ae,
|
|
2648
2678
|
{
|
|
2649
2679
|
ref: e,
|
|
2650
|
-
value: [
|
|
2651
|
-
onPointerLeave:
|
|
2652
|
-
onPointerDown:
|
|
2653
|
-
onPointerMove:
|
|
2654
|
-
onValueChange:
|
|
2655
|
-
onValueCommit:
|
|
2680
|
+
value: [D],
|
|
2681
|
+
onPointerLeave: T,
|
|
2682
|
+
onPointerDown: T,
|
|
2683
|
+
onPointerMove: I,
|
|
2684
|
+
onValueChange: S,
|
|
2685
|
+
onValueCommit: C,
|
|
2656
2686
|
step: 0.1
|
|
2657
2687
|
}
|
|
2658
2688
|
),
|
|
2659
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ a.jsx(
|
|
2660
2690
|
"div",
|
|
2661
2691
|
{
|
|
2662
2692
|
ref: t,
|
|
2663
2693
|
className: `${se.tipContainer} ${n ? se.tipContainerVisible : se.tipContainerHidden}`,
|
|
2664
|
-
children: /* @__PURE__ */
|
|
2694
|
+
children: /* @__PURE__ */ a.jsx("p", { className: se.tipContent, children: Te(s) })
|
|
2665
2695
|
}
|
|
2666
2696
|
)
|
|
2667
2697
|
] });
|
|
2668
2698
|
}
|
|
2669
|
-
const
|
|
2670
|
-
remainingTimeContainer:
|
|
2671
|
-
remainingTime:
|
|
2672
|
-
remainingSeparator:
|
|
2699
|
+
const Ci = "_remainingTimeContainer_1yyhb_1", Si = "_remainingTime_1yyhb_1", Pi = "_remainingSeparator_1yyhb_17", Me = {
|
|
2700
|
+
remainingTimeContainer: Ci,
|
|
2701
|
+
remainingTime: Si,
|
|
2702
|
+
remainingSeparator: Pi
|
|
2673
2703
|
};
|
|
2674
|
-
function
|
|
2704
|
+
function bi() {
|
|
2675
2705
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2676
|
-
return /* @__PURE__ */
|
|
2677
|
-
/* @__PURE__ */
|
|
2678
|
-
/* @__PURE__ */
|
|
2679
|
-
/* @__PURE__ */
|
|
2706
|
+
return /* @__PURE__ */ a.jsxs("div", { className: Me.remainingTimeContainer, children: [
|
|
2707
|
+
/* @__PURE__ */ a.jsx("p", { className: Me.remainingTime, children: Te(e) }),
|
|
2708
|
+
/* @__PURE__ */ a.jsx("p", { className: Me.remainingSeparator }),
|
|
2709
|
+
/* @__PURE__ */ a.jsx("p", { className: Me.remainingTime, children: Te(t) })
|
|
2680
2710
|
] });
|
|
2681
2711
|
}
|
|
2682
|
-
function
|
|
2712
|
+
function Li({ url: e }) {
|
|
2683
2713
|
const { video_id: t } = Jt(e), n = t ? Number(t) : void 0;
|
|
2684
|
-
return n ? /* @__PURE__ */
|
|
2714
|
+
return n ? /* @__PURE__ */ a.jsx(Gt, { kind: "vod", url: e, id: n }) : null;
|
|
2685
2715
|
}
|
|
2686
|
-
function
|
|
2716
|
+
function ji({ callback: e }) {
|
|
2687
2717
|
const t = f((n) => n.eventEmitter);
|
|
2688
|
-
return
|
|
2718
|
+
return A(() => {
|
|
2689
2719
|
const n = (r) => e("timeUpdate", r);
|
|
2690
2720
|
return t.on("timeUpdate", n), () => {
|
|
2691
2721
|
t.off("timeUpdate", n);
|
|
2692
2722
|
};
|
|
2693
|
-
}, [e, t]), /* @__PURE__ */
|
|
2723
|
+
}, [e, t]), /* @__PURE__ */ a.jsx(Qt, { callback: e });
|
|
2694
2724
|
}
|
|
2695
|
-
function
|
|
2696
|
-
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), r = f((i) => i.pause),
|
|
2725
|
+
function Ii() {
|
|
2726
|
+
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), r = f((i) => i.pause), s = f((i) => i.play), l = f((i) => i.seek), u = V(
|
|
2697
2727
|
(i) => {
|
|
2698
|
-
let
|
|
2728
|
+
let c = !1;
|
|
2699
2729
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
2700
2730
|
switch (i.code) {
|
|
2701
2731
|
case "ArrowLeft":
|
|
2702
|
-
|
|
2732
|
+
l(e - 10 >= 0 ? e - 10 : 0), c = !0;
|
|
2703
2733
|
break;
|
|
2704
2734
|
case "ArrowRight":
|
|
2705
|
-
|
|
2735
|
+
l(e + 10 < t ? e + 10 : t), c = !0;
|
|
2706
2736
|
break;
|
|
2707
2737
|
case "Space":
|
|
2708
|
-
n ? r() :
|
|
2738
|
+
n ? r() : s(), c = !0;
|
|
2709
2739
|
break;
|
|
2710
2740
|
}
|
|
2711
|
-
|
|
2741
|
+
c && i.preventDefault();
|
|
2712
2742
|
}
|
|
2713
2743
|
},
|
|
2714
|
-
[e, t, n, r,
|
|
2744
|
+
[e, t, n, r, s, l]
|
|
2715
2745
|
);
|
|
2716
|
-
return
|
|
2746
|
+
return A(() => (document.addEventListener("keydown", u), () => {
|
|
2717
2747
|
document.removeEventListener("keydown", u);
|
|
2718
|
-
}), [u]), /* @__PURE__ */
|
|
2748
|
+
}), [u]), /* @__PURE__ */ a.jsx(nn, {});
|
|
2719
2749
|
}
|
|
2720
|
-
function
|
|
2721
|
-
return /* @__PURE__ */
|
|
2750
|
+
function Oi(e) {
|
|
2751
|
+
return /* @__PURE__ */ a.jsx(rn, { children: /* @__PURE__ */ a.jsx(ki, F({}, e)) });
|
|
2722
2752
|
}
|
|
2723
|
-
function
|
|
2753
|
+
function ki({ url: e, messages: t, onEvent: n, startTime: r }) {
|
|
2724
2754
|
var i;
|
|
2725
|
-
const
|
|
2755
|
+
const s = f((c) => c.setStartTime), l = f((c) => c.containerRef), u = {
|
|
2726
2756
|
unableToPlay: "Unable to play the video. Please try again later."
|
|
2727
2757
|
};
|
|
2728
|
-
return
|
|
2729
|
-
r &&
|
|
2730
|
-
}, [r,
|
|
2758
|
+
return A(() => {
|
|
2759
|
+
r && s(r);
|
|
2760
|
+
}, [r, s]), A(() => {
|
|
2731
2761
|
console.log(`[Player][VOD] Version: ${Qe.version}`);
|
|
2732
|
-
}, []), /* @__PURE__ */
|
|
2762
|
+
}, []), /* @__PURE__ */ a.jsxs(
|
|
2733
2763
|
"div",
|
|
2734
2764
|
{
|
|
2735
|
-
ref:
|
|
2736
|
-
className:
|
|
2765
|
+
ref: l,
|
|
2766
|
+
className: Y.playerContainer,
|
|
2737
2767
|
children: [
|
|
2738
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ a.jsx(
|
|
2739
2769
|
on,
|
|
2740
2770
|
{
|
|
2741
2771
|
url: e,
|
|
@@ -2745,45 +2775,45 @@ function Si({ url: e, messages: t, onEvent: n, startTime: r }) {
|
|
|
2745
2775
|
}
|
|
2746
2776
|
}
|
|
2747
2777
|
),
|
|
2748
|
-
/* @__PURE__ */
|
|
2749
|
-
/* @__PURE__ */
|
|
2750
|
-
/* @__PURE__ */
|
|
2751
|
-
/* @__PURE__ */
|
|
2752
|
-
/* @__PURE__ */
|
|
2753
|
-
/* @__PURE__ */
|
|
2754
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ a.jsx(ln, {}),
|
|
2779
|
+
/* @__PURE__ */ a.jsx(fn, {}),
|
|
2780
|
+
/* @__PURE__ */ a.jsx(Ei, {}),
|
|
2781
|
+
/* @__PURE__ */ a.jsx(dn, { children: /* @__PURE__ */ a.jsx("div", { className: Y.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: Y.controlsContainer, children: [
|
|
2782
|
+
/* @__PURE__ */ a.jsx(Ri, {}),
|
|
2783
|
+
/* @__PURE__ */ a.jsxs("div", { className: Y.controlsRow, children: [
|
|
2784
|
+
/* @__PURE__ */ a.jsxs(
|
|
2755
2785
|
"div",
|
|
2756
2786
|
{
|
|
2757
|
-
className: `${
|
|
2787
|
+
className: `${Y.controlsSection} ${Y.controlsSectionStart}`,
|
|
2758
2788
|
children: [
|
|
2759
|
-
/* @__PURE__ */
|
|
2760
|
-
/* @__PURE__ */
|
|
2761
|
-
/* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ a.jsx(xi, {}),
|
|
2790
|
+
/* @__PURE__ */ a.jsx(gn, {}),
|
|
2791
|
+
/* @__PURE__ */ a.jsx(bi, {})
|
|
2762
2792
|
]
|
|
2763
2793
|
}
|
|
2764
2794
|
),
|
|
2765
|
-
/* @__PURE__ */
|
|
2795
|
+
/* @__PURE__ */ a.jsxs(
|
|
2766
2796
|
"div",
|
|
2767
2797
|
{
|
|
2768
|
-
className: `${
|
|
2798
|
+
className: `${Y.controlsSection} ${Y.controlsSectionEnd}`,
|
|
2769
2799
|
children: [
|
|
2770
|
-
/* @__PURE__ */
|
|
2771
|
-
/* @__PURE__ */
|
|
2772
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ a.jsx(Ti, {}),
|
|
2801
|
+
/* @__PURE__ */ a.jsx(yn, {}),
|
|
2802
|
+
/* @__PURE__ */ a.jsx(un, {})
|
|
2773
2803
|
]
|
|
2774
2804
|
}
|
|
2775
2805
|
)
|
|
2776
2806
|
] })
|
|
2777
2807
|
] }) }) }),
|
|
2778
|
-
/* @__PURE__ */
|
|
2779
|
-
/* @__PURE__ */
|
|
2780
|
-
n && /* @__PURE__ */
|
|
2808
|
+
/* @__PURE__ */ a.jsx(Ii, {}),
|
|
2809
|
+
/* @__PURE__ */ a.jsx(Li, { url: e }),
|
|
2810
|
+
n && /* @__PURE__ */ a.jsx(ji, { callback: n })
|
|
2781
2811
|
]
|
|
2782
2812
|
}
|
|
2783
2813
|
);
|
|
2784
2814
|
}
|
|
2785
2815
|
export {
|
|
2786
|
-
|
|
2787
|
-
|
|
2816
|
+
Ai as LivePlayer,
|
|
2817
|
+
Oi as VodPlayer
|
|
2788
2818
|
};
|
|
2789
2819
|
//# sourceMappingURL=react-video-player.es.js.map
|