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