@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.15 → 1.0.31-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ie from "react";
|
|
2
|
-
import
|
|
2
|
+
import xr, { forwardRef as sr, useContext as wr, useState as Ae, useEffect as Ve, useRef as he, useId as Pr, useMemo as Ne, useImperativeHandle as kr } from "react";
|
|
3
3
|
var Pe = { exports: {} }, me = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
@@ -10,10 +10,10 @@ var Pe = { exports: {} }, me = {};
|
|
|
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
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var Be;
|
|
14
|
+
function Sr() {
|
|
15
|
+
if (Be) return me;
|
|
16
|
+
Be = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
18
|
function t(n, a, s) {
|
|
19
19
|
var f = null;
|
|
@@ -42,9 +42,9 @@ var ge = {};
|
|
|
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
|
|
46
|
-
function
|
|
47
|
-
return
|
|
45
|
+
var Xe;
|
|
46
|
+
function Er() {
|
|
47
|
+
return Xe || (Xe = 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")
|
|
@@ -55,20 +55,20 @@ function wr() {
|
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case A:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case k:
|
|
59
59
|
return "StrictMode";
|
|
60
60
|
case j:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case S:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case U:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
68
68
|
switch (typeof o.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), o.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case b:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case V:
|
|
74
74
|
return o.displayName || "Context";
|
|
@@ -120,7 +120,7 @@ function wr() {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = D.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
@@ -151,7 +151,7 @@ function wr() {
|
|
|
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
|
|
154
|
+
function y(o, g, i, c, N, R) {
|
|
155
155
|
var h = i.ref;
|
|
156
156
|
return o = {
|
|
157
157
|
$$typeof: O,
|
|
@@ -190,17 +190,17 @@ function wr() {
|
|
|
190
190
|
if (c)
|
|
191
191
|
if (ae(h)) {
|
|
192
192
|
for (c = 0; c < h.length; c++)
|
|
193
|
-
|
|
193
|
+
v(h[c]);
|
|
194
194
|
Object.freeze && Object.freeze(h);
|
|
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
|
|
199
|
+
else v(h);
|
|
200
200
|
if (p.call(g, "key")) {
|
|
201
201
|
h = e(o);
|
|
202
|
-
var u = Object.keys(g).filter(function(
|
|
203
|
-
return
|
|
202
|
+
var u = Object.keys(g).filter(function(x) {
|
|
203
|
+
return x !== "key";
|
|
204
204
|
});
|
|
205
205
|
c = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", oe[h + c] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -223,7 +223,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
return h && d(
|
|
224
224
|
i,
|
|
225
225
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
226
|
-
),
|
|
226
|
+
), y(
|
|
227
227
|
o,
|
|
228
228
|
h,
|
|
229
229
|
i,
|
|
@@ -232,13 +232,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
R
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function v(o) {
|
|
236
236
|
$(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === Z && (o._payload.status === "fulfilled" ? $(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
237
237
|
}
|
|
238
238
|
function $(o) {
|
|
239
239
|
return typeof o == "object" && o !== null && o.$$typeof === O;
|
|
240
240
|
}
|
|
241
|
-
var C =
|
|
241
|
+
var C = xr, O = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), M = Symbol.for("react.consumer"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), D = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, p = Object.prototype.hasOwnProperty, ae = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
C = {
|
|
@@ -249,56 +249,56 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
var K, W = {}, Q = C.react_stack_bottom_frame.bind(
|
|
250
250
|
C,
|
|
251
251
|
s
|
|
252
|
-
)(), ee =
|
|
252
|
+
)(), ee = G(n(s)), oe = {};
|
|
253
253
|
ge.Fragment = w, ge.jsx = function(o, g, i) {
|
|
254
|
-
var c = 1e4 >
|
|
254
|
+
var c = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return m(
|
|
256
256
|
o,
|
|
257
257
|
g,
|
|
258
258
|
i,
|
|
259
259
|
!1,
|
|
260
260
|
c ? Error("react-stack-top-frame") : Q,
|
|
261
|
-
c ?
|
|
261
|
+
c ? G(n(o)) : ee
|
|
262
262
|
);
|
|
263
263
|
}, ge.jsxs = function(o, g, i) {
|
|
264
|
-
var c = 1e4 >
|
|
264
|
+
var c = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return m(
|
|
266
266
|
o,
|
|
267
267
|
g,
|
|
268
268
|
i,
|
|
269
269
|
!0,
|
|
270
270
|
c ? Error("react-stack-top-frame") : Q,
|
|
271
|
-
c ?
|
|
271
|
+
c ? G(n(o)) : ee
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
274
|
})()), ge;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var Je;
|
|
277
|
+
function Rr() {
|
|
278
|
+
return Je || (Je = 1, process.env.NODE_ENV === "production" ? Pe.exports = Sr() : Pe.exports = Er()), Pe.exports;
|
|
279
279
|
}
|
|
280
|
-
var L =
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var L = Rr();
|
|
281
|
+
function Ie() {
|
|
282
|
+
return Ie = 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
|
-
},
|
|
288
|
+
}, Ie.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function _r(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
|
|
297
|
+
function Tr(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
|
|
301
|
+
var Ar = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(t) {
|
|
303
303
|
var n = this;
|
|
304
304
|
this._insertTag = function(a) {
|
|
@@ -310,10 +310,10 @@ var Er = /* @__PURE__ */ (function() {
|
|
|
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(
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Tr(this));
|
|
314
314
|
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var s =
|
|
316
|
+
var s = _r(a);
|
|
317
317
|
try {
|
|
318
318
|
s.insertRule(n, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
@@ -327,20 +327,20 @@ var Er = /* @__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-", Ce = "-moz-", _ = "-webkit-",
|
|
331
|
-
function
|
|
330
|
+
})(), Y = "-ms-", Ce = "-moz-", _ = "-webkit-", cr = "comm", De = "rule", We = "decl", Cr = "@import", lr = "@keyframes", Or = "@layer", $r = Math.abs, Oe = String.fromCharCode, jr = Object.assign;
|
|
331
|
+
function Mr(e, r) {
|
|
332
332
|
return z(e, 0) ^ 45 ? (((r << 2 ^ z(e, 0)) << 2 ^ z(e, 1)) << 2 ^ z(e, 2)) << 2 ^ z(e, 3) : 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ur(e) {
|
|
335
335
|
return e.trim();
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Fr(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
|
|
343
|
+
function ze(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
346
|
function z(e, r) {
|
|
@@ -352,39 +352,39 @@ function ve(e, r, t) {
|
|
|
352
352
|
function re(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ye(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
358
|
function ke(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Nr(e, r) {
|
|
362
362
|
return e.map(r).join("");
|
|
363
363
|
}
|
|
364
|
-
var $e = 1,
|
|
364
|
+
var $e = 1, fe = 1, fr = 0, q = 0, F = 0, pe = "";
|
|
365
365
|
function je(e, r, t, n, a, s, f) {
|
|
366
|
-
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: $e, column:
|
|
366
|
+
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: $e, column: fe, length: f, return: "" };
|
|
367
367
|
}
|
|
368
368
|
function ye(e, r) {
|
|
369
|
-
return
|
|
369
|
+
return jr(je("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Lr() {
|
|
372
372
|
return F;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return F = q > 0 ? z(
|
|
374
|
+
function Vr() {
|
|
375
|
+
return F = q > 0 ? z(pe, --q) : 0, fe--, F === 10 && (fe = 1, $e--), F;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return F = q <
|
|
377
|
+
function B() {
|
|
378
|
+
return F = q < fr ? z(pe, q++) : 0, fe++, F === 10 && (fe = 1, $e++), F;
|
|
379
379
|
}
|
|
380
380
|
function ne() {
|
|
381
|
-
return z(
|
|
381
|
+
return z(pe, q);
|
|
382
382
|
}
|
|
383
383
|
function Re() {
|
|
384
384
|
return q;
|
|
385
385
|
}
|
|
386
386
|
function we(e, r) {
|
|
387
|
-
return ve(
|
|
387
|
+
return ve(pe, e, r);
|
|
388
388
|
}
|
|
389
389
|
function be(e) {
|
|
390
390
|
switch (e) {
|
|
@@ -424,27 +424,27 @@ function be(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return $e =
|
|
427
|
+
function dr(e) {
|
|
428
|
+
return $e = fe = 1, fr = re(pe = e), q = 0, [];
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
430
|
+
function pr(e) {
|
|
431
|
+
return pe = "", e;
|
|
432
432
|
}
|
|
433
433
|
function _e(e) {
|
|
434
|
-
return
|
|
434
|
+
return ur(we(q - 1, Ue(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Ir(e) {
|
|
437
437
|
for (; (F = ne()) && F < 33; )
|
|
438
|
-
|
|
438
|
+
B();
|
|
439
439
|
return be(e) > 2 || be(F) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function zr(e, r) {
|
|
442
|
+
for (; --r && B() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
443
443
|
;
|
|
444
|
-
return we(e, Re() + (r < 6 && ne() == 32 &&
|
|
444
|
+
return we(e, Re() + (r < 6 && ne() == 32 && B() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
446
|
+
function Ue(e) {
|
|
447
|
+
for (; B(); )
|
|
448
448
|
switch (F) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
@@ -452,75 +452,75 @@ function Ie(e) {
|
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && Ue(F);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && Ue(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
|
-
|
|
463
|
+
B();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
466
|
return q;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (;
|
|
468
|
+
function Ur(e, r) {
|
|
469
|
+
for (; B() && e + F !== 57; )
|
|
470
470
|
if (e + F === 84 && ne() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" + we(r, q - 1) + "*" + Oe(e === 47 ? e :
|
|
472
|
+
return "/*" + we(r, q - 1) + "*" + Oe(e === 47 ? e : B());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Dr(e) {
|
|
475
475
|
for (; !be(ne()); )
|
|
476
|
-
|
|
476
|
+
B();
|
|
477
477
|
return we(e, q);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function Wr(e) {
|
|
480
|
+
return pr(Te("", null, null, null, [""], e = dr(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
482
|
function Te(e, r, t, n, a, s, f, d, P) {
|
|
483
|
-
for (var
|
|
484
|
-
switch (O = A, A =
|
|
483
|
+
for (var y = 0, m = 0, v = f, $ = 0, C = 0, O = 0, b = 1, w = 1, k = 1, A = 0, M = "", V = a, I = s, j = n, S = M; w; )
|
|
484
|
+
switch (O = A, A = B()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (O != 108 && z(
|
|
488
|
-
|
|
487
|
+
if (O != 108 && z(S, v - 1) == 58) {
|
|
488
|
+
ze(S += T(_e(A), "&", "&\f"), "&\f") != -1 && (k = -1);
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
// " ' [
|
|
492
492
|
case 34:
|
|
493
493
|
case 39:
|
|
494
494
|
case 91:
|
|
495
|
-
|
|
495
|
+
S += _e(A);
|
|
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
|
-
|
|
502
|
+
S += Ir(O);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
S += zr(Re() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
510
|
switch (ne()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
ke(
|
|
513
|
+
ke(Yr(Ur(B(), Re()), r, t), P);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
S += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
|
-
case 123 *
|
|
521
|
-
d[
|
|
520
|
+
case 123 * b:
|
|
521
|
+
d[y++] = re(S) * k;
|
|
522
522
|
// } ; \0
|
|
523
|
-
case 125 *
|
|
523
|
+
case 125 * b:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
526
|
switch (A) {
|
|
@@ -530,123 +530,123 @@ function Te(e, r, t, n, a, s, f, d, P) {
|
|
|
530
530
|
w = 0;
|
|
531
531
|
// ;
|
|
532
532
|
case 59 + m:
|
|
533
|
-
|
|
533
|
+
k == -1 && (S = T(S, /\f/g, "")), C > 0 && re(S) - v && ke(C > 32 ? Ke(S + ";", n, t, v - 1) : Ke(T(S, " ", "") + ";", n, t, v - 2), P);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
S += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (ke(j =
|
|
540
|
+
if (ke(j = Ze(S, r, t, y, m, a, d, M, V = [], I = [], v), s), A === 123)
|
|
541
541
|
if (m === 0)
|
|
542
|
-
Te(
|
|
542
|
+
Te(S, r, j, j, V, s, v, d, I);
|
|
543
543
|
else
|
|
544
|
-
switch ($ === 99 && z(
|
|
544
|
+
switch ($ === 99 && z(S, 3) === 110 ? 100 : $) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
Te(e, j, j, n && ke(
|
|
550
|
+
Te(e, j, j, n && ke(Ze(e, j, j, 0, 0, a, d, M, a, V = [], v), I), a, I, v, d, n ? V : I);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
Te(
|
|
553
|
+
Te(S, j, j, j, [""], I, 0, d, I);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
y = m = C = 0, b = k = 1, M = S = "", v = f;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
|
|
560
|
+
v = 1 + re(S), C = O;
|
|
561
561
|
default:
|
|
562
|
-
if (
|
|
562
|
+
if (b < 1) {
|
|
563
563
|
if (A == 123)
|
|
564
|
-
--
|
|
565
|
-
else if (A == 125 &&
|
|
564
|
+
--b;
|
|
565
|
+
else if (A == 125 && b++ == 0 && Vr() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (S += Oe(A), A * b) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
k = m > 0 ? 1 : (S += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
d[
|
|
575
|
+
d[y++] = (re(S) - 1) * k, k = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
ne() === 45 && (
|
|
579
|
+
ne() === 45 && (S += _e(B())), $ = ne(), m = v = re(M = S += Dr(Re())), A++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
O === 45 && re(
|
|
583
|
+
O === 45 && re(S) == 2 && (b = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
return s;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
for (var
|
|
590
|
-
for (var
|
|
591
|
-
(M =
|
|
592
|
-
return je(e, r, t, a === 0 ?
|
|
588
|
+
function Ze(e, r, t, n, a, s, f, d, P, y, m) {
|
|
589
|
+
for (var v = a - 1, $ = a === 0 ? s : [""], C = Ye($), O = 0, b = 0, w = 0; O < n; ++O)
|
|
590
|
+
for (var k = 0, A = ve(e, v + 1, v = $r(b = f[O])), M = e; k < C; ++k)
|
|
591
|
+
(M = ur(b > 0 ? $[k] + " " + A : T(A, /&\f/g, $[k]))) && (P[w++] = M);
|
|
592
|
+
return je(e, r, t, a === 0 ? De : d, P, y, m);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return je(e, r, t,
|
|
594
|
+
function Yr(e, r, t) {
|
|
595
|
+
return je(e, r, t, cr, Oe(Lr()), ve(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return je(e, r, t,
|
|
597
|
+
function Ke(e, r, t, n) {
|
|
598
|
+
return je(e, r, t, We, ve(e, 0, n), ve(e, n + 1, -1), n);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "", n =
|
|
600
|
+
function ue(e, r) {
|
|
601
|
+
for (var t = "", n = Ye(e), a = 0; a < n; a++)
|
|
602
602
|
t += r(e[a], a, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function qr(e, r, t, n) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case
|
|
607
|
+
case Or:
|
|
608
608
|
if (e.children.length) break;
|
|
609
|
-
case
|
|
610
|
-
case
|
|
609
|
+
case Cr:
|
|
610
|
+
case We:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case cr:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
614
|
+
case lr:
|
|
615
|
+
return e.return = e.value + "{" + ue(e.children, n) + "}";
|
|
616
|
+
case De:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return re(t =
|
|
619
|
+
return re(t = ue(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
621
|
+
function Hr(e) {
|
|
622
|
+
var r = Ye(e);
|
|
623
623
|
return function(t, n, a, s) {
|
|
624
624
|
for (var f = "", d = 0; d < r; d++)
|
|
625
625
|
f += e[d](t, n, a, s) || "";
|
|
626
626
|
return f;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Gr(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function hr(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
|
|
640
|
+
var Br = function(r, t, n) {
|
|
641
641
|
for (var a = 0, s = 0; a = s, s = ne(), a === 38 && s === 12 && (t[n] = 1), !be(s); )
|
|
642
|
-
|
|
642
|
+
B();
|
|
643
643
|
return we(r, q);
|
|
644
|
-
},
|
|
644
|
+
}, Xr = function(r, t) {
|
|
645
645
|
var n = -1, a = 44;
|
|
646
646
|
do
|
|
647
647
|
switch (be(a)) {
|
|
648
648
|
case 0:
|
|
649
|
-
a === 38 && ne() === 12 && (t[n] = 1), r[n] +=
|
|
649
|
+
a === 38 && ne() === 12 && (t[n] = 1), r[n] += Br(q - 1, t, n);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
652
|
r[n] += _e(a);
|
|
@@ -660,24 +660,24 @@ var Yr = function(r, t, n) {
|
|
|
660
660
|
default:
|
|
661
661
|
r[n] += Oe(a);
|
|
662
662
|
}
|
|
663
|
-
while (a =
|
|
663
|
+
while (a = B());
|
|
664
664
|
return r;
|
|
665
|
-
},
|
|
666
|
-
return
|
|
667
|
-
},
|
|
665
|
+
}, Jr = function(r, t) {
|
|
666
|
+
return pr(Xr(dr(r), t));
|
|
667
|
+
}, Qe = /* @__PURE__ */ new WeakMap(), Zr = 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 && !
|
|
674
|
-
|
|
675
|
-
for (var s = [], f =
|
|
676
|
-
for (var m = 0; m < d.length; m++,
|
|
677
|
-
r.props[
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Qe.get(n)) && !a) {
|
|
674
|
+
Qe.set(r, !0);
|
|
675
|
+
for (var s = [], f = Jr(t, s), d = n.props, P = 0, y = 0; P < f.length; P++)
|
|
676
|
+
for (var m = 0; m < d.length; m++, y++)
|
|
677
|
+
r.props[y] = s[P] ? f[P].replace(/&\f/g, d[m]) : d[m] + " " + f[P];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, Kr = function(r) {
|
|
681
681
|
if (r.type === "decl") {
|
|
682
682
|
var t = r.value;
|
|
683
683
|
// charcode for l
|
|
@@ -685,8 +685,8 @@ var Yr = function(r, t, n) {
|
|
|
685
685
|
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
switch (
|
|
688
|
+
function mr(e, r) {
|
|
689
|
+
switch (Mr(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
692
|
return _ + "print-" + e + e;
|
|
@@ -793,7 +793,7 @@ function fr(e, r) {
|
|
|
793
793
|
return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Ce + (z(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~ze(e, "stretch") ? mr(T(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
@@ -801,7 +801,7 @@ function fr(e, r) {
|
|
|
801
801
|
if (z(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (z(e, re(e) - 3 - (~
|
|
804
|
+
switch (z(e, re(e) - 3 - (~ze(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
807
|
return T(e, ":", ":" + _) + e;
|
|
@@ -827,27 +827,27 @@ function fr(e, r) {
|
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Qr = function(r, t, n, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case We:
|
|
833
|
+
r.return = mr(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
836
|
-
return
|
|
835
|
+
case lr:
|
|
836
|
+
return ue([ye(r, {
|
|
837
837
|
value: T(r.value, "@", "@" + _)
|
|
838
838
|
})], a);
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
841
|
-
switch (
|
|
839
|
+
case De:
|
|
840
|
+
if (r.length) return Nr(r.props, function(s) {
|
|
841
|
+
switch (Fr(s, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
|
-
return
|
|
845
|
+
return ue([ye(r, {
|
|
846
846
|
props: [T(s, /:(read-\w+)/, ":" + Ce + "$1")]
|
|
847
847
|
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
850
|
+
return ue([ye(r, {
|
|
851
851
|
props: [T(s, /:(plac\w+)/, ":" + _ + "input-$1")]
|
|
852
852
|
}), ye(r, {
|
|
853
853
|
props: [T(s, /:(plac\w+)/, ":" + Ce + "$1")]
|
|
@@ -858,40 +858,40 @@ var Xr = function(r, t, n, a) {
|
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, et = [Qr], rt = 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
|
-
Array.prototype.forEach.call(n, function(
|
|
866
|
-
var w =
|
|
867
|
-
w.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
865
|
+
Array.prototype.forEach.call(n, function(b) {
|
|
866
|
+
var w = b.getAttribute("data-emotion");
|
|
867
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var a = r.stylisPlugins ||
|
|
870
|
+
var a = r.stylisPlugins || et, s = {}, f, d = [];
|
|
871
871
|
f = 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
|
-
function(
|
|
876
|
-
for (var w =
|
|
877
|
-
s[w[
|
|
878
|
-
d.push(
|
|
875
|
+
function(b) {
|
|
876
|
+
for (var w = b.getAttribute("data-emotion").split(" "), k = 1; k < w.length; k++)
|
|
877
|
+
s[w[k]] = !0;
|
|
878
|
+
d.push(b);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var P,
|
|
881
|
+
var P, y = [Zr, Kr];
|
|
882
882
|
{
|
|
883
|
-
var m,
|
|
884
|
-
m.insert(
|
|
885
|
-
})], $ =
|
|
886
|
-
return
|
|
883
|
+
var m, v = [qr, Gr(function(b) {
|
|
884
|
+
m.insert(b);
|
|
885
|
+
})], $ = Hr(y.concat(a, v)), C = function(w) {
|
|
886
|
+
return ue(Wr(w), $);
|
|
887
887
|
};
|
|
888
|
-
P = function(w,
|
|
889
|
-
m = A, C(w ? w + "{" +
|
|
888
|
+
P = function(w, k, A, M) {
|
|
889
|
+
m = A, C(w ? w + "{" + k.styles + "}" : k.styles), M && (O.inserted[k.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
var O = {
|
|
893
893
|
key: t,
|
|
894
|
-
sheet: new
|
|
894
|
+
sheet: new Ar({
|
|
895
895
|
key: t,
|
|
896
896
|
container: f,
|
|
897
897
|
nonce: r.nonce,
|
|
@@ -905,14 +905,14 @@ var Xr = function(r, t, n, a) {
|
|
|
905
905
|
insert: P
|
|
906
906
|
};
|
|
907
907
|
return O.sheet.hydrate(d), O;
|
|
908
|
-
},
|
|
909
|
-
function
|
|
908
|
+
}, tt = !0;
|
|
909
|
+
function nt(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
|
|
915
|
+
var gr = 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,9 +923,9 @@ var dr = 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
|
-
|
|
927
|
-
},
|
|
928
|
-
|
|
926
|
+
tt === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
|
|
927
|
+
}, at = function(r, t, n) {
|
|
928
|
+
gr(r, t, n);
|
|
929
929
|
var a = r.key + "-" + t.name;
|
|
930
930
|
if (r.inserted[t.name] === void 0) {
|
|
931
931
|
var s = t;
|
|
@@ -934,7 +934,7 @@ var dr = function(r, t, n) {
|
|
|
934
934
|
while (s !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function it(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 rt(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
|
|
956
|
+
var ot = {
|
|
957
957
|
animationIterationCount: 1,
|
|
958
958
|
aspectRatio: 1,
|
|
959
959
|
borderImageOutset: 1,
|
|
@@ -1002,18 +1002,18 @@ var tt = {
|
|
|
1002
1002
|
strokeMiterlimit: 1,
|
|
1003
1003
|
strokeOpacity: 1,
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
|
-
},
|
|
1005
|
+
}, st = /[A-Z]|^ms/g, ct = /_EMO_([^_]+?)_([^]*?)_EMO_/g, yr = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, er = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
}),
|
|
1009
|
+
}, Le = /* @__PURE__ */ hr(function(e) {
|
|
1010
|
+
return yr(e) ? e : e.replace(st, "-$&").toLowerCase();
|
|
1011
|
+
}), rr = 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(
|
|
1016
|
+
return t.replace(ct, function(n, a, s) {
|
|
1017
1017
|
return te = {
|
|
1018
1018
|
name: a,
|
|
1019
1019
|
styles: s,
|
|
@@ -1021,7 +1021,7 @@ var tt = {
|
|
|
1021
1021
|
}, a;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return ot[r] !== 1 && !yr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
1026
|
function xe(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
@@ -1053,12 +1053,12 @@ function xe(e, r, t) {
|
|
|
1053
1053
|
var d = s.styles + ";";
|
|
1054
1054
|
return d;
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return lt(e, r, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
|
-
var P = te,
|
|
1061
|
-
return te = P, xe(e, r,
|
|
1060
|
+
var P = te, y = t(e);
|
|
1061
|
+
return te = P, xe(e, r, y);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
@@ -1066,10 +1066,10 @@ function xe(e, r, t) {
|
|
|
1066
1066
|
var m = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
1068
|
return m;
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1069
|
+
var v = r[m];
|
|
1070
|
+
return v !== void 0 ? v : m;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function lt(e, r, t) {
|
|
1073
1073
|
var n = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
1075
|
for (var a = 0; a < t.length; a++)
|
|
@@ -1079,27 +1079,27 @@ function it(e, r, t) {
|
|
|
1079
1079
|
var f = t[s];
|
|
1080
1080
|
if (typeof f != "object") {
|
|
1081
1081
|
var d = f;
|
|
1082
|
-
r != null && r[d] !== void 0 ? n += s + "{" + r[d] + "}" :
|
|
1082
|
+
r != null && r[d] !== void 0 ? n += s + "{" + r[d] + "}" : er(d) && (n += Le(s) + ":" + rr(s, d) + ";");
|
|
1083
1083
|
} else if (Array.isArray(f) && typeof f[0] == "string" && (r == null || r[f[0]] === void 0))
|
|
1084
1084
|
for (var P = 0; P < f.length; P++)
|
|
1085
|
-
|
|
1085
|
+
er(f[P]) && (n += Le(s) + ":" + rr(s, f[P]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var
|
|
1087
|
+
var y = xe(e, r, f);
|
|
1088
1088
|
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
n +=
|
|
1091
|
+
n += Le(s) + ":" + y + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
1095
|
-
n += s + "{" +
|
|
1095
|
+
n += s + "{" + y + "}";
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
return n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1101
|
+
var tr = /label:\s*([^\s;{]+)\s*(;|$)/g, te;
|
|
1102
|
+
function ut(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 = "";
|
|
@@ -1116,48 +1116,48 @@ function ot(e, r, t) {
|
|
|
1116
1116
|
var P = s;
|
|
1117
1117
|
a += P[d];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var
|
|
1121
|
-
|
|
1122
|
-
var
|
|
1119
|
+
tr.lastIndex = 0;
|
|
1120
|
+
for (var y = "", m; (m = tr.exec(a)) !== null; )
|
|
1121
|
+
y += "-" + m[1];
|
|
1122
|
+
var v = it(a) + y;
|
|
1123
1123
|
return {
|
|
1124
|
-
name:
|
|
1124
|
+
name: v,
|
|
1125
1125
|
styles: a,
|
|
1126
1126
|
next: te
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var ft = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, dt = ie.useInsertionEffect ? ie.useInsertionEffect : !1, pt = dt || ft, vr = /* @__PURE__ */ ie.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__ */
|
|
1138
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ rt({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1143
|
-
var
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var a =
|
|
1142
|
+
vr.Provider;
|
|
1143
|
+
var ht = function(r) {
|
|
1144
|
+
return /* @__PURE__ */ sr(function(t, n) {
|
|
1145
|
+
var a = wr(vr);
|
|
1146
1146
|
return r(t, a, n);
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, mt = /* @__PURE__ */ ie.createContext({}), gt = /^((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)-.*))$/, yt = /* @__PURE__ */ hr(
|
|
1149
1149
|
function(e) {
|
|
1150
|
-
return
|
|
1150
|
+
return gt.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
|
-
),
|
|
1153
|
+
), vt = yt, bt = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
|
-
},
|
|
1155
|
+
}, nr = 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 ?
|
|
1160
|
-
},
|
|
1159
|
+
r.charCodeAt(0) > 96 ? vt : bt;
|
|
1160
|
+
}, ar = function(r, t, n) {
|
|
1161
1161
|
var a;
|
|
1162
1162
|
if (t) {
|
|
1163
1163
|
var s = t.shouldForwardProp;
|
|
@@ -1166,57 +1166,57 @@ var ut = function(r) {
|
|
|
1166
1166
|
} : s;
|
|
1167
1167
|
}
|
|
1168
1168
|
return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
|
|
1169
|
-
},
|
|
1169
|
+
}, xt = function(r) {
|
|
1170
1170
|
var t = r.cache, n = r.serialized, a = r.isStringTag;
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1171
|
+
return gr(t, n, a), pt(function() {
|
|
1172
|
+
return at(t, n, a);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1174
|
+
}, wt = function e(r, t) {
|
|
1175
1175
|
var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, f;
|
|
1176
1176
|
t !== void 0 && (s = t.label, f = t.target);
|
|
1177
|
-
var d =
|
|
1177
|
+
var d = ar(r, t, n), P = d || nr(a), y = !P("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var m = arguments,
|
|
1180
|
-
if (s !== void 0 &&
|
|
1181
|
-
|
|
1179
|
+
var m = arguments, v = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && v.push("label:" + s + ";"), m[0] == null || m[0].raw === void 0)
|
|
1181
|
+
v.push.apply(v, m);
|
|
1182
1182
|
else {
|
|
1183
1183
|
var $ = m[0];
|
|
1184
|
-
|
|
1184
|
+
v.push($[0]);
|
|
1185
1185
|
for (var C = m.length, O = 1; O < C; O++)
|
|
1186
|
-
|
|
1186
|
+
v.push(m[O], $[O]);
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1189
|
-
var M =
|
|
1188
|
+
var b = ht(function(w, k, A) {
|
|
1189
|
+
var M = y && w.as || a, V = "", I = [], j = w;
|
|
1190
1190
|
if (w.theme == null) {
|
|
1191
1191
|
j = {};
|
|
1192
|
-
for (var
|
|
1193
|
-
j[
|
|
1194
|
-
j.theme = ie.useContext(
|
|
1192
|
+
for (var S in w)
|
|
1193
|
+
j[S] = w[S];
|
|
1194
|
+
j.theme = ie.useContext(mt);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof w.className == "string" ? V =
|
|
1197
|
-
var H =
|
|
1198
|
-
V +=
|
|
1199
|
-
var Z =
|
|
1196
|
+
typeof w.className == "string" ? V = nt(k.registered, I, w.className) : w.className != null && (V = w.className + " ");
|
|
1197
|
+
var H = ut(v.concat(I), k.registered, j);
|
|
1198
|
+
V += k.key + "-" + H.name, f !== void 0 && (V += " " + f);
|
|
1199
|
+
var Z = y && d === void 0 ? nr(M) : P, U = {};
|
|
1200
1200
|
for (var X in w)
|
|
1201
|
-
|
|
1202
|
-
return
|
|
1203
|
-
cache:
|
|
1201
|
+
y && X === "as" || Z(X) && (U[X] = w[X]);
|
|
1202
|
+
return U.className = V, A && (U.ref = A), /* @__PURE__ */ ie.createElement(ie.Fragment, null, /* @__PURE__ */ ie.createElement(xt, {
|
|
1203
|
+
cache: k,
|
|
1204
1204
|
serialized: H,
|
|
1205
1205
|
isStringTag: typeof M == "string"
|
|
1206
|
-
}), /* @__PURE__ */ ie.createElement(M,
|
|
1206
|
+
}), /* @__PURE__ */ ie.createElement(M, U));
|
|
1207
1207
|
});
|
|
1208
|
-
return
|
|
1208
|
+
return b.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", b.defaultProps = r.defaultProps, b.__emotion_real = b, b.__emotion_base = a, b.__emotion_styles = v, b.__emotion_forwardProp = d, Object.defineProperty(b, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
1210
|
return "." + f;
|
|
1211
1211
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
var A = e(w,
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), b.withComponent = function(w, k) {
|
|
1213
|
+
var A = e(w, Ie({}, t, k, {
|
|
1214
|
+
shouldForwardProp: ar(b, k, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return A.apply(void 0,
|
|
1217
|
-
},
|
|
1216
|
+
return A.apply(void 0, v);
|
|
1217
|
+
}, b;
|
|
1218
1218
|
};
|
|
1219
|
-
},
|
|
1219
|
+
}, Pt = [
|
|
1220
1220
|
"a",
|
|
1221
1221
|
"abbr",
|
|
1222
1222
|
"address",
|
|
@@ -1352,11 +1352,11 @@ var ut = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
],
|
|
1356
|
-
|
|
1357
|
-
|
|
1355
|
+
], de = wt.bind(null);
|
|
1356
|
+
Pt.forEach(function(e) {
|
|
1357
|
+
de[e] = de(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1359
|
+
const kt = de.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,11 +1397,11 @@ const bt = fe.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`,
|
|
1400
|
+
`, ir = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ L.jsxs(kt, { type: e, className: t, children: [
|
|
1401
1401
|
n && /* @__PURE__ */ L.jsx("span", { children: n }),
|
|
1402
1402
|
/* @__PURE__ */ L.jsx("span", { children: r }),
|
|
1403
1403
|
a && /* @__PURE__ */ L.jsx("span", { children: a })
|
|
1404
|
-
] }),
|
|
1404
|
+
] }), or = de.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 bt = fe.div`
|
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
1419
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
|
|
1420
|
-
`,
|
|
1420
|
+
`, St = de.div`
|
|
1421
1421
|
position: fixed;
|
|
1422
1422
|
top: 0;
|
|
1423
1423
|
left: 0;
|
|
@@ -1429,7 +1429,7 @@ const bt = fe.div`
|
|
|
1429
1429
|
align-items: center;
|
|
1430
1430
|
z-index: 1000;
|
|
1431
1431
|
pointer-events: auto;
|
|
1432
|
-
`,
|
|
1432
|
+
`, Et = de.div`
|
|
1433
1433
|
position: relative;
|
|
1434
1434
|
height: 80vh;
|
|
1435
1435
|
width: auto;
|
|
@@ -1437,17 +1437,17 @@ const bt = fe.div`
|
|
|
1437
1437
|
max-width: 90vw;
|
|
1438
1438
|
max-height: 90vh;
|
|
1439
1439
|
z-index: 1001;
|
|
1440
|
-
`,
|
|
1440
|
+
`, le = "https://host.vpplayer.tech", Rt = (e) => `${le}/player/${e}/vpplayer.js`, It = (e) => `${le}/player/${e}.js`, _t = (e, r) => `${le}/player/${e}/${r}.js`, Tt = (e) => `${le}/vertical-player/${e}.js`, At = (e, r) => `${le}/vertical-player/${e}/${r}.js`, Ct = (e, r) => `${le}/player/${e}/${r}.json`, Ot = (e, r) => `${le}/vertical-player/${e}/${r}.json`, $t = (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
|
-
}, Se = /* @__PURE__ */ new Map(),
|
|
1443
|
+
}, Se = /* @__PURE__ */ new Map(), Mt = (e, r) => {
|
|
1444
1444
|
const [t, n] = Ae(!1), [a, s] = Ae(null);
|
|
1445
|
-
return
|
|
1445
|
+
return Ve(() => {
|
|
1446
1446
|
let f;
|
|
1447
1447
|
try {
|
|
1448
|
-
f = r ||
|
|
1449
|
-
} catch (
|
|
1450
|
-
const m =
|
|
1448
|
+
f = r || Rt(e || "latest");
|
|
1449
|
+
} catch (y) {
|
|
1450
|
+
const m = y instanceof Error ? y.message : String(y);
|
|
1451
1451
|
s(`Failed to resolve script URL: ${m}`);
|
|
1452
1452
|
return;
|
|
1453
1453
|
}
|
|
@@ -1457,9 +1457,9 @@ const bt = fe.div`
|
|
|
1457
1457
|
))
|
|
1458
1458
|
Se.set(f, Promise.resolve());
|
|
1459
1459
|
else {
|
|
1460
|
-
const m = new Promise((
|
|
1460
|
+
const m = new Promise((v, $) => {
|
|
1461
1461
|
const C = document.createElement("script");
|
|
1462
|
-
C.src = f, C.async = !0, C.onload = () =>
|
|
1462
|
+
C.src = f, C.async = !0, C.onload = () => v(), C.onerror = () => $(new Error(`Failed to load script: ${f}`)), document.body.appendChild(C);
|
|
1463
1463
|
});
|
|
1464
1464
|
Se.set(f, m);
|
|
1465
1465
|
}
|
|
@@ -1467,8 +1467,8 @@ const bt = fe.div`
|
|
|
1467
1467
|
const P = Se.get(f);
|
|
1468
1468
|
return P && P.then(() => {
|
|
1469
1469
|
d && (n(!0), s(null));
|
|
1470
|
-
}).catch((
|
|
1471
|
-
d && (n(!1), s(
|
|
1470
|
+
}).catch((y) => {
|
|
1471
|
+
d && (n(!1), s(y instanceof Error ? y.message : String(y)));
|
|
1472
1472
|
}), () => {
|
|
1473
1473
|
d = !1;
|
|
1474
1474
|
};
|
|
@@ -1477,17 +1477,17 @@ const bt = fe.div`
|
|
|
1477
1477
|
function Ee(e) {
|
|
1478
1478
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function br(e, r) {
|
|
1481
1481
|
if (!Ee(e) || !Ee(r))
|
|
1482
1482
|
return r;
|
|
1483
1483
|
const t = { ...e };
|
|
1484
1484
|
for (const n of Object.keys(r)) {
|
|
1485
1485
|
const a = r[n], s = t[n];
|
|
1486
|
-
Ee(a) && Ee(s) ? t[n] =
|
|
1486
|
+
Ee(a) && Ee(s) ? t[n] = br(s, a) : a !== void 0 && (t[n] = a);
|
|
1487
1487
|
}
|
|
1488
1488
|
return t;
|
|
1489
1489
|
}
|
|
1490
|
-
async function
|
|
1490
|
+
async function Ft(e, r, t) {
|
|
1491
1491
|
if (!e)
|
|
1492
1492
|
return console.warn(
|
|
1493
1493
|
"VP Player: No scriptId provided, cannot fetch config. Using user config directly."
|
|
@@ -1495,7 +1495,7 @@ async function Ot(e, r, t) {
|
|
|
1495
1495
|
r || console.warn(
|
|
1496
1496
|
"VP Player: No videoId provided, attempting to fetch config with scriptId only..."
|
|
1497
1497
|
);
|
|
1498
|
-
const n = t ?
|
|
1498
|
+
const n = t ? Ot(e, r || "") : Ct(e, r || "");
|
|
1499
1499
|
try {
|
|
1500
1500
|
const a = await fetch(n);
|
|
1501
1501
|
return a.ok ? await a.json() : null;
|
|
@@ -1503,7 +1503,7 @@ async function Ot(e, r, t) {
|
|
|
1503
1503
|
return null;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
const
|
|
1506
|
+
const Nt = ({
|
|
1507
1507
|
scriptId: e,
|
|
1508
1508
|
videoId: r,
|
|
1509
1509
|
scriptUrl: t,
|
|
@@ -1513,53 +1513,53 @@ const $t = ({
|
|
|
1513
1513
|
isVertical: f = !1,
|
|
1514
1514
|
isReels: d = !1,
|
|
1515
1515
|
onReady: P,
|
|
1516
|
-
onPlay:
|
|
1516
|
+
onPlay: y,
|
|
1517
1517
|
onPause: m,
|
|
1518
|
-
onResume:
|
|
1518
|
+
onResume: v,
|
|
1519
1519
|
onComplete: $,
|
|
1520
1520
|
onError: C,
|
|
1521
1521
|
onVideoStarted: O,
|
|
1522
|
-
onTimeUpdate:
|
|
1522
|
+
onTimeUpdate: b,
|
|
1523
1523
|
onQuartile25: w,
|
|
1524
|
-
onQuartile50:
|
|
1524
|
+
onQuartile50: k,
|
|
1525
1525
|
onQuartile75: A,
|
|
1526
1526
|
onNext: M,
|
|
1527
1527
|
onPrevious: V,
|
|
1528
1528
|
onProgress10s: I,
|
|
1529
1529
|
onProgress20s: j
|
|
1530
1530
|
}) => {
|
|
1531
|
-
const
|
|
1532
|
-
() =>
|
|
1531
|
+
const S = he(null), H = he(null), [Z, U] = Ae(null), X = Pr().replace(/:/g, ""), D = Ne(
|
|
1532
|
+
() => $t(s || `auto-${X}`, r),
|
|
1533
1533
|
[s, X, r]
|
|
1534
1534
|
), p = he({
|
|
1535
1535
|
onReady: P,
|
|
1536
|
-
onPlay:
|
|
1536
|
+
onPlay: y,
|
|
1537
1537
|
onPause: m,
|
|
1538
|
-
onResume:
|
|
1538
|
+
onResume: v,
|
|
1539
1539
|
onComplete: $,
|
|
1540
1540
|
onError: C,
|
|
1541
1541
|
onVideoStarted: O,
|
|
1542
|
-
onTimeUpdate:
|
|
1542
|
+
onTimeUpdate: b,
|
|
1543
1543
|
onQuartile25: w,
|
|
1544
|
-
onQuartile50:
|
|
1544
|
+
onQuartile50: k,
|
|
1545
1545
|
onQuartile75: A,
|
|
1546
1546
|
onNext: M,
|
|
1547
1547
|
onPrevious: V,
|
|
1548
1548
|
onProgress10s: I,
|
|
1549
1549
|
onProgress20s: j
|
|
1550
1550
|
});
|
|
1551
|
-
|
|
1551
|
+
Ve(() => {
|
|
1552
1552
|
p.current = {
|
|
1553
1553
|
onReady: P,
|
|
1554
|
-
onPlay:
|
|
1554
|
+
onPlay: y,
|
|
1555
1555
|
onPause: m,
|
|
1556
|
-
onResume:
|
|
1556
|
+
onResume: v,
|
|
1557
1557
|
onComplete: $,
|
|
1558
1558
|
onError: C,
|
|
1559
1559
|
onVideoStarted: O,
|
|
1560
|
-
onTimeUpdate:
|
|
1560
|
+
onTimeUpdate: b,
|
|
1561
1561
|
onQuartile25: w,
|
|
1562
|
-
onQuartile50:
|
|
1562
|
+
onQuartile50: k,
|
|
1563
1563
|
onQuartile75: A,
|
|
1564
1564
|
onNext: M,
|
|
1565
1565
|
onPrevious: V,
|
|
@@ -1567,37 +1567,37 @@ const $t = ({
|
|
|
1567
1567
|
onProgress20s: j
|
|
1568
1568
|
};
|
|
1569
1569
|
});
|
|
1570
|
-
const ae = he(!1),
|
|
1570
|
+
const ae = he(!1), G = he(!1), K = !!a, W = Ne(() => f || d ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [f, d, t]), Q = Ne(() => {
|
|
1571
1571
|
let o;
|
|
1572
1572
|
if (t)
|
|
1573
1573
|
o = t;
|
|
1574
1574
|
else if (e && r && !K)
|
|
1575
|
-
o = W ?
|
|
1575
|
+
o = W ? At(e, r) : _t(e, r);
|
|
1576
1576
|
else if (e)
|
|
1577
|
-
o = W ?
|
|
1577
|
+
o = W ? Tt(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1578
1578
|
else
|
|
1579
1579
|
return null;
|
|
1580
|
-
return
|
|
1580
|
+
return jt(o, D);
|
|
1581
1581
|
}, [
|
|
1582
1582
|
t,
|
|
1583
1583
|
e,
|
|
1584
1584
|
r,
|
|
1585
1585
|
W,
|
|
1586
|
-
|
|
1586
|
+
D,
|
|
1587
1587
|
K
|
|
1588
|
-
]), { isLoaded: ee, error: oe } =
|
|
1588
|
+
]), { isLoaded: ee, error: oe } = Mt(
|
|
1589
1589
|
null,
|
|
1590
1590
|
Q || void 0
|
|
1591
1591
|
);
|
|
1592
|
-
return
|
|
1592
|
+
return Ve(() => {
|
|
1593
1593
|
if (!Q) {
|
|
1594
|
-
|
|
1594
|
+
U(
|
|
1595
1595
|
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1596
1596
|
);
|
|
1597
1597
|
return;
|
|
1598
1598
|
}
|
|
1599
1599
|
if (oe) {
|
|
1600
|
-
|
|
1600
|
+
U(oe);
|
|
1601
1601
|
return;
|
|
1602
1602
|
}
|
|
1603
1603
|
if (!ee) return;
|
|
@@ -1607,52 +1607,52 @@ const $t = ({
|
|
|
1607
1607
|
try {
|
|
1608
1608
|
const c = W ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1609
1609
|
if (!c) {
|
|
1610
|
-
|
|
1610
|
+
U(
|
|
1611
1611
|
`VP Player: Script loaded but global function not found. Expected ${W ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1612
1612
|
);
|
|
1613
1613
|
return;
|
|
1614
1614
|
}
|
|
1615
|
-
if (await new Promise((h) => setTimeout(h, 0)), !document.getElementById(
|
|
1615
|
+
if (await new Promise((h) => setTimeout(h, 0)), !document.getElementById(D)) {
|
|
1616
1616
|
console.error(
|
|
1617
|
-
`VP Player: Container element with ID '${
|
|
1617
|
+
`VP Player: Container element with ID '${D}' not found in DOM.`
|
|
1618
1618
|
);
|
|
1619
1619
|
return;
|
|
1620
1620
|
}
|
|
1621
|
-
const R = c(
|
|
1621
|
+
const R = c(D);
|
|
1622
1622
|
if (!R) {
|
|
1623
|
-
|
|
1623
|
+
U("VP Player: Failed to get player instance.");
|
|
1624
1624
|
return;
|
|
1625
1625
|
}
|
|
1626
1626
|
if (o) {
|
|
1627
|
-
if (H.current = R,
|
|
1627
|
+
if (H.current = R, U(null), K && a) {
|
|
1628
1628
|
let h;
|
|
1629
|
-
const u = await
|
|
1629
|
+
const u = await Ft(
|
|
1630
1630
|
e,
|
|
1631
1631
|
r,
|
|
1632
1632
|
W
|
|
1633
1633
|
);
|
|
1634
|
-
u ? h =
|
|
1634
|
+
u ? h = br(u, a) : h = a, n && !h.projectId && (h.projectId = n);
|
|
1635
1635
|
try {
|
|
1636
1636
|
R.setup(h);
|
|
1637
1637
|
} catch (l) {
|
|
1638
|
-
const
|
|
1639
|
-
if (
|
|
1638
|
+
const x = l instanceof Error ? l.message : String(l);
|
|
1639
|
+
if (x.includes("already initialized")) {
|
|
1640
1640
|
console.warn(
|
|
1641
1641
|
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1642
1642
|
);
|
|
1643
1643
|
try {
|
|
1644
|
-
if ((i = R.destroy) == null || i.call(R), await new Promise((
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1644
|
+
if ((i = R.destroy) == null || i.call(R), await new Promise((E) => setTimeout(E, 50)), o && document.getElementById(D)) {
|
|
1645
|
+
const E = c(D);
|
|
1646
|
+
E && (E.setup(h), H.current = E);
|
|
1647
1647
|
}
|
|
1648
|
-
} catch (
|
|
1648
|
+
} catch (E) {
|
|
1649
1649
|
console.error(
|
|
1650
1650
|
"VP Player: Failed to recover from initialization error",
|
|
1651
|
-
|
|
1651
|
+
E
|
|
1652
1652
|
);
|
|
1653
1653
|
}
|
|
1654
1654
|
} else {
|
|
1655
|
-
console.error("VP Player: Setup error", l),
|
|
1655
|
+
console.error("VP Player: Setup error", l), U(`Player setup failed: ${x}`);
|
|
1656
1656
|
return;
|
|
1657
1657
|
}
|
|
1658
1658
|
}
|
|
@@ -1660,9 +1660,19 @@ const $t = ({
|
|
|
1660
1660
|
if (R.on) {
|
|
1661
1661
|
const h = R.on.bind(R);
|
|
1662
1662
|
h("vp-event", (u) => {
|
|
1663
|
-
var
|
|
1664
|
-
const l = u,
|
|
1665
|
-
|
|
1663
|
+
var E, J, se, ce, qe, He, Ge;
|
|
1664
|
+
const l = u, x = l == null ? void 0 : l.eventName;
|
|
1665
|
+
if (W) {
|
|
1666
|
+
if (x === "play") {
|
|
1667
|
+
const Fe = R.videoObject;
|
|
1668
|
+
(J = (E = p.current).onPlay) == null || J.call(E, Fe);
|
|
1669
|
+
}
|
|
1670
|
+
if (x === "vp-state-paused") {
|
|
1671
|
+
const Me = ((se = R.isEnded) == null ? void 0 : se.call(R)) ?? !1, Fe = (l == null ? void 0 : l.interaction) ?? !0;
|
|
1672
|
+
!Me && Fe && (G.current = !0, (qe = (ce = p.current).onPause) == null || qe.call(ce));
|
|
1673
|
+
}
|
|
1674
|
+
x === "vp-state-playing" && (((l == null ? void 0 : l.interaction) ?? G.current) && G.current && ((Ge = (He = p.current).onResume) == null || Ge.call(He)), G.current = !1), x === "vp-video-switch" && (G.current = !1), x === "vp-video-completed" && (G.current = !1);
|
|
1675
|
+
}
|
|
1666
1676
|
}), h("analytics-25%-completed", () => {
|
|
1667
1677
|
var u, l;
|
|
1668
1678
|
(l = (u = p.current).onQuartile25) == null || l.call(u);
|
|
@@ -1676,38 +1686,32 @@ const $t = ({
|
|
|
1676
1686
|
var u, l;
|
|
1677
1687
|
(l = (u = p.current).onPause) == null || l.call(u);
|
|
1678
1688
|
}), h("error", (u) => {
|
|
1679
|
-
var
|
|
1689
|
+
var x, E;
|
|
1680
1690
|
const l = typeof u == "string" ? u : (u == null ? void 0 : u.message) || "Unknown error";
|
|
1681
|
-
(
|
|
1682
|
-
}), W ? (h("
|
|
1683
|
-
var
|
|
1691
|
+
(E = (x = p.current).onError) == null || E.call(x, l);
|
|
1692
|
+
}), W ? (h("vp-first-frame", () => {
|
|
1693
|
+
var x, E;
|
|
1684
1694
|
const l = R.videoObject;
|
|
1685
|
-
(
|
|
1686
|
-
}), h("vp-first-frame", () => {
|
|
1687
|
-
var y, k;
|
|
1688
|
-
const l = R.videoObject;
|
|
1689
|
-
(k = (y = p.current).onReady) == null || k.call(y, l);
|
|
1695
|
+
(E = (x = p.current).onReady) == null || E.call(x, l);
|
|
1690
1696
|
}), h("vp-video-started", (u) => {
|
|
1691
|
-
var l,
|
|
1692
|
-
(
|
|
1697
|
+
var l, x;
|
|
1698
|
+
(x = (l = p.current).onVideoStarted) == null || x.call(l, u);
|
|
1693
1699
|
}), h("vp-twenty-view", () => {
|
|
1694
|
-
var l,
|
|
1700
|
+
var l, x, E;
|
|
1695
1701
|
const u = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 20;
|
|
1696
|
-
(
|
|
1702
|
+
(E = (x = p.current).onProgress20s) == null || E.call(x, Math.floor(u));
|
|
1697
1703
|
}), h("vp-video-state", () => {
|
|
1698
|
-
var l,
|
|
1704
|
+
var l, x, E;
|
|
1699
1705
|
const u = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 0;
|
|
1700
|
-
(
|
|
1706
|
+
(E = (x = p.current).onProgress10s) == null || E.call(x, Math.floor(u));
|
|
1701
1707
|
}), h("vp-time", (u) => {
|
|
1702
|
-
var
|
|
1708
|
+
var x, E, J;
|
|
1703
1709
|
let l = 0;
|
|
1704
|
-
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((
|
|
1705
|
-
}), h("vp-video-switch", () => {
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
l === "next" ? (k = (y = p.current).onNext) == null || k.call(y) : l === "previous" && ((se = (J = p.current).onPrevious) == null || se.call(J));
|
|
1710
|
-
});
|
|
1710
|
+
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((x = R.getPosition) == null ? void 0 : x.call(R)) ?? 0, (J = (E = p.current).onTimeUpdate) == null || J.call(E, l);
|
|
1711
|
+
}), h("vp-video-switch", (u) => {
|
|
1712
|
+
var E, J, se, ce;
|
|
1713
|
+
const l = u, x = l == null ? void 0 : l.direction;
|
|
1714
|
+
x === "next" ? (J = (E = p.current).onNext) == null || J.call(E) : x === "prev" && ((ce = (se = p.current).onPrevious) == null || ce.call(se));
|
|
1711
1715
|
}), h("vp-video-completed", () => {
|
|
1712
1716
|
var u, l;
|
|
1713
1717
|
(l = (u = p.current).onComplete) == null || l.call(u);
|
|
@@ -1721,16 +1725,16 @@ const $t = ({
|
|
|
1721
1725
|
var u, l;
|
|
1722
1726
|
(l = (u = p.current).onComplete) == null || l.call(u), ae.current = !1;
|
|
1723
1727
|
}), h("video-started", (u) => {
|
|
1724
|
-
var l,
|
|
1725
|
-
(
|
|
1728
|
+
var l, x;
|
|
1729
|
+
(x = (l = p.current).onVideoStarted) == null || x.call(l, u);
|
|
1726
1730
|
}), h("video-state", () => {
|
|
1727
|
-
var l,
|
|
1731
|
+
var l, x, E;
|
|
1728
1732
|
const u = ((l = R.getPosition) == null ? void 0 : l.call(R)) ?? 0;
|
|
1729
|
-
(
|
|
1733
|
+
(E = (x = p.current).onProgress10s) == null || E.call(x, Math.floor(u));
|
|
1730
1734
|
}), h("time", (u) => {
|
|
1731
|
-
var
|
|
1735
|
+
var x, E, J, se, ce;
|
|
1732
1736
|
let l = 0;
|
|
1733
|
-
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((
|
|
1737
|
+
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((x = R.getPosition) == null ? void 0 : x.call(R)) ?? 0, (J = (E = p.current).onTimeUpdate) == null || J.call(E, l), !ae.current && l >= 20 && (ae.current = !0, (ce = (se = p.current).onProgress20s) == null || ce.call(se, Math.floor(l)));
|
|
1734
1738
|
}), h("playlistItem", () => {
|
|
1735
1739
|
var u, l;
|
|
1736
1740
|
(l = (u = p.current).onNext) == null || l.call(u), ae.current = !1;
|
|
@@ -1740,7 +1744,7 @@ const $t = ({
|
|
|
1740
1744
|
} catch (c) {
|
|
1741
1745
|
if (o) {
|
|
1742
1746
|
const N = c instanceof Error ? c.message : String(c);
|
|
1743
|
-
|
|
1747
|
+
U(N), console.error("VP Player initialization error:", c);
|
|
1744
1748
|
}
|
|
1745
1749
|
}
|
|
1746
1750
|
})(), () => {
|
|
@@ -1755,7 +1759,7 @@ const $t = ({
|
|
|
1755
1759
|
};
|
|
1756
1760
|
}, [
|
|
1757
1761
|
ee,
|
|
1758
|
-
|
|
1762
|
+
D,
|
|
1759
1763
|
oe,
|
|
1760
1764
|
Q,
|
|
1761
1765
|
W,
|
|
@@ -1765,14 +1769,14 @@ const $t = ({
|
|
|
1765
1769
|
r,
|
|
1766
1770
|
n
|
|
1767
1771
|
]), {
|
|
1768
|
-
playerRef:
|
|
1772
|
+
playerRef: S,
|
|
1769
1773
|
playerInstanceRef: H,
|
|
1770
1774
|
isScriptLoaded: ee,
|
|
1771
1775
|
isLoading: !ee && !Z,
|
|
1772
1776
|
error: Z,
|
|
1773
|
-
generatedPlayerId:
|
|
1777
|
+
generatedPlayerId: D
|
|
1774
1778
|
};
|
|
1775
|
-
},
|
|
1779
|
+
}, Lt = sr(
|
|
1776
1780
|
({
|
|
1777
1781
|
scriptId: e,
|
|
1778
1782
|
videoId: r,
|
|
@@ -1783,33 +1787,33 @@ const $t = ({
|
|
|
1783
1787
|
isVertical: f = !1,
|
|
1784
1788
|
isReels: d = !1,
|
|
1785
1789
|
thumbnailUrl: P,
|
|
1786
|
-
onClose:
|
|
1790
|
+
onClose: y,
|
|
1787
1791
|
className: m,
|
|
1788
|
-
hiddenClasses:
|
|
1792
|
+
hiddenClasses: v = [],
|
|
1789
1793
|
onReady: $,
|
|
1790
1794
|
onPlay: C,
|
|
1791
1795
|
onPause: O,
|
|
1792
|
-
onResume:
|
|
1796
|
+
onResume: b,
|
|
1793
1797
|
onComplete: w,
|
|
1794
|
-
onError:
|
|
1798
|
+
onError: k,
|
|
1795
1799
|
onVideoStarted: A,
|
|
1796
1800
|
onTimeUpdate: M,
|
|
1797
1801
|
onQuartile25: V,
|
|
1798
1802
|
onQuartile50: I,
|
|
1799
1803
|
onQuartile75: j,
|
|
1800
|
-
onNext:
|
|
1804
|
+
onNext: S,
|
|
1801
1805
|
onPrevious: H,
|
|
1802
1806
|
onProgress10s: Z,
|
|
1803
|
-
onProgress20s:
|
|
1807
|
+
onProgress20s: U
|
|
1804
1808
|
}, X) => {
|
|
1805
1809
|
const {
|
|
1806
|
-
playerRef:
|
|
1810
|
+
playerRef: D,
|
|
1807
1811
|
playerInstanceRef: p,
|
|
1808
1812
|
isScriptLoaded: ae,
|
|
1809
|
-
isLoading:
|
|
1813
|
+
isLoading: G,
|
|
1810
1814
|
error: K,
|
|
1811
1815
|
generatedPlayerId: W
|
|
1812
|
-
} =
|
|
1816
|
+
} = Nt({
|
|
1813
1817
|
scriptId: e,
|
|
1814
1818
|
videoId: r,
|
|
1815
1819
|
scriptUrl: t,
|
|
@@ -1821,20 +1825,20 @@ const $t = ({
|
|
|
1821
1825
|
onReady: $,
|
|
1822
1826
|
onPlay: C,
|
|
1823
1827
|
onPause: O,
|
|
1824
|
-
onResume:
|
|
1828
|
+
onResume: b,
|
|
1825
1829
|
onComplete: w,
|
|
1826
|
-
onError:
|
|
1830
|
+
onError: k,
|
|
1827
1831
|
onVideoStarted: A,
|
|
1828
1832
|
onTimeUpdate: M,
|
|
1829
1833
|
onQuartile25: V,
|
|
1830
1834
|
onQuartile50: I,
|
|
1831
1835
|
onQuartile75: j,
|
|
1832
|
-
onNext:
|
|
1836
|
+
onNext: S,
|
|
1833
1837
|
onPrevious: H,
|
|
1834
1838
|
onProgress10s: Z,
|
|
1835
|
-
onProgress20s:
|
|
1839
|
+
onProgress20s: U
|
|
1836
1840
|
});
|
|
1837
|
-
|
|
1841
|
+
kr(
|
|
1838
1842
|
X,
|
|
1839
1843
|
() => ({
|
|
1840
1844
|
play: () => {
|
|
@@ -1923,10 +1927,10 @@ const $t = ({
|
|
|
1923
1927
|
);
|
|
1924
1928
|
const [Q, ee] = Ae(!0), oe = () => d && ee(!0), o = () => {
|
|
1925
1929
|
var i, c;
|
|
1926
|
-
!d || !Q || (ee(!1), (c = (i = p.current) == null ? void 0 : i.pause) == null || c.call(i),
|
|
1930
|
+
!d || !Q || (ee(!1), (c = (i = p.current) == null ? void 0 : i.pause) == null || c.call(i), y == null || y());
|
|
1927
1931
|
};
|
|
1928
1932
|
if (K)
|
|
1929
|
-
return /* @__PURE__ */ L.jsxs(
|
|
1933
|
+
return /* @__PURE__ */ L.jsxs(ir, { type: "error", children: [
|
|
1930
1934
|
"An error occurred: ",
|
|
1931
1935
|
K
|
|
1932
1936
|
] });
|
|
@@ -1945,7 +1949,7 @@ const $t = ({
|
|
|
1945
1949
|
background: "rgba(0,0,0,0.8)",
|
|
1946
1950
|
zIndex: 10
|
|
1947
1951
|
},
|
|
1948
|
-
children: /* @__PURE__ */ L.jsx(
|
|
1952
|
+
children: /* @__PURE__ */ L.jsx(ir, { type: "loading", children: "Loading..." })
|
|
1949
1953
|
}
|
|
1950
1954
|
);
|
|
1951
1955
|
return d ? /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
@@ -1963,8 +1967,8 @@ const $t = ({
|
|
|
1963
1967
|
}
|
|
1964
1968
|
}
|
|
1965
1969
|
),
|
|
1966
|
-
Q && /* @__PURE__ */ L.jsx(
|
|
1967
|
-
|
|
1970
|
+
Q && /* @__PURE__ */ L.jsx(St, { onClick: o, className: m, children: /* @__PURE__ */ L.jsx(
|
|
1971
|
+
Et,
|
|
1968
1972
|
{
|
|
1969
1973
|
className: m,
|
|
1970
1974
|
onClick: (i) => i.stopPropagation(),
|
|
@@ -1978,17 +1982,17 @@ const $t = ({
|
|
|
1978
1982
|
},
|
|
1979
1983
|
children: [
|
|
1980
1984
|
/* @__PURE__ */ L.jsx(
|
|
1981
|
-
|
|
1985
|
+
or,
|
|
1982
1986
|
{
|
|
1983
1987
|
id: W,
|
|
1984
|
-
ref:
|
|
1988
|
+
ref: D,
|
|
1985
1989
|
width: "100%",
|
|
1986
1990
|
height: "100%",
|
|
1987
|
-
$hiddenClasses:
|
|
1991
|
+
$hiddenClasses: v,
|
|
1988
1992
|
className: m
|
|
1989
1993
|
}
|
|
1990
1994
|
),
|
|
1991
|
-
(
|
|
1995
|
+
(G || !ae) && /* @__PURE__ */ L.jsx(g, {})
|
|
1992
1996
|
]
|
|
1993
1997
|
}
|
|
1994
1998
|
)
|
|
@@ -1996,33 +2000,33 @@ const $t = ({
|
|
|
1996
2000
|
) })
|
|
1997
2001
|
] }) : /* @__PURE__ */ L.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
1998
2002
|
/* @__PURE__ */ L.jsx(
|
|
1999
|
-
|
|
2003
|
+
or,
|
|
2000
2004
|
{
|
|
2001
2005
|
id: W,
|
|
2002
|
-
ref:
|
|
2006
|
+
ref: D,
|
|
2003
2007
|
width: "100%",
|
|
2004
2008
|
height: "100%",
|
|
2005
|
-
$hiddenClasses:
|
|
2009
|
+
$hiddenClasses: v,
|
|
2006
2010
|
className: m
|
|
2007
2011
|
}
|
|
2008
2012
|
),
|
|
2009
|
-
(
|
|
2013
|
+
(G || !ae) && /* @__PURE__ */ L.jsx(g, {})
|
|
2010
2014
|
] });
|
|
2011
2015
|
}
|
|
2012
2016
|
);
|
|
2013
|
-
|
|
2017
|
+
Lt.displayName = "VPPlayer";
|
|
2014
2018
|
export {
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2019
|
+
St as Overlay,
|
|
2020
|
+
or as PlayerContainer,
|
|
2021
|
+
Et as PlayerWrapper,
|
|
2022
|
+
Lt as VPPlayer,
|
|
2023
|
+
le as VP_PLAYER_BASE_URL,
|
|
2024
|
+
jt as appendDivIdToUrl,
|
|
2025
|
+
$t as generatePlayerId,
|
|
2026
|
+
_t as getFullyManagedPlayerScriptUrl,
|
|
2027
|
+
It as getManagedPlayerScriptUrl,
|
|
2028
|
+
Rt as getPlayerScriptUrl,
|
|
2029
|
+
Tt as getVerticalPlayerScriptUrl,
|
|
2030
|
+
Nt as useVPPlayerLogic,
|
|
2031
|
+
Mt as useVPPlayerScript
|
|
2028
2032
|
};
|