@devix-technologies/react-gjirafa-vp-player 1.0.26 → 1.0.27

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,5 +1,5 @@
1
1
  import * as xe from "react";
2
- import jr, { forwardRef as $r, useContext as br, useState as ce, useEffect as Se, useRef as K, useMemo as Pr, createContext as Nr, useCallback as lr } from "react";
2
+ import jr, { forwardRef as $r, useContext as _r, useState as de, useEffect as Se, useRef as ee, useMemo as br, createContext as Nr, useCallback as lr } from "react";
3
3
  var De = { exports: {} }, ke = {};
4
4
  /**
5
5
  * @license React
@@ -44,42 +44,42 @@ var Oe = {};
44
44
  */
45
45
  var cr;
46
46
  function Dr() {
47
- return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
47
+ return cr || (cr = 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 === d ? null : o.displayName || o.name || null;
51
+ return o.$$typeof === E ? null : o.displayName || o.name || null;
52
52
  if (typeof o == "string") return o;
53
53
  switch (o) {
54
- case p:
54
+ case x:
55
55
  return "Fragment";
56
56
  case P:
57
57
  return "Profiler";
58
58
  case b:
59
59
  return "StrictMode";
60
- case V:
60
+ case T:
61
61
  return "Suspense";
62
- case R:
62
+ case w:
63
63
  return "SuspenseList";
64
- case W:
64
+ case d:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof o == "object")
68
68
  switch (typeof o.tag == "number" && console.error(
69
69
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
70
70
  ), o.$$typeof) {
71
- case S:
71
+ case h:
72
72
  return "Portal";
73
- case O:
74
- return (o.displayName || "Context") + ".Provider";
75
- case E:
76
- return (o._context.displayName || "Context") + ".Consumer";
77
73
  case N:
74
+ return o.displayName || "Context";
75
+ case L:
76
+ return (o._context.displayName || "Context") + ".Consumer";
77
+ case j:
78
78
  var y = o.render;
79
79
  return o = o.displayName, o || (o = y.displayName || y.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
- case x:
80
+ case K:
81
81
  return y = o.displayName || null, y !== null ? y : e(o.type) || "Memo";
82
- case X:
82
+ case U:
83
83
  y = o._payload, o = o._init;
84
84
  try {
85
85
  return e(o(y));
@@ -100,17 +100,17 @@ function Dr() {
100
100
  }
101
101
  if (y) {
102
102
  y = console;
103
- var _ = y.error, j = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
- return _.call(
103
+ var R = y.error, F = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
+ return R.call(
105
105
  y,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- j
107
+ F
108
108
  ), r(o);
109
109
  }
110
110
  }
111
111
  function i(o) {
112
- if (o === p) return "<>";
113
- if (typeof o == "object" && o !== null && o.$$typeof === X)
112
+ if (o === x) return "<>";
113
+ if (typeof o == "object" && o !== null && o.$$typeof === U)
114
114
  return "<...>";
115
115
  try {
116
116
  var y = e(o);
@@ -120,45 +120,46 @@ function Dr() {
120
120
  }
121
121
  }
122
122
  function a() {
123
- var o = g.A;
123
+ var o = M.A;
124
124
  return o === null ? null : o.getOwner();
125
125
  }
126
126
  function t() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
129
  function s(o) {
130
- if (B.call(o, "key")) {
130
+ if (W.call(o, "key")) {
131
131
  var y = Object.getOwnPropertyDescriptor(o, "key").get;
132
132
  if (y && y.isReactWarning) return !1;
133
133
  }
134
134
  return o.key !== void 0;
135
135
  }
136
136
  function l(o, y) {
137
- function _() {
138
- U || (U = !0, console.error(
137
+ function R() {
138
+ $ || ($ = !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
140
  y
141
141
  ));
142
142
  }
143
- _.isReactWarning = !0, Object.defineProperty(o, "key", {
144
- get: _,
143
+ R.isReactWarning = !0, Object.defineProperty(o, "key", {
144
+ get: R,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
148
  function c() {
149
149
  var o = e(this.type);
150
- return L[o] || (L[o] = !0, console.error(
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, y, _, j, ee, D, de, ne) {
155
- return _ = D.ref, o = {
156
- $$typeof: w,
154
+ function m(o, y, R, F, H, fe) {
155
+ var V = R.ref;
156
+ return o = {
157
+ $$typeof: S,
157
158
  type: o,
158
159
  key: y,
159
- props: D,
160
- _owner: ee
161
- }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(o, "ref", {
160
+ props: R,
161
+ _owner: F
162
+ }, (V !== void 0 ? V : null) !== null ? Object.defineProperty(o, "ref", {
162
163
  enumerable: !1,
163
164
  get: c
164
165
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
@@ -175,105 +176,102 @@ function Dr() {
175
176
  configurable: !1,
176
177
  enumerable: !1,
177
178
  writable: !0,
178
- value: de
179
+ value: H
179
180
  }), Object.defineProperty(o, "_debugTask", {
180
181
  configurable: !1,
181
182
  enumerable: !1,
182
183
  writable: !0,
183
- value: ne
184
+ value: fe
184
185
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
185
186
  }
186
- function u(o, y, _, j, ee, D, de, ne) {
187
- var F = y.children;
188
- if (F !== void 0)
189
- if (j)
190
- if (Y(F)) {
191
- for (j = 0; j < F.length; j++)
192
- f(F[j]);
193
- Object.freeze && Object.freeze(F);
187
+ function u(o, y, R, F, H, fe) {
188
+ var V = y.children;
189
+ if (V !== void 0)
190
+ if (F)
191
+ if (Y(V)) {
192
+ for (F = 0; F < V.length; F++)
193
+ f(V[F]);
194
+ Object.freeze && Object.freeze(V);
194
195
  } else
195
196
  console.error(
196
197
  "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
198
  );
198
- else f(F);
199
- if (B.call(y, "key")) {
200
- F = e(o);
201
- var ie = Object.keys(y).filter(function(ve) {
202
- return ve !== "key";
199
+ else f(V);
200
+ if (W.call(y, "key")) {
201
+ V = e(o);
202
+ var Z = Object.keys(y).filter(function(te) {
203
+ return te !== "key";
203
204
  });
204
- j = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", h[F + j] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ F = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", v[V + F] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
205
206
  `A props object containing a "key" prop is being spread into JSX:
206
207
  let props = %s;
207
208
  <%s {...props} />
208
209
  React keys must be passed directly to JSX without using spread:
209
210
  let props = %s;
210
211
  <%s key={someKey} {...props} />`,
211
- j,
212
212
  F,
213
- ie,
214
- F
215
- ), h[F + j] = !0);
213
+ V,
214
+ Z,
215
+ V
216
+ ), v[V + F] = !0);
216
217
  }
217
- if (F = null, _ !== void 0 && (n(_), F = "" + _), s(y) && (n(y.key), F = "" + y.key), "key" in y) {
218
- _ = {};
219
- for (var J in y)
220
- J !== "key" && (_[J] = y[J]);
221
- } else _ = y;
222
- return F && l(
223
- _,
218
+ if (V = null, R !== void 0 && (n(R), V = "" + R), s(y) && (n(y.key), V = "" + y.key), "key" in y) {
219
+ R = {};
220
+ for (var pe in y)
221
+ pe !== "key" && (R[pe] = y[pe]);
222
+ } else R = y;
223
+ return V && l(
224
+ R,
224
225
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
225
226
  ), m(
226
227
  o,
227
- F,
228
- D,
229
- ee,
228
+ V,
229
+ R,
230
230
  a(),
231
- _,
232
- de,
233
- ne
231
+ H,
232
+ fe
234
233
  );
235
234
  }
236
235
  function f(o) {
237
- typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
236
+ _(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === U && (o._payload.status === "fulfilled" ? _(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
237
+ }
238
+ function _(o) {
239
+ return typeof o == "object" && o !== null && o.$$typeof === S;
238
240
  }
239
- var v = jr, w = Symbol.for("react.transitional.element"), S = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), V = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), X = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), d = Symbol.for("react.client.reference"), g = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, Y = Array.isArray, z = console.createTask ? console.createTask : function() {
241
+ var g = jr, S = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), N = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), d = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), M = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, Y = Array.isArray, z = console.createTask ? console.createTask : function() {
240
242
  return null;
241
243
  };
242
- v = {
243
- "react-stack-bottom-frame": function(o) {
244
+ g = {
245
+ react_stack_bottom_frame: function(o) {
244
246
  return o();
245
247
  }
246
248
  };
247
- var U, L = {}, q = v["react-stack-bottom-frame"].bind(
248
- v,
249
+ var $, q = {}, C = g.react_stack_bottom_frame.bind(
250
+ g,
249
251
  t
250
- )(), C = z(i(t)), h = {};
251
- Oe.Fragment = p, Oe.jsx = function(o, y, _, j, ee) {
252
- var D = 1e4 > g.recentlyCreatedOwnerStacks++;
252
+ )(), p = z(i(t)), v = {};
253
+ Oe.Fragment = x, Oe.jsx = function(o, y, R) {
254
+ var F = 1e4 > M.recentlyCreatedOwnerStacks++;
253
255
  return u(
254
256
  o,
255
257
  y,
256
- _,
258
+ R,
257
259
  !1,
258
- j,
259
- ee,
260
- D ? Error("react-stack-top-frame") : q,
261
- D ? z(i(o)) : C
260
+ F ? Error("react-stack-top-frame") : C,
261
+ F ? z(i(o)) : p
262
262
  );
263
- }, Oe.jsxs = function(o, y, _, j, ee) {
264
- var D = 1e4 > g.recentlyCreatedOwnerStacks++;
263
+ }, Oe.jsxs = function(o, y, R) {
264
+ var F = 1e4 > M.recentlyCreatedOwnerStacks++;
265
265
  return u(
266
266
  o,
267
267
  y,
268
- _,
268
+ R,
269
269
  !0,
270
- j,
271
- ee,
272
- D ? Error("react-stack-top-frame") : q,
273
- D ? z(i(o)) : C
270
+ F ? Error("react-stack-top-frame") : C,
271
+ F ? z(i(o)) : p
274
272
  );
275
273
  };
276
- }()), Oe;
274
+ })()), Oe;
277
275
  }
278
276
  var dr;
279
277
  function Mr() {
@@ -289,18 +287,18 @@ function Ze() {
289
287
  return e;
290
288
  }, Ze.apply(null, arguments);
291
289
  }
292
- function Br(e) {
290
+ function zr(e) {
293
291
  if (e.sheet)
294
292
  return e.sheet;
295
293
  for (var r = 0; r < document.styleSheets.length; r++)
296
294
  if (document.styleSheets[r].ownerNode === e)
297
295
  return document.styleSheets[r];
298
296
  }
299
- function zr(e) {
297
+ function Br(e) {
300
298
  var r = document.createElement("style");
301
299
  return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
302
300
  }
303
- var Ur = /* @__PURE__ */ function() {
301
+ var Ur = /* @__PURE__ */ (function() {
304
302
  function e(n) {
305
303
  var i = this;
306
304
  this._insertTag = function(a) {
@@ -312,10 +310,10 @@ var Ur = /* @__PURE__ */ function() {
312
310
  return r.hydrate = function(i) {
313
311
  i.forEach(this._insertTag);
314
312
  }, r.insert = function(i) {
315
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(zr(this));
313
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Br(this));
316
314
  var a = this.tags[this.tags.length - 1];
317
315
  if (this.isSpeedy) {
318
- var t = Br(a);
316
+ var t = zr(a);
319
317
  try {
320
318
  t.insertRule(i, t.cssRules.length);
321
319
  } catch {
@@ -329,9 +327,9 @@ var Ur = /* @__PURE__ */ function() {
329
327
  return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
330
328
  }), this.tags = [], this.ctr = 0;
331
329
  }, e;
332
- }(), te = "-ms-", We = "-moz-", A = "-webkit-", Er = "comm", nr = "rule", ir = "decl", qr = "@import", _r = "@keyframes", Wr = "@layer", Yr = Math.abs, Ye = String.fromCharCode, Hr = Object.assign;
330
+ })(), ie = "-ms-", We = "-moz-", k = "-webkit-", Er = "comm", nr = "rule", ir = "decl", qr = "@import", Pr = "@keyframes", Wr = "@layer", Yr = Math.abs, Ye = String.fromCharCode, Hr = Object.assign;
333
331
  function Gr(e, r) {
334
- return Z(e, 0) ^ 45 ? (((r << 2 ^ Z(e, 0)) << 2 ^ Z(e, 1)) << 2 ^ Z(e, 2)) << 2 ^ Z(e, 3) : 0;
332
+ return re(e, 0) ^ 45 ? (((r << 2 ^ re(e, 0)) << 2 ^ re(e, 1)) << 2 ^ re(e, 2)) << 2 ^ re(e, 3) : 0;
335
333
  }
336
334
  function Ir(e) {
337
335
  return e.trim();
@@ -339,13 +337,13 @@ function Ir(e) {
339
337
  function Xr(e, r) {
340
338
  return (e = r.exec(e)) ? e[0] : e;
341
339
  }
342
- function k(e, r, n) {
340
+ function O(e, r, n) {
343
341
  return e.replace(r, n);
344
342
  }
345
343
  function er(e, r) {
346
344
  return e.indexOf(r);
347
345
  }
348
- function Z(e, r) {
346
+ function re(e, r) {
349
347
  return e.charCodeAt(r) | 0;
350
348
  }
351
349
  function Le(e, r, n) {
@@ -363,7 +361,7 @@ function Me(e, r) {
363
361
  function Jr(e, r) {
364
362
  return e.map(r).join("");
365
363
  }
366
- var He = 1, Te = 1, Sr = 0, oe = 0, G = 0, Ae = "";
364
+ var He = 1, Te = 1, Sr = 0, se = 0, J = 0, Ae = "";
367
365
  function Ge(e, r, n, i, a, t, s) {
368
366
  return { value: e, root: r, parent: n, type: i, props: a, children: t, line: He, column: Te, length: s, return: "" };
369
367
  }
@@ -371,19 +369,19 @@ function Ve(e, r) {
371
369
  return Hr(Ge("", null, null, "", null, null, 0), e, { length: -e.length }, r);
372
370
  }
373
371
  function Qr() {
374
- return G;
372
+ return J;
375
373
  }
376
374
  function Kr() {
377
- return G = oe > 0 ? Z(Ae, --oe) : 0, Te--, G === 10 && (Te = 1, He--), G;
375
+ return J = se > 0 ? re(Ae, --se) : 0, Te--, J === 10 && (Te = 1, He--), J;
378
376
  }
379
- function ue() {
380
- return G = oe < Sr ? Z(Ae, oe++) : 0, Te++, G === 10 && (Te = 1, He++), G;
377
+ function ce() {
378
+ return J = se < Sr ? re(Ae, se++) : 0, Te++, J === 10 && (Te = 1, He++), J;
381
379
  }
382
380
  function ye() {
383
- return Z(Ae, oe);
381
+ return re(Ae, se);
384
382
  }
385
- function ze() {
386
- return oe;
383
+ function Be() {
384
+ return se;
387
385
  }
388
386
  function Ne(e, r) {
389
387
  return Le(Ae, e, r);
@@ -427,34 +425,34 @@ function je(e) {
427
425
  return 0;
428
426
  }
429
427
  function Rr(e) {
430
- return He = Te = 1, Sr = he(Ae = e), oe = 0, [];
428
+ return He = Te = 1, Sr = he(Ae = e), se = 0, [];
431
429
  }
432
430
  function Tr(e) {
433
431
  return Ae = "", e;
434
432
  }
435
433
  function Ue(e) {
436
- return Ir(Ne(oe - 1, rr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
434
+ return Ir(Ne(se - 1, rr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
435
  }
438
436
  function Zr(e) {
439
- for (; (G = ye()) && G < 33; )
440
- ue();
441
- return je(e) > 2 || je(G) > 3 ? "" : " ";
437
+ for (; (J = ye()) && J < 33; )
438
+ ce();
439
+ return je(e) > 2 || je(J) > 3 ? "" : " ";
442
440
  }
443
441
  function et(e, r) {
444
- for (; --r && ue() && !(G < 48 || G > 102 || G > 57 && G < 65 || G > 70 && G < 97); )
442
+ for (; --r && ce() && !(J < 48 || J > 102 || J > 57 && J < 65 || J > 70 && J < 97); )
445
443
  ;
446
- return Ne(e, ze() + (r < 6 && ye() == 32 && ue() == 32));
444
+ return Ne(e, Be() + (r < 6 && ye() == 32 && ce() == 32));
447
445
  }
448
446
  function rr(e) {
449
- for (; ue(); )
450
- switch (G) {
447
+ for (; ce(); )
448
+ switch (J) {
451
449
  // ] ) " '
452
450
  case e:
453
- return oe;
451
+ return se;
454
452
  // " '
455
453
  case 34:
456
454
  case 39:
457
- e !== 34 && e !== 39 && rr(G);
455
+ e !== 34 && e !== 39 && rr(J);
458
456
  break;
459
457
  // (
460
458
  case 40:
@@ -462,135 +460,135 @@ function rr(e) {
462
460
  break;
463
461
  // \
464
462
  case 92:
465
- ue();
463
+ ce();
466
464
  break;
467
465
  }
468
- return oe;
466
+ return se;
469
467
  }
470
468
  function rt(e, r) {
471
- for (; ue() && e + G !== 57; )
472
- if (e + G === 84 && ye() === 47)
469
+ for (; ce() && e + J !== 57; )
470
+ if (e + J === 84 && ye() === 47)
473
471
  break;
474
- return "/*" + Ne(r, oe - 1) + "*" + Ye(e === 47 ? e : ue());
472
+ return "/*" + Ne(r, se - 1) + "*" + Ye(e === 47 ? e : ce());
475
473
  }
476
474
  function tt(e) {
477
475
  for (; !je(ye()); )
478
- ue();
479
- return Ne(e, oe);
476
+ ce();
477
+ return Ne(e, se);
480
478
  }
481
479
  function nt(e) {
482
480
  return Tr(qe("", null, null, null, [""], e = Rr(e), 0, [0], e));
483
481
  }
484
482
  function qe(e, r, n, i, a, t, s, l, c) {
485
- for (var m = 0, u = 0, f = s, v = 0, w = 0, S = 0, p = 1, b = 1, P = 1, E = 0, O = "", N = a, V = t, R = i, x = O; b; )
486
- switch (S = E, E = ue()) {
483
+ for (var m = 0, u = 0, f = s, _ = 0, g = 0, S = 0, h = 1, x = 1, b = 1, P = 0, L = "", N = a, j = t, T = i, w = L; x; )
484
+ switch (S = P, P = ce()) {
487
485
  // (
488
486
  case 40:
489
- if (S != 108 && Z(x, f - 1) == 58) {
490
- er(x += k(Ue(E), "&", "&\f"), "&\f") != -1 && (P = -1);
487
+ if (S != 108 && re(w, f - 1) == 58) {
488
+ er(w += O(Ue(P), "&", "&\f"), "&\f") != -1 && (b = -1);
491
489
  break;
492
490
  }
493
491
  // " ' [
494
492
  case 34:
495
493
  case 39:
496
494
  case 91:
497
- x += Ue(E);
495
+ w += Ue(P);
498
496
  break;
499
497
  // \t \n \r \s
500
498
  case 9:
501
499
  case 10:
502
500
  case 13:
503
501
  case 32:
504
- x += Zr(S);
502
+ w += Zr(S);
505
503
  break;
506
504
  // \
507
505
  case 92:
508
- x += et(ze() - 1, 7);
506
+ w += et(Be() - 1, 7);
509
507
  continue;
510
508
  // /
511
509
  case 47:
512
510
  switch (ye()) {
513
511
  case 42:
514
512
  case 47:
515
- Me(it(rt(ue(), ze()), r, n), c);
513
+ Me(it(rt(ce(), Be()), r, n), c);
516
514
  break;
517
515
  default:
518
- x += "/";
516
+ w += "/";
519
517
  }
520
518
  break;
521
519
  // {
522
- case 123 * p:
523
- l[m++] = he(x) * P;
520
+ case 123 * h:
521
+ l[m++] = he(w) * b;
524
522
  // } ; \0
525
- case 125 * p:
523
+ case 125 * h:
526
524
  case 59:
527
525
  case 0:
528
- switch (E) {
526
+ switch (P) {
529
527
  // \0 }
530
528
  case 0:
531
529
  case 125:
532
- b = 0;
530
+ x = 0;
533
531
  // ;
534
532
  case 59 + u:
535
- P == -1 && (x = k(x, /\f/g, "")), w > 0 && he(x) - f && Me(w > 32 ? pr(x + ";", i, n, f - 1) : pr(k(x, " ", "") + ";", i, n, f - 2), c);
533
+ b == -1 && (w = O(w, /\f/g, "")), g > 0 && he(w) - f && Me(g > 32 ? pr(w + ";", i, n, f - 1) : pr(O(w, " ", "") + ";", i, n, f - 2), c);
536
534
  break;
537
535
  // @ ;
538
536
  case 59:
539
- x += ";";
537
+ w += ";";
540
538
  // { rule/at-rule
541
539
  default:
542
- if (Me(R = fr(x, r, n, m, u, a, l, O, N = [], V = [], f), t), E === 123)
540
+ if (Me(T = fr(w, r, n, m, u, a, l, L, N = [], j = [], f), t), P === 123)
543
541
  if (u === 0)
544
- qe(x, r, R, R, N, t, f, l, V);
542
+ qe(w, r, T, T, N, t, f, l, j);
545
543
  else
546
- switch (v === 99 && Z(x, 3) === 110 ? 100 : v) {
544
+ switch (_ === 99 && re(w, 3) === 110 ? 100 : _) {
547
545
  // d l m s
548
546
  case 100:
549
547
  case 108:
550
548
  case 109:
551
549
  case 115:
552
- qe(e, R, R, i && Me(fr(e, R, R, 0, 0, a, l, O, a, N = [], f), V), a, V, f, l, i ? N : V);
550
+ qe(e, T, T, i && Me(fr(e, T, T, 0, 0, a, l, L, a, N = [], f), j), a, j, f, l, i ? N : j);
553
551
  break;
554
552
  default:
555
- qe(x, R, R, R, [""], V, 0, l, V);
553
+ qe(w, T, T, T, [""], j, 0, l, j);
556
554
  }
557
555
  }
558
- m = u = w = 0, p = P = 1, O = x = "", f = s;
556
+ m = u = g = 0, h = b = 1, L = w = "", f = s;
559
557
  break;
560
558
  // :
561
559
  case 58:
562
- f = 1 + he(x), w = S;
560
+ f = 1 + he(w), g = S;
563
561
  default:
564
- if (p < 1) {
565
- if (E == 123)
566
- --p;
567
- else if (E == 125 && p++ == 0 && Kr() == 125)
562
+ if (h < 1) {
563
+ if (P == 123)
564
+ --h;
565
+ else if (P == 125 && h++ == 0 && Kr() == 125)
568
566
  continue;
569
567
  }
570
- switch (x += Ye(E), E * p) {
568
+ switch (w += Ye(P), P * h) {
571
569
  // &
572
570
  case 38:
573
- P = u > 0 ? 1 : (x += "\f", -1);
571
+ b = u > 0 ? 1 : (w += "\f", -1);
574
572
  break;
575
573
  // ,
576
574
  case 44:
577
- l[m++] = (he(x) - 1) * P, P = 1;
575
+ l[m++] = (he(w) - 1) * b, b = 1;
578
576
  break;
579
577
  // @
580
578
  case 64:
581
- ye() === 45 && (x += Ue(ue())), v = ye(), u = f = he(O = x += tt(ze())), E++;
579
+ ye() === 45 && (w += Ue(ce())), _ = ye(), u = f = he(L = w += tt(Be())), P++;
582
580
  break;
583
581
  // -
584
582
  case 45:
585
- S === 45 && he(x) == 2 && (p = 0);
583
+ S === 45 && he(w) == 2 && (h = 0);
586
584
  }
587
585
  }
588
586
  return t;
589
587
  }
590
588
  function fr(e, r, n, i, a, t, s, l, c, m, u) {
591
- for (var f = a - 1, v = a === 0 ? t : [""], w = ar(v), S = 0, p = 0, b = 0; S < i; ++S)
592
- for (var P = 0, E = Le(e, f + 1, f = Yr(p = s[S])), O = e; P < w; ++P)
593
- (O = Ir(p > 0 ? v[P] + " " + E : k(E, /&\f/g, v[P]))) && (c[b++] = O);
589
+ for (var f = a - 1, _ = a === 0 ? t : [""], g = ar(_), S = 0, h = 0, x = 0; S < i; ++S)
590
+ for (var b = 0, P = Le(e, f + 1, f = Yr(h = s[S])), L = e; b < g; ++b)
591
+ (L = Ir(h > 0 ? _[b] + " " + P : O(P, /&\f/g, _[b]))) && (c[x++] = L);
594
592
  return Ge(e, r, n, a === 0 ? nr : l, c, m, u);
595
593
  }
596
594
  function it(e, r, n) {
@@ -613,7 +611,7 @@ function at(e, r, n, i) {
613
611
  return e.return = e.return || e.value;
614
612
  case Er:
615
613
  return "";
616
- case _r:
614
+ case Pr:
617
615
  return e.return = e.value + "{" + Re(e.children, i) + "}";
618
616
  case nr:
619
617
  e.value = e.props.join(",");
@@ -641,14 +639,14 @@ function Cr(e) {
641
639
  }
642
640
  var lt = function(r, n, i) {
643
641
  for (var a = 0, t = 0; a = t, t = ye(), a === 38 && t === 12 && (n[i] = 1), !je(t); )
644
- ue();
645
- return Ne(r, oe);
642
+ ce();
643
+ return Ne(r, se);
646
644
  }, ut = function(r, n) {
647
645
  var i = -1, a = 44;
648
646
  do
649
647
  switch (je(a)) {
650
648
  case 0:
651
- a === 38 && ye() === 12 && (n[i] = 1), r[i] += lt(oe - 1, n, i);
649
+ a === 38 && ye() === 12 && (n[i] = 1), r[i] += lt(se - 1, n, i);
652
650
  break;
653
651
  case 2:
654
652
  r[i] += Ue(a);
@@ -662,7 +660,7 @@ var lt = function(r, n, i) {
662
660
  default:
663
661
  r[i] += Ye(a);
664
662
  }
665
- while (a = ue());
663
+ while (a = ce());
666
664
  return r;
667
665
  }, ct = function(r, n) {
668
666
  return Tr(ut(Rr(r), n));
@@ -691,7 +689,7 @@ function Ar(e, r) {
691
689
  switch (Gr(e, r)) {
692
690
  // color-adjust
693
691
  case 5103:
694
- return A + "print-" + e + e;
692
+ return k + "print-" + e + e;
695
693
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
696
694
  case 5737:
697
695
  case 4201:
@@ -721,58 +719,58 @@ function Ar(e, r) {
721
719
  case 5365:
722
720
  case 5621:
723
721
  case 3829:
724
- return A + e + e;
722
+ return k + e + e;
725
723
  // appearance, user-select, transform, hyphens, text-size-adjust
726
724
  case 5349:
727
725
  case 4246:
728
726
  case 4810:
729
727
  case 6968:
730
728
  case 2756:
731
- return A + e + We + e + te + e + e;
729
+ return k + e + We + e + ie + e + e;
732
730
  // flex, flex-direction
733
731
  case 6828:
734
732
  case 4268:
735
- return A + e + te + e + e;
733
+ return k + e + ie + e + e;
736
734
  // order
737
735
  case 6165:
738
- return A + e + te + "flex-" + e + e;
736
+ return k + e + ie + "flex-" + e + e;
739
737
  // align-items
740
738
  case 5187:
741
- return A + e + k(e, /(\w+).+(:[^]+)/, A + "box-$1$2" + te + "flex-$1$2") + e;
739
+ return k + e + O(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + ie + "flex-$1$2") + e;
742
740
  // align-self
743
741
  case 5443:
744
- return A + e + te + "flex-item-" + k(e, /flex-|-self/, "") + e;
742
+ return k + e + ie + "flex-item-" + O(e, /flex-|-self/, "") + e;
745
743
  // align-content
746
744
  case 4675:
747
- return A + e + te + "flex-line-pack" + k(e, /align-content|flex-|-self/, "") + e;
745
+ return k + e + ie + "flex-line-pack" + O(e, /align-content|flex-|-self/, "") + e;
748
746
  // flex-shrink
749
747
  case 5548:
750
- return A + e + te + k(e, "shrink", "negative") + e;
748
+ return k + e + ie + O(e, "shrink", "negative") + e;
751
749
  // flex-basis
752
750
  case 5292:
753
- return A + e + te + k(e, "basis", "preferred-size") + e;
751
+ return k + e + ie + O(e, "basis", "preferred-size") + e;
754
752
  // flex-grow
755
753
  case 6060:
756
- return A + "box-" + k(e, "-grow", "") + A + e + te + k(e, "grow", "positive") + e;
754
+ return k + "box-" + O(e, "-grow", "") + k + e + ie + O(e, "grow", "positive") + e;
757
755
  // transition
758
756
  case 4554:
759
- return A + k(e, /([^-])(transform)/g, "$1" + A + "$2") + e;
757
+ return k + O(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
760
758
  // cursor
761
759
  case 6187:
762
- return k(k(k(e, /(zoom-|grab)/, A + "$1"), /(image-set)/, A + "$1"), e, "") + e;
760
+ return O(O(O(e, /(zoom-|grab)/, k + "$1"), /(image-set)/, k + "$1"), e, "") + e;
763
761
  // background, background-image
764
762
  case 5495:
765
763
  case 3959:
766
- return k(e, /(image-set\([^]*)/, A + "$1$`$1");
764
+ return O(e, /(image-set\([^]*)/, k + "$1$`$1");
767
765
  // justify-content
768
766
  case 4968:
769
- return k(k(e, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + te + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + e + e;
767
+ return O(O(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + ie + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
770
768
  // (margin|padding)-inline-(start|end)
771
769
  case 4095:
772
770
  case 3583:
773
771
  case 4068:
774
772
  case 2532:
775
- return k(e, /(.+)-inline(.+)/, A + "$1$2") + e;
773
+ return O(e, /(.+)-inline(.+)/, k + "$1$2") + e;
776
774
  // (min|max)?(width|height|inline-size|block-size)
777
775
  case 8116:
778
776
  case 7059:
@@ -786,46 +784,46 @@ function Ar(e, r) {
786
784
  case 5789:
787
785
  case 5021:
788
786
  case 4765:
789
- if (he(e) - 1 - r > 6) switch (Z(e, r + 1)) {
787
+ if (he(e) - 1 - r > 6) switch (re(e, r + 1)) {
790
788
  // (m)ax-content, (m)in-content
791
789
  case 109:
792
- if (Z(e, r + 4) !== 45) break;
790
+ if (re(e, r + 4) !== 45) break;
793
791
  // (f)ill-available, (f)it-content
794
792
  case 102:
795
- return k(e, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + We + (Z(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
793
+ return O(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + We + (re(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
796
794
  // (s)tretch
797
795
  case 115:
798
- return ~er(e, "stretch") ? Ar(k(e, "stretch", "fill-available"), r) + e : e;
796
+ return ~er(e, "stretch") ? Ar(O(e, "stretch", "fill-available"), r) + e : e;
799
797
  }
800
798
  break;
801
799
  // position: sticky
802
800
  case 4949:
803
- if (Z(e, r + 1) !== 115) break;
801
+ if (re(e, r + 1) !== 115) break;
804
802
  // display: (flex|inline-flex)
805
803
  case 6444:
806
- switch (Z(e, he(e) - 3 - (~er(e, "!important") && 10))) {
804
+ switch (re(e, he(e) - 3 - (~er(e, "!important") && 10))) {
807
805
  // stic(k)y
808
806
  case 107:
809
- return k(e, ":", ":" + A) + e;
807
+ return O(e, ":", ":" + k) + e;
810
808
  // (inline-)?fl(e)x
811
809
  case 101:
812
- return k(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (Z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + te + "$2box$3") + e;
810
+ return O(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (re(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + ie + "$2box$3") + e;
813
811
  }
814
812
  break;
815
813
  // writing-mode
816
814
  case 5936:
817
- switch (Z(e, r + 11)) {
815
+ switch (re(e, r + 11)) {
818
816
  // vertical-l(r)
819
817
  case 114:
820
- return A + e + te + k(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
818
+ return k + e + ie + O(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
819
  // vertical-r(l)
822
820
  case 108:
823
- return A + e + te + k(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
821
+ return k + e + ie + O(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
822
  // horizontal(-)tb
825
823
  case 45:
826
- return A + e + te + k(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
824
+ return k + e + ie + O(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
825
  }
828
- return A + e + te + e + e;
826
+ return k + e + ie + e + e;
829
827
  }
830
828
  return e;
831
829
  }
@@ -834,9 +832,9 @@ var pt = function(r, n, i, a) {
834
832
  case ir:
835
833
  r.return = Ar(r.value, r.length);
836
834
  break;
837
- case _r:
835
+ case Pr:
838
836
  return Re([Ve(r, {
839
- value: k(r.value, "@", "@" + A)
837
+ value: O(r.value, "@", "@" + k)
840
838
  })], a);
841
839
  case nr:
842
840
  if (r.length) return Jr(r.props, function(t) {
@@ -845,16 +843,16 @@ var pt = function(r, n, i, a) {
845
843
  case ":read-only":
846
844
  case ":read-write":
847
845
  return Re([Ve(r, {
848
- props: [k(t, /:(read-\w+)/, ":" + We + "$1")]
846
+ props: [O(t, /:(read-\w+)/, ":" + We + "$1")]
849
847
  })], a);
850
848
  // :placeholder
851
849
  case "::placeholder":
852
850
  return Re([Ve(r, {
853
- props: [k(t, /:(plac\w+)/, ":" + A + "input-$1")]
851
+ props: [O(t, /:(plac\w+)/, ":" + k + "input-$1")]
854
852
  }), Ve(r, {
855
- props: [k(t, /:(plac\w+)/, ":" + We + "$1")]
853
+ props: [O(t, /:(plac\w+)/, ":" + We + "$1")]
856
854
  }), Ve(r, {
857
- props: [k(t, /:(plac\w+)/, te + "input-$1")]
855
+ props: [O(t, /:(plac\w+)/, ie + "input-$1")]
858
856
  })], a);
859
857
  }
860
858
  return "";
@@ -864,9 +862,9 @@ var pt = function(r, n, i, a) {
864
862
  var n = r.key;
865
863
  if (n === "css") {
866
864
  var i = document.querySelectorAll("style[data-emotion]:not([data-s])");
867
- Array.prototype.forEach.call(i, function(p) {
868
- var b = p.getAttribute("data-emotion");
869
- b.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
865
+ Array.prototype.forEach.call(i, function(h) {
866
+ var x = h.getAttribute("data-emotion");
867
+ x.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
870
868
  });
871
869
  }
872
870
  var a = r.stylisPlugins || ht, t = {}, s, l = [];
@@ -874,21 +872,21 @@ var pt = function(r, n, i, a) {
874
872
  // this means we will ignore elements which don't have a space in them which
875
873
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
876
874
  document.querySelectorAll('style[data-emotion^="' + n + ' "]'),
877
- function(p) {
878
- for (var b = p.getAttribute("data-emotion").split(" "), P = 1; P < b.length; P++)
879
- t[b[P]] = !0;
880
- l.push(p);
875
+ function(h) {
876
+ for (var x = h.getAttribute("data-emotion").split(" "), b = 1; b < x.length; b++)
877
+ t[x[b]] = !0;
878
+ l.push(h);
881
879
  }
882
880
  );
883
881
  var c, m = [dt, ft];
884
882
  {
885
- var u, f = [at, st(function(p) {
886
- u.insert(p);
887
- })], v = ot(m.concat(a, f)), w = function(b) {
888
- return Re(nt(b), v);
883
+ var u, f = [at, st(function(h) {
884
+ u.insert(h);
885
+ })], _ = ot(m.concat(a, f)), g = function(x) {
886
+ return Re(nt(x), _);
889
887
  };
890
- c = function(b, P, E, O) {
891
- u = E, w(b ? b + "{" + P.styles + "}" : P.styles), O && (S.inserted[P.name] = !0);
888
+ c = function(x, b, P, L) {
889
+ u = P, g(x ? x + "{" + b.styles + "}" : b.styles), L && (S.inserted[b.name] = !0);
892
890
  };
893
891
  }
894
892
  var S = {
@@ -1004,18 +1002,18 @@ var wt = {
1004
1002
  strokeMiterlimit: 1,
1005
1003
  strokeOpacity: 1,
1006
1004
  strokeWidth: 1
1007
- }, bt = /[A-Z]|^ms/g, Pt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Or = function(r) {
1005
+ }, _t = /[A-Z]|^ms/g, bt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Or = function(r) {
1008
1006
  return r.charCodeAt(1) === 45;
1009
1007
  }, mr = function(r) {
1010
1008
  return r != null && typeof r != "boolean";
1011
1009
  }, Xe = /* @__PURE__ */ Cr(function(e) {
1012
- return Or(e) ? e : e.replace(bt, "-$&").toLowerCase();
1010
+ return Or(e) ? e : e.replace(_t, "-$&").toLowerCase();
1013
1011
  }), yr = function(r, n) {
1014
1012
  switch (r) {
1015
1013
  case "animation":
1016
1014
  case "animationName":
1017
1015
  if (typeof n == "string")
1018
- return n.replace(Pt, function(i, a, t) {
1016
+ return n.replace(bt, function(i, a, t) {
1019
1017
  return me = {
1020
1018
  name: a,
1021
1019
  styles: t,
@@ -1101,7 +1099,7 @@ function Et(e, r, n) {
1101
1099
  return i;
1102
1100
  }
1103
1101
  var vr = /label:\s*([^\s;{]+)\s*(;|$)/g, me;
1104
- function _t(e, r, n) {
1102
+ function Pt(e, r, n) {
1105
1103
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1106
1104
  return e[0];
1107
1105
  var i = !0, a = "";
@@ -1144,10 +1142,10 @@ var It = function(r) {
1144
1142
  Vr.Provider;
1145
1143
  var Tt = function(r) {
1146
1144
  return /* @__PURE__ */ $r(function(n, i) {
1147
- var a = br(Vr);
1145
+ var a = _r(Vr);
1148
1146
  return r(n, a, i);
1149
1147
  });
1150
- }, Ct = /* @__PURE__ */ xe.createContext({}), At = /^((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|fetchpriority|fetchPriority|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)-.*))$/, kt = /* @__PURE__ */ Cr(
1148
+ }, Ct = /* @__PURE__ */ xe.createContext({}), At = /^((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|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/, kt = /* @__PURE__ */ Cr(
1151
1149
  function(e) {
1152
1150
  return At.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1153
1151
  }
@@ -1182,41 +1180,41 @@ var Tt = function(r) {
1182
1180
  if (t !== void 0 && f.push("label:" + t + ";"), u[0] == null || u[0].raw === void 0)
1183
1181
  f.push.apply(f, u);
1184
1182
  else {
1185
- var v = u[0];
1186
- f.push(v[0]);
1187
- for (var w = u.length, S = 1; S < w; S++)
1188
- f.push(u[S], v[S]);
1183
+ var _ = u[0];
1184
+ f.push(_[0]);
1185
+ for (var g = u.length, S = 1; S < g; S++)
1186
+ f.push(u[S], _[S]);
1189
1187
  }
1190
- var p = Tt(function(b, P, E) {
1191
- var O = m && b.as || a, N = "", V = [], R = b;
1192
- if (b.theme == null) {
1193
- R = {};
1194
- for (var x in b)
1195
- R[x] = b[x];
1196
- R.theme = xe.useContext(Ct);
1188
+ var h = Tt(function(x, b, P) {
1189
+ var L = m && x.as || a, N = "", j = [], T = x;
1190
+ if (x.theme == null) {
1191
+ T = {};
1192
+ for (var w in x)
1193
+ T[w] = x[w];
1194
+ T.theme = xe.useContext(Ct);
1197
1195
  }
1198
- typeof b.className == "string" ? N = vt(P.registered, V, b.className) : b.className != null && (N = b.className + " ");
1199
- var X = _t(f.concat(V), P.registered, R);
1200
- N += P.key + "-" + X.name, s !== void 0 && (N += " " + s);
1201
- var W = m && l === void 0 ? gr(O) : c, d = {};
1202
- for (var g in b)
1203
- m && g === "as" || W(g) && (d[g] = b[g]);
1204
- return d.className = N, E && (d.ref = E), /* @__PURE__ */ xe.createElement(xe.Fragment, null, /* @__PURE__ */ xe.createElement(Lt, {
1205
- cache: P,
1206
- serialized: X,
1207
- isStringTag: typeof O == "string"
1208
- }), /* @__PURE__ */ xe.createElement(O, d));
1196
+ typeof x.className == "string" ? N = vt(b.registered, j, x.className) : x.className != null && (N = x.className + " ");
1197
+ var K = Pt(f.concat(j), b.registered, T);
1198
+ N += b.key + "-" + K.name, s !== void 0 && (N += " " + s);
1199
+ var U = m && l === void 0 ? gr(L) : c, d = {};
1200
+ for (var E in x)
1201
+ m && E === "as" || U(E) && (d[E] = x[E]);
1202
+ return d.className = N, P && (d.ref = P), /* @__PURE__ */ xe.createElement(xe.Fragment, null, /* @__PURE__ */ xe.createElement(Lt, {
1203
+ cache: b,
1204
+ serialized: K,
1205
+ isStringTag: typeof L == "string"
1206
+ }), /* @__PURE__ */ xe.createElement(L, d));
1209
1207
  });
1210
- return p.displayName = t !== void 0 ? t : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = r.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = f, p.__emotion_forwardProp = l, Object.defineProperty(p, "toString", {
1208
+ return h.displayName = t !== void 0 ? t : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", h.defaultProps = r.defaultProps, h.__emotion_real = h, h.__emotion_base = a, h.__emotion_styles = f, h.__emotion_forwardProp = l, Object.defineProperty(h, "toString", {
1211
1209
  value: function() {
1212
1210
  return "." + s;
1213
1211
  }
1214
- }), p.withComponent = function(b, P) {
1215
- var E = e(b, Ze({}, n, P, {
1216
- shouldForwardProp: xr(p, P, !0)
1212
+ }), h.withComponent = function(x, b) {
1213
+ var P = e(x, Ze({}, n, b, {
1214
+ shouldForwardProp: xr(h, b, !0)
1217
1215
  }));
1218
- return E.apply(void 0, f);
1219
- }, p;
1216
+ return P.apply(void 0, f);
1217
+ }, h;
1220
1218
  };
1221
1219
  }, $t = [
1222
1220
  "a",
@@ -1430,16 +1428,16 @@ const Nt = Ce.div`
1430
1428
  height: auto;
1431
1429
  z-index: 1001;
1432
1430
  max-height: 100vh;
1433
- `, Mt = (e, r) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${r}`, Bt = (e) => `https://host.vpplayer.tech/playlist/${e}`, zt = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, or = (e, r) => `vp-player-${e || "default"}-${r || ""}`, Je = /* @__PURE__ */ new Map(), Ut = (e, r) => {
1434
- const [n, i] = ce(!1), [a, t] = ce(null);
1431
+ `, Mt = (e, r) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${r}`, zt = (e) => `https://host.vpplayer.tech/playlist/${e}`, Bt = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, or = (e, r) => `vp-player-${e || "default"}-${r || ""}`, Je = /* @__PURE__ */ new Map(), Ut = (e, r) => {
1432
+ const [n, i] = de(!1), [a, t] = de(null);
1435
1433
  return Se(() => {
1436
1434
  let s = null, l, c = 0;
1437
1435
  const m = 3;
1438
1436
  let u;
1439
1437
  try {
1440
- u = r || zt(e || "latest");
1441
- } catch (w) {
1442
- const S = w instanceof Error ? w.message : String(w);
1438
+ u = r || Bt(e || "latest");
1439
+ } catch (g) {
1440
+ const S = g instanceof Error ? g.message : String(g);
1443
1441
  t(`Failed to resolve script URL: ${S}`), i(!1);
1444
1442
  return;
1445
1443
  }
@@ -1451,23 +1449,23 @@ const Nt = Ce.div`
1451
1449
  Je.set(u, !0), i(!0), t(null);
1452
1450
  return;
1453
1451
  }
1454
- const v = () => {
1452
+ const _ = () => {
1455
1453
  s = document.createElement("script"), s.src = u, s.async = !0, l = window.setTimeout(() => {
1456
1454
  i(!1), t(`Loading script timed out: ${u}`);
1457
1455
  }, 1e4), s.onload = () => {
1458
1456
  clearTimeout(l), Je.set(u, !0), i(!0), t(null);
1459
1457
  }, s.onerror = () => {
1460
- clearTimeout(l), c++, c < m ? setTimeout(v, 1e3 * c) : (i(!1), t(`Failed to load VP Player script after ${m} attempts: ${u}`));
1458
+ clearTimeout(l), c++, c < m ? setTimeout(_, 1e3 * c) : (i(!1), t(`Failed to load VP Player script after ${m} attempts: ${u}`));
1461
1459
  }, document.body.appendChild(s);
1462
1460
  };
1463
- return v(), () => {
1461
+ return _(), () => {
1464
1462
  clearTimeout(l), s && document.body.contains(s) && document.body.removeChild(s);
1465
1463
  };
1466
1464
  }, [e, r]), { isLoaded: n, error: a };
1467
- }, Be = /* @__PURE__ */ new Map(), qt = 3e4, Qe = 5, Wt = ({ projectId: e, videoId: r, playlistId: n, videoUrl: i }) => {
1468
- const [a, t] = ce(null), [s, l] = ce(null), [c, m] = ce(!1), [u, f] = ce(null);
1465
+ }, ze = /* @__PURE__ */ new Map(), qt = 3e4, Qe = 5, Wt = ({ projectId: e, videoId: r, playlistId: n, videoUrl: i }) => {
1466
+ const [a, t] = de(null), [s, l] = de(null), [c, m] = de(!1), [u, f] = de(null);
1469
1467
  return Se(() => {
1470
- const v = r ? `video:${r}` : n ? `playlist:${n}` : null;
1468
+ const _ = r ? `video:${r}` : n ? `playlist:${n}` : null;
1471
1469
  if (i || !r && !n) {
1472
1470
  t(i || null), l(null), m(!1), f(null);
1473
1471
  return;
@@ -1476,205 +1474,205 @@ const Nt = Ce.div`
1476
1474
  m(!1), f("projectId is required for single video fetch");
1477
1475
  return;
1478
1476
  }
1479
- if (v && Be.has(v)) {
1480
- const E = Be.get(v);
1481
- t(E.url), l(E.playlist), m(!1), f(null);
1477
+ if (_ && ze.has(_)) {
1478
+ const P = ze.get(_);
1479
+ t(P.url), l(P.playlist), m(!1), f(null);
1482
1480
  return;
1483
1481
  }
1484
- let w = !0;
1485
- const S = new AbortController(), p = S.signal, P = setTimeout(async () => {
1486
- var O, N;
1487
- if (!w)
1482
+ let g = !0;
1483
+ const S = new AbortController(), h = S.signal, b = setTimeout(async () => {
1484
+ var L, N;
1485
+ if (!g)
1488
1486
  return;
1489
1487
  m(!0), f(null);
1490
- let E = 0;
1491
- for (; E < Qe && w; )
1488
+ let P = 0;
1489
+ for (; P < Qe && g; )
1492
1490
  try {
1493
- const V = r && !n ? Mt(e, r) : Bt(n), R = setTimeout(() => S.abort(), qt), X = await fetch(V, {
1491
+ const j = r && !n ? Mt(e, r) : zt(n), T = setTimeout(() => S.abort(), qt), K = await fetch(j, {
1494
1492
  method: "GET",
1495
1493
  headers: {
1496
1494
  Accept: "application/json",
1497
1495
  "Cache-Control": "no-cache"
1498
1496
  },
1499
- signal: p
1497
+ signal: h
1500
1498
  });
1501
- if (clearTimeout(R), !X.ok)
1502
- throw new Error(`Fetch failed with status ${X.status}`);
1503
- const W = await X.json();
1504
- if (!w)
1499
+ if (clearTimeout(T), !K.ok)
1500
+ throw new Error(`Fetch failed with status ${K.status}`);
1501
+ const U = await K.json();
1502
+ if (!g)
1505
1503
  return;
1506
1504
  if (r && !n) {
1507
- const d = (N = (O = W.result) == null ? void 0 : O.items) == null ? void 0 : N.find((g) => g.mediaId === r);
1505
+ const d = (N = (L = U.result) == null ? void 0 : L.items) == null ? void 0 : N.find((E) => E.mediaId === r);
1508
1506
  if (!(d != null && d.playbackUrl))
1509
1507
  throw new Error("Invalid video data");
1510
- t(d.playbackUrl), l(null), v && Be.set(v, { url: d.playbackUrl, playlist: null });
1508
+ t(d.playbackUrl), l(null), _ && ze.set(_, { url: d.playbackUrl, playlist: null });
1511
1509
  } else {
1512
- const d = W.videos;
1510
+ const d = U.videos;
1513
1511
  if (!Array.isArray(d))
1514
1512
  throw new Error("Invalid playlist format");
1515
- l(d), t(null), v && Be.set(v, { url: null, playlist: d });
1513
+ l(d), t(null), _ && ze.set(_, { url: null, playlist: d });
1516
1514
  }
1517
1515
  break;
1518
- } catch (V) {
1519
- if (p.aborted) {
1520
- w && f("Request timed out");
1516
+ } catch (j) {
1517
+ if (h.aborted) {
1518
+ g && f("Request timed out");
1521
1519
  break;
1522
1520
  }
1523
- if (E++, E >= Qe) {
1524
- const R = V instanceof Error ? V.message : String(V);
1525
- w && f(`Failed after ${Qe} attempts: ${R}`);
1521
+ if (P++, P >= Qe) {
1522
+ const T = j instanceof Error ? j.message : String(j);
1523
+ g && f(`Failed after ${Qe} attempts: ${T}`);
1526
1524
  } else
1527
- await new Promise((R) => setTimeout(R, 2e3));
1525
+ await new Promise((T) => setTimeout(T, 2e3));
1528
1526
  }
1529
- w && m(!1);
1527
+ g && m(!1);
1530
1528
  }, 100);
1531
1529
  return () => {
1532
- w = !1, clearTimeout(P), S.abort();
1530
+ g = !1, clearTimeout(b), S.abort();
1533
1531
  };
1534
1532
  }, [e, r, n, i]), { fetchedPlaybackUrl: a, fetchedPlaylist: s, isLoading: c, error: u };
1535
1533
  }, Yt = ({ playerId: e, playerInstanceRef: r, playerRef: n, videoData: i, trackingMetadata: a, callbacks: t }) => {
1536
- const s = K(!1), l = K(!1), c = K(!1), m = K(0), u = K({}), f = K(null), v = K(null), w = K(null), S = K(null), p = K(!1);
1534
+ const s = ee(!1), l = ee(!1), c = ee(!1), m = ee(0), u = ee({}), f = ee(null), _ = ee(null), g = ee(null), S = ee(null), h = ee(!1);
1537
1535
  Se(() => {
1538
1536
  if (!(t && (t.onPlayerStart || t.onPlayerPlay || t.onPlayerPause || t.onPlayerResume || t.onPlayerEnd || t.onPlayerProgressEvery10Seconds || t.onPlayerProgressAt20Seconds || t.onPlayerQuartile25 || t.onPlayerQuartile50 || t.onPlayerQuartile75 || t.onPlayerNext || t.onPlayerPrevious || t.onPlayerEvent)))
1539
1537
  return;
1540
1538
  (() => {
1541
1539
  s.current = !1, l.current = !1, c.current = !1, m.current = 0, u.current = {};
1542
1540
  })();
1543
- const E = () => {
1544
- var B;
1541
+ const P = () => {
1542
+ var M;
1545
1543
  const d = document.getElementById(e);
1546
1544
  if (!d)
1547
1545
  return null;
1548
1546
  if (d.querySelectorAll("video").length > 1 && r.current) {
1549
- const Y = r.current, z = Y.videoIndex ?? ((B = Y.playlist) == null ? void 0 : B.playlistVideoIndex) ?? 0, U = d.querySelector(`video[id="${z}"]`);
1550
- if (U)
1551
- return U;
1552
- const L = d.querySelector("video.active");
1553
- if (L)
1554
- return L;
1547
+ const W = r.current, Y = W.videoIndex ?? ((M = W.playlist) == null ? void 0 : M.playlistVideoIndex) ?? 0, z = d.querySelector(`video[id="${Y}"]`);
1548
+ if (z)
1549
+ return z;
1550
+ const $ = d.querySelector("video.active");
1551
+ if ($)
1552
+ return $;
1555
1553
  }
1556
1554
  return d.querySelector("video");
1557
- }, O = () => {
1558
- const d = E();
1555
+ }, L = () => {
1556
+ const d = P();
1559
1557
  if (!d)
1560
1558
  return !1;
1561
- const g = (h, o) => {
1562
- var _, j, ee, D, de, ne, F, ie, J, ve, Fe, se, we, ge;
1563
- const y = Date.now();
1564
- if (!(h === "player_start" && s.current)) {
1565
- switch (S.current = { type: h, time: y }, h) {
1559
+ const E = (p, v) => {
1560
+ var y, R, F, H, fe, V, Z, pe, te, be, Fe, le, we, ve;
1561
+ const o = Date.now();
1562
+ if (!(p === "player_start" && s.current)) {
1563
+ switch (S.current = { type: p, time: o }, p) {
1566
1564
  case "player_start":
1567
- (_ = t.onPlayerStart) == null || _.call(t, h);
1565
+ (y = t.onPlayerStart) == null || y.call(t, p);
1568
1566
  break;
1569
1567
  case "player_play":
1570
- (j = t.onPlayerPlay) == null || j.call(t, h);
1568
+ (R = t.onPlayerPlay) == null || R.call(t, p);
1571
1569
  break;
1572
1570
  case "player_pause":
1573
- (ee = t.onPlayerPause) == null || ee.call(t, h);
1571
+ (F = t.onPlayerPause) == null || F.call(t, p);
1574
1572
  break;
1575
1573
  case "player_resume":
1576
- (D = t.onPlayerResume) == null || D.call(t, h);
1574
+ (H = t.onPlayerResume) == null || H.call(t, p);
1577
1575
  break;
1578
1576
  case "player_end":
1579
- (de = t.onPlayerEnd) == null || de.call(t, h);
1577
+ (fe = t.onPlayerEnd) == null || fe.call(t, p);
1580
1578
  break;
1581
1579
  case "player_progress_every_10_seconds":
1582
- o !== void 0 && ((ne = t.onPlayerProgressEvery10Seconds) == null || ne.call(t, h, o));
1580
+ v !== void 0 && ((V = t.onPlayerProgressEvery10Seconds) == null || V.call(t, p, v));
1583
1581
  break;
1584
1582
  case "player_progress_at_20_seconds":
1585
- o !== void 0 && ((F = t.onPlayerProgressAt20Seconds) == null || F.call(t, h, o));
1583
+ v !== void 0 && ((Z = t.onPlayerProgressAt20Seconds) == null || Z.call(t, p, v));
1586
1584
  break;
1587
1585
  case "player_quartile_25":
1588
- o !== void 0 && ((ie = t.onPlayerQuartile25) == null || ie.call(t, h, o));
1586
+ v !== void 0 && ((pe = t.onPlayerQuartile25) == null || pe.call(t, p, v));
1589
1587
  break;
1590
1588
  case "player_quartile_50":
1591
- o !== void 0 && ((J = t.onPlayerQuartile50) == null || J.call(t, h, o));
1589
+ v !== void 0 && ((te = t.onPlayerQuartile50) == null || te.call(t, p, v));
1592
1590
  break;
1593
1591
  case "player_quartile_75":
1594
- o !== void 0 && ((ve = t.onPlayerQuartile75) == null || ve.call(t, h, o));
1592
+ v !== void 0 && ((be = t.onPlayerQuartile75) == null || be.call(t, p, v));
1595
1593
  break;
1596
1594
  case "player_next":
1597
- (Fe = t.onPlayerNext) == null || Fe.call(t, h);
1595
+ (Fe = t.onPlayerNext) == null || Fe.call(t, p);
1598
1596
  break;
1599
1597
  case "player_previous":
1600
- (se = t.onPlayerPrevious) == null || se.call(t, h);
1598
+ (le = t.onPlayerPrevious) == null || le.call(t, p);
1601
1599
  break;
1602
1600
  }
1603
- o !== void 0 && (h === "player_progress_every_10_seconds" || h === "player_progress_at_20_seconds" || h === "player_quartile_25" || h === "player_quartile_50" || h === "player_quartile_75") ? (we = t.onPlayerEvent) == null || we.call(t, h, o) : (ge = t.onPlayerEvent) == null || ge.call(t, h);
1601
+ v !== void 0 && (p === "player_progress_every_10_seconds" || p === "player_progress_at_20_seconds" || p === "player_quartile_25" || p === "player_quartile_50" || p === "player_quartile_75") ? (we = t.onPlayerEvent) == null || we.call(t, p, v) : (ve = t.onPlayerEvent) == null || ve.call(t, p);
1604
1602
  }
1605
- }, B = () => {
1606
- s.current || (g("player_start"), s.current = !0, d.readyState >= 2 && !d.paused && setTimeout(() => {
1607
- !l.current && !d.paused && (g("player_play"), l.current = !0, c.current = !1);
1603
+ }, M = () => {
1604
+ s.current || (E("player_start"), s.current = !0, d.readyState >= 2 && !d.paused && setTimeout(() => {
1605
+ !l.current && !d.paused && (E("player_play"), l.current = !0, c.current = !1);
1608
1606
  }, 100));
1607
+ }, W = () => {
1608
+ c.current ? E("player_resume") : l.current ? E("player_play") : (E("player_play"), l.current = !0), c.current = !1;
1609
1609
  }, Y = () => {
1610
- c.current ? g("player_resume") : l.current ? g("player_play") : (g("player_play"), l.current = !0), c.current = !1;
1611
- }, z = () => {
1612
- d.ended || p.current || setTimeout(() => {
1613
- var h;
1614
- if (!p.current) {
1615
- if (r.current && v.current !== null) {
1616
- const o = r.current;
1617
- if ((o.videoIndex ?? ((h = o.playlist) == null ? void 0 : h.playlistVideoIndex) ?? 0) !== v.current)
1610
+ d.ended || h.current || setTimeout(() => {
1611
+ var p;
1612
+ if (!h.current) {
1613
+ if (r.current && _.current !== null) {
1614
+ const v = r.current;
1615
+ if ((v.videoIndex ?? ((p = v.playlist) == null ? void 0 : p.playlistVideoIndex) ?? 0) !== _.current)
1618
1616
  return;
1619
1617
  }
1620
- g("player_pause"), c.current = !0;
1618
+ E("player_pause"), c.current = !0;
1621
1619
  }
1622
1620
  }, 200);
1623
- }, U = () => {
1624
- g("player_end");
1625
- }, L = () => {
1626
- s.current && !l.current && d.currentTime >= 1 && d.currentTime < 1.5 && !d.paused && (g("player_play"), l.current = !0, c.current = !1);
1627
- const h = d.duration > 0 ? d.currentTime / d.duration * 100 : 0, o = Math.floor(d.currentTime);
1628
- o - m.current >= 10 && (m.current = o, g("player_progress_every_10_seconds", o)), o >= 20 && !u.current[20] && (u.current[20] = !0, g("player_progress_at_20_seconds", o)), h >= 25 && !u.current[25] && (u.current[25] = !0, g("player_quartile_25", o)), h >= 50 && !u.current[50] && (u.current[50] = !0, g("player_quartile_50", o)), h >= 75 && !u.current[75] && (u.current[75] = !0, g("player_quartile_75", o));
1621
+ }, z = () => {
1622
+ E("player_end");
1623
+ }, $ = () => {
1624
+ s.current && !l.current && d.currentTime >= 1 && d.currentTime < 1.5 && !d.paused && (E("player_play"), l.current = !0, c.current = !1);
1625
+ const p = d.duration > 0 ? d.currentTime / d.duration * 100 : 0, v = Math.floor(d.currentTime);
1626
+ v - m.current >= 10 && (m.current = v, E("player_progress_every_10_seconds", v)), v >= 20 && !u.current[20] && (u.current[20] = !0, E("player_progress_at_20_seconds", v)), p >= 25 && !u.current[25] && (u.current[25] = !0, E("player_quartile_25", v)), p >= 50 && !u.current[50] && (u.current[50] = !0, E("player_quartile_50", v)), p >= 75 && !u.current[75] && (u.current[75] = !0, E("player_quartile_75", v));
1629
1627
  };
1630
- if (w.current && w.current !== d) {
1631
- const h = w.current;
1632
- h.removeEventListener("loadedmetadata", B), h.removeEventListener("play", Y), h.removeEventListener("pause", z), h.removeEventListener("ended", U), h.removeEventListener("timeupdate", L);
1628
+ if (g.current && g.current !== d) {
1629
+ const p = g.current;
1630
+ p.removeEventListener("loadedmetadata", M), p.removeEventListener("play", W), p.removeEventListener("pause", Y), p.removeEventListener("ended", z), p.removeEventListener("timeupdate", $);
1633
1631
  }
1634
- w.current = d, d.addEventListener("loadedmetadata", B), d.addEventListener("play", Y), d.addEventListener("pause", z), d.addEventListener("ended", U), d.addEventListener("timeupdate", L), d.readyState >= 1 && B();
1635
- const q = document.getElementById(e), C = (h) => {
1636
- const o = h.target;
1637
- (o.closest(".vp-next") || o.closest(".vrt-icon-down") || o.closest(".vrt-arrow.vrt-icon-down")) && (p.current = !0, g("player_next"), setTimeout(() => {
1638
- p.current = !1;
1639
- }, 500)), (o.closest(".vp-prev") || o.closest(".vp-previous") || o.closest(".vrt-icon-up") || o.closest(".vrt-arrow.vrt-icon-up")) && (p.current = !0, g("player_previous"), setTimeout(() => {
1640
- p.current = !1;
1632
+ g.current = d, d.addEventListener("loadedmetadata", M), d.addEventListener("play", W), d.addEventListener("pause", Y), d.addEventListener("ended", z), d.addEventListener("timeupdate", $), d.readyState >= 1 && M();
1633
+ const q = document.getElementById(e), C = (p) => {
1634
+ const v = p.target;
1635
+ (v.closest(".vp-next") || v.closest(".vrt-icon-down") || v.closest(".vrt-arrow.vrt-icon-down")) && (h.current = !0, E("player_next"), setTimeout(() => {
1636
+ h.current = !1;
1637
+ }, 500)), (v.closest(".vp-prev") || v.closest(".vp-previous") || v.closest(".vrt-icon-up") || v.closest(".vrt-arrow.vrt-icon-up")) && (h.current = !0, E("player_previous"), setTimeout(() => {
1638
+ h.current = !1;
1641
1639
  }, 500));
1642
1640
  };
1643
1641
  return q && q.addEventListener("click", C, !0), f.current = () => {
1644
- const h = w.current || d;
1645
- h.removeEventListener("loadedmetadata", B), h.removeEventListener("play", Y), h.removeEventListener("pause", z), h.removeEventListener("ended", U), h.removeEventListener("timeupdate", L), q == null || q.removeEventListener("click", C, !0), w.current = null;
1642
+ const p = g.current || d;
1643
+ p.removeEventListener("loadedmetadata", M), p.removeEventListener("play", W), p.removeEventListener("pause", Y), p.removeEventListener("ended", z), p.removeEventListener("timeupdate", $), q == null || q.removeEventListener("click", C, !0), g.current = null;
1646
1644
  }, !0;
1647
1645
  };
1648
- let N = null, V = !1;
1649
- const R = () => {
1646
+ let N = null, j = !1;
1647
+ const T = () => {
1650
1648
  if (!r.current)
1651
1649
  return;
1652
- const d = r.current, g = document.getElementById(e), B = g == null ? void 0 : g.querySelectorAll("video");
1653
- B && B.length > 1 && d.videoIndex !== void 0 && (N = window.setInterval(() => {
1654
- var z, U, L, q;
1650
+ const d = r.current, E = document.getElementById(e), M = E == null ? void 0 : E.querySelectorAll("video");
1651
+ M && M.length > 1 && d.videoIndex !== void 0 && (N = window.setInterval(() => {
1652
+ var Y, z, $, q;
1655
1653
  try {
1656
- const C = d.videoIndex ?? ((z = d.playlist) == null ? void 0 : z.playlistVideoIndex) ?? 0;
1657
- if (v.current !== null && C !== v.current) {
1658
- const h = C > v.current, o = h ? "player_next" : "player_previous";
1659
- t && !p.current && (h ? (U = t.onPlayerNext) == null || U.call(t, o) : (L = t.onPlayerPrevious) == null || L.call(t, o), (q = t.onPlayerEvent) == null || q.call(t, o)), p.current = !0, f.current && (f.current(), f.current = null), s.current = !1, l.current = !1, c.current = !1, m.current = 0, u.current = {}, w.current = null, setTimeout(() => {
1660
- O(), setTimeout(() => {
1661
- p.current = !1;
1654
+ const C = d.videoIndex ?? ((Y = d.playlist) == null ? void 0 : Y.playlistVideoIndex) ?? 0;
1655
+ if (_.current !== null && C !== _.current) {
1656
+ const p = C > _.current, v = p ? "player_next" : "player_previous";
1657
+ t && !h.current && (p ? (z = t.onPlayerNext) == null || z.call(t, v) : ($ = t.onPlayerPrevious) == null || $.call(t, v), (q = t.onPlayerEvent) == null || q.call(t, v)), h.current = !0, f.current && (f.current(), f.current = null), s.current = !1, l.current = !1, c.current = !1, m.current = 0, u.current = {}, g.current = null, setTimeout(() => {
1658
+ L(), setTimeout(() => {
1659
+ h.current = !1;
1662
1660
  }, 200);
1663
1661
  }, 100);
1664
1662
  }
1665
- v.current = C;
1663
+ _.current = C;
1666
1664
  } catch {
1667
1665
  }
1668
1666
  }, 500));
1669
1667
  };
1670
- let x = 0;
1671
- const X = 20, W = setInterval(() => {
1672
- x++, O() && !V ? (V = !0, clearInterval(W), setTimeout(() => {
1673
- R();
1674
- }, 1e3)) : x >= X && clearInterval(W);
1668
+ let w = 0;
1669
+ const K = 20, U = setInterval(() => {
1670
+ w++, L() && !j ? (j = !0, clearInterval(U), setTimeout(() => {
1671
+ T();
1672
+ }, 1e3)) : w >= K && clearInterval(U);
1675
1673
  }, 500);
1676
1674
  return () => {
1677
- clearInterval(W), N !== null && (clearInterval(N), N = null), f.current && (f.current(), f.current = null);
1675
+ clearInterval(U), N !== null && (clearInterval(N), N = null), f.current && (f.current(), f.current = null);
1678
1676
  };
1679
1677
  }, [
1680
1678
  e,
@@ -1747,7 +1745,7 @@ const Nt = Ce.div`
1747
1745
  isVerticalPlayer: t
1748
1746
  // Distinguish between VP Player types
1749
1747
  }) => {
1750
- var u, f, v, w, S, p, b, P, E, O, N, V, R, x, X, W, d, g, B, Y, z, U;
1748
+ var u, f, _, g, S, h, x, b, P, L, N, j, T, w, K, U, d, E, M, W, Y, z;
1751
1749
  const s = { ...Ht, ...a }, l = { ...s.config, ...a.config };
1752
1750
  if (e)
1753
1751
  return {
@@ -1772,27 +1770,27 @@ const Nt = Ce.div`
1772
1770
  config: l
1773
1771
  };
1774
1772
  if (n && n.length > 0) {
1775
- const L = ((f = (u = a == null ? void 0 : a.video) == null ? void 0 : u.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((v = a == null ? void 0 : a.config) == null ? void 0 : v.playlistVideoIndex) ?? 0;
1773
+ const $ = ((f = (u = a == null ? void 0 : a.video) == null ? void 0 : u.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((_ = a == null ? void 0 : a.config) == null ? void 0 : _.playlistVideoIndex) ?? 0;
1776
1774
  return t ? {
1777
1775
  ...s,
1778
1776
  projectId: i || Ie,
1779
1777
  video: {
1780
1778
  ...s.video,
1781
1779
  // Set first video file (index 0) to avoid VP Player duplication
1782
- videoId: (w = n[0]) == null ? void 0 : w.mediaId,
1780
+ videoId: (g = n[0]) == null ? void 0 : g.mediaId,
1783
1781
  // Add videoId for tracking
1784
1782
  file: (S = n[0]) == null ? void 0 : S.hlsUrl,
1785
- title: (p = n[0]) == null ? void 0 : p.title,
1783
+ title: (h = n[0]) == null ? void 0 : h.title,
1786
1784
  // thumbnail: fetchedPlaylist[0]?.thumbnailUrl,
1787
1785
  playlist: {
1788
1786
  state: !0,
1789
1787
  playlistId: "",
1790
1788
  // Will be set by API
1791
1789
  // Use original playlistVideoIndex - VP Player will navigate to it
1792
- playlistVideoIndex: Number(L),
1790
+ playlistVideoIndex: Number($),
1793
1791
  // Remove first video from playlist to avoid duplication (already in file)
1794
- videos: n.slice(1).map((C, h) => ({
1795
- videoId: C.mediaId || String(h + 1),
1792
+ videos: n.slice(1).map((C, p) => ({
1793
+ videoId: C.mediaId || String(p + 1),
1796
1794
  // Use mediaId if available
1797
1795
  title: C.title,
1798
1796
  file: C.hlsUrl,
@@ -1807,17 +1805,17 @@ const Nt = Ce.div`
1807
1805
  projectId: i || Ie,
1808
1806
  video: {
1809
1807
  ...s.video,
1810
- videoId: ((b = n[Number(L)]) == null ? void 0 : b.mediaId) || ((P = n[0]) == null ? void 0 : P.mediaId),
1808
+ videoId: ((x = n[Number($)]) == null ? void 0 : x.mediaId) || ((b = n[0]) == null ? void 0 : b.mediaId),
1811
1809
  // Add videoId for tracking
1812
- file: ((E = n[Number(L)]) == null ? void 0 : E.hlsUrl) || ((O = n[0]) == null ? void 0 : O.hlsUrl) || "",
1813
- title: ((N = n[Number(L)]) == null ? void 0 : N.title) || ((V = n[0]) == null ? void 0 : V.title),
1814
- thumbnail: ((R = n[Number(L)]) == null ? void 0 : R.thumbnailUrl) || ((x = n[0]) == null ? void 0 : x.thumbnailUrl),
1810
+ file: ((P = n[Number($)]) == null ? void 0 : P.hlsUrl) || ((L = n[0]) == null ? void 0 : L.hlsUrl) || "",
1811
+ title: ((N = n[Number($)]) == null ? void 0 : N.title) || ((j = n[0]) == null ? void 0 : j.title),
1812
+ thumbnail: ((T = n[Number($)]) == null ? void 0 : T.thumbnailUrl) || ((w = n[0]) == null ? void 0 : w.thumbnailUrl),
1815
1813
  playlist: {
1816
1814
  state: !0,
1817
1815
  // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1818
- playlistVideoIndex: Number(L),
1819
- videos: n.map((C, h) => ({
1820
- videoId: C.mediaId || String(h),
1816
+ playlistVideoIndex: Number($),
1817
+ videos: n.map((C, p) => ({
1818
+ videoId: C.mediaId || String(p),
1821
1819
  // Use mediaId if available
1822
1820
  title: C.title,
1823
1821
  file: C.hlsUrl,
@@ -1829,7 +1827,7 @@ const Nt = Ce.div`
1829
1827
  config: l
1830
1828
  };
1831
1829
  }
1832
- const c = ((X = a == null ? void 0 : a.video) == null ? void 0 : X.playlist) || s.video.playlist, m = (W = a == null ? void 0 : a.video) == null ? void 0 : W.file;
1830
+ const c = ((K = a == null ? void 0 : a.video) == null ? void 0 : K.playlist) || s.video.playlist, m = (U = a == null ? void 0 : a.video) == null ? void 0 : U.file;
1833
1831
  if (m)
1834
1832
  return {
1835
1833
  ...s,
@@ -1843,19 +1841,19 @@ const Nt = Ce.div`
1843
1841
  config: l
1844
1842
  };
1845
1843
  if (c != null && c.videos && c.videos.length > 0) {
1846
- const L = ((g = (d = a == null ? void 0 : a.video) == null ? void 0 : d.playlist) == null ? void 0 : g.playlistVideoIndex) ?? ((B = a == null ? void 0 : a.config) == null ? void 0 : B.playlistVideoIndex) ?? 0;
1844
+ const $ = ((E = (d = a == null ? void 0 : a.video) == null ? void 0 : d.playlist) == null ? void 0 : E.playlistVideoIndex) ?? ((M = a == null ? void 0 : a.config) == null ? void 0 : M.playlistVideoIndex) ?? 0;
1847
1845
  return {
1848
1846
  ...s,
1849
1847
  projectId: i || Ie,
1850
1848
  video: {
1851
1849
  ...s.video,
1852
- videoId: (Y = c.videos[0]) == null ? void 0 : Y.videoId,
1853
- file: ((z = c.videos[0]) == null ? void 0 : z.file) || "",
1854
- title: (U = c.videos[0]) == null ? void 0 : U.title,
1850
+ videoId: (W = c.videos[0]) == null ? void 0 : W.videoId,
1851
+ file: ((Y = c.videos[0]) == null ? void 0 : Y.file) || "",
1852
+ title: (z = c.videos[0]) == null ? void 0 : z.title,
1855
1853
  playlist: {
1856
1854
  state: !0,
1857
1855
  playlistId: "",
1858
- playlistVideoIndex: Number(L),
1856
+ playlistVideoIndex: Number($),
1859
1857
  videos: c.videos
1860
1858
  }
1861
1859
  },
@@ -1868,282 +1866,282 @@ const Nt = Ce.div`
1868
1866
  return;
1869
1867
  const r = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, n = e.match(r);
1870
1868
  return n ? n[2] : void 0;
1871
- }, Jt = ({ playerId: e, videoId: r, version: n, videoUrl: i, projectId: a, playlistId: t, scriptUrl: s, config: l = {}, isReels: c = !1, onPlaylistData: m, onVideoStarted: u, trackingMetadata: f, onPlayerStart: v, onPlayerPlay: w, onPlayerPause: S, onPlayerResume: p, onPlayerEnd: b, onPlayerProgressEvery10Seconds: P, onPlayerProgressAt20Seconds: E, onPlayerQuartile25: O, onPlayerQuartile50: N, onPlayerQuartile75: V, onPlayerNext: R, onPlayerPrevious: x, onPlayerEvent: X }) => {
1872
- const W = K(null), d = K(null), g = K(!1), B = K(""), Y = K([]), z = K([]), U = K(null), { isLoaded: L, error: q } = Ut(n, s), C = r || Xt(s), [h, o] = ce(null), { fetchedPlaybackUrl: y, fetchedPlaylist: _, isLoading: j, error: ee } = Wt({
1869
+ }, Jt = ({ playerId: e, videoId: r, version: n, videoUrl: i, projectId: a, playlistId: t, scriptUrl: s, config: l = {}, isReels: c = !1, onPlaylistData: m, onVideoStarted: u, trackingMetadata: f, onPlayerStart: _, onPlayerPlay: g, onPlayerPause: S, onPlayerResume: h, onPlayerEnd: x, onPlayerProgressEvery10Seconds: b, onPlayerProgressAt20Seconds: P, onPlayerQuartile25: L, onPlayerQuartile50: N, onPlayerQuartile75: j, onPlayerNext: T, onPlayerPrevious: w, onPlayerEvent: K }) => {
1870
+ const U = ee(null), d = ee(null), E = ee(!1), M = ee(""), W = ee([]), Y = ee([]), z = ee(null), { isLoaded: $, error: q } = Ut(n, s), C = r || Xt(s), [p, v] = de(null), { fetchedPlaybackUrl: o, fetchedPlaylist: y, isLoading: R, error: F } = Wt({
1873
1871
  projectId: a,
1874
1872
  videoId: C,
1875
1873
  playlistId: t,
1876
1874
  videoUrl: i
1877
- }), D = or(e, C), [de, ne] = ce(void 0);
1875
+ }), H = or(e, C), [fe, V] = de(void 0);
1878
1876
  Se(() => {
1879
- _ && m && m(_);
1880
- }, [_, m]), Yt({
1881
- playerId: D,
1877
+ y && m && m(y);
1878
+ }, [y, m]), Yt({
1879
+ playerId: H,
1882
1880
  playerInstanceRef: d,
1883
- playerRef: W,
1884
- videoData: de,
1881
+ playerRef: U,
1882
+ videoData: fe,
1885
1883
  trackingMetadata: f,
1886
1884
  callbacks: {
1887
- onPlayerStart: v,
1888
- onPlayerPlay: w,
1885
+ onPlayerStart: _,
1886
+ onPlayerPlay: g,
1889
1887
  onPlayerPause: S,
1890
- onPlayerResume: p,
1891
- onPlayerEnd: b,
1892
- onPlayerProgressEvery10Seconds: P,
1893
- onPlayerProgressAt20Seconds: E,
1894
- onPlayerQuartile25: O,
1888
+ onPlayerResume: h,
1889
+ onPlayerEnd: x,
1890
+ onPlayerProgressEvery10Seconds: b,
1891
+ onPlayerProgressAt20Seconds: P,
1892
+ onPlayerQuartile25: L,
1895
1893
  onPlayerQuartile50: N,
1896
- onPlayerQuartile75: V,
1897
- onPlayerNext: R,
1898
- onPlayerPrevious: x,
1899
- onPlayerEvent: X
1894
+ onPlayerQuartile75: j,
1895
+ onPlayerNext: T,
1896
+ onPlayerPrevious: w,
1897
+ onPlayerEvent: K
1900
1898
  }
1901
1899
  });
1902
- const ie = Pr(() => {
1903
- const J = l.config || {}, ve = c && !J.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : J.size || { sizeType: "FIXED", width: "100%" };
1900
+ const pe = br(() => {
1901
+ const te = l.config || {}, be = c && !te.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : te.size || { sizeType: "FIXED", width: "100%" };
1904
1902
  return {
1905
1903
  ...l,
1906
1904
  config: {
1907
- ...J,
1908
- size: ve
1905
+ ...te,
1906
+ size: be
1909
1907
  }
1910
1908
  };
1911
1909
  }, [l, c]);
1912
1910
  return Se(() => {
1913
1911
  if (q) {
1914
- o(q);
1912
+ v(q);
1915
1913
  return;
1916
1914
  }
1917
- if (!L || j && !i)
1915
+ if (!$ || R && !i)
1918
1916
  return;
1919
- let J = !0;
1917
+ let te = !0;
1920
1918
  const Fe = setTimeout(async () => {
1921
1919
  try {
1922
- Y.current.forEach((ae) => clearInterval(ae)), Y.current = [], z.current.forEach((ae) => clearTimeout(ae)), z.current = [], U.current = null;
1923
- const se = (_ == null ? void 0 : _.length) ?? 0, we = JSON.stringify({
1924
- playerId: D,
1920
+ W.current.forEach((oe) => clearInterval(oe)), W.current = [], Y.current.forEach((oe) => clearTimeout(oe)), Y.current = [], z.current = null;
1921
+ const le = (y == null ? void 0 : y.length) ?? 0, we = JSON.stringify({
1922
+ playerId: H,
1925
1923
  videoId: r || C,
1926
1924
  playlistId: t,
1927
1925
  videoUrl: i,
1928
- fetchedPlaybackUrl: y,
1926
+ fetchedPlaybackUrl: o,
1929
1927
  scriptUrl: s,
1930
1928
  isReels: c,
1931
1929
  projectId: a,
1932
- playlistLength: se
1930
+ playlistLength: le
1933
1931
  });
1934
- if (g.current && d.current && B.current === we)
1932
+ if (E.current && d.current && M.current === we)
1935
1933
  return;
1936
- B.current !== we && (g.current = !1, B.current = we);
1937
- const ge = s == null ? void 0 : s.includes("vertical-player");
1938
- if (document.querySelectorAll('[id*="player"]').forEach((ae) => {
1939
- var Ee, T;
1940
- const be = ae.id;
1941
- if (be !== D)
1934
+ M.current !== we && (E.current = !1, M.current = we);
1935
+ const ve = s == null ? void 0 : s.includes("vertical-player");
1936
+ if (document.querySelectorAll('[id*="player"]').forEach((oe) => {
1937
+ var Pe, A;
1938
+ const _e = oe.id;
1939
+ if (_e !== H)
1942
1940
  try {
1943
- const I = ge ? (Ee = window.vpVerticalPlayer) == null ? void 0 : Ee.call(window, be) : (T = window.vpPlayer) == null ? void 0 : T.call(window, be);
1941
+ const I = ve ? (Pe = window.vpVerticalPlayer) == null ? void 0 : Pe.call(window, _e) : (A = window.vpPlayer) == null ? void 0 : A.call(window, _e);
1944
1942
  I != null && I.destroy && I.destroy();
1945
1943
  } catch (I) {
1946
- console.warn(`Failed to destroy existing player ${be}:`, I);
1944
+ console.warn(`Failed to destroy existing player ${_e}:`, I);
1947
1945
  }
1948
- }), await new Promise((ae) => setTimeout(ae, 100)), !J || !W.current)
1946
+ }), await new Promise((oe) => setTimeout(oe, 100)), !te || !U.current)
1949
1947
  return;
1950
- if (!document.getElementById(D)) {
1951
- o("DOM element not found after cleanup.");
1948
+ if (!document.getElementById(H)) {
1949
+ v("DOM element not found after cleanup.");
1952
1950
  return;
1953
1951
  }
1954
1952
  if (!window.vpPlayer && !window.vpVerticalPlayer) {
1955
- o("VP Player script not loaded.");
1953
+ v("VP Player script not loaded.");
1956
1954
  return;
1957
1955
  }
1958
- const sr = ge ? window.vpVerticalPlayer : window.vpPlayer;
1956
+ const sr = ve ? window.vpVerticalPlayer : window.vpPlayer;
1959
1957
  if (!sr) {
1960
- o(`VP ${ge ? "Vertical " : ""}Player script not loaded.`);
1958
+ v(`VP ${ve ? "Vertical " : ""}Player script not loaded.`);
1961
1959
  return;
1962
1960
  }
1963
- const Pe = Gt({
1961
+ const ge = Gt({
1964
1962
  videoUrl: i,
1965
- fetchedPlaybackUrl: y ?? void 0,
1966
- fetchedPlaylist: _ ?? void 0,
1963
+ fetchedPlaybackUrl: o ?? void 0,
1964
+ fetchedPlaylist: y ?? void 0,
1967
1965
  projectId: a,
1968
- config: ie,
1969
- isVerticalPlayer: ge
1966
+ config: pe,
1967
+ isVerticalPlayer: ve
1970
1968
  // Pass player type to config builder
1971
- }), H = sr(D);
1972
- if (!H) {
1973
- o(`Failed to create VP ${ge ? "Vertical " : ""}Player instance.`);
1969
+ }), G = sr(H);
1970
+ if (!G) {
1971
+ v(`Failed to create VP ${ve ? "Vertical " : ""}Player instance.`);
1974
1972
  return;
1975
1973
  }
1976
- if (J && W.current && (H.setup(Pe), d.current = H, g.current = !0, o(null), u && H.on)) {
1977
- const ae = () => {
1978
- var I;
1979
- const T = {};
1980
- if (_ && _.length > 0) {
1981
- const M = H.videoIndex ?? ((I = H.playlist) == null ? void 0 : I.playlistVideoIndex) ?? 0, $ = _[M];
1982
- $ && (T.title = $.title, T.hlsUrl = $.hlsUrl, T.file = $.hlsUrl, T.thumbnailUrl = $.thumbnailUrl, T.duration = $.duration, T.videoIndex = M, T.playlistVideoIndex = M, T.isBackupPlaylist = $.isBackupPlaylist, T.mediaId = $.mediaId, T.videoId = $.mediaId || $.videoId);
1983
- } else Pe.video && (T.title = Pe.video.title, T.file = Pe.video.file, T.hlsUrl = Pe.video.file, T.thumbnailUrl = Pe.video.thumbnail, T.videoId = r || C, T.videoIndex = 0, T.playlistVideoIndex = 0, H.getDuration && (T.duration = H.getDuration()));
1984
- return T;
1974
+ if (te && U.current && (G.setup(ge), d.current = G, E.current = !0, v(null), u && G.on)) {
1975
+ const oe = () => {
1976
+ var I, D, X;
1977
+ const A = {};
1978
+ if ((D = (I = ge.video) == null ? void 0 : I.playlist) != null && D.videos && ge.video.playlist.videos.length > 0) {
1979
+ const ae = G.videoIndex ?? ((X = G.playlist) == null ? void 0 : X.playlistVideoIndex) ?? 0, B = ge.video.playlist.videos[ae];
1980
+ B && (A.title = B.title, A.file = B.file || B.hlsUrl, A.hlsUrl = B.file || B.hlsUrl, A.thumbnailUrl = B.thumbnailUrl, A.duration = B.duration, A.videoIndex = ae, A.playlistVideoIndex = ae, A.videoId = B.videoId || B.mediaId, A.mediaId = B.mediaId || B.videoId);
1981
+ } else ge.video && (A.title = ge.video.title, A.file = ge.video.file, A.hlsUrl = ge.video.file, A.thumbnailUrl = ge.video.thumbnail, A.videoId = r || C, A.videoIndex = 0, A.playlistVideoIndex = 0, G.getDuration && (A.duration = G.getDuration()));
1982
+ return A;
1985
1983
  };
1986
- let be = null;
1987
- const Ee = async () => {
1988
- var T;
1984
+ let _e = null;
1985
+ const Pe = async () => {
1986
+ var A;
1989
1987
  try {
1990
- be && clearTimeout(be), await new Promise((fe) => setTimeout(fe, 100));
1991
- let I = ae();
1992
- const M = I.videoId || I.mediaId;
1993
- if (M && M === U.current)
1988
+ _e && clearTimeout(_e), await new Promise((ae) => setTimeout(ae, 100));
1989
+ let I = oe();
1990
+ const D = I.videoId || I.mediaId;
1991
+ if (D && D === z.current)
1994
1992
  return;
1995
- if (be = window.setTimeout(() => {
1996
- U.current = null;
1997
- }, 500), (s == null ? void 0 : s.includes("vertical-player")) && M)
1993
+ if (_e = window.setTimeout(() => {
1994
+ z.current = null;
1995
+ }, 500), (s == null ? void 0 : s.includes("vertical-player")) && D)
1998
1996
  try {
1999
- const _e = `https://host.vpplayer.tech/player/ptkzurnx/${M}.json`, pe = await fetch(_e);
2000
- if (pe.ok) {
2001
- const re = await pe.json();
2002
- re && re.video && (I = {
1997
+ const Ee = `https://host.vpplayer.tech/player/ptkzurnx/${D}.json`, B = await fetch(Ee);
1998
+ if (B.ok) {
1999
+ const ne = await B.json();
2000
+ ne && ne.video && (I = {
2003
2001
  ...I,
2004
- title: re.video.title || I.title,
2005
- description: re.video.description,
2006
- publishDate: re.video.publishDate,
2007
- projectId: re.projectId || I.projectId,
2008
- premium: ((T = re.video.videoLocking) == null ? void 0 : T.isEnabled) || !1,
2009
- author: re.video.author,
2010
- tags: re.video.tags || []
2002
+ title: ne.video.title || I.title,
2003
+ description: ne.video.description,
2004
+ publishDate: ne.video.publishDate,
2005
+ projectId: ne.projectId || I.projectId,
2006
+ premium: ((A = ne.video.videoLocking) == null ? void 0 : A.isEnabled) || !1,
2007
+ author: ne.video.author,
2008
+ tags: ne.video.tags || []
2011
2009
  });
2012
2010
  }
2013
2011
  } catch {
2014
2012
  }
2015
- U.current = M || null, ne(I), u(I);
2013
+ z.current = D || null, V(I), u(I);
2016
2014
  } catch (I) {
2017
2015
  console.warn("Error in video-started handler:", I);
2018
2016
  }
2019
2017
  };
2020
- if (ge) {
2021
- let T = !1, I = -1;
2022
- const M = () => {
2023
- if (!T) {
2024
- T = !0;
2018
+ if (ve) {
2019
+ let A = !1, I = -1;
2020
+ const D = () => {
2021
+ if (!A) {
2022
+ A = !0;
2025
2023
  try {
2026
- H.on && H.on("vp-video-started", Ee), setTimeout(() => {
2027
- Ee(), I = H.videoIndex ?? 0;
2024
+ G.on && G.on("vp-video-started", Pe), setTimeout(() => {
2025
+ Pe(), I = G.videoIndex ?? 0;
2028
2026
  }, 500);
2029
- } catch (pe) {
2030
- console.error("Error setting up event listeners:", pe);
2027
+ } catch (B) {
2028
+ console.error("Error setting up event listeners:", B);
2031
2029
  }
2032
2030
  }
2033
2031
  };
2034
- let $ = 0;
2035
- const fe = 15, _e = setInterval(() => {
2032
+ let X = 0;
2033
+ const ae = 15, Ee = setInterval(() => {
2036
2034
  try {
2037
- const pe = H.videoIndex !== void 0 || H.playlist;
2038
- if (!T)
2039
- $++, (pe || $ >= fe) && M();
2035
+ const B = G.videoIndex !== void 0 || G.playlist;
2036
+ if (!A)
2037
+ X++, (B || X >= ae) && D();
2040
2038
  else {
2041
- const re = H.videoIndex ?? 0;
2042
- re !== I && I !== -1 && (I = re, Ee());
2039
+ const ne = G.videoIndex ?? 0;
2040
+ ne !== I && I !== -1 && (I = ne, Pe());
2043
2041
  }
2044
2042
  } catch {
2045
2043
  }
2046
2044
  }, 200);
2047
- Y.current.push(_e);
2045
+ W.current.push(Ee);
2048
2046
  try {
2049
- H.on && H.on("vp-listen-ready", M);
2047
+ G.on && G.on("vp-listen-ready", D);
2050
2048
  } catch {
2051
2049
  }
2052
2050
  } else {
2053
- const T = async (I) => {
2054
- var M, $;
2051
+ const A = async (I) => {
2052
+ var D, X;
2055
2053
  try {
2056
- const fe = s == null ? void 0 : s.match(/player\/([^/.]+)/), _e = fe == null ? void 0 : fe[1];
2057
- if (!_e || !I)
2058
- return ae();
2059
- const pe = `https://host.vpplayer.tech/player/${_e}/${I}.json`, re = await fetch(pe);
2060
- if (!re.ok)
2061
- return console.warn("Failed to fetch full video config:", re.status), ae();
2062
- const le = await re.json();
2063
- return !le || !le.video ? ae() : {
2054
+ const ae = s == null ? void 0 : s.match(/player\/([^/.]+)/), Ee = ae == null ? void 0 : ae[1];
2055
+ if (!Ee || !I)
2056
+ return oe();
2057
+ const B = `https://host.vpplayer.tech/player/${Ee}/${I}.json`, ne = await fetch(B);
2058
+ if (!ne.ok)
2059
+ return console.warn("Failed to fetch full video config:", ne.status), oe();
2060
+ const ue = await ne.json();
2061
+ return !ue || !ue.video ? oe() : {
2064
2062
  videoId: I,
2065
- title: le.video.title,
2066
- description: le.video.description,
2067
- file: le.video.file,
2068
- hlsUrl: le.video.file,
2069
- thumbnailUrl: le.video.thumbnail,
2070
- duration: le.video.duration,
2071
- publishDate: le.video.publishDate,
2072
- projectId: le.projectId,
2073
- premium: ((M = le.video.videoLocking) == null ? void 0 : M.isEnabled) || !1,
2074
- author: le.video.author,
2075
- tags: le.video.tags || [],
2076
- videoIndex: H.videoIndex ?? 0,
2077
- playlistVideoIndex: (($ = H.playlist) == null ? void 0 : $.playlistVideoIndex) ?? 0
2063
+ title: ue.video.title,
2064
+ description: ue.video.description,
2065
+ file: ue.video.file,
2066
+ hlsUrl: ue.video.file,
2067
+ thumbnailUrl: ue.video.thumbnail,
2068
+ duration: ue.video.duration,
2069
+ publishDate: ue.video.publishDate,
2070
+ projectId: ue.projectId,
2071
+ premium: ((D = ue.video.videoLocking) == null ? void 0 : D.isEnabled) || !1,
2072
+ author: ue.video.author,
2073
+ tags: ue.video.tags || [],
2074
+ videoIndex: G.videoIndex ?? 0,
2075
+ playlistVideoIndex: ((X = G.playlist) == null ? void 0 : X.playlistVideoIndex) ?? 0
2078
2076
  };
2079
- } catch (fe) {
2080
- return console.warn("Error fetching full video data:", fe), ae();
2077
+ } catch (ae) {
2078
+ return console.warn("Error fetching full video data:", ae), oe();
2081
2079
  }
2082
2080
  };
2083
- H.on("ready", async (I) => {
2081
+ G.on("ready", async (I) => {
2084
2082
  try {
2085
- const M = (I == null ? void 0 : I.id) || r || C;
2086
- if (M) {
2087
- const $ = await T(M);
2088
- ne($), u($);
2083
+ const D = (I == null ? void 0 : I.id) || r || C;
2084
+ if (D) {
2085
+ const X = await A(D);
2086
+ V(X), u(X);
2089
2087
  } else {
2090
- const $ = ae();
2091
- ($.title || $.file) && (ne($), u($));
2088
+ const X = oe();
2089
+ (X.title || X.file) && (V(X), u(X));
2092
2090
  }
2093
- } catch (M) {
2094
- console.warn("Error in ready handler:", M);
2091
+ } catch (D) {
2092
+ console.warn("Error in ready handler:", D);
2095
2093
  }
2096
- }), H.on("playlistItem", async (I) => {
2094
+ }), G.on("playlistItem", async (I) => {
2097
2095
  try {
2098
- const M = I == null ? void 0 : I.id;
2099
- if (M) {
2100
- const $ = await T(M);
2101
- ne($), u($);
2096
+ const D = I == null ? void 0 : I.id;
2097
+ if (D) {
2098
+ const X = await A(D);
2099
+ V(X), u(X);
2102
2100
  }
2103
- } catch (M) {
2104
- console.warn("Error in playlistItem handler:", M);
2101
+ } catch (D) {
2102
+ console.warn("Error in playlistItem handler:", D);
2105
2103
  }
2106
2104
  });
2107
2105
  }
2108
2106
  }
2109
- } catch (se) {
2110
- if (J) {
2111
- const we = se instanceof Error ? se.message : String(se);
2112
- o(we), console.error("VP Player initialization error:", se);
2107
+ } catch (le) {
2108
+ if (te) {
2109
+ const we = le instanceof Error ? le.message : String(le);
2110
+ v(we), console.error("VP Player initialization error:", le);
2113
2111
  }
2114
2112
  }
2115
2113
  }, 150);
2116
2114
  return () => {
2117
- J = !1, clearTimeout(Fe), Y.current.forEach((se) => clearInterval(se)), Y.current = [], z.current.forEach((se) => clearTimeout(se)), z.current = [], g.current = !1;
2115
+ te = !1, clearTimeout(Fe), W.current.forEach((le) => clearInterval(le)), W.current = [], Y.current.forEach((le) => clearTimeout(le)), Y.current = [], E.current = !1;
2118
2116
  };
2119
2117
  }, [
2120
- L,
2121
- j,
2122
- D,
2118
+ $,
2119
+ R,
2120
+ H,
2123
2121
  q,
2124
2122
  s
2125
2123
  ]), Se(() => () => {
2126
2124
  if (d.current) {
2127
2125
  try {
2128
2126
  d.current.destroy && d.current.destroy();
2129
- } catch (ve) {
2130
- console.warn(`Failed to destroy player ${D}:`, ve);
2127
+ } catch (be) {
2128
+ console.warn(`Failed to destroy player ${H}:`, be);
2131
2129
  }
2132
2130
  d.current = null;
2133
2131
  }
2134
- g.current = !1;
2135
- const J = document.getElementById(D);
2136
- J && (J.innerHTML = "");
2137
- }, [D]), {
2138
- playerRef: W,
2132
+ E.current = !1;
2133
+ const te = document.getElementById(H);
2134
+ te && (te.innerHTML = "");
2135
+ }, [H]), {
2136
+ playerRef: U,
2139
2137
  playerInstanceRef: d,
2140
- isScriptLoaded: L,
2141
- isLoading: j,
2142
- error: ee || h || q
2138
+ isScriptLoaded: $,
2139
+ isLoading: R,
2140
+ error: F || p || q
2143
2141
  };
2144
- }, Qt = ({ playerId: e, videoId: r, version: n, videoUrl: i, projectId: a, playlistId: t, scriptUrl: s, config: l = {}, isReels: c = !1, hiddenClasses: m = [], onClose: u, className: f, onPlaylistData: v, onVideoStarted: w, trackingMetadata: S, onPlayerStart: p, onPlayerPlay: b, onPlayerPause: P, onPlayerResume: E, onPlayerEnd: O, onPlayerProgressEvery10Seconds: N, onPlayerProgressAt20Seconds: V, onPlayerQuartile25: R, onPlayerQuartile50: x, onPlayerQuartile75: X, onPlayerNext: W, onPlayerPrevious: d, onPlayerEvent: g }) => {
2145
- var ee, D, de, ne;
2146
- const { playerRef: B, playerInstanceRef: Y, isScriptLoaded: z, isLoading: U, error: L } = Jt({
2142
+ }, Qt = ({ playerId: e, videoId: r, version: n, videoUrl: i, projectId: a, playlistId: t, scriptUrl: s, config: l = {}, isReels: c = !1, hiddenClasses: m = [], onClose: u, className: f, onPlaylistData: _, onVideoStarted: g, trackingMetadata: S, onPlayerStart: h, onPlayerPlay: x, onPlayerPause: b, onPlayerResume: P, onPlayerEnd: L, onPlayerProgressEvery10Seconds: N, onPlayerProgressAt20Seconds: j, onPlayerQuartile25: T, onPlayerQuartile50: w, onPlayerQuartile75: K, onPlayerNext: U, onPlayerPrevious: d, onPlayerEvent: E }) => {
2143
+ var F, H, fe, V;
2144
+ const { playerRef: M, playerInstanceRef: W, isScriptLoaded: Y, isLoading: z, error: $ } = Jt({
2147
2145
  playerId: e,
2148
2146
  videoId: r,
2149
2147
  version: n,
@@ -2153,29 +2151,29 @@ const Nt = Ce.div`
2153
2151
  scriptUrl: s,
2154
2152
  config: l,
2155
2153
  isReels: c,
2156
- onPlaylistData: v,
2157
- onVideoStarted: w,
2154
+ onPlaylistData: _,
2155
+ onVideoStarted: g,
2158
2156
  trackingMetadata: S,
2159
- onPlayerStart: p,
2160
- onPlayerPlay: b,
2161
- onPlayerPause: P,
2162
- onPlayerResume: E,
2163
- onPlayerEnd: O,
2157
+ onPlayerStart: h,
2158
+ onPlayerPlay: x,
2159
+ onPlayerPause: b,
2160
+ onPlayerResume: P,
2161
+ onPlayerEnd: L,
2164
2162
  onPlayerProgressEvery10Seconds: N,
2165
- onPlayerProgressAt20Seconds: V,
2166
- onPlayerQuartile25: R,
2167
- onPlayerQuartile50: x,
2168
- onPlayerQuartile75: X,
2169
- onPlayerNext: W,
2163
+ onPlayerProgressAt20Seconds: j,
2164
+ onPlayerQuartile25: T,
2165
+ onPlayerQuartile50: w,
2166
+ onPlayerQuartile75: K,
2167
+ onPlayerNext: U,
2170
2168
  onPlayerPrevious: d,
2171
- onPlayerEvent: g
2172
- }), [q, C] = ce(!0), h = () => c && C(!0), o = () => {
2173
- var F, ie;
2174
- C(!1), (ie = (F = Y.current) == null ? void 0 : F.play) == null || ie.call(F), u == null || u();
2175
- }, y = (D = (ee = l == null ? void 0 : l.config) == null ? void 0 : ee.size) != null && D.width ? typeof l.config.size.width == "number" ? `${l.config.size.width}px` : l.config.size.width : void 0, _ = (ne = (de = l == null ? void 0 : l.config) == null ? void 0 : de.size) != null && ne.height ? typeof l.config.size.height == "number" ? `${l.config.size.height}px` : l.config.size.height : void 0, j = or(e, r);
2176
- return L ? Q.jsxs(tr, { type: "error", children: ["An error occurred: ", L] }) : U || !z ? Q.jsx(tr, { type: "loading", children: "Loading..." }) : Q.jsxs(Q.Fragment, { children: [c && !q ? Q.jsx("div", { onClick: h }) : null, !c && Q.jsx("div", { children: Q.jsx(wr, { id: j, ref: B, width: y || "100%", height: _ || "auto", $hiddenClasses: m, className: f }) }, j), c && q && Q.jsx(Ft, { onClick: o, className: f, children: Q.jsx(Dt, { className: f, onClick: (F) => F.stopPropagation(), children: Q.jsx("div", { children: Q.jsx(wr, { id: j, ref: B, width: "100%", height: "auto", $hiddenClasses: m, className: f }) }, j) }) })] });
2169
+ onPlayerEvent: E
2170
+ }), [q, C] = de(!0), p = () => c && C(!0), v = () => {
2171
+ var Z, pe;
2172
+ C(!1), (pe = (Z = W.current) == null ? void 0 : Z.play) == null || pe.call(Z), u == null || u();
2173
+ }, o = (H = (F = l == null ? void 0 : l.config) == null ? void 0 : F.size) != null && H.width ? typeof l.config.size.width == "number" ? `${l.config.size.width}px` : l.config.size.width : void 0, y = (V = (fe = l == null ? void 0 : l.config) == null ? void 0 : fe.size) != null && V.height ? typeof l.config.size.height == "number" ? `${l.config.size.height}px` : l.config.size.height : void 0, R = or(e, r);
2174
+ return $ ? Q.jsxs(tr, { type: "error", children: ["An error occurred: ", $] }) : z || !Y ? Q.jsx(tr, { type: "loading", children: "Loading..." }) : Q.jsxs(Q.Fragment, { children: [c && !q ? Q.jsx("div", { onClick: p }) : null, !c && Q.jsx("div", { children: Q.jsx(wr, { id: R, ref: M, width: o || "100%", height: y || "auto", $hiddenClasses: m, className: f }) }, R), c && q && Q.jsx(Ft, { onClick: v, className: f, children: Q.jsx(Dt, { className: f, onClick: (Z) => Z.stopPropagation(), children: Q.jsx("div", { children: Q.jsx(wr, { id: R, ref: M, width: "100%", height: "auto", $hiddenClasses: m, className: f }) }, R) }) })] });
2177
2175
  }, Lr = Nr(void 0), rn = ({ children: e }) => {
2178
- const [r, n] = ce(!1), [i, a] = ce(null), [t, s] = ce(null), l = lr((u) => {
2176
+ const [r, n] = de(!1), [i, a] = de(null), [t, s] = de(null), l = lr((u) => {
2179
2177
  try {
2180
2178
  const f = or(u.playerId, u.videoId);
2181
2179
  a({ ...u, playerId: f }), n(!0), s(null);
@@ -2184,7 +2182,7 @@ const Nt = Ce.div`
2184
2182
  }
2185
2183
  }, []), c = lr(() => {
2186
2184
  n(!1), a(null), s(null);
2187
- }, []), m = Pr(() => ({
2185
+ }, []), m = br(() => ({
2188
2186
  showPlayer: l,
2189
2187
  hidePlayer: c,
2190
2188
  isPlayerVisible: r,
@@ -2192,7 +2190,7 @@ const Nt = Ce.div`
2192
2190
  }), [l, c, r, i]);
2193
2191
  return Q.jsxs(Lr.Provider, { value: m, children: [e, t && Q.jsx(tr, { type: "error", children: t }), r && (i == null ? void 0 : i.playerId) && Q.jsx(Qt, { playerId: i.playerId, videoId: i.videoId, projectId: i.projectId, videoUrl: i.videoUrl, version: i.version, playlistId: i.playlistId, scriptUrl: i.scriptUrl, config: i.config, isReels: i.isReels, thumbnailUrl: i.thumbnailUrl, onClose: c, hiddenClasses: i.hiddenClasses || [], className: i.className })] });
2194
2192
  }, tn = () => {
2195
- const e = br(Lr);
2193
+ const e = _r(Lr);
2196
2194
  if (!e)
2197
2195
  throw new Error("useVPPlayer must be used within a VPPlayerProvider");
2198
2196
  return e;