@devix-technologies/react-gjirafa-vp-player 1.0.18 → 1.0.20

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 Z from "react";
2
- import yt, { forwardRef as gt, useContext as tt, useState as q, useEffect as de, useRef as Me, useMemo as rt, createContext as vt, useCallback as Ue } from "react";
3
- var ye = { exports: {} }, se = {};
1
+ import * as le from "react";
2
+ import wt, { forwardRef as kt, useContext as st, useState as ne, useEffect as we, useRef as de, useMemo as ct, createContext as Et, useCallback as Ge } from "react";
3
+ var Se = { exports: {} }, ve = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -10,10 +10,10 @@ var ye = { 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 ze;
14
- function bt() {
15
- if (ze) return se;
16
- ze = 1;
13
+ var He;
14
+ function Pt() {
15
+ if (He) return ve;
16
+ He = 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 o = null;
@@ -30,9 +30,9 @@ function bt() {
30
30
  props: i
31
31
  };
32
32
  }
33
- return se.Fragment = t, se.jsx = r, se.jsxs = r, se;
33
+ return ve.Fragment = t, ve.jsx = r, ve.jsxs = r, ve;
34
34
  }
35
- var ce = {};
35
+ var ge = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -42,26 +42,26 @@ var ce = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var De;
46
- function xt() {
47
- return De || (De = 1, process.env.NODE_ENV !== "production" && function() {
45
+ var Xe;
46
+ function _t() {
47
+ return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && function() {
48
48
  function e(s) {
49
49
  if (s == null) return null;
50
50
  if (typeof s == "function")
51
- return s.$$typeof === O ? null : s.displayName || s.name || null;
51
+ return s.$$typeof === N ? null : s.displayName || s.name || null;
52
52
  if (typeof s == "string") return s;
53
53
  switch (s) {
54
54
  case d:
55
55
  return "Fragment";
56
- case p:
56
+ case v:
57
57
  return "Profiler";
58
- case b:
58
+ case y:
59
59
  return "StrictMode";
60
- case I:
60
+ case O:
61
61
  return "Suspense";
62
- case w:
62
+ case j:
63
63
  return "SuspenseList";
64
- case R:
64
+ case P:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof s == "object")
@@ -70,19 +70,19 @@ function xt() {
70
70
  ), s.$$typeof) {
71
71
  case g:
72
72
  return "Portal";
73
- case _:
73
+ case A:
74
74
  return (s.displayName || "Context") + ".Provider";
75
- case x:
75
+ case E:
76
76
  return (s._context.displayName || "Context") + ".Consumer";
77
- case S:
78
- var m = s.render;
79
- return s = s.displayName, s || (s = m.displayName || m.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
80
- case h:
81
- return m = s.displayName || null, m !== null ? m : e(s.type) || "Memo";
82
- case C:
83
- m = s._payload, s = s._init;
77
+ case T:
78
+ var x = s.render;
79
+ return s = s.displayName, s || (s = x.displayName || x.name || "", s = s !== "" ? "ForwardRef(" + s + ")" : "ForwardRef"), s;
80
+ case f:
81
+ return x = s.displayName || null, x !== null ? x : e(s.type) || "Memo";
82
+ case G:
83
+ x = s._payload, s = s._init;
84
84
  try {
85
- return e(s(m));
85
+ return e(s(x));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,15 +94,15 @@ function xt() {
94
94
  function r(s) {
95
95
  try {
96
96
  t(s);
97
- var m = !1;
97
+ var x = !1;
98
98
  } catch {
99
- m = !0;
99
+ x = !0;
100
100
  }
101
- if (m) {
102
- m = console;
103
- var T = m.error, F = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
104
- return T.call(
105
- m,
101
+ if (x) {
102
+ x = console;
103
+ var $ = x.error, F = typeof Symbol == "function" && Symbol.toStringTag && s[Symbol.toStringTag] || s.constructor.name || "Object";
104
+ return $.call(
105
+ x,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
107
  F
108
108
  ), t(s);
@@ -110,55 +110,55 @@ function xt() {
110
110
  }
111
111
  function n(s) {
112
112
  if (s === d) return "<>";
113
- if (typeof s == "object" && s !== null && s.$$typeof === C)
113
+ if (typeof s == "object" && s !== null && s.$$typeof === G)
114
114
  return "<...>";
115
115
  try {
116
- var m = e(s);
117
- return m ? "<" + m + ">" : "<...>";
116
+ var x = e(s);
117
+ return x ? "<" + x + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
122
  function a() {
123
- var s = A.A;
123
+ var s = z.A;
124
124
  return s === null ? null : s.getOwner();
125
125
  }
126
126
  function i() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
129
  function o(s) {
130
- if (M.call(s, "key")) {
131
- var m = Object.getOwnPropertyDescriptor(s, "key").get;
132
- if (m && m.isReactWarning) return !1;
130
+ if (B.call(s, "key")) {
131
+ var x = Object.getOwnPropertyDescriptor(s, "key").get;
132
+ if (x && x.isReactWarning) return !1;
133
133
  }
134
134
  return s.key !== void 0;
135
135
  }
136
- function c(s, m) {
137
- function T() {
138
- W || (W = !0, console.error(
136
+ function c(s, x) {
137
+ function $() {
138
+ U || (U = !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
- m
140
+ x
141
141
  ));
142
142
  }
143
- T.isReactWarning = !0, Object.defineProperty(s, "key", {
144
- get: T,
143
+ $.isReactWarning = !0, Object.defineProperty(s, "key", {
144
+ get: $,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
148
  function u() {
149
149
  var s = e(this.type);
150
- return Y[s] || (Y[s] = !0, console.error(
150
+ return Q[s] || (Q[s] = !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
  )), s = this.props.ref, s !== void 0 ? s : null;
153
153
  }
154
- function y(s, m, T, F, te, H, _e, Se) {
155
- return T = H.ref, s = {
154
+ function m(s, x, $, F, I, V, ee, ae) {
155
+ return $ = V.ref, s = {
156
156
  $$typeof: k,
157
157
  type: s,
158
- key: m,
159
- props: H,
160
- _owner: te
161
- }, (T !== void 0 ? T : null) !== null ? Object.defineProperty(s, "ref", {
158
+ key: x,
159
+ props: V,
160
+ _owner: I
161
+ }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(s, "ref", {
162
162
  enumerable: !1,
163
163
  get: u
164
164
  }) : Object.defineProperty(s, "ref", { enumerable: !1, value: null }), s._store = {}, Object.defineProperty(s._store, "validated", {
@@ -175,33 +175,33 @@ function xt() {
175
175
  configurable: !1,
176
176
  enumerable: !1,
177
177
  writable: !0,
178
- value: _e
178
+ value: ee
179
179
  }), Object.defineProperty(s, "_debugTask", {
180
180
  configurable: !1,
181
181
  enumerable: !1,
182
182
  writable: !0,
183
- value: Se
183
+ value: ae
184
184
  }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
185
185
  }
186
- function l(s, m, T, F, te, H, _e, Se) {
187
- var V = m.children;
188
- if (V !== void 0)
186
+ function l(s, x, $, F, I, V, ee, ae) {
187
+ var h = x.children;
188
+ if (h !== void 0)
189
189
  if (F)
190
- if (z(V)) {
191
- for (F = 0; F < V.length; F++)
192
- f(V[F]);
193
- Object.freeze && Object.freeze(V);
190
+ if (X(h)) {
191
+ for (F = 0; F < h.length; F++)
192
+ p(h[F]);
193
+ Object.freeze && Object.freeze(h);
194
194
  } else
195
195
  console.error(
196
196
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
197
197
  );
198
- else f(V);
199
- if (M.call(m, "key")) {
200
- V = e(s);
201
- var re = Object.keys(m).filter(function(mt) {
202
- return mt !== "key";
198
+ else p(h);
199
+ if (B.call(x, "key")) {
200
+ h = e(s);
201
+ var b = Object.keys(x).filter(function(C) {
202
+ return C !== "key";
203
203
  });
204
- F = 0 < re.length ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}", ee[V + F] || (re = 0 < re.length ? "{" + re.join(": ..., ") + ": ...}" : "{}", console.error(
204
+ F = 0 < b.length ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}", re[h + F] || (b = 0 < b.length ? "{" + b.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,98 +209,98 @@ React keys must be passed directly to JSX without using spread:
209
209
  let props = %s;
210
210
  <%s key={someKey} {...props} />`,
211
211
  F,
212
- V,
213
- re,
214
- V
215
- ), ee[V + F] = !0);
212
+ h,
213
+ b,
214
+ h
215
+ ), re[h + F] = !0);
216
216
  }
217
- if (V = null, T !== void 0 && (r(T), V = "" + T), o(m) && (r(m.key), V = "" + m.key), "key" in m) {
218
- T = {};
219
- for (var Re in m)
220
- Re !== "key" && (T[Re] = m[Re]);
221
- } else T = m;
222
- return V && c(
223
- T,
217
+ if (h = null, $ !== void 0 && (r($), h = "" + $), o(x) && (r(x.key), h = "" + x.key), "key" in x) {
218
+ $ = {};
219
+ for (var R in x)
220
+ R !== "key" && ($[R] = x[R]);
221
+ } else $ = x;
222
+ return h && c(
223
+ $,
224
224
  typeof s == "function" ? s.displayName || s.name || "Unknown" : s
225
- ), y(
225
+ ), m(
226
226
  s,
227
+ h,
227
228
  V,
228
- H,
229
- te,
229
+ I,
230
230
  a(),
231
- T,
232
- _e,
233
- Se
231
+ $,
232
+ ee,
233
+ ae
234
234
  );
235
235
  }
236
- function f(s) {
236
+ function p(s) {
237
237
  typeof s == "object" && s !== null && s.$$typeof === k && s._store && (s._store.validated = 1);
238
238
  }
239
- var v = yt, k = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, z = Array.isArray, $ = console.createTask ? console.createTask : function() {
239
+ var w = wt, k = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), A = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), z = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, X = Array.isArray, L = console.createTask ? console.createTask : function() {
240
240
  return null;
241
241
  };
242
- v = {
242
+ w = {
243
243
  "react-stack-bottom-frame": function(s) {
244
244
  return s();
245
245
  }
246
246
  };
247
- var W, Y = {}, Q = v["react-stack-bottom-frame"].bind(
248
- v,
247
+ var U, Q = {}, H = w["react-stack-bottom-frame"].bind(
248
+ w,
249
249
  i
250
- )(), G = $(n(i)), ee = {};
251
- ce.Fragment = d, ce.jsx = function(s, m, T, F, te) {
252
- var H = 1e4 > A.recentlyCreatedOwnerStacks++;
250
+ )(), te = L(n(i)), re = {};
251
+ ge.Fragment = d, ge.jsx = function(s, x, $, F, I) {
252
+ var V = 1e4 > z.recentlyCreatedOwnerStacks++;
253
253
  return l(
254
254
  s,
255
- m,
256
- T,
255
+ x,
256
+ $,
257
257
  !1,
258
258
  F,
259
- te,
260
- H ? Error("react-stack-top-frame") : Q,
261
- H ? $(n(s)) : G
259
+ I,
260
+ V ? Error("react-stack-top-frame") : H,
261
+ V ? L(n(s)) : te
262
262
  );
263
- }, ce.jsxs = function(s, m, T, F, te) {
264
- var H = 1e4 > A.recentlyCreatedOwnerStacks++;
263
+ }, ge.jsxs = function(s, x, $, F, I) {
264
+ var V = 1e4 > z.recentlyCreatedOwnerStacks++;
265
265
  return l(
266
266
  s,
267
- m,
268
- T,
267
+ x,
268
+ $,
269
269
  !0,
270
270
  F,
271
- te,
272
- H ? Error("react-stack-top-frame") : Q,
273
- H ? $(n(s)) : G
271
+ I,
272
+ V ? Error("react-stack-top-frame") : H,
273
+ V ? L(n(s)) : te
274
274
  );
275
275
  };
276
- }()), ce;
276
+ }()), ge;
277
277
  }
278
- var We;
279
- function wt() {
280
- return We || (We = 1, process.env.NODE_ENV === "production" ? ye.exports = bt() : ye.exports = xt()), ye.exports;
278
+ var Je;
279
+ function St() {
280
+ return Je || (Je = 1, process.env.NODE_ENV === "production" ? Se.exports = Pt() : Se.exports = _t()), Se.exports;
281
281
  }
282
- var N = wt();
283
- function Oe() {
284
- return Oe = Object.assign ? Object.assign.bind() : function(e) {
282
+ var M = St();
283
+ function Be() {
284
+ return Be = Object.assign ? Object.assign.bind() : function(e) {
285
285
  for (var t = 1; t < arguments.length; t++) {
286
286
  var r = arguments[t];
287
287
  for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
288
288
  }
289
289
  return e;
290
- }, Oe.apply(null, arguments);
290
+ }, Be.apply(null, arguments);
291
291
  }
292
- function kt(e) {
292
+ function Tt(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 Pt(e) {
299
+ function Rt(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 Et = /* @__PURE__ */ function() {
303
+ var Ct = /* @__PURE__ */ function() {
304
304
  function e(r) {
305
305
  var n = this;
306
306
  this._insertTag = function(a) {
@@ -312,10 +312,10 @@ var Et = /* @__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(Pt(this));
315
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Rt(this));
316
316
  var a = this.tags[this.tags.length - 1];
317
317
  if (this.isSpeedy) {
318
- var i = kt(a);
318
+ var i = Tt(a);
319
319
  try {
320
320
  i.insertRule(n, i.cssRules.length);
321
321
  } catch {
@@ -329,66 +329,66 @@ var Et = /* @__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
- }(), B = "-ms-", we = "-moz-", P = "-webkit-", nt = "comm", Le = "rule", Fe = "decl", _t = "@import", at = "@keyframes", St = "@layer", Rt = Math.abs, ke = String.fromCharCode, At = Object.assign;
333
- function Ct(e, t) {
334
- return L(e, 0) ^ 45 ? (((t << 2 ^ L(e, 0)) << 2 ^ L(e, 1)) << 2 ^ L(e, 2)) << 2 ^ L(e, 3) : 0;
332
+ }(), q = "-ms-", Ae = "-moz-", _ = "-webkit-", lt = "comm", ze = "rule", We = "decl", It = "@import", ut = "@keyframes", At = "@layer", Ot = Math.abs, Oe = String.fromCharCode, jt = Object.assign;
333
+ function $t(e, t) {
334
+ return Y(e, 0) ^ 45 ? (((t << 2 ^ Y(e, 0)) << 2 ^ Y(e, 1)) << 2 ^ Y(e, 2)) << 2 ^ Y(e, 3) : 0;
335
335
  }
336
- function it(e) {
336
+ function dt(e) {
337
337
  return e.trim();
338
338
  }
339
- function Tt(e, t) {
339
+ function Nt(e, t) {
340
340
  return (e = t.exec(e)) ? e[0] : e;
341
341
  }
342
- function E(e, t, r) {
342
+ function S(e, t, r) {
343
343
  return e.replace(t, r);
344
344
  }
345
- function je(e, t) {
345
+ function De(e, t) {
346
346
  return e.indexOf(t);
347
347
  }
348
- function L(e, t) {
348
+ function Y(e, t) {
349
349
  return e.charCodeAt(t) | 0;
350
350
  }
351
- function fe(e, t, r) {
351
+ function ke(e, t, r) {
352
352
  return e.slice(t, r);
353
353
  }
354
- function X(e) {
354
+ function ie(e) {
355
355
  return e.length;
356
356
  }
357
- function Ve(e) {
357
+ function Ye(e) {
358
358
  return e.length;
359
359
  }
360
- function ge(e, t) {
360
+ function Te(e, t) {
361
361
  return t.push(e), e;
362
362
  }
363
- function It(e, t) {
363
+ function Vt(e, t) {
364
364
  return e.map(t).join("");
365
365
  }
366
- var Pe = 1, ae = 1, ot = 0, U = 0, j = 0, oe = "";
367
- function Ee(e, t, r, n, a, i, o) {
368
- return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: ae, length: o, return: "" };
366
+ var je = 1, he = 1, ft = 0, J = 0, D = 0, ye = "";
367
+ function $e(e, t, r, n, a, i, o) {
368
+ return { value: e, root: t, parent: r, type: n, props: a, children: i, line: je, column: he, length: o, return: "" };
369
369
  }
370
- function le(e, t) {
371
- return At(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
370
+ function be(e, t) {
371
+ return jt($e("", null, null, "", null, null, 0), e, { length: -e.length }, t);
372
372
  }
373
- function Ot() {
374
- return j;
373
+ function Lt() {
374
+ return D;
375
375
  }
376
- function jt() {
377
- return j = U > 0 ? L(oe, --U) : 0, ae--, j === 10 && (ae = 1, Pe--), j;
376
+ function Ft() {
377
+ return D = J > 0 ? Y(ye, --J) : 0, he--, D === 10 && (he = 1, je--), D;
378
378
  }
379
- function D() {
380
- return j = U < ot ? L(oe, U++) : 0, ae++, j === 10 && (ae = 1, Pe++), j;
379
+ function Z() {
380
+ return D = J < ft ? Y(ye, J++) : 0, he++, D === 10 && (he = 1, je++), D;
381
381
  }
382
- function J() {
383
- return L(oe, U);
382
+ function se() {
383
+ return Y(ye, J);
384
384
  }
385
- function ve() {
386
- return U;
385
+ function Re() {
386
+ return J;
387
387
  }
388
- function me(e, t) {
389
- return fe(oe, e, t);
388
+ function _e(e, t) {
389
+ return ke(ye, e, t);
390
390
  }
391
- function pe(e) {
391
+ function Ee(e) {
392
392
  switch (e) {
393
393
  // \0 \t \n \r \s whitespace token
394
394
  case 0:
@@ -426,260 +426,260 @@ function pe(e) {
426
426
  }
427
427
  return 0;
428
428
  }
429
- function st(e) {
430
- return Pe = ae = 1, ot = X(oe = e), U = 0, [];
429
+ function pt(e) {
430
+ return je = he = 1, ft = ie(ye = e), J = 0, [];
431
431
  }
432
- function ct(e) {
433
- return oe = "", e;
432
+ function ht(e) {
433
+ return ye = "", e;
434
434
  }
435
- function be(e) {
436
- return it(me(U - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
435
+ function Ce(e) {
436
+ return dt(_e(J - 1, Ue(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
437
437
  }
438
- function $t(e) {
439
- for (; (j = J()) && j < 33; )
440
- D();
441
- return pe(e) > 2 || pe(j) > 3 ? "" : " ";
438
+ function Bt(e) {
439
+ for (; (D = se()) && D < 33; )
440
+ Z();
441
+ return Ee(e) > 2 || Ee(D) > 3 ? "" : " ";
442
442
  }
443
- function Nt(e, t) {
444
- for (; --t && D() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
443
+ function Dt(e, t) {
444
+ for (; --t && Z() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); )
445
445
  ;
446
- return me(e, ve() + (t < 6 && J() == 32 && D() == 32));
446
+ return _e(e, Re() + (t < 6 && se() == 32 && Z() == 32));
447
447
  }
448
- function $e(e) {
449
- for (; D(); )
450
- switch (j) {
448
+ function Ue(e) {
449
+ for (; Z(); )
450
+ switch (D) {
451
451
  // ] ) " '
452
452
  case e:
453
- return U;
453
+ return J;
454
454
  // " '
455
455
  case 34:
456
456
  case 39:
457
- e !== 34 && e !== 39 && $e(j);
457
+ e !== 34 && e !== 39 && Ue(D);
458
458
  break;
459
459
  // (
460
460
  case 40:
461
- e === 41 && $e(e);
461
+ e === 41 && Ue(e);
462
462
  break;
463
463
  // \
464
464
  case 92:
465
- D();
465
+ Z();
466
466
  break;
467
467
  }
468
- return U;
468
+ return J;
469
469
  }
470
- function Lt(e, t) {
471
- for (; D() && e + j !== 57; )
472
- if (e + j === 84 && J() === 47)
470
+ function Ut(e, t) {
471
+ for (; Z() && e + D !== 57; )
472
+ if (e + D === 84 && se() === 47)
473
473
  break;
474
- return "/*" + me(t, U - 1) + "*" + ke(e === 47 ? e : D());
474
+ return "/*" + _e(t, J - 1) + "*" + Oe(e === 47 ? e : Z());
475
475
  }
476
- function Ft(e) {
477
- for (; !pe(J()); )
478
- D();
479
- return me(e, U);
476
+ function Mt(e) {
477
+ for (; !Ee(se()); )
478
+ Z();
479
+ return _e(e, J);
480
480
  }
481
- function Vt(e) {
482
- return ct(xe("", null, null, null, [""], e = st(e), 0, [0], e));
481
+ function zt(e) {
482
+ return ht(Ie("", null, null, null, [""], e = pt(e), 0, [0], e));
483
483
  }
484
- function xe(e, t, r, n, a, i, o, c, u) {
485
- for (var y = 0, l = 0, f = o, v = 0, k = 0, g = 0, d = 1, b = 1, p = 1, x = 0, _ = "", S = a, I = i, w = n, h = _; b; )
486
- switch (g = x, x = D()) {
484
+ function Ie(e, t, r, n, a, i, o, c, u) {
485
+ for (var m = 0, l = 0, p = o, w = 0, k = 0, g = 0, d = 1, y = 1, v = 1, E = 0, A = "", T = a, O = i, j = n, f = A; y; )
486
+ switch (g = E, E = Z()) {
487
487
  // (
488
488
  case 40:
489
- if (g != 108 && L(h, f - 1) == 58) {
490
- je(h += E(be(x), "&", "&\f"), "&\f") != -1 && (p = -1);
489
+ if (g != 108 && Y(f, p - 1) == 58) {
490
+ De(f += S(Ce(E), "&", "&\f"), "&\f") != -1 && (v = -1);
491
491
  break;
492
492
  }
493
493
  // " ' [
494
494
  case 34:
495
495
  case 39:
496
496
  case 91:
497
- h += be(x);
497
+ f += Ce(E);
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
- h += $t(g);
504
+ f += Bt(g);
505
505
  break;
506
506
  // \
507
507
  case 92:
508
- h += Nt(ve() - 1, 7);
508
+ f += Dt(Re() - 1, 7);
509
509
  continue;
510
510
  // /
511
511
  case 47:
512
- switch (J()) {
512
+ switch (se()) {
513
513
  case 42:
514
514
  case 47:
515
- ge(Bt(Lt(D(), ve()), t, r), u);
515
+ Te(Wt(Ut(Z(), Re()), t, r), u);
516
516
  break;
517
517
  default:
518
- h += "/";
518
+ f += "/";
519
519
  }
520
520
  break;
521
521
  // {
522
522
  case 123 * d:
523
- c[y++] = X(h) * p;
523
+ c[m++] = ie(f) * v;
524
524
  // } ; \0
525
525
  case 125 * d:
526
526
  case 59:
527
527
  case 0:
528
- switch (x) {
528
+ switch (E) {
529
529
  // \0 }
530
530
  case 0:
531
531
  case 125:
532
- b = 0;
532
+ y = 0;
533
533
  // ;
534
534
  case 59 + l:
535
- p == -1 && (h = E(h, /\f/g, "")), k > 0 && X(h) - f && ge(k > 32 ? qe(h + ";", n, r, f - 1) : qe(E(h, " ", "") + ";", n, r, f - 2), u);
535
+ v == -1 && (f = S(f, /\f/g, "")), k > 0 && ie(f) - p && Te(k > 32 ? Ze(f + ";", n, r, p - 1) : Ze(S(f, " ", "") + ";", n, r, p - 2), u);
536
536
  break;
537
537
  // @ ;
538
538
  case 59:
539
- h += ";";
539
+ f += ";";
540
540
  // { rule/at-rule
541
541
  default:
542
- if (ge(w = Ye(h, t, r, y, l, a, c, _, S = [], I = [], f), i), x === 123)
542
+ if (Te(j = Ke(f, t, r, m, l, a, c, A, T = [], O = [], p), i), E === 123)
543
543
  if (l === 0)
544
- xe(h, t, w, w, S, i, f, c, I);
544
+ Ie(f, t, j, j, T, i, p, c, O);
545
545
  else
546
- switch (v === 99 && L(h, 3) === 110 ? 100 : v) {
546
+ switch (w === 99 && Y(f, 3) === 110 ? 100 : w) {
547
547
  // d l m s
548
548
  case 100:
549
549
  case 108:
550
550
  case 109:
551
551
  case 115:
552
- xe(e, w, w, n && ge(Ye(e, w, w, 0, 0, a, c, _, a, S = [], f), I), a, I, f, c, n ? S : I);
552
+ Ie(e, j, j, n && Te(Ke(e, j, j, 0, 0, a, c, A, a, T = [], p), O), a, O, p, c, n ? T : O);
553
553
  break;
554
554
  default:
555
- xe(h, w, w, w, [""], I, 0, c, I);
555
+ Ie(f, j, j, j, [""], O, 0, c, O);
556
556
  }
557
557
  }
558
- y = l = k = 0, d = p = 1, _ = h = "", f = o;
558
+ m = l = k = 0, d = v = 1, A = f = "", p = o;
559
559
  break;
560
560
  // :
561
561
  case 58:
562
- f = 1 + X(h), k = g;
562
+ p = 1 + ie(f), k = g;
563
563
  default:
564
564
  if (d < 1) {
565
- if (x == 123)
565
+ if (E == 123)
566
566
  --d;
567
- else if (x == 125 && d++ == 0 && jt() == 125)
567
+ else if (E == 125 && d++ == 0 && Ft() == 125)
568
568
  continue;
569
569
  }
570
- switch (h += ke(x), x * d) {
570
+ switch (f += Oe(E), E * d) {
571
571
  // &
572
572
  case 38:
573
- p = l > 0 ? 1 : (h += "\f", -1);
573
+ v = l > 0 ? 1 : (f += "\f", -1);
574
574
  break;
575
575
  // ,
576
576
  case 44:
577
- c[y++] = (X(h) - 1) * p, p = 1;
577
+ c[m++] = (ie(f) - 1) * v, v = 1;
578
578
  break;
579
579
  // @
580
580
  case 64:
581
- J() === 45 && (h += be(D())), v = J(), l = f = X(_ = h += Ft(ve())), x++;
581
+ se() === 45 && (f += Ce(Z())), w = se(), l = p = ie(A = f += Mt(Re())), E++;
582
582
  break;
583
583
  // -
584
584
  case 45:
585
- g === 45 && X(h) == 2 && (d = 0);
585
+ g === 45 && ie(f) == 2 && (d = 0);
586
586
  }
587
587
  }
588
588
  return i;
589
589
  }
590
- function Ye(e, t, r, n, a, i, o, c, u, y, l) {
591
- for (var f = a - 1, v = a === 0 ? i : [""], k = Ve(v), g = 0, d = 0, b = 0; g < n; ++g)
592
- for (var p = 0, x = fe(e, f + 1, f = Rt(d = o[g])), _ = e; p < k; ++p)
593
- (_ = it(d > 0 ? v[p] + " " + x : E(x, /&\f/g, v[p]))) && (u[b++] = _);
594
- return Ee(e, t, r, a === 0 ? Le : c, u, y, l);
590
+ function Ke(e, t, r, n, a, i, o, c, u, m, l) {
591
+ for (var p = a - 1, w = a === 0 ? i : [""], k = Ye(w), g = 0, d = 0, y = 0; g < n; ++g)
592
+ for (var v = 0, E = ke(e, p + 1, p = Ot(d = o[g])), A = e; v < k; ++v)
593
+ (A = dt(d > 0 ? w[v] + " " + E : S(E, /&\f/g, w[v]))) && (u[y++] = A);
594
+ return $e(e, t, r, a === 0 ? ze : c, u, m, l);
595
595
  }
596
- function Bt(e, t, r) {
597
- return Ee(e, t, r, nt, ke(Ot()), fe(e, 2, -2), 0);
596
+ function Wt(e, t, r) {
597
+ return $e(e, t, r, lt, Oe(Lt()), ke(e, 2, -2), 0);
598
598
  }
599
- function qe(e, t, r, n) {
600
- return Ee(e, t, r, Fe, fe(e, 0, n), fe(e, n + 1, -1), n);
599
+ function Ze(e, t, r, n) {
600
+ return $e(e, t, r, We, ke(e, 0, n), ke(e, n + 1, -1), n);
601
601
  }
602
- function ne(e, t) {
603
- for (var r = "", n = Ve(e), a = 0; a < n; a++)
602
+ function pe(e, t) {
603
+ for (var r = "", n = Ye(e), a = 0; a < n; a++)
604
604
  r += t(e[a], a, e, t) || "";
605
605
  return r;
606
606
  }
607
- function Mt(e, t, r, n) {
607
+ function Yt(e, t, r, n) {
608
608
  switch (e.type) {
609
- case St:
609
+ case At:
610
610
  if (e.children.length) break;
611
- case _t:
612
- case Fe:
611
+ case It:
612
+ case We:
613
613
  return e.return = e.return || e.value;
614
- case nt:
614
+ case lt:
615
615
  return "";
616
- case at:
617
- return e.return = e.value + "{" + ne(e.children, n) + "}";
618
- case Le:
616
+ case ut:
617
+ return e.return = e.value + "{" + pe(e.children, n) + "}";
618
+ case ze:
619
619
  e.value = e.props.join(",");
620
620
  }
621
- return X(r = ne(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
621
+ return ie(r = pe(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
622
622
  }
623
- function Ut(e) {
624
- var t = Ve(e);
623
+ function qt(e) {
624
+ var t = Ye(e);
625
625
  return function(r, n, a, i) {
626
626
  for (var o = "", c = 0; c < t; c++)
627
627
  o += e[c](r, n, a, i) || "";
628
628
  return o;
629
629
  };
630
630
  }
631
- function zt(e) {
631
+ function Gt(e) {
632
632
  return function(t) {
633
633
  t.root || (t = t.return) && e(t);
634
634
  };
635
635
  }
636
- function lt(e) {
636
+ function mt(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 Dt = function(t, r, n) {
643
- for (var a = 0, i = 0; a = i, i = J(), a === 38 && i === 12 && (r[n] = 1), !pe(i); )
644
- D();
645
- return me(t, U);
646
- }, Wt = function(t, r) {
642
+ var Ht = function(t, r, n) {
643
+ for (var a = 0, i = 0; a = i, i = se(), a === 38 && i === 12 && (r[n] = 1), !Ee(i); )
644
+ Z();
645
+ return _e(t, J);
646
+ }, Xt = function(t, r) {
647
647
  var n = -1, a = 44;
648
648
  do
649
- switch (pe(a)) {
649
+ switch (Ee(a)) {
650
650
  case 0:
651
- a === 38 && J() === 12 && (r[n] = 1), t[n] += Dt(U - 1, r, n);
651
+ a === 38 && se() === 12 && (r[n] = 1), t[n] += Ht(J - 1, r, n);
652
652
  break;
653
653
  case 2:
654
- t[n] += be(a);
654
+ t[n] += Ce(a);
655
655
  break;
656
656
  case 4:
657
657
  if (a === 44) {
658
- t[++n] = J() === 58 ? "&\f" : "", r[n] = t[n].length;
658
+ t[++n] = se() === 58 ? "&\f" : "", r[n] = t[n].length;
659
659
  break;
660
660
  }
661
661
  // fallthrough
662
662
  default:
663
- t[n] += ke(a);
663
+ t[n] += Oe(a);
664
664
  }
665
- while (a = D());
665
+ while (a = Z());
666
666
  return t;
667
- }, Yt = function(t, r) {
668
- return ct(Wt(st(t), r));
669
- }, Ge = /* @__PURE__ */ new WeakMap(), qt = function(t) {
667
+ }, Jt = function(t, r) {
668
+ return ht(Xt(pt(t), r));
669
+ }, Qe = /* @__PURE__ */ new WeakMap(), Kt = 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 && !Ge.get(n)) && !a) {
676
- Ge.set(t, !0);
677
- for (var i = [], o = Yt(r, i), c = n.props, u = 0, y = 0; u < o.length; u++)
678
- for (var l = 0; l < c.length; l++, y++)
679
- t.props[y] = i[u] ? o[u].replace(/&\f/g, c[l]) : c[l] + " " + o[u];
675
+ if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Qe.get(n)) && !a) {
676
+ Qe.set(t, !0);
677
+ for (var i = [], o = Jt(r, i), c = n.props, u = 0, m = 0; u < o.length; u++)
678
+ for (var l = 0; l < c.length; l++, m++)
679
+ t.props[m] = i[u] ? o[u].replace(/&\f/g, c[l]) : c[l] + " " + o[u];
680
680
  }
681
681
  }
682
- }, Gt = function(t) {
682
+ }, Zt = function(t) {
683
683
  if (t.type === "decl") {
684
684
  var r = t.value;
685
685
  // charcode for l
@@ -687,11 +687,11 @@ var Dt = function(t, r, n) {
687
687
  r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
688
688
  }
689
689
  };
690
- function ut(e, t) {
691
- switch (Ct(e, t)) {
690
+ function yt(e, t) {
691
+ switch ($t(e, t)) {
692
692
  // color-adjust
693
693
  case 5103:
694
- return P + "print-" + e + e;
694
+ return _ + "print-" + e + e;
695
695
  // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
696
696
  case 5737:
697
697
  case 4201:
@@ -721,58 +721,58 @@ function ut(e, t) {
721
721
  case 5365:
722
722
  case 5621:
723
723
  case 3829:
724
- return P + e + e;
724
+ return _ + e + e;
725
725
  // appearance, user-select, transform, hyphens, text-size-adjust
726
726
  case 5349:
727
727
  case 4246:
728
728
  case 4810:
729
729
  case 6968:
730
730
  case 2756:
731
- return P + e + we + e + B + e + e;
731
+ return _ + e + Ae + e + q + e + e;
732
732
  // flex, flex-direction
733
733
  case 6828:
734
734
  case 4268:
735
- return P + e + B + e + e;
735
+ return _ + e + q + e + e;
736
736
  // order
737
737
  case 6165:
738
- return P + e + B + "flex-" + e + e;
738
+ return _ + e + q + "flex-" + e + e;
739
739
  // align-items
740
740
  case 5187:
741
- return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + B + "flex-$1$2") + e;
741
+ return _ + e + S(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + q + "flex-$1$2") + e;
742
742
  // align-self
743
743
  case 5443:
744
- return P + e + B + "flex-item-" + E(e, /flex-|-self/, "") + e;
744
+ return _ + e + q + "flex-item-" + S(e, /flex-|-self/, "") + e;
745
745
  // align-content
746
746
  case 4675:
747
- return P + e + B + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
747
+ return _ + e + q + "flex-line-pack" + S(e, /align-content|flex-|-self/, "") + e;
748
748
  // flex-shrink
749
749
  case 5548:
750
- return P + e + B + E(e, "shrink", "negative") + e;
750
+ return _ + e + q + S(e, "shrink", "negative") + e;
751
751
  // flex-basis
752
752
  case 5292:
753
- return P + e + B + E(e, "basis", "preferred-size") + e;
753
+ return _ + e + q + S(e, "basis", "preferred-size") + e;
754
754
  // flex-grow
755
755
  case 6060:
756
- return P + "box-" + E(e, "-grow", "") + P + e + B + E(e, "grow", "positive") + e;
756
+ return _ + "box-" + S(e, "-grow", "") + _ + e + q + S(e, "grow", "positive") + e;
757
757
  // transition
758
758
  case 4554:
759
- return P + E(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
759
+ return _ + S(e, /([^-])(transform)/g, "$1" + _ + "$2") + e;
760
760
  // cursor
761
761
  case 6187:
762
- return E(E(E(e, /(zoom-|grab)/, P + "$1"), /(image-set)/, P + "$1"), e, "") + e;
762
+ return S(S(S(e, /(zoom-|grab)/, _ + "$1"), /(image-set)/, _ + "$1"), e, "") + e;
763
763
  // background, background-image
764
764
  case 5495:
765
765
  case 3959:
766
- return E(e, /(image-set\([^]*)/, P + "$1$`$1");
766
+ return S(e, /(image-set\([^]*)/, _ + "$1$`$1");
767
767
  // justify-content
768
768
  case 4968:
769
- return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + B + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
769
+ return S(S(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + q + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e;
770
770
  // (margin|padding)-inline-(start|end)
771
771
  case 4095:
772
772
  case 3583:
773
773
  case 4068:
774
774
  case 2532:
775
- return E(e, /(.+)-inline(.+)/, P + "$1$2") + e;
775
+ return S(e, /(.+)-inline(.+)/, _ + "$1$2") + e;
776
776
  // (min|max)?(width|height|inline-size|block-size)
777
777
  case 8116:
778
778
  case 7059:
@@ -786,114 +786,114 @@ function ut(e, t) {
786
786
  case 5789:
787
787
  case 5021:
788
788
  case 4765:
789
- if (X(e) - 1 - t > 6) switch (L(e, t + 1)) {
789
+ if (ie(e) - 1 - t > 6) switch (Y(e, t + 1)) {
790
790
  // (m)ax-content, (m)in-content
791
791
  case 109:
792
- if (L(e, t + 4) !== 45) break;
792
+ if (Y(e, t + 4) !== 45) break;
793
793
  // (f)ill-available, (f)it-content
794
794
  case 102:
795
- return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + (L(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
795
+ return S(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Ae + (Y(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
796
796
  // (s)tretch
797
797
  case 115:
798
- return ~je(e, "stretch") ? ut(E(e, "stretch", "fill-available"), t) + e : e;
798
+ return ~De(e, "stretch") ? yt(S(e, "stretch", "fill-available"), t) + e : e;
799
799
  }
800
800
  break;
801
801
  // position: sticky
802
802
  case 4949:
803
- if (L(e, t + 1) !== 115) break;
803
+ if (Y(e, t + 1) !== 115) break;
804
804
  // display: (flex|inline-flex)
805
805
  case 6444:
806
- switch (L(e, X(e) - 3 - (~je(e, "!important") && 10))) {
806
+ switch (Y(e, ie(e) - 3 - (~De(e, "!important") && 10))) {
807
807
  // stic(k)y
808
808
  case 107:
809
- return E(e, ":", ":" + P) + e;
809
+ return S(e, ":", ":" + _) + e;
810
810
  // (inline-)?fl(e)x
811
811
  case 101:
812
- return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + (L(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + B + "$2box$3") + e;
812
+ return S(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (Y(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + q + "$2box$3") + e;
813
813
  }
814
814
  break;
815
815
  // writing-mode
816
816
  case 5936:
817
- switch (L(e, t + 11)) {
817
+ switch (Y(e, t + 11)) {
818
818
  // vertical-l(r)
819
819
  case 114:
820
- return P + e + B + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
820
+ return _ + e + q + S(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
821
821
  // vertical-r(l)
822
822
  case 108:
823
- return P + e + B + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
823
+ return _ + e + q + S(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
824
824
  // horizontal(-)tb
825
825
  case 45:
826
- return P + e + B + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
826
+ return _ + e + q + S(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
827
827
  }
828
- return P + e + B + e + e;
828
+ return _ + e + q + e + e;
829
829
  }
830
830
  return e;
831
831
  }
832
- var Ht = function(t, r, n, a) {
832
+ var Qt = function(t, r, n, a) {
833
833
  if (t.length > -1 && !t.return) switch (t.type) {
834
- case Fe:
835
- t.return = ut(t.value, t.length);
834
+ case We:
835
+ t.return = yt(t.value, t.length);
836
836
  break;
837
- case at:
838
- return ne([le(t, {
839
- value: E(t.value, "@", "@" + P)
837
+ case ut:
838
+ return pe([be(t, {
839
+ value: S(t.value, "@", "@" + _)
840
840
  })], a);
841
- case Le:
842
- if (t.length) return It(t.props, function(i) {
843
- switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
841
+ case ze:
842
+ if (t.length) return Vt(t.props, function(i) {
843
+ switch (Nt(i, /(::plac\w+|:read-\w+)/)) {
844
844
  // :read-(only|write)
845
845
  case ":read-only":
846
846
  case ":read-write":
847
- return ne([le(t, {
848
- props: [E(i, /:(read-\w+)/, ":" + we + "$1")]
847
+ return pe([be(t, {
848
+ props: [S(i, /:(read-\w+)/, ":" + Ae + "$1")]
849
849
  })], a);
850
850
  // :placeholder
851
851
  case "::placeholder":
852
- return ne([le(t, {
853
- props: [E(i, /:(plac\w+)/, ":" + P + "input-$1")]
854
- }), le(t, {
855
- props: [E(i, /:(plac\w+)/, ":" + we + "$1")]
856
- }), le(t, {
857
- props: [E(i, /:(plac\w+)/, B + "input-$1")]
852
+ return pe([be(t, {
853
+ props: [S(i, /:(plac\w+)/, ":" + _ + "input-$1")]
854
+ }), be(t, {
855
+ props: [S(i, /:(plac\w+)/, ":" + Ae + "$1")]
856
+ }), be(t, {
857
+ props: [S(i, /:(plac\w+)/, q + "input-$1")]
858
858
  })], a);
859
859
  }
860
860
  return "";
861
861
  });
862
862
  }
863
- }, Xt = [Ht], Kt = function(t) {
863
+ }, er = [Qt], tr = 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])");
867
867
  Array.prototype.forEach.call(n, function(d) {
868
- var b = d.getAttribute("data-emotion");
869
- b.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
868
+ var y = d.getAttribute("data-emotion");
869
+ y.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
870
870
  });
871
871
  }
872
- var a = t.stylisPlugins || Xt, i = {}, o, c = [];
872
+ var a = t.stylisPlugins || er, i = {}, o, c = [];
873
873
  o = 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
876
876
  document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
877
877
  function(d) {
878
- for (var b = d.getAttribute("data-emotion").split(" "), p = 1; p < b.length; p++)
879
- i[b[p]] = !0;
878
+ for (var y = d.getAttribute("data-emotion").split(" "), v = 1; v < y.length; v++)
879
+ i[y[v]] = !0;
880
880
  c.push(d);
881
881
  }
882
882
  );
883
- var u, y = [qt, Gt];
883
+ var u, m = [Kt, Zt];
884
884
  {
885
- var l, f = [Mt, zt(function(d) {
885
+ var l, p = [Yt, Gt(function(d) {
886
886
  l.insert(d);
887
- })], v = Ut(y.concat(a, f)), k = function(b) {
888
- return ne(Vt(b), v);
887
+ })], w = qt(m.concat(a, p)), k = function(y) {
888
+ return pe(zt(y), w);
889
889
  };
890
- u = function(b, p, x, _) {
891
- l = x, k(b ? b + "{" + p.styles + "}" : p.styles), _ && (g.inserted[p.name] = !0);
890
+ u = function(y, v, E, A) {
891
+ l = E, k(y ? y + "{" + v.styles + "}" : v.styles), A && (g.inserted[v.name] = !0);
892
892
  };
893
893
  }
894
894
  var g = {
895
895
  key: r,
896
- sheet: new Et({
896
+ sheet: new Ct({
897
897
  key: r,
898
898
  container: o,
899
899
  nonce: t.nonce,
@@ -907,14 +907,14 @@ var Ht = function(t, r, n, a) {
907
907
  insert: u
908
908
  };
909
909
  return g.sheet.hydrate(c), g;
910
- }, Jt = !0;
911
- function Zt(e, t, r) {
910
+ }, rr = !0;
911
+ function nr(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 dt = function(t, r, n) {
917
+ var vt = 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 dt = 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
- Jt === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
929
- }, Qt = function(t, r, n) {
930
- dt(t, r, n);
928
+ rr === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
929
+ }, ar = function(t, r, n) {
930
+ vt(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 dt = function(t, r, n) {
936
936
  while (i !== void 0);
937
937
  }
938
938
  };
939
- function er(e) {
939
+ function ir(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 er(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 tr = {
958
+ var or = {
959
959
  animationIterationCount: 1,
960
960
  aspectRatio: 1,
961
961
  borderImageOutset: 1,
@@ -1004,28 +1004,28 @@ var tr = {
1004
1004
  strokeMiterlimit: 1,
1005
1005
  strokeOpacity: 1,
1006
1006
  strokeWidth: 1
1007
- }, rr = /[A-Z]|^ms/g, nr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, ft = function(t) {
1007
+ }, sr = /[A-Z]|^ms/g, cr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, gt = function(t) {
1008
1008
  return t.charCodeAt(1) === 45;
1009
- }, He = function(t) {
1009
+ }, et = function(t) {
1010
1010
  return t != null && typeof t != "boolean";
1011
- }, Ae = /* @__PURE__ */ lt(function(e) {
1012
- return ft(e) ? e : e.replace(rr, "-$&").toLowerCase();
1013
- }), Xe = function(t, r) {
1011
+ }, Ne = /* @__PURE__ */ mt(function(e) {
1012
+ return gt(e) ? e : e.replace(sr, "-$&").toLowerCase();
1013
+ }), tt = 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(nr, function(n, a, i) {
1019
- return K = {
1018
+ return r.replace(cr, function(n, a, i) {
1019
+ return oe = {
1020
1020
  name: a,
1021
1021
  styles: i,
1022
- next: K
1022
+ next: oe
1023
1023
  }, a;
1024
1024
  });
1025
1025
  }
1026
- return tr[t] !== 1 && !ft(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1026
+ return or[t] !== 1 && !gt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
1027
1027
  };
1028
- function he(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 he(e, t, r) {
1037
1037
  case "object": {
1038
1038
  var a = r;
1039
1039
  if (a.anim === 1)
1040
- return K = {
1040
+ return oe = {
1041
1041
  name: a.name,
1042
1042
  styles: a.styles,
1043
- next: K
1043
+ next: oe
1044
1044
  }, a.name;
1045
1045
  var i = r;
1046
1046
  if (i.styles !== void 0) {
1047
1047
  var o = i.next;
1048
1048
  if (o !== void 0)
1049
1049
  for (; o !== void 0; )
1050
- K = {
1050
+ oe = {
1051
1051
  name: o.name,
1052
1052
  styles: o.styles,
1053
- next: K
1053
+ next: oe
1054
1054
  }, o = o.next;
1055
1055
  var c = i.styles + ";";
1056
1056
  return c;
1057
1057
  }
1058
- return ar(e, t, r);
1058
+ return lr(e, t, r);
1059
1059
  }
1060
1060
  case "function": {
1061
1061
  if (e !== void 0) {
1062
- var u = K, y = r(e);
1063
- return K = u, he(e, t, y);
1062
+ var u = oe, m = r(e);
1063
+ return oe = u, Pe(e, t, m);
1064
1064
  }
1065
1065
  break;
1066
1066
  }
@@ -1068,98 +1068,98 @@ function he(e, t, r) {
1068
1068
  var l = r;
1069
1069
  if (t == null)
1070
1070
  return l;
1071
- var f = t[l];
1072
- return f !== void 0 ? f : l;
1071
+ var p = t[l];
1072
+ return p !== void 0 ? p : l;
1073
1073
  }
1074
- function ar(e, t, r) {
1074
+ function lr(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 += he(e, t, r[a]) + ";";
1078
+ n += Pe(e, t, r[a]) + ";";
1079
1079
  else
1080
1080
  for (var i in r) {
1081
1081
  var o = r[i];
1082
1082
  if (typeof o != "object") {
1083
1083
  var c = o;
1084
- t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : He(c) && (n += Ae(i) + ":" + Xe(i, c) + ";");
1084
+ t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : et(c) && (n += Ne(i) + ":" + tt(i, c) + ";");
1085
1085
  } else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0))
1086
1086
  for (var u = 0; u < o.length; u++)
1087
- He(o[u]) && (n += Ae(i) + ":" + Xe(i, o[u]) + ";");
1087
+ et(o[u]) && (n += Ne(i) + ":" + tt(i, o[u]) + ";");
1088
1088
  else {
1089
- var y = he(e, t, o);
1089
+ var m = Pe(e, t, o);
1090
1090
  switch (i) {
1091
1091
  case "animation":
1092
1092
  case "animationName": {
1093
- n += Ae(i) + ":" + y + ";";
1093
+ n += Ne(i) + ":" + m + ";";
1094
1094
  break;
1095
1095
  }
1096
1096
  default:
1097
- n += i + "{" + y + "}";
1097
+ n += i + "{" + m + "}";
1098
1098
  }
1099
1099
  }
1100
1100
  }
1101
1101
  return n;
1102
1102
  }
1103
- var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
1104
- function ir(e, t, r) {
1103
+ var rt = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
1104
+ function ur(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
- K = void 0;
1108
+ oe = void 0;
1109
1109
  var i = e[0];
1110
1110
  if (i == null || i.raw === void 0)
1111
- n = !1, a += he(r, t, i);
1111
+ n = !1, a += Pe(r, t, i);
1112
1112
  else {
1113
1113
  var o = i;
1114
1114
  a += o[0];
1115
1115
  }
1116
1116
  for (var c = 1; c < e.length; c++)
1117
- if (a += he(r, t, e[c]), n) {
1117
+ if (a += Pe(r, t, e[c]), n) {
1118
1118
  var u = i;
1119
1119
  a += u[c];
1120
1120
  }
1121
- Ke.lastIndex = 0;
1122
- for (var y = "", l; (l = Ke.exec(a)) !== null; )
1123
- y += "-" + l[1];
1124
- var f = er(a) + y;
1121
+ rt.lastIndex = 0;
1122
+ for (var m = "", l; (l = rt.exec(a)) !== null; )
1123
+ m += "-" + l[1];
1124
+ var p = ir(a) + m;
1125
1125
  return {
1126
- name: f,
1126
+ name: p,
1127
1127
  styles: a,
1128
- next: K
1128
+ next: oe
1129
1129
  };
1130
1130
  }
1131
- var or = function(t) {
1131
+ var dr = function(t) {
1132
1132
  return t();
1133
- }, sr = Z.useInsertionEffect ? Z.useInsertionEffect : !1, cr = sr || or, pt = /* @__PURE__ */ Z.createContext(
1133
+ }, fr = le.useInsertionEffect ? le.useInsertionEffect : !1, pr = fr || dr, bt = /* @__PURE__ */ le.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__ */ Kt({
1140
+ typeof HTMLElement < "u" ? /* @__PURE__ */ tr({
1141
1141
  key: "css"
1142
1142
  }) : null
1143
1143
  );
1144
- pt.Provider;
1145
- var lr = function(t) {
1146
- return /* @__PURE__ */ gt(function(r, n) {
1147
- var a = tt(pt);
1144
+ bt.Provider;
1145
+ var hr = function(t) {
1146
+ return /* @__PURE__ */ kt(function(r, n) {
1147
+ var a = st(bt);
1148
1148
  return t(r, a, n);
1149
1149
  });
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(
1150
+ }, mr = /* @__PURE__ */ le.createContext({}), yr = /^((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)-.*))$/, vr = /* @__PURE__ */ mt(
1151
1151
  function(e) {
1152
- return dr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1152
+ return yr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1153
1153
  }
1154
1154
  /* Z+1 */
1155
- ), pr = fr, hr = function(t) {
1155
+ ), gr = vr, br = function(t) {
1156
1156
  return t !== "theme";
1157
- }, Je = function(t) {
1157
+ }, nt = 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 ? pr : hr;
1162
- }, Ze = function(t, r, n) {
1161
+ t.charCodeAt(0) > 96 ? gr : br;
1162
+ }, at = function(t, r, n) {
1163
1163
  var a;
1164
1164
  if (r) {
1165
1165
  var i = r.shouldForwardProp;
@@ -1168,57 +1168,57 @@ var lr = function(t) {
1168
1168
  } : i;
1169
1169
  }
1170
1170
  return typeof a != "function" && n && (a = t.__emotion_forwardProp), a;
1171
- }, mr = function(t) {
1171
+ }, xr = function(t) {
1172
1172
  var r = t.cache, n = t.serialized, a = t.isStringTag;
1173
- return dt(r, n, a), cr(function() {
1174
- return Qt(r, n, a);
1173
+ return vt(r, n, a), pr(function() {
1174
+ return ar(r, n, a);
1175
1175
  }), null;
1176
- }, yr = function e(t, r) {
1176
+ }, wr = function e(t, r) {
1177
1177
  var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, o;
1178
1178
  r !== void 0 && (i = r.label, o = r.target);
1179
- var c = Ze(t, r, n), u = c || Je(a), y = !u("as");
1179
+ var c = at(t, r, n), u = c || nt(a), m = !u("as");
1180
1180
  return function() {
1181
- var l = arguments, f = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
- if (i !== void 0 && f.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
- f.push.apply(f, l);
1181
+ var l = arguments, p = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
1182
+ if (i !== void 0 && p.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
1183
+ p.push.apply(p, l);
1184
1184
  else {
1185
- var v = l[0];
1186
- f.push(v[0]);
1185
+ var w = l[0];
1186
+ p.push(w[0]);
1187
1187
  for (var k = l.length, g = 1; g < k; g++)
1188
- f.push(l[g], v[g]);
1188
+ p.push(l[g], w[g]);
1189
1189
  }
1190
- var d = lr(function(b, p, x) {
1191
- var _ = y && b.as || a, S = "", I = [], w = b;
1192
- if (b.theme == null) {
1193
- w = {};
1194
- for (var h in b)
1195
- w[h] = b[h];
1196
- w.theme = Z.useContext(ur);
1190
+ var d = hr(function(y, v, E) {
1191
+ var A = m && y.as || a, T = "", O = [], j = y;
1192
+ if (y.theme == null) {
1193
+ j = {};
1194
+ for (var f in y)
1195
+ j[f] = y[f];
1196
+ j.theme = le.useContext(mr);
1197
1197
  }
1198
- typeof b.className == "string" ? S = Zt(p.registered, I, b.className) : b.className != null && (S = b.className + " ");
1199
- var C = ir(f.concat(I), p.registered, w);
1200
- S += p.key + "-" + C.name, o !== void 0 && (S += " " + o);
1201
- var R = y && c === void 0 ? Je(_) : u, O = {};
1202
- for (var A in b)
1203
- y && A === "as" || R(A) && (O[A] = b[A]);
1204
- return O.className = S, x && (O.ref = x), /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(mr, {
1205
- cache: p,
1206
- serialized: C,
1207
- isStringTag: typeof _ == "string"
1208
- }), /* @__PURE__ */ Z.createElement(_, O));
1198
+ typeof y.className == "string" ? T = nr(v.registered, O, y.className) : y.className != null && (T = y.className + " ");
1199
+ var G = ur(p.concat(O), v.registered, j);
1200
+ T += v.key + "-" + G.name, o !== void 0 && (T += " " + o);
1201
+ var P = m && c === void 0 ? nt(A) : u, N = {};
1202
+ for (var z in y)
1203
+ m && z === "as" || P(z) && (N[z] = y[z]);
1204
+ return N.className = T, E && (N.ref = E), /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(xr, {
1205
+ cache: v,
1206
+ serialized: G,
1207
+ isStringTag: typeof A == "string"
1208
+ }), /* @__PURE__ */ le.createElement(A, N));
1209
1209
  });
1210
- return d.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", d.defaultProps = t.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = f, d.__emotion_forwardProp = c, Object.defineProperty(d, "toString", {
1210
+ return d.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", d.defaultProps = t.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = p, d.__emotion_forwardProp = c, Object.defineProperty(d, "toString", {
1211
1211
  value: function() {
1212
1212
  return "." + o;
1213
1213
  }
1214
- }), d.withComponent = function(b, p) {
1215
- var x = e(b, Oe({}, r, p, {
1216
- shouldForwardProp: Ze(d, p, !0)
1214
+ }), d.withComponent = function(y, v) {
1215
+ var E = e(y, Be({}, r, v, {
1216
+ shouldForwardProp: at(d, v, !0)
1217
1217
  }));
1218
- return x.apply(void 0, f);
1218
+ return E.apply(void 0, p);
1219
1219
  }, d;
1220
1220
  };
1221
- }, gr = [
1221
+ }, kr = [
1222
1222
  "a",
1223
1223
  "abbr",
1224
1224
  "address",
@@ -1354,11 +1354,11 @@ var lr = function(t) {
1354
1354
  "svg",
1355
1355
  "text",
1356
1356
  "tspan"
1357
- ], ie = yr.bind(null);
1358
- gr.forEach(function(e) {
1359
- ie[e] = ie(e);
1357
+ ], me = wr.bind(null);
1358
+ kr.forEach(function(e) {
1359
+ me[e] = me(e);
1360
1360
  });
1361
- const vr = ie.div`
1361
+ const Er = me.div`
1362
1362
  display: flex;
1363
1363
  align-items: center;
1364
1364
  justify-content: center;
@@ -1399,7 +1399,7 @@ const vr = ie.div`
1399
1399
  return "";
1400
1400
  }
1401
1401
  }}
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`
1402
+ `, Me = ({ type: e, children: t, className: r, icon: n, action: a }) => M.jsxs(Er, { type: e, className: r, children: [n && M.jsx("span", { children: n }), M.jsx("span", { children: t }), a && M.jsx("span", { children: a })] }), it = me.div`
1403
1403
  width: ${({ width: e }) => e || "100%"};
1404
1404
  height: ${({ height: e }) => e || "100%"};
1405
1405
  border-radius: 0px !important; /* Force remove rounded corners on container */
@@ -1411,7 +1411,7 @@ const vr = ie.div`
1411
1411
 
1412
1412
  /* Hide specific elements inside the player */
1413
1413
  ${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
1414
- `, br = ie.div`
1414
+ `, Pr = me.div`
1415
1415
  position: fixed;
1416
1416
  top: 0;
1417
1417
  left: 0;
@@ -1423,7 +1423,7 @@ const vr = ie.div`
1423
1423
  align-items: center;
1424
1424
  z-index: 1000;
1425
1425
  pointer-events: auto;
1426
- `, xr = ie.div`
1426
+ `, _r = me.div`
1427
1427
  position: relative;
1428
1428
  width: min(360px, 100%);
1429
1429
  max-width: 360px;
@@ -1435,67 +1435,67 @@ const vr = ie.div`
1435
1435
  width: 100%;
1436
1436
  max-width: 100%;
1437
1437
  }
1438
- `, 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) => {
1439
- const [r, n] = q(!1), [a, i] = q(null);
1440
- return de(() => {
1438
+ `, Sr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, ot = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, Tr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}`, Rr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, qe = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ve = /* @__PURE__ */ new Map(), Cr = (e, t) => {
1439
+ const [r, n] = ne(!1), [a, i] = ne(null);
1440
+ return we(() => {
1441
1441
  let o = null, c, u = 0;
1442
- const y = 3;
1442
+ const m = 3;
1443
1443
  let l;
1444
1444
  try {
1445
- l = t || Pr(e || "latest");
1445
+ l = t || Rr(e || "latest");
1446
1446
  } catch (k) {
1447
1447
  const g = k instanceof Error ? k.message : String(k);
1448
1448
  i(`Failed to resolve script URL: ${g}`), n(!1);
1449
1449
  return;
1450
1450
  }
1451
- if (Ce.get(l)) {
1451
+ if (Ve.get(l)) {
1452
1452
  n(!0), i(null);
1453
1453
  return;
1454
1454
  }
1455
1455
  if (document.querySelector(`script[src="${l}"]`)) {
1456
- Ce.set(l, !0), n(!0), i(null);
1456
+ Ve.set(l, !0), n(!0), i(null);
1457
1457
  return;
1458
1458
  }
1459
- const v = () => {
1459
+ const w = () => {
1460
1460
  o = document.createElement("script"), o.src = l, o.async = !0, c = window.setTimeout(() => {
1461
1461
  n(!1), i(`Loading script timed out: ${l}`);
1462
1462
  }, 1e4), o.onload = () => {
1463
- clearTimeout(c), Ce.set(l, !0), n(!0), i(null);
1463
+ clearTimeout(c), Ve.set(l, !0), n(!0), i(null);
1464
1464
  }, o.onerror = () => {
1465
- clearTimeout(c), u++, u < y ? setTimeout(v, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${y} attempts: ${l}`));
1465
+ clearTimeout(c), u++, u < m ? setTimeout(w, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
1466
1466
  }, document.body.appendChild(o);
1467
1467
  };
1468
- return v(), () => {
1468
+ return w(), () => {
1469
1469
  clearTimeout(c), o && document.body.contains(o) && document.body.removeChild(o);
1470
1470
  };
1471
1471
  }, [e, t]), { isLoaded: r, error: a };
1472
- }, _r = {}, ue = /* @__PURE__ */ new Map(), Sr = 3e4, Te = 5, Rr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1473
- const [i, o] = q(null), [c, u] = q(null), [y, l] = q(!1), [f, v] = q(null), k = a || (typeof _r < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1474
- return de(() => {
1472
+ }, Ir = {}, xe = /* @__PURE__ */ new Map(), Ar = 3e4, Le = 5, Or = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
1473
+ const [i, o] = ne(null), [c, u] = ne(null), [m, l] = ne(!1), [p, w] = ne(null), k = a || (typeof Ir < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
1474
+ return we(() => {
1475
1475
  const g = t ? `video:${t}` : r ? `playlist:${r}` : null;
1476
1476
  if (!e || n || !t && !r) {
1477
- o(n || null), u(null), l(!1), v(null);
1477
+ o(n || null), u(null), l(!1), w(null);
1478
1478
  return;
1479
1479
  }
1480
1480
  if (!k) {
1481
- l(!1), v("No API key provided");
1481
+ l(!1), w("No API key provided");
1482
1482
  return;
1483
1483
  }
1484
- if (g && ue.has(g)) {
1485
- const S = ue.get(g);
1486
- o(S.url), u(S.playlist), l(!1), v(null);
1484
+ if (g && xe.has(g)) {
1485
+ const T = xe.get(g);
1486
+ o(T.url), u(T.playlist), l(!1), w(null);
1487
1487
  return;
1488
1488
  }
1489
1489
  let d = !0;
1490
- const b = new AbortController(), p = b.signal, _ = setTimeout(async () => {
1491
- var I, w, h, C;
1490
+ const y = new AbortController(), v = y.signal, A = setTimeout(async () => {
1491
+ var O, j, f, G;
1492
1492
  if (!d)
1493
1493
  return;
1494
- l(!0), v(null);
1495
- let S = 0;
1496
- for (; S < Te && d; )
1494
+ l(!0), w(null);
1495
+ let T = 0;
1496
+ for (; T < Le && d; )
1497
1497
  try {
1498
- const R = t && !r ? wr(e, t) : et(e, r), O = setTimeout(() => b.abort(), Sr), A = await fetch(R, {
1498
+ const P = t && !r ? Sr(e, t) : ot(e, r), N = setTimeout(() => y.abort(), Ar), z = await fetch(P, {
1499
1499
  method: "GET",
1500
1500
  headers: {
1501
1501
  "api-key": k,
@@ -1503,77 +1503,77 @@ const vr = ie.div`
1503
1503
  "Cache-Control": "no-cache"
1504
1504
  // Prevent caching issues
1505
1505
  },
1506
- signal: p
1506
+ signal: v
1507
1507
  });
1508
- if (clearTimeout(O), !A.ok)
1509
- throw new Error(`Fetch failed with status ${A.status}`);
1510
- const M = await A.json();
1508
+ if (clearTimeout(N), !z.ok)
1509
+ throw new Error(`Fetch failed with status ${z.status}`);
1510
+ const B = await z.json();
1511
1511
  if (!d)
1512
1512
  return;
1513
1513
  if (t && !r) {
1514
- const z = (w = (I = M.result) == null ? void 0 : I.items) == null ? void 0 : w.find(($) => $.mediaId === t);
1515
- if (!(z != null && z.playbackUrl))
1514
+ const X = (j = (O = B.result) == null ? void 0 : O.items) == null ? void 0 : j.find((L) => L.mediaId === t);
1515
+ if (!(X != null && X.playbackUrl))
1516
1516
  throw new Error("Invalid video data");
1517
- o(z.playbackUrl), u(null), g && ue.set(g, { url: z.playbackUrl, playlist: null });
1517
+ o(X.playbackUrl), u(null), g && xe.set(g, { url: X.playbackUrl, playlist: null });
1518
1518
  } else {
1519
- if (!Array.isArray(M.result))
1519
+ if (!Array.isArray(B.result))
1520
1520
  throw new Error("Invalid playlist format");
1521
- const z = kr(e, r), $ = await fetch(z, {
1521
+ const X = Tr(e, r), L = await fetch(X, {
1522
1522
  method: "GET",
1523
1523
  headers: {
1524
1524
  "api-key": k,
1525
1525
  Accept: "application/json",
1526
1526
  "Cache-Control": "no-cache"
1527
1527
  },
1528
- signal: p
1528
+ signal: v
1529
1529
  });
1530
- if ($.ok) {
1531
- const W = await $.json();
1532
- let Y = [...M.result];
1533
- if ((h = W.result) != null && h.playlistBackupState && ((C = W.result) != null && C.playlistBackupId)) {
1534
- const Q = et(e, W.result.playlistBackupId), G = await fetch(Q, {
1530
+ if (L.ok) {
1531
+ const U = await L.json();
1532
+ let Q = [...B.result];
1533
+ if ((f = U.result) != null && f.playlistBackupState && ((G = U.result) != null && G.playlistBackupId)) {
1534
+ const H = ot(e, U.result.playlistBackupId), te = await fetch(H, {
1535
1535
  method: "GET",
1536
1536
  headers: {
1537
1537
  "api-key": k,
1538
1538
  Accept: "application/json",
1539
1539
  "Cache-Control": "no-cache"
1540
1540
  },
1541
- signal: p
1541
+ signal: v
1542
1542
  });
1543
- if (G.ok) {
1544
- const ee = await G.json();
1545
- if (Array.isArray(ee.result)) {
1546
- const s = ee.result.map((m) => ({
1547
- ...m,
1543
+ if (te.ok) {
1544
+ const re = await te.json();
1545
+ if (Array.isArray(re.result)) {
1546
+ const s = re.result.map((x) => ({
1547
+ ...x,
1548
1548
  isBackupPlaylist: !0
1549
1549
  }));
1550
- Y = [...Y, ...s];
1550
+ Q = [...Q, ...s];
1551
1551
  }
1552
1552
  }
1553
1553
  }
1554
- u(Y), o(null), g && ue.set(g, { url: null, playlist: Y });
1554
+ u(Q), o(null), g && xe.set(g, { url: null, playlist: Q });
1555
1555
  } else
1556
- u(M.result), o(null), g && ue.set(g, { url: null, playlist: M.result });
1556
+ u(B.result), o(null), g && xe.set(g, { url: null, playlist: B.result });
1557
1557
  }
1558
1558
  break;
1559
- } catch (R) {
1560
- if (p.aborted) {
1561
- d && v("Request timed out");
1559
+ } catch (P) {
1560
+ if (v.aborted) {
1561
+ d && w("Request timed out");
1562
1562
  break;
1563
1563
  }
1564
- if (S++, S >= Te) {
1565
- const O = R instanceof Error ? R.message : String(R);
1566
- d && v(`Failed after ${Te} attempts: ${O}`);
1564
+ if (T++, T >= Le) {
1565
+ const N = P instanceof Error ? P.message : String(P);
1566
+ d && w(`Failed after ${Le} attempts: ${N}`);
1567
1567
  } else
1568
- await new Promise((O) => setTimeout(O, 2e3));
1568
+ await new Promise((N) => setTimeout(N, 2e3));
1569
1569
  }
1570
1570
  d && l(!1);
1571
1571
  }, 100);
1572
1572
  return () => {
1573
- d = !1, clearTimeout(_), b.abort();
1573
+ d = !1, clearTimeout(A), y.abort();
1574
1574
  };
1575
- }, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: y, error: f };
1576
- }, Ar = {
1575
+ }, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: p };
1576
+ }, jr = {
1577
1577
  projectId: "vp-player-projectId",
1578
1578
  video: {
1579
1579
  file: "",
@@ -1626,7 +1626,7 @@ const vr = ie.div`
1626
1626
  // Enabled by default
1627
1627
  }
1628
1628
  }
1629
- }, Cr = ({
1629
+ }, $r = ({
1630
1630
  videoUrl: e,
1631
1631
  fetchedPlaybackUrl: t,
1632
1632
  // fetchedPlaylist,
@@ -1636,8 +1636,8 @@ const vr = ie.div`
1636
1636
  isVerticalPlayer: i
1637
1637
  // Distinguish between VP Player types
1638
1638
  }) => {
1639
- var l, f, v, k, g, d, b, p, x, _, S, I, w;
1640
- const o = { ...Ar, ...a }, c = { ...o.config, ...a.config };
1639
+ var l, p, w, k, g, d, y, v, E, A, T, O, j;
1640
+ const o = { ...jr, ...a }, c = { ...o.config, ...a.config };
1641
1641
  if (e)
1642
1642
  return {
1643
1643
  ...o,
@@ -1659,7 +1659,7 @@ const vr = ie.div`
1659
1659
  config: c
1660
1660
  };
1661
1661
  if (r && r.length > 0) {
1662
- const h = ((f = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((v = a == null ? void 0 : a.config) == null ? void 0 : v.playlistVideoIndex) ?? 0;
1662
+ const f = ((p = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((w = a == null ? void 0 : a.config) == null ? void 0 : w.playlistVideoIndex) ?? 0;
1663
1663
  return i ? {
1664
1664
  ...o,
1665
1665
  projectId: n || "vp-player-projectId",
@@ -1674,15 +1674,15 @@ const vr = ie.div`
1674
1674
  playlistId: "",
1675
1675
  // Will be set by API
1676
1676
  // Use original playlistVideoIndex - VP Player will navigate to it
1677
- playlistVideoIndex: Number(h),
1677
+ playlistVideoIndex: Number(f),
1678
1678
  // Remove first video from playlist to avoid duplication (already in file)
1679
- videos: r.slice(1).map((R, O) => ({
1680
- videoId: String(O + 1),
1679
+ videos: r.slice(1).map((P, N) => ({
1680
+ videoId: String(N + 1),
1681
1681
  // Keep original IDs
1682
- title: R.title,
1683
- file: R.hlsUrl,
1684
- thumbnailUrl: R.thumbnailUrl,
1685
- duration: R.duration
1682
+ title: P.title,
1683
+ file: P.hlsUrl,
1684
+ thumbnailUrl: P.thumbnailUrl,
1685
+ duration: P.duration
1686
1686
  }))
1687
1687
  }
1688
1688
  },
@@ -1692,44 +1692,44 @@ const vr = ie.div`
1692
1692
  projectId: n || "vp-player-projectId",
1693
1693
  video: {
1694
1694
  ...o.video,
1695
- file: ((d = r[Number(h)]) == null ? void 0 : d.hlsUrl) || ((b = r[0]) == null ? void 0 : b.hlsUrl) || "",
1696
- title: ((p = r[Number(h)]) == null ? void 0 : p.title) || ((x = r[0]) == null ? void 0 : x.title),
1697
- thumbnail: ((_ = r[Number(h)]) == null ? void 0 : _.thumbnailUrl) || ((S = r[0]) == null ? void 0 : S.thumbnailUrl),
1695
+ file: ((d = r[Number(f)]) == null ? void 0 : d.hlsUrl) || ((y = r[0]) == null ? void 0 : y.hlsUrl) || "",
1696
+ title: ((v = r[Number(f)]) == null ? void 0 : v.title) || ((E = r[0]) == null ? void 0 : E.title),
1697
+ thumbnail: ((A = r[Number(f)]) == null ? void 0 : A.thumbnailUrl) || ((T = r[0]) == null ? void 0 : T.thumbnailUrl),
1698
1698
  playlist: {
1699
1699
  state: !0,
1700
1700
  // playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
1701
- playlistVideoIndex: Number(h),
1702
- videos: r.map((R, O) => ({
1703
- videoId: String(O),
1704
- title: R.title,
1705
- file: R.hlsUrl,
1706
- thumbnailUrl: R.thumbnailUrl,
1707
- duration: R.duration
1701
+ playlistVideoIndex: Number(f),
1702
+ videos: r.map((P, N) => ({
1703
+ videoId: String(N),
1704
+ title: P.title,
1705
+ file: P.hlsUrl,
1706
+ thumbnailUrl: P.thumbnailUrl,
1707
+ duration: P.duration
1708
1708
  }))
1709
1709
  }
1710
1710
  },
1711
1711
  config: c
1712
1712
  };
1713
1713
  }
1714
- const u = ((I = a == null ? void 0 : a.video) == null ? void 0 : I.playlist) || o.video.playlist, y = (w = a == null ? void 0 : a.video) == null ? void 0 : w.file;
1715
- if (y)
1714
+ const u = ((O = a == null ? void 0 : a.video) == null ? void 0 : O.playlist) || o.video.playlist, m = (j = a == null ? void 0 : a.video) == null ? void 0 : j.file;
1715
+ if (m)
1716
1716
  return {
1717
1717
  ...o,
1718
1718
  video: {
1719
1719
  ...o.video,
1720
- file: y,
1720
+ file: m,
1721
1721
  playlist: void 0
1722
1722
  // No playlist, just one video
1723
1723
  },
1724
1724
  config: c
1725
1725
  };
1726
1726
  if (u != null && u.videos && u.videos.length > 0) {
1727
- const h = u.videos[Number(u.playlistVideoIndex) || 0];
1727
+ const f = u.videos[Number(u.playlistVideoIndex) || 0];
1728
1728
  return {
1729
1729
  ...o,
1730
1730
  video: {
1731
1731
  ...o.video,
1732
- file: (h == null ? void 0 : h.file) || "",
1732
+ file: (f == null ? void 0 : f.file) || "",
1733
1733
  playlist: {
1734
1734
  ...u,
1735
1735
  state: u.state ?? !0,
@@ -1745,124 +1745,267 @@ const vr = ie.div`
1745
1745
  };
1746
1746
  }
1747
1747
  throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
1748
- }, Tr = (e) => {
1748
+ }, Nr = (e) => {
1749
1749
  if (!e)
1750
1750
  return;
1751
1751
  const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
1752
1752
  return r ? r[2] : void 0;
1753
- }, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: y = !1, onPlaylistData: l }) => {
1754
- const f = Me(null), v = Me(null), { isLoaded: k, error: g } = Er(r, o), d = t || Tr(o), [b, p] = q(null), { fetchedPlaybackUrl: x, fetchedPlaylist: _, isLoading: S, error: I } = Rr({
1753
+ }, Vr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: m = !1, onPlaylistData: l, onVideoStarted: p }) => {
1754
+ const w = de(null), k = de(null), g = de(!1), d = de(""), y = de([]), v = de([]), E = de(null), { isLoaded: A, error: T } = Cr(r, o), O = t || Nr(o), [j, f] = ne(null), { fetchedPlaybackUrl: G, fetchedPlaylist: P, isLoading: N, error: z } = Or({
1755
1755
  projectId: a,
1756
- videoId: d,
1756
+ videoId: O,
1757
1757
  playlistId: i,
1758
1758
  videoUrl: n,
1759
1759
  apiKey: u
1760
- }), w = Be(e, d);
1761
- de(() => {
1762
- _ && l && l(_);
1763
- }, [_, l]);
1764
- const h = rt(() => {
1765
- const C = c.config || {}, R = y && !C.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : C.size || { sizeType: "FIXED", width: "100%" };
1760
+ }), B = qe(e, O);
1761
+ we(() => {
1762
+ P && l && l(P);
1763
+ }, [P, l]);
1764
+ const X = ct(() => {
1765
+ const L = c.config || {}, U = m && !L.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : L.size || { sizeType: "FIXED", width: "100%" };
1766
1766
  return {
1767
1767
  ...c,
1768
1768
  config: {
1769
- ...C,
1770
- size: R
1769
+ ...L,
1770
+ size: U
1771
1771
  }
1772
1772
  };
1773
- }, [c, y]);
1774
- return de(() => {
1775
- if (g) {
1776
- p(g);
1773
+ }, [c, m]);
1774
+ return we(() => {
1775
+ if (T) {
1776
+ f(T);
1777
1777
  return;
1778
1778
  }
1779
- if (!k || S && !n)
1779
+ if (!A || N && !n)
1780
1780
  return;
1781
- let C = !0;
1782
- const O = setTimeout(async () => {
1781
+ let L = !0;
1782
+ const Q = setTimeout(async () => {
1783
1783
  try {
1784
- const A = o == null ? void 0 : o.includes("vertical-player");
1785
- if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
1786
- var ee, s;
1787
- const G = Q.id;
1788
- if (G !== w)
1784
+ y.current.forEach((V) => clearInterval(V)), y.current = [], v.current.forEach((V) => clearTimeout(V)), v.current = [], E.current = null;
1785
+ const H = (P == null ? void 0 : P.length) ?? 0, te = JSON.stringify({
1786
+ playerId: B,
1787
+ videoId: t || O,
1788
+ playlistId: i,
1789
+ videoUrl: n,
1790
+ fetchedPlaybackUrl: G,
1791
+ scriptUrl: o,
1792
+ isReels: m,
1793
+ projectId: a,
1794
+ playlistLength: H
1795
+ });
1796
+ if (g.current && k.current && d.current === te)
1797
+ return;
1798
+ d.current !== te && (g.current = !1, d.current = te);
1799
+ const re = o == null ? void 0 : o.includes("vertical-player");
1800
+ if (document.querySelectorAll('[id*="player"]').forEach((V) => {
1801
+ var ae, h;
1802
+ const ee = V.id;
1803
+ if (ee !== B)
1789
1804
  try {
1790
- const m = A ? (ee = window.vpVerticalPlayer) == null ? void 0 : ee.call(window, G) : (s = window.vpPlayer) == null ? void 0 : s.call(window, G);
1791
- m != null && m.destroy && m.destroy();
1792
- } catch (m) {
1793
- console.warn(`Failed to destroy existing player ${G}:`, m);
1805
+ const b = re ? (ae = window.vpVerticalPlayer) == null ? void 0 : ae.call(window, ee) : (h = window.vpPlayer) == null ? void 0 : h.call(window, ee);
1806
+ b != null && b.destroy && b.destroy();
1807
+ } catch (b) {
1808
+ console.warn(`Failed to destroy existing player ${ee}:`, b);
1794
1809
  }
1795
- }), await new Promise((Q) => setTimeout(Q, 100)), !C || !f.current)
1810
+ }), await new Promise((V) => setTimeout(V, 100)), !L || !w.current)
1796
1811
  return;
1797
- if (!document.getElementById(w)) {
1798
- p("DOM element not found after cleanup.");
1812
+ if (!document.getElementById(B)) {
1813
+ f("DOM element not found after cleanup.");
1799
1814
  return;
1800
1815
  }
1801
1816
  if (!window.vpPlayer && !window.vpVerticalPlayer) {
1802
- p("VP Player script not loaded.");
1817
+ f("VP Player script not loaded.");
1803
1818
  return;
1804
1819
  }
1805
- const $ = A ? window.vpVerticalPlayer : window.vpPlayer;
1820
+ const $ = re ? window.vpVerticalPlayer : window.vpPlayer;
1806
1821
  if (!$) {
1807
- p(`VP ${A ? "Vertical " : ""}Player script not loaded.`);
1822
+ f(`VP ${re ? "Vertical " : ""}Player script not loaded.`);
1808
1823
  return;
1809
1824
  }
1810
- const W = Cr({
1825
+ const F = $r({
1811
1826
  videoUrl: n,
1812
- fetchedPlaybackUrl: x ?? void 0,
1813
- fetchedPlaylist: _ ?? void 0,
1827
+ fetchedPlaybackUrl: G ?? void 0,
1828
+ fetchedPlaylist: P ?? void 0,
1814
1829
  projectId: a,
1815
- config: h,
1816
- isVerticalPlayer: A
1830
+ config: X,
1831
+ isVerticalPlayer: re
1817
1832
  // Pass player type to config builder
1818
- }), Y = $(w);
1819
- if (!Y) {
1820
- p(`Failed to create VP ${A ? "Vertical " : ""}Player instance.`);
1833
+ }), I = $(B);
1834
+ if (!I) {
1835
+ f(`Failed to create VP ${re ? "Vertical " : ""}Player instance.`);
1821
1836
  return;
1822
1837
  }
1823
- C && f.current && (Y.setup(W), v.current = Y, p(null));
1824
- } catch (A) {
1825
- if (C) {
1826
- const M = A instanceof Error ? A.message : String(A);
1827
- p(M), console.error("VP Player initialization error:", A);
1838
+ if (L && w.current && (I.setup(F), k.current = I, g.current = !0, f(null), p && I.on)) {
1839
+ const V = () => {
1840
+ var b;
1841
+ const h = {};
1842
+ if (P && P.length > 0) {
1843
+ const R = I.videoIndex ?? ((b = I.playlist) == null ? void 0 : b.playlistVideoIndex) ?? 0, C = P[R];
1844
+ C && (h.title = C.title, h.hlsUrl = C.hlsUrl, h.file = C.hlsUrl, h.thumbnailUrl = C.thumbnailUrl, h.duration = C.duration, h.videoIndex = R, h.playlistVideoIndex = R, h.isBackupPlaylist = C.isBackupPlaylist, h.mediaId = C.mediaId, h.videoId = C.mediaId || C.videoId);
1845
+ } else F.video && (h.title = F.video.title, h.file = F.video.file, h.hlsUrl = F.video.file, h.thumbnailUrl = F.video.thumbnail, h.videoId = t || O, h.videoIndex = 0, h.playlistVideoIndex = 0, I.getDuration && (h.duration = I.getDuration()));
1846
+ return h;
1847
+ };
1848
+ let ee = null;
1849
+ const ae = async () => {
1850
+ var h;
1851
+ try {
1852
+ ee && clearTimeout(ee), await new Promise((C) => setTimeout(C, 100));
1853
+ let b = V();
1854
+ const R = b.videoId || b.mediaId;
1855
+ if (R && R === E.current)
1856
+ return;
1857
+ if (ee = window.setTimeout(() => {
1858
+ E.current = null;
1859
+ }, 500), m && R)
1860
+ try {
1861
+ const ce = `https://host.vpplayer.tech/player/ptkzurnx/${R}.json`, ue = await fetch(ce);
1862
+ if (ue.ok) {
1863
+ const W = await ue.json();
1864
+ W && W.video && (b = {
1865
+ ...b,
1866
+ title: W.video.title || b.title,
1867
+ description: W.video.description,
1868
+ publishDate: W.video.publishDate,
1869
+ projectId: W.projectId || b.projectId,
1870
+ premium: ((h = W.video.videoLocking) == null ? void 0 : h.isEnabled) || !1,
1871
+ author: W.video.author,
1872
+ tags: W.video.tags || []
1873
+ });
1874
+ }
1875
+ } catch {
1876
+ }
1877
+ E.current = R || null, p(b);
1878
+ } catch (b) {
1879
+ console.warn("Error in video-started handler:", b);
1880
+ }
1881
+ };
1882
+ if (m) {
1883
+ let h = !1, b = -1;
1884
+ const R = () => {
1885
+ if (!h) {
1886
+ h = !0;
1887
+ try {
1888
+ I.on && I.on("vp-video-started", ae), setTimeout(() => {
1889
+ ae(), b = I.videoIndex ?? 0;
1890
+ }, 500);
1891
+ } catch (W) {
1892
+ console.error("Error setting up event listeners:", W);
1893
+ }
1894
+ }
1895
+ };
1896
+ let C = 0;
1897
+ const ce = 15, ue = setInterval(() => {
1898
+ try {
1899
+ const W = I.videoIndex !== void 0 || I.playlist;
1900
+ if (!h)
1901
+ C++, (W || C >= ce) && R();
1902
+ else {
1903
+ const fe = I.videoIndex ?? 0;
1904
+ fe !== b && b !== -1 && (b = fe, ae());
1905
+ }
1906
+ } catch {
1907
+ }
1908
+ }, 200);
1909
+ y.current.push(ue);
1910
+ try {
1911
+ I.on && I.on("vp-listen-ready", R);
1912
+ } catch {
1913
+ }
1914
+ } else {
1915
+ const h = async (b) => {
1916
+ var R, C;
1917
+ try {
1918
+ const ce = o == null ? void 0 : o.match(/player\/([^/.]+)/), ue = ce == null ? void 0 : ce[1];
1919
+ if (!ue || !b)
1920
+ return V();
1921
+ const W = `https://host.vpplayer.tech/player/${ue}/${b}.json`, fe = await fetch(W);
1922
+ if (!fe.ok)
1923
+ return console.warn("Failed to fetch full video config:", fe.status), V();
1924
+ const K = await fe.json();
1925
+ return !K || !K.video ? V() : {
1926
+ videoId: b,
1927
+ title: K.video.title,
1928
+ description: K.video.description,
1929
+ file: K.video.file,
1930
+ hlsUrl: K.video.file,
1931
+ thumbnailUrl: K.video.thumbnail,
1932
+ duration: K.video.duration,
1933
+ publishDate: K.video.publishDate,
1934
+ projectId: K.projectId,
1935
+ premium: ((R = K.video.videoLocking) == null ? void 0 : R.isEnabled) || !1,
1936
+ author: K.video.author,
1937
+ tags: K.video.tags || [],
1938
+ videoIndex: I.videoIndex ?? 0,
1939
+ playlistVideoIndex: ((C = I.playlist) == null ? void 0 : C.playlistVideoIndex) ?? 0
1940
+ };
1941
+ } catch (ce) {
1942
+ return console.warn("Error fetching full video data:", ce), V();
1943
+ }
1944
+ };
1945
+ I.on("ready", async (b) => {
1946
+ try {
1947
+ const R = (b == null ? void 0 : b.id) || t || O;
1948
+ if (R) {
1949
+ const C = await h(R);
1950
+ p(C);
1951
+ } else {
1952
+ const C = V();
1953
+ (C.title || C.file) && p(C);
1954
+ }
1955
+ } catch (R) {
1956
+ console.warn("Error in ready handler:", R);
1957
+ }
1958
+ }), I.on("playlistItem", async (b) => {
1959
+ try {
1960
+ const R = b == null ? void 0 : b.id;
1961
+ if (R) {
1962
+ const C = await h(R);
1963
+ p(C);
1964
+ }
1965
+ } catch (R) {
1966
+ console.warn("Error in playlistItem handler:", R);
1967
+ }
1968
+ });
1969
+ }
1970
+ }
1971
+ } catch (H) {
1972
+ if (L) {
1973
+ const te = H instanceof Error ? H.message : String(H);
1974
+ f(te), console.error("VP Player initialization error:", H);
1828
1975
  }
1829
1976
  }
1830
1977
  }, 150);
1831
1978
  return () => {
1832
- C = !1, clearTimeout(O);
1979
+ L = !1, clearTimeout(Q), y.current.forEach((H) => clearInterval(H)), y.current = [], v.current.forEach((H) => clearTimeout(H)), v.current = [], g.current = !1;
1833
1980
  };
1834
1981
  }, [
1835
- k,
1836
- S,
1837
- n,
1838
- x,
1839
- _,
1840
- a,
1841
- h,
1842
- w,
1843
- g,
1982
+ A,
1983
+ N,
1984
+ B,
1985
+ T,
1844
1986
  o
1845
- ]), de(() => () => {
1846
- if (v.current) {
1987
+ ]), we(() => () => {
1988
+ if (k.current) {
1847
1989
  try {
1848
- v.current.destroy && v.current.destroy();
1849
- } catch (R) {
1850
- console.warn(`Failed to destroy player ${w}:`, R);
1990
+ k.current.destroy && k.current.destroy();
1991
+ } catch (U) {
1992
+ console.warn(`Failed to destroy player ${B}:`, U);
1851
1993
  }
1852
- v.current = null;
1994
+ k.current = null;
1853
1995
  }
1854
- const C = document.getElementById(w);
1855
- C && (C.innerHTML = "");
1856
- }, [w]), {
1857
- playerRef: f,
1858
- playerInstanceRef: v,
1859
- isScriptLoaded: k,
1860
- isLoading: S,
1861
- error: I || b || g
1996
+ g.current = !1;
1997
+ const L = document.getElementById(B);
1998
+ L && (L.innerHTML = "");
1999
+ }, [B]), {
2000
+ playerRef: w,
2001
+ playerInstanceRef: k,
2002
+ isScriptLoaded: A,
2003
+ isLoading: N,
2004
+ error: z || j || T
1862
2005
  };
1863
- }, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: y = !1, hiddenClasses: l = [], onClose: f, className: v, onPlaylistData: k }) => {
1864
- var O, A, M, z;
1865
- const { playerRef: g, playerInstanceRef: d, isScriptLoaded: b, isLoading: p, error: x } = Ir({
2006
+ }, Lr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: o, config: c = {}, apiKey: u, isReels: m = !1, hiddenClasses: l = [], onClose: p, className: w, onPlaylistData: k, onVideoStarted: g }) => {
2007
+ var z, B, X, L;
2008
+ const { playerRef: d, playerInstanceRef: y, isScriptLoaded: v, isLoading: E, error: A } = Vr({
1866
2009
  playerId: e,
1867
2010
  videoId: t,
1868
2011
  version: r,
@@ -1872,36 +2015,37 @@ const vr = ie.div`
1872
2015
  scriptUrl: o,
1873
2016
  config: c,
1874
2017
  apiKey: u,
1875
- isReels: y,
1876
- onPlaylistData: k
1877
- }), [_, S] = q(!0), I = () => y && S(!0), w = () => {
1878
- var $, W;
1879
- S(!1), (W = ($ = d.current) == null ? void 0 : $.play) == null || W.call($), f == null || f();
1880
- }, h = (A = (O = c == null ? void 0 : c.config) == null ? void 0 : O.size) != null && A.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, C = (z = (M = c == null ? void 0 : c.config) == null ? void 0 : M.size) != null && z.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, R = Be(e, t);
1881
- return x ? N.jsxs(Ne, { type: "error", children: ["An error occurred: ", x] }) : p || !b ? N.jsx(Ne, { type: "loading", children: "Loading..." }) : N.jsxs(N.Fragment, { children: [y && !_ ? N.jsx("div", { onClick: I }) : null, !y && N.jsx("div", { children: N.jsx(Qe, { id: R, ref: g, width: h || "100%", height: C || "auto", $hiddenClasses: l, className: v }) }, R), y && _ && N.jsx(br, { onClick: w, className: v, children: N.jsx(xr, { className: v, onClick: ($) => $.stopPropagation(), children: N.jsx("div", { children: N.jsx(Qe, { id: R, ref: g, width: "100%", height: "auto", $hiddenClasses: l, className: v }) }, R) }) })] });
1882
- }, ht = vt(void 0), $r = ({ children: e }) => {
1883
- const [t, r] = q(!1), [n, a] = q(null), [i, o] = q(null), c = Ue((l) => {
2018
+ isReels: m,
2019
+ onPlaylistData: k,
2020
+ onVideoStarted: g
2021
+ }), [T, O] = ne(!0), j = () => m && O(!0), f = () => {
2022
+ var U, Q;
2023
+ O(!1), (Q = (U = y.current) == null ? void 0 : U.play) == null || Q.call(U), p == null || p();
2024
+ }, G = (B = (z = c == null ? void 0 : c.config) == null ? void 0 : z.size) != null && B.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, P = (L = (X = c == null ? void 0 : c.config) == null ? void 0 : X.size) != null && L.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, N = qe(e, t);
2025
+ return A ? M.jsxs(Me, { type: "error", children: ["An error occurred: ", A] }) : E || !v ? M.jsx(Me, { type: "loading", children: "Loading..." }) : M.jsxs(M.Fragment, { children: [m && !T ? M.jsx("div", { onClick: j }) : null, !m && M.jsx("div", { children: M.jsx(it, { id: N, ref: d, width: G || "100%", height: P || "auto", $hiddenClasses: l, className: w }) }, N), m && T && M.jsx(Pr, { onClick: f, className: w, children: M.jsx(_r, { className: w, onClick: (U) => U.stopPropagation(), children: M.jsx("div", { children: M.jsx(it, { id: N, ref: d, width: "100%", height: "auto", $hiddenClasses: l, className: w }) }, N) }) })] });
2026
+ }, xt = Et(void 0), Br = ({ children: e }) => {
2027
+ const [t, r] = ne(!1), [n, a] = ne(null), [i, o] = ne(null), c = Ge((l) => {
1884
2028
  try {
1885
- const f = Be(l.playerId, l.videoId);
1886
- a({ ...l, playerId: f }), r(!0), o(null);
2029
+ const p = qe(l.playerId, l.videoId);
2030
+ a({ ...l, playerId: p }), r(!0), o(null);
1887
2031
  } catch {
1888
2032
  o("Failed to show player.");
1889
2033
  }
1890
- }, []), u = Ue(() => {
2034
+ }, []), u = Ge(() => {
1891
2035
  r(!1), a(null), o(null);
1892
- }, []), y = rt(() => ({
2036
+ }, []), m = ct(() => ({
1893
2037
  showPlayer: c,
1894
2038
  hidePlayer: u,
1895
2039
  isPlayerVisible: t,
1896
2040
  playerParams: n
1897
2041
  }), [c, u, t, n]);
1898
- return N.jsxs(ht.Provider, { value: y, 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 })] });
1899
- }, Nr = () => {
1900
- const e = tt(ht);
2042
+ return M.jsxs(xt.Provider, { value: m, children: [e, i && M.jsx(Me, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && M.jsx(Lr, { 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 })] });
2043
+ }, Dr = () => {
2044
+ const e = st(xt);
1901
2045
  if (!e)
1902
2046
  throw new Error("useVPPlayer must be used within a VPPlayerProvider");
1903
2047
  return e;
1904
- }, Lr = {
2048
+ }, Ur = {
1905
2049
  projectId: "vp-player-projectId",
1906
2050
  video: {
1907
2051
  file: "",
@@ -1934,17 +2078,17 @@ const vr = ie.div`
1934
2078
  shareButton: !0
1935
2079
  }
1936
2080
  }
1937
- }, Fr = {
2081
+ }, Mr = {
1938
2082
  config: {
1939
2083
  autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
1940
2084
  muted: !0
1941
2085
  }
1942
- }, Vr = {
2086
+ }, zr = {
1943
2087
  config: {
1944
2088
  autoplay: !0,
1945
2089
  muted: !0
1946
2090
  }
1947
- }, Ie = {
2091
+ }, Fe = {
1948
2092
  video: {
1949
2093
  advertising: !0,
1950
2094
  ads: {
@@ -1955,14 +2099,14 @@ const vr = ie.div`
1955
2099
  adAnnouncement: { state: !0, timeBeforeAd: 5 },
1956
2100
  adsRequireInteraction: !1
1957
2101
  }
1958
- }, Br = (e, t, r = "time", n = 0) => {
2102
+ }, Wr = (e, t, r = "time", n = 0) => {
1959
2103
  var a;
1960
2104
  return {
1961
- ...Ie,
2105
+ ...Fe,
1962
2106
  video: {
1963
- ...Ie.video,
2107
+ ...Fe.video,
1964
2108
  ads: {
1965
- ...(a = Ie.video) == null ? void 0 : a.ads,
2109
+ ...(a = Fe.video) == null ? void 0 : a.ads,
1966
2110
  adBreaks: [
1967
2111
  {
1968
2112
  adTagUrl: t,
@@ -1974,28 +2118,28 @@ const vr = ie.div`
1974
2118
  }
1975
2119
  }
1976
2120
  };
1977
- }, 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=";
2121
+ }, Yr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", qr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", Gr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Hr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Xr = "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=", Jr = "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=";
1978
2122
  export {
1979
- Wr as AD_TAG_LINEAR_URL,
1980
- Yr as AD_TAG_SKIPPABLE_LINEAR_URL,
1981
- Mr as BIG_BUCK_BUNNY_URL,
1982
- Ur as ELEPHANTS_DREAM_URL,
1983
- br as Overlay,
1984
- Dr as PEXELS_THUMBNAIL_URL,
1985
- zr as PEXELS_VERTICAL_VIDEO_URL,
1986
- Qe as PlayerContainer,
1987
- xr as PlayerWrapper,
1988
- Or as VPPlayer,
1989
- $r as VPPlayerProvider,
1990
- Fr as baseConfig,
1991
- Ie as baseConfigWithAds,
1992
- Vr as baseConfigWithAutoplay,
1993
- Cr as buildVPPlayerConfig,
1994
- Lr as defaultVPPlayerConfig,
1995
- Tr as extractVideoId,
1996
- Br as getAdConfig,
1997
- Nr as useVPPlayer,
1998
- Ir as useVPPlayerLogic,
1999
- Er as useVPPlayerScript,
2000
- Rr as useVideoData
2123
+ Xr as AD_TAG_LINEAR_URL,
2124
+ Jr as AD_TAG_SKIPPABLE_LINEAR_URL,
2125
+ Yr as BIG_BUCK_BUNNY_URL,
2126
+ qr as ELEPHANTS_DREAM_URL,
2127
+ Pr as Overlay,
2128
+ Hr as PEXELS_THUMBNAIL_URL,
2129
+ Gr as PEXELS_VERTICAL_VIDEO_URL,
2130
+ it as PlayerContainer,
2131
+ _r as PlayerWrapper,
2132
+ Lr as VPPlayer,
2133
+ Br as VPPlayerProvider,
2134
+ Mr as baseConfig,
2135
+ Fe as baseConfigWithAds,
2136
+ zr as baseConfigWithAutoplay,
2137
+ $r as buildVPPlayerConfig,
2138
+ Ur as defaultVPPlayerConfig,
2139
+ Nr as extractVideoId,
2140
+ Wr as getAdConfig,
2141
+ Dr as useVPPlayer,
2142
+ Vr as useVPPlayerLogic,
2143
+ Cr as useVPPlayerScript,
2144
+ Or as useVideoData
2001
2145
  };