@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.22 → 1.0.31-beta.24

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
1
  import * as le from "react";
2
- import Mr, { forwardRef as wr, useContext as Ir, useState as Fe, useEffect as $e, useRef as pe, useId as Fr, useMemo as Ue, useImperativeHandle as Vr } from "react";
3
- var Te = { exports: {} }, we = {};
2
+ import Vr, { forwardRef as Sr, useContext as Lr, useState as Ue, useEffect as Re, useRef as pe, useId as Nr, useMemo as qe, useImperativeHandle as Ur } from "react";
3
+ var $e = { exports: {} }, Pe = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.js
@@ -10,29 +10,29 @@ var Te = { exports: {} }, we = {};
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 sr;
14
- function Lr() {
15
- if (sr) return we;
16
- sr = 1;
13
+ var ur;
14
+ function Dr() {
15
+ if (ur) return Pe;
16
+ ur = 1;
17
17
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
18
- function t(n, a, s) {
18
+ function t(n, a, c) {
19
19
  var u = null;
20
- if (s !== void 0 && (u = "" + s), a.key !== void 0 && (u = "" + a.key), "key" in a) {
21
- s = {};
20
+ if (c !== void 0 && (u = "" + c), a.key !== void 0 && (u = "" + a.key), "key" in a) {
21
+ c = {};
22
22
  for (var p in a)
23
- p !== "key" && (s[p] = a[p]);
24
- } else s = a;
25
- return a = s.ref, {
23
+ p !== "key" && (c[p] = a[p]);
24
+ } else c = a;
25
+ return a = c.ref, {
26
26
  $$typeof: e,
27
27
  type: n,
28
28
  key: u,
29
29
  ref: a !== void 0 ? a : null,
30
- props: s
30
+ props: c
31
31
  };
32
32
  }
33
- return we.Fragment = r, we.jsx = t, we.jsxs = t, we;
33
+ return Pe.Fragment = r, Pe.jsx = t, Pe.jsxs = t, Pe;
34
34
  }
35
- var ke = {};
35
+ var Se = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -42,26 +42,26 @@ var ke = {};
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 cr;
46
- function Nr() {
47
- return cr || (cr = 1, process.env.NODE_ENV !== "production" && (function() {
45
+ var fr;
46
+ function zr() {
47
+ return fr || (fr = 1, process.env.NODE_ENV !== "production" && (function() {
48
48
  function e(o) {
49
49
  if (o == null) return null;
50
50
  if (typeof o == "function")
51
- return o.$$typeof === ee ? null : o.displayName || o.name || null;
51
+ return o.$$typeof === B ? null : o.displayName || o.name || null;
52
52
  if (typeof o == "string") return o;
53
53
  switch (o) {
54
- case S:
54
+ case P:
55
55
  return "Fragment";
56
56
  case C:
57
57
  return "Profiler";
58
- case E:
58
+ case S:
59
59
  return "StrictMode";
60
60
  case F:
61
61
  return "Suspense";
62
- case R:
62
+ case E:
63
63
  return "SuspenseList";
64
- case q:
64
+ case ne:
65
65
  return "Activity";
66
66
  }
67
67
  if (typeof o == "object")
@@ -70,19 +70,19 @@ function Nr() {
70
70
  ), o.$$typeof) {
71
71
  case w:
72
72
  return "Portal";
73
- case N:
73
+ case U:
74
74
  return o.displayName || "Context";
75
75
  case V:
76
76
  return (o._context.displayName || "Context") + ".Consumer";
77
- case z:
78
- var y = o.render;
79
- return o = o.displayName, o || (o = y.displayName || y.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
77
+ case D:
78
+ var g = o.render;
79
+ return o = o.displayName, o || (o = g.displayName || g.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
80
80
  case te:
81
- return y = o.displayName || null, y !== null ? y : e(o.type) || "Memo";
82
- case ce:
83
- y = o._payload, o = o._init;
81
+ return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
82
+ case re:
83
+ g = o._payload, o = o._init;
84
84
  try {
85
- return e(o(y));
85
+ return e(o(g));
86
86
  } catch {
87
87
  }
88
88
  }
@@ -94,74 +94,74 @@ function Nr() {
94
94
  function t(o) {
95
95
  try {
96
96
  r(o);
97
- var y = !1;
97
+ var g = !1;
98
98
  } catch {
99
- y = !0;
99
+ g = !0;
100
100
  }
101
- if (y) {
102
- y = console;
103
- var O = y.error, M = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
- return O.call(
105
- y,
101
+ if (g) {
102
+ g = console;
103
+ var R = g.error, I = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
104
+ return R.call(
105
+ g,
106
106
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
107
- M
107
+ I
108
108
  ), r(o);
109
109
  }
110
110
  }
111
111
  function n(o) {
112
- if (o === S) return "<>";
113
- if (typeof o == "object" && o !== null && o.$$typeof === ce)
112
+ if (o === P) return "<>";
113
+ if (typeof o == "object" && o !== null && o.$$typeof === re)
114
114
  return "<...>";
115
115
  try {
116
- var y = e(o);
117
- return y ? "<" + y + ">" : "<...>";
116
+ var g = e(o);
117
+ return g ? "<" + g + ">" : "<...>";
118
118
  } catch {
119
119
  return "<...>";
120
120
  }
121
121
  }
122
122
  function a() {
123
- var o = Z.A;
123
+ var o = ue.A;
124
124
  return o === null ? null : o.getOwner();
125
125
  }
126
- function s() {
126
+ function c() {
127
127
  return Error("react-stack-top-frame");
128
128
  }
129
129
  function u(o) {
130
- if (fe.call(o, "key")) {
131
- var y = Object.getOwnPropertyDescriptor(o, "key").get;
132
- if (y && y.isReactWarning) return !1;
130
+ if (K.call(o, "key")) {
131
+ var g = Object.getOwnPropertyDescriptor(o, "key").get;
132
+ if (g && g.isReactWarning) return !1;
133
133
  }
134
134
  return o.key !== void 0;
135
135
  }
136
- function p(o, y) {
137
- function O() {
138
- ne || (ne = !0, console.error(
136
+ function p(o, g) {
137
+ function R() {
138
+ d || (d = !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
- y
140
+ g
141
141
  ));
142
142
  }
143
- O.isReactWarning = !0, Object.defineProperty(o, "key", {
144
- get: O,
143
+ R.isReactWarning = !0, Object.defineProperty(o, "key", {
144
+ get: R,
145
145
  configurable: !0
146
146
  });
147
147
  }
148
- function k() {
148
+ function x() {
149
149
  var o = e(this.type);
150
- return K[o] || (K[o] = !0, console.error(
150
+ return ae[o] || (ae[o] = !0, console.error(
151
151
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
152
152
  )), o = this.props.ref, o !== void 0 ? o : null;
153
153
  }
154
- function b(o, y, O, M, i, l) {
155
- var P = O.ref;
154
+ function k(o, g, R, I, Q, i) {
155
+ var s = R.ref;
156
156
  return o = {
157
157
  $$typeof: j,
158
158
  type: o,
159
- key: y,
160
- props: O,
161
- _owner: M
162
- }, (P !== void 0 ? P : null) !== null ? Object.defineProperty(o, "ref", {
159
+ key: g,
160
+ props: R,
161
+ _owner: I
162
+ }, (s !== void 0 ? s : null) !== null ? Object.defineProperty(o, "ref", {
163
163
  enumerable: !1,
164
- get: k
164
+ get: x
165
165
  }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
166
166
  configurable: !1,
167
167
  enumerable: !1,
@@ -176,146 +176,146 @@ function Nr() {
176
176
  configurable: !1,
177
177
  enumerable: !1,
178
178
  writable: !0,
179
- value: i
179
+ value: Q
180
180
  }), Object.defineProperty(o, "_debugTask", {
181
181
  configurable: !1,
182
182
  enumerable: !1,
183
183
  writable: !0,
184
- value: l
184
+ value: i
185
185
  }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
186
186
  }
187
- function m(o, y, O, M, i, l) {
188
- var P = y.children;
189
- if (P !== void 0)
190
- if (M)
191
- if (G(P)) {
192
- for (M = 0; M < P.length; M++)
193
- x(P[M]);
194
- Object.freeze && Object.freeze(P);
187
+ function y(o, g, R, I, Q, i) {
188
+ var s = g.children;
189
+ if (s !== void 0)
190
+ if (I)
191
+ if (ge(s)) {
192
+ for (I = 0; I < s.length; I++)
193
+ b(s[I]);
194
+ Object.freeze && Object.freeze(s);
195
195
  } else
196
196
  console.error(
197
197
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
198
198
  );
199
- else x(P);
200
- if (fe.call(y, "key")) {
201
- P = e(o);
202
- var H = Object.keys(y).filter(function(g) {
203
- return g !== "key";
199
+ else b(s);
200
+ if (K.call(g, "key")) {
201
+ s = e(o);
202
+ var $ = Object.keys(g).filter(function(Oe) {
203
+ return Oe !== "key";
204
204
  });
205
- M = 0 < H.length ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}", re[P + M] || (H = 0 < H.length ? "{" + H.join(": ..., ") + ": ...}" : "{}", console.error(
205
+ I = 0 < $.length ? "{key: someKey, " + $.join(": ..., ") + ": ...}" : "{key: someKey}", ie[s + I] || ($ = 0 < $.length ? "{" + $.join(": ..., ") + ": ...}" : "{}", console.error(
206
206
  `A props object containing a "key" prop is being spread into JSX:
207
207
  let props = %s;
208
208
  <%s {...props} />
209
209
  React keys must be passed directly to JSX without using spread:
210
210
  let props = %s;
211
211
  <%s key={someKey} {...props} />`,
212
- M,
213
- P,
214
- H,
215
- P
216
- ), re[P + M] = !0);
212
+ I,
213
+ s,
214
+ $,
215
+ s
216
+ ), ie[s + I] = !0);
217
217
  }
218
- if (P = null, O !== void 0 && (t(O), P = "" + O), u(y) && (t(y.key), P = "" + y.key), "key" in y) {
219
- O = {};
220
- for (var me in y)
221
- me !== "key" && (O[me] = y[me]);
222
- } else O = y;
223
- return P && p(
224
- O,
218
+ if (s = null, R !== void 0 && (t(R), s = "" + R), u(g) && (t(g.key), s = "" + g.key), "key" in g) {
219
+ R = {};
220
+ for (var ee in g)
221
+ ee !== "key" && (R[ee] = g[ee]);
222
+ } else R = g;
223
+ return s && p(
224
+ R,
225
225
  typeof o == "function" ? o.displayName || o.name || "Unknown" : o
226
- ), b(
226
+ ), k(
227
227
  o,
228
- P,
229
- O,
228
+ s,
229
+ R,
230
230
  a(),
231
- i,
232
- l
231
+ Q,
232
+ i
233
233
  );
234
234
  }
235
- function x(o) {
236
- I(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === ce && (o._payload.status === "fulfilled" ? I(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
235
+ function b(o) {
236
+ M(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === re && (o._payload.status === "fulfilled" ? M(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
237
237
  }
238
- function I(o) {
238
+ function M(o) {
239
239
  return typeof o == "object" && o !== null && o.$$typeof === j;
240
240
  }
241
- var $ = Mr, j = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), N = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), q = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), Z = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = Object.prototype.hasOwnProperty, G = Array.isArray, d = console.createTask ? console.createTask : function() {
241
+ var O = Vr, j = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), U = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ne = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), ue = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, ge = Array.isArray, H = console.createTask ? console.createTask : function() {
242
242
  return null;
243
243
  };
244
- $ = {
244
+ O = {
245
245
  react_stack_bottom_frame: function(o) {
246
246
  return o();
247
247
  }
248
248
  };
249
- var ne, K = {}, ue = $.react_stack_bottom_frame.bind(
250
- $,
251
- s
252
- )(), ae = d(n(s)), re = {};
253
- ke.Fragment = S, ke.jsx = function(o, y, O) {
254
- var M = 1e4 > Z.recentlyCreatedOwnerStacks++;
255
- return m(
249
+ var d, ae = {}, J = O.react_stack_bottom_frame.bind(
250
+ O,
251
+ c
252
+ )(), fe = H(n(c)), ie = {};
253
+ Se.Fragment = P, Se.jsx = function(o, g, R) {
254
+ var I = 1e4 > ue.recentlyCreatedOwnerStacks++;
255
+ return y(
256
256
  o,
257
- y,
258
- O,
257
+ g,
258
+ R,
259
259
  !1,
260
- M ? Error("react-stack-top-frame") : ue,
261
- M ? d(n(o)) : ae
260
+ I ? Error("react-stack-top-frame") : J,
261
+ I ? H(n(o)) : fe
262
262
  );
263
- }, ke.jsxs = function(o, y, O) {
264
- var M = 1e4 > Z.recentlyCreatedOwnerStacks++;
265
- return m(
263
+ }, Se.jsxs = function(o, g, R) {
264
+ var I = 1e4 > ue.recentlyCreatedOwnerStacks++;
265
+ return y(
266
266
  o,
267
- y,
268
- O,
267
+ g,
268
+ R,
269
269
  !0,
270
- M ? Error("react-stack-top-frame") : ue,
271
- M ? d(n(o)) : ae
270
+ I ? Error("react-stack-top-frame") : J,
271
+ I ? H(n(o)) : fe
272
272
  );
273
273
  };
274
- })()), ke;
274
+ })()), Se;
275
275
  }
276
- var lr;
277
- function zr() {
278
- return lr || (lr = 1, process.env.NODE_ENV === "production" ? Te.exports = Lr() : Te.exports = Nr()), Te.exports;
276
+ var dr;
277
+ function Wr() {
278
+ return dr || (dr = 1, process.env.NODE_ENV === "production" ? $e.exports = Dr() : $e.exports = zr()), $e.exports;
279
279
  }
280
- var D = zr();
281
- function We() {
282
- return We = Object.assign ? Object.assign.bind() : function(e) {
280
+ var z = Wr();
281
+ function Ge() {
282
+ return Ge = Object.assign ? Object.assign.bind() : function(e) {
283
283
  for (var r = 1; r < arguments.length; r++) {
284
284
  var t = arguments[r];
285
285
  for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
286
286
  }
287
287
  return e;
288
- }, We.apply(null, arguments);
288
+ }, Ge.apply(null, arguments);
289
289
  }
290
- function Ur(e) {
290
+ function Yr(e) {
291
291
  if (e.sheet)
292
292
  return e.sheet;
293
293
  for (var r = 0; r < document.styleSheets.length; r++)
294
294
  if (document.styleSheets[r].ownerNode === e)
295
295
  return document.styleSheets[r];
296
296
  }
297
- function Dr(e) {
297
+ function qr(e) {
298
298
  var r = document.createElement("style");
299
299
  return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
300
300
  }
301
- var Wr = /* @__PURE__ */ (function() {
301
+ var Hr = /* @__PURE__ */ (function() {
302
302
  function e(t) {
303
303
  var n = this;
304
304
  this._insertTag = function(a) {
305
- var s;
306
- n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, s), n.tags.push(a);
305
+ var c;
306
+ n.tags.length === 0 ? n.insertionPoint ? c = n.insertionPoint.nextSibling : n.prepend ? c = n.container.firstChild : c = n.before : c = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, c), n.tags.push(a);
307
307
  }, this.isSpeedy = t.speedy === void 0 ? !0 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
308
308
  }
309
309
  var r = e.prototype;
310
310
  return r.hydrate = function(n) {
311
311
  n.forEach(this._insertTag);
312
312
  }, r.insert = function(n) {
313
- this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Dr(this));
313
+ this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(qr(this));
314
314
  var a = this.tags[this.tags.length - 1];
315
315
  if (this.isSpeedy) {
316
- var s = Ur(a);
316
+ var c = Yr(a);
317
317
  try {
318
- s.insertRule(n, s.cssRules.length);
318
+ c.insertRule(n, c.cssRules.length);
319
319
  } catch {
320
320
  }
321
321
  } else
@@ -327,66 +327,66 @@ var Wr = /* @__PURE__ */ (function() {
327
327
  return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
328
328
  }), this.tags = [], this.ctr = 0;
329
329
  }, e;
330
- })(), Y = "-ms-", Ve = "-moz-", _ = "-webkit-", kr = "comm", He = "rule", Ge = "decl", Yr = "@import", Pr = "@keyframes", qr = "@layer", Hr = Math.abs, Le = String.fromCharCode, Gr = Object.assign;
331
- function Br(e, r) {
332
- return W(e, 0) ^ 45 ? (((r << 2 ^ W(e, 0)) << 2 ^ W(e, 1)) << 2 ^ W(e, 2)) << 2 ^ W(e, 3) : 0;
330
+ })(), G = "-ms-", De = "-moz-", _ = "-webkit-", Er = "comm", Je = "rule", Ze = "decl", Gr = "@import", Rr = "@keyframes", Br = "@layer", Xr = Math.abs, ze = String.fromCharCode, Jr = Object.assign;
331
+ function Zr(e, r) {
332
+ return q(e, 0) ^ 45 ? (((r << 2 ^ q(e, 0)) << 2 ^ q(e, 1)) << 2 ^ q(e, 2)) << 2 ^ q(e, 3) : 0;
333
333
  }
334
- function Sr(e) {
334
+ function _r(e) {
335
335
  return e.trim();
336
336
  }
337
- function Xr(e, r) {
337
+ function Kr(e, r) {
338
338
  return (e = r.exec(e)) ? e[0] : e;
339
339
  }
340
340
  function T(e, r, t) {
341
341
  return e.replace(r, t);
342
342
  }
343
- function Ye(e, r) {
343
+ function Be(e, r) {
344
344
  return e.indexOf(r);
345
345
  }
346
- function W(e, r) {
346
+ function q(e, r) {
347
347
  return e.charCodeAt(r) | 0;
348
348
  }
349
- function Se(e, r, t) {
349
+ function _e(e, r, t) {
350
350
  return e.slice(r, t);
351
351
  }
352
- function ie(e) {
352
+ function oe(e) {
353
353
  return e.length;
354
354
  }
355
- function Be(e) {
355
+ function Ke(e) {
356
356
  return e.length;
357
357
  }
358
- function Ae(e, r) {
358
+ function Ie(e, r) {
359
359
  return r.push(e), e;
360
360
  }
361
- function Jr(e, r) {
361
+ function Qr(e, r) {
362
362
  return e.map(r).join("");
363
363
  }
364
- var Ne = 1, ve = 1, Er = 0, J = 0, L = 0, xe = "";
365
- function ze(e, r, t, n, a, s, u) {
366
- return { value: e, root: r, parent: t, type: n, props: a, children: s, line: Ne, column: ve, length: u, return: "" };
364
+ var We = 1, xe = 1, Tr = 0, X = 0, N = 0, ke = "";
365
+ function Ye(e, r, t, n, a, c, u) {
366
+ return { value: e, root: r, parent: t, type: n, props: a, children: c, line: We, column: xe, length: u, return: "" };
367
367
  }
368
- function Pe(e, r) {
369
- return Gr(ze("", null, null, "", null, null, 0), e, { length: -e.length }, r);
368
+ function Ee(e, r) {
369
+ return Jr(Ye("", null, null, "", null, null, 0), e, { length: -e.length }, r);
370
370
  }
371
- function Zr() {
372
- return L;
371
+ function et() {
372
+ return N;
373
373
  }
374
- function Kr() {
375
- return L = J > 0 ? W(xe, --J) : 0, ve--, L === 10 && (ve = 1, Ne--), L;
374
+ function rt() {
375
+ return N = X > 0 ? q(ke, --X) : 0, xe--, N === 10 && (xe = 1, We--), N;
376
376
  }
377
- function Q() {
378
- return L = J < Er ? W(xe, J++) : 0, ve++, L === 10 && (ve = 1, Ne++), L;
377
+ function Z() {
378
+ return N = X < Tr ? q(ke, X++) : 0, xe++, N === 10 && (xe = 1, We++), N;
379
379
  }
380
- function se() {
381
- return W(xe, J);
380
+ function ce() {
381
+ return q(ke, X);
382
382
  }
383
- function je() {
384
- return J;
383
+ function Ve() {
384
+ return X;
385
385
  }
386
- function _e(e, r) {
387
- return Se(xe, e, r);
386
+ function Ce(e, r) {
387
+ return _e(ke, e, r);
388
388
  }
389
- function Ee(e) {
389
+ function Te(e) {
390
390
  switch (e) {
391
391
  // \0 \t \n \r \s whitespace token
392
392
  case 0:
@@ -424,101 +424,101 @@ function Ee(e) {
424
424
  }
425
425
  return 0;
426
426
  }
427
- function Rr(e) {
428
- return Ne = ve = 1, Er = ie(xe = e), J = 0, [];
427
+ function Ar(e) {
428
+ return We = xe = 1, Tr = oe(ke = e), X = 0, [];
429
429
  }
430
- function _r(e) {
431
- return xe = "", e;
430
+ function Cr(e) {
431
+ return ke = "", e;
432
432
  }
433
- function Me(e) {
434
- return Sr(_e(J - 1, qe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
433
+ function Le(e) {
434
+ return _r(Ce(X - 1, Xe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
435
435
  }
436
- function Qr(e) {
437
- for (; (L = se()) && L < 33; )
438
- Q();
439
- return Ee(e) > 2 || Ee(L) > 3 ? "" : " ";
436
+ function tt(e) {
437
+ for (; (N = ce()) && N < 33; )
438
+ Z();
439
+ return Te(e) > 2 || Te(N) > 3 ? "" : " ";
440
440
  }
441
- function et(e, r) {
442
- for (; --r && Q() && !(L < 48 || L > 102 || L > 57 && L < 65 || L > 70 && L < 97); )
441
+ function nt(e, r) {
442
+ for (; --r && Z() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
443
443
  ;
444
- return _e(e, je() + (r < 6 && se() == 32 && Q() == 32));
444
+ return Ce(e, Ve() + (r < 6 && ce() == 32 && Z() == 32));
445
445
  }
446
- function qe(e) {
447
- for (; Q(); )
448
- switch (L) {
446
+ function Xe(e) {
447
+ for (; Z(); )
448
+ switch (N) {
449
449
  // ] ) " '
450
450
  case e:
451
- return J;
451
+ return X;
452
452
  // " '
453
453
  case 34:
454
454
  case 39:
455
- e !== 34 && e !== 39 && qe(L);
455
+ e !== 34 && e !== 39 && Xe(N);
456
456
  break;
457
457
  // (
458
458
  case 40:
459
- e === 41 && qe(e);
459
+ e === 41 && Xe(e);
460
460
  break;
461
461
  // \
462
462
  case 92:
463
- Q();
463
+ Z();
464
464
  break;
465
465
  }
466
- return J;
466
+ return X;
467
467
  }
468
- function rt(e, r) {
469
- for (; Q() && e + L !== 57; )
470
- if (e + L === 84 && se() === 47)
468
+ function at(e, r) {
469
+ for (; Z() && e + N !== 57; )
470
+ if (e + N === 84 && ce() === 47)
471
471
  break;
472
- return "/*" + _e(r, J - 1) + "*" + Le(e === 47 ? e : Q());
472
+ return "/*" + Ce(r, X - 1) + "*" + ze(e === 47 ? e : Z());
473
473
  }
474
- function tt(e) {
475
- for (; !Ee(se()); )
476
- Q();
477
- return _e(e, J);
474
+ function it(e) {
475
+ for (; !Te(ce()); )
476
+ Z();
477
+ return Ce(e, X);
478
478
  }
479
- function nt(e) {
480
- return _r(Ie("", null, null, null, [""], e = Rr(e), 0, [0], e));
479
+ function ot(e) {
480
+ return Cr(Ne("", null, null, null, [""], e = Ar(e), 0, [0], e));
481
481
  }
482
- function Ie(e, r, t, n, a, s, u, p, k) {
483
- for (var b = 0, m = 0, x = u, I = 0, $ = 0, j = 0, w = 1, S = 1, E = 1, C = 0, V = "", N = a, z = s, F = n, R = V; S; )
484
- switch (j = C, C = Q()) {
482
+ function Ne(e, r, t, n, a, c, u, p, x) {
483
+ for (var k = 0, y = 0, b = u, M = 0, O = 0, j = 0, w = 1, P = 1, S = 1, C = 0, V = "", U = a, D = c, F = n, E = V; P; )
484
+ switch (j = C, C = Z()) {
485
485
  // (
486
486
  case 40:
487
- if (j != 108 && W(R, x - 1) == 58) {
488
- Ye(R += T(Me(C), "&", "&\f"), "&\f") != -1 && (E = -1);
487
+ if (j != 108 && q(E, b - 1) == 58) {
488
+ Be(E += T(Le(C), "&", "&\f"), "&\f") != -1 && (S = -1);
489
489
  break;
490
490
  }
491
491
  // " ' [
492
492
  case 34:
493
493
  case 39:
494
494
  case 91:
495
- R += Me(C);
495
+ E += Le(C);
496
496
  break;
497
497
  // \t \n \r \s
498
498
  case 9:
499
499
  case 10:
500
500
  case 13:
501
501
  case 32:
502
- R += Qr(j);
502
+ E += tt(j);
503
503
  break;
504
504
  // \
505
505
  case 92:
506
- R += et(je() - 1, 7);
506
+ E += nt(Ve() - 1, 7);
507
507
  continue;
508
508
  // /
509
509
  case 47:
510
- switch (se()) {
510
+ switch (ce()) {
511
511
  case 42:
512
512
  case 47:
513
- Ae(at(rt(Q(), je()), r, t), k);
513
+ Ie(st(at(Z(), Ve()), r, t), x);
514
514
  break;
515
515
  default:
516
- R += "/";
516
+ E += "/";
517
517
  }
518
518
  break;
519
519
  // {
520
520
  case 123 * w:
521
- p[b++] = ie(R) * E;
521
+ p[k++] = oe(E) * S;
522
522
  // } ; \0
523
523
  case 125 * w:
524
524
  case 59:
@@ -527,157 +527,157 @@ function Ie(e, r, t, n, a, s, u, p, k) {
527
527
  // \0 }
528
528
  case 0:
529
529
  case 125:
530
- S = 0;
530
+ P = 0;
531
531
  // ;
532
- case 59 + m:
533
- E == -1 && (R = T(R, /\f/g, "")), $ > 0 && ie(R) - x && Ae($ > 32 ? fr(R + ";", n, t, x - 1) : fr(T(R, " ", "") + ";", n, t, x - 2), k);
532
+ case 59 + y:
533
+ S == -1 && (E = T(E, /\f/g, "")), O > 0 && oe(E) - b && Ie(O > 32 ? hr(E + ";", n, t, b - 1) : hr(T(E, " ", "") + ";", n, t, b - 2), x);
534
534
  break;
535
535
  // @ ;
536
536
  case 59:
537
- R += ";";
537
+ E += ";";
538
538
  // { rule/at-rule
539
539
  default:
540
- if (Ae(F = ur(R, r, t, b, m, a, p, V, N = [], z = [], x), s), C === 123)
541
- if (m === 0)
542
- Ie(R, r, F, F, N, s, x, p, z);
540
+ if (Ie(F = pr(E, r, t, k, y, a, p, V, U = [], D = [], b), c), C === 123)
541
+ if (y === 0)
542
+ Ne(E, r, F, F, U, c, b, p, D);
543
543
  else
544
- switch (I === 99 && W(R, 3) === 110 ? 100 : I) {
544
+ switch (M === 99 && q(E, 3) === 110 ? 100 : M) {
545
545
  // d l m s
546
546
  case 100:
547
547
  case 108:
548
548
  case 109:
549
549
  case 115:
550
- Ie(e, F, F, n && Ae(ur(e, F, F, 0, 0, a, p, V, a, N = [], x), z), a, z, x, p, n ? N : z);
550
+ Ne(e, F, F, n && Ie(pr(e, F, F, 0, 0, a, p, V, a, U = [], b), D), a, D, b, p, n ? U : D);
551
551
  break;
552
552
  default:
553
- Ie(R, F, F, F, [""], z, 0, p, z);
553
+ Ne(E, F, F, F, [""], D, 0, p, D);
554
554
  }
555
555
  }
556
- b = m = $ = 0, w = E = 1, V = R = "", x = u;
556
+ k = y = O = 0, w = S = 1, V = E = "", b = u;
557
557
  break;
558
558
  // :
559
559
  case 58:
560
- x = 1 + ie(R), $ = j;
560
+ b = 1 + oe(E), O = j;
561
561
  default:
562
562
  if (w < 1) {
563
563
  if (C == 123)
564
564
  --w;
565
- else if (C == 125 && w++ == 0 && Kr() == 125)
565
+ else if (C == 125 && w++ == 0 && rt() == 125)
566
566
  continue;
567
567
  }
568
- switch (R += Le(C), C * w) {
568
+ switch (E += ze(C), C * w) {
569
569
  // &
570
570
  case 38:
571
- E = m > 0 ? 1 : (R += "\f", -1);
571
+ S = y > 0 ? 1 : (E += "\f", -1);
572
572
  break;
573
573
  // ,
574
574
  case 44:
575
- p[b++] = (ie(R) - 1) * E, E = 1;
575
+ p[k++] = (oe(E) - 1) * S, S = 1;
576
576
  break;
577
577
  // @
578
578
  case 64:
579
- se() === 45 && (R += Me(Q())), I = se(), m = x = ie(V = R += tt(je())), C++;
579
+ ce() === 45 && (E += Le(Z())), M = ce(), y = b = oe(V = E += it(Ve())), C++;
580
580
  break;
581
581
  // -
582
582
  case 45:
583
- j === 45 && ie(R) == 2 && (w = 0);
583
+ j === 45 && oe(E) == 2 && (w = 0);
584
584
  }
585
585
  }
586
- return s;
586
+ return c;
587
587
  }
588
- function ur(e, r, t, n, a, s, u, p, k, b, m) {
589
- for (var x = a - 1, I = a === 0 ? s : [""], $ = Be(I), j = 0, w = 0, S = 0; j < n; ++j)
590
- for (var E = 0, C = Se(e, x + 1, x = Hr(w = u[j])), V = e; E < $; ++E)
591
- (V = Sr(w > 0 ? I[E] + " " + C : T(C, /&\f/g, I[E]))) && (k[S++] = V);
592
- return ze(e, r, t, a === 0 ? He : p, k, b, m);
588
+ function pr(e, r, t, n, a, c, u, p, x, k, y) {
589
+ for (var b = a - 1, M = a === 0 ? c : [""], O = Ke(M), j = 0, w = 0, P = 0; j < n; ++j)
590
+ for (var S = 0, C = _e(e, b + 1, b = Xr(w = u[j])), V = e; S < O; ++S)
591
+ (V = _r(w > 0 ? M[S] + " " + C : T(C, /&\f/g, M[S]))) && (x[P++] = V);
592
+ return Ye(e, r, t, a === 0 ? Je : p, x, k, y);
593
593
  }
594
- function at(e, r, t) {
595
- return ze(e, r, t, kr, Le(Zr()), Se(e, 2, -2), 0);
594
+ function st(e, r, t) {
595
+ return Ye(e, r, t, Er, ze(et()), _e(e, 2, -2), 0);
596
596
  }
597
- function fr(e, r, t, n) {
598
- return ze(e, r, t, Ge, Se(e, 0, n), Se(e, n + 1, -1), n);
597
+ function hr(e, r, t, n) {
598
+ return Ye(e, r, t, Ze, _e(e, 0, n), _e(e, n + 1, -1), n);
599
599
  }
600
- function ye(e, r) {
601
- for (var t = "", n = Be(e), a = 0; a < n; a++)
600
+ function be(e, r) {
601
+ for (var t = "", n = Ke(e), a = 0; a < n; a++)
602
602
  t += r(e[a], a, e, r) || "";
603
603
  return t;
604
604
  }
605
- function it(e, r, t, n) {
605
+ function ct(e, r, t, n) {
606
606
  switch (e.type) {
607
- case qr:
607
+ case Br:
608
608
  if (e.children.length) break;
609
- case Yr:
610
- case Ge:
609
+ case Gr:
610
+ case Ze:
611
611
  return e.return = e.return || e.value;
612
- case kr:
612
+ case Er:
613
613
  return "";
614
- case Pr:
615
- return e.return = e.value + "{" + ye(e.children, n) + "}";
616
- case He:
614
+ case Rr:
615
+ return e.return = e.value + "{" + be(e.children, n) + "}";
616
+ case Je:
617
617
  e.value = e.props.join(",");
618
618
  }
619
- return ie(t = ye(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
619
+ return oe(t = be(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
620
620
  }
621
- function ot(e) {
622
- var r = Be(e);
623
- return function(t, n, a, s) {
621
+ function lt(e) {
622
+ var r = Ke(e);
623
+ return function(t, n, a, c) {
624
624
  for (var u = "", p = 0; p < r; p++)
625
- u += e[p](t, n, a, s) || "";
625
+ u += e[p](t, n, a, c) || "";
626
626
  return u;
627
627
  };
628
628
  }
629
- function st(e) {
629
+ function ut(e) {
630
630
  return function(r) {
631
631
  r.root || (r = r.return) && e(r);
632
632
  };
633
633
  }
634
- function Tr(e) {
634
+ function Or(e) {
635
635
  var r = /* @__PURE__ */ Object.create(null);
636
636
  return function(t) {
637
637
  return r[t] === void 0 && (r[t] = e(t)), r[t];
638
638
  };
639
639
  }
640
- var ct = function(r, t, n) {
641
- for (var a = 0, s = 0; a = s, s = se(), a === 38 && s === 12 && (t[n] = 1), !Ee(s); )
642
- Q();
643
- return _e(r, J);
644
- }, lt = function(r, t) {
640
+ var ft = function(r, t, n) {
641
+ for (var a = 0, c = 0; a = c, c = ce(), a === 38 && c === 12 && (t[n] = 1), !Te(c); )
642
+ Z();
643
+ return Ce(r, X);
644
+ }, dt = function(r, t) {
645
645
  var n = -1, a = 44;
646
646
  do
647
- switch (Ee(a)) {
647
+ switch (Te(a)) {
648
648
  case 0:
649
- a === 38 && se() === 12 && (t[n] = 1), r[n] += ct(J - 1, t, n);
649
+ a === 38 && ce() === 12 && (t[n] = 1), r[n] += ft(X - 1, t, n);
650
650
  break;
651
651
  case 2:
652
- r[n] += Me(a);
652
+ r[n] += Le(a);
653
653
  break;
654
654
  case 4:
655
655
  if (a === 44) {
656
- r[++n] = se() === 58 ? "&\f" : "", t[n] = r[n].length;
656
+ r[++n] = ce() === 58 ? "&\f" : "", t[n] = r[n].length;
657
657
  break;
658
658
  }
659
659
  // fallthrough
660
660
  default:
661
- r[n] += Le(a);
661
+ r[n] += ze(a);
662
662
  }
663
- while (a = Q());
663
+ while (a = Z());
664
664
  return r;
665
- }, ut = function(r, t) {
666
- return _r(lt(Rr(r), t));
667
- }, dr = /* @__PURE__ */ new WeakMap(), ft = function(r) {
665
+ }, pt = function(r, t) {
666
+ return Cr(dt(Ar(r), t));
667
+ }, mr = /* @__PURE__ */ new WeakMap(), ht = function(r) {
668
668
  if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
669
669
  // negative .length indicates that this rule has been already prefixed
670
670
  r.length < 1)) {
671
671
  for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
672
672
  if (n = n.parent, !n) return;
673
- if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !dr.get(n)) && !a) {
674
- dr.set(r, !0);
675
- for (var s = [], u = ut(t, s), p = n.props, k = 0, b = 0; k < u.length; k++)
676
- for (var m = 0; m < p.length; m++, b++)
677
- r.props[b] = s[k] ? u[k].replace(/&\f/g, p[m]) : p[m] + " " + u[k];
673
+ if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !mr.get(n)) && !a) {
674
+ mr.set(r, !0);
675
+ for (var c = [], u = pt(t, c), p = n.props, x = 0, k = 0; x < u.length; x++)
676
+ for (var y = 0; y < p.length; y++, k++)
677
+ r.props[k] = c[x] ? u[x].replace(/&\f/g, p[y]) : p[y] + " " + u[x];
678
678
  }
679
679
  }
680
- }, dt = function(r) {
680
+ }, mt = function(r) {
681
681
  if (r.type === "decl") {
682
682
  var t = r.value;
683
683
  // charcode for l
@@ -685,8 +685,8 @@ var ct = function(r, t, n) {
685
685
  t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
686
686
  }
687
687
  };
688
- function Ar(e, r) {
689
- switch (Br(e, r)) {
688
+ function jr(e, r) {
689
+ switch (Zr(e, r)) {
690
690
  // color-adjust
691
691
  case 5103:
692
692
  return _ + "print-" + e + e;
@@ -726,32 +726,32 @@ function Ar(e, r) {
726
726
  case 4810:
727
727
  case 6968:
728
728
  case 2756:
729
- return _ + e + Ve + e + Y + e + e;
729
+ return _ + e + De + e + G + e + e;
730
730
  // flex, flex-direction
731
731
  case 6828:
732
732
  case 4268:
733
- return _ + e + Y + e + e;
733
+ return _ + e + G + e + e;
734
734
  // order
735
735
  case 6165:
736
- return _ + e + Y + "flex-" + e + e;
736
+ return _ + e + G + "flex-" + e + e;
737
737
  // align-items
738
738
  case 5187:
739
- return _ + e + T(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + Y + "flex-$1$2") + e;
739
+ return _ + e + T(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + G + "flex-$1$2") + e;
740
740
  // align-self
741
741
  case 5443:
742
- return _ + e + Y + "flex-item-" + T(e, /flex-|-self/, "") + e;
742
+ return _ + e + G + "flex-item-" + T(e, /flex-|-self/, "") + e;
743
743
  // align-content
744
744
  case 4675:
745
- return _ + e + Y + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
745
+ return _ + e + G + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
746
746
  // flex-shrink
747
747
  case 5548:
748
- return _ + e + Y + T(e, "shrink", "negative") + e;
748
+ return _ + e + G + T(e, "shrink", "negative") + e;
749
749
  // flex-basis
750
750
  case 5292:
751
- return _ + e + Y + T(e, "basis", "preferred-size") + e;
751
+ return _ + e + G + T(e, "basis", "preferred-size") + e;
752
752
  // flex-grow
753
753
  case 6060:
754
- return _ + "box-" + T(e, "-grow", "") + _ + e + Y + T(e, "grow", "positive") + e;
754
+ return _ + "box-" + T(e, "-grow", "") + _ + e + G + T(e, "grow", "positive") + e;
755
755
  // transition
756
756
  case 4554:
757
757
  return _ + T(e, /([^-])(transform)/g, "$1" + _ + "$2") + e;
@@ -764,7 +764,7 @@ function Ar(e, r) {
764
764
  return T(e, /(image-set\([^]*)/, _ + "$1$`$1");
765
765
  // justify-content
766
766
  case 4968:
767
- return T(T(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + Y + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e;
767
+ return T(T(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + G + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e;
768
768
  // (margin|padding)-inline-(start|end)
769
769
  case 4095:
770
770
  case 3583:
@@ -784,114 +784,114 @@ function Ar(e, r) {
784
784
  case 5789:
785
785
  case 5021:
786
786
  case 4765:
787
- if (ie(e) - 1 - r > 6) switch (W(e, r + 1)) {
787
+ if (oe(e) - 1 - r > 6) switch (q(e, r + 1)) {
788
788
  // (m)ax-content, (m)in-content
789
789
  case 109:
790
- if (W(e, r + 4) !== 45) break;
790
+ if (q(e, r + 4) !== 45) break;
791
791
  // (f)ill-available, (f)it-content
792
792
  case 102:
793
- return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Ve + (W(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
793
+ return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + De + (q(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
794
794
  // (s)tretch
795
795
  case 115:
796
- return ~Ye(e, "stretch") ? Ar(T(e, "stretch", "fill-available"), r) + e : e;
796
+ return ~Be(e, "stretch") ? jr(T(e, "stretch", "fill-available"), r) + e : e;
797
797
  }
798
798
  break;
799
799
  // position: sticky
800
800
  case 4949:
801
- if (W(e, r + 1) !== 115) break;
801
+ if (q(e, r + 1) !== 115) break;
802
802
  // display: (flex|inline-flex)
803
803
  case 6444:
804
- switch (W(e, ie(e) - 3 - (~Ye(e, "!important") && 10))) {
804
+ switch (q(e, oe(e) - 3 - (~Be(e, "!important") && 10))) {
805
805
  // stic(k)y
806
806
  case 107:
807
807
  return T(e, ":", ":" + _) + e;
808
808
  // (inline-)?fl(e)x
809
809
  case 101:
810
- return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (W(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + Y + "$2box$3") + e;
810
+ return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (q(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + G + "$2box$3") + e;
811
811
  }
812
812
  break;
813
813
  // writing-mode
814
814
  case 5936:
815
- switch (W(e, r + 11)) {
815
+ switch (q(e, r + 11)) {
816
816
  // vertical-l(r)
817
817
  case 114:
818
- return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
818
+ return _ + e + G + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
819
819
  // vertical-r(l)
820
820
  case 108:
821
- return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
821
+ return _ + e + G + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
822
822
  // horizontal(-)tb
823
823
  case 45:
824
- return _ + e + Y + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
824
+ return _ + e + G + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
825
825
  }
826
- return _ + e + Y + e + e;
826
+ return _ + e + G + e + e;
827
827
  }
828
828
  return e;
829
829
  }
830
- var pt = function(r, t, n, a) {
830
+ var gt = function(r, t, n, a) {
831
831
  if (r.length > -1 && !r.return) switch (r.type) {
832
- case Ge:
833
- r.return = Ar(r.value, r.length);
832
+ case Ze:
833
+ r.return = jr(r.value, r.length);
834
834
  break;
835
- case Pr:
836
- return ye([Pe(r, {
835
+ case Rr:
836
+ return be([Ee(r, {
837
837
  value: T(r.value, "@", "@" + _)
838
838
  })], a);
839
- case He:
840
- if (r.length) return Jr(r.props, function(s) {
841
- switch (Xr(s, /(::plac\w+|:read-\w+)/)) {
839
+ case Je:
840
+ if (r.length) return Qr(r.props, function(c) {
841
+ switch (Kr(c, /(::plac\w+|:read-\w+)/)) {
842
842
  // :read-(only|write)
843
843
  case ":read-only":
844
844
  case ":read-write":
845
- return ye([Pe(r, {
846
- props: [T(s, /:(read-\w+)/, ":" + Ve + "$1")]
845
+ return be([Ee(r, {
846
+ props: [T(c, /:(read-\w+)/, ":" + De + "$1")]
847
847
  })], a);
848
848
  // :placeholder
849
849
  case "::placeholder":
850
- return ye([Pe(r, {
851
- props: [T(s, /:(plac\w+)/, ":" + _ + "input-$1")]
852
- }), Pe(r, {
853
- props: [T(s, /:(plac\w+)/, ":" + Ve + "$1")]
854
- }), Pe(r, {
855
- props: [T(s, /:(plac\w+)/, Y + "input-$1")]
850
+ return be([Ee(r, {
851
+ props: [T(c, /:(plac\w+)/, ":" + _ + "input-$1")]
852
+ }), Ee(r, {
853
+ props: [T(c, /:(plac\w+)/, ":" + De + "$1")]
854
+ }), Ee(r, {
855
+ props: [T(c, /:(plac\w+)/, G + "input-$1")]
856
856
  })], a);
857
857
  }
858
858
  return "";
859
859
  });
860
860
  }
861
- }, ht = [pt], mt = function(r) {
861
+ }, yt = [gt], vt = function(r) {
862
862
  var t = r.key;
863
863
  if (t === "css") {
864
864
  var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
865
865
  Array.prototype.forEach.call(n, function(w) {
866
- var S = w.getAttribute("data-emotion");
867
- S.indexOf(" ") !== -1 && (document.head.appendChild(w), w.setAttribute("data-s", ""));
866
+ var P = w.getAttribute("data-emotion");
867
+ P.indexOf(" ") !== -1 && (document.head.appendChild(w), w.setAttribute("data-s", ""));
868
868
  });
869
869
  }
870
- var a = r.stylisPlugins || ht, s = {}, u, p = [];
870
+ var a = r.stylisPlugins || yt, c = {}, u, p = [];
871
871
  u = r.container || document.head, Array.prototype.forEach.call(
872
872
  // this means we will ignore elements which don't have a space in them which
873
873
  // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
874
874
  document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
875
875
  function(w) {
876
- for (var S = w.getAttribute("data-emotion").split(" "), E = 1; E < S.length; E++)
877
- s[S[E]] = !0;
876
+ for (var P = w.getAttribute("data-emotion").split(" "), S = 1; S < P.length; S++)
877
+ c[P[S]] = !0;
878
878
  p.push(w);
879
879
  }
880
880
  );
881
- var k, b = [ft, dt];
881
+ var x, k = [ht, mt];
882
882
  {
883
- var m, x = [it, st(function(w) {
884
- m.insert(w);
885
- })], I = ot(b.concat(a, x)), $ = function(S) {
886
- return ye(nt(S), I);
883
+ var y, b = [ct, ut(function(w) {
884
+ y.insert(w);
885
+ })], M = lt(k.concat(a, b)), O = function(P) {
886
+ return be(ot(P), M);
887
887
  };
888
- k = function(S, E, C, V) {
889
- m = C, $(S ? S + "{" + E.styles + "}" : E.styles), V && (j.inserted[E.name] = !0);
888
+ x = function(P, S, C, V) {
889
+ y = C, O(P ? P + "{" + S.styles + "}" : S.styles), V && (j.inserted[S.name] = !0);
890
890
  };
891
891
  }
892
892
  var j = {
893
893
  key: t,
894
- sheet: new Wr({
894
+ sheet: new Hr({
895
895
  key: t,
896
896
  container: u,
897
897
  nonce: r.nonce,
@@ -900,19 +900,19 @@ var pt = function(r, t, n, a) {
900
900
  insertionPoint: r.insertionPoint
901
901
  }),
902
902
  nonce: r.nonce,
903
- inserted: s,
903
+ inserted: c,
904
904
  registered: {},
905
- insert: k
905
+ insert: x
906
906
  };
907
907
  return j.sheet.hydrate(p), j;
908
- }, gt = !0;
909
- function yt(e, r, t) {
908
+ }, bt = !0;
909
+ function xt(e, r, t) {
910
910
  var n = "";
911
911
  return t.split(" ").forEach(function(a) {
912
912
  e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
913
913
  }), n;
914
914
  }
915
- var Cr = function(r, t, n) {
915
+ var $r = function(r, t, n) {
916
916
  var a = r.key + "-" + t.name;
917
917
  // we only need to add the styles to the registered cache if the
918
918
  // class name could be used further down
@@ -923,18 +923,18 @@ var Cr = function(r, t, n) {
923
923
  // in node since emotion-server relies on whether a style is in
924
924
  // the registered cache to know whether a style is global or not
925
925
  // also, note that this check will be dead code eliminated in the browser
926
- gt === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
927
- }, vt = function(r, t, n) {
928
- Cr(r, t, n);
926
+ bt === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
927
+ }, wt = function(r, t, n) {
928
+ $r(r, t, n);
929
929
  var a = r.key + "-" + t.name;
930
930
  if (r.inserted[t.name] === void 0) {
931
- var s = t;
931
+ var c = t;
932
932
  do
933
- r.insert(t === s ? "." + a : "", s, r.sheet, !0), s = s.next;
934
- while (s !== void 0);
933
+ r.insert(t === c ? "." + a : "", c, r.sheet, !0), c = c.next;
934
+ while (c !== void 0);
935
935
  }
936
936
  };
937
- function bt(e) {
937
+ function kt(e) {
938
938
  for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
939
939
  t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
940
940
  (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
@@ -953,7 +953,7 @@ function bt(e) {
953
953
  return r ^= r >>> 13, r = /* Math.imul(h, m): */
954
954
  (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
955
955
  }
956
- var xt = {
956
+ var Pt = {
957
957
  animationIterationCount: 1,
958
958
  aspectRatio: 1,
959
959
  borderImageOutset: 1,
@@ -1002,28 +1002,28 @@ var xt = {
1002
1002
  strokeMiterlimit: 1,
1003
1003
  strokeOpacity: 1,
1004
1004
  strokeWidth: 1
1005
- }, wt = /[A-Z]|^ms/g, kt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Or = function(r) {
1005
+ }, St = /[A-Z]|^ms/g, Et = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Ir = function(r) {
1006
1006
  return r.charCodeAt(1) === 45;
1007
- }, pr = function(r) {
1007
+ }, gr = function(r) {
1008
1008
  return r != null && typeof r != "boolean";
1009
- }, De = /* @__PURE__ */ Tr(function(e) {
1010
- return Or(e) ? e : e.replace(wt, "-$&").toLowerCase();
1011
- }), hr = function(r, t) {
1009
+ }, He = /* @__PURE__ */ Or(function(e) {
1010
+ return Ir(e) ? e : e.replace(St, "-$&").toLowerCase();
1011
+ }), yr = function(r, t) {
1012
1012
  switch (r) {
1013
1013
  case "animation":
1014
1014
  case "animationName":
1015
1015
  if (typeof t == "string")
1016
- return t.replace(kt, function(n, a, s) {
1017
- return oe = {
1016
+ return t.replace(Et, function(n, a, c) {
1017
+ return se = {
1018
1018
  name: a,
1019
- styles: s,
1020
- next: oe
1019
+ styles: c,
1020
+ next: se
1021
1021
  }, a;
1022
1022
  });
1023
1023
  }
1024
- return xt[r] !== 1 && !Or(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1024
+ return Pt[r] !== 1 && !Ir(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
1025
1025
  };
1026
- function Re(e, r, t) {
1026
+ function Ae(e, r, t) {
1027
1027
  if (t == null)
1028
1028
  return "";
1029
1029
  var n = t;
@@ -1035,188 +1035,188 @@ function Re(e, r, t) {
1035
1035
  case "object": {
1036
1036
  var a = t;
1037
1037
  if (a.anim === 1)
1038
- return oe = {
1038
+ return se = {
1039
1039
  name: a.name,
1040
1040
  styles: a.styles,
1041
- next: oe
1041
+ next: se
1042
1042
  }, a.name;
1043
- var s = t;
1044
- if (s.styles !== void 0) {
1045
- var u = s.next;
1043
+ var c = t;
1044
+ if (c.styles !== void 0) {
1045
+ var u = c.next;
1046
1046
  if (u !== void 0)
1047
1047
  for (; u !== void 0; )
1048
- oe = {
1048
+ se = {
1049
1049
  name: u.name,
1050
1050
  styles: u.styles,
1051
- next: oe
1051
+ next: se
1052
1052
  }, u = u.next;
1053
- var p = s.styles + ";";
1053
+ var p = c.styles + ";";
1054
1054
  return p;
1055
1055
  }
1056
- return Pt(e, r, t);
1056
+ return Rt(e, r, t);
1057
1057
  }
1058
1058
  case "function": {
1059
1059
  if (e !== void 0) {
1060
- var k = oe, b = t(e);
1061
- return oe = k, Re(e, r, b);
1060
+ var x = se, k = t(e);
1061
+ return se = x, Ae(e, r, k);
1062
1062
  }
1063
1063
  break;
1064
1064
  }
1065
1065
  }
1066
- var m = t;
1066
+ var y = t;
1067
1067
  if (r == null)
1068
- return m;
1069
- var x = r[m];
1070
- return x !== void 0 ? x : m;
1068
+ return y;
1069
+ var b = r[y];
1070
+ return b !== void 0 ? b : y;
1071
1071
  }
1072
- function Pt(e, r, t) {
1072
+ function Rt(e, r, t) {
1073
1073
  var n = "";
1074
1074
  if (Array.isArray(t))
1075
1075
  for (var a = 0; a < t.length; a++)
1076
- n += Re(e, r, t[a]) + ";";
1076
+ n += Ae(e, r, t[a]) + ";";
1077
1077
  else
1078
- for (var s in t) {
1079
- var u = t[s];
1078
+ for (var c in t) {
1079
+ var u = t[c];
1080
1080
  if (typeof u != "object") {
1081
1081
  var p = u;
1082
- r != null && r[p] !== void 0 ? n += s + "{" + r[p] + "}" : pr(p) && (n += De(s) + ":" + hr(s, p) + ";");
1082
+ r != null && r[p] !== void 0 ? n += c + "{" + r[p] + "}" : gr(p) && (n += He(c) + ":" + yr(c, p) + ";");
1083
1083
  } else if (Array.isArray(u) && typeof u[0] == "string" && (r == null || r[u[0]] === void 0))
1084
- for (var k = 0; k < u.length; k++)
1085
- pr(u[k]) && (n += De(s) + ":" + hr(s, u[k]) + ";");
1084
+ for (var x = 0; x < u.length; x++)
1085
+ gr(u[x]) && (n += He(c) + ":" + yr(c, u[x]) + ";");
1086
1086
  else {
1087
- var b = Re(e, r, u);
1088
- switch (s) {
1087
+ var k = Ae(e, r, u);
1088
+ switch (c) {
1089
1089
  case "animation":
1090
1090
  case "animationName": {
1091
- n += De(s) + ":" + b + ";";
1091
+ n += He(c) + ":" + k + ";";
1092
1092
  break;
1093
1093
  }
1094
1094
  default:
1095
- n += s + "{" + b + "}";
1095
+ n += c + "{" + k + "}";
1096
1096
  }
1097
1097
  }
1098
1098
  }
1099
1099
  return n;
1100
1100
  }
1101
- var mr = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
1102
- function St(e, r, t) {
1101
+ var vr = /label:\s*([^\s;{]+)\s*(;|$)/g, se;
1102
+ function _t(e, r, t) {
1103
1103
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
1104
1104
  return e[0];
1105
1105
  var n = !0, a = "";
1106
- oe = void 0;
1107
- var s = e[0];
1108
- if (s == null || s.raw === void 0)
1109
- n = !1, a += Re(t, r, s);
1106
+ se = void 0;
1107
+ var c = e[0];
1108
+ if (c == null || c.raw === void 0)
1109
+ n = !1, a += Ae(t, r, c);
1110
1110
  else {
1111
- var u = s;
1111
+ var u = c;
1112
1112
  a += u[0];
1113
1113
  }
1114
1114
  for (var p = 1; p < e.length; p++)
1115
- if (a += Re(t, r, e[p]), n) {
1116
- var k = s;
1117
- a += k[p];
1115
+ if (a += Ae(t, r, e[p]), n) {
1116
+ var x = c;
1117
+ a += x[p];
1118
1118
  }
1119
- mr.lastIndex = 0;
1120
- for (var b = "", m; (m = mr.exec(a)) !== null; )
1121
- b += "-" + m[1];
1122
- var x = bt(a) + b;
1119
+ vr.lastIndex = 0;
1120
+ for (var k = "", y; (y = vr.exec(a)) !== null; )
1121
+ k += "-" + y[1];
1122
+ var b = kt(a) + k;
1123
1123
  return {
1124
- name: x,
1124
+ name: b,
1125
1125
  styles: a,
1126
- next: oe
1126
+ next: se
1127
1127
  };
1128
1128
  }
1129
- var Et = function(r) {
1129
+ var Tt = function(r) {
1130
1130
  return r();
1131
- }, Rt = le.useInsertionEffect ? le.useInsertionEffect : !1, _t = Rt || Et, $r = /* @__PURE__ */ le.createContext(
1131
+ }, At = le.useInsertionEffect ? le.useInsertionEffect : !1, Ct = At || Tt, Mr = /* @__PURE__ */ le.createContext(
1132
1132
  // we're doing this to avoid preconstruct's dead code elimination in this one case
1133
1133
  // because this module is primarily intended for the browser and node
1134
1134
  // but it's also required in react native and similar environments sometimes
1135
1135
  // and we could have a special build just for that
1136
1136
  // but this is much easier and the native packages
1137
1137
  // might use a different theme context in the future anyway
1138
- typeof HTMLElement < "u" ? /* @__PURE__ */ mt({
1138
+ typeof HTMLElement < "u" ? /* @__PURE__ */ vt({
1139
1139
  key: "css"
1140
1140
  }) : null
1141
1141
  );
1142
- $r.Provider;
1143
- var Tt = function(r) {
1144
- return /* @__PURE__ */ wr(function(t, n) {
1145
- var a = Ir($r);
1142
+ Mr.Provider;
1143
+ var Ot = function(r) {
1144
+ return /* @__PURE__ */ Sr(function(t, n) {
1145
+ var a = Lr(Mr);
1146
1146
  return r(t, a, n);
1147
1147
  });
1148
- }, At = /* @__PURE__ */ le.createContext({}), Ct = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Ot = /* @__PURE__ */ Tr(
1148
+ }, jt = /* @__PURE__ */ le.createContext({}), $t = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, It = /* @__PURE__ */ Or(
1149
1149
  function(e) {
1150
- return Ct.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1150
+ return $t.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
1151
1151
  }
1152
1152
  /* Z+1 */
1153
- ), $t = Ot, jt = function(r) {
1153
+ ), Mt = It, Ft = function(r) {
1154
1154
  return r !== "theme";
1155
- }, gr = function(r) {
1155
+ }, br = function(r) {
1156
1156
  return typeof r == "string" && // 96 is one less than the char code
1157
1157
  // for "a" so this is checking that
1158
1158
  // it's a lowercase character
1159
- r.charCodeAt(0) > 96 ? $t : jt;
1160
- }, yr = function(r, t, n) {
1159
+ r.charCodeAt(0) > 96 ? Mt : Ft;
1160
+ }, xr = function(r, t, n) {
1161
1161
  var a;
1162
1162
  if (t) {
1163
- var s = t.shouldForwardProp;
1164
- a = r.__emotion_forwardProp && s ? function(u) {
1165
- return r.__emotion_forwardProp(u) && s(u);
1166
- } : s;
1163
+ var c = t.shouldForwardProp;
1164
+ a = r.__emotion_forwardProp && c ? function(u) {
1165
+ return r.__emotion_forwardProp(u) && c(u);
1166
+ } : c;
1167
1167
  }
1168
1168
  return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
1169
- }, Mt = function(r) {
1169
+ }, Vt = function(r) {
1170
1170
  var t = r.cache, n = r.serialized, a = r.isStringTag;
1171
- return Cr(t, n, a), _t(function() {
1172
- return vt(t, n, a);
1171
+ return $r(t, n, a), Ct(function() {
1172
+ return wt(t, n, a);
1173
1173
  }), null;
1174
- }, It = function e(r, t) {
1175
- var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, u;
1176
- t !== void 0 && (s = t.label, u = t.target);
1177
- var p = yr(r, t, n), k = p || gr(a), b = !k("as");
1174
+ }, Lt = function e(r, t) {
1175
+ var n = r.__emotion_real === r, a = n && r.__emotion_base || r, c, u;
1176
+ t !== void 0 && (c = t.label, u = t.target);
1177
+ var p = xr(r, t, n), x = p || br(a), k = !x("as");
1178
1178
  return function() {
1179
- var m = arguments, x = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
1180
- if (s !== void 0 && x.push("label:" + s + ";"), m[0] == null || m[0].raw === void 0)
1181
- x.push.apply(x, m);
1179
+ var y = arguments, b = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
1180
+ if (c !== void 0 && b.push("label:" + c + ";"), y[0] == null || y[0].raw === void 0)
1181
+ b.push.apply(b, y);
1182
1182
  else {
1183
- var I = m[0];
1184
- x.push(I[0]);
1185
- for (var $ = m.length, j = 1; j < $; j++)
1186
- x.push(m[j], I[j]);
1183
+ var M = y[0];
1184
+ b.push(M[0]);
1185
+ for (var O = y.length, j = 1; j < O; j++)
1186
+ b.push(y[j], M[j]);
1187
1187
  }
1188
- var w = Tt(function(S, E, C) {
1189
- var V = b && S.as || a, N = "", z = [], F = S;
1190
- if (S.theme == null) {
1188
+ var w = Ot(function(P, S, C) {
1189
+ var V = k && P.as || a, U = "", D = [], F = P;
1190
+ if (P.theme == null) {
1191
1191
  F = {};
1192
- for (var R in S)
1193
- F[R] = S[R];
1194
- F.theme = le.useContext(At);
1192
+ for (var E in P)
1193
+ F[E] = P[E];
1194
+ F.theme = le.useContext(jt);
1195
1195
  }
1196
- typeof S.className == "string" ? N = yt(E.registered, z, S.className) : S.className != null && (N = S.className + " ");
1197
- var te = St(x.concat(z), E.registered, F);
1198
- N += E.key + "-" + te.name, u !== void 0 && (N += " " + u);
1199
- var ce = b && p === void 0 ? gr(V) : k, q = {};
1200
- for (var ee in S)
1201
- b && ee === "as" || ce(ee) && (q[ee] = S[ee]);
1202
- return q.className = N, C && (q.ref = C), /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(Mt, {
1203
- cache: E,
1196
+ typeof P.className == "string" ? U = xt(S.registered, D, P.className) : P.className != null && (U = P.className + " ");
1197
+ var te = _t(b.concat(D), S.registered, F);
1198
+ U += S.key + "-" + te.name, u !== void 0 && (U += " " + u);
1199
+ var re = k && p === void 0 ? br(V) : x, ne = {};
1200
+ for (var B in P)
1201
+ k && B === "as" || re(B) && (ne[B] = P[B]);
1202
+ return ne.className = U, C && (ne.ref = C), /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(Vt, {
1203
+ cache: S,
1204
1204
  serialized: te,
1205
1205
  isStringTag: typeof V == "string"
1206
- }), /* @__PURE__ */ le.createElement(V, q));
1206
+ }), /* @__PURE__ */ le.createElement(V, ne));
1207
1207
  });
1208
- return w.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", w.defaultProps = r.defaultProps, w.__emotion_real = w, w.__emotion_base = a, w.__emotion_styles = x, w.__emotion_forwardProp = p, Object.defineProperty(w, "toString", {
1208
+ return w.displayName = c !== void 0 ? c : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", w.defaultProps = r.defaultProps, w.__emotion_real = w, w.__emotion_base = a, w.__emotion_styles = b, w.__emotion_forwardProp = p, Object.defineProperty(w, "toString", {
1209
1209
  value: function() {
1210
1210
  return "." + u;
1211
1211
  }
1212
- }), w.withComponent = function(S, E) {
1213
- var C = e(S, We({}, t, E, {
1214
- shouldForwardProp: yr(w, E, !0)
1212
+ }), w.withComponent = function(P, S) {
1213
+ var C = e(P, Ge({}, t, S, {
1214
+ shouldForwardProp: xr(w, S, !0)
1215
1215
  }));
1216
- return C.apply(void 0, x);
1216
+ return C.apply(void 0, b);
1217
1217
  }, w;
1218
1218
  };
1219
- }, Ft = [
1219
+ }, Nt = [
1220
1220
  "a",
1221
1221
  "abbr",
1222
1222
  "address",
@@ -1352,11 +1352,11 @@ var Tt = function(r) {
1352
1352
  "svg",
1353
1353
  "text",
1354
1354
  "tspan"
1355
- ], be = It.bind(null);
1356
- Ft.forEach(function(e) {
1357
- be[e] = be(e);
1355
+ ], we = Lt.bind(null);
1356
+ Nt.forEach(function(e) {
1357
+ we[e] = we(e);
1358
1358
  });
1359
- const Vt = be.div`
1359
+ const Ut = we.div`
1360
1360
  display: flex;
1361
1361
  align-items: center;
1362
1362
  justify-content: center;
@@ -1397,11 +1397,11 @@ const Vt = be.div`
1397
1397
  return "";
1398
1398
  }
1399
1399
  }}
1400
- `, vr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ D.jsxs(Vt, { type: e, className: t, children: [
1401
- n && /* @__PURE__ */ D.jsx("span", { children: n }),
1402
- /* @__PURE__ */ D.jsx("span", { children: r }),
1403
- a && /* @__PURE__ */ D.jsx("span", { children: a })
1404
- ] }), br = be.div`
1400
+ `, wr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ z.jsxs(Ut, { type: e, className: t, children: [
1401
+ n && /* @__PURE__ */ z.jsx("span", { children: n }),
1402
+ /* @__PURE__ */ z.jsx("span", { children: r }),
1403
+ a && /* @__PURE__ */ z.jsx("span", { children: a })
1404
+ ] }), kr = we.div`
1405
1405
  width: ${({ width: e }) => e || "100%"};
1406
1406
  height: ${({ height: e }) => e || "100%"};
1407
1407
  border-radius: 0px !important;
@@ -1417,7 +1417,7 @@ const Vt = be.div`
1417
1417
  }
1418
1418
 
1419
1419
  ${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
1420
- `, Lt = be.div`
1420
+ `, Dt = we.div`
1421
1421
  position: fixed;
1422
1422
  top: 0;
1423
1423
  left: 0;
@@ -1429,7 +1429,7 @@ const Vt = be.div`
1429
1429
  align-items: center;
1430
1430
  z-index: 1000;
1431
1431
  pointer-events: auto;
1432
- `, Nt = be.div`
1432
+ `, zt = we.div`
1433
1433
  position: relative;
1434
1434
  height: 80vh;
1435
1435
  width: auto;
@@ -1437,73 +1437,73 @@ const Vt = be.div`
1437
1437
  max-width: 90vw;
1438
1438
  max-height: 90vh;
1439
1439
  z-index: 1001;
1440
- `, he = "https://host.vpplayer.tech", zt = (e) => `${he}/player/${e}/vpplayer.js`, Qt = (e) => `${he}/player/${e}.js`, Ut = (e, r) => `${he}/player/${e}/${r}.js`, Dt = (e) => `${he}/vertical-player/${e}.js`, Wt = (e, r) => `${he}/vertical-player/${e}/${r}.js`, Yt = (e, r) => `${he}/player/${e}/${r}.json`, qt = (e, r) => `${he}/vertical-player/${e}/${r}.json`, Ht = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", Gt = (e, r) => {
1440
+ `, me = "https://host.vpplayer.tech", Wt = (e) => `${me}/player/${e}/vpplayer.js`, tn = (e) => `${me}/player/${e}.js`, Yt = (e, r) => `${me}/player/${e}/${r}.js`, qt = (e) => `${me}/vertical-player/${e}.js`, Ht = (e, r) => `${me}/vertical-player/${e}/${r}.js`, Gt = (e, r) => `${me}/player/${e}/${r}.json`, Bt = (e, r) => `${me}/vertical-player/${e}/${r}.json`, Xt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", Jt = (e, r) => {
1441
1441
  const t = new URL(e);
1442
1442
  return t.searchParams.set("divId", r), t.toString();
1443
- }, Ce = /* @__PURE__ */ new Map(), Bt = (e, r) => {
1444
- const [t, n] = Fe(!1), [a, s] = Fe(null);
1445
- return $e(() => {
1443
+ }, Me = /* @__PURE__ */ new Map(), Zt = (e, r) => {
1444
+ const [t, n] = Ue(!1), [a, c] = Ue(null);
1445
+ return Re(() => {
1446
1446
  let u;
1447
1447
  try {
1448
- u = r || zt(e || "latest");
1449
- } catch (b) {
1450
- const m = b instanceof Error ? b.message : String(b);
1451
- s(`Failed to resolve script URL: ${m}`);
1448
+ u = r || Wt(e || "latest");
1449
+ } catch (k) {
1450
+ const y = k instanceof Error ? k.message : String(k);
1451
+ c(`Failed to resolve script URL: ${y}`);
1452
1452
  return;
1453
1453
  }
1454
- if (!Ce.has(u))
1454
+ if (!Me.has(u))
1455
1455
  if (document.querySelector(
1456
1456
  `script[src="${u}"]`
1457
1457
  ))
1458
- Ce.set(u, Promise.resolve());
1458
+ Me.set(u, Promise.resolve());
1459
1459
  else {
1460
- const m = new Promise((x, I) => {
1461
- const $ = document.createElement("script");
1462
- $.src = u, $.async = !0, $.onload = () => x(), $.onerror = () => I(new Error(`Failed to load script: ${u}`)), document.body.appendChild($);
1460
+ const y = new Promise((b, M) => {
1461
+ const O = document.createElement("script");
1462
+ O.src = u, O.async = !0, O.onload = () => b(), O.onerror = () => M(new Error(`Failed to load script: ${u}`)), document.body.appendChild(O);
1463
1463
  });
1464
- Ce.set(u, m);
1464
+ Me.set(u, y);
1465
1465
  }
1466
1466
  let p = !0;
1467
- const k = Ce.get(u);
1468
- return k && k.then(() => {
1469
- p && (n(!0), s(null));
1470
- }).catch((b) => {
1471
- p && (n(!1), s(b instanceof Error ? b.message : String(b)));
1467
+ const x = Me.get(u);
1468
+ return x && x.then(() => {
1469
+ p && (n(!0), c(null));
1470
+ }).catch((k) => {
1471
+ p && (n(!1), c(k instanceof Error ? k.message : String(k)));
1472
1472
  }), () => {
1473
1473
  p = !1;
1474
1474
  };
1475
1475
  }, [e, r]), { isLoaded: t, error: a };
1476
1476
  };
1477
- function Oe(e) {
1477
+ function Fe(e) {
1478
1478
  return typeof e == "object" && e !== null && !Array.isArray(e);
1479
1479
  }
1480
- function xr(e, r) {
1480
+ function Pr(e, r) {
1481
1481
  const t = r.playlist;
1482
1482
  if (!(t != null && t.videos) || !Array.isArray(t.videos))
1483
1483
  return;
1484
1484
  const n = t.videos, a = n.findIndex((p) => {
1485
1485
  if (!p || typeof p != "object") return !1;
1486
- const k = p;
1487
- return k.videoId === e || k.mediaId === e;
1486
+ const x = p;
1487
+ return x.videoId === e || x.mediaId === e;
1488
1488
  });
1489
1489
  if (a < 0 || a >= n.length - 1)
1490
1490
  return;
1491
- const s = n[a + 1];
1492
- if (!s || typeof s != "object") return;
1493
- const u = s;
1491
+ const c = n[a + 1];
1492
+ if (!c || typeof c != "object") return;
1493
+ const u = c;
1494
1494
  return u.videoId ?? u.mediaId;
1495
1495
  }
1496
- function jr(e, r) {
1497
- if (!Oe(e) || !Oe(r))
1496
+ function Fr(e, r) {
1497
+ if (!Fe(e) || !Fe(r))
1498
1498
  return r;
1499
1499
  const t = { ...e };
1500
1500
  for (const n of Object.keys(r)) {
1501
- const a = r[n], s = t[n];
1502
- Oe(a) && Oe(s) ? t[n] = jr(s, a) : a !== void 0 && (t[n] = a);
1501
+ const a = r[n], c = t[n];
1502
+ Fe(a) && Fe(c) ? t[n] = Fr(c, a) : a !== void 0 && (t[n] = a);
1503
1503
  }
1504
1504
  return t;
1505
1505
  }
1506
- async function Xt(e, r, t) {
1506
+ async function Kt(e, r, t) {
1507
1507
  if (!e)
1508
1508
  return console.warn(
1509
1509
  "VP Player: No scriptId provided, cannot fetch config. Using user config directly."
@@ -1511,7 +1511,7 @@ async function Xt(e, r, t) {
1511
1511
  r || console.warn(
1512
1512
  "VP Player: No videoId provided, attempting to fetch config with scriptId only..."
1513
1513
  );
1514
- const n = t ? qt(e, r || "") : Yt(e, r || "");
1514
+ const n = t ? Bt(e, r || "") : Gt(e, r || "");
1515
1515
  try {
1516
1516
  const a = await fetch(n);
1517
1517
  return a.ok ? await a.json() : null;
@@ -1519,175 +1519,180 @@ async function Xt(e, r, t) {
1519
1519
  return null;
1520
1520
  }
1521
1521
  }
1522
- const Jt = ({
1522
+ const Qt = ({
1523
1523
  scriptId: e,
1524
1524
  videoId: r,
1525
1525
  scriptUrl: t,
1526
1526
  projectId: n,
1527
- config: a,
1528
- playerId: s,
1529
- isVertical: u = !1,
1530
- isReels: p = !1,
1527
+ userId: a,
1528
+ config: c,
1529
+ playerId: u,
1530
+ isVertical: p = !1,
1531
+ isReels: x = !1,
1531
1532
  onReady: k,
1532
- onPlay: b,
1533
- onPause: m,
1534
- onResume: x,
1535
- onComplete: I,
1536
- onError: $,
1537
- onVideoStarted: j,
1538
- onTimeUpdate: w,
1533
+ onPlay: y,
1534
+ onPause: b,
1535
+ onResume: M,
1536
+ onComplete: O,
1537
+ onError: j,
1538
+ onVideoStarted: w,
1539
+ onTimeUpdate: P,
1539
1540
  onQuartile25: S,
1540
- onQuartile50: E,
1541
- onQuartile75: C,
1542
- onNext: V,
1543
- onPrevious: N,
1544
- onProgress10s: z,
1545
- onProgress20s: F,
1546
- onPlaylistItem: R,
1547
- onVideoSwitch: te
1541
+ onQuartile50: C,
1542
+ onQuartile75: V,
1543
+ onNext: U,
1544
+ onPrevious: D,
1545
+ onProgress10s: F,
1546
+ onProgress20s: E,
1547
+ onPlaylistItem: te,
1548
+ onVideoSwitch: re
1548
1549
  }) => {
1549
- const ce = pe(null), q = pe(null), [ee, Z] = Fe(null), fe = Fr().replace(/:/g, ""), G = Ue(
1550
- () => Ht(s || `auto-${fe}`, r),
1551
- [s, fe, r]
1550
+ const ne = pe(null), B = pe(null), [ue, K] = Ue(null), ge = Nr().replace(/:/g, ""), H = qe(
1551
+ () => Xt(u || `auto-${ge}`, r),
1552
+ [u, ge, r]
1552
1553
  ), d = pe({
1553
1554
  onReady: k,
1554
- onPlay: b,
1555
- onPause: m,
1556
- onResume: x,
1557
- onComplete: I,
1558
- onError: $,
1559
- onVideoStarted: j,
1560
- onTimeUpdate: w,
1555
+ onPlay: y,
1556
+ onPause: b,
1557
+ onResume: M,
1558
+ onComplete: O,
1559
+ onError: j,
1560
+ onVideoStarted: w,
1561
+ onTimeUpdate: P,
1561
1562
  onQuartile25: S,
1562
- onQuartile50: E,
1563
- onQuartile75: C,
1564
- onNext: V,
1565
- onPrevious: N,
1566
- onProgress10s: z,
1567
- onProgress20s: F,
1568
- onPlaylistItem: R,
1569
- onVideoSwitch: te
1563
+ onQuartile50: C,
1564
+ onQuartile75: V,
1565
+ onNext: U,
1566
+ onPrevious: D,
1567
+ onProgress10s: F,
1568
+ onProgress20s: E,
1569
+ onPlaylistItem: te,
1570
+ onVideoSwitch: re
1570
1571
  });
1571
- $e(() => {
1572
+ Re(() => {
1572
1573
  d.current = {
1573
1574
  onReady: k,
1574
- onPlay: b,
1575
- onPause: m,
1576
- onResume: x,
1577
- onComplete: I,
1578
- onError: $,
1579
- onVideoStarted: j,
1580
- onTimeUpdate: w,
1575
+ onPlay: y,
1576
+ onPause: b,
1577
+ onResume: M,
1578
+ onComplete: O,
1579
+ onError: j,
1580
+ onVideoStarted: w,
1581
+ onTimeUpdate: P,
1581
1582
  onQuartile25: S,
1582
- onQuartile50: E,
1583
- onQuartile75: C,
1584
- onNext: V,
1585
- onPrevious: N,
1586
- onProgress10s: z,
1587
- onProgress20s: F,
1588
- onPlaylistItem: R,
1589
- onVideoSwitch: te
1583
+ onQuartile50: C,
1584
+ onQuartile75: V,
1585
+ onNext: U,
1586
+ onPrevious: D,
1587
+ onProgress10s: F,
1588
+ onProgress20s: E,
1589
+ onPlaylistItem: te,
1590
+ onVideoSwitch: re
1590
1591
  };
1591
1592
  }, [
1592
1593
  k,
1594
+ y,
1593
1595
  b,
1594
- m,
1595
- x,
1596
- I,
1597
- $,
1596
+ M,
1597
+ O,
1598
1598
  j,
1599
1599
  w,
1600
+ P,
1600
1601
  S,
1601
- E,
1602
1602
  C,
1603
1603
  V,
1604
- N,
1605
- z,
1604
+ U,
1605
+ D,
1606
1606
  F,
1607
- R,
1608
- te
1607
+ E,
1608
+ te,
1609
+ re
1609
1610
  ]);
1610
- const ne = pe(!1), K = pe(!1), ue = pe(void 0), ae = pe(a);
1611
- $e(() => {
1612
- ae.current = a;
1611
+ const ae = pe(!1), J = pe(!1), fe = pe(void 0), ie = pe(c);
1612
+ Re(() => {
1613
+ ie.current = c;
1613
1614
  });
1614
- const re = !!a, o = Ue(() => u || p ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, p, t]), y = Ue(() => {
1615
- let i;
1615
+ const o = pe(a);
1616
+ Re(() => {
1617
+ o.current = a;
1618
+ });
1619
+ const g = !!c, R = qe(() => p || x ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [p, x, t]), I = qe(() => {
1620
+ let s;
1616
1621
  if (t)
1617
- i = t;
1618
- else if (e && r && !re)
1619
- i = o ? Wt(e, r) : Ut(e, r);
1622
+ s = t;
1623
+ else if (e && r && !g)
1624
+ s = R ? Ht(e, r) : Yt(e, r);
1620
1625
  else if (e)
1621
- i = o ? Dt(e) : `https://host.vpplayer.tech/player/${e}.js`;
1626
+ s = R ? qt(e) : `https://host.vpplayer.tech/player/${e}.js`;
1622
1627
  else
1623
1628
  return null;
1624
- return Gt(i, G);
1629
+ return Jt(s, H);
1625
1630
  }, [
1626
1631
  t,
1627
1632
  e,
1628
1633
  r,
1629
- o,
1630
- G,
1631
- re
1632
- ]), { isLoaded: O, error: M } = Bt(
1634
+ R,
1635
+ H,
1636
+ g
1637
+ ]), { isLoaded: Q, error: i } = Zt(
1633
1638
  null,
1634
- y || void 0
1639
+ I || void 0
1635
1640
  );
1636
- return $e(() => {
1637
- if (!y) {
1638
- Z(
1641
+ return Re(() => {
1642
+ if (!I) {
1643
+ K(
1639
1644
  "VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
1640
1645
  );
1641
1646
  return;
1642
1647
  }
1643
- if (M) {
1644
- Z(M);
1648
+ if (i) {
1649
+ K(i);
1645
1650
  return;
1646
1651
  }
1647
- if (!O) return;
1648
- let i = !0;
1652
+ if (!Q) return;
1653
+ let s = !0;
1649
1654
  return (async () => {
1650
- var P;
1655
+ var ee, Oe;
1651
1656
  try {
1652
- const H = o ? window.vpVerticalPlayer : window.vpPlayer;
1653
- if (!H) {
1654
- Z(
1655
- `VP Player: Script loaded but global function not found. Expected ${o ? "vpVerticalPlayer" : "vpPlayer"}.`
1657
+ const de = R ? window.vpVerticalPlayer : window.vpPlayer;
1658
+ if (!de) {
1659
+ K(
1660
+ `VP Player: Script loaded but global function not found. Expected ${R ? "vpVerticalPlayer" : "vpPlayer"}.`
1656
1661
  );
1657
1662
  return;
1658
1663
  }
1659
- if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(G)) {
1664
+ if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(H)) {
1660
1665
  console.error(
1661
- `VP Player: Container element with ID '${G}' not found in DOM.`
1666
+ `VP Player: Container element with ID '${H}' not found in DOM.`
1662
1667
  );
1663
1668
  return;
1664
1669
  }
1665
- const g = H(G);
1666
- if (!g) {
1667
- Z("VP Player: Failed to get player instance.");
1670
+ const h = de(H);
1671
+ if (!h) {
1672
+ K("VP Player: Failed to get player instance.");
1668
1673
  return;
1669
1674
  }
1670
- if (i) {
1671
- if (q.current = g, Z(null), re && ae.current) {
1675
+ if (s) {
1676
+ if (B.current = h, K(null), g && ie.current) {
1672
1677
  let A;
1673
- const f = await Xt(
1678
+ const f = await Kt(
1674
1679
  e,
1675
1680
  r,
1676
- o
1681
+ R
1677
1682
  );
1678
- f ? A = jr(f, ae.current) : A = ae.current, n && !A.projectId && (A.projectId = n);
1683
+ f ? A = Fr(f, ie.current) : A = ie.current, n && !A.projectId && (A.projectId = n);
1679
1684
  try {
1680
- await g.setup(A);
1681
- } catch (c) {
1682
- const h = c instanceof Error ? c.message : String(c);
1683
- if (h.includes("already initialized")) {
1685
+ await h.setup(A);
1686
+ } catch (l) {
1687
+ const m = l instanceof Error ? l.message : String(l);
1688
+ if (m.includes("already initialized")) {
1684
1689
  console.warn(
1685
1690
  "VP Player: Player already initialized, attempting to destroy and retry."
1686
1691
  );
1687
1692
  try {
1688
- if ((P = g.destroy) == null || P.call(g), await new Promise((v) => setTimeout(v, 50)), i && document.getElementById(G)) {
1689
- const v = H(G);
1690
- v && (await v.setup(A), q.current = v);
1693
+ if ((ee = h.destroy) == null || ee.call(h), await new Promise((v) => setTimeout(v, 50)), s && document.getElementById(H)) {
1694
+ const v = de(H);
1695
+ v && (await v.setup(A), B.current = v);
1691
1696
  }
1692
1697
  } catch (v) {
1693
1698
  console.error(
@@ -1696,333 +1701,342 @@ const Jt = ({
1696
1701
  );
1697
1702
  }
1698
1703
  } else {
1699
- console.error("VP Player: Setup error", c), Z(`Player setup failed: ${h}`);
1704
+ console.error("VP Player: Setup error", l), K(`Player setup failed: ${m}`);
1700
1705
  return;
1701
1706
  }
1702
1707
  }
1703
1708
  }
1704
- if (g.on) {
1705
- const A = g.on.bind(g);
1709
+ if (o.current && ((Oe = h.setUserId) == null || Oe.call(h, o.current, !0)), h.on) {
1710
+ const A = h.on.bind(h);
1706
1711
  A("vp-event", (f) => {
1707
- var v, U, B, X, Xe, Je, Ze, Ke, Qe, er, rr, tr, nr, ar, ir;
1708
- const c = f, h = c == null ? void 0 : c.eventName;
1709
- if (o) {
1710
- if (h === "play" && !K.current) {
1711
- const ge = g.videoObject;
1712
- (U = (v = d.current).onPlay) == null || U.call(v, ge);
1712
+ var v, L, W, Y, je, ye, er, rr, tr, nr, ar, ir, or, sr, cr;
1713
+ const l = f, m = l == null ? void 0 : l.eventName;
1714
+ if (R) {
1715
+ if (m === "play" && !J.current) {
1716
+ const ve = h.videoObject;
1717
+ (L = (v = d.current).onPlay) == null || L.call(v, ve);
1713
1718
  }
1714
- if (h === "vp-state-paused") {
1715
- const de = ((B = g.isEnded) == null ? void 0 : B.call(g)) ?? !1, ge = (c == null ? void 0 : c.interaction) ?? !0;
1716
- !de && ge && (K.current = !0, (Je = (Xe = d.current).onPause) == null || Je.call(Xe, ((X = g.getPosition) == null ? void 0 : X.call(g)) ?? 0));
1719
+ if (m === "vp-state-paused") {
1720
+ const he = ((W = h.isEnded) == null ? void 0 : W.call(h)) ?? !1, ve = (l == null ? void 0 : l.interaction) ?? !0;
1721
+ !he && ve && (J.current = !0, (ye = (je = d.current).onPause) == null || ye.call(je, ((Y = h.getPosition) == null ? void 0 : Y.call(h)) ?? 0));
1717
1722
  }
1718
- if (h === "vp-state-playing" && (((c == null ? void 0 : c.interaction) ?? K.current) && K.current && ((Qe = (Ke = d.current).onResume) == null || Qe.call(Ke, ((Ze = g.getPosition) == null ? void 0 : Ze.call(g)) ?? 0)), K.current = !1), h === "vp-video-switch") {
1719
- K.current = !1;
1720
- const de = c;
1721
- (rr = (er = d.current).onVideoSwitch) == null || rr.call(er, de);
1722
- const ge = de.direction, or = de.currentTime ?? 0;
1723
- ge === "next" ? (nr = (tr = d.current).onNext) == null || nr.call(tr, or) : ge === "prev" && ((ir = (ar = d.current).onPrevious) == null || ir.call(ar, or));
1723
+ if (m === "vp-state-playing" && (((l == null ? void 0 : l.interaction) ?? J.current) && J.current && ((tr = (rr = d.current).onResume) == null || tr.call(rr, ((er = h.getPosition) == null ? void 0 : er.call(h)) ?? 0)), J.current = !1), m === "vp-video-switch") {
1724
+ J.current = !1;
1725
+ const he = l, ve = he.direction, lr = he.currentTime ?? 0;
1726
+ (ar = (nr = d.current).onVideoSwitch) == null || ar.call(nr, he), ve === "next" ? (or = (ir = d.current).onNext) == null || or.call(ir, lr) : ve === "prev" && ((cr = (sr = d.current).onPrevious) == null || cr.call(sr, lr));
1724
1727
  }
1725
- h === "vp-video-completed" && (K.current = !1);
1728
+ m === "vp-video-completed" && (J.current = !1);
1726
1729
  }
1727
1730
  }), A("analytics-25%-completed", () => {
1728
- var f, c;
1729
- (c = (f = d.current).onQuartile25) == null || c.call(f);
1731
+ var f, l;
1732
+ (l = (f = d.current).onQuartile25) == null || l.call(f);
1730
1733
  }), A("analytics-50%-completed", () => {
1731
- var f, c;
1732
- (c = (f = d.current).onQuartile50) == null || c.call(f);
1734
+ var f, l;
1735
+ (l = (f = d.current).onQuartile50) == null || l.call(f);
1733
1736
  }), A("analytics-75%-completed", () => {
1734
- var f, c;
1735
- (c = (f = d.current).onQuartile75) == null || c.call(f);
1736
- }), o || A("pause", () => {
1737
- var f, c, h;
1738
- (h = (c = d.current).onPause) == null || h.call(c, ((f = g.getPosition) == null ? void 0 : f.call(g)) ?? 0);
1737
+ var f, l;
1738
+ (l = (f = d.current).onQuartile75) == null || l.call(f);
1739
+ }), R || A("pause", () => {
1740
+ var f, l, m;
1741
+ (m = (l = d.current).onPause) == null || m.call(l, ((f = h.getPosition) == null ? void 0 : f.call(h)) ?? 0);
1739
1742
  }), A("error", (f) => {
1740
- var h, v;
1741
- const c = typeof f == "string" ? f : (f == null ? void 0 : f.message) || "Unknown error";
1742
- (v = (h = d.current).onError) == null || v.call(h, c);
1743
- }), o ? (A("vp-first-frame", () => {
1744
- var h, v;
1745
- const c = g.videoObject;
1746
- (v = (h = d.current).onReady) == null || v.call(h, c);
1743
+ var m, v;
1744
+ const l = typeof f == "string" ? f : (f == null ? void 0 : f.message) || "Unknown error";
1745
+ (v = (m = d.current).onError) == null || v.call(m, l);
1746
+ }), R ? (A("vp-first-frame", () => {
1747
+ var m, v;
1748
+ const l = h.videoObject;
1749
+ (v = (m = d.current).onReady) == null || v.call(m, l);
1747
1750
  }), A("vp-video-started", (f) => {
1748
- var c, h;
1749
- (h = (c = d.current).onVideoStarted) == null || h.call(c, f);
1751
+ var W, Y;
1752
+ const l = f ?? {}, L = {
1753
+ ...h.videoObject ?? {}
1754
+ };
1755
+ for (const [je, ye] of Object.entries(l))
1756
+ ye != null && (L[je] = ye);
1757
+ (Y = (W = d.current).onVideoStarted) == null || Y.call(W, L);
1750
1758
  }), A("vp-twenty-view", () => {
1751
- var c, h, v;
1752
- const f = ((c = g.getPosition) == null ? void 0 : c.call(g)) ?? 20;
1753
- (v = (h = d.current).onProgress20s) == null || v.call(h, Math.floor(f));
1759
+ var l, m, v;
1760
+ const f = ((l = h.getPosition) == null ? void 0 : l.call(h)) ?? 20;
1761
+ (v = (m = d.current).onProgress20s) == null || v.call(m, Math.floor(f));
1754
1762
  }), A("vp-video-state", () => {
1755
- var c, h, v;
1756
- const f = ((c = g.getPosition) == null ? void 0 : c.call(g)) ?? 0;
1757
- (v = (h = d.current).onProgress10s) == null || v.call(
1758
- h,
1763
+ var l, m, v;
1764
+ const f = ((l = h.getPosition) == null ? void 0 : l.call(h)) ?? 0;
1765
+ (v = (m = d.current).onProgress10s) == null || v.call(
1766
+ m,
1759
1767
  Math.floor(f)
1760
1768
  );
1761
1769
  }), A("vp-time", (f) => {
1762
- var h, v, U;
1763
- let c = 0;
1764
- typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0, (U = (v = d.current).onTimeUpdate) == null || U.call(v, c);
1770
+ var m, v, L;
1771
+ let l = 0;
1772
+ typeof f == "number" ? l = f : f && typeof f == "object" && "position" in f ? l = f.position : l = ((m = h.getPosition) == null ? void 0 : m.call(h)) ?? 0, (L = (v = d.current).onTimeUpdate) == null || L.call(v, l);
1765
1773
  }), A("vp-video-completed", () => {
1766
- var f, c;
1767
- (c = (f = d.current).onComplete) == null || c.call(f);
1774
+ var f, l;
1775
+ (l = (f = d.current).onComplete) == null || l.call(f);
1768
1776
  })) : (A("ready", () => {
1769
- var f, c;
1770
- (c = (f = d.current).onReady) == null || c.call(f);
1777
+ var f, l;
1778
+ (l = (f = d.current).onReady) == null || l.call(f);
1771
1779
  }), A("play", (f) => {
1772
- var h, v, U, B, X;
1773
- const c = f;
1774
- c != null && c.resume || c != null && c.afterPause ? (U = (v = d.current).onResume) == null || U.call(v, ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0) : (X = (B = d.current).onPlay) == null || X.call(B);
1780
+ var m, v, L, W, Y;
1781
+ const l = f;
1782
+ l != null && l.resume || l != null && l.afterPause ? (L = (v = d.current).onResume) == null || L.call(v, ((m = h.getPosition) == null ? void 0 : m.call(h)) ?? 0) : (Y = (W = d.current).onPlay) == null || Y.call(W);
1775
1783
  }), A("complete", () => {
1776
- var f, c;
1777
- (c = (f = d.current).onComplete) == null || c.call(f), ne.current = !1;
1784
+ var f, l;
1785
+ (l = (f = d.current).onComplete) == null || l.call(f), ae.current = !1;
1778
1786
  }), A("video-started", (f) => {
1779
- var B, X;
1780
- const c = f ?? {}, h = c.videoId || ue.current, v = xr(h, g), U = {
1781
- ...c,
1782
- videoId: h,
1787
+ var W, Y;
1788
+ const l = f ?? {}, m = l.videoId || fe.current, v = Pr(m, h), L = {
1789
+ ...l,
1790
+ videoId: m,
1783
1791
  nextVideoId: v
1784
1792
  };
1785
- (X = (B = d.current).onVideoStarted) == null || X.call(B, U);
1793
+ (Y = (W = d.current).onVideoStarted) == null || Y.call(W, L);
1786
1794
  }), A("video-state", () => {
1787
- var c, h, v;
1788
- const f = ((c = g.getPosition) == null ? void 0 : c.call(g)) ?? 0;
1789
- (v = (h = d.current).onProgress10s) == null || v.call(
1790
- h,
1795
+ var l, m, v;
1796
+ const f = ((l = h.getPosition) == null ? void 0 : l.call(h)) ?? 0;
1797
+ (v = (m = d.current).onProgress10s) == null || v.call(
1798
+ m,
1791
1799
  Math.floor(f)
1792
1800
  );
1793
1801
  }), A("time", (f) => {
1794
- var h, v, U, B, X;
1795
- let c = 0;
1796
- typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0, (U = (v = d.current).onTimeUpdate) == null || U.call(v, c), !ne.current && c >= 20 && (ne.current = !0, (X = (B = d.current).onProgress20s) == null || X.call(B, Math.floor(c)));
1802
+ var m, v, L, W, Y;
1803
+ let l = 0;
1804
+ typeof f == "number" ? l = f : f && typeof f == "object" && "position" in f ? l = f.position : l = ((m = h.getPosition) == null ? void 0 : m.call(h)) ?? 0, (L = (v = d.current).onTimeUpdate) == null || L.call(v, l), !ae.current && l >= 20 && (ae.current = !0, (Y = (W = d.current).onProgress20s) == null || Y.call(W, Math.floor(l)));
1797
1805
  }), A("playlistItem", (f) => {
1798
- var B, X;
1799
- ne.current = !1;
1800
- const c = f;
1801
- ue.current = c == null ? void 0 : c.id;
1802
- const h = c == null ? void 0 : c.id, v = xr(h, g), U = {
1803
- videoId: h,
1806
+ var W, Y;
1807
+ ae.current = !1;
1808
+ const l = f;
1809
+ fe.current = l == null ? void 0 : l.id;
1810
+ const m = l == null ? void 0 : l.id, v = Pr(m, h), L = {
1811
+ videoId: m,
1804
1812
  nextVideoId: v
1805
1813
  };
1806
- (X = (B = d.current).onPlaylistItem) == null || X.call(B, U);
1814
+ (Y = (W = d.current).onPlaylistItem) == null || Y.call(W, L);
1807
1815
  }), A("nextClick", (f) => {
1808
- var v, U;
1809
- const c = f, h = (c == null ? void 0 : c.currentTime) ?? 0;
1810
- (U = (v = d.current).onNext) == null || U.call(v, h);
1816
+ var v, L;
1817
+ const l = f, m = (l == null ? void 0 : l.currentTime) ?? 0;
1818
+ (L = (v = d.current).onNext) == null || L.call(v, m);
1811
1819
  }), A("vp-video-switch", (f) => {
1812
- var h, v;
1813
- const c = f ?? {};
1814
- (v = (h = d.current).onVideoSwitch) == null || v.call(h, c);
1820
+ var m, v;
1821
+ const l = f ?? {};
1822
+ (v = (m = d.current).onVideoSwitch) == null || v.call(m, l);
1815
1823
  }));
1816
1824
  }
1817
1825
  }
1818
- } catch (H) {
1819
- if (i) {
1820
- const me = H instanceof Error ? H.message : String(H);
1821
- Z(me), console.error("VP Player initialization error:", H);
1826
+ } catch (de) {
1827
+ if (s) {
1828
+ const Qe = de instanceof Error ? de.message : String(de);
1829
+ K(Qe), console.error("VP Player initialization error:", de);
1822
1830
  }
1823
1831
  }
1824
1832
  })(), () => {
1825
- var P;
1826
- if (i = !1, (P = q.current) != null && P.destroy) {
1833
+ var ee;
1834
+ if (s = !1, (ee = B.current) != null && ee.destroy) {
1827
1835
  try {
1828
- q.current.destroy();
1836
+ B.current.destroy();
1829
1837
  } catch {
1830
1838
  }
1831
- q.current = null;
1839
+ B.current = null;
1832
1840
  }
1833
1841
  };
1834
1842
  }, [
1835
- O,
1836
- G,
1837
- M,
1838
- y,
1839
- o,
1840
- re,
1843
+ Q,
1844
+ H,
1845
+ i,
1846
+ I,
1847
+ R,
1848
+ g,
1841
1849
  e,
1842
1850
  n,
1843
1851
  r
1844
1852
  ]), {
1845
- playerRef: ce,
1846
- playerInstanceRef: q,
1847
- isScriptLoaded: O,
1848
- isLoading: !O && !ee,
1849
- error: ee,
1850
- generatedPlayerId: G
1853
+ playerRef: ne,
1854
+ playerInstanceRef: B,
1855
+ isScriptLoaded: Q,
1856
+ isLoading: !Q && !ue,
1857
+ error: ue,
1858
+ generatedPlayerId: H
1851
1859
  };
1852
- }, Zt = wr(
1860
+ }, en = Sr(
1853
1861
  ({
1854
1862
  scriptId: e,
1855
1863
  videoId: r,
1856
1864
  scriptUrl: t,
1857
1865
  projectId: n,
1858
- config: a,
1859
- playerId: s,
1860
- isVertical: u = !1,
1861
- isReels: p = !1,
1866
+ userId: a,
1867
+ config: c,
1868
+ playerId: u,
1869
+ isVertical: p = !1,
1870
+ isReels: x = !1,
1862
1871
  thumbnailUrl: k,
1863
- onClose: b,
1864
- className: m,
1865
- hiddenClasses: x = [],
1866
- onReady: I,
1867
- onPlay: $,
1868
- onPause: j,
1869
- onResume: w,
1872
+ onClose: y,
1873
+ className: b,
1874
+ hiddenClasses: M = [],
1875
+ onReady: O,
1876
+ onPlay: j,
1877
+ onPause: w,
1878
+ onResume: P,
1870
1879
  onComplete: S,
1871
- onError: E,
1872
- onVideoStarted: C,
1873
- onTimeUpdate: V,
1874
- onQuartile25: N,
1875
- onQuartile50: z,
1876
- onQuartile75: F,
1877
- onNext: R,
1878
- onPrevious: te,
1879
- onProgress10s: ce,
1880
- onProgress20s: q,
1881
- onPlaylistItem: ee,
1882
- onVideoSwitch: Z
1883
- }, fe) => {
1880
+ onError: C,
1881
+ onVideoStarted: V,
1882
+ onTimeUpdate: U,
1883
+ onQuartile25: D,
1884
+ onQuartile50: F,
1885
+ onQuartile75: E,
1886
+ onNext: te,
1887
+ onPrevious: re,
1888
+ onProgress10s: ne,
1889
+ onProgress20s: B,
1890
+ onPlaylistItem: ue,
1891
+ onVideoSwitch: K
1892
+ }, ge) => {
1884
1893
  const {
1885
- playerRef: G,
1894
+ playerRef: H,
1886
1895
  playerInstanceRef: d,
1887
- isScriptLoaded: ne,
1888
- isLoading: K,
1889
- error: ue,
1890
- generatedPlayerId: ae
1891
- } = Jt({
1896
+ isScriptLoaded: ae,
1897
+ isLoading: J,
1898
+ error: fe,
1899
+ generatedPlayerId: ie
1900
+ } = Qt({
1892
1901
  scriptId: e,
1893
1902
  videoId: r,
1894
1903
  scriptUrl: t,
1895
1904
  projectId: n,
1896
- config: a,
1897
- playerId: s,
1898
- isVertical: u,
1899
- isReels: p,
1900
- onReady: I,
1901
- onPlay: $,
1902
- onPause: j,
1903
- onResume: w,
1905
+ userId: a,
1906
+ config: c,
1907
+ playerId: u,
1908
+ isVertical: p,
1909
+ isReels: x,
1910
+ onReady: O,
1911
+ onPlay: j,
1912
+ onPause: w,
1913
+ onResume: P,
1904
1914
  onComplete: S,
1905
- onError: E,
1906
- onVideoStarted: C,
1907
- onTimeUpdate: V,
1908
- onQuartile25: N,
1909
- onQuartile50: z,
1910
- onQuartile75: F,
1911
- onNext: R,
1912
- onPrevious: te,
1913
- onProgress10s: ce,
1914
- onProgress20s: q,
1915
- onPlaylistItem: ee,
1916
- onVideoSwitch: Z
1915
+ onError: C,
1916
+ onVideoStarted: V,
1917
+ onTimeUpdate: U,
1918
+ onQuartile25: D,
1919
+ onQuartile50: F,
1920
+ onQuartile75: E,
1921
+ onNext: te,
1922
+ onPrevious: re,
1923
+ onProgress10s: ne,
1924
+ onProgress20s: B,
1925
+ onPlaylistItem: ue,
1926
+ onVideoSwitch: K
1917
1927
  });
1918
- Vr(
1919
- fe,
1928
+ Ur(
1929
+ ge,
1920
1930
  () => ({
1921
1931
  play: () => {
1922
- var i, l;
1923
- return (l = (i = d.current) == null ? void 0 : i.play) == null ? void 0 : l.call(i);
1932
+ var i, s;
1933
+ return (s = (i = d.current) == null ? void 0 : i.play) == null ? void 0 : s.call(i);
1924
1934
  },
1925
1935
  pause: () => {
1926
- var i, l;
1927
- return (l = (i = d.current) == null ? void 0 : i.pause) == null ? void 0 : l.call(i);
1936
+ var i, s;
1937
+ return (s = (i = d.current) == null ? void 0 : i.pause) == null ? void 0 : s.call(i);
1928
1938
  },
1929
1939
  seek: (i) => {
1930
- var l, P;
1931
- return (P = (l = d.current) == null ? void 0 : l.seek) == null ? void 0 : P.call(l, i);
1940
+ var s, $;
1941
+ return ($ = (s = d.current) == null ? void 0 : s.seek) == null ? void 0 : $.call(s, i);
1932
1942
  },
1933
1943
  forward: () => {
1934
- var i, l;
1935
- return (l = (i = d.current) == null ? void 0 : i.forward) == null ? void 0 : l.call(i);
1944
+ var i, s;
1945
+ return (s = (i = d.current) == null ? void 0 : i.forward) == null ? void 0 : s.call(i);
1936
1946
  },
1937
1947
  rewind: () => {
1938
- var i, l;
1939
- return (l = (i = d.current) == null ? void 0 : i.rewind) == null ? void 0 : l.call(i);
1948
+ var i, s;
1949
+ return (s = (i = d.current) == null ? void 0 : i.rewind) == null ? void 0 : s.call(i);
1940
1950
  },
1941
1951
  replay: () => {
1942
- var i, l;
1943
- return (l = (i = d.current) == null ? void 0 : i.replay) == null ? void 0 : l.call(i);
1952
+ var i, s;
1953
+ return (s = (i = d.current) == null ? void 0 : i.replay) == null ? void 0 : s.call(i);
1944
1954
  },
1945
1955
  mute: () => {
1946
- var i, l;
1947
- return (l = (i = d.current) == null ? void 0 : i.mute) == null ? void 0 : l.call(i);
1956
+ var i, s;
1957
+ return (s = (i = d.current) == null ? void 0 : i.mute) == null ? void 0 : s.call(i);
1948
1958
  },
1949
1959
  unmute: () => {
1950
- var i, l;
1951
- return (l = (i = d.current) == null ? void 0 : i.unmute) == null ? void 0 : l.call(i);
1960
+ var i, s;
1961
+ return (s = (i = d.current) == null ? void 0 : i.unmute) == null ? void 0 : s.call(i);
1952
1962
  },
1953
1963
  togglePlay: () => {
1954
- var i, l;
1955
- return (l = (i = d.current) == null ? void 0 : i.togglePlay) == null ? void 0 : l.call(i);
1964
+ var i, s;
1965
+ return (s = (i = d.current) == null ? void 0 : i.togglePlay) == null ? void 0 : s.call(i);
1956
1966
  },
1957
1967
  toggleMute: () => {
1958
- var i, l;
1959
- return (l = (i = d.current) == null ? void 0 : i.toggleMute) == null ? void 0 : l.call(i);
1968
+ var i, s;
1969
+ return (s = (i = d.current) == null ? void 0 : i.toggleMute) == null ? void 0 : s.call(i);
1960
1970
  },
1961
1971
  enterFullScreen: () => {
1962
- var i, l, P;
1963
- return (P = ((i = d.current) == null ? void 0 : i.enterFullScreen) ?? ((l = d.current) == null ? void 0 : l.enterFullscreen)) == null ? void 0 : P();
1972
+ var i, s, $;
1973
+ return ($ = ((i = d.current) == null ? void 0 : i.enterFullScreen) ?? ((s = d.current) == null ? void 0 : s.enterFullscreen)) == null ? void 0 : $();
1964
1974
  },
1965
1975
  exitFullScreen: () => {
1966
- var i, l, P;
1967
- return (P = ((i = d.current) == null ? void 0 : i.exitFullScreen) ?? ((l = d.current) == null ? void 0 : l.exitFullscreen)) == null ? void 0 : P();
1976
+ var i, s, $;
1977
+ return ($ = ((i = d.current) == null ? void 0 : i.exitFullScreen) ?? ((s = d.current) == null ? void 0 : s.exitFullscreen)) == null ? void 0 : $();
1968
1978
  },
1969
1979
  getPosition: () => {
1970
- var i, l;
1971
- return ((l = (i = d.current) == null ? void 0 : i.getPosition) == null ? void 0 : l.call(i)) ?? null;
1980
+ var i, s;
1981
+ return ((s = (i = d.current) == null ? void 0 : i.getPosition) == null ? void 0 : s.call(i)) ?? null;
1972
1982
  },
1973
1983
  getDuration: () => {
1974
- var i, l;
1975
- return ((l = (i = d.current) == null ? void 0 : i.getDuration) == null ? void 0 : l.call(i)) ?? null;
1984
+ var i, s;
1985
+ return ((s = (i = d.current) == null ? void 0 : i.getDuration) == null ? void 0 : s.call(i)) ?? null;
1976
1986
  },
1977
1987
  getVolume: () => {
1978
- var i, l;
1979
- return ((l = (i = d.current) == null ? void 0 : i.getVolume) == null ? void 0 : l.call(i)) ?? null;
1988
+ var i, s;
1989
+ return ((s = (i = d.current) == null ? void 0 : i.getVolume) == null ? void 0 : s.call(i)) ?? null;
1980
1990
  },
1981
1991
  setVolume: (i) => {
1982
- var l, P;
1983
- return (P = (l = d.current) == null ? void 0 : l.setVolume) == null ? void 0 : P.call(l, i);
1992
+ var s, $;
1993
+ return ($ = (s = d.current) == null ? void 0 : s.setVolume) == null ? void 0 : $.call(s, i);
1984
1994
  },
1985
1995
  isMuted: () => {
1986
- var i, l;
1987
- return ((l = (i = d.current) == null ? void 0 : i.isMuted) == null ? void 0 : l.call(i)) ?? !1;
1996
+ var i, s;
1997
+ return ((s = (i = d.current) == null ? void 0 : i.isMuted) == null ? void 0 : s.call(i)) ?? !1;
1988
1998
  },
1989
1999
  isPlaying: () => {
1990
- var i, l;
1991
- return ((l = (i = d.current) == null ? void 0 : i.isPlaying) == null ? void 0 : l.call(i)) ?? !1;
2000
+ var i, s;
2001
+ return ((s = (i = d.current) == null ? void 0 : i.isPlaying) == null ? void 0 : s.call(i)) ?? !1;
1992
2002
  },
1993
2003
  isPaused: () => {
1994
- var i, l;
1995
- return ((l = (i = d.current) == null ? void 0 : i.isPaused) == null ? void 0 : l.call(i)) ?? !1;
2004
+ var i, s;
2005
+ return ((s = (i = d.current) == null ? void 0 : i.isPaused) == null ? void 0 : s.call(i)) ?? !1;
1996
2006
  },
1997
2007
  isFullscreen: () => {
1998
- var i, l;
1999
- return ((l = (i = d.current) == null ? void 0 : i.isFullscreen) == null ? void 0 : l.call(i)) ?? !1;
2008
+ var i, s;
2009
+ return ((s = (i = d.current) == null ? void 0 : i.isFullscreen) == null ? void 0 : s.call(i)) ?? !1;
2000
2010
  },
2001
2011
  shouldLockVideo: (i) => {
2002
2012
  d.current && (d.current.shouldLockVideo = i ?? void 0);
2003
2013
  },
2004
2014
  removeVideoLock: () => {
2005
- var i, l;
2006
- return (l = (i = d.current) == null ? void 0 : i.removeVideoLock) == null ? void 0 : l.call(i);
2015
+ var i, s;
2016
+ return (s = (i = d.current) == null ? void 0 : i.removeVideoLock) == null ? void 0 : s.call(i);
2007
2017
  },
2008
2018
  setVideoLocking: (i) => {
2009
- var l, P;
2010
- return (P = (l = d.current) == null ? void 0 : l.setVideoLocking) == null ? void 0 : P.call(l, i);
2019
+ var s, $;
2020
+ return ($ = (s = d.current) == null ? void 0 : s.setVideoLocking) == null ? void 0 : $.call(s, i);
2021
+ },
2022
+ setUserId: (i, s) => {
2023
+ var $, ee;
2024
+ return ((ee = ($ = d.current) == null ? void 0 : $.setUserId) == null ? void 0 : ee.call($, i, s ?? !1)) ?? !1;
2011
2025
  }
2012
2026
  }),
2013
2027
  // eslint-disable-next-line react-hooks/exhaustive-deps
2014
2028
  []
2015
2029
  );
2016
- const [re, o] = Fe(!0), y = () => p && o(!0), O = () => {
2017
- var i, l;
2018
- !p || !re || (o(!1), (l = (i = d.current) == null ? void 0 : i.pause) == null || l.call(i), b == null || b());
2030
+ const [o, g] = Ue(!0), R = () => x && g(!0), I = () => {
2031
+ var i, s;
2032
+ !x || !o || (g(!1), (s = (i = d.current) == null ? void 0 : i.pause) == null || s.call(i), y == null || y());
2019
2033
  };
2020
- if (ue)
2021
- return /* @__PURE__ */ D.jsxs(vr, { type: "error", children: [
2034
+ if (fe)
2035
+ return /* @__PURE__ */ z.jsxs(wr, { type: "error", children: [
2022
2036
  "An error occurred: ",
2023
- ue
2037
+ fe
2024
2038
  ] });
2025
- const M = () => /* @__PURE__ */ D.jsx(
2039
+ const Q = () => /* @__PURE__ */ z.jsx(
2026
2040
  "div",
2027
2041
  {
2028
2042
  style: {
@@ -2037,14 +2051,14 @@ const Jt = ({
2037
2051
  background: "rgba(0,0,0,0.8)",
2038
2052
  zIndex: 10
2039
2053
  },
2040
- children: /* @__PURE__ */ D.jsx(vr, { type: "loading", children: "Loading..." })
2054
+ children: /* @__PURE__ */ z.jsx(wr, { type: "loading", children: "Loading..." })
2041
2055
  }
2042
2056
  );
2043
- return p ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
2044
- !re && /* @__PURE__ */ D.jsx(
2057
+ return x ? /* @__PURE__ */ z.jsxs(z.Fragment, { children: [
2058
+ !o && /* @__PURE__ */ z.jsx(
2045
2059
  "div",
2046
2060
  {
2047
- onClick: y,
2061
+ onClick: R,
2048
2062
  style: {
2049
2063
  cursor: "pointer",
2050
2064
  width: "100%",
@@ -2055,12 +2069,12 @@ const Jt = ({
2055
2069
  }
2056
2070
  }
2057
2071
  ),
2058
- re && /* @__PURE__ */ D.jsx(Lt, { onClick: O, className: m, children: /* @__PURE__ */ D.jsx(
2059
- Nt,
2072
+ o && /* @__PURE__ */ z.jsx(Dt, { onClick: I, className: b, children: /* @__PURE__ */ z.jsx(
2073
+ zt,
2060
2074
  {
2061
- className: m,
2075
+ className: b,
2062
2076
  onClick: (i) => i.stopPropagation(),
2063
- children: /* @__PURE__ */ D.jsxs(
2077
+ children: /* @__PURE__ */ z.jsxs(
2064
2078
  "div",
2065
2079
  {
2066
2080
  style: {
@@ -2069,52 +2083,52 @@ const Jt = ({
2069
2083
  height: "100%"
2070
2084
  },
2071
2085
  children: [
2072
- /* @__PURE__ */ D.jsx(
2073
- br,
2086
+ /* @__PURE__ */ z.jsx(
2087
+ kr,
2074
2088
  {
2075
- id: ae,
2076
- ref: G,
2089
+ id: ie,
2090
+ ref: H,
2077
2091
  width: "100%",
2078
2092
  height: "100%",
2079
- $hiddenClasses: x,
2080
- className: m
2093
+ $hiddenClasses: M,
2094
+ className: b
2081
2095
  }
2082
2096
  ),
2083
- (K || !ne) && /* @__PURE__ */ D.jsx(M, {})
2097
+ (J || !ae) && /* @__PURE__ */ z.jsx(Q, {})
2084
2098
  ]
2085
2099
  }
2086
2100
  )
2087
2101
  }
2088
2102
  ) })
2089
- ] }) : /* @__PURE__ */ D.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
2090
- /* @__PURE__ */ D.jsx(
2091
- br,
2103
+ ] }) : /* @__PURE__ */ z.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
2104
+ /* @__PURE__ */ z.jsx(
2105
+ kr,
2092
2106
  {
2093
- id: ae,
2094
- ref: G,
2107
+ id: ie,
2108
+ ref: H,
2095
2109
  width: "100%",
2096
2110
  height: "100%",
2097
- $hiddenClasses: x,
2098
- className: m
2111
+ $hiddenClasses: M,
2112
+ className: b
2099
2113
  }
2100
2114
  ),
2101
- (K || !ne) && /* @__PURE__ */ D.jsx(M, {})
2115
+ (J || !ae) && /* @__PURE__ */ z.jsx(Q, {})
2102
2116
  ] });
2103
2117
  }
2104
2118
  );
2105
- Zt.displayName = "VPPlayer";
2119
+ en.displayName = "VPPlayer";
2106
2120
  export {
2107
- Lt as Overlay,
2108
- br as PlayerContainer,
2109
- Nt as PlayerWrapper,
2110
- Zt as VPPlayer,
2111
- he as VP_PLAYER_BASE_URL,
2112
- Gt as appendDivIdToUrl,
2113
- Ht as generatePlayerId,
2114
- Ut as getFullyManagedPlayerScriptUrl,
2115
- Qt as getManagedPlayerScriptUrl,
2116
- zt as getPlayerScriptUrl,
2117
- Dt as getVerticalPlayerScriptUrl,
2118
- Jt as useVPPlayerLogic,
2119
- Bt as useVPPlayerScript
2121
+ Dt as Overlay,
2122
+ kr as PlayerContainer,
2123
+ zt as PlayerWrapper,
2124
+ en as VPPlayer,
2125
+ me as VP_PLAYER_BASE_URL,
2126
+ Jt as appendDivIdToUrl,
2127
+ Xt as generatePlayerId,
2128
+ Yt as getFullyManagedPlayerScriptUrl,
2129
+ tn as getManagedPlayerScriptUrl,
2130
+ Wt as getPlayerScriptUrl,
2131
+ qt as getVerticalPlayerScriptUrl,
2132
+ Qt as useVPPlayerLogic,
2133
+ Zt as useVPPlayerScript
2120
2134
  };