@devix-technologies/react-gjirafa-vp-player 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/components/Feedback.d.ts +25 -0
  3. package/dist/components/VPPlayer/index.d.ts +2 -0
  4. package/dist/components/VPPlayer/ui/index.d.ts +1 -0
  5. package/dist/components/VPPlayer/ui/styled.d.ts +42 -0
  6. package/dist/config/index.d.ts +1 -0
  7. package/dist/config/vpPlayerConfig.d.ts +9 -0
  8. package/dist/constants/configs.d.ts +22 -0
  9. package/dist/constants/index.d.ts +1 -0
  10. package/dist/constants/storybook.d.ts +11 -0
  11. package/dist/constants/styles.d.ts +11 -0
  12. package/dist/constants/urls.d.ts +18 -0
  13. package/dist/constants/vpPlayer.d.ts +29 -0
  14. package/dist/contexts/VPPlayerContext.d.ts +53 -0
  15. package/dist/contexts/index.d.ts +1 -0
  16. package/dist/features/VPPlayer.d.ts +27 -0
  17. package/dist/features/stories/ads/Ads.stories.d.ts +20 -0
  18. package/dist/features/stories/context/Context.stories.d.ts +10 -0
  19. package/dist/features/stories/index.d.ts +3 -0
  20. package/dist/features/stories/playback/Playback.stories.d.ts +33 -0
  21. package/dist/fixtures/index.d.ts +1 -0
  22. package/dist/fixtures/playlist.d.ts +11 -0
  23. package/dist/hooks/index.d.ts +3 -0
  24. package/dist/hooks/useVPPlayerLogic.d.ts +22 -0
  25. package/dist/hooks/useVPPlayerScript.d.ts +13 -0
  26. package/dist/hooks/useVideoData.d.ts +21 -0
  27. package/dist/index.d.ts +9 -0
  28. package/dist/interfaces/config.d.ts +311 -0
  29. package/dist/interfaces/index.d.ts +3 -0
  30. package/dist/interfaces/instance.d.ts +73 -0
  31. package/dist/interfaces/props.d.ts +54 -0
  32. package/dist/main.d.ts +1 -0
  33. package/dist/react-gjirafa-vp-player.es.js +386 -377
  34. package/dist/react-gjirafa-vp-player.umd.js +6 -6
  35. package/dist/types/api.types.d.ts +50 -0
  36. package/dist/types/index.d.ts +1 -0
  37. package/dist/utils/index.d.ts +2 -0
  38. package/dist/utils/vpPlayerConfigBuilder.d.ts +30 -0
  39. package/dist/utils/vpPlayerUtils.d.ts +8 -0
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as H from "react";
2
- import mt, { forwardRef as yt, useContext as et, useState as D, useEffect as xe, useRef as Be, useMemo as tt, createContext as gt, useCallback as ze } from "react";
2
+ import mt, { forwardRef as yt, useContext as et, useState as U, useEffect as xe, useRef as Be, useMemo as tt, createContext as gt, useCallback as ze } from "react";
3
3
  var he = { exports: {} }, se = {};
4
4
  /**
5
5
  * @license React
@@ -10,10 +10,10 @@ var he = { exports: {} }, se = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var De;
13
+ var Ue;
14
14
  function vt() {
15
- if (De) return se;
16
- De = 1;
15
+ if (Ue) return se;
16
+ Ue = 1;
17
17
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
18
  function r(n, a, i) {
19
19
  var s = null;
@@ -42,26 +42,26 @@ var ce = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var Ue;
45
+ var De;
46
46
  function bt() {
47
- return Ue || (Ue = 1, process.env.NODE_ENV !== "production" && function() {
47
+ return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
48
48
  function e(o) {
49
49
  if (o == null) return null;
50
50
  if (typeof o == "function")
51
- return o.$$typeof === T ? null : o.displayName || o.name || null;
51
+ return o.$$typeof === R ? null : o.displayName || o.name || null;
52
52
  if (typeof o == "string") return o;
53
53
  switch (o) {
54
- case d:
54
+ case f:
55
55
  return "Fragment";
56
56
  case y:
57
57
  return "Profiler";
58
58
  case h:
59
59
  return "StrictMode";
60
- case _:
60
+ case x:
61
61
  return "Suspense";
62
- case R:
62
+ case S:
63
63
  return "SuspenseList";
64
- case B:
64
+ case $:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof o == "object")
@@ -70,19 +70,19 @@ function bt() {
70
70
  ), o.$$typeof) {
71
71
  case v:
72
72
  return "Portal";
73
- case S:
73
+ case _:
74
74
  return (o.displayName || "Context") + ".Provider";
75
- case b:
76
- return (o._context.displayName || "Context") + ".Consumer";
77
75
  case w:
78
- var x = o.render;
79
- return o = o.displayName, o || (o = x.displayName || x.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
- case p:
81
- return x = o.displayName || null, x !== null ? x : e(o.type) || "Memo";
82
- case C:
83
- x = o._payload, o = o._init;
76
+ return (o._context.displayName || "Context") + ".Consumer";
77
+ case T:
78
+ var b = o.render;
79
+ return o = o.displayName, o || (o = b.displayName || b.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
+ case u:
81
+ return b = o.displayName || null, b !== null ? b : e(o.type) || "Memo";
82
+ case A:
83
+ b = o._payload, o = o._init;
84
84
  try {
85
- return e(o(x));
85
+ return e(o(b));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,27 +94,27 @@ function bt() {
94
94
  function r(o) {
95
95
  try {
96
96
  t(o);
97
- var x = !1;
97
+ var b = !1;
98
98
  } catch {
99
- x = !0;
99
+ b = !0;
100
100
  }
101
- if (x) {
102
- x = console;
103
- var A = x.error, N = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
- return A.call(
105
- x,
101
+ if (b) {
102
+ b = console;
103
+ var C = b.error, L = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
+ return C.call(
105
+ b,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- N
107
+ L
108
108
  ), t(o);
109
109
  }
110
110
  }
111
111
  function n(o) {
112
- if (o === d) return "<>";
113
- if (typeof o == "object" && o !== null && o.$$typeof === C)
112
+ if (o === f) return "<>";
113
+ if (typeof o == "object" && o !== null && o.$$typeof === A)
114
114
  return "<...>";
115
115
  try {
116
- var x = e(o);
117
- return x ? "<" + x + ">" : "<...>";
116
+ var b = e(o);
117
+ return b ? "<" + b + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
@@ -128,39 +128,39 @@ function bt() {
128
128
  }
129
129
  function s(o) {
130
130
  if (G.call(o, "key")) {
131
- var x = Object.getOwnPropertyDescriptor(o, "key").get;
132
- if (x && x.isReactWarning) return !1;
131
+ var b = Object.getOwnPropertyDescriptor(o, "key").get;
132
+ if (b && b.isReactWarning) return !1;
133
133
  }
134
134
  return o.key !== void 0;
135
135
  }
136
- function c(o, x) {
137
- function A() {
136
+ function c(o, b) {
137
+ function C() {
138
138
  Z || (Z = !0, console.error(
139
139
  "%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://react.dev/link/special-props)",
140
- x
140
+ b
141
141
  ));
142
142
  }
143
- A.isReactWarning = !0, Object.defineProperty(o, "key", {
144
- get: A,
143
+ C.isReactWarning = !0, Object.defineProperty(o, "key", {
144
+ get: C,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
- function u() {
148
+ function d() {
149
149
  var o = e(this.type);
150
150
  return Q[o] || (Q[o] = !0, console.error(
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
152
  )), o = this.props.ref, o !== void 0 ? o : null;
153
153
  }
154
- function m(o, x, A, N, K, U, _e, Se) {
155
- return A = U.ref, o = {
154
+ function m(o, b, C, L, K, D, _e, Se) {
155
+ return C = D.ref, o = {
156
156
  $$typeof: k,
157
157
  type: o,
158
- key: x,
159
- props: U,
158
+ key: b,
159
+ props: D,
160
160
  _owner: K
161
- }, (A !== void 0 ? A : null) !== null ? Object.defineProperty(o, "ref", {
161
+ }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(o, "ref", {
162
162
  enumerable: !1,
163
- get: u
163
+ get: d
164
164
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
@@ -183,60 +183,60 @@ function bt() {
183
183
  value: Se
184
184
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
185
185
  }
186
- function l(o, x, A, N, K, U, _e, Se) {
187
- var L = x.children;
188
- if (L !== void 0)
189
- if (N)
190
- if (z(L)) {
191
- for (N = 0; N < L.length; N++)
192
- f(L[N]);
193
- Object.freeze && Object.freeze(L);
186
+ function l(o, b, C, L, K, D, _e, Se) {
187
+ var F = b.children;
188
+ if (F !== void 0)
189
+ if (L)
190
+ if (z(F)) {
191
+ for (L = 0; L < F.length; L++)
192
+ p(F[L]);
193
+ Object.freeze && Object.freeze(F);
194
194
  } else
195
195
  console.error(
196
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
197
  );
198
- else f(L);
199
- if (G.call(x, "key")) {
200
- L = e(o);
201
- var ee = Object.keys(x).filter(function(ht) {
198
+ else p(F);
199
+ if (G.call(b, "key")) {
200
+ F = e(o);
201
+ var ee = Object.keys(b).filter(function(ht) {
202
202
  return ht !== "key";
203
203
  });
204
- N = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[L + N] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ L = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[F + L] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
205
205
  `A props object containing a "key" prop is being spread into JSX:
206
206
  let props = %s;
207
207
  <%s {...props} />
208
208
  React keys must be passed directly to JSX without using spread:
209
209
  let props = %s;
210
210
  <%s key={someKey} {...props} />`,
211
- N,
212
211
  L,
212
+ F,
213
213
  ee,
214
- L
215
- ), oe[L + N] = !0);
214
+ F
215
+ ), oe[F + L] = !0);
216
216
  }
217
- if (L = null, A !== void 0 && (r(A), L = "" + A), s(x) && (r(x.key), L = "" + x.key), "key" in x) {
218
- A = {};
219
- for (var Re in x)
220
- Re !== "key" && (A[Re] = x[Re]);
221
- } else A = x;
222
- return L && c(
223
- A,
217
+ if (F = null, C !== void 0 && (r(C), F = "" + C), s(b) && (r(b.key), F = "" + b.key), "key" in b) {
218
+ C = {};
219
+ for (var Re in b)
220
+ Re !== "key" && (C[Re] = b[Re]);
221
+ } else C = b;
222
+ return F && c(
223
+ C,
224
224
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
225
225
  ), m(
226
226
  o,
227
- L,
228
- U,
227
+ F,
228
+ D,
229
229
  K,
230
230
  a(),
231
- A,
231
+ C,
232
232
  _e,
233
233
  Se
234
234
  );
235
235
  }
236
- function f(o) {
236
+ function p(o) {
237
237
  typeof o == "object" && o !== null && o.$$typeof === k && o._store && (o._store.validated = 1);
238
238
  }
239
- var g = mt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), S = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), I = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
239
+ var g = mt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), I = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
242
  g = {
@@ -248,29 +248,29 @@ React keys must be passed directly to JSX without using spread:
248
248
  g,
249
249
  i
250
250
  )(), ie = X(n(i)), oe = {};
251
- ce.Fragment = d, ce.jsx = function(o, x, A, N, K) {
252
- var U = 1e4 > I.recentlyCreatedOwnerStacks++;
251
+ ce.Fragment = f, ce.jsx = function(o, b, C, L, K) {
252
+ var D = 1e4 > I.recentlyCreatedOwnerStacks++;
253
253
  return l(
254
254
  o,
255
- x,
256
- A,
255
+ b,
256
+ C,
257
257
  !1,
258
- N,
258
+ L,
259
259
  K,
260
- U ? Error("react-stack-top-frame") : J,
261
- U ? X(n(o)) : ie
260
+ D ? Error("react-stack-top-frame") : J,
261
+ D ? X(n(o)) : ie
262
262
  );
263
- }, ce.jsxs = function(o, x, A, N, K) {
264
- var U = 1e4 > I.recentlyCreatedOwnerStacks++;
263
+ }, ce.jsxs = function(o, b, C, L, K) {
264
+ var D = 1e4 > I.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
266
  o,
267
- x,
268
- A,
267
+ b,
268
+ C,
269
269
  !0,
270
- N,
270
+ L,
271
271
  K,
272
- U ? Error("react-stack-top-frame") : J,
273
- U ? X(n(o)) : ie
272
+ D ? Error("react-stack-top-frame") : J,
273
+ D ? X(n(o)) : ie
274
274
  );
275
275
  };
276
276
  }()), ce;
@@ -329,9 +329,9 @@ var Pt = /* @__PURE__ */ function() {
329
329
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
330
330
  }), this.tags = [], this.ctr = 0;
