@devix-technologies/react-gjirafa-vp-player 1.0.13 → 1.0.15

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,6 +1,6 @@
1
- import * as H from "react";
2
- import mt, { forwardRef as yt, useContext as et, useState as U, useEffect as xe, useRef as Be, useMemo as tt, createContext as gt, useCallback as ze } from "react";
3
- var he = { exports: {} }, se = {};
1
+ import * as Z from "react";
2
+ import yt, { forwardRef as gt, useContext as tt, useState as Y, useEffect as xe, useRef as Me, useMemo as rt, createContext as vt, useCallback as Ue } from "react";
3
+ var me = { exports: {} }, se = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -10,10 +10,10 @@ var he = { exports: {} }, se = {};
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
- var Ue;
14
- function vt() {
15
- if (Ue) return se;
16
- Ue = 1;
13
+ var ze;
14
+ function bt() {
15
+ if (ze) return se;
16
+ ze = 1;
17
17
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
18
18
  function r(n, a, i) {
19
19
  var s = null;
@@ -43,7 +43,7 @@ var ce = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var De;
46
- function bt() {
46
+ function xt() {
47
47
  return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
48
48
  function e(o) {
49
49
  if (o == null) return null;
@@ -61,28 +61,28 @@ function bt() {
61
61
  return "Suspense";
62
62
  case R:
63
63
  return "SuspenseList";
64
- case I:
64
+ case C:
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 v:
71
+ case g:
72
72
  return "Portal";
73
73
  case _:
74
74
  return (o.displayName || "Context") + ".Provider";
75
- case x:
75
+ case w:
76
76
  return (o._context.displayName || "Context") + ".Consumer";
77
- case T:
78
- var b = o.render;
79
- return o = o.displayName, o || (o = b.displayName || b.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
- case u:
81
- return b = o.displayName || null, b !== null ? b : e(o.type) || "Memo";
82
77
  case A:
83
- b = o._payload, o = o._init;
78
+ var v = o.render;
79
+ return o = o.displayName, o || (o = v.displayName || v.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
+ case d:
81
+ return v = o.displayName || null, v !== null ? v : e(o.type) || "Memo";
82
+ case I:
83
+ v = o._payload, o = o._init;
84
84
  try {
85
- return e(o(b));
85
+ return e(o(v));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,15 +94,15 @@ function bt() {
94
94
  function r(o) {
95
95
  try {
96
96
  t(o);
97
- var b = !1;
97
+ var v = !1;
98
98
  } catch {
99
- b = !0;
99
+ v = !0;
100
100
  }
101
- if (b) {
102
- b = console;
103
- var C = b.error, L = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
- return C.call(
105
- b,
101
+ if (v) {
102
+ v = console;
103
+ var T = v.error, L = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
+ return T.call(
105
+ v,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
107
  L
108
108
  ), t(o);
@@ -110,57 +110,57 @@ function bt() {
110
110
  }
111
111
  function n(o) {
112
112
  if (o === f) return "<>";
113
- if (typeof o == "object" && o !== null && o.$$typeof === A)
113
+ if (typeof o == "object" && o !== null && o.$$typeof === I)
114
114
  return "<...>";
115
115
  try {
116
- var b = e(o);
117
- return b ? "<" + b + ">" : "<...>";
116
+ var v = e(o);
117
+ return v ? "<" + v + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
122
  function a() {
123
- var o = O.A;
123
+ var o = $.A;
124
124
  return o === null ? null : o.getOwner();
125
125
  }
126
126
  function i() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
129
  function s(o) {
130
- if (G.call(o, "key")) {
131
- var b = Object.getOwnPropertyDescriptor(o, "key").get;
132
- if (b && b.isReactWarning) return !1;
130
+ if (D.call(o, "key")) {
131
+ var v = Object.getOwnPropertyDescriptor(o, "key").get;
132
+ if (v && v.isReactWarning) return !1;
133
133
  }
134
134
  return o.key !== void 0;
135
135
  }
136
- function c(o, b) {
137
- function C() {
138
- Z || (Z = !0, console.error(
136
+ function c(o, v) {
137
+ function T() {
138
+ q || (q = !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
- b
140
+ v
141
141
  ));
142
142
  }
143
- C.isReactWarning = !0, Object.defineProperty(o, "key", {
144
- get: C,
143
+ T.isReactWarning = !0, Object.defineProperty(o, "key", {
144
+ get: T,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
- function d() {
148
+ function u() {
149
149
  var o = e(this.type);
150
- return Q[o] || (Q[o] = !0, console.error(
150
+ return W[o] || (W[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, b, C, L, K, D, _e, Se) {
155
- return C = D.ref, o = {
156
- $$typeof: w,
154
+ function m(o, v, T, L, te, G, _e, Se) {
155
+ return T = G.ref, o = {
156
+ $$typeof: x,
157
157
  type: o,
158
- key: b,
159
- props: D,
160
- _owner: K
161
- }, (C !== void 0 ? C : null) !== null ? Object.defineProperty(o, "ref", {
158
+ key: v,
159
+ props: G,
160
+ _owner: te
161
+ }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(o, "ref", {
162
162
  enumerable: !1,
163
- get: d
163
+ get: u
164
164
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
165
165
  configurable: !1,
166
166
  enumerable: !1,
@@ -183,25 +183,25 @@ function bt() {
183
183
  value: Se
184
184
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
185
185
  }
186
- function l(o, b, C, L, K, D, _e, Se) {
187
- var F = b.children;
188
- if (F !== void 0)
186
+ function l(o, v, T, L, te, G, _e, Se) {
187
+ var V = v.children;
188
+ if (V !== void 0)
189
189
  if (L)
190
- if (z(F)) {
191
- for (L = 0; L < F.length; L++)
192
- p(F[L]);
193
- Object.freeze && Object.freeze(F);
190
+ if (j(V)) {
191
+ for (L = 0; L < V.length; L++)
192
+ p(V[L]);
193
+ Object.freeze && Object.freeze(V);
194
194
  } else
195
195
  console.error(
196
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
197
  );
198
- else p(F);
199
- if (G.call(b, "key")) {
200
- F = e(o);
201
- var ee = Object.keys(b).filter(function(ht) {
202
- return ht !== "key";
198
+ else p(V);
199
+ if (D.call(v, "key")) {
200
+ V = e(o);
201
+ var re = Object.keys(v).filter(function(mt) {
202
+ return mt !== "key";
203
203
  });
204
- L = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[F + L] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ L = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", ee[V + L] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
205
205
  `A props object containing a "key" prop is being spread into JSX:
206
206
  let props = %s;
207
207
  <%s {...props} />
@@ -209,77 +209,77 @@ React keys must be passed directly to JSX without using spread:
209
209
  let props = %s;
210
210
  <%s key={someKey} {...props} />`,
211
211
  L,
212
- F,
213
- ee,
214
- F
215
- ), oe[F + L] = !0);
212
+ V,
213
+ re,
214
+ V
215
+ ), ee[V + L] = !0);
216
216
  }
217
- if (F = null, C !== void 0 && (r(C), F = "" + C), s(b) && (r(b.key), F = "" + b.key), "key" in b) {
218
- C = {};
219
- for (var Re in b)
220
- Re !== "key" && (C[Re] = b[Re]);
221
- } else C = b;
222
- return F && c(
223
- C,
217
+ if (V = null, T !== void 0 && (r(T), V = "" + T), s(v) && (r(v.key), V = "" + v.key), "key" in v) {
218
+ T = {};
219
+ for (var Re in v)
220
+ Re !== "key" && (T[Re] = v[Re]);
221
+ } else T = v;
222
+ return V && c(
223
+ T,
224
224
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
225
225
  ), m(
226
226
  o,
227
- F,
228
- D,
229
- K,
227
+ V,
228
+ G,
229
+ te,
230
230
  a(),
231
- C,
231
+ T,
232
232
  _e,
233
233
  Se
234
234
  );
235
235
  }
236
236
  function p(o) {
237
- typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
237
+ typeof o == "object" && o !== null && o.$$typeof === x && o._store && (o._store.validated = 1);
238
238
  }
239
- var g = mt, w = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), O = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
239
+ var b = yt, x = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), A = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), C = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), $ = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, j = Array.isArray, U = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
- g = {
242
+ b = {
243
243
  "react-stack-bottom-frame": function(o) {
244
244
  return o();
245
245
  }
246
246
  };
247
- var Z, Q = {}, J = g["react-stack-bottom-frame"].bind(
248
- g,
247
+ var q, W = {}, J = b["react-stack-bottom-frame"].bind(
248
+ b,
249
249
  i
250
- )(), ie = X(n(i)), oe = {};
251
- ce.Fragment = f, ce.jsx = function(o, b, C, L, K) {
252
- var D = 1e4 > O.recentlyCreatedOwnerStacks++;
250
+ )(), Q = U(n(i)), ee = {};
251
+ ce.Fragment = f, ce.jsx = function(o, v, T, L, te) {
252
+ var G = 1e4 > $.recentlyCreatedOwnerStacks++;
253
253
  return l(
254
254
  o,
255
- b,
256
- C,
255
+ v,
256
+ T,
257
257
  !1,
258
258
  L,
259
- K,
260
- D ? Error("react-stack-top-frame") : J,
261
- D ? X(n(o)) : ie
259
+ te,
260
+ G ? Error("react-stack-top-frame") : J,
261
+ G ? U(n(o)) : Q
262
262
  );
263
- }, ce.jsxs = function(o, b, C, L, K) {
264
- var D = 1e4 > O.recentlyCreatedOwnerStacks++;
263
+ }, ce.jsxs = function(o, v, T, L, te) {
264
+ var G = 1e4 > $.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
266
  o,
267
- b,
268
- C,
267
+ v,
268
+ T,
269
269
  !0,
270
270
  L,
271
- K,
272
- D ? Error("react-stack-top-frame") : J,
273
- D ? X(n(o)) : ie
271
+ te,
272
+ G ? Error("react-stack-top-frame") : J,
273
+ G ? U(n(o)) : Q
274
274
  );
275
275
  };
276
276
  }()), ce;
277
277
  }
278
278
  var We;
279
- function xt() {
280
- return We || (We = 1, process.env.NODE_ENV === "production" ? he.exports = vt() : he.exports = bt()), he.exports;
279
+ function wt() {
280
+ return We || (We = 1, process.env.NODE_ENV === "production" ? me.exports = bt() : me.exports = xt()), me.exports;
281
281
  }
282
- var $ = xt();
282
+ var N = wt();
283
283
  function Oe() {
284
284
  return Oe = Object.assign ? Object.assign.bind() : function(e) {
285
285
  for (var t = 1; t < arguments.length; t++) {
@@ -289,18 +289,18 @@ function Oe() {
289
289
  return e;
290
290
  }, Oe.apply(null, arguments);
291
291
  }
292
- function wt(e) {
292
+ function kt(e) {
293
293
  if (e.sheet)
294
294
  return e.sheet;
295
295
  for (var t = 0; t < document.styleSheets.length; t++)
296
296
  if (document.styleSheets[t].ownerNode === e)
297
297
  return document.styleSheets[t];
298
298
  }
299
- function kt(e) {
299
+ function Pt(e) {
300
300
  var t = document.createElement("style");
301
301
  return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
302
302
  }
303
- var Pt = /* @__PURE__ */ function() {
303
+ var Et = /* @__PURE__ */ function() {
304
304
  function e(r) {
305
305
  var n = this;
306
306
  this._insertTag = function(a) {
@@ -312,10 +312,10 @@ var Pt = /* @__PURE__ */ function() {
312
312
  return t.hydrate = function(n) {
313
313
  n.forEach(this._insertTag);
314
314
  }, t.insert = function(n) {
315
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(kt(this));
315
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pt(this));
316
316
  var a = this.tags[this.tags.length - 1];
317
317
  if (this.isSpeedy) {
318
- var i = wt(a);
318
+ var i = kt(a);
319
319
  try {
320
320
  i.insertRule(n, i.cssRules.length);
321
321
  } catch {
@@ -329,14 +329,14 @@ var Pt = /* @__PURE__ */ function() {
329
329
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
330
330
  }), this.tags = [], this.ctr = 0;
331
331
  }, e;
332
- }(), V = "-ms-", we = "-moz-", k = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
333
- function Tt(e, t) {
334
- return N(e, 0) ^ 45 ? (((t << 2 ^ N(e, 0)) << 2 ^ N(e, 1)) << 2 ^ N(e, 2)) << 2 ^ N(e, 3) : 0;
332
+ }(), B = "-ms-", we = "-moz-", k = "-webkit-", nt = "comm", Fe = "rule", Le = "decl", _t = "@import", at = "@keyframes", St = "@layer", Rt = Math.abs, ke = String.fromCharCode, At = Object.assign;
333
+ function Ct(e, t) {
334
+ return F(e, 0) ^ 45 ? (((t << 2 ^ F(e, 0)) << 2 ^ F(e, 1)) << 2 ^ F(e, 2)) << 2 ^ F(e, 3) : 0;
335
335
  }
336
- function at(e) {
336
+ function it(e) {
337
337
  return e.trim();
338
338
  }
339
- function At(e, t) {
339
+ function Tt(e, t) {
340
340
  return (e = t.exec(e)) ? e[0] : e;
341
341
  }
342
342
  function P(e, t, r) {
@@ -345,50 +345,50 @@ function P(e, t, r) {
345
345
  function je(e, t) {
346
346
  return e.indexOf(t);
347
347
  }
348
- function N(e, t) {
348
+ function F(e, t) {
349
349
  return e.charCodeAt(t) | 0;
350
350
  }
351
- function ue(e, t, r) {
351
+ function de(e, t, r) {
352
352
  return e.slice(t, r);
353
353
  }
354
- function W(e) {
354
+ function H(e) {
355
355
  return e.length;
356
356
  }
357
357
  function Ve(e) {
358
358
  return e.length;
359
359
  }
360
- function me(e, t) {
360
+ function ye(e, t) {
361
361
  return t.push(e), e;
362
362
  }
363
- function Ct(e, t) {
363
+ function It(e, t) {
364
364
  return e.map(t).join("");
365
365
  }
366
- var Pe = 1, re = 1, it = 0, M = 0, j = 0, ae = "";
366
+ var Pe = 1, ae = 1, ot = 0, M = 0, O = 0, oe = "";
367
367
  function Ee(e, t, r, n, a, i, s) {
368
- return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
368
+ return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: ae, length: s, return: "" };
369
369
  }
370
370
  function le(e, t) {
371
- return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
372
- }
373
- function It() {
374
- return j;
371
+ return At(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
375
372
  }
376
373
  function Ot() {
377
- return j = M > 0 ? N(ae, --M) : 0, re--, j === 10 && (re = 1, Pe--), j;
374
+ return O;
375
+ }
376
+ function jt() {
377
+ return O = M > 0 ? F(oe, --M) : 0, ae--, O === 10 && (ae = 1, Pe--), O;
378
378
  }
379
- function B() {
380
- return j = M < it ? N(ae, M++) : 0, re++, j === 10 && (re = 1, Pe++), j;
379
+ function z() {
380
+ return O = M < ot ? F(oe, M++) : 0, ae++, O === 10 && (ae = 1, Pe++), O;
381
381
  }
382
- function q() {
383
- return N(ae, M);
382
+ function K() {
383
+ return F(oe, M);
384
384
  }
385
385
  function ge() {
386
386
  return M;
387
387
  }
388
- function pe(e, t) {
389
- return ue(ae, e, t);
388
+ function he(e, t) {
389
+ return de(oe, e, t);
390
390
  }
391
- function de(e) {
391
+ function fe(e) {
392
392
  switch (e) {
393
393
  // \0 \t \n \r \s whitespace token
394
394
  case 0:
@@ -426,35 +426,35 @@ function de(e) {
426
426
  }
427
427
  return 0;
428
428
  }
429
- function ot(e) {
430
- return Pe = re = 1, it = W(ae = e), M = 0, [];
431
- }
432
429
  function st(e) {
433
- return ae = "", e;
430
+ return Pe = ae = 1, ot = H(oe = e), M = 0, [];
431
+ }
432
+ function ct(e) {
433
+ return oe = "", e;
434
434
  }
435
435
  function ve(e) {
436
- return at(pe(M - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
436
+ return it(he(M - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
437
  }
438
- function jt(e) {
439
- for (; (j = q()) && j < 33; )
440
- B();
441
- return de(e) > 2 || de(j) > 3 ? "" : " ";
438
+ function $t(e) {
439
+ for (; (O = K()) && O < 33; )
440
+ z();
441
+ return fe(e) > 2 || fe(O) > 3 ? "" : " ";
442
442
  }
443
- function $t(e, t) {
444
- for (; --t && B() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
443
+ function Nt(e, t) {
444
+ for (; --t && z() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
445
445
  ;
446
- return pe(e, ge() + (t < 6 && q() == 32 && B() == 32));
446
+ return he(e, ge() + (t < 6 && K() == 32 && z() == 32));
447
447
  }
448
448
  function $e(e) {
449
- for (; B(); )
450
- switch (j) {
449
+ for (; z(); )
450
+ switch (O) {
451
451
  // ] ) " '
452
452
  case e:
453
453
  return M;
454
454
  // " '
455
455
  case 34:
456
456
  case 39:
457
- e !== 34 && e !== 39 && $e(j);
457
+ e !== 34 && e !== 39 && $e(O);
458
458
  break;
459
459
  // (
460
460
  case 40:
@@ -462,165 +462,165 @@ function $e(e) {
462
462
  break;
463
463
  // \
464
464
  case 92:
465
- B();
465
+ z();
466
466
  break;
467
467
  }
468
468
  return M;
469
469
  }
470
- function Nt(e, t) {
471
- for (; B() && e + j !== 57; )
472
- if (e + j === 84 && q() === 47)
470
+ function Ft(e, t) {
471
+ for (; z() && e + O !== 57; )
472
+ if (e + O === 84 && K() === 47)
473
473
  break;
474
- return "/*" + pe(t, M - 1) + "*" + ke(e === 47 ? e : B());
474
+ return "/*" + he(t, M - 1) + "*" + ke(e === 47 ? e : z());
475
475
  }
476
476
  function Lt(e) {
477
- for (; !de(q()); )
478
- B();
479
- return pe(e, M);
477
+ for (; !fe(K()); )
478
+ z();
479
+ return he(e, M);
480
480
  }
481
- function Ft(e) {
482
- return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
481
+ function Vt(e) {
482
+ return ct(be("", null, null, null, [""], e = st(e), 0, [0], e));
483
483
  }
484
- function be(e, t, r, n, a, i, s, c, d) {
485
- for (var m = 0, l = 0, p = s, g = 0, w = 0, v = 0, f = 1, h = 1, y = 1, x = 0, _ = "", T = a, S = i, R = n, u = _; h; )
486
- switch (v = x, x = B()) {
484
+ function be(e, t, r, n, a, i, s, c, u) {
485
+ for (var m = 0, l = 0, p = s, b = 0, x = 0, g = 0, f = 1, h = 1, y = 1, w = 0, _ = "", A = a, S = i, R = n, d = _; h; )
486
+ switch (g = w, w = z()) {
487
487
  // (
488
488
  case 40:
489
- if (v != 108 && N(u, p - 1) == 58) {
490
- je(u += P(ve(x), "&", "&\f"), "&\f") != -1 && (y = -1);
489
+ if (g != 108 && F(d, p - 1) == 58) {
490
+ je(d += P(ve(w), "&", "&\f"), "&\f") != -1 && (y = -1);
491
491
  break;
492
492
  }
493
493
  // " ' [
494
494
  case 34:
495
495
  case 39:
496
496
  case 91:
497
- u += ve(x);
497
+ d += ve(w);
498
498
  break;
499
499
  // \t \n \r \s
500
500
  case 9:
501
501
  case 10:
502
502
  case 13:
503
503
  case 32:
504
- u += jt(v);
504
+ d += $t(g);
505
505
  break;
506
506
  // \
507
507
  case 92:
508
- u += $t(ge() - 1, 7);
508
+ d += Nt(ge() - 1, 7);
509
509
  continue;
510
510
  // /
511
511
  case 47:
512
- switch (q()) {
512
+ switch (K()) {
513
513
  case 42:
514
514
  case 47:
515
- me(Vt(Nt(B(), ge()), t, r), d);
515
+ ye(Bt(Ft(z(), ge()), t, r), u);
516
516
  break;
517
517
  default:
518
- u += "/";
518
+ d += "/";
519
519
  }
520
520
  break;
521
521
  // {
522
522
  case 123 * f:
523
- c[m++] = W(u) * y;
523
+ c[m++] = H(d) * y;
524
524
  // } ; \0
525
525
  case 125 * f:
526
526
  case 59:
527
527
  case 0:
528
- switch (x) {
528
+ switch (w) {
529
529
  // \0 }
530
530
  case 0:
531
531
  case 125:
532
532
  h = 0;
533
533
  // ;
534
534
  case 59 + l:
535
- y == -1 && (u = P(u, /\f/g, "")), w > 0 && W(u) - p && me(w > 32 ? qe(u + ";", n, r, p - 1) : qe(P(u, " ", "") + ";", n, r, p - 2), d);
535
+ y == -1 && (d = P(d, /\f/g, "")), x > 0 && H(d) - p && ye(x > 32 ? qe(d + ";", n, r, p - 1) : qe(P(d, " ", "") + ";", n, r, p - 2), u);
536
536
  break;
537
537
  // @ ;
538
538
  case 59:
539
- u += ";";
539
+ d += ";";
540
540
  // { rule/at-rule
541
541
  default:
542
- if (me(R = Ye(u, t, r, m, l, a, c, _, T = [], S = [], p), i), x === 123)
542
+ if (ye(R = Ye(d, t, r, m, l, a, c, _, A = [], S = [], p), i), w === 123)
543
543
  if (l === 0)
544
- be(u, t, R, R, T, i, p, c, S);
544
+ be(d, t, R, R, A, i, p, c, S);
545
545
  else
546
- switch (g === 99 && N(u, 3) === 110 ? 100 : g) {
546
+ switch (b === 99 && F(d, 3) === 110 ? 100 : b) {
547
547
  // d l m s
548
548
  case 100:
549
549
  case 108:
550
550
  case 109:
551
551
  case 115:
552
- be(e, R, R, n && me(Ye(e, R, R, 0, 0, a, c, _, a, T = [], p), S), a, S, p, c, n ? T : S);
552
+ be(e, R, R, n && ye(Ye(e, R, R, 0, 0, a, c, _, a, A = [], p), S), a, S, p, c, n ? A : S);
553
553
  break;
554
554
  default:
555
- be(u, R, R, R, [""], S, 0, c, S);
555
+ be(d, R, R, R, [""], S, 0, c, S);
556
556
  }
557
557
  }
558
- m = l = w = 0, f = y = 1, _ = u = "", p = s;
558
+ m = l = x = 0, f = y = 1, _ = d = "", p = s;
559
559
  break;
560
560
  // :
561
561
  case 58:
562
- p = 1 + W(u), w = v;
562
+ p = 1 + H(d), x = g;
563
563
  default:
564
564
  if (f < 1) {
565
- if (x == 123)
565
+ if (w == 123)
566
566
  --f;
567
- else if (x == 125 && f++ == 0 && Ot() == 125)
567
+ else if (w == 125 && f++ == 0 && jt() == 125)
568
568
  continue;
569
569
  }
570
- switch (u += ke(x), x * f) {
570
+ switch (d += ke(w), w * f) {
571
571
  // &
572
572
  case 38:
573
- y = l > 0 ? 1 : (u += "\f", -1);
573
+ y = l > 0 ? 1 : (d += "\f", -1);
574
574
  break;
575
575
  // ,
576
576
  case 44:
577
- c[m++] = (W(u) - 1) * y, y = 1;
577
+ c[m++] = (H(d) - 1) * y, y = 1;
578
578
  break;
579
579
  // @
580
580
  case 64:
581
- q() === 45 && (u += ve(B())), g = q(), l = p = W(_ = u += Lt(ge())), x++;
581
+ K() === 45 && (d += ve(z())), b = K(), l = p = H(_ = d += Lt(ge())), w++;
582
582
  break;
583
583
  // -
584
584
  case 45:
585
- v === 45 && W(u) == 2 && (f = 0);
585
+ g === 45 && H(d) == 2 && (f = 0);
586
586
  }
587
587
  }
588
588
  return i;
589
589
  }
590
- function Ye(e, t, r, n, a, i, s, c, d, m, l) {
591
- for (var p = a - 1, g = a === 0 ? i : [""], w = Ve(g), v = 0, f = 0, h = 0; v < n; ++v)
592
- for (var y = 0, x = ue(e, p + 1, p = St(f = s[v])), _ = e; y < w; ++y)
593
- (_ = at(f > 0 ? g[y] + " " + x : P(x, /&\f/g, g[y]))) && (d[h++] = _);
594
- return Ee(e, t, r, a === 0 ? Le : c, d, m, l);
590
+ function Ye(e, t, r, n, a, i, s, c, u, m, l) {
591
+ for (var p = a - 1, b = a === 0 ? i : [""], x = Ve(b), g = 0, f = 0, h = 0; g < n; ++g)
592
+ for (var y = 0, w = de(e, p + 1, p = Rt(f = s[g])), _ = e; y < x; ++y)
593
+ (_ = it(f > 0 ? b[y] + " " + w : P(w, /&\f/g, b[y]))) && (u[h++] = _);
594
+ return Ee(e, t, r, a === 0 ? Fe : c, u, m, l);
595
595
  }
596
- function Vt(e, t, r) {
597
- return Ee(e, t, r, rt, ke(It()), ue(e, 2, -2), 0);
596
+ function Bt(e, t, r) {
597
+ return Ee(e, t, r, nt, ke(Ot()), de(e, 2, -2), 0);
598
598
  }
599
599
  function qe(e, t, r, n) {
600
- return Ee(e, t, r, Fe, ue(e, 0, n), ue(e, n + 1, -1), n);
600
+ return Ee(e, t, r, Le, de(e, 0, n), de(e, n + 1, -1), n);
601
601
  }
602
- function te(e, t) {
602
+ function ne(e, t) {
603
603
  for (var r = "", n = Ve(e), a = 0; a < n; a++)
604
604
  r += t(e[a], a, e, t) || "";
605
605
  return r;
606
606
  }
607
607
  function Mt(e, t, r, n) {
608
608
  switch (e.type) {
609
- case _t:
609
+ case St:
610
610
  if (e.children.length) break;
611
- case Et:
612
- case Fe:
611
+ case _t:
612
+ case Le:
613
613
  return e.return = e.return || e.value;
614
- case rt:
615
- return "";
616
614
  case nt:
617
- return e.return = e.value + "{" + te(e.children, n) + "}";
618
- case Le:
615
+ return "";
616
+ case at:
617
+ return e.return = e.value + "{" + ne(e.children, n) + "}";
618
+ case Fe:
619
619
  e.value = e.props.join(",");
620
620
  }
621
- return W(r = te(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
621
+ return H(r = ne(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
622
622
  }
623
- function Bt(e) {
623
+ function Ut(e) {
624
624
  var t = Ve(e);
625
625
  return function(r, n, a, i) {
626
626
  for (var s = "", c = 0; c < t; c++)
@@ -633,53 +633,53 @@ function zt(e) {
633
633
  t.root || (t = t.return) && e(t);
634
634
  };
635
635
  }
636
- function ct(e) {
636
+ function lt(e) {
637
637
  var t = /* @__PURE__ */ Object.create(null);
638
638
  return function(r) {
639
639
  return t[r] === void 0 && (t[r] = e(r)), t[r];
640
640
  };
641
641
  }
642
- var Ut = function(t, r, n) {
643
- for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !de(i); )
644
- B();
645
- return pe(t, M);
646
- }, Dt = function(t, r) {
642
+ var Dt = function(t, r, n) {
643
+ for (var a = 0, i = 0; a = i, i = K(), a === 38 && i === 12 && (r[n] = 1), !fe(i); )
644
+ z();
645
+ return he(t, M);
646
+ }, Wt = function(t, r) {
647
647
  var n = -1, a = 44;
648
648
  do
649
- switch (de(a)) {
649
+ switch (fe(a)) {
650
650
  case 0:
651
- a === 38 && q() === 12 && (r[n] = 1), t[n] += Ut(M - 1, r, n);
651
+ a === 38 && K() === 12 && (r[n] = 1), t[n] += Dt(M - 1, r, n);
652
652
  break;
653
653
  case 2:
654
654
  t[n] += ve(a);
655
655
  break;
656
656
  case 4:
657
657
  if (a === 44) {
658
- t[++n] = q() === 58 ? "&\f" : "", r[n] = t[n].length;
658
+ t[++n] = K() === 58 ? "&\f" : "", r[n] = t[n].length;
659
659
  break;
660
660
  }
661
661
  // fallthrough
662
662
  default:
663
663
  t[n] += ke(a);
664
664
  }
665
- while (a = B());
665
+ while (a = z());
666
666
  return t;
667
- }, Wt = function(t, r) {
668
- return st(Dt(ot(t), r));
669
- }, He = /* @__PURE__ */ new WeakMap(), Yt = function(t) {
667
+ }, Yt = function(t, r) {
668
+ return ct(Wt(st(t), r));
669
+ }, Ge = /* @__PURE__ */ new WeakMap(), qt = function(t) {
670
670
  if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
671
671
  // negative .length indicates that this rule has been already prefixed
672
672
  t.length < 1)) {
673
673
  for (var r = t.value, n = t.parent, a = t.column === n.column && t.line === n.line; n.type !== "rule"; )
674
674
  if (n = n.parent, !n) return;
675
- if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
676
- He.set(t, !0);
677
- for (var i = [], s = Wt(r, i), c = n.props, d = 0, m = 0; d < s.length; d++)
675
+ if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Ge.get(n)) && !a) {
676
+ Ge.set(t, !0);
677
+ for (var i = [], s = Yt(r, i), c = n.props, u = 0, m = 0; u < s.length; u++)
678
678
  for (var l = 0; l < c.length; l++, m++)
679
- t.props[m] = i[d] ? s[d].replace(/&\f/g, c[l]) : c[l] + " " + s[d];
679
+ t.props[m] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
680
680
  }
681
681
  }
682
- }, qt = function(t) {
682
+ }, Gt = function(t) {
683
683
  if (t.type === "decl") {
684
684
  var r = t.value;
685
685
  // charcode for l
@@ -687,8 +687,8 @@ var Ut = function(t, r, n) {
687
687
  r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
688
688
  }
689
689
  };
690
- function lt(e, t) {
691
- switch (Tt(e, t)) {
690
+ function ut(e, t) {
691
+ switch (Ct(e, t)) {
692
692
  // color-adjust
693
693
  case 5103:
694
694
  return k + "print-" + e + e;
@@ -728,32 +728,32 @@ function lt(e, t) {
728
728
  case 4810:
729
729
  case 6968:
730
730
  case 2756:
731
- return k + e + we + e + V + e + e;
731
+ return k + e + we + e + B + e + e;
732
732
  // flex, flex-direction
733
733
  case 6828:
734
734
  case 4268:
735
- return k + e + V + e + e;
735
+ return k + e + B + e + e;
736
736
  // order
737
737
  case 6165:
738
- return k + e + V + "flex-" + e + e;
738
+ return k + e + B + "flex-" + e + e;
739
739
  // align-items
740
740
  case 5187:
741
- return k + e + P(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + V + "flex-$1$2") + e;
741
+ return k + e + P(e, /(\w+).+(:[^]+)/, k + "box-$1$2" + B + "flex-$1$2") + e;
742
742
  // align-self
743
743
  case 5443:
744
- return k + e + V + "flex-item-" + P(e, /flex-|-self/, "") + e;
744
+ return k + e + B + "flex-item-" + P(e, /flex-|-self/, "") + e;
745
745
  // align-content
746
746
  case 4675:
747
- return k + e + V + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
747
+ return k + e + B + "flex-line-pack" + P(e, /align-content|flex-|-self/, "") + e;
748
748
  // flex-shrink
749
749
  case 5548:
750
- return k + e + V + P(e, "shrink", "negative") + e;
750
+ return k + e + B + P(e, "shrink", "negative") + e;
751
751
  // flex-basis
752
752
  case 5292:
753
- return k + e + V + P(e, "basis", "preferred-size") + e;
753
+ return k + e + B + P(e, "basis", "preferred-size") + e;
754
754
  // flex-grow
755
755
  case 6060:
756
- return k + "box-" + P(e, "-grow", "") + k + e + V + P(e, "grow", "positive") + e;
756
+ return k + "box-" + P(e, "-grow", "") + k + e + B + P(e, "grow", "positive") + e;
757
757
  // transition
758
758
  case 4554:
759
759
  return k + P(e, /([^-])(transform)/g, "$1" + k + "$2") + e;
@@ -766,7 +766,7 @@ function lt(e, t) {
766
766
  return P(e, /(image-set\([^]*)/, k + "$1$`$1");
767
767
  // justify-content
768
768
  case 4968:
769
- return P(P(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + V + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
769
+ return P(P(e, /(.+:)(flex-)?(.*)/, k + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + k + e + e;
770
770
  // (margin|padding)-inline-(start|end)
771
771
  case 4095:
772
772
  case 3583:
@@ -786,81 +786,81 @@ function lt(e, t) {
786
786
  case 5789:
787
787
  case 5021:
788
788
  case 4765:
789
- if (W(e) - 1 - t > 6) switch (N(e, t + 1)) {
789
+ if (H(e) - 1 - t > 6) switch (F(e, t + 1)) {
790
790
  // (m)ax-content, (m)in-content
791
791
  case 109:
792
- if (N(e, t + 4) !== 45) break;
792
+ if (F(e, t + 4) !== 45) break;
793
793
  // (f)ill-available, (f)it-content
794
794
  case 102:
795
- return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + (N(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
795
+ return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + (F(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
796
796
  // (s)tretch
797
797
  case 115:
798
- return ~je(e, "stretch") ? lt(P(e, "stretch", "fill-available"), t) + e : e;
798
+ return ~je(e, "stretch") ? ut(P(e, "stretch", "fill-available"), t) + e : e;
799
799
  }
800
800
  break;
801
801
  // position: sticky
802
802
  case 4949:
803
- if (N(e, t + 1) !== 115) break;
803
+ if (F(e, t + 1) !== 115) break;
804
804
  // display: (flex|inline-flex)
805
805
  case 6444:
806
- switch (N(e, W(e) - 3 - (~je(e, "!important") && 10))) {
806
+ switch (F(e, H(e) - 3 - (~je(e, "!important") && 10))) {
807
807
  // stic(k)y
808
808
  case 107:
809
809
  return P(e, ":", ":" + k) + e;
810
810
  // (inline-)?fl(e)x
811
811
  case 101:
812
- return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (N(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + V + "$2box$3") + e;
812
+ return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (F(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + B + "$2box$3") + e;
813
813
  }
814
814
  break;
815
815
  // writing-mode
816
816
  case 5936:
817
- switch (N(e, t + 11)) {
817
+ switch (F(e, t + 11)) {
818
818
  // vertical-l(r)
819
819
  case 114:
820
- return k + e + V + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
820
+ return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
821
  // vertical-r(l)
822
822
  case 108:
823
- return k + e + V + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
823
+ return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
824
  // horizontal(-)tb
825
825
  case 45:
826
- return k + e + V + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
826
+ return k + e + B + P(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
827
  }
828
- return k + e + V + e + e;
828
+ return k + e + B + e + e;
829
829
  }
830
830
  return e;
831
831
  }
832
832
  var Ht = function(t, r, n, a) {
833
833
  if (t.length > -1 && !t.return) switch (t.type) {
834
- case Fe:
835
- t.return = lt(t.value, t.length);
834
+ case Le:
835
+ t.return = ut(t.value, t.length);
836
836
  break;
837
- case nt:
838
- return te([le(t, {
837
+ case at:
838
+ return ne([le(t, {
839
839
  value: P(t.value, "@", "@" + k)
840
840
  })], a);
841
- case Le:
842
- if (t.length) return Ct(t.props, function(i) {
843
- switch (At(i, /(::plac\w+|:read-\w+)/)) {
841
+ case Fe:
842
+ if (t.length) return It(t.props, function(i) {
843
+ switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
844
844
  // :read-(only|write)
845
845
  case ":read-only":
846
846
  case ":read-write":
847
- return te([le(t, {
847
+ return ne([le(t, {
848
848
  props: [P(i, /:(read-\w+)/, ":" + we + "$1")]
849
849
  })], a);
850
850
  // :placeholder
851
851
  case "::placeholder":
852
- return te([le(t, {
852
+ return ne([le(t, {
853
853
  props: [P(i, /:(plac\w+)/, ":" + k + "input-$1")]
854
854
  }), le(t, {
855
855
  props: [P(i, /:(plac\w+)/, ":" + we + "$1")]
856
856
  }), le(t, {
857
- props: [P(i, /:(plac\w+)/, V + "input-$1")]
857
+ props: [P(i, /:(plac\w+)/, B + "input-$1")]
858
858
  })], a);
859
859
  }
860
860
  return "";
861
861
  });
862
862
  }
863
- }, Gt = [Ht], Xt = function(t) {
863
+ }, Xt = [Ht], Kt = function(t) {
864
864
  var r = t.key;
865
865
  if (r === "css") {
866
866
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
@@ -869,7 +869,7 @@ var Ht = function(t, r, n, a) {
869
869
  h.indexOf(" ") !== -1 && (document.head.appendChild(f), f.setAttribute("data-s", ""));
870
870
  });
871
871
  }
872
- var a = t.stylisPlugins || Gt, i = {}, s, c = [];
872
+ var a = t.stylisPlugins || Xt, i = {}, s, c = [];
873
873
  s = t.container || document.head, Array.prototype.forEach.call(
874
874
  // this means we will ignore elements which don't have a space in them which
875
875
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
@@ -880,20 +880,20 @@ var Ht = function(t, r, n, a) {
880
880
  c.push(f);
881
881
  }
882
882
  );
883
- var d, m = [Yt, qt];
883
+ var u, m = [qt, Gt];
884
884
  {
885
885
  var l, p = [Mt, zt(function(f) {
886
886
  l.insert(f);
887
- })], g = Bt(m.concat(a, p)), w = function(h) {
888
- return te(Ft(h), g);
887
+ })], b = Ut(m.concat(a, p)), x = function(h) {
888
+ return ne(Vt(h), b);
889
889
  };
890
- d = function(h, y, x, _) {
891
- l = x, w(h ? h + "{" + y.styles + "}" : y.styles), _ && (v.inserted[y.name] = !0);
890
+ u = function(h, y, w, _) {
891
+ l = w, x(h ? h + "{" + y.styles + "}" : y.styles), _ && (g.inserted[y.name] = !0);
892
892
  };
893
893
  }
894
- var v = {
894
+ var g = {
895
895
  key: r,
896
- sheet: new Pt({
896
+ sheet: new Et({
897
897
  key: r,
898
898
  container: s,
899
899
  nonce: t.nonce,
@@ -904,17 +904,17 @@ var Ht = function(t, r, n, a) {
904
904
  nonce: t.nonce,
905
905
  inserted: i,
906
906
  registered: {},
907
- insert: d
907
+ insert: u
908
908
  };
909
- return v.sheet.hydrate(c), v;
910
- }, Kt = !0;
911
- function Jt(e, t, r) {
909
+ return g.sheet.hydrate(c), g;
910
+ }, Jt = !0;
911
+ function Zt(e, t, r) {
912
912
  var n = "";
913
913
  return r.split(" ").forEach(function(a) {
914
914
  e[a] !== void 0 ? t.push(e[a] + ";") : a && (n += a + " ");
915
915
  }), n;
916
916
  }
917
- var ut = function(t, r, n) {
917
+ var dt = function(t, r, n) {
918
918
  var a = t.key + "-" + r.name;
919
919
  // we only need to add the styles to the registered cache if the
920
920
  // class name could be used further down
@@ -925,9 +925,9 @@ var ut = function(t, r, n) {
925
925
  // in node since emotion-server relies on whether a style is in
926
926
  // the registered cache to know whether a style is global or not
927
927
  // also, note that this check will be dead code eliminated in the browser
928
- Kt === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
929
- }, Zt = function(t, r, n) {
930
- ut(t, r, n);
928
+ Jt === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
929
+ }, Qt = function(t, r, n) {
930
+ dt(t, r, n);
931
931
  var a = t.key + "-" + r.name;
932
932
  if (t.inserted[r.name] === void 0) {
933
933
  var i = r;
@@ -936,7 +936,7 @@ var ut = function(t, r, n) {
936
936
  while (i !== void 0);
937
937
  }
938
938
  };
939
- function Qt(e) {
939
+ function er(e) {
940
940
  for (var t = 0, r, n = 0, a = e.length; a >= 4; ++n, a -= 4)
941
941
  r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
942
942
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
@@ -955,7 +955,7 @@ function Qt(e) {
955
955
  return t ^= t >>> 13, t = /* Math.imul(h, m): */
956
956
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
957
957
  }
958
- var er = {
958
+ var tr = {
959
959
  animationIterationCount: 1,
960
960
  aspectRatio: 1,
961
961
  borderImageOutset: 1,
@@ -1004,28 +1004,28 @@ var er = {
1004
1004
  strokeMiterlimit: 1,
1005
1005
  strokeOpacity: 1,
1006
1006
  strokeWidth: 1
1007
- }, tr = /[A-Z]|^ms/g, rr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, dt = function(t) {
1007
+ }, rr = /[A-Z]|^ms/g, nr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ft = function(t) {
1008
1008
  return t.charCodeAt(1) === 45;
1009
- }, Ge = function(t) {
1009
+ }, He = function(t) {
1010
1010
  return t != null && typeof t != "boolean";
1011
- }, Te = /* @__PURE__ */ ct(function(e) {
1012
- return dt(e) ? e : e.replace(tr, "-$&").toLowerCase();
1011
+ }, Ae = /* @__PURE__ */ lt(function(e) {
1012
+ return ft(e) ? e : e.replace(rr, "-$&").toLowerCase();
1013
1013
  }), Xe = function(t, r) {
1014
1014
  switch (t) {
1015
1015
  case "animation":
1016
1016
  case "animationName":
1017
1017
  if (typeof r == "string")
1018
- return r.replace(rr, function(n, a, i) {
1019
- return Y = {
1018
+ return r.replace(nr, function(n, a, i) {
1019
+ return X = {
1020
1020
  name: a,
1021
1021
  styles: i,
1022
- next: Y
1022
+ next: X
1023
1023
  }, a;
1024
1024
  });
1025
1025
  }
1026
- return er[t] !== 1 && !dt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1026
+ return tr[t] !== 1 && !ft(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1027
1027
  };
1028
- function fe(e, t, r) {
1028
+ function pe(e, t, r) {
1029
1029
  if (r == null)
1030
1030
  return "";
1031
1031
  var n = r;
@@ -1037,30 +1037,30 @@ function fe(e, t, r) {
1037
1037
  case "object": {
1038
1038
  var a = r;
1039
1039
  if (a.anim === 1)
1040
- return Y = {
1040
+ return X = {
1041
1041
  name: a.name,
1042
1042
  styles: a.styles,
1043
- next: Y
1043
+ next: X
1044
1044
  }, a.name;
1045
1045
  var i = r;
1046
1046
  if (i.styles !== void 0) {
1047
1047
  var s = i.next;
1048
1048
  if (s !== void 0)
1049
1049
  for (; s !== void 0; )
1050
- Y = {
1050
+ X = {
1051
1051
  name: s.name,
1052
1052
  styles: s.styles,
1053
- next: Y
1053
+ next: X
1054
1054
  }, s = s.next;
1055
1055
  var c = i.styles + ";";
1056
1056
  return c;
1057
1057
  }
1058
- return nr(e, t, r);
1058
+ return ar(e, t, r);
1059
1059
  }
1060
1060
  case "function": {
1061
1061
  if (e !== void 0) {
1062
- var d = Y, m = r(e);
1063
- return Y = d, fe(e, t, m);
1062
+ var u = X, m = r(e);
1063
+ return X = u, pe(e, t, m);
1064
1064
  }
1065
1065
  break;
1066
1066
  }
@@ -1071,26 +1071,26 @@ function fe(e, t, r) {
1071
1071
  var p = t[l];
1072
1072
  return p !== void 0 ? p : l;
1073
1073
  }
1074
- function nr(e, t, r) {
1074
+ function ar(e, t, r) {
1075
1075
  var n = "";
1076
1076
  if (Array.isArray(r))
1077
1077
  for (var a = 0; a < r.length; a++)
1078
- n += fe(e, t, r[a]) + ";";
1078
+ n += pe(e, t, r[a]) + ";";
1079
1079
  else
1080
1080
  for (var i in r) {
1081
1081
  var s = r[i];
1082
1082
  if (typeof s != "object") {
1083
1083
  var c = s;
1084
- t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Te(i) + ":" + Xe(i, c) + ";");
1084
+ t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : He(c) && (n += Ae(i) + ":" + Xe(i, c) + ";");
1085
1085
  } else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
1086
- for (var d = 0; d < s.length; d++)
1087
- Ge(s[d]) && (n += Te(i) + ":" + Xe(i, s[d]) + ";");
1086
+ for (var u = 0; u < s.length; u++)
1087
+ He(s[u]) && (n += Ae(i) + ":" + Xe(i, s[u]) + ";");
1088
1088
  else {
1089
- var m = fe(e, t, s);
1089
+ var m = pe(e, t, s);
1090
1090
  switch (i) {
1091
1091
  case "animation":
1092
1092
  case "animationName": {
1093
- n += Te(i) + ":" + m + ";";
1093
+ n += Ae(i) + ":" + m + ";";
1094
1094
  break;
1095
1095
  }
1096
1096
  default:
@@ -1100,65 +1100,65 @@ function nr(e, t, r) {
1100
1100
  }
1101
1101
  return n;
1102
1102
  }
1103
- var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
1104
- function ar(e, t, r) {
1103
+ var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, X;
1104
+ function ir(e, t, r) {
1105
1105
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1106
1106
  return e[0];
1107
1107
  var n = !0, a = "";
1108
- Y = void 0;
1108
+ X = void 0;
1109
1109
  var i = e[0];
1110
1110
  if (i == null || i.raw === void 0)
1111
- n = !1, a += fe(r, t, i);
1111
+ n = !1, a += pe(r, t, i);
1112
1112
  else {
1113
1113
  var s = i;
1114
1114
  a += s[0];
1115
1115
  }
1116
1116
  for (var c = 1; c < e.length; c++)
1117
- if (a += fe(r, t, e[c]), n) {
1118
- var d = i;
1119
- a += d[c];
1117
+ if (a += pe(r, t, e[c]), n) {
1118
+ var u = i;
1119
+ a += u[c];
1120
1120
  }
1121
1121
  Ke.lastIndex = 0;
1122
1122
  for (var m = "", l; (l = Ke.exec(a)) !== null; )
1123
1123
  m += "-" + l[1];
1124
- var p = Qt(a) + m;
1124
+ var p = er(a) + m;
1125
1125
  return {
1126
1126
  name: p,
1127
1127
  styles: a,
1128
- next: Y
1128
+ next: X
1129
1129
  };
1130
1130
  }
1131
- var ir = function(t) {
1131
+ var or = function(t) {
1132
1132
  return t();
1133
- }, or = H.useInsertionEffect ? H.useInsertionEffect : !1, sr = or || ir, ft = /* @__PURE__ */ H.createContext(
1133
+ }, sr = Z.useInsertionEffect ? Z.useInsertionEffect : !1, cr = sr || or, pt = /* @__PURE__ */ Z.createContext(
1134
1134
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1135
1135
  // because this module is primarily intended for the browser and node
1136
1136
  // but it's also required in react native and similar environments sometimes
1137
1137
  // and we could have a special build just for that
1138
1138
  // but this is much easier and the native packages
1139
1139
  // might use a different theme context in the future anyway
1140
- typeof HTMLElement < "u" ? /* @__PURE__ */ Xt({
1140
+ typeof HTMLElement < "u" ? /* @__PURE__ */ Kt({
1141
1141
  key: "css"
1142
1142
  }) : null
1143
1143
  );
1144
- ft.Provider;
1145
- var cr = function(t) {
1146
- return /* @__PURE__ */ yt(function(r, n) {
1147
- var a = et(ft);
1144
+ pt.Provider;
1145
+ var lr = function(t) {
1146
+ return /* @__PURE__ */ gt(function(r, n) {
1147
+ var a = tt(pt);
1148
1148
  return t(r, a, n);
1149
1149
  });
1150
- }, lr = /* @__PURE__ */ H.createContext({}), ur = /^((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)-.*))$/, dr = /* @__PURE__ */ ct(
1150
+ }, ur = /* @__PURE__ */ Z.createContext({}), dr = /^((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)-.*))$/, fr = /* @__PURE__ */ lt(
1151
1151
  function(e) {
1152
- return ur.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1152
+ return dr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1153
1153
  }
1154
1154
  /* Z+1 */
1155
- ), fr = dr, pr = function(t) {
1155
+ ), pr = fr, hr = function(t) {
1156
1156
  return t !== "theme";
1157
1157
  }, Je = function(t) {
1158
1158
  return typeof t == "string" && // 96 is one less than the char code
1159
1159
  // for "a" so this is checking that
1160
1160
  // it's a lowercase character
1161
- t.charCodeAt(0) > 96 ? fr : pr;
1161
+ t.charCodeAt(0) > 96 ? pr : hr;
1162
1162
  }, Ze = function(t, r, n) {
1163
1163
  var a;
1164
1164
  if (r) {
@@ -1168,57 +1168,57 @@ var cr = function(t) {
1168
1168
  } : i;
1169
1169
  }
1170
1170
  return typeof a != "function" && n && (a = t.__emotion_forwardProp), a;
1171
- }, hr = function(t) {
1171
+ }, mr = function(t) {
1172
1172
  var r = t.cache, n = t.serialized, a = t.isStringTag;
1173
- return ut(r, n, a), sr(function() {
1174
- return Zt(r, n, a);
1173
+ return dt(r, n, a), cr(function() {
1174
+ return Qt(r, n, a);
1175
1175
  }), null;
1176
- }, mr = function e(t, r) {
1176
+ }, yr = function e(t, r) {
1177
1177
  var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
1178
1178
  r !== void 0 && (i = r.label, s = r.target);
1179
- var c = Ze(t, r, n), d = c || Je(a), m = !d("as");
1179
+ var c = Ze(t, r, n), u = c || Je(a), m = !u("as");
1180
1180
  return function() {
1181
1181
  var l = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
1182
  if (i !== void 0 && p.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
1183
  p.push.apply(p, l);
1184
1184
  else {
1185
- var g = l[0];
1186
- p.push(g[0]);
1187
- for (var w = l.length, v = 1; v < w; v++)
1188
- p.push(l[v], g[v]);
1185
+ var b = l[0];
1186
+ p.push(b[0]);
1187
+ for (var x = l.length, g = 1; g < x; g++)
1188
+ p.push(l[g], b[g]);
1189
1189
  }
1190
- var f = cr(function(h, y, x) {
1191
- var _ = m && h.as || a, T = "", S = [], R = h;
1190
+ var f = lr(function(h, y, w) {
1191
+ var _ = m && h.as || a, A = "", S = [], R = h;
1192
1192
  if (h.theme == null) {
1193
1193
  R = {};
1194
- for (var u in h)
1195
- R[u] = h[u];
1196
- R.theme = H.useContext(lr);
1194
+ for (var d in h)
1195
+ R[d] = h[d];
1196
+ R.theme = Z.useContext(ur);
1197
1197
  }
1198
- typeof h.className == "string" ? T = Jt(y.registered, S, h.className) : h.className != null && (T = h.className + " ");
1199
- var A = ar(p.concat(S), y.registered, R);
1200
- T += y.key + "-" + A.name, s !== void 0 && (T += " " + s);
1201
- var I = m && c === void 0 ? Je(_) : d, E = {};
1202
- for (var O in h)
1203
- m && O === "as" || I(O) && (E[O] = h[O]);
1204
- return E.className = T, x && (E.ref = x), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
1198
+ typeof h.className == "string" ? A = Zt(y.registered, S, h.className) : h.className != null && (A = h.className + " ");
1199
+ var I = ir(p.concat(S), y.registered, R);
1200
+ A += y.key + "-" + I.name, s !== void 0 && (A += " " + s);
1201
+ var C = m && c === void 0 ? Je(_) : u, E = {};
1202
+ for (var $ in h)
1203
+ m && $ === "as" || C($) && (E[$] = h[$]);
1204
+ return E.className = A, w && (E.ref = w), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(mr, {
1205
1205
  cache: y,
1206
- serialized: A,
1206
+ serialized: I,
1207
1207
  isStringTag: typeof _ == "string"
1208
- }), /* @__PURE__ */ H.createElement(_, E));
1208
+ }), /* @__PURE__ */ Z.createElement(_, E));
1209
1209
  });
1210
1210
  return f.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", f.defaultProps = t.defaultProps, f.__emotion_real = f, f.__emotion_base = a, f.__emotion_styles = p, f.__emotion_forwardProp = c, Object.defineProperty(f, "toString", {
1211
1211
  value: function() {
1212
1212
  return "." + s;
1213
1213
  }
1214
1214
  }), f.withComponent = function(h, y) {
1215
- var x = e(h, Oe({}, r, y, {
1215
+ var w = e(h, Oe({}, r, y, {
1216
1216
  shouldForwardProp: Ze(f, y, !0)
1217
1217
  }));
1218
- return x.apply(void 0, p);
1218
+ return w.apply(void 0, p);
1219
1219
  }, f;
1220
1220
  };
1221
- }, yr = [
1221
+ }, gr = [
1222
1222
  "a",
1223
1223
  "abbr",
1224
1224
  "address",
@@ -1354,11 +1354,11 @@ var cr = function(t) {
1354
1354
  "svg",
1355
1355
  "text",
1356
1356
  "tspan"
1357
- ], ne = mr.bind(null);
1358
- yr.forEach(function(e) {
1359
- ne[e] = ne(e);
1357
+ ], ie = yr.bind(null);
1358
+ gr.forEach(function(e) {
1359
+ ie[e] = ie(e);
1360
1360
  });
1361
- const gr = ne.div`
1361
+ const vr = ie.div`
1362
1362
  display: flex;
1363
1363
  align-items: center;
1364
1364
  justify-content: center;
@@ -1399,17 +1399,35 @@ const gr = ne.div`
1399
1399
  return "";
1400
1400
  }
1401
1401
  }}
1402
- `, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => $.jsxs(gr, { type: e, className: r, children: [n && $.jsx("span", { children: n }), $.jsx("span", { children: t }), a && $.jsx("span", { children: a })] }), Qe = ne.div`
1402
+ `, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => N.jsxs(vr, { type: e, className: r, children: [n && N.jsx("span", { children: n }), N.jsx("span", { children: t }), a && N.jsx("span", { children: a })] }), Qe = ie.div`
1403
1403
  width: ${({ width: e }) => e || "100%"};
1404
1404
  height: ${({ height: e }) => e || "100%"};
1405
- border-radius: 8px;
1406
- box-shadow: 0 0 0 1px #fff, 0 0 20px 0 rgba(0, 0, 0, 0.25);
1405
+ border-radius: 0px !important; /* Force remove rounded corners */
1406
+ box-shadow: none !important; /* Force remove shadow */
1407
1407
  position: relative;
1408
1408
  z-index: 1002;
1409
1409
 
1410
1410
  /* Hide specific elements inside the player */
1411
1411
  ${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
1412
- `, vr = ne.div`
1412
+
1413
+ /* Remove rounded corners from all child elements */
1414
+ * {
1415
+ border-radius: 0px !important;
1416
+ }
1417
+
1418
+ /* Remove rounded corners from video element */
1419
+ video {
1420
+ border-radius: 0px !important;
1421
+ }
1422
+
1423
+ /* Remove rounded corners from control elements */
1424
+ [class*="control"],
1425
+ [class*="button"],
1426
+ button,
1427
+ [role="button"] {
1428
+ border-radius: 0px !important;
1429
+ }
1430
+ `, br = ie.div`
1413
1431
  position: fixed;
1414
1432
  top: 0;
1415
1433
  left: 0;
@@ -1421,7 +1439,7 @@ const gr = ne.div`
1421
1439
  align-items: center;
1422
1440
  z-index: 1000;
1423
1441
  pointer-events: auto;
1424
- `, br = ne.div`
1442
+ `, xr = ie.div`
1425
1443
  position: relative;
1426
1444
  width: 100%; /* Default for mobile */
1427
1445
  max-width: 100%;
@@ -1433,110 +1451,145 @@ const gr = ne.div`
1433
1451
  @media (min-width: 768px) {
1434
1452
  width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
1435
1453
  }
1436
- `, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Me = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ae = /* @__PURE__ */ new Map(), Pr = (e, t) => {
1437
- const [r, n] = U(!1), [a, i] = U(null);
1454
+ `, wr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, et = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`, Pr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ce = /* @__PURE__ */ new Map(), Er = (e, t) => {
1455
+ const [r, n] = Y(!1), [a, i] = Y(null);
1438
1456
  return xe(() => {
1439
- let s = null, c, d = 0;
1457
+ let s = null, c, u = 0;
1440
1458
  const m = 3;
1441
1459
  let l;
1442
1460
  try {
1443
- l = t || kr(e || "latest");
1444
- } catch (w) {
1445
- const v = w instanceof Error ? w.message : String(w);
1446
- i(`Failed to resolve script URL: ${v}`), n(!1);
1461
+ l = t || Pr(e || "latest");
1462
+ } catch (x) {
1463
+ const g = x instanceof Error ? x.message : String(x);
1464
+ i(`Failed to resolve script URL: ${g}`), n(!1);
1447
1465
  return;
1448
1466
  }
1449
- if (Ae.get(l)) {
1467
+ if (Ce.get(l)) {
1450
1468
  n(!0), i(null);
1451
1469
  return;
1452
1470
  }
1453
1471
  if (document.querySelector(`script[src="${l}"]`)) {
1454
- Ae.set(l, !0), n(!0), i(null);
1472
+ Ce.set(l, !0), n(!0), i(null);
1455
1473
  return;
1456
1474
  }
1457
- const g = () => {
1475
+ const b = () => {
1458
1476
  s = document.createElement("script"), s.src = l, s.async = !0, c = window.setTimeout(() => {
1459
1477
  n(!1), i(`Loading script timed out: ${l}`);
1460
1478
  }, 1e4), s.onload = () => {
1461
- clearTimeout(c), Ae.set(l, !0), n(!0), i(null);
1479
+ clearTimeout(c), Ce.set(l, !0), n(!0), i(null);
1462
1480
  }, s.onerror = () => {
1463
- clearTimeout(c), d++, d < m ? setTimeout(g, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1481
+ clearTimeout(c), u++, u < m ? setTimeout(b, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1464
1482
  }, document.body.appendChild(s);
1465
1483
  };
1466
- return g(), () => {
1484
+ return b(), () => {
1467
1485
  clearTimeout(c), s && document.body.contains(s) && document.body.removeChild(s);
1468
1486
  };
1469
1487
  }, [e, t]), { isLoaded: r, error: a };
1470
- }, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 3e4, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1471
- const [i, s] = U(null), [c, d] = U(null), [m, l] = U(!1), [p, g] = U(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1488
+ }, _r = {}, ue = /* @__PURE__ */ new Map(), Sr = 3e4, Te = 5, Rr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1489
+ const [i, s] = Y(null), [c, u] = Y(null), [m, l] = Y(!1), [p, b] = Y(null), x = a || (typeof _r < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1472
1490
  return xe(() => {
1473
- const v = t ? `video:${t}` : r ? `playlist:${r}` : null;
1491
+ const g = t ? `video:${t}` : r ? `playlist:${r}` : null;
1474
1492
  if (!e || n || !t && !r) {
1475
- s(n || null), d(null), l(!1), g(null);
1493
+ s(n || null), u(null), l(!1), b(null);
1476
1494
  return;
1477
1495
  }
1478
- if (!w) {
1479
- l(!1), g("No API key provided");
1496
+ if (!x) {
1497
+ l(!1), b("No API key provided");
1480
1498
  return;
1481
1499
  }
1482
- if (v && ye.has(v)) {
1483
- const T = ye.get(v);
1484
- s(T.url), d(T.playlist), l(!1), g(null);
1500
+ if (g && ue.has(g)) {
1501
+ const A = ue.get(g);
1502
+ s(A.url), u(A.playlist), l(!1), b(null);
1485
1503
  return;
1486
1504
  }
1487
1505
  let f = !0;
1488
1506
  const h = new AbortController(), y = h.signal, _ = setTimeout(async () => {
1489
- var S, R;
1507
+ var S, R, d, I;
1490
1508
  if (!f)
1491
1509
  return;
1492
- l(!0), g(null);
1493
- let T = 0;
1494
- for (; T < Ce && f; )
1510
+ l(!0), b(null);
1511
+ let A = 0;
1512
+ for (; A < Te && f; )
1495
1513
  try {
1496
- const u = t && !r ? xr(e, t) : wr(e, r), A = setTimeout(() => h.abort(), _r), I = await fetch(u, {
1514
+ const C = t && !r ? wr(e, t) : et(e, r), E = setTimeout(() => h.abort(), Sr), $ = await fetch(C, {
1497
1515
  method: "GET",
1498
1516
  headers: {
1499
- "api-key": w,
1517
+ "api-key": x,
1500
1518
  Accept: "application/json",
1501
1519
  "Cache-Control": "no-cache"
1502
1520
  // Prevent caching issues
1503
1521
  },
1504
1522
  signal: y
1505
1523
  });
1506
- if (clearTimeout(A), !I.ok)
1507
- throw new Error(`Fetch failed with status ${I.status}`);
1508
- const E = await I.json();
1524
+ if (clearTimeout(E), !$.ok)
1525
+ throw new Error(`Fetch failed with status ${$.status}`);
1526
+ const D = await $.json();
1509
1527
  if (!f)
1510
1528
  return;
1511
1529
  if (t && !r) {
1512
- const O = (R = (S = E.result) == null ? void 0 : S.items) == null ? void 0 : R.find((G) => G.mediaId === t);
1513
- if (!(O != null && O.playbackUrl))
1530
+ const j = (R = (S = D.result) == null ? void 0 : S.items) == null ? void 0 : R.find((U) => U.mediaId === t);
1531
+ if (!(j != null && j.playbackUrl))
1514
1532
  throw new Error("Invalid video data");
1515
- s(O.playbackUrl), d(null), v && ye.set(v, { url: O.playbackUrl, playlist: null });
1533
+ s(j.playbackUrl), u(null), g && ue.set(g, { url: j.playbackUrl, playlist: null });
1516
1534
  } else {
1517
- if (!Array.isArray(E.result))
1535
+ if (!Array.isArray(D.result))
1518
1536
  throw new Error("Invalid playlist format");
1519
- d(E.result), s(null), v && ye.set(v, { url: null, playlist: E.result });
1537
+ const j = kr(e, r), U = await fetch(j, {
1538
+ method: "GET",
1539
+ headers: {
1540
+ "api-key": x,
1541
+ Accept: "application/json",
1542
+ "Cache-Control": "no-cache"
1543
+ },
1544
+ signal: y
1545
+ });
1546
+ if (U.ok) {
1547
+ const q = await U.json();
1548
+ let W = [...D.result];
1549
+ if ((d = q.result) != null && d.playlistBackupState && ((I = q.result) != null && I.playlistBackupId)) {
1550
+ const J = et(e, q.result.playlistBackupId), Q = await fetch(J, {
1551
+ method: "GET",
1552
+ headers: {
1553
+ "api-key": x,
1554
+ Accept: "application/json",
1555
+ "Cache-Control": "no-cache"
1556
+ },
1557
+ signal: y
1558
+ });
1559
+ if (Q.ok) {
1560
+ const ee = await Q.json();
1561
+ if (Array.isArray(ee.result)) {
1562
+ const o = ee.result.map((v) => ({
1563
+ ...v,
1564
+ isBackupPlaylist: !0
1565
+ }));
1566
+ W = [...W, ...o];
1567
+ }
1568
+ }
1569
+ }
1570
+ u(W), s(null), g && ue.set(g, { url: null, playlist: W });
1571
+ } else
1572
+ u(D.result), s(null), g && ue.set(g, { url: null, playlist: D.result });
1520
1573
  }
1521
1574
  break;
1522
- } catch (u) {
1575
+ } catch (C) {
1523
1576
  if (y.aborted) {
1524
- f && g("Request timed out");
1577
+ f && b("Request timed out");
1525
1578
  break;
1526
1579
  }
1527
- if (T++, T >= Ce) {
1528
- const A = u instanceof Error ? u.message : String(u);
1529
- f && g(`Failed after ${Ce} attempts: ${A}`);
1580
+ if (A++, A >= Te) {
1581
+ const E = C instanceof Error ? C.message : String(C);
1582
+ f && b(`Failed after ${Te} attempts: ${E}`);
1530
1583
  } else
1531
- await new Promise((A) => setTimeout(A, 2e3));
1584
+ await new Promise((E) => setTimeout(E, 2e3));
1532
1585
  }
1533
1586
  f && l(!1);
1534
1587
  }, 100);
1535
1588
  return () => {
1536
1589
  f = !1, clearTimeout(_), h.abort();
1537
1590
  };
1538
- }, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1539
- }, Rr = {
1591
+ }, [x, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1592
+ }, Ar = {
1540
1593
  projectId: "vp-player-projectId",
1541
1594
  video: {
1542
1595
  file: "",
@@ -1589,7 +1642,7 @@ const gr = ne.div`
1589
1642
  // Enabled by default
1590
1643
  }
1591
1644
  }
1592
- }, Tr = ({
1645
+ }, Cr = ({
1593
1646
  videoUrl: e,
1594
1647
  fetchedPlaybackUrl: t,
1595
1648
  // fetchedPlaylist,
@@ -1599,8 +1652,8 @@ const gr = ne.div`
1599
1652
  isVerticalPlayer: i
1600
1653
  // Distinguish between VP Player types
1601
1654
  }) => {
1602
- var l, p, g, w, v, f, h, y, x, _, T, S, R;
1603
- const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
1655
+ var l, p, b, x, g, f, h, y, w, _, A, S, R;
1656
+ const s = { ...Ar, ...a }, c = { ...s.config, ...a.config };
1604
1657
  if (e)
1605
1658
  return {
1606
1659
  ...s,
@@ -1622,30 +1675,30 @@ const gr = ne.div`
1622
1675
  config: c
1623
1676
  };
1624
1677
  if (r && r.length > 0) {
1625
- const u = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
1678
+ const d = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((b = a == null ? void 0 : a.config) == null ? void 0 : b.playlistVideoIndex) ?? 0;
1626
1679
  return i ? {
1627
1680
  ...s,
1628
1681
  projectId: n || "vp-player-projectId",
1629
1682
  video: {
1630
1683
  ...s.video,
1631
1684
  // Set first video file (index 0) to avoid VP Player duplication
1632
- file: (w = r[0]) == null ? void 0 : w.hlsUrl,
1633
- title: (v = r[0]) == null ? void 0 : v.title,
1685
+ file: (x = r[0]) == null ? void 0 : x.hlsUrl,
1686
+ title: (g = r[0]) == null ? void 0 : g.title,
1634
1687
  // thumbnail: fetchedPlaylist[0]?.thumbnailUrl,
1635
1688
  playlist: {
1636
1689
  state: !0,
1637
1690
  playlistId: "",
1638
1691
  // Will be set by API
1639
1692
  // Use original playlistVideoIndex - VP Player will navigate to it
1640
- playlistVideoIndex: Number(u),
1693
+ playlistVideoIndex: Number(d),
1641
1694
  // Remove first video from playlist to avoid duplication (already in file)
1642
- videos: r.slice(1).map((I, E) => ({
1695
+ videos: r.slice(1).map((C, E) => ({
1643
1696
  videoId: String(E + 1),
1644
1697
  // Keep original IDs
1645
- title: I.title,
1646
- file: I.hlsUrl,
1647
- thumbnailUrl: I.thumbnailUrl,
1648
- duration: I.duration
1698
+ title: C.title,
1699
+ file: C.hlsUrl,
1700
+ thumbnailUrl: C.thumbnailUrl,
1701
+ duration: C.duration
1649
1702
  }))
1650
1703
  }
1651
1704
  },
@@ -1655,26 +1708,26 @@ const gr = ne.div`
1655
1708
  projectId: n || "vp-player-projectId",
1656
1709
  video: {
1657
1710
  ...s.video,
1658
- file: ((f = r[Number(u)]) == null ? void 0 : f.hlsUrl) || ((h = r[0]) == null ? void 0 : h.hlsUrl) || "",
1659
- title: ((y = r[Number(u)]) == null ? void 0 : y.title) || ((x = r[0]) == null ? void 0 : x.title),
1660
- thumbnail: ((_ = r[Number(u)]) == null ? void 0 : _.thumbnailUrl) || ((T = r[0]) == null ? void 0 : T.thumbnailUrl),
1711
+ file: ((f = r[Number(d)]) == null ? void 0 : f.hlsUrl) || ((h = r[0]) == null ? void 0 : h.hlsUrl) || "",
1712
+ title: ((y = r[Number(d)]) == null ? void 0 : y.title) || ((w = r[0]) == null ? void 0 : w.title),
1713
+ thumbnail: ((_ = r[Number(d)]) == null ? void 0 : _.thumbnailUrl) || ((A = r[0]) == null ? void 0 : A.thumbnailUrl),
1661
1714
  playlist: {
1662
1715
  state: !0,
1663
1716
  // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1664
- playlistVideoIndex: Number(u),
1665
- videos: r.map((I, E) => ({
1717
+ playlistVideoIndex: Number(d),
1718
+ videos: r.map((C, E) => ({
1666
1719
  videoId: String(E),
1667
- title: I.title,
1668
- file: I.hlsUrl,
1669
- thumbnailUrl: I.thumbnailUrl,
1670
- duration: I.duration
1720
+ title: C.title,
1721
+ file: C.hlsUrl,
1722
+ thumbnailUrl: C.thumbnailUrl,
1723
+ duration: C.duration
1671
1724
  }))
1672
1725
  }
1673
1726
  },
1674
1727
  config: c
1675
1728
  };
1676
1729
  }
1677
- const d = ((S = a == null ? void 0 : a.video) == null ? void 0 : S.playlist) || s.video.playlist, m = (R = a == null ? void 0 : a.video) == null ? void 0 : R.file;
1730
+ const u = ((S = a == null ? void 0 : a.video) == null ? void 0 : S.playlist) || s.video.playlist, m = (R = a == null ? void 0 : a.video) == null ? void 0 : R.file;
1678
1731
  if (m)
1679
1732
  return {
1680
1733
  ...s,
@@ -1686,19 +1739,19 @@ const gr = ne.div`
1686
1739
  },
1687
1740
  config: c
1688
1741
  };
1689
- if (d != null && d.videos && d.videos.length > 0) {
1690
- const u = d.videos[Number(d.playlistVideoIndex) || 0];
1742
+ if (u != null && u.videos && u.videos.length > 0) {
1743
+ const d = u.videos[Number(u.playlistVideoIndex) || 0];
1691
1744
  return {
1692
1745
  ...s,
1693
1746
  video: {
1694
1747
  ...s.video,
1695
- file: (u == null ? void 0 : u.file) || "",
1748
+ file: (d == null ? void 0 : d.file) || "",
1696
1749
  playlist: {
1697
- ...d,
1698
- state: d.state ?? !0,
1750
+ ...u,
1751
+ state: u.state ?? !0,
1699
1752
  // playlistVideoIndex: playlist.playlistVideoIndex ?? 0, this has been bug, fixed, now int
1700
- playlistVideoIndex: Number(d.playlistVideoIndex || 0),
1701
- videos: d.videos
1753
+ playlistVideoIndex: Number(u.playlistVideoIndex || 0),
1754
+ videos: u.videos
1702
1755
  }
1703
1756
  },
1704
1757
  config: {
@@ -1708,50 +1761,50 @@ const gr = ne.div`
1708
1761
  };
1709
1762
  }
1710
1763
  throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
1711
- }, Ar = (e) => {
1764
+ }, Tr = (e) => {
1712
1765
  if (!e)
1713
1766
  return;
1714
1767
  const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
1715
1768
  return r ? r[2] : void 0;
1716
- }, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
1717
- const l = Be(null), p = Be(null), { isLoaded: g, error: w } = Pr(r, s), v = t || Ar(s), [f, h] = U(null), { fetchedPlaybackUrl: y, fetchedPlaylist: x, isLoading: _, error: T } = Sr({
1769
+ }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1 }) => {
1770
+ const l = Me(null), p = Me(null), { isLoaded: b, error: x } = Er(r, s), g = t || Tr(s), [f, h] = Y(null), { fetchedPlaybackUrl: y, fetchedPlaylist: w, isLoading: _, error: A } = Rr({
1718
1771
  projectId: a,
1719
- videoId: v,
1772
+ videoId: g,
1720
1773
  playlistId: i,
1721
1774
  videoUrl: n,
1722
- apiKey: d
1723
- }), S = Me(e, v), R = tt(() => {
1724
- const u = c.config || {}, A = m && !u.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : u.size || { sizeType: "FIXED", width: "100%" };
1775
+ apiKey: u
1776
+ }), S = Be(e, g), R = rt(() => {
1777
+ const d = c.config || {}, I = m && !d.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : d.size || { sizeType: "FIXED", width: "100%" };
1725
1778
  return {
1726
1779
  ...c,
1727
1780
  config: {
1728
- ...u,
1729
- size: A
1781
+ ...d,
1782
+ size: I
1730
1783
  }
1731
1784
  };
1732
1785
  }, [c, m]);
1733
1786
  return xe(() => {
1734
- if (w) {
1735
- h(w);
1787
+ if (x) {
1788
+ h(x);
1736
1789
  return;
1737
1790
  }
1738
- if (!g || _ && !n)
1791
+ if (!b || _ && !n)
1739
1792
  return;
1740
- let u = !0;
1741
- const I = setTimeout(async () => {
1793
+ let d = !0;
1794
+ const C = setTimeout(async () => {
1742
1795
  try {
1743
1796
  const E = s == null ? void 0 : s.includes("vertical-player");
1744
- if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
1745
- var ie, oe;
1746
- const J = Q.id;
1797
+ if (document.querySelectorAll('[id*="player"]').forEach((W) => {
1798
+ var Q, ee;
1799
+ const J = W.id;
1747
1800
  if (J !== S)
1748
1801
  try {
1749
- const o = E ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
1802
+ const o = E ? (Q = window.vpVerticalPlayer) == null ? void 0 : Q.call(window, J) : (ee = window.vpPlayer) == null ? void 0 : ee.call(window, J);
1750
1803
  o != null && o.destroy && o.destroy();
1751
1804
  } catch (o) {
1752
1805
  console.warn(`Failed to destroy existing player ${J}:`, o);
1753
1806
  }
1754
- }), await new Promise((Q) => setTimeout(Q, 100)), !u || !l.current)
1807
+ }), await new Promise((W) => setTimeout(W, 100)), !d || !l.current)
1755
1808
  return;
1756
1809
  if (!document.getElementById(S)) {
1757
1810
  h("DOM element not found after cleanup.");
@@ -1761,67 +1814,67 @@ const gr = ne.div`
1761
1814
  h("VP Player script not loaded.");
1762
1815
  return;
1763
1816
  }
1764
- const z = E ? window.vpVerticalPlayer : window.vpPlayer;
1765
- if (!z) {
1817
+ const j = E ? window.vpVerticalPlayer : window.vpPlayer;
1818
+ if (!j) {
1766
1819
  h(`VP ${E ? "Vertical " : ""}Player script not loaded.`);
1767
1820
  return;
1768
1821
  }
1769
- const X = Tr({
1822
+ const U = Cr({
1770
1823
  videoUrl: n,
1771
1824
  fetchedPlaybackUrl: y ?? void 0,
1772
- fetchedPlaylist: x ?? void 0,
1825
+ fetchedPlaylist: w ?? void 0,
1773
1826
  projectId: a,
1774
1827
  config: R,
1775
1828
  isVerticalPlayer: E
1776
1829
  // Pass player type to config builder
1777
- }), Z = z(S);
1778
- if (!Z) {
1830
+ }), q = j(S);
1831
+ if (!q) {
1779
1832
  h(`Failed to create VP ${E ? "Vertical " : ""}Player instance.`);
1780
1833
  return;
1781
1834
  }
1782
- u && l.current && (Z.setup(X), p.current = Z, h(null));
1835
+ d && l.current && (q.setup(U), p.current = q, h(null));
1783
1836
  } catch (E) {
1784
- if (u) {
1785
- const O = E instanceof Error ? E.message : String(E);
1786
- h(O), console.error("VP Player initialization error:", E);
1837
+ if (d) {
1838
+ const $ = E instanceof Error ? E.message : String(E);
1839
+ h($), console.error("VP Player initialization error:", E);
1787
1840
  }
1788
1841
  }
1789
1842
  }, 150);
1790
1843
  return () => {
1791
- u = !1, clearTimeout(I);
1844
+ d = !1, clearTimeout(C);
1792
1845
  };
1793
1846
  }, [
1794
- g,
1847
+ b,
1795
1848
  _,
1796
1849
  n,
1797
1850
  y,
1798
- x,
1851
+ w,
1799
1852
  a,
1800
1853
  R,
1801
1854
  S,
1802
- w,
1855
+ x,
1803
1856
  s
1804
1857
  ]), xe(() => () => {
1805
1858
  if (p.current) {
1806
1859
  try {
1807
1860
  p.current.destroy && p.current.destroy();
1808
- } catch (A) {
1809
- console.warn(`Failed to destroy player ${S}:`, A);
1861
+ } catch (I) {
1862
+ console.warn(`Failed to destroy player ${S}:`, I);
1810
1863
  }
1811
1864
  p.current = null;
1812
1865
  }
1813
- const u = document.getElementById(S);
1814
- u && (u.innerHTML = "");
1866
+ const d = document.getElementById(S);
1867
+ d && (d.innerHTML = "");
1815
1868
  }, [S]), {
1816
1869
  playerRef: l,
1817
1870
  playerInstanceRef: p,
1818
- isScriptLoaded: g,
1871
+ isScriptLoaded: b,
1819
1872
  isLoading: _,
1820
- error: T || f || w
1873
+ error: A || f || x
1821
1874
  };
1822
- }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: g }) => {
1823
- var I, E, O, G;
1824
- const { playerRef: w, playerInstanceRef: v, isScriptLoaded: f, isLoading: h, error: y } = Cr({
1875
+ }, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: b }) => {
1876
+ var C, E, $, D;
1877
+ const { playerRef: x, playerInstanceRef: g, isScriptLoaded: f, isLoading: h, error: y } = Ir({
1825
1878
  playerId: e,
1826
1879
  videoId: t,
1827
1880
  version: r,
@@ -1830,36 +1883,36 @@ const gr = ne.div`
1830
1883
  playlistId: i,
1831
1884
  scriptUrl: s,
1832
1885
  config: c,
1833
- apiKey: d,
1886
+ apiKey: u,
1834
1887
  isReels: m
1835
- }), [x, _] = U(!0), T = () => m && _(!0), S = () => {
1836
- var z, X;
1837
- _(!1), (X = (z = v.current) == null ? void 0 : z.play) == null || X.call(z), p == null || p();
1838
- }, R = (E = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && E.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, u = (G = (O = c == null ? void 0 : c.config) == null ? void 0 : O.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, A = Me(e, t);
1839
- return y ? $.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? $.jsx(Ne, { type: "loading", children: "Loading..." }) : $.jsxs($.Fragment, { children: [m && !x ? $.jsx("div", { onClick: T }) : null, !m && $.jsx("div", { children: $.jsx(Qe, { id: A, ref: w, width: R || "100%", height: u || "auto", $hiddenClasses: l, className: g }) }, A), m && x && $.jsx(vr, { onClick: S, className: g, children: $.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: $.jsx("div", { children: $.jsx(Qe, { id: A, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, A) }) })] });
1840
- }, pt = gt(void 0), jr = ({ children: e }) => {
1841
- const [t, r] = U(!1), [n, a] = U(null), [i, s] = U(null), c = ze((l) => {
1888
+ }), [w, _] = Y(!0), A = () => m && _(!0), S = () => {
1889
+ var j, U;
1890
+ _(!1), (U = (j = g.current) == null ? void 0 : j.play) == null || U.call(j), p == null || p();
1891
+ }, R = (E = (C = c == null ? void 0 : c.config) == null ? void 0 : C.size) != null && E.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, d = (D = ($ = c == null ? void 0 : c.config) == null ? void 0 : $.size) != null && D.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, I = Be(e, t);
1892
+ return y ? N.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !f ? N.jsx(Ne, { type: "loading", children: "Loading..." }) : N.jsxs(N.Fragment, { children: [m && !w ? N.jsx("div", { onClick: A }) : null, !m && N.jsx("div", { children: N.jsx(Qe, { id: I, ref: x, width: R || "100%", height: d || "auto", $hiddenClasses: l, className: b }) }, I), m && w && N.jsx(br, { onClick: S, className: b, children: N.jsx(xr, { className: b, onClick: (j) => j.stopPropagation(), children: N.jsx("div", { children: N.jsx(Qe, { id: I, ref: x, width: "100%", height: "auto", $hiddenClasses: l, className: b }) }, I) }) })] });
1893
+ }, ht = vt(void 0), $r = ({ children: e }) => {
1894
+ const [t, r] = Y(!1), [n, a] = Y(null), [i, s] = Y(null), c = Ue((l) => {
1842
1895
  try {
1843
- const p = Me(l.playerId, l.videoId);
1896
+ const p = Be(l.playerId, l.videoId);
1844
1897
  a({ ...l, playerId: p }), r(!0), s(null);
1845
1898
  } catch {
1846
1899
  s("Failed to show player.");
1847
1900
  }
1848
- }, []), d = ze(() => {
1901
+ }, []), u = Ue(() => {
1849
1902
  r(!1), a(null), s(null);
1850
- }, []), m = tt(() => ({
1903
+ }, []), m = rt(() => ({
1851
1904
  showPlayer: c,
1852
- hidePlayer: d,
1905
+ hidePlayer: u,
1853
1906
  isPlayerVisible: t,
1854
1907
  playerParams: n
1855
- }), [c, d, t, n]);
1856
- return $.jsxs(pt.Provider, { value: m, children: [e, i && $.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && $.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1857
- }, $r = () => {
1858
- const e = et(pt);
1908
+ }), [c, u, t, n]);
1909
+ return N.jsxs(ht.Provider, { value: m, children: [e, i && N.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && N.jsx(Or, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
1910
+ }, Nr = () => {
1911
+ const e = tt(ht);
1859
1912
  if (!e)
1860
1913
  throw new Error("useVPPlayer must be used within a VPPlayerProvider");
1861
1914
  return e;
1862
- }, Nr = {
1915
+ }, Fr = {
1863
1916
  projectId: "vp-player-projectId",
1864
1917
  video: {
1865
1918
  file: "",
@@ -1897,7 +1950,7 @@ const gr = ne.div`
1897
1950
  autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
1898
1951
  muted: !0
1899
1952
  }
1900
- }, Fr = {
1953
+ }, Vr = {
1901
1954
  config: {
1902
1955
  autoplay: !0,
1903
1956
  muted: !0
@@ -1913,7 +1966,7 @@ const gr = ne.div`
1913
1966
  adAnnouncement: { state: !0, timeBeforeAd: 5 },
1914
1967
  adsRequireInteraction: !1
1915
1968
  }
1916
- }, Vr = (e, t, r = "time", n = 0) => {
1969
+ }, Br = (e, t, r = "time", n = 0) => {
1917
1970
  var a;
1918
1971
  return {
1919
1972
  ...Ie,
@@ -1932,28 +1985,28 @@ const gr = ne.div`
1932
1985
  }
1933
1986
  }
1934
1987
  };
1935
- }, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Ur = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Dr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
1988
+ }, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Ur = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Yr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
1936
1989
  export {
1937
- Dr as AD_TAG_LINEAR_URL,
1938
- Wr as AD_TAG_SKIPPABLE_LINEAR_URL,
1990
+ Wr as AD_TAG_LINEAR_URL,
1991
+ Yr as AD_TAG_SKIPPABLE_LINEAR_URL,
1939
1992
  Mr as BIG_BUCK_BUNNY_URL,
1940
- Br as ELEPHANTS_DREAM_URL,
1941
- vr as Overlay,
1942
- Ur as PEXELS_THUMBNAIL_URL,
1993
+ Ur as ELEPHANTS_DREAM_URL,
1994
+ br as Overlay,
1995
+ Dr as PEXELS_THUMBNAIL_URL,
1943
1996
  zr as PEXELS_VERTICAL_VIDEO_URL,
1944
1997
  Qe as PlayerContainer,
1945
- br as PlayerWrapper,
1946
- Ir as VPPlayer,
1947
- jr as VPPlayerProvider,
1998
+ xr as PlayerWrapper,
1999
+ Or as VPPlayer,
2000
+ $r as VPPlayerProvider,
1948
2001
  Lr as baseConfig,
1949
2002
  Ie as baseConfigWithAds,
1950
- Fr as baseConfigWithAutoplay,
1951
- Tr as buildVPPlayerConfig,
1952
- Nr as defaultVPPlayerConfig,
1953
- Ar as extractVideoId,
1954
- Vr as getAdConfig,
1955
- $r as useVPPlayer,
1956
- Cr as useVPPlayerLogic,
1957
- Pr as useVPPlayerScript,
1958
- Sr as useVideoData
2003
+ Vr as baseConfigWithAutoplay,
2004
+ Cr as buildVPPlayerConfig,
2005
+ Fr as defaultVPPlayerConfig,
2006
+ Tr as extractVideoId,
2007
+ Br as getAdConfig,
2008
+ Nr as useVPPlayer,
2009
+ Ir as useVPPlayerLogic,
2010
+ Er as useVPPlayerScript,
2011
+ Rr as useVideoData
1959
2012
  };