@halibegic/react-video-player 0.0.15 → 0.0.17

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