331
331
  }, e;
332
- }(), F = "-ms-", we = "-moz-", P = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
332
+ }(), V = "-ms-", we = "-moz-", P = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
333
333
  function Tt(e, t) {
334
- return $(e, 0) ^ 45 ? (((t << 2 ^ $(e, 0)) << 2 ^ $(e, 1)) << 2 ^ $(e, 2)) << 2 ^ $(e, 3) : 0;
334
+ return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
335
335
  }
336
336
  function at(e) {
337
337
  return e.trim();
@@ -345,7 +345,7 @@ function E(e, t, r) {
345
345
  function je(e, t) {
346
346
  return e.indexOf(t);
347
347
  }
348
- function $(e, t) {
348
+ function N(e, t) {
349
349
  return e.charCodeAt(t) | 0;
350
350
  }
351
351
  function ue(e, t, r) {
@@ -363,7 +363,7 @@ function me(e, t) {
363
363
  function Ct(e, t) {
364
364
  return e.map(t).join("");
365
365
  }
366
- var Pe = 1, re = 1, it = 0, V = 0, O = 0, ae = "";
366
+ var Pe = 1, re = 1, it = 0, M = 0, O = 0, ae = "";
367
367
  function Ee(e, t, r, n, a, i, s) {
368
368
  return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
369
369
  }
@@ -374,16 +374,16 @@ function It() {
374
374
  return O;
375
375
  }
376
376
  function Ot() {
377
- return O = V > 0 ? $(ae, --V) : 0, re--, O === 10 && (re = 1, Pe--), O;
377
+ return O = M > 0 ? N(ae, --M) : 0, re--, O === 10 && (re = 1, Pe--), O;
378
378
  }
379
- function M() {
380
- return O = V < it ? $(ae, V++) : 0, re++, O === 10 && (re = 1, Pe++), O;
379
+ function B() {
380
+ return O = M < it ? N(ae, M++) : 0, re++, O === 10 && (re = 1, Pe++), O;
381
381
  }
382
382
  function q() {
383
- return $(ae, V);
383
+ return N(ae, M);
384
384
  }
385
385
  function ge() {
386
- return V;
386
+ return M;
387
387
  }
388
388
  function pe(e, t) {
389
389
  return ue(ae, e, t);
@@ -427,30 +427,30 @@ function de(e) {
427
427
  return 0;
428
428
  }
429
429
  function ot(e) {
430
- return Pe = re = 1, it = W(ae = e), V = 0, [];
430
+ return Pe = re = 1, it = W(ae = e), M = 0, [];
431
431
  }
432
432
  function st(e) {
433
433
  return ae = "", e;
434
434
  }
435
435
  function ve(e) {
436
- return at(pe(V - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
436
+ return at(pe(M - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
437
  }
438
438
  function jt(e) {
439
439
  for (; (O = q()) && O < 33; )
440
- M();
440
+ B();
441
441
  return de(e) > 2 || de(O) > 3 ? "" : " ";
442
442
  }
443
443
  function $t(e, t) {
444
- for (; --t && M() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
444
+ for (; --t && B() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
445
445
  ;
446
- return pe(e, ge() + (t < 6 && q() == 32 && M() == 32));
446
+ return pe(e, ge() + (t < 6 && q() == 32 && B() == 32));
447
447
  }
448
448
  function $e(e) {
449
- for (; M(); )
449
+ for (; B(); )
450
450
  switch (O) {
451
451
  // ] ) " '
452
452
  case e:
453
- return V;
453
+ return M;
454
454
  // " '
455
455
  case 34:
456
456
  case 39:
@@ -462,136 +462,136 @@ function $e(e) {
462
462
  break;
463
463
  // \
464
464
  case 92:
465
- M();
465
+ B();
466
466
  break;
467
467
  }
468
- return V;
468
+ return M;
469
469
  }
470
470
  function Nt(e, t) {
471
- for (; M() && e + O !== 57; )
471
+ for (; B() && e + O !== 57; )
472
472
  if (e + O === 84 && q() === 47)
473
473
  break;
474
- return "/*" + pe(t, V - 1) + "*" + ke(e === 47 ? e : M());
474
+ return "/*" + pe(t, M - 1) + "*" + ke(e === 47 ? e : B());
475
475
  }
476
476
  function Lt(e) {
477
477
  for (; !de(q()); )
478
- M();
479
- return pe(e, V);
478
+ B();
479
+ return pe(e, M);
480
480
  }
481
481
  function Ft(e) {
482
482
  return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
483
483
  }
484
- function be(e, t, r, n, a, i, s, c, u) {
485
- for (var m = 0, l = 0, f = s, g = 0, k = 0, v = 0, d = 1, h = 1, y = 1, b = 0, S = "", w = a, _ = i, R = n, p = S; h; )
486
- switch (v = b, b = M()) {
484
+ function be(e, t, r, n, a, i, s, c, d) {
485
+ for (var m = 0, l = 0, p = s, g = 0, k = 0, v = 0, f = 1, h = 1, y = 1, w = 0, _ = "", T = a, x = i, S = n, u = _; h; )
486
+ switch (v = w, w = B()) {
487
487
  // (
488
488
  case 40:
489
- if (v != 108 && $(p, f - 1) == 58) {
490
- je(p += E(ve(b), "&", "&\f"), "&\f") != -1 && (y = -1);
489
+ if (v != 108 && N(u, p - 1) == 58) {
490
+ je(u += E(ve(w), "&", "&\f"), "&\f") != -1 && (y = -1);
491
491
  break;
492
492
  }
493
493
  // " ' [
494
494
  case 34:
495
495
  case 39:
496
496
  case 91:
497
- p += ve(b);
497
+ u += ve(w);
498
498
  break;
499
499
  // \t \n \r \s
500
500
  case 9:
501
501
  case 10:
502
502
  case 13:
503
503
  case 32:
504
- p += jt(v);
504
+ u += jt(v);
505
505
  break;
506
506
  // \
507
507
  case 92:
508
- p += $t(ge() - 1, 7);
508
+ u += $t(ge() - 1, 7);
509
509
  continue;
510
510
  // /
511
511
  case 47:
512
512
  switch (q()) {
513
513
  case 42:
514
514
  case 47:
515
- me(Vt(Nt(M(), ge()), t, r), u);
515
+ me(Vt(Nt(B(), ge()), t, r), d);
516
516
  break;
517
517
  default:
518
- p += "/";
518
+ u += "/";
519
519
  }
520
520
  break;
521
521
  // {
522
- case 123 * d:
523
- c[m++] = W(p) * y;
522
+ case 123 * f:
523
+ c[m++] = W(u) * y;
524
524
  // } ; \0
525
- case 125 * d:
525
+ case 125 * f:
526
526
  case 59:
527
527
  case 0:
528
- switch (b) {
528
+ switch (w) {
529
529
  // \0 }
530
530
  case 0:
531
531
  case 125:
532
532
  h = 0;
533
533
  // ;
534
534
  case 59 + l:
535
- y == -1 && (p = E(p, /\f/g, "")), k > 0 && W(p) - f && me(k > 32 ? qe(p + ";", n, r, f - 1) : qe(E(p, " ", "") + ";", n, r, f - 2), u);
535
+ y == -1 && (u = E(u, /\f/g, "")), k > 0 && W(u) - p && me(k > 32 ? qe(u + ";", n, r, p - 1) : qe(E(u, " ", "") + ";", n, r, p - 2), d);
536
536
  break;
537
537
  // @ ;
538
538
  case 59:
539
- p += ";";
539
+ u += ";";
540
540
  // { rule/at-rule
541
541
  default:
542
- if (me(R = Ye(p, t, r, m, l, a, c, S, w = [], _ = [], f), i), b === 123)
542
+ if (me(S = Ye(u, t, r, m, l, a, c, _, T = [], x = [], p), i), w === 123)
543
543
  if (l === 0)
544
- be(p, t, R, R, w, i, f, c, _);
544
+ be(u, t, S, S, T, i, p, c, x);
545
545
  else
546
- switch (g === 99 && $(p, 3) === 110 ? 100 : g) {
546
+ switch (g === 99 && N(u, 3) === 110 ? 100 : g) {
547
547
  // d l m s
548
548
  case 100:
549
549
  case 108:
550
550
  case 109:
551
551
  case 115:
552
- be(e, R, R, n && me(Ye(e, R, R, 0, 0, a, c, S, a, w = [], f), _), a, _, f, c, n ? w : _);
552
+ be(e, S, S, n && me(Ye(e, S, S, 0, 0, a, c, _, a, T = [], p), x), a, x, p, c, n ? T : x);
553
553
  break;
554
554
  default:
555
- be(p, R, R, R, [""], _, 0, c, _);
555
+ be(u, S, S, S, [""], x, 0, c, x);
556
556
  }
557
557
  }
558
- m = l = k = 0, d = y = 1, S = p = "", f = s;
558
+ m = l = k = 0, f = y = 1, _ = u = "", p = s;
559
559
  break;
560
560
  // :
561
561
  case 58:
562
- f = 1 + W(p), k = v;
562
+ p = 1 + W(u), k = v;
563
563
  default:
564
- if (d < 1) {
565
- if (b == 123)
566
- --d;
567
- else if (b == 125 && d++ == 0 && Ot() == 125)
564
+ if (f < 1) {
565
+ if (w == 123)
566
+ --f;
567
+ else if (w == 125 && f++ == 0 && Ot() == 125)
568
568
  continue;
569
569
  }
570
- switch (p += ke(b), b * d) {
570
+ switch (u += ke(w), w * f) {
571
571
  // &
572
572
  case 38:
573
- y = l > 0 ? 1 : (p += "\f", -1);
573
+ y = l > 0 ? 1 : (u += "\f", -1);
574
574
  break;
575
575
  // ,
576
576
  case 44:
577
- c[m++] = (W(p) - 1) * y, y = 1;
577
+ c[m++] = (W(u) - 1) * y, y = 1;
578
578
  break;
579
579
  // @
580
580
  case 64:
581
- q() === 45 && (p += ve(M())), g = q(), l = f = W(S = p += Lt(ge())), b++;
581
+ q() === 45 && (u += ve(B())), g = q(), l = p = W(_ = u += Lt(ge())), w++;
582
582
  break;
583
583
  // -
584
584
  case 45:
585
- v === 45 && W(p) == 2 && (d = 0);
585
+ v === 45 && W(u) == 2 && (f = 0);
586
586
  }
587
587
  }
588
588
  return i;
589
589
  }
590
- function Ye(e, t, r, n, a, i, s, c, u, m, l) {
591
- for (var f = a - 1, g = a === 0 ? i : [""], k = Ve(g), v = 0, d = 0, h = 0; v < n; ++v)
592
- for (var y = 0, b = ue(e, f + 1, f = St(d = s[v])), S = e; y < k; ++y)
593
- (S = at(d > 0 ? g[y] + " " + b : E(b, /&\f/g, g[y]))) && (u[h++] = S);
594
- return Ee(e, t, r, a === 0 ? Le : c, u, m, l);
590
+ function Ye(e, t, r, n, a, i, s, c, d, m, l) {
591
+ for (var p = a - 1, g = a === 0 ? i : [""], k = Ve(g), v = 0, f = 0, h = 0; v < n; ++v)
592
+ for (var y = 0, w = ue(e, p + 1, p = St(f = s[v])), _ = e; y < k; ++y)
593
+ (_ = at(f > 0 ? g[y] + " " + w : E(w, /&\f/g, g[y]))) && (d[h++] = _);
594
+ return Ee(e, t, r, a === 0 ? Le : c, d, m, l);
595
595
  }
596
596
  function Vt(e, t, r) {
597
597
  return Ee(e, t, r, rt, ke(It()), ue(e, 2, -2), 0);
@@ -639,16 +639,16 @@ function ct(e) {
639
639
  return t[r] === void 0 && (t[r] = e(r)), t[r];
640
640
  };
641
641
  }
642
- var Dt = function(t, r, n) {
642
+ var Ut = function(t, r, n) {
643
643
  for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !de(i); )
644
- M();
645
- return pe(t, V);
646
- }, Ut = function(t, r) {
644
+ B();
645
+ return pe(t, M);
646
+ }, Dt = function(t, r) {
647
647
  var n = -1, a = 44;
648
648
  do
649
649
  switch (de(a)) {
650
650
  case 0:
651
- a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(V - 1, r, n);
651
+ a === 38 && q() === 12 && (r[n] = 1), t[n] += Ut(M - 1, r, n);
652
652
  break;
653
653
  case 2:
654
654
  t[n] += ve(a);
@@ -662,10 +662,10 @@ var Dt = function(t, r, n) {
662
662
  default:
663
663
  t[n] += ke(a);
664
664
  }
665
- while (a = M());
665
+ while (a = B());
666
666
  return t;
667
667
  }, Wt = function(t, r) {
668
- return st(Ut(ot(t), r));
668
+ return st(Dt(ot(t), r));
669
669
  }, He = /* @__PURE__ */ new WeakMap(), Yt = function(t) {
670
670
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
671
671
  // negative .length indicates that this rule has been already prefixed
@@ -674,9 +674,9 @@ var Dt = function(t, r, n) {
674
674
  if (n = n.parent, !n) return;
675
675
  if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
676
676
  He.set(t, !0);
677
- for (var i = [], s = Wt(r, i), c = n.props, u = 0, m = 0; u < s.length; u++)
677
+ for (var i = [], s = Wt(r, i), c = n.props, d = 0, m = 0; d < s.length; d++)
678
678
  for (var l = 0; l < c.length; l++, m++)
679
- t.props[m] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
679
+ t.props[m] = i[d] ? s[d].replace(/&\f/g, c[l]) : c[l] + " " + s[d];
680
680
  }
681
681
  }
682
682
  }, qt = function(t) {
@@ -728,32 +728,32 @@ function lt(e, t) {
728
728
  case 4810:
729
729
  case 6968:
730
730
  case 2756:
731
- return P + e + we + e + F + e + e;
731
+ return P + e + we + e + V + e + e;
732
732
  // flex, flex-direction
733
733
  case 6828:
734
734
  case 4268:
735
- return P + e + F + e + e;
735
+ return P + e + V + e + e;
736
736
  // order
737
737
  case 6165:
738
- return P + e + F + "flex-" + e + e;
738
+ return P + e + V + "flex-" + e + e;
739
739
  // align-items
740
740
  case 5187:
741
- return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + F + "flex-$1$2") + e;
741
+ return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + V + "flex-$1$2") + e;
742
742
  // align-self
743
743
  case 5443:
744
- return P + e + F + "flex-item-" + E(e, /flex-|-self/, "") + e;
744
+ return P + e + V + "flex-item-" + E(e, /flex-|-self/, "") + e;
745
745
  // align-content
746
746
  case 4675:
747
- return P + e + F + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
747
+ return P + e + V + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
748
748
  // flex-shrink
749
749
  case 5548:
750
- return P + e + F + E(e, "shrink", "negative") + e;
750
+ return P + e + V + E(e, "shrink", "negative") + e;
751
751
  // flex-basis
752
752
  case 5292:
753
- return P + e + F + E(e, "basis", "preferred-size") + e;
753
+ return P + e + V + E(e, "basis", "preferred-size") + e;
754
754
  // flex-grow
755
755
  case 6060:
756
- return P + "box-" + E(e, "-grow", "") + P + e + F + E(e, "grow", "positive") + e;
756
+ return P + "box-" + E(e, "-grow", "") + P + e + V + E(e, "grow", "positive") + e;
757
757
  // transition
758
758
  case 4554:
759
759
  return P + E(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
@@ -766,7 +766,7 @@ function lt(e, t) {
766
766
  return E(e, /(image-set\([^]*)/, P + "$1$`$1");
767
767
  // justify-content
768
768
  case 4968:
769
- return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
769
+ return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
770
770
  // (margin|padding)-inline-(start|end)
771
771
  case 4095:
772
772
  case 3583:
@@ -786,13 +786,13 @@ function lt(e, t) {
786
786
  case 5789:
787
787
  case 5021:
788
788
  case 4765:
789
- if (W(e) - 1 - t > 6) switch ($(e, t + 1)) {
789
+ if (W(e) - 1 - t > 6) switch (N(e, t + 1)) {
790
790
  // (m)ax-content, (m)in-content
791
791
  case 109:
792
- if ($(e, t + 4) !== 45) break;
792
+ if (N(e, t + 4) !== 45) break;
793
793
  // (f)ill-available, (f)it-content
794
794
  case 102:
795
- return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + ($(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
795
+ return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
796
796
  // (s)tretch
797
797
  case 115:
798
798
  return ~je(e, "stretch") ? lt(E(e, "stretch", "fill-available"), t) + e : e;
@@ -800,32 +800,32 @@ function lt(e, t) {
800
800
  break;
801
801
  // position: sticky
802
802
  case 4949:
803
- if ($(e, t + 1) !== 115) break;
803
+ if (N(e, t + 1) !== 115) break;
804
804
  // display: (flex|inline-flex)
805
805
  case 6444:
806
- switch ($(e, W(e) - 3 - (~je(e, "!important") && 10))) {
806
+ switch (N(e, W(e) - 3 - (~je(e, "!important") && 10))) {
807
807
  // stic(k)y
808
808
  case 107:
809
809
  return E(e, ":", ":" + P) + e;
810
810
  // (inline-)?fl(e)x
811
811
  case 101:
812
- return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + ($(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + F + "$2box$3") + e;
812
+ return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + V + "$2box$3") + e;
813
813
  }
814
814
  break;
815
815
  // writing-mode
816
816
  case 5936:
817
- switch ($(e, t + 11)) {
817
+ switch (N(e, t + 11)) {
818
818
  // vertical-l(r)
819
819
  case 114:
820
- return P + e + F + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
820
+ return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
821
  // vertical-r(l)
822
822
  case 108:
823
- return P + e + F + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
823
+ return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
824
  // horizontal(-)tb
825
825
  case 45:
826
- return P + e + F + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
826
+ return P + e + V + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
827
  }
828
- return P + e + F + e + e;
828
+ return P + e + V + e + e;
829
829
  }
830
830
  return e;
831
831
  }
@@ -854,7 +854,7 @@ var Ht = function(t, r, n, a) {
854
854
  }), le(t, {
855
855
  props: [E(i, /:(plac\w+)/, ":" + we + "$1")]
856
856
  }), le(t, {
857
- props: [E(i, /:(plac\w+)/, F + "input-$1")]
857
+ props: [E(i, /:(plac\w+)/, V + "input-$1")]
858
858
  })], a);
859
859
  }
860
860
  return "";
@@ -864,9 +864,9 @@ var Ht = function(t, r, n, a) {
864
864
  var r = t.key;
865
865
  if (r === "css") {
866
866
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
867
- Array.prototype.forEach.call(n, function(d) {
868
- var h = d.getAttribute("data-emotion");
869
- h.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
867
+ Array.prototype.forEach.call(n, function(f) {
868
+ var h = f.getAttribute("data-emotion");
869
+ h.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
870
870
  });
871
871
  }
872
872
  var a = t.stylisPlugins || Gt, i = {}, s, c = [];
@@ -874,21 +874,21 @@ var Ht = function(t, r, n, a) {
874
874
  // this means we will ignore elements which don't have a space in them which
875
875
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
876
876
  document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
877
- function(d) {
878
- for (var h = d.getAttribute("data-emotion").split(" "), y = 1; y < h.length; y++)
877
+ function(f) {
878
+ for (var h = f.getAttribute("data-emotion").split(" "), y = 1; y < h.length; y++)
879
879
  i[h[y]] = !0;
880
- c.push(d);
880
+ c.push(f);
881
881
  }
882
882
  );
883
- var u, m = [Yt, qt];
883
+ var d, m = [Yt, qt];
884
884
  {
885
- var l, f = [Mt, zt(function(d) {
886
- l.insert(d);
887
- })], g = Bt(m.concat(a, f)), k = function(h) {
885
+ var l, p = [Mt, zt(function(f) {
886
+ l.insert(f);
887
+ })], g = Bt(m.concat(a, p)), k = function(h) {
888
888
  return te(Ft(h), g);
889
889
  };
890
- u = function(h, y, b, S) {
891
- l = b, k(h ? h + "{" + y.styles + "}" : y.styles), S && (v.inserted[y.name] = !0);
890
+ d = function(h, y, w, _) {
891
+ l = w, k(h ? h + "{" + y.styles + "}" : y.styles), _ && (v.inserted[y.name] = !0);
892
892
  };
893
893
  }
894
894
  var v = {
@@ -904,7 +904,7 @@ var Ht = function(t, r, n, a) {
904
904
  nonce: t.nonce,
905
905
  inserted: i,
906
906
  registered: {},
907
- insert: u
907
+ insert: d
908
908
  };
909
909
  return v.sheet.hydrate(c), v;
910
910
  }, Kt = !0;
@@ -1059,8 +1059,8 @@ function fe(e, t, r) {
1059
1059
  }
1060
1060
  case "function": {
1061
1061
  if (e !== void 0) {
1062
- var u = Y, m = r(e);
1063
- return Y = u, fe(e, t, m);
1062
+ var d = Y, m = r(e);
1063
+ return Y = d, fe(e, t, m);
1064
1064
  }
1065
1065
  break;
1066
1066
  }
@@ -1068,8 +1068,8 @@ function fe(e, t, r) {
1068
1068
  var l = r;
1069
1069
  if (t == null)
1070
1070
  return l;
1071
- var f = t[l];
1072
- return f !== void 0 ? f : l;
1071
+ var p = t[l];
1072
+ return p !== void 0 ? p : l;
1073
1073
  }
1074
1074
  function nr(e, t, r) {
1075
1075
  var n = "";
@@ -1083,8 +1083,8 @@ function nr(e, t, r) {
1083
1083
  var c = s;
1084
1084
  t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Te(i) + ":" + Xe(i, c) + ";");
1085
1085
  } else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
1086
- for (var u = 0; u < s.length; u++)
1087
- Ge(s[u]) && (n += Te(i) + ":" + Xe(i, s[u]) + ";");
1086
+ for (var d = 0; d < s.length; d++)
1087
+ Ge(s[d]) && (n += Te(i) + ":" + Xe(i, s[d]) + ";");
1088
1088
  else {
1089
1089
  var m = fe(e, t, s);
1090
1090
  switch (i) {
@@ -1115,15 +1115,15 @@ function ar(e, t, r) {
1115
1115
  }
1116
1116
  for (var c = 1; c < e.length; c++)
1117
1117
  if (a += fe(r, t, e[c]), n) {
1118
- var u = i;
1119
- a += u[c];
1118
+ var d = i;
1119
+ a += d[c];
1120
1120
  }
1121
1121
  Ke.lastIndex = 0;
1122
1122
  for (var m = "", l; (l = Ke.exec(a)) !== null; )
1123
1123
  m += "-" + l[1];
1124
- var f = Qt(a) + m;
1124
+ var p = Qt(a) + m;
1125
1125
  return {
1126
- name: f,
1126
+ name: p,
1127
1127
  styles: a,
1128
1128
  next: Y
1129
1129
  };
@@ -1176,47 +1176,47 @@ var cr = function(t) {
1176
1176
  }, mr = function e(t, r) {
1177
1177
  var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
1178
1178
  r !== void 0 && (i = r.label, s = r.target);
1179
- var c = Ze(t, r, n), u = c || Je(a), m = !u("as");
1179
+ var c = Ze(t, r, n), d = c || Je(a), m = !d("as");
1180
1180
  return function() {
1181
- var l = arguments, f = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
- if (i !== void 0 && f.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
- f.push.apply(f, l);
1181
+ var l = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
+ if (i !== void 0 && p.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
+ p.push.apply(p, l);
1184
1184
  else {
1185
1185
  var g = l[0];
1186
- f.push(g[0]);
1186
+ p.push(g[0]);
1187
1187
  for (var k = l.length, v = 1; v < k; v++)
1188
- f.push(l[v], g[v]);
1188
+ p.push(l[v], g[v]);
1189
1189
  }
1190
- var d = cr(function(h, y, b) {
1191
- var S = m && h.as || a, w = "", _ = [], R = h;
1190
+ var f = cr(function(h, y, w) {
1191
+ var _ = m && h.as || a, T = "", x = [], S = h;
1192
1192
  if (h.theme == null) {
1193
- R = {};
1194
- for (var p in h)
1195
- R[p] = h[p];
1196
- R.theme = H.useContext(lr);
1193
+ S = {};
1194
+ for (var u in h)
1195
+ S[u] = h[u];
1196
+ S.theme = H.useContext(lr);
1197
1197
  }
1198
- typeof h.className == "string" ? w = Jt(y.registered, _, h.className) : h.className != null && (w = h.className + " ");
1199
- var C = ar(f.concat(_), y.registered, R);
1200
- w += y.key + "-" + C.name, s !== void 0 && (w += " " + s);
1201
- var B = m && c === void 0 ? Je(S) : u, T = {};
1198
+ typeof h.className == "string" ? T = Jt(y.registered, x, h.className) : h.className != null && (T = h.className + " ");
1199
+ var A = ar(p.concat(x), y.registered, S);
1200
+ T += y.key + "-" + A.name, s !== void 0 && (T += " " + s);
1201
+ var $ = m && c === void 0 ? Je(_) : d, R = {};
1202
1202
  for (var I in h)
1203
- m && I === "as" || B(I) && (T[I] = h[I]);
1204
- return T.className = w, b && (T.ref = b), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1203
+ m && I === "as" || $(I) && (R[I] = h[I]);
1204
+ return R.className = T, w && (R.ref = w), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1205
1205
  cache: y,
1206
- serialized: C,
1207
- isStringTag: typeof S == "string"
1208
- }), /* @__PURE__ */ H.createElement(S, T));
1206
+ serialized: A,
1207
+ isStringTag: typeof _ == "string"
1208
+ }), /* @__PURE__ */ H.createElement(_, R));
1209
1209
  });
1210
- return d.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", d.defaultProps = t.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = f, d.__emotion_forwardProp = c, Object.defineProperty(d, "toString", {
1210
+ return f.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = a, f.__emotion_styles = p, f.__emotion_forwardProp = c, Object.defineProperty(f, "toString", {
1211
1211
  value: function() {
1212
1212
  return "." + s;
1213
1213
  }
1214
- }), d.withComponent = function(h, y) {
1215
- var b = e(h, Oe({}, r, y, {
1216
- shouldForwardProp: Ze(d, y, !0)
1214
+ }), f.withComponent = function(h, y) {
1215
+ var w = e(h, Oe({}, r, y, {
1216
+ shouldForwardProp: Ze(f, y, !0)
1217
1217
  }));
1218
- return b.apply(void 0, f);
1219
- }, d;
1218
+ return w.apply(void 0, p);
1219
+ }, f;
1220
1220
  };
1221
1221
  }, yr = [
1222
1222
  "a",
@@ -1434,9 +1434,9 @@ const gr = ne.div`
1434
1434
  width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
1435
1435
  }
1436
1436
  `, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Me = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ae = /* @__PURE__ */ new Map(), Pr = (e, t) => {
1437
- const [r, n] = D(!1), [a, i] = D(null);
1437
+ const [r, n] = U(!1), [a, i] = U(null);
1438
1438
  return xe(() => {
1439
- let s = null, c, u = 0;
1439
+ let s = null, c, d = 0;
1440
1440
  const m = 3;
1441
1441
  let l;
1442
1442
  try {
@@ -1460,7 +1460,7 @@ const gr = ne.div`
1460
1460
  }, 1e4), s.onload = () => {
1461
1461
  clearTimeout(c), Ae.set(l, !0), n(!0), i(null);
1462
1462
  }, s.onerror = () => {
1463
- clearTimeout(c), u++, u < m ? setTimeout(g, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1463
+ clearTimeout(c), d++, d < m ? setTimeout(g, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1464
1464
  }, document.body.appendChild(s);
1465
1465
  };
1466
1466
  return g(), () => {
@@ -1468,11 +1468,11 @@ const gr = ne.div`
1468
1468
  };
1469
1469
  }, [e, t]), { isLoaded: r, error: a };
1470
1470
  }, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 3e4, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1471
- const [i, s] = D(null), [c, u] = D(null), [m, l] = D(!1), [f, g] = D(null), k = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1471
+ const [i, s] = U(null), [c, d] = U(null), [m, l] = U(!1), [p, g] = U(null), k = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1472
1472
  return xe(() => {
1473
1473
  const v = t ? `video:${t}` : r ? `playlist:${r}` : null;
1474
1474
  if (!e || n || !t && !r) {
1475
- s(n || null), u(null), l(!1), g(null);
1475
+ s(n || null), d(null), l(!1), g(null);
1476
1476
  return;
1477
1477
  }
1478
1478
  if (!k) {
@@ -1480,20 +1480,20 @@ const gr = ne.div`
1480
1480
  return;
1481
1481
  }
1482
1482
  if (v && ye.has(v)) {
1483
- const w = ye.get(v);
1484
- s(w.url), u(w.playlist), l(!1), g(null);
1483
+ const T = ye.get(v);
1484
+ s(T.url), d(T.playlist), l(!1), g(null);
1485
1485
  return;
1486
1486
  }
1487
- let d = !0;
1488
- const h = new AbortController(), y = h.signal, S = setTimeout(async () => {
1489
- var _, R;
1490
- if (!d)
1487
+ let f = !0;
1488
+ const h = new AbortController(), y = h.signal, _ = setTimeout(async () => {
1489
+ var x, S;
1490
+ if (!f)
1491
1491
  return;
1492
1492
  l(!0), g(null);
1493
- let w = 0;
1494
- for (; w < Ce && d; )
1493
+ let T = 0;
1494
+ for (; T < Ce && f; )
1495
1495
  try {
1496
- const p = t && !r ? xr(e, t) : wr(e, r), C = setTimeout(() => h.abort(), _r), B = await fetch(p, {
1496
+ const u = t && !r ? xr(e, t) : wr(e, r), A = setTimeout(() => h.abort(), _r), $ = await fetch(u, {
1497
1497
  method: "GET",
1498
1498
  headers: {
1499
1499
  "api-key": k,
@@ -1503,39 +1503,39 @@ const gr = ne.div`
1503
1503
  },
1504
1504
  signal: y
1505
1505
  });
1506
- if (clearTimeout(C), !B.ok)
1507
- throw new Error(`Fetch failed with status ${B.status}`);
1508
- const T = await B.json();
1509
- if (!d)
1506
+ if (clearTimeout(A), !$.ok)
1507
+ throw new Error(`Fetch failed with status ${$.status}`);
1508
+ const R = await $.json();
1509
+ if (!f)
1510
1510
  return;
1511
1511
  if (t && !r) {
1512
- const I = (R = (_ = T.result) == null ? void 0 : _.items) == null ? void 0 : R.find((G) => G.mediaId === t);
1512
+ const I = (S = (x = R.result) == null ? void 0 : x.items) == null ? void 0 : S.find((G) => G.mediaId === t);
1513
1513
  if (!(I != null && I.playbackUrl))
1514
1514
  throw new Error("Invalid video data");
1515
- s(I.playbackUrl), u(null), v && ye.set(v, { url: I.playbackUrl, playlist: null });
1515
+ s(I.playbackUrl), d(null), v && ye.set(v, { url: I.playbackUrl, playlist: null });
1516
1516
  } else {
1517
- if (!Array.isArray(T.result))
1517
+ if (!Array.isArray(R.result))
1518
1518
  throw new Error("Invalid playlist format");
1519
- u(T.result), s(null), v && ye.set(v, { url: null, playlist: T.result });
1519
+ d(R.result), s(null), v && ye.set(v, { url: null, playlist: R.result });
1520
1520
  }
1521
1521
  break;
1522
- } catch (p) {
1522
+ } catch (u) {
1523
1523
  if (y.aborted) {
1524
- d && g("Request timed out");
1524
+ f && g("Request timed out");
1525
1525
  break;
1526
1526
  }
1527
- if (w++, w >= Ce) {
1528
- const C = p instanceof Error ? p.message : String(p);
1529
- d && g(`Failed after ${Ce} attempts: ${C}`);
1527
+ if (T++, T >= Ce) {
1528
+ const A = u instanceof Error ? u.message : String(u);
1529
+ f && g(`Failed after ${Ce} attempts: ${A}`);
1530
1530
  } else
1531
- await new Promise((C) => setTimeout(C, 2e3));
1531
+ await new Promise((A) => setTimeout(A, 2e3));
1532
1532
  }
1533
- d && l(!1);
1533
+ f && l(!1);
1534
1534
  }, 100);
1535
1535
  return () => {
1536
- d = !1, clearTimeout(S), h.abort();
1536
+ f = !1, clearTimeout(_), h.abort();
1537
1537
  };
1538
- }, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: f };
1538
+ }, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1539
1539
  }, Rr = {
1540
1540
  projectId: "vp-player-projectId",
1541
1541
  video: {
@@ -1599,7 +1599,7 @@ const gr = ne.div`
1599
1599
  isVerticalPlayer: i
1600
1600
  // Distinguish between VP Player types
1601
1601
  }) => {
1602
- var l, f, g, k, v, d, h, y;
1602
+ var l, p, g, k, v, f, h, y, w, _, T;
1603
1603
  const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
1604
1604
  if (e)
1605
1605
  return {
@@ -1622,55 +1622,64 @@ const gr = ne.div`
1622
1622
  config: c
1623
1623
  };
1624
1624
  if (r && r.length > 0) {
1625
- const b = ((f = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
1626
- return i ? {
1627
- ...s,
1628
- projectId: n || "vp-player-projectId",
1629
- video: {
1630
- ...s.video,
1631
- // Set first video file (index 0) to avoid VP Player duplication
1632
- file: (k = r[0]) == null ? void 0 : k.hlsUrl,
1633
- playlist: {
1634
- state: !0,
1635
- playlistId: "",
1636
- // Will be set by API
1637
- // Use original playlistVideoIndex - VP Player will navigate to it
1638
- playlistVideoIndex: Number(b),
1639
- // Remove first video from playlist to avoid duplication (already in file)
1640
- videos: r.slice(1).map((w, _) => ({
1641
- videoId: String(_ + 1),
1642
- // Keep original IDs
1643
- title: w.title,
1644
- file: w.hlsUrl,
1645
- thumbnailUrl: w.thumbnailUrl,
1646
- duration: w.duration
1647
- }))
1648
- }
1649
- },
1650
- config: c
1651
- } : {
1652
- ...s,
1653
- projectId: n || "vp-player-projectId",
1654
- video: {
1655
- ...s.video,
1656
- file: ((v = r[Number(b)]) == null ? void 0 : v.hlsUrl) || ((d = r[0]) == null ? void 0 : d.hlsUrl) || "",
1657
- playlist: {
1658
- state: !0,
1659
- // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1660
- playlistVideoIndex: Number(b),
1661
- videos: r.map((w, _) => ({
1662
- videoId: String(_),
1663
- title: w.title,
1664
- file: w.hlsUrl,
1665
- thumbnailUrl: w.thumbnailUrl,
1666
- duration: w.duration
1667
- }))
1668
- }
1669
- },
1670
- config: c
1671
- };
1625
+ const x = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
1626
+ if (i) {
1627
+ const S = Number(x), u = r[S] || r[0];
1628
+ return {
1629
+ ...s,
1630
+ projectId: n || "vp-player-projectId",
1631
+ video: {
1632
+ ...s.video,
1633
+ // Set target video file and metadata (not always first video)
1634
+ file: u == null ? void 0 : u.hlsUrl,
1635
+ title: u == null ? void 0 : u.title,
1636
+ // Don't set thumbnail - let VP Player manage thumbnails during scrolling
1637
+ // thumbnail: targetVideo?.thumbnailUrl,
1638
+ playlist: {
1639
+ state: !0,
1640
+ playlistId: "",
1641
+ // Will be set by API
1642
+ // Use original playlistVideoIndex - VP Player will navigate to it
1643
+ playlistVideoIndex: Number(x),
1644
+ // Remove first video from playlist to avoid duplication (already in file)
1645
+ videos: r.slice(1).map(($, R) => ({
1646
+ videoId: String(R + 1),
1647
+ // Keep original IDs
1648
+ title: $.title,
1649
+ file: $.hlsUrl,
1650
+ thumbnailUrl: $.thumbnailUrl,
1651
+ duration: $.duration
1652
+ }))
1653
+ }
1654
+ },
1655
+ config: c
1656
+ };
1657
+ } else
1658
+ return {
1659
+ ...s,
1660
+ projectId: n || "vp-player-projectId",
1661
+ video: {
1662
+ ...s.video,
1663
+ file: ((k = r[Number(x)]) == null ? void 0 : k.hlsUrl) || ((v = r[0]) == null ? void 0 : v.hlsUrl) || "",
1664
+ title: ((f = r[Number(x)]) == null ? void 0 : f.title) || ((h = r[0]) == null ? void 0 : h.title),
1665
+ thumbnail: ((y = r[Number(x)]) == null ? void 0 : y.thumbnailUrl) || ((w = r[0]) == null ? void 0 : w.thumbnailUrl),
1666
+ playlist: {
1667
+ state: !0,
1668
+ // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1669
+ playlistVideoIndex: Number(x),
1670
+ videos: r.map((u, A) => ({
1671
+ videoId: String(A),
1672
+ title: u.title,
1673
+ file: u.hlsUrl,
1674
+ thumbnailUrl: u.thumbnailUrl,
1675
+ duration: u.duration
1676
+ }))
1677
+ }
1678
+ },
1679
+ config: c
1680
+ };
1672
1681
  }
1673
- const u = ((h = a == null ? void 0 : a.video) == null ? void 0 : h.playlist) || s.video.playlist, m = (y = a == null ? void 0 : a.video) == null ? void 0 : y.file;
1682
+ const d = ((_ = a == null ? void 0 : a.video) == null ? void 0 : _.playlist) || s.video.playlist, m = (T = a == null ? void 0 : a.video) == null ? void 0 : T.file;
1674
1683
  if (m)
1675
1684
  return {
1676
1685
  ...s,
@@ -1682,19 +1691,19 @@ const gr = ne.div`
1682
1691
  },
1683
1692
  config: c
1684
1693
  };
1685
- if (u != null && u.videos && u.videos.length > 0) {
1686
- const b = u.videos[Number(u.playlistVideoIndex) || 0];
1694
+ if (d != null && d.videos && d.videos.length > 0) {
1695
+ const x = d.videos[Number(d.playlistVideoIndex) || 0];
1687
1696
  return {
1688
1697
  ...s,
1689
1698
  video: {
1690
1699
  ...s.video,
1691
- file: (b == null ? void 0 : b.file) || "",
1700
+ file: (x == null ? void 0 : x.file) || "",
1692
1701
  playlist: {
1693
- ...u,
1694
- state: u.state ?? !0,
1702
+ ...d,
1703
+ state: d.state ?? !0,
1695
1704
  // playlistVideoIndex: playlist.playlistVideoIndex ?? 0, this has been bug, fixed, now int
1696
- playlistVideoIndex: Number(u.playlistVideoIndex || 0),
1697
- videos: u.videos
1705
+ playlistVideoIndex: Number(d.playlistVideoIndex || 0),
1706
+ videos: d.videos
1698
1707
  }
1699
1708
  },
1700
1709
  config: {
@@ -1709,20 +1718,20 @@ const gr = ne.div`
1709
1718
  return;
1710
1719
  const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
1711
1720
  return r ? r[2] : void 0;
1712
- }, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1 }) => {
1713
- const l = Be(null), f = Be(null), { isLoaded: g, error: k } = Pr(r, s), v = t || Ar(s), [d, h] = D(null), { fetchedPlaybackUrl: y, fetchedPlaylist: b, isLoading: S, error: w } = Sr({
1721
+ }, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
1722
+ const l = Be(null), p = Be(null), { isLoaded: g, error: k } = Pr(r, s), v = t || Ar(s), [f, h] = U(null), { fetchedPlaybackUrl: y, fetchedPlaylist: w, isLoading: _, error: T } = Sr({
1714
1723
  projectId: a,
1715
1724
  videoId: v,
1716
1725
  playlistId: i,
1717
1726
  videoUrl: n,
1718
- apiKey: u
1719
- }), _ = Me(e, v), R = tt(() => {
1720
- const p = c.config || {}, C = m && !p.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : p.size || { sizeType: "FIXED", width: "100%" };
1727
+ apiKey: d
1728
+ }), x = Me(e, v), S = tt(() => {
1729
+ const u = c.config || {}, A = m && !u.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : u.size || { sizeType: "FIXED", width: "100%" };
1721
1730
  return {
1722
1731
  ...c,
1723
1732
  config: {
1724
- ...p,
1725
- size: C
1733
+ ...u,
1734
+ size: A
1726
1735
  }
1727
1736
  };
1728
1737
  }, [c, m]);
@@ -1731,25 +1740,25 @@ const gr = ne.div`
1731
1740
  h(k);
1732
1741
  return;
1733
1742
  }
1734
- if (!g || S && !n)
1743
+ if (!g || _ && !n)
1735
1744
  return;
1736
- let p = !0;
1737
- const B = setTimeout(async () => {
1745
+ let u = !0;
1746
+ const $ = setTimeout(async () => {
1738
1747
  try {
1739
- const T = s == null ? void 0 : s.includes("vertical-player");
1748
+ const R = s == null ? void 0 : s.includes("vertical-player");
1740
1749
  if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
1741
1750
  var ie, oe;
1742
1751
  const J = Q.id;
1743
- if (J !== _)
1752
+ if (J !== x)
1744
1753
  try {
1745
- const o = T ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
1754
+ const o = R ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
1746
1755
  o != null && o.destroy && o.destroy();
1747
1756
  } catch (o) {
1748
1757
  console.warn(`Failed to destroy existing player ${J}:`, o);
1749
1758
  }
1750
- }), await new Promise((Q) => setTimeout(Q, 100)), !p || !l.current)
1759
+ }), await new Promise((Q) => setTimeout(Q, 100)), !u || !l.current)
1751
1760
  return;
1752
- if (!document.getElementById(_)) {
1761
+ if (!document.getElementById(x)) {
1753
1762
  h("DOM element not found after cleanup.");
1754
1763
  return;
1755
1764
  }
@@ -1757,67 +1766,67 @@ const gr = ne.div`
1757
1766
  h("VP Player script not loaded.");
1758
1767
  return;
1759
1768
  }
1760
- const z = T ? window.vpVerticalPlayer : window.vpPlayer;
1769
+ const z = R ? window.vpVerticalPlayer : window.vpPlayer;
1761
1770
  if (!z) {
1762
- h(`VP ${T ? "Vertical " : ""}Player script not loaded.`);
1771
+ h(`VP ${R ? "Vertical " : ""}Player script not loaded.`);
1763
1772
  return;
1764
1773
  }
1765
1774
  const X = Tr({
1766
1775
  videoUrl: n,
1767
1776
  fetchedPlaybackUrl: y ?? void 0,
1768
- fetchedPlaylist: b ?? void 0,
1777
+ fetchedPlaylist: w ?? void 0,
1769
1778
  projectId: a,
1770
- config: R,
1771
- isVerticalPlayer: T
1779
+ config: S,
1780
+ isVerticalPlayer: R
1772
1781
  // Pass player type to config builder
1773
- }), Z = z(_);
1782
+ }), Z = z(x);
1774
1783
  if (!Z) {
1775
- h(`Failed to create VP ${T ? "Vertical " : ""}Player instance.`);
1784
+ h(`Failed to create VP ${R ? "Vertical " : ""}Player instance.`);
1776
1785
  return;
1777
1786
  }
1778
- p && l.current && (Z.setup(X), f.current = Z, h(null));
1779
- } catch (T) {
1780
- if (p) {
1781
- const I = T instanceof Error ? T.message : String(T);
1782
- h(I), console.error("VP Player initialization error:", T);
1787
+ u && l.current && (Z.setup(X), p.current = Z, h(null));
1788
+ } catch (R) {
1789
+ if (u) {
1790
+ const I = R instanceof Error ? R.message : String(R);
1791
+ h(I), console.error("VP Player initialization error:", R);
1783
1792
  }
1784
1793
  }
1785
1794
  }, 150);
1786
1795
  return () => {
1787
- p = !1, clearTimeout(B);
1796
+ u = !1, clearTimeout($);
1788
1797
  };
1789
1798
  }, [
1790
1799
  g,
1791
- S,
1800
+ _,
1792
1801
  n,
1793
1802
  y,
1794
- b,
1803
+ w,
1795
1804
  a,
1796
- R,
1797
- _,
1805
+ S,
1806
+ x,
1798
1807
  k,
1799
1808
  s
1800
1809
  ]), xe(() => () => {
1801
- if (f.current) {
1810
+ if (p.current) {
1802
1811
  try {
1803
- f.current.destroy && f.current.destroy();
1804
- } catch (C) {
1805
- console.warn(`Failed to destroy player ${_}:`, C);
1812
+ p.current.destroy && p.current.destroy();
1813
+ } catch (A) {
1814
+ console.warn(`Failed to destroy player ${x}:`, A);
1806
1815
  }
1807
- f.current = null;
1816
+ p.current = null;
1808
1817
  }
1809
- const p = document.getElementById(_);
1810
- p && (p.innerHTML = "");
1811
- }, [_]), {
1818
+ const u = document.getElementById(x);
1819
+ u && (u.innerHTML = "");
1820
+ }, [x]), {
1812
1821
  playerRef: l,
1813
- playerInstanceRef: f,
1822
+ playerInstanceRef: p,
1814
1823
  isScriptLoaded: g,
1815
- isLoading: S,
1816
- error: w || d || k
1824
+ isLoading: _,
1825
+ error: T || f || k
1817
1826
  };
1818
- }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1, hiddenClasses: l = [], onClose: f, className: g }) => {
1819
- var B, T, I, G;
1820
- const { playerRef: k, playerInstanceRef: v, isScriptLoaded: d, isLoading: h, error: y } = Cr({
1827
+ }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: g }) => {
1828
+ var $, R, I, G;
1829
+ const { playerRef: k, playerInstanceRef: v, isScriptLoaded: f, isLoading: h, error: y } = Cr({
1821
1830
  playerId: e,
1822
1831
  videoId: t,
1823
1832
  version: r,
@@ -1826,30 +1835,30 @@ const gr = ne.div`
1826
1835
  playlistId: i,
1827
1836
  scriptUrl: s,
1828
1837
  config: c,
1829
- apiKey: u,
1838
+ apiKey: d,
1830
1839
  isReels: m
1831
- }), [b, S] = D(!0), w = () => m && S(!0), _ = () => {
1840
+ }), [w, _] = U(!0), T = () => m && _(!0), x = () => {
1832
1841
  var z, X;
1833
- S(!1), (X = (z = v.current) == null ? void 0 : z.play) == null || X.call(z), f == null || f();
1834
- }, R = (T = (B = c == null ? void 0 : c.config) == null ? void 0 : B.size) != null && T.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, p = (G = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, C = Me(e, t);
1835
- return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !d ? j.jsx(Ne, { type: "loading", children: "Loading..." }) : j.jsxs(j.Fragment, { children: [m && !b ? j.jsx("div", { onClick: w }) : null, !m && j.jsx("div", { children: j.jsx(Qe, { id: C, ref: k, width: R || "100%", height: p || "auto", $hiddenClasses: l, className: g }) }, C), m && b && j.jsx(vr, { onClick: _, className: g, children: j.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: j.jsx("div", { children: j.jsx(Qe, { id: C, ref: k, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, C) }) })] });
1842
+ _(!1), (X = (z = v.current) == null ? void 0 : z.play) == null || X.call(z), p == null || p();
1843
+ }, S = (R = ($ = c == null ? void 0 : c.config) == null ? void 0 : $.size) != null && R.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, u = (G = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, A = Me(e, t);
1844
+ return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? j.jsx(Ne, { type: "loading", children: "Loading..." }) : j.jsxs(j.Fragment, { children: [m && !w ? j.jsx("div", { onClick: T }) : null, !m && j.jsx("div", { children: j.jsx(Qe, { id: A, ref: k, width: S || "100%", height: u || "auto", $hiddenClasses: l, className: g }) }, A), m && w && j.jsx(vr, { onClick: x, className: g, children: j.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: j.jsx("div", { children: j.jsx(Qe, { id: A, ref: k, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, A) }) })] });
1836
1845
  }, pt = gt(void 0), jr = ({ children: e }) => {
1837
- const [t, r] = D(!1), [n, a] = D(null), [i, s] = D(null), c = ze((l) => {
1846
+ const [t, r] = U(!1), [n, a] = U(null), [i, s] = U(null), c = ze((l) => {
1838
1847
  try {
1839
- const f = Me(l.playerId, l.videoId);
1840
- a({ ...l, playerId: f }), r(!0), s(null);
1848
+ const p = Me(l.playerId, l.videoId);
1849
+ a({ ...l, playerId: p }), r(!0), s(null);
1841
1850
  } catch {
1842
1851
  s("Failed to show player.");
1843
1852
  }
1844
- }, []), u = ze(() => {
1853
+ }, []), d = ze(() => {
1845
1854
  r(!1), a(null), s(null);
1846
1855
  }, []), m = tt(() => ({
1847
1856
  showPlayer: c,
1848
- hidePlayer: u,
1857
+ hidePlayer: d,
1849
1858
  isPlayerVisible: t,
1850
1859
  playerParams: n
1851
- }), [c, u, t, n]);
1852
- return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1860
+ }), [c, d, t, n]);
1861
+ return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1853
1862
  }, $r = () => {
1854
1863
  const e = et(pt);
1855
1864
  if (!e)
@@ -1928,14 +1937,14 @@ const gr = ne.div`
1928
1937
  }
1929
1938
  }
1930
1939
  };
1931
- }, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Ur = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
1940
+ }, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Ur = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Dr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
1932
1941
  export {
1933
- Ur as AD_TAG_LINEAR_URL,
1942
+ Dr as AD_TAG_LINEAR_URL,
1934
1943
  Wr as AD_TAG_SKIPPABLE_LINEAR_URL,
1935
1944
  Mr as BIG_BUCK_BUNNY_URL,
1936
1945
  Br as ELEPHANTS_DREAM_URL,
1937
1946
  vr as Overlay,
1938
- Dr as PEXELS_THUMBNAIL_URL,
1947
+ Ur as PEXELS_THUMBNAIL_URL,
1939
1948
  zr as PEXELS_VERTICAL_VIDEO_URL,
1940
1949
  Qe as PlayerContainer,
1941
1950
  br as PlayerWrapper,