@halibegic/react-video-player 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/live-player/live-player-event-check.d.ts +4 -3
- package/dist/components/live-player/live-player-event-listener.d.ts +3 -0
- package/dist/components/live-player/live-player-tech.d.ts +4 -1
- package/dist/components/live-player/ui/live-player-gestures.d.ts +2 -0
- package/dist/components/player/player-event-listener.d.ts +1 -0
- package/dist/components/player/player-hls-engine.d.ts +4 -1
- package/dist/components/player/player-tech.d.ts +4 -1
- package/dist/components/player/ui/player-gestures.d.ts +9 -0
- package/dist/components/player/ui/player-menu.d.ts +8 -0
- package/dist/components/vod-player/ui/vod-player-gestures.d.ts +2 -0
- package/dist/components/vod-player/vod-player-event-listener.d.ts +3 -0
- package/dist/react-video-player.es.js +1257 -1030
- 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/stores/player-store.d.ts +10 -1
- package/dist/style.css +1 -1
- package/dist/types/player.d.ts +16 -15
- package/dist/utils/device.d.ts +2 -1
- package/package.json +3 -2
- package/dist/components/live-player/ui/live-player-desktop-playback-indicator.d.ts +0 -2
- package/dist/components/player/ui/player-controls.styles.d.ts +0 -16
- package/dist/components/player/ui/player-desktop-playback-indicator.d.ts +0 -4
- package/dist/components/player/ui/player-dropdown.d.ts +0 -7
- package/dist/components/player/ui/player-notice.styles.d.ts +0 -6
- package/dist/components/player/ui/player-progress.styles.d.ts +0 -8
- package/dist/components/player/ui/player-remaining-time.styles.d.ts +0 -6
- package/dist/components/vod-player/ui/vod-player-desktop-playback-indicator.d.ts +0 -2
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var mt = (e, t, n) => t in e ?
|
|
1
|
+
var Fn = Object.defineProperty, Mn = Object.defineProperties;
|
|
2
|
+
var Nn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var be = Object.getOwnPropertySymbols;
|
|
4
|
+
var pt = Object.prototype.hasOwnProperty, vt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var mt = (e, t, n) => t in e ? Fn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, j = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
pt.call(t, n) && mt(e, n, t[n]);
|
|
8
|
+
if (be)
|
|
9
|
+
for (var n of be(t))
|
|
10
|
+
vt.call(t, n) && mt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, he = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, he = (e, t) => Mn(e, Nn(t));
|
|
13
|
+
var ne = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var o in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var o of
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
16
|
+
pt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && be)
|
|
18
|
+
for (var o of be(e))
|
|
19
|
+
t.indexOf(o) < 0 && vt.call(e, o) && (n[o] = e[o]);
|
|
20
20
|
return n;
|
|
21
21
|
};
|
|
22
|
-
import
|
|
23
|
-
import { create as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
28
|
-
|
|
22
|
+
import St, { useLayoutEffect as Vn, useEffect as N, useRef as O, useState as X, createContext as bt, useContext as Pt, useCallback as U, forwardRef as Me } from "react";
|
|
23
|
+
import { create as jt, useStore as Lt } from "zustand";
|
|
24
|
+
import An from "mitt";
|
|
25
|
+
import re from "hls.js";
|
|
26
|
+
import * as Pe from "@radix-ui/react-slider";
|
|
27
|
+
import * as xe from "@radix-ui/react-popover";
|
|
28
|
+
import * as je from "@radix-ui/react-scroll-area";
|
|
29
|
+
function kt(e) {
|
|
29
30
|
var t = this.constructor;
|
|
30
31
|
return this.then(
|
|
31
32
|
function(n) {
|
|
@@ -51,46 +52,46 @@ function It(e) {
|
|
|
51
52
|
);
|
|
52
53
|
var s = Array.prototype.slice.call(e);
|
|
53
54
|
if (s.length === 0) return n([]);
|
|
54
|
-
var
|
|
55
|
-
function u(
|
|
56
|
-
if (
|
|
57
|
-
var
|
|
58
|
-
if (typeof
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
function(
|
|
62
|
-
u(
|
|
55
|
+
var c = s.length;
|
|
56
|
+
function u(l, d) {
|
|
57
|
+
if (d && (typeof d == "object" || typeof d == "function")) {
|
|
58
|
+
var g = d.then;
|
|
59
|
+
if (typeof g == "function") {
|
|
60
|
+
g.call(
|
|
61
|
+
d,
|
|
62
|
+
function(y) {
|
|
63
|
+
u(l, y);
|
|
63
64
|
},
|
|
64
|
-
function(
|
|
65
|
-
s[
|
|
65
|
+
function(y) {
|
|
66
|
+
s[l] = { status: "rejected", reason: y }, --c === 0 && n(s);
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
69
|
return;
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
s[
|
|
72
|
+
s[l] = { status: "fulfilled", value: d }, --c === 0 && n(s);
|
|
72
73
|
}
|
|
73
74
|
for (var i = 0; i < s.length; i++)
|
|
74
75
|
u(i, s[i]);
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function Dt(e, t) {
|
|
78
79
|
this.name = "AggregateError", this.errors = e, this.message = t || "";
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
-
function
|
|
81
|
+
Dt.prototype = Error.prototype;
|
|
82
|
+
function Ft(e) {
|
|
82
83
|
var t = this;
|
|
83
84
|
return new t(function(n, o) {
|
|
84
85
|
if (!(e && typeof e.length != "undefined"))
|
|
85
86
|
return o(new TypeError("Promise.any accepts an array"));
|
|
86
87
|
var s = Array.prototype.slice.call(e);
|
|
87
88
|
if (s.length === 0) return o();
|
|
88
|
-
for (var
|
|
89
|
+
for (var c = [], u = 0; u < s.length; u++)
|
|
89
90
|
try {
|
|
90
91
|
t.resolve(s[u]).then(n).catch(function(i) {
|
|
91
|
-
|
|
92
|
-
new
|
|
93
|
-
|
|
92
|
+
c.push(i), c.length === s.length && o(
|
|
93
|
+
new Dt(
|
|
94
|
+
c,
|
|
94
95
|
"All promises were rejected"
|
|
95
96
|
)
|
|
96
97
|
);
|
|
@@ -100,164 +101,164 @@ function Nt(e) {
|
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
|
-
var
|
|
104
|
+
var On = setTimeout;
|
|
104
105
|
function Mt(e) {
|
|
105
106
|
return !!(e && typeof e.length != "undefined");
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
+
function Hn() {
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function $n(e, t) {
|
|
110
111
|
return function() {
|
|
111
112
|
e.apply(t, arguments);
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!(this instanceof
|
|
115
|
+
function F(e) {
|
|
116
|
+
if (!(this instanceof F))
|
|
116
117
|
throw new TypeError("Promises must be constructed via new");
|
|
117
118
|
if (typeof e != "function") throw new TypeError("not a function");
|
|
118
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [],
|
|
119
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Vt(e, this);
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function Nt(e, t) {
|
|
121
122
|
for (; e._state === 3; )
|
|
122
123
|
e = e._value;
|
|
123
124
|
if (e._state === 0) {
|
|
124
125
|
e._deferreds.push(t);
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
|
-
e._handled = !0,
|
|
128
|
+
e._handled = !0, F._immediateFn(function() {
|
|
128
129
|
var n = e._state === 1 ? t.onFulfilled : t.onRejected;
|
|
129
130
|
if (n === null) {
|
|
130
|
-
(e._state === 1 ?
|
|
131
|
+
(e._state === 1 ? qe : Te)(t.promise, e._value);
|
|
131
132
|
return;
|
|
132
133
|
}
|
|
133
134
|
var o;
|
|
134
135
|
try {
|
|
135
136
|
o = n(e._value);
|
|
136
137
|
} catch (s) {
|
|
137
|
-
|
|
138
|
+
Te(t.promise, s);
|
|
138
139
|
return;
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
+
qe(t.promise, o);
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function qe(e, t) {
|
|
144
145
|
try {
|
|
145
146
|
if (t === e)
|
|
146
147
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
147
148
|
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
148
149
|
var n = t.then;
|
|
149
|
-
if (t instanceof
|
|
150
|
-
e._state = 3, e._value = t,
|
|
150
|
+
if (t instanceof F) {
|
|
151
|
+
e._state = 3, e._value = t, Ze(e);
|
|
151
152
|
return;
|
|
152
153
|
} else if (typeof n == "function") {
|
|
153
|
-
|
|
154
|
+
Vt($n(n, t), e);
|
|
154
155
|
return;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
e._state = 1, e._value = t,
|
|
158
|
+
e._state = 1, e._value = t, Ze(e);
|
|
158
159
|
} catch (o) {
|
|
159
|
-
|
|
160
|
+
Te(e, o);
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
e._state = 2, e._value = t,
|
|
163
|
+
function Te(e, t) {
|
|
164
|
+
e._state = 2, e._value = t, Ze(e);
|
|
164
165
|
}
|
|
165
|
-
function
|
|
166
|
-
e._state === 2 && e._deferreds.length === 0 &&
|
|
167
|
-
e._handled ||
|
|
166
|
+
function Ze(e) {
|
|
167
|
+
e._state === 2 && e._deferreds.length === 0 && F._immediateFn(function() {
|
|
168
|
+
e._handled || F._unhandledRejectionFn(e._value);
|
|
168
169
|
});
|
|
169
170
|
for (var t = 0, n = e._deferreds.length; t < n; t++)
|
|
170
|
-
|
|
171
|
+
Nt(e, e._deferreds[t]);
|
|
171
172
|
e._deferreds = null;
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
+
function Bn(e, t, n) {
|
|
174
175
|
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function Vt(e, t) {
|
|
177
178
|
var n = !1;
|
|
178
179
|
try {
|
|
179
180
|
e(
|
|
180
181
|
function(o) {
|
|
181
|
-
n || (n = !0,
|
|
182
|
+
n || (n = !0, qe(t, o));
|
|
182
183
|
},
|
|
183
184
|
function(o) {
|
|
184
|
-
n || (n = !0,
|
|
185
|
+
n || (n = !0, Te(t, o));
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
188
|
} catch (o) {
|
|
188
189
|
if (n) return;
|
|
189
|
-
n = !0,
|
|
190
|
+
n = !0, Te(t, o);
|
|
190
191
|
}
|
|
191
192
|
}
|
|
192
|
-
|
|
193
|
+
F.prototype.catch = function(e) {
|
|
193
194
|
return this.then(null, e);
|
|
194
195
|
};
|
|
195
|
-
|
|
196
|
-
var n = new this.constructor(
|
|
197
|
-
return
|
|
196
|
+
F.prototype.then = function(e, t) {
|
|
197
|
+
var n = new this.constructor(Hn);
|
|
198
|
+
return Nt(this, new Bn(e, t, n)), n;
|
|
198
199
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
return new
|
|
200
|
+
F.prototype.finally = kt;
|
|
201
|
+
F.all = function(e) {
|
|
202
|
+
return new F(function(t, n) {
|
|
202
203
|
if (!Mt(e))
|
|
203
204
|
return n(new TypeError("Promise.all accepts an array"));
|
|
204
205
|
var o = Array.prototype.slice.call(e);
|
|
205
206
|
if (o.length === 0) return t([]);
|
|
206
207
|
var s = o.length;
|
|
207
|
-
function
|
|
208
|
+
function c(i, l) {
|
|
208
209
|
try {
|
|
209
|
-
if (
|
|
210
|
-
var
|
|
211
|
-
if (typeof
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
function(
|
|
215
|
-
|
|
210
|
+
if (l && (typeof l == "object" || typeof l == "function")) {
|
|
211
|
+
var d = l.then;
|
|
212
|
+
if (typeof d == "function") {
|
|
213
|
+
d.call(
|
|
214
|
+
l,
|
|
215
|
+
function(g) {
|
|
216
|
+
c(i, g);
|
|
216
217
|
},
|
|
217
218
|
n
|
|
218
219
|
);
|
|
219
220
|
return;
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
|
-
o[i] =
|
|
223
|
-
} catch (
|
|
224
|
-
n(
|
|
223
|
+
o[i] = l, --s === 0 && t(o);
|
|
224
|
+
} catch (g) {
|
|
225
|
+
n(g);
|
|
225
226
|
}
|
|
226
227
|
}
|
|
227
228
|
for (var u = 0; u < o.length; u++)
|
|
228
|
-
|
|
229
|
+
c(u, o[u]);
|
|
229
230
|
});
|
|
230
231
|
};
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return e && typeof e == "object" && e.constructor ===
|
|
232
|
+
F.any = Ft;
|
|
233
|
+
F.allSettled = It;
|
|
234
|
+
F.resolve = function(e) {
|
|
235
|
+
return e && typeof e == "object" && e.constructor === F ? e : new F(function(t) {
|
|
235
236
|
t(e);
|
|
236
237
|
});
|
|
237
238
|
};
|
|
238
|
-
|
|
239
|
-
return new
|
|
239
|
+
F.reject = function(e) {
|
|
240
|
+
return new F(function(t, n) {
|
|
240
241
|
n(e);
|
|
241
242
|
});
|
|
242
243
|
};
|
|
243
|
-
|
|
244
|
-
return new
|
|
244
|
+
F.race = function(e) {
|
|
245
|
+
return new F(function(t, n) {
|
|
245
246
|
if (!Mt(e))
|
|
246
247
|
return n(new TypeError("Promise.race accepts an array"));
|
|
247
248
|
for (var o = 0, s = e.length; o < s; o++)
|
|
248
|
-
|
|
249
|
+
F.resolve(e[o]).then(t, n);
|
|
249
250
|
});
|
|
250
251
|
};
|
|
251
|
-
|
|
252
|
+
F._immediateFn = // @ts-ignore
|
|
252
253
|
typeof setImmediate == "function" && function(e) {
|
|
253
254
|
setImmediate(e);
|
|
254
255
|
} || function(e) {
|
|
255
|
-
|
|
256
|
+
On(e, 0);
|
|
256
257
|
};
|
|
257
|
-
|
|
258
|
+
F._unhandledRejectionFn = function(t) {
|
|
258
259
|
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
|
|
259
260
|
};
|
|
260
|
-
var
|
|
261
|
+
var ae = (function() {
|
|
261
262
|
if (typeof self != "undefined")
|
|
262
263
|
return self;
|
|
263
264
|
if (typeof window != "undefined")
|
|
@@ -266,74 +267,74 @@ var ne = (function() {
|
|
|
266
267
|
return global;
|
|
267
268
|
throw new Error("unable to locate global object");
|
|
268
269
|
})();
|
|
269
|
-
typeof
|
|
270
|
-
var
|
|
270
|
+
typeof ae.Promise != "function" ? ae.Promise = F : (ae.Promise.prototype.finally || (ae.Promise.prototype.finally = kt), ae.Promise.allSettled || (ae.Promise.allSettled = It), ae.Promise.any || (ae.Promise.any = Ft));
|
|
271
|
+
var Le = { exports: {} }, ge = {};
|
|
271
272
|
var yt;
|
|
272
|
-
function
|
|
273
|
-
if (yt) return
|
|
273
|
+
function Un() {
|
|
274
|
+
if (yt) return ge;
|
|
274
275
|
yt = 1;
|
|
275
|
-
var e =
|
|
276
|
-
function u(i,
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
for (
|
|
280
|
-
if (i && i.defaultProps) for (
|
|
281
|
-
return { $$typeof: t, type: i, key:
|
|
276
|
+
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
277
|
+
function u(i, l, d) {
|
|
278
|
+
var g, y = {}, v = null, _ = null;
|
|
279
|
+
d !== void 0 && (v = "" + d), l.key !== void 0 && (v = "" + l.key), l.ref !== void 0 && (_ = l.ref);
|
|
280
|
+
for (g in l) o.call(l, g) && !c.hasOwnProperty(g) && (y[g] = l[g]);
|
|
281
|
+
if (i && i.defaultProps) for (g in l = i.defaultProps, l) y[g] === void 0 && (y[g] = l[g]);
|
|
282
|
+
return { $$typeof: t, type: i, key: v, ref: _, props: y, _owner: s.current };
|
|
282
283
|
}
|
|
283
|
-
return
|
|
284
|
+
return ge.Fragment = n, ge.jsx = u, ge.jsxs = u, ge;
|
|
284
285
|
}
|
|
285
|
-
var
|
|
286
|
+
var we = {};
|
|
286
287
|
var gt;
|
|
287
|
-
function
|
|
288
|
+
function zn() {
|
|
288
289
|
return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
289
|
-
var e =
|
|
290
|
-
function
|
|
290
|
+
var e = St, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), L = Symbol.iterator, S = "@@iterator";
|
|
291
|
+
function P(r) {
|
|
291
292
|
if (r === null || typeof r != "object")
|
|
292
293
|
return null;
|
|
293
|
-
var
|
|
294
|
-
return typeof
|
|
294
|
+
var h = L && r[L] || r[S];
|
|
295
|
+
return typeof h == "function" ? h : null;
|
|
295
296
|
}
|
|
296
297
|
var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
297
|
-
function
|
|
298
|
+
function R(r) {
|
|
298
299
|
{
|
|
299
|
-
for (var
|
|
300
|
-
m[
|
|
301
|
-
|
|
300
|
+
for (var h = arguments.length, m = new Array(h > 1 ? h - 1 : 0), w = 1; w < h; w++)
|
|
301
|
+
m[w - 1] = arguments[w];
|
|
302
|
+
k("error", r, m);
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
|
-
function
|
|
305
|
+
function k(r, h, m) {
|
|
305
306
|
{
|
|
306
|
-
var
|
|
307
|
-
E !== "" && (
|
|
308
|
-
var
|
|
309
|
-
return String(
|
|
307
|
+
var w = M.ReactDebugCurrentFrame, E = w.getStackAddendum();
|
|
308
|
+
E !== "" && (h += "%s", m = m.concat([E]));
|
|
309
|
+
var b = m.map(function(C) {
|
|
310
|
+
return String(C);
|
|
310
311
|
});
|
|
311
|
-
|
|
312
|
+
b.unshift("Warning: " + h), Function.prototype.apply.call(console[r], console, b);
|
|
312
313
|
}
|
|
313
314
|
}
|
|
314
|
-
var
|
|
315
|
-
|
|
316
|
-
function
|
|
317
|
-
return !!(typeof r == "string" || typeof r == "function" || r === o || r ===
|
|
315
|
+
var T = !1, I = !1, p = !1, B = !1, J = !1, q;
|
|
316
|
+
q = Symbol.for("react.module.reference");
|
|
317
|
+
function V(r) {
|
|
318
|
+
return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || J || r === s || r === d || r === g || B || r === _ || T || I || p || typeof r == "object" && r !== null && (r.$$typeof === v || r.$$typeof === y || r.$$typeof === u || r.$$typeof === i || r.$$typeof === l || // This needs to include all possible module reference object
|
|
318
319
|
// types supported by any Flight configuration anywhere since
|
|
319
320
|
// we don't know which Flight build this will end up being used
|
|
320
321
|
// with.
|
|
321
|
-
r.$$typeof ===
|
|
322
|
+
r.$$typeof === q || r.getModuleId !== void 0));
|
|
322
323
|
}
|
|
323
|
-
function
|
|
324
|
-
var
|
|
325
|
-
if (
|
|
326
|
-
return
|
|
327
|
-
var E =
|
|
324
|
+
function D(r, h, m) {
|
|
325
|
+
var w = r.displayName;
|
|
326
|
+
if (w)
|
|
327
|
+
return w;
|
|
328
|
+
var E = h.displayName || h.name || "";
|
|
328
329
|
return E !== "" ? m + "(" + E + ")" : m;
|
|
329
330
|
}
|
|
330
|
-
function
|
|
331
|
+
function Q(r) {
|
|
331
332
|
return r.displayName || "Context";
|
|
332
333
|
}
|
|
333
|
-
function
|
|
334
|
+
function Z(r) {
|
|
334
335
|
if (r == null)
|
|
335
336
|
return null;
|
|
336
|
-
if (typeof r.tag == "number" &&
|
|
337
|
+
if (typeof r.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
337
338
|
return r.displayName || r.name || null;
|
|
338
339
|
if (typeof r == "string")
|
|
339
340
|
return r;
|
|
@@ -342,51 +343,51 @@ function nr() {
|
|
|
342
343
|
return "Fragment";
|
|
343
344
|
case n:
|
|
344
345
|
return "Portal";
|
|
345
|
-
case
|
|
346
|
+
case c:
|
|
346
347
|
return "Profiler";
|
|
347
348
|
case s:
|
|
348
349
|
return "StrictMode";
|
|
349
|
-
case
|
|
350
|
+
case d:
|
|
350
351
|
return "Suspense";
|
|
351
|
-
case
|
|
352
|
+
case g:
|
|
352
353
|
return "SuspenseList";
|
|
353
354
|
}
|
|
354
355
|
if (typeof r == "object")
|
|
355
356
|
switch (r.$$typeof) {
|
|
356
357
|
case i:
|
|
357
|
-
var
|
|
358
|
-
return
|
|
358
|
+
var h = r;
|
|
359
|
+
return Q(h) + ".Consumer";
|
|
359
360
|
case u:
|
|
360
361
|
var m = r;
|
|
361
|
-
return
|
|
362
|
-
case
|
|
363
|
-
return
|
|
364
|
-
case
|
|
365
|
-
var
|
|
366
|
-
return
|
|
367
|
-
case
|
|
368
|
-
var E = r,
|
|
362
|
+
return Q(m._context) + ".Provider";
|
|
363
|
+
case l:
|
|
364
|
+
return D(r, r.render, "ForwardRef");
|
|
365
|
+
case y:
|
|
366
|
+
var w = r.displayName || null;
|
|
367
|
+
return w !== null ? w : Z(r.type) || "Memo";
|
|
368
|
+
case v: {
|
|
369
|
+
var E = r, b = E._payload, C = E._init;
|
|
369
370
|
try {
|
|
370
|
-
return
|
|
371
|
-
} catch (
|
|
371
|
+
return Z(C(b));
|
|
372
|
+
} catch (x) {
|
|
372
373
|
return null;
|
|
373
374
|
}
|
|
374
375
|
}
|
|
375
376
|
}
|
|
376
377
|
return null;
|
|
377
378
|
}
|
|
378
|
-
var
|
|
379
|
-
function
|
|
379
|
+
var z = Object.assign, oe = 0, ue, te, W, ve, Ye, Xe, Ge;
|
|
380
|
+
function Je() {
|
|
380
381
|
}
|
|
381
|
-
|
|
382
|
-
function
|
|
382
|
+
Je.__reactDisabledLog = !0;
|
|
383
|
+
function an() {
|
|
383
384
|
{
|
|
384
|
-
if (
|
|
385
|
-
|
|
385
|
+
if (oe === 0) {
|
|
386
|
+
ue = console.log, te = console.info, W = console.warn, ve = console.error, Ye = console.group, Xe = console.groupCollapsed, Ge = console.groupEnd;
|
|
386
387
|
var r = {
|
|
387
388
|
configurable: !0,
|
|
388
389
|
enumerable: !0,
|
|
389
|
-
value:
|
|
390
|
+
value: Je,
|
|
390
391
|
writable: !0
|
|
391
392
|
};
|
|
392
393
|
Object.defineProperties(console, {
|
|
@@ -399,211 +400,211 @@ function nr() {
|
|
|
399
400
|
groupEnd: r
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
|
-
|
|
403
|
+
oe++;
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
+
function ln() {
|
|
406
407
|
{
|
|
407
|
-
if (
|
|
408
|
+
if (oe--, oe === 0) {
|
|
408
409
|
var r = {
|
|
409
410
|
configurable: !0,
|
|
410
411
|
enumerable: !0,
|
|
411
412
|
writable: !0
|
|
412
413
|
};
|
|
413
414
|
Object.defineProperties(console, {
|
|
414
|
-
log:
|
|
415
|
-
value: ce
|
|
416
|
-
}),
|
|
417
|
-
info: Y({}, r, {
|
|
415
|
+
log: z({}, r, {
|
|
418
416
|
value: ue
|
|
419
417
|
}),
|
|
420
|
-
|
|
421
|
-
value:
|
|
418
|
+
info: z({}, r, {
|
|
419
|
+
value: te
|
|
420
|
+
}),
|
|
421
|
+
warn: z({}, r, {
|
|
422
|
+
value: W
|
|
422
423
|
}),
|
|
423
|
-
error:
|
|
424
|
-
value:
|
|
424
|
+
error: z({}, r, {
|
|
425
|
+
value: ve
|
|
425
426
|
}),
|
|
426
|
-
group:
|
|
427
|
-
value:
|
|
427
|
+
group: z({}, r, {
|
|
428
|
+
value: Ye
|
|
428
429
|
}),
|
|
429
|
-
groupCollapsed:
|
|
430
|
+
groupCollapsed: z({}, r, {
|
|
430
431
|
value: Xe
|
|
431
432
|
}),
|
|
432
|
-
groupEnd:
|
|
433
|
-
value:
|
|
433
|
+
groupEnd: z({}, r, {
|
|
434
|
+
value: Ge
|
|
434
435
|
})
|
|
435
436
|
});
|
|
436
437
|
}
|
|
437
|
-
|
|
438
|
+
oe < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
438
439
|
}
|
|
439
440
|
}
|
|
440
|
-
var
|
|
441
|
-
function Ce(r,
|
|
441
|
+
var Ve = M.ReactCurrentDispatcher, Ae;
|
|
442
|
+
function Ce(r, h, m) {
|
|
442
443
|
{
|
|
443
|
-
if (
|
|
444
|
+
if (Ae === void 0)
|
|
444
445
|
try {
|
|
445
446
|
throw Error();
|
|
446
447
|
} catch (E) {
|
|
447
|
-
var
|
|
448
|
-
|
|
448
|
+
var w = E.stack.trim().match(/\n( *(at )?)/);
|
|
449
|
+
Ae = w && w[1] || "";
|
|
449
450
|
}
|
|
450
451
|
return `
|
|
451
|
-
` +
|
|
452
|
+
` + Ae + r;
|
|
452
453
|
}
|
|
453
454
|
}
|
|
454
|
-
var
|
|
455
|
+
var Oe = !1, Ee;
|
|
455
456
|
{
|
|
456
|
-
var
|
|
457
|
-
|
|
457
|
+
var cn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
458
|
+
Ee = new cn();
|
|
458
459
|
}
|
|
459
|
-
function Qe(r,
|
|
460
|
-
if (!r ||
|
|
460
|
+
function Qe(r, h) {
|
|
461
|
+
if (!r || Oe)
|
|
461
462
|
return "";
|
|
462
463
|
{
|
|
463
|
-
var m =
|
|
464
|
+
var m = Ee.get(r);
|
|
464
465
|
if (m !== void 0)
|
|
465
466
|
return m;
|
|
466
467
|
}
|
|
467
|
-
var
|
|
468
|
-
|
|
468
|
+
var w;
|
|
469
|
+
Oe = !0;
|
|
469
470
|
var E = Error.prepareStackTrace;
|
|
470
471
|
Error.prepareStackTrace = void 0;
|
|
471
|
-
var
|
|
472
|
-
|
|
472
|
+
var b;
|
|
473
|
+
b = Ve.current, Ve.current = null, an();
|
|
473
474
|
try {
|
|
474
|
-
if (
|
|
475
|
-
var
|
|
475
|
+
if (h) {
|
|
476
|
+
var C = function() {
|
|
476
477
|
throw Error();
|
|
477
478
|
};
|
|
478
|
-
if (Object.defineProperty(
|
|
479
|
+
if (Object.defineProperty(C.prototype, "props", {
|
|
479
480
|
set: function() {
|
|
480
481
|
throw Error();
|
|
481
482
|
}
|
|
482
483
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
483
484
|
try {
|
|
484
|
-
Reflect.construct(
|
|
485
|
-
} catch (
|
|
486
|
-
|
|
485
|
+
Reflect.construct(C, []);
|
|
486
|
+
} catch (G) {
|
|
487
|
+
w = G;
|
|
487
488
|
}
|
|
488
|
-
Reflect.construct(r, [],
|
|
489
|
+
Reflect.construct(r, [], C);
|
|
489
490
|
} else {
|
|
490
491
|
try {
|
|
491
|
-
|
|
492
|
-
} catch (
|
|
493
|
-
|
|
492
|
+
C.call();
|
|
493
|
+
} catch (G) {
|
|
494
|
+
w = G;
|
|
494
495
|
}
|
|
495
|
-
r.call(
|
|
496
|
+
r.call(C.prototype);
|
|
496
497
|
}
|
|
497
498
|
} else {
|
|
498
499
|
try {
|
|
499
500
|
throw Error();
|
|
500
|
-
} catch (
|
|
501
|
-
|
|
501
|
+
} catch (G) {
|
|
502
|
+
w = G;
|
|
502
503
|
}
|
|
503
504
|
r();
|
|
504
505
|
}
|
|
505
|
-
} catch (
|
|
506
|
-
if (
|
|
507
|
-
for (var
|
|
508
|
-
`),
|
|
509
|
-
`),
|
|
510
|
-
|
|
511
|
-
for (;
|
|
512
|
-
if (
|
|
513
|
-
if (
|
|
506
|
+
} catch (G) {
|
|
507
|
+
if (G && w && typeof G.stack == "string") {
|
|
508
|
+
for (var x = G.stack.split(`
|
|
509
|
+
`), Y = w.stack.split(`
|
|
510
|
+
`), A = x.length - 1, H = Y.length - 1; A >= 1 && H >= 0 && x[A] !== Y[H]; )
|
|
511
|
+
H--;
|
|
512
|
+
for (; A >= 1 && H >= 0; A--, H--)
|
|
513
|
+
if (x[A] !== Y[H]) {
|
|
514
|
+
if (A !== 1 || H !== 1)
|
|
514
515
|
do
|
|
515
|
-
if (
|
|
516
|
-
var
|
|
517
|
-
` +
|
|
518
|
-
return r.displayName &&
|
|
516
|
+
if (A--, H--, H < 0 || x[A] !== Y[H]) {
|
|
517
|
+
var ee = `
|
|
518
|
+
` + x[A].replace(" at new ", " at ");
|
|
519
|
+
return r.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", r.displayName)), typeof r == "function" && Ee.set(r, ee), ee;
|
|
519
520
|
}
|
|
520
|
-
while (
|
|
521
|
+
while (A >= 1 && H >= 0);
|
|
521
522
|
break;
|
|
522
523
|
}
|
|
523
524
|
}
|
|
524
525
|
} finally {
|
|
525
|
-
|
|
526
|
+
Oe = !1, Ve.current = b, ln(), Error.prepareStackTrace = E;
|
|
526
527
|
}
|
|
527
|
-
var
|
|
528
|
-
return typeof r == "function" &&
|
|
528
|
+
var fe = r ? r.displayName || r.name : "", ce = fe ? Ce(fe) : "";
|
|
529
|
+
return typeof r == "function" && Ee.set(r, ce), ce;
|
|
529
530
|
}
|
|
530
|
-
function
|
|
531
|
+
function un(r, h, m) {
|
|
531
532
|
return Qe(r, !1);
|
|
532
533
|
}
|
|
533
|
-
function
|
|
534
|
-
var
|
|
535
|
-
return !!(
|
|
534
|
+
function dn(r) {
|
|
535
|
+
var h = r.prototype;
|
|
536
|
+
return !!(h && h.isReactComponent);
|
|
536
537
|
}
|
|
537
|
-
function
|
|
538
|
+
function Re(r, h, m) {
|
|
538
539
|
if (r == null)
|
|
539
540
|
return "";
|
|
540
541
|
if (typeof r == "function")
|
|
541
|
-
return Qe(r,
|
|
542
|
+
return Qe(r, dn(r));
|
|
542
543
|
if (typeof r == "string")
|
|
543
544
|
return Ce(r);
|
|
544
545
|
switch (r) {
|
|
545
|
-
case
|
|
546
|
+
case d:
|
|
546
547
|
return Ce("Suspense");
|
|
547
|
-
case
|
|
548
|
+
case g:
|
|
548
549
|
return Ce("SuspenseList");
|
|
549
550
|
}
|
|
550
551
|
if (typeof r == "object")
|
|
551
552
|
switch (r.$$typeof) {
|
|
552
|
-
case
|
|
553
|
-
return
|
|
554
|
-
case
|
|
555
|
-
return
|
|
556
|
-
case
|
|
557
|
-
var
|
|
553
|
+
case l:
|
|
554
|
+
return un(r.render);
|
|
555
|
+
case y:
|
|
556
|
+
return Re(r.type, h, m);
|
|
557
|
+
case v: {
|
|
558
|
+
var w = r, E = w._payload, b = w._init;
|
|
558
559
|
try {
|
|
559
|
-
return
|
|
560
|
-
} catch (
|
|
560
|
+
return Re(b(E), h, m);
|
|
561
|
+
} catch (C) {
|
|
561
562
|
}
|
|
562
563
|
}
|
|
563
564
|
}
|
|
564
565
|
return "";
|
|
565
566
|
}
|
|
566
|
-
var
|
|
567
|
-
function
|
|
567
|
+
var ye = Object.prototype.hasOwnProperty, et = {}, tt = M.ReactDebugCurrentFrame;
|
|
568
|
+
function Se(r) {
|
|
568
569
|
if (r) {
|
|
569
|
-
var
|
|
570
|
+
var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
|
|
570
571
|
tt.setExtraStackFrame(m);
|
|
571
572
|
} else
|
|
572
573
|
tt.setExtraStackFrame(null);
|
|
573
574
|
}
|
|
574
|
-
function
|
|
575
|
+
function fn(r, h, m, w, E) {
|
|
575
576
|
{
|
|
576
|
-
var
|
|
577
|
-
for (var
|
|
578
|
-
if (
|
|
579
|
-
var
|
|
577
|
+
var b = Function.call.bind(ye);
|
|
578
|
+
for (var C in r)
|
|
579
|
+
if (b(r, C)) {
|
|
580
|
+
var x = void 0;
|
|
580
581
|
try {
|
|
581
|
-
if (typeof r[
|
|
582
|
-
var
|
|
583
|
-
throw
|
|
582
|
+
if (typeof r[C] != "function") {
|
|
583
|
+
var Y = Error((w || "React class") + ": " + m + " type `" + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[C] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
584
|
+
throw Y.name = "Invariant Violation", Y;
|
|
584
585
|
}
|
|
585
|
-
|
|
586
|
-
} catch (
|
|
587
|
-
|
|
586
|
+
x = r[C](h, C, w, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
587
|
+
} catch (A) {
|
|
588
|
+
x = A;
|
|
588
589
|
}
|
|
589
|
-
|
|
590
|
+
x && !(x instanceof Error) && (Se(E), R("%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).", w || "React class", m, C, typeof x), Se(null)), x instanceof Error && !(x.message in et) && (et[x.message] = !0, Se(E), R("Failed %s type: %s", m, x.message), Se(null));
|
|
590
591
|
}
|
|
591
592
|
}
|
|
592
593
|
}
|
|
593
|
-
var
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
var hn = Array.isArray;
|
|
595
|
+
function He(r) {
|
|
596
|
+
return hn(r);
|
|
596
597
|
}
|
|
597
|
-
function
|
|
598
|
+
function mn(r) {
|
|
598
599
|
{
|
|
599
|
-
var
|
|
600
|
+
var h = typeof Symbol == "function" && Symbol.toStringTag, m = h && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
600
601
|
return m;
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
+
function pn(r) {
|
|
604
605
|
try {
|
|
605
606
|
return nt(r), !1;
|
|
606
|
-
} catch (
|
|
607
|
+
} catch (h) {
|
|
607
608
|
return !0;
|
|
608
609
|
}
|
|
609
610
|
}
|
|
@@ -611,38 +612,38 @@ function nr() {
|
|
|
611
612
|
return "" + r;
|
|
612
613
|
}
|
|
613
614
|
function rt(r) {
|
|
614
|
-
if (
|
|
615
|
-
return
|
|
615
|
+
if (pn(r))
|
|
616
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", mn(r)), nt(r);
|
|
616
617
|
}
|
|
617
|
-
var ot = M.ReactCurrentOwner,
|
|
618
|
+
var ot = M.ReactCurrentOwner, vn = {
|
|
618
619
|
key: !0,
|
|
619
620
|
ref: !0,
|
|
620
621
|
__self: !0,
|
|
621
622
|
__source: !0
|
|
622
623
|
}, it, st;
|
|
623
|
-
function
|
|
624
|
-
if (
|
|
625
|
-
var
|
|
626
|
-
if (
|
|
624
|
+
function yn(r) {
|
|
625
|
+
if (ye.call(r, "ref")) {
|
|
626
|
+
var h = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
627
|
+
if (h && h.isReactWarning)
|
|
627
628
|
return !1;
|
|
628
629
|
}
|
|
629
630
|
return r.ref !== void 0;
|
|
630
631
|
}
|
|
631
|
-
function
|
|
632
|
-
if (
|
|
633
|
-
var
|
|
634
|
-
if (
|
|
632
|
+
function gn(r) {
|
|
633
|
+
if (ye.call(r, "key")) {
|
|
634
|
+
var h = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
635
|
+
if (h && h.isReactWarning)
|
|
635
636
|
return !1;
|
|
636
637
|
}
|
|
637
638
|
return r.key !== void 0;
|
|
638
639
|
}
|
|
639
|
-
function
|
|
640
|
+
function wn(r, h) {
|
|
640
641
|
typeof r.ref == "string" && ot.current;
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function Tn(r, h) {
|
|
643
644
|
{
|
|
644
645
|
var m = function() {
|
|
645
|
-
it || (it = !0,
|
|
646
|
+
it || (it = !0, R("%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));
|
|
646
647
|
};
|
|
647
648
|
m.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
648
649
|
get: m,
|
|
@@ -650,10 +651,10 @@ function nr() {
|
|
|
650
651
|
});
|
|
651
652
|
}
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
+
function _n(r, h) {
|
|
654
655
|
{
|
|
655
656
|
var m = function() {
|
|
656
|
-
st || (st = !0,
|
|
657
|
+
st || (st = !0, R("%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));
|
|
657
658
|
};
|
|
658
659
|
m.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
659
660
|
get: m,
|
|
@@ -661,70 +662,70 @@ function nr() {
|
|
|
661
662
|
});
|
|
662
663
|
}
|
|
663
664
|
}
|
|
664
|
-
var
|
|
665
|
-
var
|
|
665
|
+
var xn = function(r, h, m, w, E, b, C) {
|
|
666
|
+
var x = {
|
|
666
667
|
// This tag allows us to uniquely identify this as a React Element
|
|
667
668
|
$$typeof: t,
|
|
668
669
|
// Built-in properties that belong on the element
|
|
669
670
|
type: r,
|
|
670
|
-
key:
|
|
671
|
+
key: h,
|
|
671
672
|
ref: m,
|
|
672
|
-
props:
|
|
673
|
+
props: C,
|
|
673
674
|
// Record the component responsible for creating this element.
|
|
674
|
-
_owner:
|
|
675
|
+
_owner: b
|
|
675
676
|
};
|
|
676
|
-
return
|
|
677
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
677
678
|
configurable: !1,
|
|
678
679
|
enumerable: !1,
|
|
679
680
|
writable: !0,
|
|
680
681
|
value: !1
|
|
681
|
-
}), Object.defineProperty(
|
|
682
|
+
}), Object.defineProperty(x, "_self", {
|
|
682
683
|
configurable: !1,
|
|
683
684
|
enumerable: !1,
|
|
684
685
|
writable: !1,
|
|
685
|
-
value:
|
|
686
|
-
}), Object.defineProperty(
|
|
686
|
+
value: w
|
|
687
|
+
}), Object.defineProperty(x, "_source", {
|
|
687
688
|
configurable: !1,
|
|
688
689
|
enumerable: !1,
|
|
689
690
|
writable: !1,
|
|
690
691
|
value: E
|
|
691
|
-
}), Object.freeze && (Object.freeze(
|
|
692
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
692
693
|
};
|
|
693
|
-
function
|
|
694
|
+
function Cn(r, h, m, w, E) {
|
|
694
695
|
{
|
|
695
|
-
var
|
|
696
|
-
m !== void 0 && (rt(m),
|
|
697
|
-
for (
|
|
698
|
-
|
|
696
|
+
var b, C = {}, x = null, Y = null;
|
|
697
|
+
m !== void 0 && (rt(m), x = "" + m), gn(h) && (rt(h.key), x = "" + h.key), yn(h) && (Y = h.ref, wn(h, E));
|
|
698
|
+
for (b in h)
|
|
699
|
+
ye.call(h, b) && !vn.hasOwnProperty(b) && (C[b] = h[b]);
|
|
699
700
|
if (r && r.defaultProps) {
|
|
700
|
-
var
|
|
701
|
-
for (
|
|
702
|
-
|
|
701
|
+
var A = r.defaultProps;
|
|
702
|
+
for (b in A)
|
|
703
|
+
C[b] === void 0 && (C[b] = A[b]);
|
|
703
704
|
}
|
|
704
|
-
if (
|
|
705
|
-
var
|
|
706
|
-
|
|
705
|
+
if (x || Y) {
|
|
706
|
+
var H = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
707
|
+
x && Tn(C, H), Y && _n(C, H);
|
|
707
708
|
}
|
|
708
|
-
return
|
|
709
|
+
return xn(r, x, Y, E, w, ot.current, C);
|
|
709
710
|
}
|
|
710
711
|
}
|
|
711
|
-
var
|
|
712
|
-
function
|
|
712
|
+
var $e = M.ReactCurrentOwner, at = M.ReactDebugCurrentFrame;
|
|
713
|
+
function de(r) {
|
|
713
714
|
if (r) {
|
|
714
|
-
var
|
|
715
|
+
var h = r._owner, m = Re(r.type, r._source, h ? h.type : null);
|
|
715
716
|
at.setExtraStackFrame(m);
|
|
716
717
|
} else
|
|
717
718
|
at.setExtraStackFrame(null);
|
|
718
719
|
}
|
|
719
|
-
var
|
|
720
|
-
|
|
721
|
-
function
|
|
720
|
+
var Be;
|
|
721
|
+
Be = !1;
|
|
722
|
+
function Ue(r) {
|
|
722
723
|
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
723
724
|
}
|
|
724
725
|
function lt() {
|
|
725
726
|
{
|
|
726
|
-
if (
|
|
727
|
-
var r =
|
|
727
|
+
if ($e.current) {
|
|
728
|
+
var r = Z($e.current.type);
|
|
728
729
|
if (r)
|
|
729
730
|
return `
|
|
730
731
|
|
|
@@ -733,161 +734,161 @@ Check the render method of \`` + r + "`.";
|
|
|
733
734
|
return "";
|
|
734
735
|
}
|
|
735
736
|
}
|
|
736
|
-
function
|
|
737
|
+
function En(r) {
|
|
737
738
|
return "";
|
|
738
739
|
}
|
|
739
740
|
var ct = {};
|
|
740
|
-
function
|
|
741
|
+
function Rn(r) {
|
|
741
742
|
{
|
|
742
|
-
var
|
|
743
|
-
if (!
|
|
743
|
+
var h = lt();
|
|
744
|
+
if (!h) {
|
|
744
745
|
var m = typeof r == "string" ? r : r.displayName || r.name;
|
|
745
|
-
m && (
|
|
746
|
+
m && (h = `
|
|
746
747
|
|
|
747
748
|
Check the top-level render call using <` + m + ">.");
|
|
748
749
|
}
|
|
749
|
-
return
|
|
750
|
+
return h;
|
|
750
751
|
}
|
|
751
752
|
}
|
|
752
|
-
function ut(r,
|
|
753
|
+
function ut(r, h) {
|
|
753
754
|
{
|
|
754
755
|
if (!r._store || r._store.validated || r.key != null)
|
|
755
756
|
return;
|
|
756
757
|
r._store.validated = !0;
|
|
757
|
-
var m =
|
|
758
|
+
var m = Rn(h);
|
|
758
759
|
if (ct[m])
|
|
759
760
|
return;
|
|
760
761
|
ct[m] = !0;
|
|
761
|
-
var
|
|
762
|
-
r && r._owner && r._owner !==
|
|
762
|
+
var w = "";
|
|
763
|
+
r && r._owner && r._owner !== $e.current && (w = " It was passed a child from " + Z(r._owner.type) + "."), de(r), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, w), de(null);
|
|
763
764
|
}
|
|
764
765
|
}
|
|
765
|
-
function dt(r,
|
|
766
|
+
function dt(r, h) {
|
|
766
767
|
{
|
|
767
768
|
if (typeof r != "object")
|
|
768
769
|
return;
|
|
769
|
-
if (
|
|
770
|
+
if (He(r))
|
|
770
771
|
for (var m = 0; m < r.length; m++) {
|
|
771
|
-
var
|
|
772
|
-
|
|
772
|
+
var w = r[m];
|
|
773
|
+
Ue(w) && ut(w, h);
|
|
773
774
|
}
|
|
774
|
-
else if (
|
|
775
|
+
else if (Ue(r))
|
|
775
776
|
r._store && (r._store.validated = !0);
|
|
776
777
|
else if (r) {
|
|
777
|
-
var E =
|
|
778
|
+
var E = P(r);
|
|
778
779
|
if (typeof E == "function" && E !== r.entries)
|
|
779
|
-
for (var
|
|
780
|
-
|
|
780
|
+
for (var b = E.call(r), C; !(C = b.next()).done; )
|
|
781
|
+
Ue(C.value) && ut(C.value, h);
|
|
781
782
|
}
|
|
782
783
|
}
|
|
783
784
|
}
|
|
784
|
-
function
|
|
785
|
+
function Sn(r) {
|
|
785
786
|
{
|
|
786
|
-
var
|
|
787
|
-
if (
|
|
787
|
+
var h = r.type;
|
|
788
|
+
if (h == null || typeof h == "string")
|
|
788
789
|
return;
|
|
789
790
|
var m;
|
|
790
|
-
if (typeof
|
|
791
|
-
m =
|
|
792
|
-
else if (typeof
|
|
791
|
+
if (typeof h == "function")
|
|
792
|
+
m = h.propTypes;
|
|
793
|
+
else if (typeof h == "object" && (h.$$typeof === l || // Note: Memo only checks outer props here.
|
|
793
794
|
// Inner props are checked in the reconciler.
|
|
794
|
-
|
|
795
|
-
m =
|
|
795
|
+
h.$$typeof === y))
|
|
796
|
+
m = h.propTypes;
|
|
796
797
|
else
|
|
797
798
|
return;
|
|
798
799
|
if (m) {
|
|
799
|
-
var
|
|
800
|
-
|
|
801
|
-
} else if (
|
|
802
|
-
|
|
803
|
-
var E =
|
|
804
|
-
|
|
800
|
+
var w = Z(h);
|
|
801
|
+
fn(m, r.props, "prop", w, r);
|
|
802
|
+
} else if (h.PropTypes !== void 0 && !Be) {
|
|
803
|
+
Be = !0;
|
|
804
|
+
var E = Z(h);
|
|
805
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
805
806
|
}
|
|
806
|
-
typeof
|
|
807
|
+
typeof h.getDefaultProps == "function" && !h.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
807
808
|
}
|
|
808
809
|
}
|
|
809
|
-
function
|
|
810
|
+
function bn(r) {
|
|
810
811
|
{
|
|
811
|
-
for (var
|
|
812
|
-
var
|
|
813
|
-
if (
|
|
814
|
-
|
|
812
|
+
for (var h = Object.keys(r.props), m = 0; m < h.length; m++) {
|
|
813
|
+
var w = h[m];
|
|
814
|
+
if (w !== "children" && w !== "key") {
|
|
815
|
+
de(r), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), de(null);
|
|
815
816
|
break;
|
|
816
817
|
}
|
|
817
818
|
}
|
|
818
|
-
r.ref !== null && (
|
|
819
|
+
r.ref !== null && (de(r), R("Invalid attribute `ref` supplied to `React.Fragment`."), de(null));
|
|
819
820
|
}
|
|
820
821
|
}
|
|
821
822
|
var ft = {};
|
|
822
|
-
function ht(r,
|
|
823
|
+
function ht(r, h, m, w, E, b) {
|
|
823
824
|
{
|
|
824
|
-
var
|
|
825
|
-
if (!
|
|
826
|
-
var
|
|
827
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (
|
|
828
|
-
var
|
|
829
|
-
|
|
830
|
-
var
|
|
831
|
-
r === null ?
|
|
825
|
+
var C = V(r);
|
|
826
|
+
if (!C) {
|
|
827
|
+
var x = "";
|
|
828
|
+
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (x += " 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
|
+
var Y = En();
|
|
830
|
+
Y ? x += Y : x += lt();
|
|
831
|
+
var A;
|
|
832
|
+
r === null ? A = "null" : He(r) ? A = "array" : r !== void 0 && r.$$typeof === t ? (A = "<" + (Z(r.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : A = typeof r, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, x);
|
|
832
833
|
}
|
|
833
|
-
var
|
|
834
|
-
if (
|
|
835
|
-
return
|
|
836
|
-
if (
|
|
837
|
-
var
|
|
838
|
-
if (
|
|
839
|
-
if (
|
|
840
|
-
if (
|
|
841
|
-
for (var
|
|
842
|
-
dt(
|
|
843
|
-
Object.freeze && Object.freeze(
|
|
834
|
+
var H = Cn(r, h, m, E, b);
|
|
835
|
+
if (H == null)
|
|
836
|
+
return H;
|
|
837
|
+
if (C) {
|
|
838
|
+
var ee = h.children;
|
|
839
|
+
if (ee !== void 0)
|
|
840
|
+
if (w)
|
|
841
|
+
if (He(ee)) {
|
|
842
|
+
for (var fe = 0; fe < ee.length; fe++)
|
|
843
|
+
dt(ee[fe], r);
|
|
844
|
+
Object.freeze && Object.freeze(ee);
|
|
844
845
|
} else
|
|
845
|
-
|
|
846
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
846
847
|
else
|
|
847
|
-
dt(
|
|
848
|
+
dt(ee, r);
|
|
848
849
|
}
|
|
849
|
-
if (
|
|
850
|
-
var
|
|
851
|
-
return
|
|
852
|
-
}),
|
|
853
|
-
if (!ft[
|
|
854
|
-
var
|
|
855
|
-
|
|
850
|
+
if (ye.call(h, "key")) {
|
|
851
|
+
var ce = Z(r), G = Object.keys(h).filter(function(Dn) {
|
|
852
|
+
return Dn !== "key";
|
|
853
|
+
}), ze = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
854
|
+
if (!ft[ce + ze]) {
|
|
855
|
+
var In = G.length > 0 ? "{" + G.join(": ..., ") + ": ...}" : "{}";
|
|
856
|
+
R(`A props object containing a "key" prop is being spread into JSX:
|
|
856
857
|
let props = %s;
|
|
857
858
|
<%s {...props} />
|
|
858
859
|
React keys must be passed directly to JSX without using spread:
|
|
859
860
|
let props = %s;
|
|
860
|
-
<%s key={someKey} {...props} />`,
|
|
861
|
+
<%s key={someKey} {...props} />`, ze, ce, In, ce), ft[ce + ze] = !0;
|
|
861
862
|
}
|
|
862
863
|
}
|
|
863
|
-
return r === o ?
|
|
864
|
+
return r === o ? bn(H) : Sn(H), H;
|
|
864
865
|
}
|
|
865
866
|
}
|
|
866
|
-
function
|
|
867
|
-
return ht(r,
|
|
868
|
-
}
|
|
869
|
-
function
|
|
870
|
-
return ht(r,
|
|
871
|
-
}
|
|
872
|
-
var
|
|
873
|
-
|
|
874
|
-
})()),
|
|
875
|
-
}
|
|
876
|
-
var
|
|
877
|
-
function
|
|
878
|
-
return
|
|
879
|
-
}
|
|
880
|
-
var a =
|
|
881
|
-
const
|
|
882
|
-
playerNotice:
|
|
883
|
-
playerNoticeTitle:
|
|
884
|
-
playerNoticeText:
|
|
885
|
-
},
|
|
886
|
-
function
|
|
887
|
-
const n =
|
|
888
|
-
|
|
867
|
+
function Pn(r, h, m) {
|
|
868
|
+
return ht(r, h, m, !0);
|
|
869
|
+
}
|
|
870
|
+
function jn(r, h, m) {
|
|
871
|
+
return ht(r, h, m, !1);
|
|
872
|
+
}
|
|
873
|
+
var Ln = jn, kn = Pn;
|
|
874
|
+
we.Fragment = o, we.jsx = Ln, we.jsxs = kn;
|
|
875
|
+
})()), we;
|
|
876
|
+
}
|
|
877
|
+
var wt;
|
|
878
|
+
function Wn() {
|
|
879
|
+
return wt || (wt = 1, process.env.NODE_ENV === "production" ? Le.exports = Un() : Le.exports = zn()), Le.exports;
|
|
880
|
+
}
|
|
881
|
+
var a = Wn();
|
|
882
|
+
const qn = "_playerNotice_1m0i8_1", Zn = "_playerNoticeTitle_1m0i8_17", Kn = "_playerNoticeText_1m0i8_26", se = {
|
|
883
|
+
playerNotice: qn,
|
|
884
|
+
playerNoticeTitle: Zn,
|
|
885
|
+
playerNoticeText: Kn
|
|
886
|
+
}, At = typeof window != "undefined" ? Vn : N;
|
|
887
|
+
function Ke(e, t) {
|
|
888
|
+
const n = O(e);
|
|
889
|
+
At(() => {
|
|
889
890
|
n.current = e;
|
|
890
|
-
}, [e]),
|
|
891
|
+
}, [e]), N(() => {
|
|
891
892
|
if (t === null)
|
|
892
893
|
return;
|
|
893
894
|
const o = setInterval(() => {
|
|
@@ -898,29 +899,29 @@ function Ze(e, t) {
|
|
|
898
899
|
};
|
|
899
900
|
}, [t]);
|
|
900
901
|
}
|
|
901
|
-
function
|
|
902
|
-
const [, t] =
|
|
903
|
-
|
|
902
|
+
function Yn(e) {
|
|
903
|
+
const [, t] = X(0);
|
|
904
|
+
Ke(() => t((n) => n + 1), e);
|
|
904
905
|
}
|
|
905
|
-
const
|
|
906
|
+
const Xn = () => jt((e) => ({
|
|
906
907
|
delay: 0,
|
|
907
908
|
startDate: null,
|
|
908
909
|
setDelay: (t) => e({ delay: t }),
|
|
909
910
|
setStartDate: (t) => e({ startDate: t })
|
|
910
|
-
})),
|
|
911
|
+
})), Ot = bt(
|
|
911
912
|
null
|
|
912
|
-
),
|
|
913
|
-
const t =
|
|
913
|
+
), Gn = ({ children: e }) => {
|
|
914
|
+
const t = O(
|
|
914
915
|
null
|
|
915
916
|
);
|
|
916
|
-
return t.current || (t.current =
|
|
917
|
-
},
|
|
918
|
-
const t =
|
|
917
|
+
return t.current || (t.current = Xn()), /* @__PURE__ */ a.jsx(Ot.Provider, { value: t.current, children: e });
|
|
918
|
+
}, $ = (e) => {
|
|
919
|
+
const t = Pt(Ot);
|
|
919
920
|
if (!t)
|
|
920
921
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
921
|
-
return
|
|
922
|
+
return Lt(t, e);
|
|
922
923
|
};
|
|
923
|
-
function
|
|
924
|
+
function Jn(e, t, n) {
|
|
924
925
|
const o = {
|
|
925
926
|
days: 86400,
|
|
926
927
|
hours: 3600,
|
|
@@ -930,19 +931,19 @@ function ur(e, t, n) {
|
|
|
930
931
|
};
|
|
931
932
|
return e * (o[t] / o[n]);
|
|
932
933
|
}
|
|
933
|
-
function
|
|
934
|
-
return
|
|
934
|
+
function Qn(e) {
|
|
935
|
+
return Jn(e, "milliseconds", "seconds");
|
|
935
936
|
}
|
|
936
|
-
const
|
|
937
|
+
const _e = (e) => {
|
|
937
938
|
if (isNaN(e) || e === 1 / 0) return "0:00";
|
|
938
|
-
const t = (
|
|
939
|
+
const t = (c) => (c < 10 ? "0" : "") + c, n = Math.floor(e / 3600), o = Math.floor(e % 3600 / 60), s = Math.floor(e % 60);
|
|
939
940
|
return n === 0 ? `${o}:${t(s)}` : `${n}:${t(o)}:${t(s)}`;
|
|
940
941
|
};
|
|
941
|
-
function
|
|
942
|
-
var n, o, s,
|
|
942
|
+
function er(e, t) {
|
|
943
|
+
var n, o, s, c, u, i;
|
|
943
944
|
if (typeof Intl != "undefined" && Intl.DateTimeFormat)
|
|
944
945
|
try {
|
|
945
|
-
const
|
|
946
|
+
const d = new Intl.DateTimeFormat("en-US", {
|
|
946
947
|
timeZone: t,
|
|
947
948
|
year: "numeric",
|
|
948
949
|
month: "2-digit",
|
|
@@ -951,58 +952,58 @@ function fr(e, t) {
|
|
|
951
952
|
minute: "2-digit",
|
|
952
953
|
second: "2-digit",
|
|
953
954
|
hour12: !1
|
|
954
|
-
}).formatToParts(e),
|
|
955
|
-
((n =
|
|
955
|
+
}).formatToParts(e), g = parseInt(
|
|
956
|
+
((n = d.find((P) => P.type === "year")) == null ? void 0 : n.value) || "0",
|
|
956
957
|
10
|
|
957
|
-
),
|
|
958
|
-
((o =
|
|
958
|
+
), y = parseInt(
|
|
959
|
+
((o = d.find((P) => P.type === "month")) == null ? void 0 : o.value) || "0",
|
|
959
960
|
10
|
|
960
|
-
) - 1,
|
|
961
|
-
((s =
|
|
961
|
+
) - 1, v = parseInt(
|
|
962
|
+
((s = d.find((P) => P.type === "day")) == null ? void 0 : s.value) || "0",
|
|
962
963
|
10
|
|
963
|
-
),
|
|
964
|
-
((
|
|
964
|
+
), _ = parseInt(
|
|
965
|
+
((c = d.find((P) => P.type === "hour")) == null ? void 0 : c.value) || "0",
|
|
965
966
|
10
|
|
966
967
|
), L = parseInt(
|
|
967
|
-
((u =
|
|
968
|
+
((u = d.find((P) => P.type === "minute")) == null ? void 0 : u.value) || "0",
|
|
968
969
|
10
|
|
969
|
-
),
|
|
970
|
-
((i =
|
|
970
|
+
), S = parseInt(
|
|
971
|
+
((i = d.find((P) => P.type === "second")) == null ? void 0 : i.value) || "0",
|
|
971
972
|
10
|
|
972
973
|
);
|
|
973
|
-
return new Date(
|
|
974
|
-
} catch (
|
|
974
|
+
return new Date(g, y, v, _, L, S);
|
|
975
|
+
} catch (l) {
|
|
975
976
|
return console.warn(
|
|
976
977
|
`Failed to convert date to timezone ${t}, returning original date:`,
|
|
977
|
-
|
|
978
|
+
l
|
|
978
979
|
), e;
|
|
979
980
|
}
|
|
980
981
|
return console.warn(
|
|
981
982
|
"Intl.DateTimeFormat not available, timezone conversion may be inaccurate"
|
|
982
983
|
), e;
|
|
983
984
|
}
|
|
984
|
-
function
|
|
985
|
+
function Ht(e) {
|
|
985
986
|
var n;
|
|
986
987
|
const t = typeof window != "undefined" && ((n = window.navigator) == null ? void 0 : n.userAgent) || "";
|
|
987
988
|
return e.test(t);
|
|
988
989
|
}
|
|
989
|
-
const $t =
|
|
990
|
-
function
|
|
990
|
+
const $t = Ht(/iPhone|iPad|iPod/i), tr = Ht(/Tizen/i);
|
|
991
|
+
function nr() {
|
|
991
992
|
const e = document;
|
|
992
993
|
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
993
994
|
}
|
|
994
|
-
function
|
|
995
|
+
function rr(e) {
|
|
995
996
|
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
996
997
|
}
|
|
997
|
-
function
|
|
998
|
+
function or(e) {
|
|
998
999
|
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
999
1000
|
}
|
|
1000
|
-
function
|
|
1001
|
+
function ir(e, t) {
|
|
1001
1002
|
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
1002
1003
|
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
1003
1004
|
};
|
|
1004
1005
|
}
|
|
1005
|
-
const
|
|
1006
|
+
const sr = () => An(), ar = (e, t) => ({
|
|
1006
1007
|
currentTime: 0,
|
|
1007
1008
|
duration: 0,
|
|
1008
1009
|
isEnded: !1,
|
|
@@ -1102,8 +1103,8 @@ const gr = () => Xn(), Cr = (e, t) => ({
|
|
|
1102
1103
|
t().eventEmitter.emit("error", n);
|
|
1103
1104
|
const s = o.error;
|
|
1104
1105
|
if (!s) return;
|
|
1105
|
-
const
|
|
1106
|
-
e({ error: { message: u, code:
|
|
1106
|
+
const c = `${s.code}`, u = s.message || "Unknown error occurred";
|
|
1107
|
+
e({ error: { message: u, code: c, tech: "native" } });
|
|
1107
1108
|
},
|
|
1108
1109
|
pause: () => {
|
|
1109
1110
|
const n = t().techRef.current;
|
|
@@ -1114,7 +1115,7 @@ const gr = () => Xn(), Cr = (e, t) => ({
|
|
|
1114
1115
|
}));
|
|
1115
1116
|
},
|
|
1116
1117
|
getPauseTimeDiff: () => !t().isStarted || !t().pauseTime ? 0 : parseInt(
|
|
1117
|
-
|
|
1118
|
+
Qn(Date.now() - t().pauseTime).toFixed(0)
|
|
1118
1119
|
),
|
|
1119
1120
|
play: () => {
|
|
1120
1121
|
const n = t().techRef.current;
|
|
@@ -1161,7 +1162,11 @@ const gr = () => Xn(), Cr = (e, t) => ({
|
|
|
1161
1162
|
isLoading: !1
|
|
1162
1163
|
});
|
|
1163
1164
|
}
|
|
1164
|
-
}),
|
|
1165
|
+
}), lr = (e, t) => ({
|
|
1166
|
+
isIdle: !1,
|
|
1167
|
+
setIsIdle: (n) => e({ isIdle: n }),
|
|
1168
|
+
resetIdle: () => t().eventEmitter.emit("resetIdle")
|
|
1169
|
+
}), cr = (e) => ({
|
|
1165
1170
|
idleLocks: /* @__PURE__ */ new Set(),
|
|
1166
1171
|
addIdleLock: (t) => e((n) => ({
|
|
1167
1172
|
idleLocks: new Set(n.idleLocks).add(t)
|
|
@@ -1170,77 +1175,77 @@ const gr = () => Xn(), Cr = (e, t) => ({
|
|
|
1170
1175
|
const o = new Set(n.idleLocks);
|
|
1171
1176
|
return o.delete(t), { idleLocks: o };
|
|
1172
1177
|
})
|
|
1173
|
-
}),
|
|
1178
|
+
}), ur = (e, t) => ({
|
|
1174
1179
|
level: null,
|
|
1175
1180
|
levels: null,
|
|
1176
1181
|
setLevels: (n) => e({ levels: n }),
|
|
1177
1182
|
setLevel: (n) => {
|
|
1178
1183
|
n && t().eventEmitter.emit("qualityChange", { level: n }), e({ level: n });
|
|
1179
1184
|
}
|
|
1180
|
-
}),
|
|
1185
|
+
}), dr = (e, t) => ({
|
|
1181
1186
|
isFullscreen: !1,
|
|
1182
1187
|
isFullscreenReady: !1,
|
|
1183
1188
|
exitFullscreen: () => {
|
|
1184
|
-
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }),
|
|
1189
|
+
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !1 }), or(document), e({ isFullscreen: !1 });
|
|
1185
1190
|
},
|
|
1186
1191
|
requestFullscreen: () => {
|
|
1187
1192
|
const n = t().techRef.current, o = t().containerRef.current;
|
|
1188
1193
|
if (!n || !o) return;
|
|
1189
1194
|
t().eventEmitter.emit("fullscreenChange", { isFullscreen: !0 });
|
|
1190
1195
|
const s = $t ? n : o;
|
|
1191
|
-
s &&
|
|
1196
|
+
s && rr(s), e({ isFullscreen: !0 });
|
|
1192
1197
|
},
|
|
1193
1198
|
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
1194
1199
|
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
1195
|
-
}),
|
|
1200
|
+
}), fr = (e) => ({
|
|
1196
1201
|
error: null,
|
|
1197
1202
|
setError: (t) => e({ error: t })
|
|
1198
|
-
}),
|
|
1199
|
-
eventEmitter:
|
|
1200
|
-
}),
|
|
1203
|
+
}), hr = () => ({
|
|
1204
|
+
eventEmitter: sr()
|
|
1205
|
+
}), mr = (e) => () => j({}, e), pr = (e, t) => jt()((...n) => j(j(j(j(j(j(j(j({}, ar(...n)), lr(...n)), cr(...n)), dr(...n)), ur(...n)), fr(...n)), hr(...n)), mr({
|
|
1201
1206
|
techRef: e,
|
|
1202
1207
|
containerRef: t
|
|
1203
|
-
})(...n))),
|
|
1204
|
-
function
|
|
1205
|
-
const t =
|
|
1206
|
-
return t.current || (t.current =
|
|
1208
|
+
})(...n))), Bt = bt(null);
|
|
1209
|
+
function vr({ children: e }) {
|
|
1210
|
+
const t = O(null), n = O(null), o = O(null);
|
|
1211
|
+
return t.current || (t.current = pr(n, o)), /* @__PURE__ */ a.jsx(Bt.Provider, { value: t.current, children: e });
|
|
1207
1212
|
}
|
|
1208
1213
|
const f = (e) => {
|
|
1209
|
-
const t =
|
|
1214
|
+
const t = Pt(Bt);
|
|
1210
1215
|
if (!t)
|
|
1211
1216
|
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1212
|
-
return
|
|
1217
|
+
return Lt(t, e);
|
|
1213
1218
|
};
|
|
1214
|
-
function
|
|
1219
|
+
function yr(e) {
|
|
1215
1220
|
const t = e.split(`
|
|
1216
1221
|
`);
|
|
1217
1222
|
for (const n of t) {
|
|
1218
1223
|
const o = n.trim();
|
|
1219
1224
|
if (o.startsWith("#EXT-X-PROGRAM-DATE-TIME:")) {
|
|
1220
|
-
const s = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(),
|
|
1221
|
-
if (!isNaN(
|
|
1222
|
-
return
|
|
1225
|
+
const s = o.replace("#EXT-X-PROGRAM-DATE-TIME:", "").trim(), c = new Date(s);
|
|
1226
|
+
if (!isNaN(c.getTime()))
|
|
1227
|
+
return er(c, "Europe/Sarajevo");
|
|
1223
1228
|
}
|
|
1224
1229
|
}
|
|
1225
1230
|
return null;
|
|
1226
1231
|
}
|
|
1227
|
-
function
|
|
1232
|
+
function gr(e, t) {
|
|
1228
1233
|
const n = e.split(`
|
|
1229
1234
|
`);
|
|
1230
1235
|
let o = !1;
|
|
1231
1236
|
for (const s of n) {
|
|
1232
|
-
const
|
|
1233
|
-
if (
|
|
1237
|
+
const c = s.trim();
|
|
1238
|
+
if (c.startsWith("#EXT-X-STREAM-INF:")) {
|
|
1234
1239
|
o = !0;
|
|
1235
1240
|
continue;
|
|
1236
1241
|
}
|
|
1237
|
-
if (o && !
|
|
1238
|
-
if (
|
|
1239
|
-
return
|
|
1242
|
+
if (o && !c.startsWith("#")) {
|
|
1243
|
+
if (c.startsWith("http"))
|
|
1244
|
+
return c;
|
|
1240
1245
|
{
|
|
1241
1246
|
const u = new URL(t);
|
|
1242
1247
|
return new URL(
|
|
1243
|
-
|
|
1248
|
+
c,
|
|
1244
1249
|
u.origin + u.pathname.substring(
|
|
1245
1250
|
0,
|
|
1246
1251
|
u.pathname.lastIndexOf("/")
|
|
@@ -1251,96 +1256,147 @@ function jr(e, t) {
|
|
|
1251
1256
|
}
|
|
1252
1257
|
return null;
|
|
1253
1258
|
}
|
|
1254
|
-
function
|
|
1259
|
+
function wr(e) {
|
|
1255
1260
|
return e.replace("playlist.m3u8", "playlist_fmp4_dvr.m3u8");
|
|
1256
1261
|
}
|
|
1257
|
-
async function
|
|
1262
|
+
async function Tr(e) {
|
|
1258
1263
|
try {
|
|
1259
|
-
const t =
|
|
1264
|
+
const t = wr(e);
|
|
1260
1265
|
console.log("Converting to DVR URL:", t);
|
|
1261
1266
|
const n = await fetch(t);
|
|
1262
1267
|
if (!n.ok)
|
|
1263
1268
|
throw new Error(
|
|
1264
1269
|
`Failed to fetch master playlist: ${n.status} ${n.statusText}`
|
|
1265
1270
|
);
|
|
1266
|
-
const o = await n.text(), s =
|
|
1271
|
+
const o = await n.text(), s = gr(
|
|
1267
1272
|
o,
|
|
1268
1273
|
t
|
|
1269
1274
|
);
|
|
1270
1275
|
if (!s)
|
|
1271
1276
|
throw new Error("No chunklist URL found in master playlist");
|
|
1272
1277
|
console.log("Found chunklist URL:", s);
|
|
1273
|
-
const
|
|
1274
|
-
if (!
|
|
1278
|
+
const c = await fetch(s);
|
|
1279
|
+
if (!c.ok)
|
|
1275
1280
|
throw new Error(
|
|
1276
|
-
`Failed to fetch chunklist: ${
|
|
1281
|
+
`Failed to fetch chunklist: ${c.status} ${c.statusText}`
|
|
1277
1282
|
);
|
|
1278
|
-
const u = await
|
|
1283
|
+
const u = await c.text(), i = yr(u);
|
|
1279
1284
|
return i ? console.log("Successfully detected start time:", i.toISOString()) : console.log(" No start time found in chunklist"), i;
|
|
1280
1285
|
} catch (t) {
|
|
1281
1286
|
return console.error("Error getting start time from HLS URL:", t), null;
|
|
1282
1287
|
}
|
|
1283
1288
|
}
|
|
1284
|
-
function
|
|
1285
|
-
var o = n, { url: e } = o, t =
|
|
1286
|
-
const [s,
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1289
|
+
function _r(n) {
|
|
1290
|
+
var o = n, { url: e } = o, t = ne(o, ["url"]);
|
|
1291
|
+
const [s, c] = X(!0), u = $((d) => d.startDate), i = $((d) => d.setStartDate), l = U(async () => {
|
|
1292
|
+
const d = await Tr(e);
|
|
1293
|
+
d && i(d);
|
|
1289
1294
|
}, [e, i]);
|
|
1290
|
-
return
|
|
1295
|
+
return N(() => {
|
|
1291
1296
|
(async () => {
|
|
1292
|
-
|
|
1297
|
+
c(!0), await l(), c(!1);
|
|
1293
1298
|
})();
|
|
1294
|
-
}, [
|
|
1299
|
+
}, [l]), Ke(l, u ? null : 5e3), s ? null : /* @__PURE__ */ a.jsx(xr, j({}, t));
|
|
1295
1300
|
}
|
|
1296
|
-
function
|
|
1301
|
+
function xr({
|
|
1297
1302
|
children: e,
|
|
1298
|
-
|
|
1299
|
-
eventStartingSoonMessage: n = "Starting in few seconds..."
|
|
1303
|
+
messages: t = {}
|
|
1300
1304
|
}) {
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1305
|
+
var u, i, l;
|
|
1306
|
+
const n = $((d) => d.startDate), o = f((d) => d.isStarted);
|
|
1307
|
+
return Yn(o ? null : 5e3), n ? Date.now() < n.getTime() ? /* @__PURE__ */ a.jsx(
|
|
1308
|
+
Cr,
|
|
1304
1309
|
{
|
|
1305
|
-
startDate:
|
|
1306
|
-
title: t,
|
|
1307
|
-
message:
|
|
1310
|
+
startDate: n,
|
|
1311
|
+
title: (i = t == null ? void 0 : t.eventNotStarted) != null ? i : "Event has not started yet.",
|
|
1312
|
+
message: (l = t == null ? void 0 : t.eventStartingSoon) != null ? l : "Starting in few seconds..."
|
|
1308
1313
|
}
|
|
1309
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className:
|
|
1314
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : /* @__PURE__ */ a.jsx("div", { className: se.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: se.playerNoticeTitle, children: (u = t == null ? void 0 : t.eventNotStarted) != null ? u : "Event has not started yet." }) });
|
|
1310
1315
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const o = e.getTime() - Date.now(), s = Math.floor(o / (1e3 * 60 * 60)),
|
|
1316
|
+
function Cr({ startDate: e, title: t, message: n }) {
|
|
1317
|
+
const o = e.getTime() - Date.now(), s = Math.floor(o / (1e3 * 60 * 60)), c = Math.floor(
|
|
1313
1318
|
o % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1314
1319
|
);
|
|
1315
|
-
return s ||
|
|
1316
|
-
/* @__PURE__ */ a.jsx("h3", { className:
|
|
1317
|
-
/* @__PURE__ */ a.jsxs("p", { className:
|
|
1320
|
+
return s || c ? /* @__PURE__ */ a.jsxs("div", { className: se.playerNotice, children: [
|
|
1321
|
+
/* @__PURE__ */ a.jsx("h3", { className: se.playerNoticeTitle, children: t }),
|
|
1322
|
+
/* @__PURE__ */ a.jsxs("p", { className: se.playerNoticeText, children: [
|
|
1318
1323
|
"(",
|
|
1319
|
-
s > 0 ? `${s}h ${
|
|
1324
|
+
s > 0 ? `${s}h ${c}m` : `${c}m`,
|
|
1320
1325
|
")"
|
|
1321
1326
|
] })
|
|
1322
|
-
] }) : /* @__PURE__ */ a.jsx("div", { className:
|
|
1327
|
+
] }) : /* @__PURE__ */ a.jsx("div", { className: se.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: se.playerNoticeTitle, children: n }) });
|
|
1323
1328
|
}
|
|
1324
|
-
function
|
|
1325
|
-
const
|
|
1329
|
+
function Ut({ callback: e }) {
|
|
1330
|
+
const t = f((n) => n.eventEmitter);
|
|
1331
|
+
return N(() => {
|
|
1332
|
+
const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), c = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (S) => e("volumeChange", S), l = (S) => e("fullscreenChange", S), d = (S) => e("qualityChange", S), g = (S) => e("loadedMetadata", S), y = () => e("loadStart", void 0), v = () => e("playing", void 0), _ = () => e("waiting", void 0), L = () => e("error", void 0);
|
|
1333
|
+
return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", c), t.on("seeked", u), t.on("volumeChange", i), t.on("fullscreenChange", l), t.on("qualityChange", d), t.on("loadedMetadata", g), t.on("loadStart", y), t.on("playing", v), t.on("waiting", _), t.on("error", L), () => {
|
|
1334
|
+
t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", c), t.off("seeked", u), t.off("volumeChange", i), t.off("fullscreenChange", l), t.off("qualityChange", d), t.off("loadedMetadata", g), t.off("loadStart", y), t.off("playing", v), t.off("waiting", _), t.off("error", L);
|
|
1335
|
+
};
|
|
1336
|
+
}, [e, t]), null;
|
|
1337
|
+
}
|
|
1338
|
+
const zt = (e, t = 0) => parseInt(
|
|
1339
|
+
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
1340
|
+
), Wt = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), Er = (e, t) => Math.max(0, (t - e) / 1e3), Rr = (e, t = 0) => {
|
|
1341
|
+
const o = t < 0 ? 0 : t, s = ["bytes", "kb", "mb", "gb", "tb", "pb", "eb", "zb", "yb"], c = Math.floor(Math.log(e) / Math.log(1024));
|
|
1342
|
+
return `${parseFloat((e / Math.pow(1024, c)).toFixed(o))}${s[c]}`;
|
|
1343
|
+
};
|
|
1344
|
+
function Sr({
|
|
1345
|
+
isAuto: e,
|
|
1346
|
+
level: t,
|
|
1347
|
+
levels: n
|
|
1348
|
+
}) {
|
|
1349
|
+
const o = n.length, s = [];
|
|
1350
|
+
return o > 1 && s.push({
|
|
1351
|
+
sid: "quality-level-auto",
|
|
1352
|
+
label: "Auto",
|
|
1353
|
+
value: -1,
|
|
1354
|
+
selected: e || t === -1
|
|
1355
|
+
}), n.sort(function(c, u) {
|
|
1356
|
+
const i = c.height || c.bitrate || 0, l = u.height || u.bitrate || 0;
|
|
1357
|
+
return i === l ? 0 : i > l ? 1 : -1;
|
|
1358
|
+
}), n.map((c) => {
|
|
1359
|
+
const { bitrate: u, height: i, index: l } = c;
|
|
1360
|
+
s.push({
|
|
1361
|
+
sid: `quality-level-${l}`,
|
|
1362
|
+
label: i ? `${i}p` : Rr(u),
|
|
1363
|
+
value: l,
|
|
1364
|
+
selected: o === 1 || !e && l === t
|
|
1365
|
+
});
|
|
1366
|
+
}), s;
|
|
1367
|
+
}
|
|
1368
|
+
function br({ callback: e }) {
|
|
1369
|
+
const t = $((c) => c.delay), n = $((c) => c.startDate), o = n ? n.getTime() : 0, s = f((c) => c.eventEmitter);
|
|
1370
|
+
return N(() => {
|
|
1371
|
+
const c = () => e("timeUpdate", {
|
|
1372
|
+
currentTime: Wt(o, t),
|
|
1373
|
+
duration: -1
|
|
1374
|
+
});
|
|
1375
|
+
return s.on("timeUpdate", c), () => {
|
|
1376
|
+
s.off("timeUpdate", c);
|
|
1377
|
+
};
|
|
1378
|
+
}, [e, s]), /* @__PURE__ */ a.jsx(Ut, { callback: e });
|
|
1379
|
+
}
|
|
1380
|
+
function qt() {
|
|
1381
|
+
const e = f((i) => i.exitFullscreen), t = f((i) => i.isFullscreen), n = f((i) => i.isFullscreenReady), o = f((i) => i.requestFullscreen), s = f((i) => i.setVolume), c = f((i) => i.volume), u = U(
|
|
1326
1382
|
(i) => {
|
|
1327
|
-
let
|
|
1383
|
+
let l = !1;
|
|
1328
1384
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
1329
1385
|
switch (i.code) {
|
|
1330
1386
|
case "ArrowUp":
|
|
1331
|
-
s(
|
|
1387
|
+
s(c + 10 < 100 ? c + 10 : 100), l = !0;
|
|
1332
1388
|
break;
|
|
1333
1389
|
case "ArrowDown":
|
|
1334
|
-
s(
|
|
1390
|
+
s(c - 10 > 0 ? c - 10 : 0), l = !0;
|
|
1335
1391
|
break;
|
|
1336
1392
|
case "KeyM":
|
|
1337
|
-
s(
|
|
1393
|
+
s(c === 0 ? 100 : 0), l = !0;
|
|
1338
1394
|
break;
|
|
1339
1395
|
case "KeyF":
|
|
1340
|
-
n && (t ? e() : o(),
|
|
1396
|
+
n && (t ? e() : o(), l = !0);
|
|
1341
1397
|
break;
|
|
1342
1398
|
}
|
|
1343
|
-
|
|
1399
|
+
l && i.preventDefault();
|
|
1344
1400
|
}
|
|
1345
1401
|
},
|
|
1346
1402
|
[
|
|
@@ -1349,287 +1405,394 @@ function Bt() {
|
|
|
1349
1405
|
n,
|
|
1350
1406
|
o,
|
|
1351
1407
|
s,
|
|
1352
|
-
|
|
1408
|
+
c
|
|
1353
1409
|
]
|
|
1354
1410
|
);
|
|
1355
|
-
return
|
|
1411
|
+
return N(() => (document.addEventListener("keydown", u), () => {
|
|
1356
1412
|
document.removeEventListener("keydown", u);
|
|
1357
1413
|
}), [u]), null;
|
|
1358
1414
|
}
|
|
1359
|
-
function
|
|
1360
|
-
const e =
|
|
1415
|
+
function Pr() {
|
|
1416
|
+
const e = $((i) => i.delay), t = f((i) => i.isPlaying), n = f((i) => i.pause), o = f((i) => i.getPauseTimeDiff), s = f((i) => i.play), c = $((i) => i.setDelay), u = U(
|
|
1361
1417
|
(i) => {
|
|
1362
|
-
let
|
|
1418
|
+
let l = !1;
|
|
1363
1419
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
1364
1420
|
switch (i.code) {
|
|
1365
1421
|
case "ArrowLeft":
|
|
1366
|
-
|
|
1422
|
+
c(e + 10), l = !0;
|
|
1367
1423
|
break;
|
|
1368
1424
|
case "ArrowRight":
|
|
1369
|
-
|
|
1425
|
+
c(e - 10 > 0 ? e - 10 : 0), l = !0;
|
|
1370
1426
|
break;
|
|
1371
1427
|
case "Space":
|
|
1372
1428
|
if (t)
|
|
1373
1429
|
n();
|
|
1374
1430
|
else {
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1431
|
+
const d = o();
|
|
1432
|
+
d && c(e + d), s();
|
|
1377
1433
|
}
|
|
1378
|
-
|
|
1434
|
+
l = !0;
|
|
1379
1435
|
break;
|
|
1380
1436
|
}
|
|
1381
|
-
|
|
1437
|
+
l && i.preventDefault();
|
|
1382
1438
|
}
|
|
1383
1439
|
},
|
|
1384
|
-
[e, o, t, n, s,
|
|
1440
|
+
[e, o, t, n, s, c]
|
|
1385
1441
|
);
|
|
1386
|
-
return
|
|
1442
|
+
return N(() => (document.addEventListener("keydown", u), () => {
|
|
1387
1443
|
document.removeEventListener("keydown", u);
|
|
1388
|
-
}), [u]), /* @__PURE__ */ a.jsx(
|
|
1444
|
+
}), [u]), /* @__PURE__ */ a.jsx(qt, {});
|
|
1389
1445
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return /* @__PURE__ */ a.jsx(
|
|
1446
|
+
function Zt({ children: e }) {
|
|
1447
|
+
return /* @__PURE__ */ a.jsx(vr, { children: e });
|
|
1392
1448
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return /* @__PURE__ */ a.jsx(
|
|
1449
|
+
function jr({ children: e }) {
|
|
1450
|
+
return /* @__PURE__ */ a.jsx(Gn, { children: /* @__PURE__ */ a.jsx(Zt, { children: e }) });
|
|
1395
1451
|
}
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
function Ar({
|
|
1403
|
-
isAuto: e,
|
|
1404
|
-
level: t,
|
|
1405
|
-
levels: n
|
|
1406
|
-
}) {
|
|
1407
|
-
const o = n.length, s = [];
|
|
1408
|
-
return o > 1 && s.push({
|
|
1409
|
-
sid: "quality-level-auto",
|
|
1410
|
-
label: "Auto",
|
|
1411
|
-
value: -1,
|
|
1412
|
-
selected: e || t === -1
|
|
1413
|
-
}), n.sort(function(l, u) {
|
|
1414
|
-
const i = l.height || l.bitrate || 0, c = u.height || u.bitrate || 0;
|
|
1415
|
-
return i === c ? 0 : i > c ? 1 : -1;
|
|
1416
|
-
}), n.map((l) => {
|
|
1417
|
-
const { bitrate: u, height: i, index: c } = l;
|
|
1418
|
-
s.push({
|
|
1419
|
-
sid: `quality-level-${c}`,
|
|
1420
|
-
label: i ? `${i}p` : Hr(u),
|
|
1421
|
-
value: c,
|
|
1422
|
-
selected: o === 1 || !e && c === t
|
|
1423
|
-
});
|
|
1424
|
-
}), s;
|
|
1425
|
-
}
|
|
1426
|
-
function $r({ url: e, isLive: t }) {
|
|
1427
|
-
const n = A(null), o = f((g) => g.level), s = f((g) => g.levels), l = f((g) => g.setLevel), u = f((g) => g.setLevels), i = f((g) => g.techRef), c = f((g) => g.setError), h = A(0), v = A(null), C = 50, S = 1e4, T = V(
|
|
1428
|
-
(g) => {
|
|
1429
|
-
if (n.current && (n.current.nextLevel = g, l(null), s)) {
|
|
1430
|
-
const k = s.map((p) => he(b({}, p), {
|
|
1431
|
-
selected: p.value === g
|
|
1452
|
+
function Lr({ url: e, isLive: t, messages: n }) {
|
|
1453
|
+
const o = O(null), s = f((T) => T.level), c = f((T) => T.levels), u = f((T) => T.setLevel), i = f((T) => T.setLevels), l = f((T) => T.techRef), d = f((T) => T.setError), g = O(0), y = O(null), v = 50, _ = 1e4, L = U(
|
|
1454
|
+
(T) => {
|
|
1455
|
+
if (o.current && (o.current.nextLevel = T, u(null), c)) {
|
|
1456
|
+
const I = c.map((p) => he(j({}, p), {
|
|
1457
|
+
selected: p.value === T
|
|
1432
1458
|
}));
|
|
1433
|
-
|
|
1459
|
+
i(I);
|
|
1434
1460
|
}
|
|
1435
1461
|
},
|
|
1436
|
-
[
|
|
1437
|
-
),
|
|
1438
|
-
|
|
1439
|
-
}, [e]),
|
|
1440
|
-
if (!
|
|
1441
|
-
console.log("[Player][HLS] MANIFEST_LOADED"),
|
|
1442
|
-
const
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
levels:
|
|
1446
|
-
const { bitrate:
|
|
1462
|
+
[c, u, i, o]
|
|
1463
|
+
), S = U(() => {
|
|
1464
|
+
o.current && (console.log("[Player][HLS] MEDIA_ATTACHED"), o.current.loadSource(e));
|
|
1465
|
+
}, [e]), P = U(() => {
|
|
1466
|
+
if (!o.current) return;
|
|
1467
|
+
console.log("[Player][HLS] MANIFEST_LOADED"), d(null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
|
|
1468
|
+
const T = o.current.levels, I = o.current.currentLevel, p = o.current.autoLevelEnabled;
|
|
1469
|
+
i(
|
|
1470
|
+
Sr({
|
|
1471
|
+
levels: T.map((B, J) => {
|
|
1472
|
+
const { bitrate: q, height: V, width: D } = B;
|
|
1447
1473
|
return {
|
|
1448
|
-
bitrate:
|
|
1449
|
-
height:
|
|
1450
|
-
index:
|
|
1451
|
-
width:
|
|
1474
|
+
bitrate: q,
|
|
1475
|
+
height: V,
|
|
1476
|
+
index: J,
|
|
1477
|
+
width: D
|
|
1452
1478
|
};
|
|
1453
1479
|
}),
|
|
1454
|
-
level:
|
|
1480
|
+
level: I,
|
|
1455
1481
|
isAuto: p
|
|
1456
1482
|
})
|
|
1457
1483
|
);
|
|
1458
|
-
}, [
|
|
1484
|
+
}, [d, i]), M = U(
|
|
1459
1485
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1460
|
-
(
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1486
|
+
(T, I) => {
|
|
1487
|
+
var p;
|
|
1488
|
+
if (console.error("[Player][HLS] ERROR", T, I), !!o.current && I.fatal)
|
|
1489
|
+
switch (I.type) {
|
|
1490
|
+
case re.ErrorTypes.NETWORK_ERROR:
|
|
1491
|
+
console.log("[Player][HLS] NETWORK_ERROR", I), t ? I.details === "manifestLoadError" && (g.current < v && (y.current && clearTimeout(y.current), g.current += 1, y.current = setTimeout(() => {
|
|
1492
|
+
if (o.current)
|
|
1466
1493
|
try {
|
|
1467
|
-
console.log("[Player][HLS] Retrying stream..."),
|
|
1468
|
-
} catch (
|
|
1469
|
-
console.error("[Player][HLS] Retry failed:",
|
|
1494
|
+
console.log("[Player][HLS] Retrying stream..."), o.current.loadSource(e);
|
|
1495
|
+
} catch (B) {
|
|
1496
|
+
console.error("[Player][HLS] Retry failed:", B);
|
|
1470
1497
|
}
|
|
1471
|
-
},
|
|
1472
|
-
message: "Live event will be back shortly.",
|
|
1498
|
+
}, _)), d({
|
|
1499
|
+
message: (p = n == null ? void 0 : n.eventFinished) != null ? p : "Live event will be back shortly.",
|
|
1473
1500
|
code: "MANIFEST_LOAD_ERROR",
|
|
1474
1501
|
tech: "hls"
|
|
1475
|
-
})) :
|
|
1502
|
+
})) : o.current.startLoad();
|
|
1476
1503
|
break;
|
|
1477
|
-
case
|
|
1478
|
-
|
|
1504
|
+
case re.ErrorTypes.MEDIA_ERROR:
|
|
1505
|
+
o.current.recoverMediaError();
|
|
1479
1506
|
break;
|
|
1480
1507
|
}
|
|
1481
1508
|
},
|
|
1482
|
-
[t, e,
|
|
1483
|
-
),
|
|
1484
|
-
if (!
|
|
1485
|
-
|
|
1486
|
-
backBufferLength: 10,
|
|
1487
|
-
startLevel: -1,
|
|
1488
|
-
maxBufferSize: 30 * 1024 * 1024
|
|
1489
|
-
// 30MB
|
|
1490
|
-
}, k = {
|
|
1491
|
-
backBufferLength: 60,
|
|
1509
|
+
[t, e, d]
|
|
1510
|
+
), R = U(() => {
|
|
1511
|
+
if (!l.current) return;
|
|
1512
|
+
let T = {
|
|
1492
1513
|
startLevel: -1,
|
|
1493
1514
|
maxBufferSize: 30 * 1024 * 1024
|
|
1494
1515
|
// 30MB
|
|
1495
|
-
}
|
|
1516
|
+
};
|
|
1517
|
+
tr ? (T.backBufferLength = -1, T.enableWorker = !1) : t ? T.backBufferLength = 10 : T.backBufferLength = 60;
|
|
1496
1518
|
try {
|
|
1497
|
-
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(
|
|
1498
|
-
} catch (
|
|
1499
|
-
throw new Error(`Error initializing Hls: ${
|
|
1519
|
+
console.log("[Player][HLS] URL", e), console.log("[Player][HLS] Config", JSON.stringify(T)), console.log("[Player][HLS] Version", re.version), o.current = new re(T), o.current.attachMedia(l.current), o.current.on(re.Events.MEDIA_ATTACHED, S), o.current.on(re.Events.MANIFEST_LOADED, P), o.current.on(re.Events.ERROR, M);
|
|
1520
|
+
} catch (I) {
|
|
1521
|
+
throw new Error(`Error initializing Hls: ${I}`);
|
|
1500
1522
|
}
|
|
1501
1523
|
}, [
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1524
|
+
P,
|
|
1525
|
+
S,
|
|
1526
|
+
M,
|
|
1505
1527
|
t,
|
|
1506
|
-
|
|
1528
|
+
l,
|
|
1507
1529
|
e
|
|
1508
|
-
]),
|
|
1509
|
-
|
|
1510
|
-
}, [
|
|
1511
|
-
return
|
|
1512
|
-
|
|
1513
|
-
}, [
|
|
1514
|
-
}
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1530
|
+
]), k = U(() => {
|
|
1531
|
+
o.current && (o.current.off(re.Events.MEDIA_ATTACHED, S), o.current.off(re.Events.MANIFEST_LOADED, P), o.current.off(re.Events.ERROR, M), o.current.destroy(), o.current = null), y.current && (clearTimeout(y.current), y.current = null), g.current = 0;
|
|
1532
|
+
}, [P, S, M]);
|
|
1533
|
+
return N(() => {
|
|
1534
|
+
s !== null && L(s);
|
|
1535
|
+
}, [s, L]), N(() => (re.isSupported() && R(), k), [k, R]), null;
|
|
1536
|
+
}
|
|
1537
|
+
const kr = "_playerVideo_wc0sm_1", Ir = {
|
|
1538
|
+
playerVideo: kr
|
|
1517
1539
|
};
|
|
1518
|
-
function
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1540
|
+
function Kt({
|
|
1541
|
+
url: e,
|
|
1542
|
+
isLive: t,
|
|
1543
|
+
isMuted: n = !1,
|
|
1544
|
+
messages: o = {}
|
|
1545
|
+
}) {
|
|
1546
|
+
const s = f((p) => p.handleDurationChange), c = f((p) => p.handleEnd), u = f((p) => p.handleLoadedMetadata), i = f((p) => p.handleLoadStart), l = f((p) => p.handlePause), d = f((p) => p.handlePlay), g = f((p) => p.handlePlaying), y = f((p) => p.handleSeeked), v = f((p) => p.handleSeeking), _ = f((p) => p.handleTimeUpdate), L = f((p) => p.handleWaiting), S = f((p) => p.handleVolumeChange), P = f((p) => p.handleError), M = f((p) => p.techRef), R = O(null), k = () => t ? {} : {
|
|
1547
|
+
onDurationChange: s,
|
|
1548
|
+
onSeeked: y,
|
|
1549
|
+
onSeeking: v,
|
|
1550
|
+
onTimeUpdate: T
|
|
1551
|
+
}, T = () => {
|
|
1552
|
+
(!R.current || Date.now() - R.current >= 1e3) && (_(), R.current = Date.now());
|
|
1553
|
+
}, I = k();
|
|
1527
1554
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1528
|
-
/* @__PURE__ */ a.jsx(
|
|
1555
|
+
/* @__PURE__ */ a.jsx(Lr, { isLive: t, url: e, messages: o }),
|
|
1529
1556
|
/* @__PURE__ */ a.jsx(
|
|
1530
1557
|
"video",
|
|
1531
|
-
|
|
1532
|
-
ref:
|
|
1533
|
-
className:
|
|
1558
|
+
j({
|
|
1559
|
+
ref: M,
|
|
1560
|
+
className: Ir.playerVideo,
|
|
1534
1561
|
playsInline: !0,
|
|
1535
1562
|
autoPlay: !0,
|
|
1536
1563
|
controls: !1,
|
|
1537
1564
|
muted: n,
|
|
1538
1565
|
preload: "auto",
|
|
1539
1566
|
crossOrigin: "anonymous",
|
|
1540
|
-
onEnded:
|
|
1541
|
-
onError:
|
|
1542
|
-
onLoadedMetadata:
|
|
1543
|
-
onLoadStart:
|
|
1544
|
-
onPause:
|
|
1545
|
-
onPlay:
|
|
1546
|
-
onPlaying:
|
|
1547
|
-
onWaiting:
|
|
1548
|
-
onVolumeChange:
|
|
1567
|
+
onEnded: c,
|
|
1568
|
+
onError: P,
|
|
1569
|
+
onLoadedMetadata: u,
|
|
1570
|
+
onLoadStart: i,
|
|
1571
|
+
onPause: l,
|
|
1572
|
+
onPlay: d,
|
|
1573
|
+
onPlaying: g,
|
|
1574
|
+
onWaiting: L,
|
|
1575
|
+
onVolumeChange: S,
|
|
1549
1576
|
tabIndex: -1
|
|
1550
|
-
},
|
|
1577
|
+
}, I)
|
|
1551
1578
|
)
|
|
1552
1579
|
] });
|
|
1553
1580
|
}
|
|
1554
|
-
function
|
|
1555
|
-
const [
|
|
1556
|
-
|
|
1557
|
-
|
|
1581
|
+
function Dr({ url: e, messages: t = {} }) {
|
|
1582
|
+
const [n, o] = X(null), s = $((u) => u.delay), c = U(async () => {
|
|
1583
|
+
o(
|
|
1584
|
+
s ? e.replace("-live", "-catchup").replace("playlist.m3u8", `playlist_fmp4_dvr_timeshift-${s}.m3u8`) : e
|
|
1558
1585
|
);
|
|
1559
|
-
}, [
|
|
1560
|
-
return
|
|
1561
|
-
|
|
1562
|
-
}, [
|
|
1586
|
+
}, [s, e]);
|
|
1587
|
+
return N(() => {
|
|
1588
|
+
c();
|
|
1589
|
+
}, [c]), n ? /* @__PURE__ */ a.jsx(Kt, { url: n, isLive: !0, messages: t }) : null;
|
|
1563
1590
|
}
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1591
|
+
function Fr(e, {
|
|
1592
|
+
defaultValue: t = !1,
|
|
1593
|
+
initializeWithValue: n = !0
|
|
1594
|
+
} = {}) {
|
|
1595
|
+
const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [s, c] = X(() => n ? o(e) : t);
|
|
1596
|
+
function u() {
|
|
1597
|
+
c(o(e));
|
|
1598
|
+
}
|
|
1599
|
+
return At(() => {
|
|
1600
|
+
if (typeof window == "undefined")
|
|
1601
|
+
return;
|
|
1602
|
+
const i = window.matchMedia(e);
|
|
1603
|
+
return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
|
|
1604
|
+
i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
|
|
1605
|
+
};
|
|
1606
|
+
}, [e]), s;
|
|
1607
|
+
}
|
|
1608
|
+
const Mr = "_playbackButton_lgsgw_1", Nr = "_seekIndicator_lgsgw_23", Vr = "_seekIndicatorLeft_lgsgw_49", Ar = "_seekIndicatorRight_lgsgw_53", Or = "_seekIndicatorVisible_lgsgw_57", me = {
|
|
1609
|
+
playbackButton: Mr,
|
|
1610
|
+
seekIndicator: Nr,
|
|
1611
|
+
seekIndicatorLeft: Vr,
|
|
1612
|
+
seekIndicatorRight: Ar,
|
|
1613
|
+
seekIndicatorVisible: Or
|
|
1614
|
+
}, Hr = 10;
|
|
1615
|
+
function Yt(i) {
|
|
1616
|
+
var l = i, {
|
|
1569
1617
|
className: e,
|
|
1570
|
-
onClick: t
|
|
1571
|
-
|
|
1618
|
+
onClick: t,
|
|
1619
|
+
onForwardSeek: n,
|
|
1620
|
+
onBackwardSeek: o,
|
|
1621
|
+
maxForwardTime: s,
|
|
1622
|
+
maxBackwardTime: c
|
|
1623
|
+
} = l, u = ne(l, [
|
|
1572
1624
|
"className",
|
|
1573
|
-
"onClick"
|
|
1625
|
+
"onClick",
|
|
1626
|
+
"onForwardSeek",
|
|
1627
|
+
"onBackwardSeek",
|
|
1628
|
+
"maxForwardTime",
|
|
1629
|
+
"maxBackwardTime"
|
|
1574
1630
|
]);
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1631
|
+
return Fr("(min-width: 1024px)") ? /* @__PURE__ */ a.jsx($r, j({ className: e, onClick: t }, u)) : /* @__PURE__ */ a.jsx(
|
|
1632
|
+
Br,
|
|
1633
|
+
j({
|
|
1634
|
+
className: e,
|
|
1635
|
+
maxForwardTime: s,
|
|
1636
|
+
maxBackwardTime: c,
|
|
1637
|
+
onForwardSeek: n,
|
|
1638
|
+
onBackwardSeek: o
|
|
1639
|
+
}, u)
|
|
1640
|
+
);
|
|
1641
|
+
}
|
|
1642
|
+
function $r(o) {
|
|
1643
|
+
var s = o, { className: e, onClick: t } = s, n = ne(s, ["className", "onClick"]);
|
|
1644
|
+
const c = O(null), u = f((_) => _.exitFullscreen), i = f((_) => _.isFullscreen), l = f((_) => _.requestFullscreen), d = (_) => {
|
|
1645
|
+
v() ? (y(), i ? u() : l()) : g(_);
|
|
1646
|
+
}, g = (_) => {
|
|
1647
|
+
c.current = window.setTimeout(() => {
|
|
1648
|
+
t == null || t(_), y();
|
|
1580
1649
|
}, 200);
|
|
1581
|
-
},
|
|
1582
|
-
|
|
1583
|
-
},
|
|
1584
|
-
return
|
|
1585
|
-
|
|
1650
|
+
}, y = () => {
|
|
1651
|
+
c.current !== null && (window.clearTimeout(c.current), c.current = null);
|
|
1652
|
+
}, v = () => c.current !== null;
|
|
1653
|
+
return N(() => () => {
|
|
1654
|
+
y();
|
|
1586
1655
|
}, []), /* @__PURE__ */ a.jsx(
|
|
1587
1656
|
"button",
|
|
1588
|
-
|
|
1589
|
-
onClick:
|
|
1590
|
-
className: [
|
|
1591
|
-
"aria-label": "Player
|
|
1657
|
+
j({
|
|
1658
|
+
onClick: d,
|
|
1659
|
+
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1660
|
+
"aria-label": "Player gestures"
|
|
1592
1661
|
}, n)
|
|
1593
1662
|
);
|
|
1594
1663
|
}
|
|
1595
|
-
function
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1664
|
+
function Br(u) {
|
|
1665
|
+
var i = u, {
|
|
1666
|
+
className: e,
|
|
1667
|
+
maxForwardTime: t,
|
|
1668
|
+
maxBackwardTime: n,
|
|
1669
|
+
onForwardSeek: o,
|
|
1670
|
+
onBackwardSeek: s
|
|
1671
|
+
} = i, c = ne(i, [
|
|
1672
|
+
"className",
|
|
1673
|
+
"maxForwardTime",
|
|
1674
|
+
"maxBackwardTime",
|
|
1675
|
+
"onForwardSeek",
|
|
1676
|
+
"onBackwardSeek"
|
|
1677
|
+
]);
|
|
1678
|
+
const l = O(null), d = O({
|
|
1679
|
+
single: null,
|
|
1680
|
+
indicator: null,
|
|
1681
|
+
accumulate: null
|
|
1682
|
+
}), g = O(null), y = O(0), v = O(null), [_, L] = X({ visible: !1, direction: null, time: 0 }), S = f((p) => p.isIdle), P = f((p) => p.setIsIdle), M = f((p) => p.resetIdle), R = (p, B) => p < B / 2 ? "backward" : "forward", k = (p) => {
|
|
1683
|
+
if (!g.current) return;
|
|
1684
|
+
const B = p.changedTouches[0];
|
|
1685
|
+
if (!B) return;
|
|
1686
|
+
const J = Date.now(), q = g.current.getBoundingClientRect(), V = B.clientX - q.left, D = B.clientY - q.top;
|
|
1687
|
+
if (V < 0 || V > q.width || D < 0 || D > q.height)
|
|
1688
|
+
return;
|
|
1689
|
+
const Q = l.current, Z = Q ? J - Q.time : 1 / 0, z = R(V, q.width), oe = v.current !== null && v.current === z && Q !== null && Z < 700 && Math.abs(V - Q.x) < 100;
|
|
1690
|
+
if (Q !== null && v.current === null && Z < 300 && Math.abs(V - Q.x) < 50 || oe) {
|
|
1691
|
+
p.preventDefault(), p.stopPropagation(), d.current.single && (window.clearTimeout(d.current.single), d.current.single = null), M(), (v.current === null || v.current !== z) && (y.current = 0, v.current = z);
|
|
1692
|
+
const te = z === "backward" ? n : t;
|
|
1693
|
+
y.current = Math.min(
|
|
1694
|
+
y.current + Hr,
|
|
1695
|
+
te != null ? te : 1 / 0
|
|
1696
|
+
), T(z, y.current), d.current.accumulate && window.clearTimeout(d.current.accumulate), d.current.accumulate = window.setTimeout(() => {
|
|
1697
|
+
const W = y.current;
|
|
1698
|
+
W > 0 && (v.current === "backward" ? s == null || s(W) : o == null || o(W), y.current = 0, v.current = null, l.current = null, I(), M()), d.current.accumulate = null;
|
|
1699
|
+
}, 500), l.current = { time: J, x: V };
|
|
1700
|
+
} else {
|
|
1701
|
+
l.current = { time: J, x: V }, d.current.single && window.clearTimeout(d.current.single);
|
|
1702
|
+
const te = v.current !== null ? 700 : 350;
|
|
1703
|
+
d.current.single = window.setTimeout(() => {
|
|
1704
|
+
if (v.current === null) {
|
|
1705
|
+
d.current.single = null;
|
|
1706
|
+
const W = S;
|
|
1707
|
+
P(!W), W && M();
|
|
1708
|
+
}
|
|
1709
|
+
l.current = null;
|
|
1710
|
+
}, te);
|
|
1711
|
+
}
|
|
1712
|
+
}, T = (p, B) => {
|
|
1713
|
+
L({ visible: !0, direction: p, time: B }), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.indicator = window.setTimeout(() => {
|
|
1714
|
+
I();
|
|
1715
|
+
}, 700);
|
|
1716
|
+
}, I = () => {
|
|
1717
|
+
L({ visible: !1, direction: null, time: 0 }), d.current.indicator && (window.clearTimeout(d.current.indicator), d.current.indicator = null);
|
|
1603
1718
|
};
|
|
1604
|
-
return
|
|
1719
|
+
return N(() => () => {
|
|
1720
|
+
d.current.single && window.clearTimeout(d.current.single), d.current.indicator && window.clearTimeout(d.current.indicator), d.current.accumulate && window.clearTimeout(d.current.accumulate);
|
|
1721
|
+
}, []), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1722
|
+
/* @__PURE__ */ a.jsx(
|
|
1723
|
+
"button",
|
|
1724
|
+
j({
|
|
1725
|
+
ref: g,
|
|
1726
|
+
onTouchEnd: k,
|
|
1727
|
+
className: [me.playbackButton, e].filter(Boolean).join(" "),
|
|
1728
|
+
"aria-label": "Player gestures"
|
|
1729
|
+
}, c)
|
|
1730
|
+
),
|
|
1731
|
+
_.visible && /* @__PURE__ */ a.jsxs(
|
|
1732
|
+
"div",
|
|
1733
|
+
{
|
|
1734
|
+
className: `${me.seekIndicator} ${me.seekIndicatorVisible} ${_.direction === "backward" ? me.seekIndicatorLeft : me.seekIndicatorRight}`,
|
|
1735
|
+
children: [
|
|
1736
|
+
_.direction === "backward" ? "-" : "+",
|
|
1737
|
+
_e(_.time)
|
|
1738
|
+
]
|
|
1739
|
+
}
|
|
1740
|
+
)
|
|
1741
|
+
] });
|
|
1742
|
+
}
|
|
1743
|
+
function Ur() {
|
|
1744
|
+
const e = f((l) => l.isPlaying), t = f((l) => l.pause), n = f((l) => l.getPauseTimeDiff), o = f((l) => l.play), s = $((l) => l.delay), c = $((l) => l.setDelay), u = $((l) => l.startDate), i = u ? u.getTime() : 0;
|
|
1745
|
+
return /* @__PURE__ */ a.jsx(
|
|
1746
|
+
Yt,
|
|
1747
|
+
{
|
|
1748
|
+
onClick: () => {
|
|
1749
|
+
if (e)
|
|
1750
|
+
t();
|
|
1751
|
+
else {
|
|
1752
|
+
const l = n();
|
|
1753
|
+
l && c(s + l), o();
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
onBackwardSeek: (l) => {
|
|
1757
|
+
const d = s + l;
|
|
1758
|
+
c(d);
|
|
1759
|
+
},
|
|
1760
|
+
onForwardSeek: (l) => {
|
|
1761
|
+
const d = Math.max(0, s - l);
|
|
1762
|
+
c(d);
|
|
1763
|
+
},
|
|
1764
|
+
maxBackwardTime: Math.floor(i),
|
|
1765
|
+
maxForwardTime: Math.floor(s)
|
|
1766
|
+
}
|
|
1767
|
+
);
|
|
1605
1768
|
}
|
|
1606
|
-
const
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
},
|
|
1769
|
+
const zr = "_playerButton_izwqq_1", Wr = "_playerButtonCircle_izwqq_42", Tt = {
|
|
1770
|
+
playerButton: zr,
|
|
1771
|
+
playerButtonCircle: Wr
|
|
1772
|
+
}, le = Me(
|
|
1610
1773
|
(s, o) => {
|
|
1611
|
-
var
|
|
1612
|
-
const u = e === "circle" ?
|
|
1613
|
-
return /* @__PURE__ */ a.jsx("button",
|
|
1774
|
+
var c = s, { shape: e = "circle", className: t } = c, n = ne(c, ["shape", "className"]);
|
|
1775
|
+
const u = e === "circle" ? Tt.playerButtonCircle : "", i = [Tt.playerButton, u, t].filter(Boolean).join(" ");
|
|
1776
|
+
return /* @__PURE__ */ a.jsx("button", j({ ref: o, className: i }, n));
|
|
1614
1777
|
}
|
|
1615
1778
|
);
|
|
1616
|
-
|
|
1617
|
-
const
|
|
1618
|
-
liveIndicator:
|
|
1619
|
-
liveIndicatorHasDelay:
|
|
1620
|
-
liveIndicatorNoDelay:
|
|
1779
|
+
le.displayName = "PlayerButton";
|
|
1780
|
+
const qr = "_liveIndicator_1jczn_1", Zr = "_liveIndicatorHasDelay_1jczn_9", Kr = "_liveIndicatorNoDelay_1jczn_13", ke = {
|
|
1781
|
+
liveIndicator: qr,
|
|
1782
|
+
liveIndicatorHasDelay: Zr,
|
|
1783
|
+
liveIndicatorNoDelay: Kr
|
|
1621
1784
|
};
|
|
1622
|
-
function
|
|
1623
|
-
var o = n, { message: e } = o, t =
|
|
1624
|
-
const s =
|
|
1625
|
-
s &&
|
|
1626
|
-
}, i = s ? `${
|
|
1627
|
-
return /* @__PURE__ */ a.jsxs(
|
|
1785
|
+
function Yr(n) {
|
|
1786
|
+
var o = n, { message: e } = o, t = ne(o, ["message"]);
|
|
1787
|
+
const s = $((l) => l.delay), c = $((l) => l.setDelay), u = () => {
|
|
1788
|
+
s && c(0);
|
|
1789
|
+
}, i = s ? `${ke.liveIndicator} ${ke.liveIndicatorHasDelay}` : `${ke.liveIndicator} ${ke.liveIndicatorNoDelay}`;
|
|
1790
|
+
return /* @__PURE__ */ a.jsxs(le, he(j({ onClick: u, shape: "square" }, t), { children: [
|
|
1628
1791
|
/* @__PURE__ */ a.jsx("div", { className: i }),
|
|
1629
1792
|
e || "Live"
|
|
1630
1793
|
] }));
|
|
1631
1794
|
}
|
|
1632
|
-
function
|
|
1795
|
+
function Xt() {
|
|
1633
1796
|
return /* @__PURE__ */ a.jsx(
|
|
1634
1797
|
"svg",
|
|
1635
1798
|
{
|
|
@@ -1640,7 +1803,7 @@ function Yt() {
|
|
|
1640
1803
|
}
|
|
1641
1804
|
);
|
|
1642
1805
|
}
|
|
1643
|
-
function
|
|
1806
|
+
function Gt() {
|
|
1644
1807
|
return /* @__PURE__ */ a.jsx(
|
|
1645
1808
|
"svg",
|
|
1646
1809
|
{
|
|
@@ -1651,38 +1814,38 @@ function Kt() {
|
|
|
1651
1814
|
}
|
|
1652
1815
|
);
|
|
1653
1816
|
}
|
|
1654
|
-
function
|
|
1655
|
-
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s =
|
|
1817
|
+
function Xr() {
|
|
1818
|
+
const e = f((i) => i.isPlaying), t = f((i) => i.pause), n = f((i) => i.getPauseTimeDiff), o = f((i) => i.play), s = $((i) => i.delay), c = $((i) => i.setDelay), u = () => {
|
|
1656
1819
|
if (e)
|
|
1657
1820
|
t();
|
|
1658
1821
|
else {
|
|
1659
1822
|
const i = n();
|
|
1660
|
-
i &&
|
|
1823
|
+
i && c(s + i), o();
|
|
1661
1824
|
}
|
|
1662
1825
|
};
|
|
1663
|
-
return /* @__PURE__ */ a.jsx(
|
|
1664
|
-
}
|
|
1665
|
-
const
|
|
1666
|
-
progressSlider:
|
|
1667
|
-
tipContainer:
|
|
1668
|
-
tipContainerVisible:
|
|
1669
|
-
tipContainerHidden:
|
|
1670
|
-
tipContent:
|
|
1671
|
-
},
|
|
1672
|
-
sliderRoot:
|
|
1673
|
-
sliderTrack:
|
|
1674
|
-
sliderRange:
|
|
1675
|
-
sliderThumb:
|
|
1676
|
-
},
|
|
1677
|
-
var u =
|
|
1826
|
+
return /* @__PURE__ */ a.jsx(le, { onClick: u, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
|
|
1827
|
+
}
|
|
1828
|
+
const Gr = "_progressSlider_hwzgf_1", Jr = "_tipContainer_hwzgf_7", Qr = "_tipContainerVisible_hwzgf_17", eo = "_tipContainerHidden_hwzgf_22", to = "_tipContent_hwzgf_27", ie = {
|
|
1829
|
+
progressSlider: Gr,
|
|
1830
|
+
tipContainer: Jr,
|
|
1831
|
+
tipContainerVisible: Qr,
|
|
1832
|
+
tipContainerHidden: eo,
|
|
1833
|
+
tipContent: to
|
|
1834
|
+
}, no = "_sliderRoot_aeak6_1", ro = "_sliderTrack_aeak6_18", oo = "_sliderRange_aeak6_28", io = "_sliderThumb_aeak6_37", Ie = {
|
|
1835
|
+
sliderRoot: no,
|
|
1836
|
+
sliderTrack: ro,
|
|
1837
|
+
sliderRange: oo,
|
|
1838
|
+
sliderThumb: io
|
|
1839
|
+
}, Ne = Me((c, s) => {
|
|
1840
|
+
var u = c, { max: e = 100, min: t = 0, className: n } = u, o = ne(u, ["max", "min", "className"]);
|
|
1678
1841
|
return /* @__PURE__ */ a.jsxs(
|
|
1679
|
-
|
|
1680
|
-
he(
|
|
1842
|
+
Pe.Root,
|
|
1843
|
+
he(j({
|
|
1681
1844
|
ref: s,
|
|
1682
1845
|
min: t,
|
|
1683
1846
|
max: e,
|
|
1684
1847
|
"aria-label": "Player progress",
|
|
1685
|
-
className: [
|
|
1848
|
+
className: [Ie.sliderRoot, n].filter(Boolean).join(" "),
|
|
1686
1849
|
onKeyDown: (i) => (
|
|
1687
1850
|
// Prevent the slider from being controlled by the keyboard
|
|
1688
1851
|
// when the slider is focused by a click
|
|
@@ -1690,14 +1853,14 @@ const to = "_progressSlider_hwzgf_1", no = "_tipContainer_hwzgf_7", ro = "_tipCo
|
|
|
1690
1853
|
)
|
|
1691
1854
|
}, o), {
|
|
1692
1855
|
children: [
|
|
1693
|
-
/* @__PURE__ */ a.jsx(
|
|
1694
|
-
/* @__PURE__ */ a.jsx(
|
|
1856
|
+
/* @__PURE__ */ a.jsx(Pe.Track, { className: Ie.sliderTrack, children: /* @__PURE__ */ a.jsx(Pe.Range, { className: Ie.sliderRange }) }),
|
|
1857
|
+
/* @__PURE__ */ a.jsx(Pe.Thumb, { className: Ie.sliderThumb })
|
|
1695
1858
|
]
|
|
1696
1859
|
})
|
|
1697
1860
|
);
|
|
1698
1861
|
});
|
|
1699
|
-
|
|
1700
|
-
function
|
|
1862
|
+
Ne.displayName = "PlayerSlider";
|
|
1863
|
+
function Fe(e) {
|
|
1701
1864
|
const t = e.getBoundingClientRect();
|
|
1702
1865
|
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
1703
1866
|
left: t.left * 100,
|
|
@@ -1708,47 +1871,47 @@ function ke(e) {
|
|
|
1708
1871
|
height: t.height * 100
|
|
1709
1872
|
} : t;
|
|
1710
1873
|
}
|
|
1711
|
-
const
|
|
1712
|
-
function
|
|
1713
|
-
const e =
|
|
1714
|
-
o(
|
|
1715
|
-
}, [
|
|
1716
|
-
(s ? (
|
|
1717
|
-
),
|
|
1718
|
-
|
|
1719
|
-
},
|
|
1720
|
-
if (
|
|
1721
|
-
const
|
|
1722
|
-
|
|
1723
|
-
}
|
|
1724
|
-
},
|
|
1725
|
-
(
|
|
1726
|
-
const
|
|
1727
|
-
if (
|
|
1728
|
-
const
|
|
1729
|
-
if (
|
|
1730
|
-
let
|
|
1731
|
-
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1874
|
+
const _t = "vod-player-progress-bar";
|
|
1875
|
+
function so() {
|
|
1876
|
+
const e = O(null), t = O(null), [n, o] = X(0), [s, c] = X(0), [u, i] = X(!1), [l, d] = X(-1), [g, y] = X(-1), v = $((D) => D.delay), _ = $((D) => D.startDate), L = _ ? _.getTime() : 0, S = (/* @__PURE__ */ new Date()).getTime(), P = $((D) => D.setDelay), M = f((D) => D.isPlaying), R = f((D) => D.addIdleLock), k = f((D) => D.removeIdleLock), T = U(() => {
|
|
1877
|
+
o(Wt(L, v)), c(Er(L, S));
|
|
1878
|
+
}, [v, S, L]), I = parseFloat(
|
|
1879
|
+
(s ? (g !== -1 ? g : n) / s * 100 : 0).toFixed(1)
|
|
1880
|
+
), p = (D) => {
|
|
1881
|
+
y(s * (D[0] / 100)), R(_t);
|
|
1882
|
+
}, B = () => {
|
|
1883
|
+
if (g !== -1) {
|
|
1884
|
+
const D = zt(L, g);
|
|
1885
|
+
P(D), y(-1), k(_t);
|
|
1886
|
+
}
|
|
1887
|
+
}, J = () => i(!0), q = () => i(!1), V = U(
|
|
1888
|
+
(D) => {
|
|
1889
|
+
const Q = e.current, Z = t.current;
|
|
1890
|
+
if (Q && Z) {
|
|
1891
|
+
const z = Fe(Q), oe = Fe(Z), ue = (D.pageX || D.clientX) - z.left, te = ue / z.width;
|
|
1892
|
+
if (te < 0) return;
|
|
1893
|
+
let W = ue - oe.width / 2;
|
|
1894
|
+
W < 0 && (W = 0), W > z.width - oe.width && (W = -1), Z.style.left = W > -1 ? `${W}px` : "auto", Z.style.right = W > -1 ? "auto" : "0px";
|
|
1895
|
+
const ve = s - te * s;
|
|
1896
|
+
d(ve > 0 ? ve : 0);
|
|
1734
1897
|
}
|
|
1735
|
-
|
|
1898
|
+
J();
|
|
1736
1899
|
},
|
|
1737
1900
|
[s]
|
|
1738
1901
|
);
|
|
1739
|
-
return
|
|
1740
|
-
|
|
1741
|
-
}, [
|
|
1902
|
+
return Ke(() => T(), M ? 1e3 : null), N(() => {
|
|
1903
|
+
T();
|
|
1904
|
+
}, [T]), /* @__PURE__ */ a.jsxs("div", { className: ie.progressSlider, children: [
|
|
1742
1905
|
/* @__PURE__ */ a.jsx(
|
|
1743
|
-
|
|
1906
|
+
Ne,
|
|
1744
1907
|
{
|
|
1745
1908
|
ref: e,
|
|
1746
|
-
value: [
|
|
1747
|
-
onPointerLeave:
|
|
1748
|
-
onPointerDown:
|
|
1749
|
-
onPointerMove:
|
|
1750
|
-
onValueChange:
|
|
1751
|
-
onValueCommit:
|
|
1909
|
+
value: [I],
|
|
1910
|
+
onPointerLeave: q,
|
|
1911
|
+
onPointerDown: q,
|
|
1912
|
+
onPointerMove: V,
|
|
1913
|
+
onValueChange: p,
|
|
1914
|
+
onValueCommit: B,
|
|
1752
1915
|
step: 0.1
|
|
1753
1916
|
}
|
|
1754
1917
|
),
|
|
@@ -1756,13 +1919,13 @@ function uo() {
|
|
|
1756
1919
|
"div",
|
|
1757
1920
|
{
|
|
1758
1921
|
ref: t,
|
|
1759
|
-
className: `${
|
|
1760
|
-
children: /* @__PURE__ */ a.jsx("p", { className:
|
|
1922
|
+
className: `${ie.tipContainer} ${u ? ie.tipContainerVisible : ie.tipContainerHidden}`,
|
|
1923
|
+
children: /* @__PURE__ */ a.jsx("p", { className: ie.tipContent, children: `-${_e(l)}` })
|
|
1761
1924
|
}
|
|
1762
1925
|
)
|
|
1763
1926
|
] });
|
|
1764
1927
|
}
|
|
1765
|
-
function
|
|
1928
|
+
function ao() {
|
|
1766
1929
|
return /* @__PURE__ */ a.jsx(
|
|
1767
1930
|
"svg",
|
|
1768
1931
|
{
|
|
@@ -1773,43 +1936,24 @@ function fo() {
|
|
|
1773
1936
|
}
|
|
1774
1937
|
);
|
|
1775
1938
|
}
|
|
1776
|
-
function
|
|
1777
|
-
const e =
|
|
1778
|
-
return /* @__PURE__ */ a.jsx(
|
|
1939
|
+
function lo() {
|
|
1940
|
+
const e = $((s) => s.startDate), t = $((s) => s.setDelay), n = e ? e.getTime() : 0, o = () => t(zt(n));
|
|
1941
|
+
return /* @__PURE__ */ a.jsx(le, { onClick: o, children: /* @__PURE__ */ a.jsx(ao, {}) });
|
|
1779
1942
|
}
|
|
1780
|
-
function
|
|
1943
|
+
function Jt() {
|
|
1781
1944
|
const e = f((t) => t.error);
|
|
1782
|
-
return e ? /* @__PURE__ */ a.
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
function nn({ callback: e }) {
|
|
1795
|
-
const t = f((n) => n.eventEmitter);
|
|
1796
|
-
return O(() => {
|
|
1797
|
-
const n = () => e("play", void 0), o = () => e("pause", void 0), s = () => e("ended", void 0), l = () => e("seeking", void 0), u = () => e("seeked", void 0), i = (x) => e("timeUpdate", x), c = (x) => e("volumeChange", x), h = (x) => e("fullscreenChange", x), v = (x) => e("qualityChange", x), C = (x) => e("loadedMetadata", x), S = () => e("loadStart", void 0), T = () => e("playing", void 0), L = () => e("waiting", void 0), N = () => e("error", void 0);
|
|
1798
|
-
return t.on("play", n), t.on("pause", o), t.on("ended", s), t.on("seeking", l), t.on("seeked", u), t.on("timeUpdate", i), t.on("volumeChange", c), t.on("fullscreenChange", h), t.on("qualityChange", v), t.on("loadedMetadata", C), t.on("loadStart", S), t.on("playing", T), t.on("waiting", L), t.on("error", N), () => {
|
|
1799
|
-
t.off("play", n), t.off("pause", o), t.off("ended", s), t.off("seeking", l), t.off("seeked", u), t.off("timeUpdate", i), t.off("volumeChange", c), t.off("fullscreenChange", h), t.off("qualityChange", v), t.off("loadedMetadata", C), t.off("loadStart", S), t.off("playing", T), t.off("waiting", L), t.off("error", N);
|
|
1800
|
-
};
|
|
1801
|
-
}, [e, t]), null;
|
|
1802
|
-
}
|
|
1803
|
-
const mo = "_playerContainer_rry4k_1", vo = "_controlsBottom_rry4k_29", po = "_controlsContainer_rry4k_45", yo = "_controlsRow_rry4k_61", go = "_controlsSection_rry4k_68", Co = "_controlsSectionStart_rry4k_75", wo = "_controlsSectionEnd_rry4k_79", re = {
|
|
1804
|
-
playerContainer: mo,
|
|
1805
|
-
controlsBottom: vo,
|
|
1806
|
-
controlsContainer: po,
|
|
1807
|
-
controlsRow: yo,
|
|
1808
|
-
controlsSection: go,
|
|
1809
|
-
controlsSectionStart: Co,
|
|
1810
|
-
controlsSectionEnd: wo
|
|
1811
|
-
}, rn = re.playerContainer, on = re.controlsBottom, sn = re.controlsContainer, an = re.controlsRow, ln = `${re.controlsSection} ${re.controlsSectionStart}`, cn = `${re.controlsSection} ${re.controlsSectionEnd}`;
|
|
1812
|
-
function xo() {
|
|
1945
|
+
return e ? /* @__PURE__ */ a.jsx("div", { className: se.playerNotice, children: /* @__PURE__ */ a.jsx("h3", { className: se.playerNoticeTitle, children: e.message }) }) : null;
|
|
1946
|
+
}
|
|
1947
|
+
const co = "_playerContainer_1fn8l_1", uo = "_controlsBottom_1fn8l_29", fo = "_controlsContainer_1fn8l_45", ho = "_controlsRow_1fn8l_61", mo = "_controlsSection_1fn8l_68", po = "_controlsSectionStart_1fn8l_78", vo = "_controlsSectionEnd_1fn8l_82", K = {
|
|
1948
|
+
playerContainer: co,
|
|
1949
|
+
controlsBottom: uo,
|
|
1950
|
+
controlsContainer: fo,
|
|
1951
|
+
controlsRow: ho,
|
|
1952
|
+
controlsSection: mo,
|
|
1953
|
+
controlsSectionStart: po,
|
|
1954
|
+
controlsSectionEnd: vo
|
|
1955
|
+
};
|
|
1956
|
+
function yo() {
|
|
1813
1957
|
return /* @__PURE__ */ a.jsx(
|
|
1814
1958
|
"svg",
|
|
1815
1959
|
{
|
|
@@ -1820,7 +1964,7 @@ function xo() {
|
|
|
1820
1964
|
}
|
|
1821
1965
|
);
|
|
1822
1966
|
}
|
|
1823
|
-
function
|
|
1967
|
+
function go() {
|
|
1824
1968
|
return /* @__PURE__ */ a.jsx(
|
|
1825
1969
|
"svg",
|
|
1826
1970
|
{
|
|
@@ -1831,75 +1975,82 @@ function _o() {
|
|
|
1831
1975
|
}
|
|
1832
1976
|
);
|
|
1833
1977
|
}
|
|
1834
|
-
function
|
|
1835
|
-
const e = f((
|
|
1836
|
-
(
|
|
1837
|
-
|
|
1978
|
+
function Qt() {
|
|
1979
|
+
const e = f((d) => d.containerRef), t = f((d) => d.exitFullscreen), n = f((d) => d.isFullscreen), o = f((d) => d.requestFullscreen), s = f((d) => d.setIsFullscreen), c = f((d) => d.setIsFullscreenReady), u = f((d) => d.techRef), i = U(
|
|
1980
|
+
(d) => {
|
|
1981
|
+
d.stopPropagation(), s(nr());
|
|
1838
1982
|
},
|
|
1839
1983
|
[s]
|
|
1840
|
-
),
|
|
1984
|
+
), l = () => {
|
|
1841
1985
|
n ? t() : o();
|
|
1842
1986
|
};
|
|
1843
|
-
return
|
|
1844
|
-
const
|
|
1845
|
-
if (
|
|
1846
|
-
return
|
|
1847
|
-
}, [e, i, u]),
|
|
1848
|
-
|
|
1849
|
-
}, [
|
|
1850
|
-
}
|
|
1851
|
-
const
|
|
1852
|
-
idleCheckContainer:
|
|
1853
|
-
idleCheckContainerIdle:
|
|
1854
|
-
idleCheckContainerActive:
|
|
1855
|
-
},
|
|
1856
|
-
function
|
|
1857
|
-
const t =
|
|
1987
|
+
return N(() => {
|
|
1988
|
+
const d = $t ? u.current : e.current;
|
|
1989
|
+
if (d)
|
|
1990
|
+
return ir(d, i);
|
|
1991
|
+
}, [e, i, u]), N(() => {
|
|
1992
|
+
c(!0);
|
|
1993
|
+
}, [c]), /* @__PURE__ */ a.jsx(le, { onClick: l, children: n ? /* @__PURE__ */ a.jsx(go, {}) : /* @__PURE__ */ a.jsx(yo, {}) });
|
|
1994
|
+
}
|
|
1995
|
+
const wo = "_idleCheckContainer_iz9tu_1", To = "_idleCheckContainerIdle_iz9tu_10", _o = "_idleCheckContainerActive_iz9tu_15", We = {
|
|
1996
|
+
idleCheckContainer: wo,
|
|
1997
|
+
idleCheckContainerIdle: To,
|
|
1998
|
+
idleCheckContainerActive: _o
|
|
1999
|
+
}, xo = 5 * 1e3;
|
|
2000
|
+
function en({ children: e }) {
|
|
2001
|
+
const t = O(null), n = f((v) => v.isIdle), o = f((v) => v.setIsIdle), s = O(null), u = f((v) => v.idleLocks).size, i = f((v) => v.eventEmitter), l = U(() => {
|
|
1858
2002
|
s.current !== null && (window.clearTimeout(s.current), s.current = null);
|
|
1859
|
-
}, []),
|
|
1860
|
-
|
|
1861
|
-
}, [
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
}), [
|
|
1865
|
-
const
|
|
1866
|
-
if (!
|
|
1867
|
-
const
|
|
1868
|
-
n && (
|
|
1869
|
-
},
|
|
1870
|
-
n && o(!1),
|
|
2003
|
+
}, []), d = U(() => {
|
|
2004
|
+
l(), s.current = window.setTimeout(() => o(!0), xo);
|
|
2005
|
+
}, [l]);
|
|
2006
|
+
N(() => (o(!1), d(), () => {
|
|
2007
|
+
l();
|
|
2008
|
+
}), [l, d]), N(() => {
|
|
2009
|
+
const v = t.current;
|
|
2010
|
+
if (!v) return;
|
|
2011
|
+
const _ = (S) => {
|
|
2012
|
+
n && (S.stopPropagation(), o(!1), d());
|
|
2013
|
+
}, L = () => {
|
|
2014
|
+
n && o(!1), d();
|
|
2015
|
+
};
|
|
2016
|
+
return v.addEventListener("click", _), v.addEventListener("mousemove", L), () => {
|
|
2017
|
+
v.removeEventListener("click", _), v.removeEventListener("mousemove", L);
|
|
1871
2018
|
};
|
|
1872
|
-
|
|
1873
|
-
|
|
2019
|
+
}, [t, n, o, d]), N(() => {
|
|
2020
|
+
const v = () => {
|
|
2021
|
+
o(!1), d();
|
|
1874
2022
|
};
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
2023
|
+
return i.on("resetIdle", v), () => {
|
|
2024
|
+
i.off("resetIdle", v);
|
|
2025
|
+
};
|
|
2026
|
+
}, [i, o, d]);
|
|
2027
|
+
const g = n && !u, y = `${We.idleCheckContainer} ${g ? We.idleCheckContainerIdle : We.idleCheckContainerActive}`;
|
|
2028
|
+
return /* @__PURE__ */ a.jsx("div", { ref: t, className: y, children: e });
|
|
1878
2029
|
}
|
|
1879
|
-
const
|
|
1880
|
-
spinner:
|
|
2030
|
+
const Co = "_spinner_oo4hi_10", Eo = {
|
|
2031
|
+
spinner: Co
|
|
1881
2032
|
};
|
|
1882
|
-
function
|
|
1883
|
-
return /* @__PURE__ */ a.jsx("div",
|
|
2033
|
+
function Ro(e) {
|
|
2034
|
+
return /* @__PURE__ */ a.jsx("div", j({ className: Eo.spinner }, e));
|
|
1884
2035
|
}
|
|
1885
|
-
function
|
|
1886
|
-
const [n, o] =
|
|
1887
|
-
return
|
|
2036
|
+
function So(e, t = 500) {
|
|
2037
|
+
const [n, o] = X(e);
|
|
2038
|
+
return N(() => {
|
|
1888
2039
|
const s = window.setTimeout(() => o(e), t);
|
|
1889
2040
|
return () => {
|
|
1890
2041
|
window.clearTimeout(s);
|
|
1891
2042
|
};
|
|
1892
2043
|
}, [e, t]), n;
|
|
1893
2044
|
}
|
|
1894
|
-
const
|
|
1895
|
-
loadingContainer:
|
|
2045
|
+
const bo = "_loadingContainer_v9v7r_1", Po = {
|
|
2046
|
+
loadingContainer: bo
|
|
1896
2047
|
};
|
|
1897
|
-
function
|
|
1898
|
-
var o = n, { style: e } = o, t =
|
|
2048
|
+
function tn(n) {
|
|
2049
|
+
var o = n, { style: e } = o, t = ne(o, ["style"]);
|
|
1899
2050
|
const s = f((u) => u.isLoading);
|
|
1900
|
-
return
|
|
2051
|
+
return So(s, 100) ? /* @__PURE__ */ a.jsx("div", he(j({ className: Po.loadingContainer, style: e }, t), { children: /* @__PURE__ */ a.jsx(Ro, {}) })) : null;
|
|
1901
2052
|
}
|
|
1902
|
-
function
|
|
2053
|
+
function jo() {
|
|
1903
2054
|
return /* @__PURE__ */ a.jsx(
|
|
1904
2055
|
"svg",
|
|
1905
2056
|
{
|
|
@@ -1910,7 +2061,7 @@ function Io() {
|
|
|
1910
2061
|
}
|
|
1911
2062
|
);
|
|
1912
2063
|
}
|
|
1913
|
-
function
|
|
2064
|
+
function Lo() {
|
|
1914
2065
|
return /* @__PURE__ */ a.jsx(
|
|
1915
2066
|
"svg",
|
|
1916
2067
|
{
|
|
@@ -1921,59 +2072,95 @@ function Fo() {
|
|
|
1921
2072
|
}
|
|
1922
2073
|
);
|
|
1923
2074
|
}
|
|
1924
|
-
const
|
|
1925
|
-
dropdownMenuContent:
|
|
1926
|
-
dropdownMenuItem:
|
|
1927
|
-
|
|
1928
|
-
|
|
2075
|
+
const ko = "_dropdownMenuContent_11aiz_1", Io = "_dropdownMenuItem_11aiz_82", Do = "_scrollAreaRoot_11aiz_124", Fo = "_scrollAreaViewport_11aiz_132", Mo = "_scrollAreaScrollbar_11aiz_140", No = "_scrollAreaThumb_11aiz_167", pe = {
|
|
2076
|
+
dropdownMenuContent: ko,
|
|
2077
|
+
dropdownMenuItem: Io,
|
|
2078
|
+
scrollAreaRoot: Do,
|
|
2079
|
+
scrollAreaViewport: Fo,
|
|
2080
|
+
scrollAreaScrollbar: Mo,
|
|
2081
|
+
scrollAreaThumb: No
|
|
2082
|
+
}, Vo = xe.Root, Ao = xe.Trigger, Oo = xe.Portal, nn = Me((c, s) => {
|
|
2083
|
+
var u = c, { sideOffset: e = 4, className: t, children: n } = u, o = ne(u, ["sideOffset", "className", "children"]);
|
|
1929
2084
|
return /* @__PURE__ */ a.jsx(
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
ref:
|
|
2085
|
+
xe.Content,
|
|
2086
|
+
he(j({
|
|
2087
|
+
ref: s,
|
|
1933
2088
|
sideOffset: e,
|
|
1934
|
-
className: [
|
|
1935
|
-
|
|
1936
|
-
|
|
2089
|
+
className: [pe.dropdownMenuContent, t].filter(Boolean).join(" "),
|
|
2090
|
+
onOpenAutoFocus: (i) => {
|
|
2091
|
+
i.preventDefault();
|
|
2092
|
+
},
|
|
2093
|
+
onCloseAutoFocus: (i) => {
|
|
2094
|
+
i.preventDefault();
|
|
1937
2095
|
}
|
|
1938
|
-
},
|
|
2096
|
+
}, o), {
|
|
2097
|
+
children: /* @__PURE__ */ a.jsxs(
|
|
2098
|
+
je.Root,
|
|
2099
|
+
{
|
|
2100
|
+
className: pe.scrollAreaRoot,
|
|
2101
|
+
type: "always",
|
|
2102
|
+
scrollHideDelay: 0,
|
|
2103
|
+
children: [
|
|
2104
|
+
/* @__PURE__ */ a.jsx(je.Viewport, { className: pe.scrollAreaViewport, children: n }),
|
|
2105
|
+
/* @__PURE__ */ a.jsx(
|
|
2106
|
+
je.Scrollbar,
|
|
2107
|
+
{
|
|
2108
|
+
className: pe.scrollAreaScrollbar,
|
|
2109
|
+
orientation: "vertical",
|
|
2110
|
+
children: /* @__PURE__ */ a.jsx(je.Thumb, { className: pe.scrollAreaThumb })
|
|
2111
|
+
}
|
|
2112
|
+
)
|
|
2113
|
+
]
|
|
2114
|
+
}
|
|
2115
|
+
)
|
|
2116
|
+
})
|
|
1939
2117
|
);
|
|
1940
2118
|
});
|
|
1941
|
-
|
|
1942
|
-
const
|
|
1943
|
-
var
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
2119
|
+
nn.displayName = "PlayerMenuContent";
|
|
2120
|
+
const rn = Me((s, o) => {
|
|
2121
|
+
var c = s, { className: e, onClick: t } = c, n = ne(c, ["className", "onClick"]);
|
|
2122
|
+
const u = (l) => {
|
|
2123
|
+
t == null || t(l);
|
|
2124
|
+
}, i = (l) => {
|
|
2125
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), t == null || t(l));
|
|
2126
|
+
};
|
|
2127
|
+
return /* @__PURE__ */ a.jsx(xe.Close, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
2128
|
+
"div",
|
|
2129
|
+
j({
|
|
2130
|
+
ref: o,
|
|
2131
|
+
className: [pe.dropdownMenuItem, e].filter(Boolean).join(" "),
|
|
2132
|
+
role: "menuitem",
|
|
2133
|
+
tabIndex: 0,
|
|
2134
|
+
onClick: u,
|
|
2135
|
+
onKeyDown: i
|
|
2136
|
+
}, n)
|
|
2137
|
+
) });
|
|
1951
2138
|
});
|
|
1952
|
-
|
|
1953
|
-
const
|
|
1954
|
-
function
|
|
1955
|
-
const [e, t] =
|
|
1956
|
-
(
|
|
1957
|
-
t(
|
|
2139
|
+
rn.displayName = "PlayerMenuItem";
|
|
2140
|
+
const xt = "settings";
|
|
2141
|
+
function on() {
|
|
2142
|
+
const [e, t] = X(!1), n = f((l) => l.containerRef), o = f((l) => l.addIdleLock), s = f((l) => l.removeIdleLock), c = f((l) => l.levels), u = f((l) => l.setLevel), i = U(
|
|
2143
|
+
(l) => {
|
|
2144
|
+
t(l), l ? o(xt) : s(xt);
|
|
1958
2145
|
},
|
|
1959
2146
|
[o, s]
|
|
1960
2147
|
);
|
|
1961
2148
|
return /* @__PURE__ */ a.jsxs(Vo, { open: e, onOpenChange: i, children: [
|
|
1962
|
-
/* @__PURE__ */ a.jsx(
|
|
1963
|
-
/* @__PURE__ */ a.jsx(
|
|
1964
|
-
|
|
2149
|
+
/* @__PURE__ */ a.jsx(Ao, { asChild: !0, children: /* @__PURE__ */ a.jsx(le, { children: /* @__PURE__ */ a.jsx(Lo, {}) }) }),
|
|
2150
|
+
/* @__PURE__ */ a.jsx(Oo, { container: n.current, children: /* @__PURE__ */ a.jsx(nn, { side: "top", align: "end", children: c == null ? void 0 : c.map((l) => /* @__PURE__ */ a.jsxs(
|
|
2151
|
+
rn,
|
|
1965
2152
|
{
|
|
1966
|
-
onClick: () => u(
|
|
2153
|
+
onClick: () => u(l.value),
|
|
1967
2154
|
children: [
|
|
1968
|
-
|
|
1969
|
-
|
|
2155
|
+
l.label,
|
|
2156
|
+
l.selected && /* @__PURE__ */ a.jsx(jo, {})
|
|
1970
2157
|
]
|
|
1971
2158
|
},
|
|
1972
|
-
|
|
2159
|
+
l.sid
|
|
1973
2160
|
)) }) })
|
|
1974
2161
|
] });
|
|
1975
2162
|
}
|
|
1976
|
-
function
|
|
2163
|
+
function Ho() {
|
|
1977
2164
|
return /* @__PURE__ */ a.jsx(
|
|
1978
2165
|
"svg",
|
|
1979
2166
|
{
|
|
@@ -1995,7 +2182,7 @@ function $o() {
|
|
|
1995
2182
|
}
|
|
1996
2183
|
);
|
|
1997
2184
|
}
|
|
1998
|
-
function
|
|
2185
|
+
function Bo() {
|
|
1999
2186
|
return /* @__PURE__ */ a.jsx(
|
|
2000
2187
|
"svg",
|
|
2001
2188
|
{
|
|
@@ -2006,138 +2193,157 @@ function Uo() {
|
|
|
2006
2193
|
}
|
|
2007
2194
|
);
|
|
2008
2195
|
}
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2011
|
-
|
|
2196
|
+
const Uo = "_volumeContainer_4d6jg_1", zo = "_volumeSlider_4d6jg_8", Ct = {
|
|
2197
|
+
volumeContainer: Uo,
|
|
2198
|
+
volumeSlider: zo
|
|
2012
2199
|
}, Et = "volume";
|
|
2013
|
-
function
|
|
2200
|
+
function sn() {
|
|
2014
2201
|
const e = f((i) => i.setVolume), t = f((i) => i.volume), n = f((i) => i.addIdleLock), o = f((i) => i.removeIdleLock), s = (i) => {
|
|
2015
2202
|
e(i[0]), n(Et);
|
|
2016
|
-
},
|
|
2203
|
+
}, c = () => {
|
|
2017
2204
|
o(Et);
|
|
2018
2205
|
}, u = () => e(t ? 0 : 100);
|
|
2019
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2020
|
-
/* @__PURE__ */ a.jsx(
|
|
2021
|
-
/* @__PURE__ */ a.jsx("div", { className:
|
|
2022
|
-
|
|
2206
|
+
return /* @__PURE__ */ a.jsxs("div", { className: Ct.volumeContainer, children: [
|
|
2207
|
+
/* @__PURE__ */ a.jsx(le, { onClick: u, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ a.jsx(Ho, {}) : /* @__PURE__ */ a.jsx($o, {}) : /* @__PURE__ */ a.jsx(Bo, {}) }),
|
|
2208
|
+
/* @__PURE__ */ a.jsx("div", { className: Ct.volumeSlider, children: /* @__PURE__ */ a.jsx(
|
|
2209
|
+
Ne,
|
|
2023
2210
|
{
|
|
2024
2211
|
value: [t],
|
|
2025
2212
|
onValueChange: s,
|
|
2026
|
-
onValueCommit:
|
|
2213
|
+
onValueCommit: c
|
|
2027
2214
|
}
|
|
2028
2215
|
) })
|
|
2029
2216
|
] });
|
|
2030
2217
|
}
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2033
|
-
initializeWithValue: n = !0
|
|
2034
|
-
} = {}) {
|
|
2035
|
-
const o = (i) => typeof window == "undefined" ? t : window.matchMedia(i).matches, [s, l] = U(() => n ? o(e) : t);
|
|
2036
|
-
function u() {
|
|
2037
|
-
l(o(e));
|
|
2038
|
-
}
|
|
2039
|
-
return Ht(() => {
|
|
2040
|
-
if (typeof window == "undefined")
|
|
2041
|
-
return;
|
|
2042
|
-
const i = window.matchMedia(e);
|
|
2043
|
-
return u(), i.addListener ? i.addListener(u) : i.addEventListener("change", u), () => {
|
|
2044
|
-
i.removeListener ? i.removeListener(u) : i.removeEventListener("change", u);
|
|
2045
|
-
};
|
|
2046
|
-
}, [e]), s;
|
|
2047
|
-
}
|
|
2048
|
-
function li(e) {
|
|
2049
|
-
return /* @__PURE__ */ a.jsx(Mr, { children: /* @__PURE__ */ a.jsx(zo, b({}, e)) });
|
|
2218
|
+
function ai(e) {
|
|
2219
|
+
return /* @__PURE__ */ a.jsx(jr, { children: /* @__PURE__ */ a.jsx(Wo, j({}, e)) });
|
|
2050
2220
|
}
|
|
2051
|
-
function
|
|
2052
|
-
const o =
|
|
2221
|
+
function Wo({ url: e, messages: t, onEvent: n }) {
|
|
2222
|
+
const o = f((s) => s.containerRef);
|
|
2053
2223
|
return /* @__PURE__ */ a.jsxs(
|
|
2054
2224
|
"div",
|
|
2055
2225
|
{
|
|
2056
|
-
ref:
|
|
2057
|
-
className:
|
|
2226
|
+
ref: o,
|
|
2227
|
+
className: K.playerContainer,
|
|
2058
2228
|
children: [
|
|
2059
2229
|
/* @__PURE__ */ a.jsxs(
|
|
2060
|
-
|
|
2230
|
+
_r,
|
|
2061
2231
|
{
|
|
2062
2232
|
url: e,
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2233
|
+
messages: {
|
|
2234
|
+
eventNotStarted: t == null ? void 0 : t.eventNotStarted,
|
|
2235
|
+
eventStartingSoon: t == null ? void 0 : t.eventStartingSoon
|
|
2236
|
+
},
|
|
2066
2237
|
children: [
|
|
2067
|
-
/* @__PURE__ */ a.jsx(
|
|
2238
|
+
/* @__PURE__ */ a.jsx(
|
|
2239
|
+
Dr,
|
|
2240
|
+
{
|
|
2241
|
+
url: e,
|
|
2242
|
+
messages: {
|
|
2243
|
+
eventFinished: t == null ? void 0 : t.eventFinished
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
),
|
|
2247
|
+
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
2068
2248
|
/* @__PURE__ */ a.jsx(tn, {}),
|
|
2069
|
-
/* @__PURE__ */ a.
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
/* @__PURE__ */ a.
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2249
|
+
/* @__PURE__ */ a.jsxs(en, { children: [
|
|
2250
|
+
/* @__PURE__ */ a.jsx(Ur, {}),
|
|
2251
|
+
/* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
|
|
2252
|
+
/* @__PURE__ */ a.jsx(so, {}),
|
|
2253
|
+
/* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
|
|
2254
|
+
/* @__PURE__ */ a.jsxs(
|
|
2255
|
+
"div",
|
|
2256
|
+
{
|
|
2257
|
+
className: `${K.controlsSection} ${K.controlsSectionStart}`,
|
|
2258
|
+
children: [
|
|
2259
|
+
/* @__PURE__ */ a.jsx(Xr, {}),
|
|
2260
|
+
/* @__PURE__ */ a.jsx(lo, {}),
|
|
2261
|
+
/* @__PURE__ */ a.jsx(sn, {})
|
|
2262
|
+
]
|
|
2263
|
+
}
|
|
2264
|
+
),
|
|
2265
|
+
/* @__PURE__ */ a.jsxs(
|
|
2266
|
+
"div",
|
|
2267
|
+
{
|
|
2268
|
+
className: `${K.controlsSection} ${K.controlsSectionEnd}`,
|
|
2269
|
+
children: [
|
|
2270
|
+
/* @__PURE__ */ a.jsx(Yr, { message: t == null ? void 0 : t.live }),
|
|
2271
|
+
/* @__PURE__ */ a.jsx(on, {}),
|
|
2272
|
+
/* @__PURE__ */ a.jsx(Qt, {})
|
|
2273
|
+
]
|
|
2274
|
+
}
|
|
2275
|
+
)
|
|
2085
2276
|
] })
|
|
2086
2277
|
] }) })
|
|
2087
2278
|
] })
|
|
2088
2279
|
]
|
|
2089
2280
|
}
|
|
2090
2281
|
),
|
|
2091
|
-
/* @__PURE__ */ a.jsx(
|
|
2092
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2282
|
+
/* @__PURE__ */ a.jsx(Pr, {}),
|
|
2283
|
+
n && /* @__PURE__ */ a.jsx(br, { callback: n })
|
|
2093
2284
|
]
|
|
2094
2285
|
}
|
|
2095
2286
|
);
|
|
2096
2287
|
}
|
|
2097
2288
|
function qo() {
|
|
2098
|
-
const e = f((
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2289
|
+
const e = f((u) => u.isPlaying), t = f((u) => u.pause), n = f((u) => u.play), o = f((u) => u.currentTime), s = f((u) => u.duration), c = f((u) => u.seek);
|
|
2290
|
+
return /* @__PURE__ */ a.jsx(
|
|
2291
|
+
Yt,
|
|
2292
|
+
{
|
|
2293
|
+
onClick: () => {
|
|
2294
|
+
e ? t() : n();
|
|
2295
|
+
},
|
|
2296
|
+
onBackwardSeek: (u) => {
|
|
2297
|
+
const i = Math.max(0, o - u);
|
|
2298
|
+
c(i);
|
|
2299
|
+
},
|
|
2300
|
+
onForwardSeek: (u) => {
|
|
2301
|
+
const i = Math.min(o + u, s);
|
|
2302
|
+
c(i);
|
|
2303
|
+
},
|
|
2304
|
+
maxBackwardTime: Math.floor(o),
|
|
2305
|
+
maxForwardTime: Math.floor(s - o)
|
|
2306
|
+
}
|
|
2307
|
+
);
|
|
2102
2308
|
}
|
|
2103
2309
|
function Zo() {
|
|
2104
2310
|
const e = f((s) => s.isPlaying), t = f((s) => s.pause), n = f((s) => s.play), o = () => {
|
|
2105
2311
|
e ? t() : n();
|
|
2106
2312
|
};
|
|
2107
|
-
return /* @__PURE__ */ a.jsx(
|
|
2313
|
+
return /* @__PURE__ */ a.jsx(le, { onClick: o, children: e ? /* @__PURE__ */ a.jsx(Xt, {}) : /* @__PURE__ */ a.jsx(Gt, {}) });
|
|
2108
2314
|
}
|
|
2109
2315
|
const Rt = "vod-player-progress-bar";
|
|
2110
|
-
function
|
|
2111
|
-
const e =
|
|
2112
|
-
(
|
|
2113
|
-
), L = (
|
|
2114
|
-
i(
|
|
2115
|
-
},
|
|
2116
|
-
u !== -1 && (
|
|
2117
|
-
},
|
|
2118
|
-
(
|
|
2119
|
-
const
|
|
2120
|
-
if (
|
|
2121
|
-
const
|
|
2122
|
-
if (
|
|
2123
|
-
let
|
|
2124
|
-
|
|
2316
|
+
function Ko() {
|
|
2317
|
+
const e = O(null), t = O(null), [n, o] = X(!1), [s, c] = X(-1), [u, i] = X(-1), l = f((k) => k.currentTime), d = f((k) => k.duration), g = f((k) => k.seek), y = f((k) => k.addIdleLock), v = f((k) => k.removeIdleLock), _ = parseFloat(
|
|
2318
|
+
(d ? (u !== -1 ? u : l) / d * 100 : 0).toFixed(1)
|
|
2319
|
+
), L = (k) => {
|
|
2320
|
+
i(d * (k[0] / 100)), y(Rt);
|
|
2321
|
+
}, S = () => {
|
|
2322
|
+
u !== -1 && (g(u), i(-1), v(Rt));
|
|
2323
|
+
}, P = () => o(!0), M = () => o(!1), R = U(
|
|
2324
|
+
(k) => {
|
|
2325
|
+
const T = e.current, I = t.current;
|
|
2326
|
+
if (T && I) {
|
|
2327
|
+
const p = Fe(T), B = Fe(I), J = (k.pageX || k.clientX) - p.left, q = J / p.width;
|
|
2328
|
+
if (q < 0) return;
|
|
2329
|
+
let V = J - B.width / 2;
|
|
2330
|
+
V < 0 && (V = 0), V > p.width - B.width && (V = -1), I.style.left = V > -1 ? `${V}px` : "auto", I.style.right = V > -1 ? "auto" : "0px", c(q * d);
|
|
2125
2331
|
}
|
|
2126
|
-
|
|
2332
|
+
P();
|
|
2127
2333
|
},
|
|
2128
|
-
[
|
|
2334
|
+
[d]
|
|
2129
2335
|
);
|
|
2130
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2336
|
+
return /* @__PURE__ */ a.jsxs("div", { className: ie.progressSlider, children: [
|
|
2131
2337
|
/* @__PURE__ */ a.jsx(
|
|
2132
|
-
|
|
2338
|
+
Ne,
|
|
2133
2339
|
{
|
|
2134
2340
|
ref: e,
|
|
2135
|
-
value: [
|
|
2341
|
+
value: [_],
|
|
2136
2342
|
onPointerLeave: M,
|
|
2137
2343
|
onPointerDown: M,
|
|
2138
|
-
onPointerMove:
|
|
2344
|
+
onPointerMove: R,
|
|
2139
2345
|
onValueChange: L,
|
|
2140
|
-
onValueCommit:
|
|
2346
|
+
onValueCommit: S,
|
|
2141
2347
|
step: 0.1
|
|
2142
2348
|
}
|
|
2143
2349
|
),
|
|
@@ -2145,91 +2351,112 @@ function Yo() {
|
|
|
2145
2351
|
"div",
|
|
2146
2352
|
{
|
|
2147
2353
|
ref: t,
|
|
2148
|
-
className: `${
|
|
2149
|
-
children: /* @__PURE__ */ a.jsx("p", { className:
|
|
2354
|
+
className: `${ie.tipContainer} ${n ? ie.tipContainerVisible : ie.tipContainerHidden}`,
|
|
2355
|
+
children: /* @__PURE__ */ a.jsx("p", { className: ie.tipContent, children: _e(s) })
|
|
2150
2356
|
}
|
|
2151
2357
|
)
|
|
2152
2358
|
] });
|
|
2153
2359
|
}
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
}
|
|
2159
|
-
function
|
|
2360
|
+
const Yo = "_remainingTimeContainer_1yyhb_1", Xo = "_remainingTime_1yyhb_1", Go = "_remainingSeparator_1yyhb_17", De = {
|
|
2361
|
+
remainingTimeContainer: Yo,
|
|
2362
|
+
remainingTime: Xo,
|
|
2363
|
+
remainingSeparator: Go
|
|
2364
|
+
};
|
|
2365
|
+
function Jo() {
|
|
2160
2366
|
const e = f((n) => n.currentTime), t = f((n) => n.duration);
|
|
2161
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2162
|
-
/* @__PURE__ */ a.jsx("p", { className:
|
|
2163
|
-
/* @__PURE__ */ a.jsx("p", { className:
|
|
2164
|
-
/* @__PURE__ */ a.jsx("p", { className:
|
|
2367
|
+
return /* @__PURE__ */ a.jsxs("div", { className: De.remainingTimeContainer, children: [
|
|
2368
|
+
/* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(e) }),
|
|
2369
|
+
/* @__PURE__ */ a.jsx("p", { className: De.remainingSeparator }),
|
|
2370
|
+
/* @__PURE__ */ a.jsx("p", { className: De.remainingTime, children: _e(t) })
|
|
2165
2371
|
] });
|
|
2166
2372
|
}
|
|
2167
|
-
function
|
|
2168
|
-
const
|
|
2373
|
+
function Qo({ callback: e }) {
|
|
2374
|
+
const t = f((n) => n.eventEmitter);
|
|
2375
|
+
return N(() => {
|
|
2376
|
+
const n = (o) => e("timeUpdate", o);
|
|
2377
|
+
return t.on("timeUpdate", n), () => {
|
|
2378
|
+
t.off("timeUpdate", n);
|
|
2379
|
+
};
|
|
2380
|
+
}, [e, t]), /* @__PURE__ */ a.jsx(Ut, { callback: e });
|
|
2381
|
+
}
|
|
2382
|
+
function ei() {
|
|
2383
|
+
const e = f((i) => i.currentTime), t = f((i) => i.duration), n = f((i) => i.isPlaying), o = f((i) => i.pause), s = f((i) => i.play), c = f((i) => i.seek), u = U(
|
|
2169
2384
|
(i) => {
|
|
2170
|
-
let
|
|
2385
|
+
let l = !1;
|
|
2171
2386
|
if (!(i.target instanceof HTMLInputElement || i.ctrlKey)) {
|
|
2172
2387
|
switch (i.code) {
|
|
2173
2388
|
case "ArrowLeft":
|
|
2174
|
-
|
|
2389
|
+
c(e - 10 >= 0 ? e - 10 : 0), l = !0;
|
|
2175
2390
|
break;
|
|
2176
2391
|
case "ArrowRight":
|
|
2177
|
-
|
|
2392
|
+
c(e + 10 < t ? e + 10 : t), l = !0;
|
|
2178
2393
|
break;
|
|
2179
2394
|
case "Space":
|
|
2180
|
-
n ? o() : s(),
|
|
2395
|
+
n ? o() : s(), l = !0;
|
|
2181
2396
|
break;
|
|
2182
2397
|
}
|
|
2183
|
-
|
|
2398
|
+
l && i.preventDefault();
|
|
2184
2399
|
}
|
|
2185
2400
|
},
|
|
2186
|
-
[e, t, n, o, s,
|
|
2401
|
+
[e, t, n, o, s, c]
|
|
2187
2402
|
);
|
|
2188
|
-
return
|
|
2403
|
+
return N(() => (document.addEventListener("keydown", u), () => {
|
|
2189
2404
|
document.removeEventListener("keydown", u);
|
|
2190
|
-
}), [u]), /* @__PURE__ */ a.jsx(
|
|
2405
|
+
}), [u]), /* @__PURE__ */ a.jsx(qt, {});
|
|
2191
2406
|
}
|
|
2192
|
-
function
|
|
2193
|
-
return /* @__PURE__ */ a.jsx(
|
|
2407
|
+
function li(e) {
|
|
2408
|
+
return /* @__PURE__ */ a.jsx(Zt, { children: /* @__PURE__ */ a.jsx(ti, j({}, e)) });
|
|
2194
2409
|
}
|
|
2195
|
-
function
|
|
2196
|
-
const o =
|
|
2197
|
-
return
|
|
2198
|
-
n &&
|
|
2199
|
-
}, [n,
|
|
2410
|
+
function ti({ url: e, onEvent: t, startTime: n }) {
|
|
2411
|
+
const o = f((c) => c.setStartTime), s = f((c) => c.containerRef);
|
|
2412
|
+
return N(() => {
|
|
2413
|
+
n && o(n);
|
|
2414
|
+
}, [n, o]), /* @__PURE__ */ a.jsxs(
|
|
2200
2415
|
"div",
|
|
2201
2416
|
{
|
|
2202
|
-
ref:
|
|
2203
|
-
className:
|
|
2417
|
+
ref: s,
|
|
2418
|
+
className: K.playerContainer,
|
|
2204
2419
|
children: [
|
|
2205
|
-
/* @__PURE__ */ a.jsx(
|
|
2420
|
+
/* @__PURE__ */ a.jsx(Kt, { url: e, isLive: !1 }),
|
|
2421
|
+
/* @__PURE__ */ a.jsx(Jt, {}),
|
|
2206
2422
|
/* @__PURE__ */ a.jsx(tn, {}),
|
|
2207
|
-
/* @__PURE__ */ a.
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
/* @__PURE__ */ a.
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2423
|
+
/* @__PURE__ */ a.jsxs(en, { children: [
|
|
2424
|
+
/* @__PURE__ */ a.jsx(qo, {}),
|
|
2425
|
+
/* @__PURE__ */ a.jsx("div", { className: K.controlsBottom, children: /* @__PURE__ */ a.jsxs("div", { className: K.controlsContainer, children: [
|
|
2426
|
+
/* @__PURE__ */ a.jsx(Ko, {}),
|
|
2427
|
+
/* @__PURE__ */ a.jsxs("div", { className: K.controlsRow, children: [
|
|
2428
|
+
/* @__PURE__ */ a.jsxs(
|
|
2429
|
+
"div",
|
|
2430
|
+
{
|
|
2431
|
+
className: `${K.controlsSection} ${K.controlsSectionStart}`,
|
|
2432
|
+
children: [
|
|
2433
|
+
/* @__PURE__ */ a.jsx(Zo, {}),
|
|
2434
|
+
/* @__PURE__ */ a.jsx(sn, {}),
|
|
2435
|
+
/* @__PURE__ */ a.jsx(Jo, {})
|
|
2436
|
+
]
|
|
2437
|
+
}
|
|
2438
|
+
),
|
|
2439
|
+
/* @__PURE__ */ a.jsxs(
|
|
2440
|
+
"div",
|
|
2441
|
+
{
|
|
2442
|
+
className: `${K.controlsSection} ${K.controlsSectionEnd}`,
|
|
2443
|
+
children: [
|
|
2444
|
+
/* @__PURE__ */ a.jsx(on, {}),
|
|
2445
|
+
/* @__PURE__ */ a.jsx(Qt, {})
|
|
2446
|
+
]
|
|
2447
|
+
}
|
|
2448
|
+
)
|
|
2222
2449
|
] })
|
|
2223
2450
|
] }) })
|
|
2224
2451
|
] }),
|
|
2225
|
-
/* @__PURE__ */ a.jsx(
|
|
2226
|
-
t && /* @__PURE__ */ a.jsx(
|
|
2452
|
+
/* @__PURE__ */ a.jsx(ei, {}),
|
|
2453
|
+
t && /* @__PURE__ */ a.jsx(Qo, { callback: t })
|
|
2227
2454
|
]
|
|
2228
2455
|
}
|
|
2229
2456
|
);
|
|
2230
2457
|
}
|
|
2231
2458
|
export {
|
|
2232
|
-
|
|
2233
|
-
|
|
2459
|
+
ai as LivePlayer,
|
|
2460
|
+
li as VodPlayer
|
|
2234
2461
|
};
|
|
2235
2462
|
//# sourceMappingURL=react-video-player.es.js.map
|