@devix-technologies/react-gjirafa-vp-player 1.0.6 → 1.0.8
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.
|
@@ -51,33 +51,33 @@ function bt() {
|
|
|
51
51
|
return o.$$typeof === T ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case d:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case y:
|
|
57
57
|
return "Profiler";
|
|
58
58
|
case h:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case _:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case R:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case B:
|
|
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 v:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case S:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
|
-
case
|
|
75
|
+
case b:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
77
|
+
case w:
|
|
78
78
|
var x = o.render;
|
|
79
79
|
return o = o.displayName, o || (o = x.displayName || x.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
-
case
|
|
80
|
+
case p:
|
|
81
81
|
return x = o.displayName || null, x !== null ? x : e(o.type) || "Memo";
|
|
82
82
|
case C:
|
|
83
83
|
x = o._payload, o = o._init;
|
|
@@ -100,16 +100,16 @@ function bt() {
|
|
|
100
100
|
}
|
|
101
101
|
if (x) {
|
|
102
102
|
x = console;
|
|
103
|
-
var A = x.error,
|
|
103
|
+
var A = x.error, N = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return A.call(
|
|
105
105
|
x,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
N
|
|
108
108
|
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
|
-
if (o ===
|
|
112
|
+
if (o === d) return "<>";
|
|
113
113
|
if (typeof o == "object" && o !== null && o.$$typeof === C)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
@@ -120,14 +120,14 @@ function bt() {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = I.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function i() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function s(o) {
|
|
130
|
-
if (
|
|
130
|
+
if (G.call(o, "key")) {
|
|
131
131
|
var x = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
132
|
if (x && x.isReactWarning) return !1;
|
|
133
133
|
}
|
|
@@ -151,13 +151,13 @@ function bt() {
|
|
|
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 m(o, x, A, N, K, U, _e, Se) {
|
|
155
155
|
return A = U.ref, o = {
|
|
156
|
-
$$typeof:
|
|
156
|
+
$$typeof: k,
|
|
157
157
|
type: o,
|
|
158
158
|
key: x,
|
|
159
159
|
props: U,
|
|
160
|
-
_owner:
|
|
160
|
+
_owner: K
|
|
161
161
|
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
163
|
get: u
|
|
@@ -183,94 +183,94 @@ function bt() {
|
|
|
183
183
|
value: Se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o, x, A,
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (z(
|
|
191
|
-
for (
|
|
192
|
-
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function l(o, x, A, N, K, U, _e, Se) {
|
|
187
|
+
var L = x.children;
|
|
188
|
+
if (L !== void 0)
|
|
189
|
+
if (N)
|
|
190
|
+
if (z(L)) {
|
|
191
|
+
for (N = 0; N < L.length; N++)
|
|
192
|
+
f(L[N]);
|
|
193
|
+
Object.freeze && Object.freeze(L);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else
|
|
199
|
-
if (
|
|
200
|
-
|
|
198
|
+
else f(L);
|
|
199
|
+
if (G.call(x, "key")) {
|
|
200
|
+
L = e(o);
|
|
201
201
|
var ee = Object.keys(x).filter(function(ht) {
|
|
202
202
|
return ht !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
N = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[L + N] || (ee = 0 < ee.length ? "{" + ee.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
208
208
|
React keys must be passed directly to JSX without using spread:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
-
$,
|
|
212
211
|
N,
|
|
212
|
+
L,
|
|
213
213
|
ee,
|
|
214
|
-
|
|
215
|
-
), oe[
|
|
214
|
+
L
|
|
215
|
+
), oe[L + N] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
217
|
+
if (L = null, A !== void 0 && (r(A), L = "" + A), s(x) && (r(x.key), L = "" + x.key), "key" in x) {
|
|
218
218
|
A = {};
|
|
219
219
|
for (var Re in x)
|
|
220
220
|
Re !== "key" && (A[Re] = x[Re]);
|
|
221
221
|
} else A = x;
|
|
222
|
-
return
|
|
222
|
+
return L && c(
|
|
223
223
|
A,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
-
),
|
|
225
|
+
), m(
|
|
226
226
|
o,
|
|
227
|
-
|
|
227
|
+
L,
|
|
228
228
|
U,
|
|
229
|
-
|
|
229
|
+
K,
|
|
230
230
|
a(),
|
|
231
231
|
A,
|
|
232
232
|
_e,
|
|
233
233
|
Se
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
typeof o == "object" && o !== null && o.$$typeof ===
|
|
236
|
+
function f(o) {
|
|
237
|
+
typeof o == "object" && o !== null && o.$$typeof === k && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var g = mt, k = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), S = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), I = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
g = {
|
|
243
243
|
"react-stack-bottom-frame": function(o) {
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var Z, Q = {},
|
|
248
|
-
|
|
247
|
+
var Z, Q = {}, J = g["react-stack-bottom-frame"].bind(
|
|
248
|
+
g,
|
|
249
249
|
i
|
|
250
|
-
)(), ie =
|
|
251
|
-
ce.Fragment =
|
|
252
|
-
var U = 1e4 >
|
|
250
|
+
)(), ie = X(n(i)), oe = {};
|
|
251
|
+
ce.Fragment = d, ce.jsx = function(o, x, A, N, K) {
|
|
252
|
+
var U = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
255
|
x,
|
|
256
256
|
A,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
U ? Error("react-stack-top-frame") :
|
|
261
|
-
U ?
|
|
258
|
+
N,
|
|
259
|
+
K,
|
|
260
|
+
U ? Error("react-stack-top-frame") : J,
|
|
261
|
+
U ? X(n(o)) : ie
|
|
262
262
|
);
|
|
263
|
-
}, ce.jsxs = function(o, x, A,
|
|
264
|
-
var U = 1e4 >
|
|
263
|
+
}, ce.jsxs = function(o, x, A, N, K) {
|
|
264
|
+
var U = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
267
|
x,
|
|
268
268
|
A,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
U ? Error("react-stack-top-frame") :
|
|
273
|
-
U ?
|
|
270
|
+
N,
|
|
271
|
+
K,
|
|
272
|
+
U ? Error("react-stack-top-frame") : J,
|
|
273
|
+
U ? X(n(o)) : ie
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
276
|
}()), ce;
|
|
@@ -279,7 +279,7 @@ var We;
|
|
|
279
279
|
function xt() {
|
|
280
280
|
return We || (We = 1, process.env.NODE_ENV === "production" ? he.exports = vt() : he.exports = bt()), he.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
282
|
+
var j = xt();
|
|
283
283
|
function Oe() {
|
|
284
284
|
return Oe = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
285
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -329,23 +329,23 @@ var Pt = /* @__PURE__ */ function() {
|
|
|
329
329
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
330
330
|
}), this.tags = [], this.ctr = 0;
|
|
331
331
|
}, e;
|
|
332
|
-
}(),
|
|
333
|
-
function
|
|
334
|
-
return
|
|
332
|
+
}(), F = "-ms-", we = "-moz-", P = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
|
|
333
|
+
function Tt(e, t) {
|
|
334
|
+
return $(e, 0) ^ 45 ? (((t << 2 ^ $(e, 0)) << 2 ^ $(e, 1)) << 2 ^ $(e, 2)) << 2 ^ $(e, 3) : 0;
|
|
335
335
|
}
|
|
336
336
|
function at(e) {
|
|
337
337
|
return e.trim();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function At(e, t) {
|
|
340
340
|
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function E(e, t, r) {
|
|
343
343
|
return e.replace(t, r);
|
|
344
344
|
}
|
|
345
345
|
function je(e, t) {
|
|
346
346
|
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function $(e, t) {
|
|
349
349
|
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
351
|
function ue(e, t, r) {
|
|
@@ -363,7 +363,7 @@ function me(e, t) {
|
|
|
363
363
|
function Ct(e, t) {
|
|
364
364
|
return e.map(t).join("");
|
|
365
365
|
}
|
|
366
|
-
var Pe = 1, re = 1, it = 0,
|
|
366
|
+
var Pe = 1, re = 1, it = 0, V = 0, O = 0, ae = "";
|
|
367
367
|
function Ee(e, t, r, n, a, i, s) {
|
|
368
368
|
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
|
|
369
369
|
}
|
|
@@ -371,19 +371,19 @@ function le(e, t) {
|
|
|
371
371
|
return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
372
372
|
}
|
|
373
373
|
function It() {
|
|
374
|
-
return
|
|
374
|
+
return O;
|
|
375
375
|
}
|
|
376
376
|
function Ot() {
|
|
377
|
-
return
|
|
377
|
+
return O = V > 0 ? $(ae, --V) : 0, re--, O === 10 && (re = 1, Pe--), O;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
379
|
+
function M() {
|
|
380
|
+
return O = V < it ? $(ae, V++) : 0, re++, O === 10 && (re = 1, Pe++), O;
|
|
381
381
|
}
|
|
382
382
|
function q() {
|
|
383
|
-
return
|
|
383
|
+
return $(ae, V);
|
|
384
384
|
}
|
|
385
385
|
function ge() {
|
|
386
|
-
return
|
|
386
|
+
return V;
|
|
387
387
|
}
|
|
388
388
|
function pe(e, t) {
|
|
389
389
|
return ue(ae, e, t);
|
|
@@ -427,34 +427,34 @@ function de(e) {
|
|
|
427
427
|
return 0;
|
|
428
428
|
}
|
|
429
429
|
function ot(e) {
|
|
430
|
-
return Pe = re = 1, it = W(ae = e),
|
|
430
|
+
return Pe = re = 1, it = W(ae = e), V = 0, [];
|
|
431
431
|
}
|
|
432
432
|
function st(e) {
|
|
433
433
|
return ae = "", e;
|
|
434
434
|
}
|
|
435
435
|
function ve(e) {
|
|
436
|
-
return at(pe(
|
|
436
|
+
return at(pe(V - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
437
437
|
}
|
|
438
438
|
function jt(e) {
|
|
439
|
-
for (; (
|
|
440
|
-
|
|
441
|
-
return de(e) > 2 || de(
|
|
439
|
+
for (; (O = q()) && O < 33; )
|
|
440
|
+
M();
|
|
441
|
+
return de(e) > 2 || de(O) > 3 ? "" : " ";
|
|
442
442
|
}
|
|
443
443
|
function $t(e, t) {
|
|
444
|
-
for (; --t &&
|
|
444
|
+
for (; --t && M() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
|
|
445
445
|
;
|
|
446
|
-
return pe(e, ge() + (t < 6 && q() == 32 &&
|
|
446
|
+
return pe(e, ge() + (t < 6 && q() == 32 && M() == 32));
|
|
447
447
|
}
|
|
448
448
|
function $e(e) {
|
|
449
|
-
for (;
|
|
450
|
-
switch (
|
|
449
|
+
for (; M(); )
|
|
450
|
+
switch (O) {
|
|
451
451
|
// ] ) " '
|
|
452
452
|
case e:
|
|
453
|
-
return
|
|
453
|
+
return V;
|
|
454
454
|
// " '
|
|
455
455
|
case 34:
|
|
456
456
|
case 39:
|
|
457
|
-
e !== 34 && e !== 39 && $e(
|
|
457
|
+
e !== 34 && e !== 39 && $e(O);
|
|
458
458
|
break;
|
|
459
459
|
// (
|
|
460
460
|
case 40:
|
|
@@ -462,136 +462,136 @@ function $e(e) {
|
|
|
462
462
|
break;
|
|
463
463
|
// \
|
|
464
464
|
case 92:
|
|
465
|
-
|
|
465
|
+
M();
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return V;
|
|
469
469
|
}
|
|
470
470
|
function Nt(e, t) {
|
|
471
|
-
for (;
|
|
472
|
-
if (e +
|
|
471
|
+
for (; M() && e + O !== 57; )
|
|
472
|
+
if (e + O === 84 && q() === 47)
|
|
473
473
|
break;
|
|
474
|
-
return "/*" + pe(t,
|
|
474
|
+
return "/*" + pe(t, V - 1) + "*" + ke(e === 47 ? e : M());
|
|
475
475
|
}
|
|
476
476
|
function Lt(e) {
|
|
477
477
|
for (; !de(q()); )
|
|
478
|
-
|
|
479
|
-
return pe(e,
|
|
478
|
+
M();
|
|
479
|
+
return pe(e, V);
|
|
480
480
|
}
|
|
481
481
|
function Ft(e) {
|
|
482
482
|
return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
484
|
function be(e, t, r, n, a, i, s, c, u) {
|
|
485
|
-
for (var
|
|
486
|
-
switch (
|
|
485
|
+
for (var m = 0, l = 0, f = s, g = 0, k = 0, v = 0, d = 1, h = 1, y = 1, b = 0, S = "", w = a, _ = i, R = n, p = S; h; )
|
|
486
|
+
switch (v = b, b = M()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (
|
|
490
|
-
je(
|
|
489
|
+
if (v != 108 && $(p, f - 1) == 58) {
|
|
490
|
+
je(p += E(ve(b), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
493
493
|
// " ' [
|
|
494
494
|
case 34:
|
|
495
495
|
case 39:
|
|
496
496
|
case 91:
|
|
497
|
-
|
|
497
|
+
p += ve(b);
|
|
498
498
|
break;
|
|
499
499
|
// \t \n \r \s
|
|
500
500
|
case 9:
|
|
501
501
|
case 10:
|
|
502
502
|
case 13:
|
|
503
503
|
case 32:
|
|
504
|
-
|
|
504
|
+
p += jt(v);
|
|
505
505
|
break;
|
|
506
506
|
// \
|
|
507
507
|
case 92:
|
|
508
|
-
|
|
508
|
+
p += $t(ge() - 1, 7);
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
512
|
switch (q()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
me(Vt(Nt(
|
|
515
|
+
me(Vt(Nt(M(), ge()), t, r), u);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
|
-
|
|
518
|
+
p += "/";
|
|
519
519
|
}
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
|
-
case 123 *
|
|
523
|
-
c[
|
|
522
|
+
case 123 * d:
|
|
523
|
+
c[m++] = W(p) * y;
|
|
524
524
|
// } ; \0
|
|
525
|
-
case 125 *
|
|
525
|
+
case 125 * d:
|
|
526
526
|
case 59:
|
|
527
527
|
case 0:
|
|
528
|
-
switch (
|
|
528
|
+
switch (b) {
|
|
529
529
|
// \0 }
|
|
530
530
|
case 0:
|
|
531
531
|
case 125:
|
|
532
532
|
h = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
|
|
535
|
+
y == -1 && (p = E(p, /\f/g, "")), k > 0 && W(p) - f && me(k > 32 ? qe(p + ";", n, r, f - 1) : qe(E(p, " ", "") + ";", n, r, f - 2), u);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
539
|
-
|
|
539
|
+
p += ";";
|
|
540
540
|
// { rule/at-rule
|
|
541
541
|
default:
|
|
542
|
-
if (me(
|
|
542
|
+
if (me(R = Ye(p, t, r, m, l, a, c, S, w = [], _ = [], f), i), b === 123)
|
|
543
543
|
if (l === 0)
|
|
544
|
-
be(
|
|
544
|
+
be(p, t, R, R, w, i, f, c, _);
|
|
545
545
|
else
|
|
546
|
-
switch (
|
|
546
|
+
switch (g === 99 && $(p, 3) === 110 ? 100 : g) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
550
550
|
case 109:
|
|
551
551
|
case 115:
|
|
552
|
-
be(e,
|
|
552
|
+
be(e, R, R, n && me(Ye(e, R, R, 0, 0, a, c, S, a, w = [], f), _), a, _, f, c, n ? w : _);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
|
-
be(
|
|
555
|
+
be(p, R, R, R, [""], _, 0, c, _);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
|
|
558
|
+
m = l = k = 0, d = y = 1, S = p = "", f = s;
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
|
|
562
|
+
f = 1 + W(p), k = v;
|
|
563
563
|
default:
|
|
564
|
-
if (
|
|
565
|
-
if (
|
|
566
|
-
--
|
|
567
|
-
else if (
|
|
564
|
+
if (d < 1) {
|
|
565
|
+
if (b == 123)
|
|
566
|
+
--d;
|
|
567
|
+
else if (b == 125 && d++ == 0 && Ot() == 125)
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
570
|
-
switch (
|
|
570
|
+
switch (p += ke(b), b * d) {
|
|
571
571
|
// &
|
|
572
572
|
case 38:
|
|
573
|
-
|
|
573
|
+
y = l > 0 ? 1 : (p += "\f", -1);
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
c[
|
|
577
|
+
c[m++] = (W(p) - 1) * y, y = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
q() === 45 && (
|
|
581
|
+
q() === 45 && (p += ve(M())), g = q(), l = f = W(S = p += Lt(ge())), b++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
|
|
585
|
+
v === 45 && W(p) == 2 && (d = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
|
-
function Ye(e, t, r, n, a, i, s, c, u,
|
|
591
|
-
for (var
|
|
592
|
-
for (var
|
|
593
|
-
(S = at(
|
|
594
|
-
return Ee(e, t, r, a === 0 ? Le : c, u,
|
|
590
|
+
function Ye(e, t, r, n, a, i, s, c, u, m, l) {
|
|
591
|
+
for (var f = a - 1, g = a === 0 ? i : [""], k = Ve(g), v = 0, d = 0, h = 0; v < n; ++v)
|
|
592
|
+
for (var y = 0, b = ue(e, f + 1, f = St(d = s[v])), S = e; y < k; ++y)
|
|
593
|
+
(S = at(d > 0 ? g[y] + " " + b : E(b, /&\f/g, g[y]))) && (u[h++] = S);
|
|
594
|
+
return Ee(e, t, r, a === 0 ? Le : c, u, m, l);
|
|
595
595
|
}
|
|
596
596
|
function Vt(e, t, r) {
|
|
597
597
|
return Ee(e, t, r, rt, ke(It()), ue(e, 2, -2), 0);
|
|
@@ -641,14 +641,14 @@ function ct(e) {
|
|
|
641
641
|
}
|
|
642
642
|
var Dt = function(t, r, n) {
|
|
643
643
|
for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !de(i); )
|
|
644
|
-
|
|
645
|
-
return pe(t,
|
|
644
|
+
M();
|
|
645
|
+
return pe(t, V);
|
|
646
646
|
}, Ut = function(t, r) {
|
|
647
647
|
var n = -1, a = 44;
|
|
648
648
|
do
|
|
649
649
|
switch (de(a)) {
|
|
650
650
|
case 0:
|
|
651
|
-
a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(
|
|
651
|
+
a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(V - 1, r, n);
|
|
652
652
|
break;
|
|
653
653
|
case 2:
|
|
654
654
|
t[n] += ve(a);
|
|
@@ -662,7 +662,7 @@ var Dt = function(t, r, n) {
|
|
|
662
662
|
default:
|
|
663
663
|
t[n] += ke(a);
|
|
664
664
|
}
|
|
665
|
-
while (a =
|
|
665
|
+
while (a = M());
|
|
666
666
|
return t;
|
|
667
667
|
}, Wt = function(t, r) {
|
|
668
668
|
return st(Ut(ot(t), r));
|
|
@@ -674,9 +674,9 @@ var Dt = function(t, r, n) {
|
|
|
674
674
|
if (n = n.parent, !n) return;
|
|
675
675
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
|
|
676
676
|
He.set(t, !0);
|
|
677
|
-
for (var i = [], s = Wt(r, i), c = n.props, u = 0,
|
|
678
|
-
for (var l = 0; l < c.length; l++,
|
|
679
|
-
t.props[
|
|
677
|
+
for (var i = [], s = Wt(r, i), c = n.props, u = 0, m = 0; u < s.length; u++)
|
|
678
|
+
for (var l = 0; l < c.length; l++, m++)
|
|
679
|
+
t.props[m] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
}, qt = function(t) {
|
|
@@ -688,10 +688,10 @@ var Dt = function(t, r, n) {
|
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
690
|
function lt(e, t) {
|
|
691
|
-
switch (
|
|
691
|
+
switch (Tt(e, t)) {
|
|
692
692
|
// color-adjust
|
|
693
693
|
case 5103:
|
|
694
|
-
return
|
|
694
|
+
return P + "print-" + e + e;
|
|
695
695
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
696
696
|
case 5737:
|
|
697
697
|
case 4201:
|
|
@@ -721,58 +721,58 @@ function lt(e, t) {
|
|
|
721
721
|
case 5365:
|
|
722
722
|
case 5621:
|
|
723
723
|
case 3829:
|
|
724
|
-
return
|
|
724
|
+
return P + e + e;
|
|
725
725
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
726
726
|
case 5349:
|
|
727
727
|
case 4246:
|
|
728
728
|
case 4810:
|
|
729
729
|
case 6968:
|
|
730
730
|
case 2756:
|
|
731
|
-
return
|
|
731
|
+
return P + e + we + e + F + e + e;
|
|
732
732
|
// flex, flex-direction
|
|
733
733
|
case 6828:
|
|
734
734
|
case 4268:
|
|
735
|
-
return
|
|
735
|
+
return P + e + F + e + e;
|
|
736
736
|
// order
|
|
737
737
|
case 6165:
|
|
738
|
-
return
|
|
738
|
+
return P + e + F + "flex-" + e + e;
|
|
739
739
|
// align-items
|
|
740
740
|
case 5187:
|
|
741
|
-
return
|
|
741
|
+
return P + e + E(e, /(\w+).+(:[^]+)/, P + "box-$1$2" + F + "flex-$1$2") + e;
|
|
742
742
|
// align-self
|
|
743
743
|
case 5443:
|
|
744
|
-
return
|
|
744
|
+
return P + e + F + "flex-item-" + E(e, /flex-|-self/, "") + e;
|
|
745
745
|
// align-content
|
|
746
746
|
case 4675:
|
|
747
|
-
return
|
|
747
|
+
return P + e + F + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
|
|
748
748
|
// flex-shrink
|
|
749
749
|
case 5548:
|
|
750
|
-
return
|
|
750
|
+
return P + e + F + E(e, "shrink", "negative") + e;
|
|
751
751
|
// flex-basis
|
|
752
752
|
case 5292:
|
|
753
|
-
return
|
|
753
|
+
return P + e + F + E(e, "basis", "preferred-size") + e;
|
|
754
754
|
// flex-grow
|
|
755
755
|
case 6060:
|
|
756
|
-
return
|
|
756
|
+
return P + "box-" + E(e, "-grow", "") + P + e + F + E(e, "grow", "positive") + e;
|
|
757
757
|
// transition
|
|
758
758
|
case 4554:
|
|
759
|
-
return
|
|
759
|
+
return P + E(e, /([^-])(transform)/g, "$1" + P + "$2") + e;
|
|
760
760
|
// cursor
|
|
761
761
|
case 6187:
|
|
762
|
-
return
|
|
762
|
+
return E(E(E(e, /(zoom-|grab)/, P + "$1"), /(image-set)/, P + "$1"), e, "") + e;
|
|
763
763
|
// background, background-image
|
|
764
764
|
case 5495:
|
|
765
765
|
case 3959:
|
|
766
|
-
return
|
|
766
|
+
return E(e, /(image-set\([^]*)/, P + "$1$`$1");
|
|
767
767
|
// justify-content
|
|
768
768
|
case 4968:
|
|
769
|
-
return
|
|
769
|
+
return E(E(e, /(.+:)(flex-)?(.*)/, P + "box-pack:$3" + F + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + P + e + e;
|
|
770
770
|
// (margin|padding)-inline-(start|end)
|
|
771
771
|
case 4095:
|
|
772
772
|
case 3583:
|
|
773
773
|
case 4068:
|
|
774
774
|
case 2532:
|
|
775
|
-
return
|
|
775
|
+
return E(e, /(.+)-inline(.+)/, P + "$1$2") + e;
|
|
776
776
|
// (min|max)?(width|height|inline-size|block-size)
|
|
777
777
|
case 8116:
|
|
778
778
|
case 7059:
|
|
@@ -786,46 +786,46 @@ function lt(e, t) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (W(e) - 1 - t > 6) switch (
|
|
789
|
+
if (W(e) - 1 - t > 6) switch ($(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if ($(e, t + 4) !== 45) break;
|
|
793
793
|
// (f)ill-available, (f)it-content
|
|
794
794
|
case 102:
|
|
795
|
-
return
|
|
795
|
+
return E(e, /(.+:)(.+)-([^]+)/, "$1" + P + "$2-$3$1" + we + ($(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
|
-
return ~je(e, "stretch") ? lt(
|
|
798
|
+
return ~je(e, "stretch") ? lt(E(e, "stretch", "fill-available"), t) + e : e;
|
|
799
799
|
}
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if ($(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch ($(e, W(e) - 3 - (~je(e, "!important") && 10))) {
|
|
807
807
|
// stic(k)y
|
|
808
808
|
case 107:
|
|
809
|
-
return
|
|
809
|
+
return E(e, ":", ":" + P) + e;
|
|
810
810
|
// (inline-)?fl(e)x
|
|
811
811
|
case 101:
|
|
812
|
-
return
|
|
812
|
+
return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + P + ($(e, 14) === 45 ? "inline-" : "") + "box$3$1" + P + "$2$3$1" + F + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch ($(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
|
-
return
|
|
820
|
+
return P + e + F + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
821
821
|
// vertical-r(l)
|
|
822
822
|
case 108:
|
|
823
|
-
return
|
|
823
|
+
return P + e + F + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
824
824
|
// horizontal(-)tb
|
|
825
825
|
case 45:
|
|
826
|
-
return
|
|
826
|
+
return P + e + F + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return P + e + F + e + e;
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
@@ -836,25 +836,25 @@ var Ht = function(t, r, n, a) {
|
|
|
836
836
|
break;
|
|
837
837
|
case nt:
|
|
838
838
|
return te([le(t, {
|
|
839
|
-
value:
|
|
839
|
+
value: E(t.value, "@", "@" + P)
|
|
840
840
|
})], a);
|
|
841
841
|
case Le:
|
|
842
842
|
if (t.length) return Ct(t.props, function(i) {
|
|
843
|
-
switch (
|
|
843
|
+
switch (At(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
847
|
return te([le(t, {
|
|
848
|
-
props: [
|
|
848
|
+
props: [E(i, /:(read-\w+)/, ":" + we + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
852
|
return te([le(t, {
|
|
853
|
-
props: [
|
|
853
|
+
props: [E(i, /:(plac\w+)/, ":" + P + "input-$1")]
|
|
854
854
|
}), le(t, {
|
|
855
|
-
props: [
|
|
855
|
+
props: [E(i, /:(plac\w+)/, ":" + we + "$1")]
|
|
856
856
|
}), le(t, {
|
|
857
|
-
props: [
|
|
857
|
+
props: [E(i, /:(plac\w+)/, F + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
860
860
|
return "";
|
|
@@ -864,9 +864,9 @@ var Ht = function(t, r, n, a) {
|
|
|
864
864
|
var r = t.key;
|
|
865
865
|
if (r === "css") {
|
|
866
866
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
867
|
-
Array.prototype.forEach.call(n, function(
|
|
868
|
-
var h =
|
|
869
|
-
h.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
867
|
+
Array.prototype.forEach.call(n, function(d) {
|
|
868
|
+
var h = d.getAttribute("data-emotion");
|
|
869
|
+
h.indexOf(" ") !== -1 && (document.head.appendChild(d), d.setAttribute("data-s", ""));
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
var a = t.stylisPlugins || Gt, i = {}, s, c = [];
|
|
@@ -874,24 +874,24 @@ var Ht = function(t, r, n, a) {
|
|
|
874
874
|
// this means we will ignore elements which don't have a space in them which
|
|
875
875
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
876
876
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
877
|
-
function(
|
|
878
|
-
for (var h =
|
|
879
|
-
i[h[
|
|
880
|
-
c.push(
|
|
877
|
+
function(d) {
|
|
878
|
+
for (var h = d.getAttribute("data-emotion").split(" "), y = 1; y < h.length; y++)
|
|
879
|
+
i[h[y]] = !0;
|
|
880
|
+
c.push(d);
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
var u,
|
|
883
|
+
var u, m = [Yt, qt];
|
|
884
884
|
{
|
|
885
|
-
var l,
|
|
886
|
-
l.insert(
|
|
887
|
-
})],
|
|
888
|
-
return te(Ft(h),
|
|
885
|
+
var l, f = [Mt, zt(function(d) {
|
|
886
|
+
l.insert(d);
|
|
887
|
+
})], g = Bt(m.concat(a, f)), k = function(h) {
|
|
888
|
+
return te(Ft(h), g);
|
|
889
889
|
};
|
|
890
|
-
u = function(h,
|
|
891
|
-
l =
|
|
890
|
+
u = function(h, y, b, S) {
|
|
891
|
+
l = b, k(h ? h + "{" + y.styles + "}" : y.styles), S && (v.inserted[y.name] = !0);
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
var
|
|
894
|
+
var v = {
|
|
895
895
|
key: r,
|
|
896
896
|
sheet: new Pt({
|
|
897
897
|
key: r,
|
|
@@ -906,7 +906,7 @@ var Ht = function(t, r, n, a) {
|
|
|
906
906
|
registered: {},
|
|
907
907
|
insert: u
|
|
908
908
|
};
|
|
909
|
-
return
|
|
909
|
+
return v.sheet.hydrate(c), v;
|
|
910
910
|
}, Kt = !0;
|
|
911
911
|
function Jt(e, t, r) {
|
|
912
912
|
var n = "";
|
|
@@ -1008,7 +1008,7 @@ var er = {
|
|
|
1008
1008
|
return t.charCodeAt(1) === 45;
|
|
1009
1009
|
}, Ge = function(t) {
|
|
1010
1010
|
return t != null && typeof t != "boolean";
|
|
1011
|
-
},
|
|
1011
|
+
}, Te = /* @__PURE__ */ ct(function(e) {
|
|
1012
1012
|
return dt(e) ? e : e.replace(tr, "-$&").toLowerCase();
|
|
1013
1013
|
}), Xe = function(t, r) {
|
|
1014
1014
|
switch (t) {
|
|
@@ -1059,8 +1059,8 @@ function fe(e, t, r) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var u = Y,
|
|
1063
|
-
return Y = u, fe(e, t,
|
|
1062
|
+
var u = Y, m = r(e);
|
|
1063
|
+
return Y = u, fe(e, t, m);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
@@ -1068,8 +1068,8 @@ function fe(e, t, r) {
|
|
|
1068
1068
|
var l = r;
|
|
1069
1069
|
if (t == null)
|
|
1070
1070
|
return l;
|
|
1071
|
-
var
|
|
1072
|
-
return
|
|
1071
|
+
var f = t[l];
|
|
1072
|
+
return f !== void 0 ? f : l;
|
|
1073
1073
|
}
|
|
1074
1074
|
function nr(e, t, r) {
|
|
1075
1075
|
var n = "";
|
|
@@ -1081,20 +1081,20 @@ function nr(e, t, r) {
|
|
|
1081
1081
|
var s = r[i];
|
|
1082
1082
|
if (typeof s != "object") {
|
|
1083
1083
|
var c = s;
|
|
1084
|
-
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n +=
|
|
1084
|
+
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Te(i) + ":" + Xe(i, c) + ";");
|
|
1085
1085
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
|
|
1086
1086
|
for (var u = 0; u < s.length; u++)
|
|
1087
|
-
Ge(s[u]) && (n +=
|
|
1087
|
+
Ge(s[u]) && (n += Te(i) + ":" + Xe(i, s[u]) + ";");
|
|
1088
1088
|
else {
|
|
1089
|
-
var
|
|
1089
|
+
var m = fe(e, t, s);
|
|
1090
1090
|
switch (i) {
|
|
1091
1091
|
case "animation":
|
|
1092
1092
|
case "animationName": {
|
|
1093
|
-
n +=
|
|
1093
|
+
n += Te(i) + ":" + m + ";";
|
|
1094
1094
|
break;
|
|
1095
1095
|
}
|
|
1096
1096
|
default:
|
|
1097
|
-
n += i + "{" +
|
|
1097
|
+
n += i + "{" + m + "}";
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1119,11 +1119,11 @@ function ar(e, t, r) {
|
|
|
1119
1119
|
a += u[c];
|
|
1120
1120
|
}
|
|
1121
1121
|
Ke.lastIndex = 0;
|
|
1122
|
-
for (var
|
|
1123
|
-
|
|
1124
|
-
var
|
|
1122
|
+
for (var m = "", l; (l = Ke.exec(a)) !== null; )
|
|
1123
|
+
m += "-" + l[1];
|
|
1124
|
+
var f = Qt(a) + m;
|
|
1125
1125
|
return {
|
|
1126
|
-
name:
|
|
1126
|
+
name: f,
|
|
1127
1127
|
styles: a,
|
|
1128
1128
|
next: Y
|
|
1129
1129
|
};
|
|
@@ -1176,47 +1176,47 @@ var cr = function(t) {
|
|
|
1176
1176
|
}, mr = function e(t, r) {
|
|
1177
1177
|
var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
|
|
1178
1178
|
r !== void 0 && (i = r.label, s = r.target);
|
|
1179
|
-
var c = Ze(t, r, n), u = c || Je(a),
|
|
1179
|
+
var c = Ze(t, r, n), u = c || Je(a), m = !u("as");
|
|
1180
1180
|
return function() {
|
|
1181
|
-
var l = arguments,
|
|
1182
|
-
if (i !== void 0 &&
|
|
1183
|
-
|
|
1181
|
+
var l = arguments, f = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1182
|
+
if (i !== void 0 && f.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
|
|
1183
|
+
f.push.apply(f, l);
|
|
1184
1184
|
else {
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1187
|
-
for (var
|
|
1188
|
-
|
|
1185
|
+
var g = l[0];
|
|
1186
|
+
f.push(g[0]);
|
|
1187
|
+
for (var k = l.length, v = 1; v < k; v++)
|
|
1188
|
+
f.push(l[v], g[v]);
|
|
1189
1189
|
}
|
|
1190
|
-
var
|
|
1191
|
-
var S =
|
|
1190
|
+
var d = cr(function(h, y, b) {
|
|
1191
|
+
var S = m && h.as || a, w = "", _ = [], R = h;
|
|
1192
1192
|
if (h.theme == null) {
|
|
1193
|
-
|
|
1194
|
-
for (var
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
R = {};
|
|
1194
|
+
for (var p in h)
|
|
1195
|
+
R[p] = h[p];
|
|
1196
|
+
R.theme = H.useContext(lr);
|
|
1197
1197
|
}
|
|
1198
|
-
typeof h.className == "string" ?
|
|
1199
|
-
var C = ar(
|
|
1200
|
-
|
|
1201
|
-
var
|
|
1202
|
-
for (var
|
|
1203
|
-
|
|
1204
|
-
return T.className =
|
|
1205
|
-
cache:
|
|
1198
|
+
typeof h.className == "string" ? w = Jt(y.registered, _, h.className) : h.className != null && (w = h.className + " ");
|
|
1199
|
+
var C = ar(f.concat(_), y.registered, R);
|
|
1200
|
+
w += y.key + "-" + C.name, s !== void 0 && (w += " " + s);
|
|
1201
|
+
var B = m && c === void 0 ? Je(S) : u, T = {};
|
|
1202
|
+
for (var I in h)
|
|
1203
|
+
m && I === "as" || B(I) && (T[I] = h[I]);
|
|
1204
|
+
return T.className = w, b && (T.ref = b), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
|
|
1205
|
+
cache: y,
|
|
1206
1206
|
serialized: C,
|
|
1207
1207
|
isStringTag: typeof S == "string"
|
|
1208
1208
|
}), /* @__PURE__ */ H.createElement(S, T));
|
|
1209
1209
|
});
|
|
1210
|
-
return
|
|
1210
|
+
return d.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", d.defaultProps = t.defaultProps, d.__emotion_real = d, d.__emotion_base = a, d.__emotion_styles = f, d.__emotion_forwardProp = c, Object.defineProperty(d, "toString", {
|
|
1211
1211
|
value: function() {
|
|
1212
1212
|
return "." + s;
|
|
1213
1213
|
}
|
|
1214
|
-
}),
|
|
1215
|
-
var
|
|
1216
|
-
shouldForwardProp: Ze(
|
|
1214
|
+
}), d.withComponent = function(h, y) {
|
|
1215
|
+
var b = e(h, Oe({}, r, y, {
|
|
1216
|
+
shouldForwardProp: Ze(d, y, !0)
|
|
1217
1217
|
}));
|
|
1218
|
-
return
|
|
1219
|
-
},
|
|
1218
|
+
return b.apply(void 0, f);
|
|
1219
|
+
}, d;
|
|
1220
1220
|
};
|
|
1221
1221
|
}, yr = [
|
|
1222
1222
|
"a",
|
|
@@ -1399,7 +1399,7 @@ const gr = ne.div`
|
|
|
1399
1399
|
return "";
|
|
1400
1400
|
}
|
|
1401
1401
|
}}
|
|
1402
|
-
`, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) =>
|
|
1402
|
+
`, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => j.jsxs(gr, { type: e, className: r, children: [n && j.jsx("span", { children: n }), j.jsx("span", { children: t }), a && j.jsx("span", { children: a })] }), Qe = ne.div`
|
|
1403
1403
|
width: ${({ width: e }) => e || "100%"};
|
|
1404
1404
|
height: ${({ height: e }) => e || "100%"};
|
|
1405
1405
|
border-radius: 8px;
|
|
@@ -1433,98 +1433,109 @@ const gr = ne.div`
|
|
|
1433
1433
|
@media (min-width: 768px) {
|
|
1434
1434
|
width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
|
|
1435
1435
|
}
|
|
1436
|
-
`, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Me = (e, t) => `vp-player-${e || "default"}-${t || ""}`,
|
|
1436
|
+
`, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Me = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ae = /* @__PURE__ */ new Map(), Pr = (e, t) => {
|
|
1437
1437
|
const [r, n] = D(!1), [a, i] = D(null);
|
|
1438
1438
|
return xe(() => {
|
|
1439
1439
|
let s = null, c, u = 0;
|
|
1440
|
-
const
|
|
1440
|
+
const m = 3;
|
|
1441
1441
|
let l;
|
|
1442
1442
|
try {
|
|
1443
1443
|
l = t || kr(e || "latest");
|
|
1444
|
-
} catch (
|
|
1445
|
-
const
|
|
1446
|
-
i(`Failed to resolve script URL: ${
|
|
1444
|
+
} catch (k) {
|
|
1445
|
+
const v = k instanceof Error ? k.message : String(k);
|
|
1446
|
+
i(`Failed to resolve script URL: ${v}`), n(!1);
|
|
1447
1447
|
return;
|
|
1448
1448
|
}
|
|
1449
|
-
if (
|
|
1449
|
+
if (Ae.get(l)) {
|
|
1450
1450
|
n(!0), i(null);
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (document.querySelector(`script[src="${l}"]`)) {
|
|
1454
|
-
|
|
1454
|
+
Ae.set(l, !0), n(!0), i(null);
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1457
|
+
const g = () => {
|
|
1458
1458
|
s = document.createElement("script"), s.src = l, s.async = !0, c = window.setTimeout(() => {
|
|
1459
1459
|
n(!1), i(`Loading script timed out: ${l}`);
|
|
1460
1460
|
}, 1e4), s.onload = () => {
|
|
1461
|
-
clearTimeout(c),
|
|
1461
|
+
clearTimeout(c), Ae.set(l, !0), n(!0), i(null);
|
|
1462
1462
|
}, s.onerror = () => {
|
|
1463
|
-
clearTimeout(c), u++, u <
|
|
1463
|
+
clearTimeout(c), u++, u < m ? setTimeout(g, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
|
|
1464
1464
|
}, document.body.appendChild(s);
|
|
1465
1465
|
};
|
|
1466
|
-
return
|
|
1466
|
+
return g(), () => {
|
|
1467
1467
|
clearTimeout(c), s && document.body.contains(s) && document.body.removeChild(s);
|
|
1468
1468
|
};
|
|
1469
1469
|
}, [e, t]), { isLoaded: r, error: a };
|
|
1470
|
-
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r =
|
|
1471
|
-
const [i, s] = D(null), [c, u] = D(null), [
|
|
1470
|
+
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 3e4, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1471
|
+
const [i, s] = D(null), [c, u] = D(null), [m, l] = D(!1), [f, g] = D(null), k = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
|
|
1472
1472
|
return xe(() => {
|
|
1473
|
-
const
|
|
1473
|
+
const v = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1474
1474
|
if (!e || n || !t && !r) {
|
|
1475
|
-
s(n || null), u(null), l(!1),
|
|
1475
|
+
s(n || null), u(null), l(!1), g(null);
|
|
1476
1476
|
return;
|
|
1477
1477
|
}
|
|
1478
|
-
if (!
|
|
1479
|
-
l(!1),
|
|
1478
|
+
if (!k) {
|
|
1479
|
+
l(!1), g("No API key provided");
|
|
1480
1480
|
return;
|
|
1481
1481
|
}
|
|
1482
|
-
if (
|
|
1483
|
-
const
|
|
1484
|
-
s(
|
|
1482
|
+
if (v && ye.has(v)) {
|
|
1483
|
+
const w = ye.get(v);
|
|
1484
|
+
s(w.url), u(w.playlist), l(!1), g(null);
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
var
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1487
|
+
let d = !0;
|
|
1488
|
+
const h = new AbortController(), y = h.signal, S = setTimeout(async () => {
|
|
1489
|
+
var _, R;
|
|
1490
|
+
if (!d)
|
|
1491
|
+
return;
|
|
1492
|
+
l(!0), g(null);
|
|
1493
|
+
let w = 0;
|
|
1494
|
+
for (; w < Ce && d; )
|
|
1493
1495
|
try {
|
|
1494
|
-
const
|
|
1496
|
+
const p = t && !r ? xr(e, t) : wr(e, r), C = setTimeout(() => h.abort(), _r), B = await fetch(p, {
|
|
1495
1497
|
method: "GET",
|
|
1496
|
-
headers: {
|
|
1497
|
-
|
|
1498
|
+
headers: {
|
|
1499
|
+
"api-key": k,
|
|
1500
|
+
Accept: "application/json",
|
|
1501
|
+
"Cache-Control": "no-cache"
|
|
1502
|
+
// Prevent caching issues
|
|
1503
|
+
},
|
|
1504
|
+
signal: y
|
|
1498
1505
|
});
|
|
1499
|
-
if (clearTimeout(
|
|
1500
|
-
throw new Error(`Fetch failed with status ${
|
|
1501
|
-
const
|
|
1506
|
+
if (clearTimeout(C), !B.ok)
|
|
1507
|
+
throw new Error(`Fetch failed with status ${B.status}`);
|
|
1508
|
+
const T = await B.json();
|
|
1509
|
+
if (!d)
|
|
1510
|
+
return;
|
|
1502
1511
|
if (t && !r) {
|
|
1503
|
-
const
|
|
1504
|
-
if (!(
|
|
1512
|
+
const I = (R = (_ = T.result) == null ? void 0 : _.items) == null ? void 0 : R.find((G) => G.mediaId === t);
|
|
1513
|
+
if (!(I != null && I.playbackUrl))
|
|
1505
1514
|
throw new Error("Invalid video data");
|
|
1506
|
-
s(
|
|
1515
|
+
s(I.playbackUrl), u(null), v && ye.set(v, { url: I.playbackUrl, playlist: null });
|
|
1507
1516
|
} else {
|
|
1508
|
-
if (!Array.isArray(
|
|
1517
|
+
if (!Array.isArray(T.result))
|
|
1509
1518
|
throw new Error("Invalid playlist format");
|
|
1510
|
-
u(
|
|
1519
|
+
u(T.result), s(null), v && ye.set(v, { url: null, playlist: T.result });
|
|
1511
1520
|
}
|
|
1512
1521
|
break;
|
|
1513
|
-
} catch (
|
|
1514
|
-
if (
|
|
1515
|
-
|
|
1522
|
+
} catch (p) {
|
|
1523
|
+
if (y.aborted) {
|
|
1524
|
+
d && g("Request timed out");
|
|
1516
1525
|
break;
|
|
1517
1526
|
}
|
|
1518
|
-
if (
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1521
|
-
}
|
|
1527
|
+
if (w++, w >= Ce) {
|
|
1528
|
+
const C = p instanceof Error ? p.message : String(p);
|
|
1529
|
+
d && g(`Failed after ${Ce} attempts: ${C}`);
|
|
1530
|
+
} else
|
|
1531
|
+
await new Promise((C) => setTimeout(C, 2e3));
|
|
1522
1532
|
}
|
|
1523
|
-
l(!1);
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1533
|
+
d && l(!1);
|
|
1534
|
+
}, 100);
|
|
1535
|
+
return () => {
|
|
1536
|
+
d = !1, clearTimeout(S), h.abort();
|
|
1526
1537
|
};
|
|
1527
|
-
}, [
|
|
1538
|
+
}, [k, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: f };
|
|
1528
1539
|
}, Rr = {
|
|
1529
1540
|
projectId: "vp-player-projectId",
|
|
1530
1541
|
video: {
|
|
@@ -1578,7 +1589,7 @@ const gr = ne.div`
|
|
|
1578
1589
|
// Enabled by default
|
|
1579
1590
|
}
|
|
1580
1591
|
}
|
|
1581
|
-
},
|
|
1592
|
+
}, Tr = ({
|
|
1582
1593
|
videoUrl: e,
|
|
1583
1594
|
fetchedPlaybackUrl: t,
|
|
1584
1595
|
// fetchedPlaylist,
|
|
@@ -1588,7 +1599,7 @@ const gr = ne.div`
|
|
|
1588
1599
|
isVerticalPlayer: i
|
|
1589
1600
|
// Distinguish between VP Player types
|
|
1590
1601
|
}) => {
|
|
1591
|
-
var l,
|
|
1602
|
+
var l, f, g, k, v, d, h, y;
|
|
1592
1603
|
const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
|
|
1593
1604
|
if (e)
|
|
1594
1605
|
return {
|
|
@@ -1611,79 +1622,78 @@ const gr = ne.div`
|
|
|
1611
1622
|
config: c
|
|
1612
1623
|
};
|
|
1613
1624
|
if (r && r.length > 0) {
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
video
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
...s,
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
config: c
|
|
1662
|
-
};
|
|
1625
|
+
const b = ((f = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : f.playlistVideoIndex) ?? ((g = a == null ? void 0 : a.config) == null ? void 0 : g.playlistVideoIndex) ?? 0;
|
|
1626
|
+
return i ? {
|
|
1627
|
+
...s,
|
|
1628
|
+
projectId: n || "vp-player-projectId",
|
|
1629
|
+
video: {
|
|
1630
|
+
...s.video,
|
|
1631
|
+
// Set first video file (index 0) to avoid VP Player duplication
|
|
1632
|
+
file: (k = r[0]) == null ? void 0 : k.hlsUrl,
|
|
1633
|
+
playlist: {
|
|
1634
|
+
state: !0,
|
|
1635
|
+
playlistId: "",
|
|
1636
|
+
// Will be set by API
|
|
1637
|
+
// Use original playlistVideoIndex - VP Player will navigate to it
|
|
1638
|
+
playlistVideoIndex: Number(b),
|
|
1639
|
+
// Remove first video from playlist to avoid duplication (already in file)
|
|
1640
|
+
videos: r.slice(1).map((w, _) => ({
|
|
1641
|
+
videoId: String(_ + 1),
|
|
1642
|
+
// Keep original IDs
|
|
1643
|
+
title: w.title,
|
|
1644
|
+
file: w.hlsUrl,
|
|
1645
|
+
thumbnailUrl: w.thumbnailUrl,
|
|
1646
|
+
duration: w.duration
|
|
1647
|
+
}))
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
config: c
|
|
1651
|
+
} : {
|
|
1652
|
+
...s,
|
|
1653
|
+
projectId: n || "vp-player-projectId",
|
|
1654
|
+
video: {
|
|
1655
|
+
...s.video,
|
|
1656
|
+
file: ((v = r[Number(b)]) == null ? void 0 : v.hlsUrl) || ((d = r[0]) == null ? void 0 : d.hlsUrl) || "",
|
|
1657
|
+
playlist: {
|
|
1658
|
+
state: !0,
|
|
1659
|
+
// playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
|
|
1660
|
+
playlistVideoIndex: Number(b),
|
|
1661
|
+
videos: r.map((w, _) => ({
|
|
1662
|
+
videoId: String(_),
|
|
1663
|
+
title: w.title,
|
|
1664
|
+
file: w.hlsUrl,
|
|
1665
|
+
thumbnailUrl: w.thumbnailUrl,
|
|
1666
|
+
duration: w.duration
|
|
1667
|
+
}))
|
|
1668
|
+
}
|
|
1669
|
+
},
|
|
1670
|
+
config: c
|
|
1671
|
+
};
|
|
1663
1672
|
}
|
|
1664
|
-
const u = ((h = a == null ? void 0 : a.video) == null ? void 0 : h.playlist) || s.video.playlist,
|
|
1665
|
-
if (
|
|
1673
|
+
const u = ((h = a == null ? void 0 : a.video) == null ? void 0 : h.playlist) || s.video.playlist, m = (y = a == null ? void 0 : a.video) == null ? void 0 : y.file;
|
|
1674
|
+
if (m)
|
|
1666
1675
|
return {
|
|
1667
1676
|
...s,
|
|
1668
1677
|
video: {
|
|
1669
1678
|
...s.video,
|
|
1670
|
-
file:
|
|
1679
|
+
file: m,
|
|
1671
1680
|
playlist: void 0
|
|
1672
1681
|
// No playlist, just one video
|
|
1673
1682
|
},
|
|
1674
1683
|
config: c
|
|
1675
1684
|
};
|
|
1676
1685
|
if (u != null && u.videos && u.videos.length > 0) {
|
|
1677
|
-
const
|
|
1686
|
+
const b = u.videos[Number(u.playlistVideoIndex) || 0];
|
|
1678
1687
|
return {
|
|
1679
1688
|
...s,
|
|
1680
1689
|
video: {
|
|
1681
1690
|
...s.video,
|
|
1682
|
-
file: (
|
|
1691
|
+
file: (b == null ? void 0 : b.file) || "",
|
|
1683
1692
|
playlist: {
|
|
1684
1693
|
...u,
|
|
1685
1694
|
state: u.state ?? !0,
|
|
1686
|
-
playlistVideoIndex:
|
|
1695
|
+
// playlistVideoIndex: playlist.playlistVideoIndex ?? 0, this has been bug, fixed, now int
|
|
1696
|
+
playlistVideoIndex: Number(u.playlistVideoIndex || 0),
|
|
1687
1697
|
videos: u.videos
|
|
1688
1698
|
}
|
|
1689
1699
|
},
|
|
@@ -1694,52 +1704,52 @@ const gr = ne.div`
|
|
|
1694
1704
|
};
|
|
1695
1705
|
}
|
|
1696
1706
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1697
|
-
},
|
|
1707
|
+
}, Ar = (e) => {
|
|
1698
1708
|
if (!e)
|
|
1699
1709
|
return;
|
|
1700
1710
|
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1701
1711
|
return r ? r[2] : void 0;
|
|
1702
|
-
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels:
|
|
1703
|
-
const l = Be(null),
|
|
1712
|
+
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1 }) => {
|
|
1713
|
+
const l = Be(null), f = Be(null), { isLoaded: g, error: k } = Pr(r, s), v = t || Ar(s), [d, h] = D(null), { fetchedPlaybackUrl: y, fetchedPlaylist: b, isLoading: S, error: w } = Sr({
|
|
1704
1714
|
projectId: a,
|
|
1705
|
-
videoId:
|
|
1715
|
+
videoId: v,
|
|
1706
1716
|
playlistId: i,
|
|
1707
1717
|
videoUrl: n,
|
|
1708
1718
|
apiKey: u
|
|
1709
|
-
}),
|
|
1710
|
-
const
|
|
1719
|
+
}), _ = Me(e, v), R = tt(() => {
|
|
1720
|
+
const p = c.config || {}, C = m && !p.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : p.size || { sizeType: "FIXED", width: "100%" };
|
|
1711
1721
|
return {
|
|
1712
1722
|
...c,
|
|
1713
1723
|
config: {
|
|
1714
|
-
...
|
|
1724
|
+
...p,
|
|
1715
1725
|
size: C
|
|
1716
1726
|
}
|
|
1717
1727
|
};
|
|
1718
|
-
}, [c,
|
|
1728
|
+
}, [c, m]);
|
|
1719
1729
|
return xe(() => {
|
|
1720
|
-
if (
|
|
1721
|
-
h(
|
|
1730
|
+
if (k) {
|
|
1731
|
+
h(k);
|
|
1722
1732
|
return;
|
|
1723
1733
|
}
|
|
1724
|
-
if (!
|
|
1734
|
+
if (!g || S && !n)
|
|
1725
1735
|
return;
|
|
1726
|
-
let
|
|
1727
|
-
const
|
|
1736
|
+
let p = !0;
|
|
1737
|
+
const B = setTimeout(async () => {
|
|
1728
1738
|
try {
|
|
1729
1739
|
const T = s == null ? void 0 : s.includes("vertical-player");
|
|
1730
1740
|
if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
|
|
1731
1741
|
var ie, oe;
|
|
1732
|
-
const
|
|
1733
|
-
if (
|
|
1742
|
+
const J = Q.id;
|
|
1743
|
+
if (J !== _)
|
|
1734
1744
|
try {
|
|
1735
|
-
const o = T ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window,
|
|
1745
|
+
const o = T ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, J) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, J);
|
|
1736
1746
|
o != null && o.destroy && o.destroy();
|
|
1737
1747
|
} catch (o) {
|
|
1738
|
-
console.warn(`Failed to destroy existing player ${
|
|
1748
|
+
console.warn(`Failed to destroy existing player ${J}:`, o);
|
|
1739
1749
|
}
|
|
1740
|
-
}), await new Promise((Q) => setTimeout(Q, 100)), !
|
|
1750
|
+
}), await new Promise((Q) => setTimeout(Q, 100)), !p || !l.current)
|
|
1741
1751
|
return;
|
|
1742
|
-
if (!document.getElementById(
|
|
1752
|
+
if (!document.getElementById(_)) {
|
|
1743
1753
|
h("DOM element not found after cleanup.");
|
|
1744
1754
|
return;
|
|
1745
1755
|
}
|
|
@@ -1752,62 +1762,62 @@ const gr = ne.div`
|
|
|
1752
1762
|
h(`VP ${T ? "Vertical " : ""}Player script not loaded.`);
|
|
1753
1763
|
return;
|
|
1754
1764
|
}
|
|
1755
|
-
const
|
|
1765
|
+
const X = Tr({
|
|
1756
1766
|
videoUrl: n,
|
|
1757
|
-
fetchedPlaybackUrl:
|
|
1758
|
-
fetchedPlaylist:
|
|
1767
|
+
fetchedPlaybackUrl: y ?? void 0,
|
|
1768
|
+
fetchedPlaylist: b ?? void 0,
|
|
1759
1769
|
projectId: a,
|
|
1760
|
-
config:
|
|
1770
|
+
config: R,
|
|
1761
1771
|
isVerticalPlayer: T
|
|
1762
1772
|
// Pass player type to config builder
|
|
1763
|
-
}), Z = z(
|
|
1773
|
+
}), Z = z(_);
|
|
1764
1774
|
if (!Z) {
|
|
1765
1775
|
h(`Failed to create VP ${T ? "Vertical " : ""}Player instance.`);
|
|
1766
1776
|
return;
|
|
1767
1777
|
}
|
|
1768
|
-
|
|
1778
|
+
p && l.current && (Z.setup(X), f.current = Z, h(null));
|
|
1769
1779
|
} catch (T) {
|
|
1770
|
-
if (
|
|
1771
|
-
const
|
|
1772
|
-
h(
|
|
1780
|
+
if (p) {
|
|
1781
|
+
const I = T instanceof Error ? T.message : String(T);
|
|
1782
|
+
h(I), console.error("VP Player initialization error:", T);
|
|
1773
1783
|
}
|
|
1774
1784
|
}
|
|
1775
1785
|
}, 150);
|
|
1776
1786
|
return () => {
|
|
1777
|
-
|
|
1787
|
+
p = !1, clearTimeout(B);
|
|
1778
1788
|
};
|
|
1779
1789
|
}, [
|
|
1780
|
-
|
|
1790
|
+
g,
|
|
1781
1791
|
S,
|
|
1782
1792
|
n,
|
|
1783
|
-
|
|
1784
|
-
|
|
1793
|
+
y,
|
|
1794
|
+
b,
|
|
1785
1795
|
a,
|
|
1786
|
-
|
|
1796
|
+
R,
|
|
1797
|
+
_,
|
|
1787
1798
|
k,
|
|
1788
|
-
w,
|
|
1789
1799
|
s
|
|
1790
1800
|
]), xe(() => () => {
|
|
1791
|
-
if (
|
|
1801
|
+
if (f.current) {
|
|
1792
1802
|
try {
|
|
1793
|
-
|
|
1803
|
+
f.current.destroy && f.current.destroy();
|
|
1794
1804
|
} catch (C) {
|
|
1795
|
-
console.warn(`Failed to destroy player ${
|
|
1805
|
+
console.warn(`Failed to destroy player ${_}:`, C);
|
|
1796
1806
|
}
|
|
1797
|
-
|
|
1807
|
+
f.current = null;
|
|
1798
1808
|
}
|
|
1799
|
-
const
|
|
1800
|
-
|
|
1801
|
-
}, [
|
|
1809
|
+
const p = document.getElementById(_);
|
|
1810
|
+
p && (p.innerHTML = "");
|
|
1811
|
+
}, [_]), {
|
|
1802
1812
|
playerRef: l,
|
|
1803
|
-
playerInstanceRef:
|
|
1804
|
-
isScriptLoaded:
|
|
1813
|
+
playerInstanceRef: f,
|
|
1814
|
+
isScriptLoaded: g,
|
|
1805
1815
|
isLoading: S,
|
|
1806
|
-
error:
|
|
1816
|
+
error: w || d || k
|
|
1807
1817
|
};
|
|
1808
|
-
}, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels:
|
|
1809
|
-
var
|
|
1810
|
-
const { playerRef:
|
|
1818
|
+
}, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: m = !1, hiddenClasses: l = [], onClose: f, className: g }) => {
|
|
1819
|
+
var B, T, I, G;
|
|
1820
|
+
const { playerRef: k, playerInstanceRef: v, isScriptLoaded: d, isLoading: h, error: y } = Cr({
|
|
1811
1821
|
playerId: e,
|
|
1812
1822
|
videoId: t,
|
|
1813
1823
|
version: r,
|
|
@@ -1817,29 +1827,29 @@ const gr = ne.div`
|
|
|
1817
1827
|
scriptUrl: s,
|
|
1818
1828
|
config: c,
|
|
1819
1829
|
apiKey: u,
|
|
1820
|
-
isReels:
|
|
1821
|
-
}), [
|
|
1822
|
-
var z,
|
|
1823
|
-
S(!1), (
|
|
1824
|
-
},
|
|
1825
|
-
return
|
|
1830
|
+
isReels: m
|
|
1831
|
+
}), [b, S] = D(!0), w = () => m && S(!0), _ = () => {
|
|
1832
|
+
var z, X;
|
|
1833
|
+
S(!1), (X = (z = v.current) == null ? void 0 : z.play) == null || X.call(z), f == null || f();
|
|
1834
|
+
}, R = (T = (B = c == null ? void 0 : c.config) == null ? void 0 : B.size) != null && T.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, p = (G = (I = c == null ? void 0 : c.config) == null ? void 0 : I.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, C = Me(e, t);
|
|
1835
|
+
return y ? j.jsxs(Ne, { type: "error", children: ["An error occurred: ", y] }) : h || !d ? j.jsx(Ne, { type: "loading", children: "Loading..." }) : j.jsxs(j.Fragment, { children: [m && !b ? j.jsx("div", { onClick: w }) : null, !m && j.jsx("div", { children: j.jsx(Qe, { id: C, ref: k, width: R || "100%", height: p || "auto", $hiddenClasses: l, className: g }) }, C), m && b && j.jsx(vr, { onClick: _, className: g, children: j.jsx(br, { className: g, onClick: (z) => z.stopPropagation(), children: j.jsx("div", { children: j.jsx(Qe, { id: C, ref: k, width: "100%", height: "auto", $hiddenClasses: l, className: g }) }, C) }) })] });
|
|
1826
1836
|
}, pt = gt(void 0), jr = ({ children: e }) => {
|
|
1827
1837
|
const [t, r] = D(!1), [n, a] = D(null), [i, s] = D(null), c = ze((l) => {
|
|
1828
1838
|
try {
|
|
1829
|
-
const
|
|
1830
|
-
a({ ...l, playerId:
|
|
1839
|
+
const f = Me(l.playerId, l.videoId);
|
|
1840
|
+
a({ ...l, playerId: f }), r(!0), s(null);
|
|
1831
1841
|
} catch {
|
|
1832
1842
|
s("Failed to show player.");
|
|
1833
1843
|
}
|
|
1834
1844
|
}, []), u = ze(() => {
|
|
1835
1845
|
r(!1), a(null), s(null);
|
|
1836
|
-
}, []),
|
|
1846
|
+
}, []), m = tt(() => ({
|
|
1837
1847
|
showPlayer: c,
|
|
1838
1848
|
hidePlayer: u,
|
|
1839
1849
|
isPlayerVisible: t,
|
|
1840
1850
|
playerParams: n
|
|
1841
1851
|
}), [c, u, t, n]);
|
|
1842
|
-
return
|
|
1852
|
+
return j.jsxs(pt.Provider, { value: m, children: [e, i && j.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && j.jsx(Ir, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: u, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
|
|
1843
1853
|
}, $r = () => {
|
|
1844
1854
|
const e = et(pt);
|
|
1845
1855
|
if (!e)
|
|
@@ -1934,9 +1944,9 @@ export {
|
|
|
1934
1944
|
Lr as baseConfig,
|
|
1935
1945
|
Ie as baseConfigWithAds,
|
|
1936
1946
|
Fr as baseConfigWithAutoplay,
|
|
1937
|
-
|
|
1947
|
+
Tr as buildVPPlayerConfig,
|
|
1938
1948
|
Nr as defaultVPPlayerConfig,
|
|
1939
|
-
|
|
1949
|
+
Ar as extractVideoId,
|
|
1940
1950
|
Vr as getAdConfig,
|
|
1941
1951
|
$r as useVPPlayer,
|
|
1942
1952
|
Cr as useVPPlayerLogic,
|