@devix-technologies/react-gjirafa-vp-player 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import mt, { forwardRef as yt, useContext as et, useState as
|
|
3
|
-
var he = { exports: {} },
|
|
1
|
+
import * as H from "react";
|
|
2
|
+
import mt, { forwardRef as yt, useContext as et, useState as D, useEffect as xe, useRef as Be, useMemo as tt, createContext as gt, useCallback as ze } from "react";
|
|
3
|
+
var he = { exports: {} }, se = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -12,7 +12,7 @@ var he = { exports: {} }, ie = {};
|
|
|
12
12
|
*/
|
|
13
13
|
var De;
|
|
14
14
|
function vt() {
|
|
15
|
-
if (De) return
|
|
15
|
+
if (De) return se;
|
|
16
16
|
De = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
18
|
function r(n, a, i) {
|
|
@@ -30,9 +30,9 @@ function vt() {
|
|
|
30
30
|
props: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return se.Fragment = t, se.jsx = r, se.jsxs = r, se;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var ce = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -48,18 +48,18 @@ function bt() {
|
|
|
48
48
|
function e(o) {
|
|
49
49
|
if (o == null) return null;
|
|
50
50
|
if (typeof o == "function")
|
|
51
|
-
return o.$$typeof ===
|
|
51
|
+
return o.$$typeof === T ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
54
|
case p:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case g:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case h:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case k:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case P:
|
|
63
63
|
return "SuspenseList";
|
|
64
64
|
case F:
|
|
65
65
|
return "Activity";
|
|
@@ -68,21 +68,21 @@ function bt() {
|
|
|
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
|
-
case
|
|
73
|
+
case S:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
|
-
case
|
|
75
|
+
case m:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return o = o.displayName, o || (o =
|
|
77
|
+
case R:
|
|
78
|
+
var x = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = x.displayName || x.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
80
|
case f:
|
|
81
|
-
return
|
|
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;
|
|
84
84
|
try {
|
|
85
|
-
return e(o(
|
|
85
|
+
return e(o(x));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,17 +94,17 @@ function bt() {
|
|
|
94
94
|
function r(o) {
|
|
95
95
|
try {
|
|
96
96
|
t(o);
|
|
97
|
-
var
|
|
97
|
+
var x = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
x = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (x) {
|
|
102
|
+
x = console;
|
|
103
|
+
var A = x.error, $ = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return A.call(
|
|
105
|
+
x,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
$
|
|
108
108
|
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -113,8 +113,8 @@ function bt() {
|
|
|
113
113
|
if (typeof o == "object" && o !== null && o.$$typeof === C)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var x = e(o);
|
|
117
|
+
return x ? "<" + x + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
@@ -127,40 +127,40 @@ function bt() {
|
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function s(o) {
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
130
|
+
if (J.call(o, "key")) {
|
|
131
|
+
var x = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (x && x.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function c(o,
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function c(o, x) {
|
|
137
|
+
function A() {
|
|
138
|
+
Z || (Z = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
-
|
|
140
|
+
x
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
A.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: A,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function u() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
150
|
+
return Q[o] || (Q[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
154
|
+
function y(o, x, A, $, X, U, _e, Se) {
|
|
155
|
+
return A = U.ref, o = {
|
|
156
156
|
$$typeof: w,
|
|
157
157
|
type: o,
|
|
158
|
-
key:
|
|
159
|
-
props:
|
|
160
|
-
_owner:
|
|
161
|
-
}, (
|
|
158
|
+
key: x,
|
|
159
|
+
props: U,
|
|
160
|
+
_owner: X
|
|
161
|
+
}, (A !== void 0 ? A : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: u
|
|
164
164
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -183,111 +183,111 @@ function bt() {
|
|
|
183
183
|
value: Se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o,
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (z(
|
|
191
|
-
for (
|
|
192
|
-
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function l(o, x, A, $, X, U, _e, Se) {
|
|
187
|
+
var N = x.children;
|
|
188
|
+
if (N !== void 0)
|
|
189
|
+
if ($)
|
|
190
|
+
if (z(N)) {
|
|
191
|
+
for ($ = 0; $ < N.length; $++)
|
|
192
|
+
d(N[$]);
|
|
193
|
+
Object.freeze && Object.freeze(N);
|
|
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
|
-
|
|
201
|
-
var
|
|
198
|
+
else d(N);
|
|
199
|
+
if (J.call(x, "key")) {
|
|
200
|
+
N = e(o);
|
|
201
|
+
var ee = Object.keys(x).filter(function(ht) {
|
|
202
202
|
return ht !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
$ = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", oe[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
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
),
|
|
211
|
+
$,
|
|
212
|
+
N,
|
|
213
|
+
ee,
|
|
214
|
+
N
|
|
215
|
+
), oe[N + $] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
for (var Re in
|
|
220
|
-
Re !== "key" && (
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
|
|
217
|
+
if (N = null, A !== void 0 && (r(A), N = "" + A), s(x) && (r(x.key), N = "" + x.key), "key" in x) {
|
|
218
|
+
A = {};
|
|
219
|
+
for (var Re in x)
|
|
220
|
+
Re !== "key" && (A[Re] = x[Re]);
|
|
221
|
+
} else A = x;
|
|
222
|
+
return N && c(
|
|
223
|
+
A,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
-
),
|
|
225
|
+
), y(
|
|
226
226
|
o,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
N,
|
|
228
|
+
U,
|
|
229
|
+
X,
|
|
230
230
|
a(),
|
|
231
|
-
|
|
231
|
+
A,
|
|
232
232
|
_e,
|
|
233
233
|
Se
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function d(o) {
|
|
237
237
|
typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var v = mt, w = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), h = Symbol.for("react.strict_mode"), g = Symbol.for("react.profiler"), m = Symbol.for("react.consumer"), S = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), V = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, z = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
v = {
|
|
243
243
|
"react-stack-bottom-frame": function(o) {
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
247
|
+
var Z, Q = {}, K = v["react-stack-bottom-frame"].bind(
|
|
248
|
+
v,
|
|
249
249
|
i
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
250
|
+
)(), ie = G(n(i)), oe = {};
|
|
251
|
+
ce.Fragment = p, ce.jsx = function(o, x, A, $, X) {
|
|
252
|
+
var U = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
|
-
|
|
256
|
-
R,
|
|
257
|
-
!1,
|
|
255
|
+
x,
|
|
258
256
|
A,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
!1,
|
|
258
|
+
$,
|
|
259
|
+
X,
|
|
260
|
+
U ? Error("react-stack-top-frame") : K,
|
|
261
|
+
U ? G(n(o)) : ie
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
263
|
+
}, ce.jsxs = function(o, x, A, $, X) {
|
|
264
|
+
var U = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
|
-
|
|
268
|
-
R,
|
|
269
|
-
!0,
|
|
267
|
+
x,
|
|
270
268
|
A,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
269
|
+
!0,
|
|
270
|
+
$,
|
|
271
|
+
X,
|
|
272
|
+
U ? Error("react-stack-top-frame") : K,
|
|
273
|
+
U ? G(n(o)) : ie
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
276
|
+
}()), ce;
|
|
277
277
|
}
|
|
278
278
|
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
|
|
283
|
-
function
|
|
284
|
-
return
|
|
282
|
+
var O = xt();
|
|
283
|
+
function Oe() {
|
|
284
|
+
return Oe = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
285
|
for (var t = 1; t < arguments.length; t++) {
|
|
286
286
|
var r = arguments[t];
|
|
287
287
|
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
288
288
|
}
|
|
289
289
|
return e;
|
|
290
|
-
},
|
|
290
|
+
}, Oe.apply(null, arguments);
|
|
291
291
|
}
|
|
292
292
|
function wt(e) {
|
|
293
293
|
if (e.sheet)
|
|
@@ -329,29 +329,29 @@ 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
|
-
}(),
|
|
332
|
+
}(), L = "-ms-", we = "-moz-", E = "-webkit-", rt = "comm", Le = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
|
|
333
333
|
function At(e, t) {
|
|
334
334
|
return j(e, 0) ^ 45 ? (((t << 2 ^ j(e, 0)) << 2 ^ j(e, 1)) << 2 ^ j(e, 2)) << 2 ^ j(e, 3) : 0;
|
|
335
335
|
}
|
|
336
336
|
function at(e) {
|
|
337
337
|
return e.trim();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Tt(e, t) {
|
|
340
340
|
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function _(e, t, r) {
|
|
343
343
|
return e.replace(t, r);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function je(e, t) {
|
|
346
346
|
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
348
|
function j(e, t) {
|
|
349
349
|
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ue(e, t, r) {
|
|
352
352
|
return e.slice(t, r);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function W(e) {
|
|
355
355
|
return e.length;
|
|
356
356
|
}
|
|
357
357
|
function Ve(e) {
|
|
@@ -360,35 +360,35 @@ function Ve(e) {
|
|
|
360
360
|
function me(e, t) {
|
|
361
361
|
return t.push(e), e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Ct(e, t) {
|
|
364
364
|
return e.map(t).join("");
|
|
365
365
|
}
|
|
366
|
-
var Pe = 1,
|
|
366
|
+
var Pe = 1, re = 1, it = 0, M = 0, I = 0, ae = "";
|
|
367
367
|
function Ee(e, t, r, n, a, i, s) {
|
|
368
|
-
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column:
|
|
368
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: re, length: s, return: "" };
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function le(e, t) {
|
|
371
371
|
return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
372
372
|
}
|
|
373
|
-
function Ot() {
|
|
374
|
-
return T;
|
|
375
|
-
}
|
|
376
373
|
function It() {
|
|
377
|
-
return
|
|
374
|
+
return I;
|
|
378
375
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
376
|
+
function Ot() {
|
|
377
|
+
return I = M > 0 ? j(ae, --M) : 0, re--, I === 10 && (re = 1, Pe--), I;
|
|
378
|
+
}
|
|
379
|
+
function B() {
|
|
380
|
+
return I = M < it ? j(ae, M++) : 0, re++, I === 10 && (re = 1, Pe++), I;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return j(
|
|
382
|
+
function q() {
|
|
383
|
+
return j(ae, M);
|
|
384
384
|
}
|
|
385
385
|
function ge() {
|
|
386
386
|
return M;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return
|
|
388
|
+
function pe(e, t) {
|
|
389
|
+
return ue(ae, e, t);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function de(e) {
|
|
392
392
|
switch (e) {
|
|
393
393
|
// \0 \t \n \r \s whitespace token
|
|
394
394
|
case 0:
|
|
@@ -427,92 +427,92 @@ function le(e) {
|
|
|
427
427
|
return 0;
|
|
428
428
|
}
|
|
429
429
|
function ot(e) {
|
|
430
|
-
return Pe =
|
|
430
|
+
return Pe = re = 1, it = W(ae = e), M = 0, [];
|
|
431
431
|
}
|
|
432
432
|
function st(e) {
|
|
433
|
-
return
|
|
433
|
+
return ae = "", e;
|
|
434
434
|
}
|
|
435
435
|
function ve(e) {
|
|
436
|
-
return at(
|
|
436
|
+
return at(pe(M - 1, $e(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
for (; (
|
|
440
|
-
|
|
441
|
-
return
|
|
438
|
+
function jt(e) {
|
|
439
|
+
for (; (I = q()) && I < 33; )
|
|
440
|
+
B();
|
|
441
|
+
return de(e) > 2 || de(I) > 3 ? "" : " ";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
for (; --t &&
|
|
443
|
+
function $t(e, t) {
|
|
444
|
+
for (; --t && B() && !(I < 48 || I > 102 || I > 57 && I < 65 || I > 70 && I < 97); )
|
|
445
445
|
;
|
|
446
|
-
return
|
|
446
|
+
return pe(e, ge() + (t < 6 && q() == 32 && B() == 32));
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
for (;
|
|
450
|
-
switch (
|
|
448
|
+
function $e(e) {
|
|
449
|
+
for (; B(); )
|
|
450
|
+
switch (I) {
|
|
451
451
|
// ] ) " '
|
|
452
452
|
case e:
|
|
453
453
|
return M;
|
|
454
454
|
// " '
|
|
455
455
|
case 34:
|
|
456
456
|
case 39:
|
|
457
|
-
e !== 34 && e !== 39 &&
|
|
457
|
+
e !== 34 && e !== 39 && $e(I);
|
|
458
458
|
break;
|
|
459
459
|
// (
|
|
460
460
|
case 40:
|
|
461
|
-
e === 41 &&
|
|
461
|
+
e === 41 && $e(e);
|
|
462
462
|
break;
|
|
463
463
|
// \
|
|
464
464
|
case 92:
|
|
465
|
-
|
|
465
|
+
B();
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
468
|
return M;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
for (;
|
|
472
|
-
if (e +
|
|
470
|
+
function Nt(e, t) {
|
|
471
|
+
for (; B() && e + I !== 57; )
|
|
472
|
+
if (e + I === 84 && q() === 47)
|
|
473
473
|
break;
|
|
474
|
-
return "/*" +
|
|
474
|
+
return "/*" + pe(t, M - 1) + "*" + ke(e === 47 ? e : B());
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
for (; !
|
|
478
|
-
|
|
479
|
-
return
|
|
476
|
+
function Lt(e) {
|
|
477
|
+
for (; !de(q()); )
|
|
478
|
+
B();
|
|
479
|
+
return pe(e, M);
|
|
480
480
|
}
|
|
481
481
|
function Ft(e) {
|
|
482
482
|
return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
|
-
function be(e, t, r, n, a, i, s, c,
|
|
485
|
-
for (var
|
|
486
|
-
switch (
|
|
484
|
+
function be(e, t, r, n, a, i, s, c, u) {
|
|
485
|
+
for (var y = 0, l = 0, d = s, v = 0, w = 0, b = 0, p = 1, h = 1, g = 1, m = 0, S = "", R = a, k = i, P = n, f = S; h; )
|
|
486
|
+
switch (b = m, m = B()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (
|
|
490
|
-
|
|
489
|
+
if (b != 108 && j(f, d - 1) == 58) {
|
|
490
|
+
je(f += _(ve(m), "&", "&\f"), "&\f") != -1 && (g = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
493
493
|
// " ' [
|
|
494
494
|
case 34:
|
|
495
495
|
case 39:
|
|
496
496
|
case 91:
|
|
497
|
-
f += ve(
|
|
497
|
+
f += ve(m);
|
|
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
|
-
f +=
|
|
504
|
+
f += jt(b);
|
|
505
505
|
break;
|
|
506
506
|
// \
|
|
507
507
|
case 92:
|
|
508
|
-
f +=
|
|
508
|
+
f += $t(ge() - 1, 7);
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
|
-
switch (
|
|
512
|
+
switch (q()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
me(Vt(
|
|
515
|
+
me(Vt(Nt(B(), ge()), t, r), u);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
518
|
f += "/";
|
|
@@ -520,91 +520,91 @@ function be(e, t, r, n, a, i, s, c, d) {
|
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
522
|
case 123 * p:
|
|
523
|
-
c[
|
|
523
|
+
c[y++] = W(f) * g;
|
|
524
524
|
// } ; \0
|
|
525
525
|
case 125 * p:
|
|
526
526
|
case 59:
|
|
527
527
|
case 0:
|
|
528
|
-
switch (
|
|
528
|
+
switch (m) {
|
|
529
529
|
// \0 }
|
|
530
530
|
case 0:
|
|
531
531
|
case 125:
|
|
532
|
-
|
|
532
|
+
h = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
|
|
535
|
+
g == -1 && (f = _(f, /\f/g, "")), w > 0 && W(f) - d && me(w > 32 ? qe(f + ";", n, r, d - 1) : qe(_(f, " ", "") + ";", n, r, d - 2), u);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
539
539
|
f += ";";
|
|
540
540
|
// { rule/at-rule
|
|
541
541
|
default:
|
|
542
|
-
if (me(
|
|
542
|
+
if (me(P = Ye(f, t, r, y, l, a, c, S, R = [], k = [], d), i), m === 123)
|
|
543
543
|
if (l === 0)
|
|
544
|
-
be(f, t,
|
|
544
|
+
be(f, t, P, P, R, i, d, c, k);
|
|
545
545
|
else
|
|
546
|
-
switch (
|
|
546
|
+
switch (v === 99 && j(f, 3) === 110 ? 100 : v) {
|
|
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, P, P, n && me(Ye(e, P, P, 0, 0, a, c, S, a, R = [], d), k), a, k, d, c, n ? R : k);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
|
-
be(f,
|
|
555
|
+
be(f, P, P, P, [""], k, 0, c, k);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
|
|
558
|
+
y = l = w = 0, p = g = 1, S = f = "", d = s;
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
|
|
562
|
+
d = 1 + W(f), w = b;
|
|
563
563
|
default:
|
|
564
564
|
if (p < 1) {
|
|
565
|
-
if (
|
|
565
|
+
if (m == 123)
|
|
566
566
|
--p;
|
|
567
|
-
else if (
|
|
567
|
+
else if (m == 125 && p++ == 0 && Ot() == 125)
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
570
|
-
switch (f += ke(
|
|
570
|
+
switch (f += ke(m), m * p) {
|
|
571
571
|
// &
|
|
572
572
|
case 38:
|
|
573
|
-
|
|
573
|
+
g = l > 0 ? 1 : (f += "\f", -1);
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
c[
|
|
577
|
+
c[y++] = (W(f) - 1) * g, g = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
|
|
581
|
+
q() === 45 && (f += ve(B())), v = q(), l = d = W(S = f += Lt(ge())), m++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
|
|
585
|
+
b === 45 && W(f) == 2 && (p = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
|
-
function Ye(e, t, r, n, a, i, s, c,
|
|
591
|
-
for (var
|
|
592
|
-
for (var
|
|
593
|
-
(
|
|
594
|
-
return Ee(e, t, r, a === 0 ?
|
|
590
|
+
function Ye(e, t, r, n, a, i, s, c, u, y, l) {
|
|
591
|
+
for (var d = a - 1, v = a === 0 ? i : [""], w = Ve(v), b = 0, p = 0, h = 0; b < n; ++b)
|
|
592
|
+
for (var g = 0, m = ue(e, d + 1, d = St(p = s[b])), S = e; g < w; ++g)
|
|
593
|
+
(S = at(p > 0 ? v[g] + " " + m : _(m, /&\f/g, v[g]))) && (u[h++] = S);
|
|
594
|
+
return Ee(e, t, r, a === 0 ? Le : c, u, y, l);
|
|
595
595
|
}
|
|
596
596
|
function Vt(e, t, r) {
|
|
597
|
-
return Ee(e, t, r, rt, ke(
|
|
597
|
+
return Ee(e, t, r, rt, ke(It()), ue(e, 2, -2), 0);
|
|
598
598
|
}
|
|
599
599
|
function qe(e, t, r, n) {
|
|
600
|
-
return Ee(e, t, r, Fe,
|
|
600
|
+
return Ee(e, t, r, Fe, ue(e, 0, n), ue(e, n + 1, -1), n);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function te(e, t) {
|
|
603
603
|
for (var r = "", n = Ve(e), a = 0; a < n; a++)
|
|
604
604
|
r += t(e[a], a, e, t) || "";
|
|
605
605
|
return r;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Mt(e, t, r, n) {
|
|
608
608
|
switch (e.type) {
|
|
609
609
|
case _t:
|
|
610
610
|
if (e.children.length) break;
|
|
@@ -614,13 +614,13 @@ function Bt(e, t, r, n) {
|
|
|
614
614
|
case rt:
|
|
615
615
|
return "";
|
|
616
616
|
case nt:
|
|
617
|
-
return e.return = e.value + "{" +
|
|
618
|
-
case
|
|
617
|
+
return e.return = e.value + "{" + te(e.children, n) + "}";
|
|
618
|
+
case Le:
|
|
619
619
|
e.value = e.props.join(",");
|
|
620
620
|
}
|
|
621
|
-
return
|
|
621
|
+
return W(r = te(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Bt(e) {
|
|
624
624
|
var t = Ve(e);
|
|
625
625
|
return function(r, n, a, i) {
|
|
626
626
|
for (var s = "", c = 0; c < t; c++)
|
|
@@ -640,29 +640,29 @@ function ct(e) {
|
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
var Dt = function(t, r, n) {
|
|
643
|
-
for (var a = 0, i = 0; a = i, i =
|
|
644
|
-
|
|
645
|
-
return
|
|
643
|
+
for (var a = 0, i = 0; a = i, i = q(), a === 38 && i === 12 && (r[n] = 1), !de(i); )
|
|
644
|
+
B();
|
|
645
|
+
return pe(t, M);
|
|
646
646
|
}, Ut = function(t, r) {
|
|
647
647
|
var n = -1, a = 44;
|
|
648
648
|
do
|
|
649
|
-
switch (
|
|
649
|
+
switch (de(a)) {
|
|
650
650
|
case 0:
|
|
651
|
-
a === 38 &&
|
|
651
|
+
a === 38 && q() === 12 && (r[n] = 1), t[n] += Dt(M - 1, r, n);
|
|
652
652
|
break;
|
|
653
653
|
case 2:
|
|
654
654
|
t[n] += ve(a);
|
|
655
655
|
break;
|
|
656
656
|
case 4:
|
|
657
657
|
if (a === 44) {
|
|
658
|
-
t[++n] =
|
|
658
|
+
t[++n] = q() === 58 ? "&\f" : "", r[n] = t[n].length;
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
// fallthrough
|
|
662
662
|
default:
|
|
663
663
|
t[n] += ke(a);
|
|
664
664
|
}
|
|
665
|
-
while (a =
|
|
665
|
+
while (a = B());
|
|
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,
|
|
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, y = 0; u < s.length; u++)
|
|
678
|
+
for (var l = 0; l < c.length; l++, y++)
|
|
679
|
+
t.props[y] = i[u] ? s[u].replace(/&\f/g, c[l]) : c[l] + " " + s[u];
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
}, qt = function(t) {
|
|
@@ -691,7 +691,7 @@ function lt(e, t) {
|
|
|
691
691
|
switch (At(e, t)) {
|
|
692
692
|
// color-adjust
|
|
693
693
|
case 5103:
|
|
694
|
-
return
|
|
694
|
+
return E + "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 E + 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 E + e + we + e + L + e + e;
|
|
732
732
|
// flex, flex-direction
|
|
733
733
|
case 6828:
|
|
734
734
|
case 4268:
|
|
735
|
-
return
|
|
735
|
+
return E + e + L + e + e;
|
|
736
736
|
// order
|
|
737
737
|
case 6165:
|
|
738
|
-
return
|
|
738
|
+
return E + e + L + "flex-" + e + e;
|
|
739
739
|
// align-items
|
|
740
740
|
case 5187:
|
|
741
|
-
return
|
|
741
|
+
return E + e + _(e, /(\w+).+(:[^]+)/, E + "box-$1$2" + L + "flex-$1$2") + e;
|
|
742
742
|
// align-self
|
|
743
743
|
case 5443:
|
|
744
|
-
return
|
|
744
|
+
return E + e + L + "flex-item-" + _(e, /flex-|-self/, "") + e;
|
|
745
745
|
// align-content
|
|
746
746
|
case 4675:
|
|
747
|
-
return
|
|
747
|
+
return E + e + L + "flex-line-pack" + _(e, /align-content|flex-|-self/, "") + e;
|
|
748
748
|
// flex-shrink
|
|
749
749
|
case 5548:
|
|
750
|
-
return
|
|
750
|
+
return E + e + L + _(e, "shrink", "negative") + e;
|
|
751
751
|
// flex-basis
|
|
752
752
|
case 5292:
|
|
753
|
-
return
|
|
753
|
+
return E + e + L + _(e, "basis", "preferred-size") + e;
|
|
754
754
|
// flex-grow
|
|
755
755
|
case 6060:
|
|
756
|
-
return
|
|
756
|
+
return E + "box-" + _(e, "-grow", "") + E + e + L + _(e, "grow", "positive") + e;
|
|
757
757
|
// transition
|
|
758
758
|
case 4554:
|
|
759
|
-
return
|
|
759
|
+
return E + _(e, /([^-])(transform)/g, "$1" + E + "$2") + e;
|
|
760
760
|
// cursor
|
|
761
761
|
case 6187:
|
|
762
|
-
return
|
|
762
|
+
return _(_(_(e, /(zoom-|grab)/, E + "$1"), /(image-set)/, E + "$1"), e, "") + e;
|
|
763
763
|
// background, background-image
|
|
764
764
|
case 5495:
|
|
765
765
|
case 3959:
|
|
766
|
-
return
|
|
766
|
+
return _(e, /(image-set\([^]*)/, E + "$1$`$1");
|
|
767
767
|
// justify-content
|
|
768
768
|
case 4968:
|
|
769
|
-
return
|
|
769
|
+
return _(_(e, /(.+:)(flex-)?(.*)/, E + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + E + 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, /(.+)-inline(.+)/, E + "$1$2") + e;
|
|
776
776
|
// (min|max)?(width|height|inline-size|block-size)
|
|
777
777
|
case 8116:
|
|
778
778
|
case 7059:
|
|
@@ -786,16 +786,16 @@ function lt(e, t) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (
|
|
789
|
+
if (W(e) - 1 - t > 6) switch (j(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
792
|
if (j(e, t + 4) !== 45) break;
|
|
793
793
|
// (f)ill-available, (f)it-content
|
|
794
794
|
case 102:
|
|
795
|
-
return
|
|
795
|
+
return _(e, /(.+:)(.+)-([^]+)/, "$1" + E + "$2-$3$1" + we + (j(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
|
-
return
|
|
798
|
+
return ~je(e, "stretch") ? lt(_(e, "stretch", "fill-available"), t) + e : e;
|
|
799
799
|
}
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
@@ -803,13 +803,13 @@ function lt(e, t) {
|
|
|
803
803
|
if (j(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (j(e,
|
|
806
|
+
switch (j(e, W(e) - 3 - (~je(e, "!important") && 10))) {
|
|
807
807
|
// stic(k)y
|
|
808
808
|
case 107:
|
|
809
|
-
return
|
|
809
|
+
return _(e, ":", ":" + E) + e;
|
|
810
810
|
// (inline-)?fl(e)x
|
|
811
811
|
case 101:
|
|
812
|
-
return
|
|
812
|
+
return _(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + E + (j(e, 14) === 45 ? "inline-" : "") + "box$3$1" + E + "$2$3$1" + L + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
@@ -817,15 +817,15 @@ function lt(e, t) {
|
|
|
817
817
|
switch (j(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
|
-
return
|
|
820
|
+
return E + e + L + _(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
821
821
|
// vertical-r(l)
|
|
822
822
|
case 108:
|
|
823
|
-
return
|
|
823
|
+
return E + e + L + _(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
824
824
|
// horizontal(-)tb
|
|
825
825
|
case 45:
|
|
826
|
-
return
|
|
826
|
+
return E + e + L + _(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
827
827
|
}
|
|
828
|
-
return
|
|
828
|
+
return E + e + L + e + e;
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
@@ -835,26 +835,26 @@ var Ht = function(t, r, n, a) {
|
|
|
835
835
|
t.return = lt(t.value, t.length);
|
|
836
836
|
break;
|
|
837
837
|
case nt:
|
|
838
|
-
return
|
|
839
|
-
value:
|
|
838
|
+
return te([le(t, {
|
|
839
|
+
value: _(t.value, "@", "@" + E)
|
|
840
840
|
})], a);
|
|
841
|
-
case
|
|
842
|
-
if (t.length) return
|
|
843
|
-
switch (
|
|
841
|
+
case Le:
|
|
842
|
+
if (t.length) return Ct(t.props, function(i) {
|
|
843
|
+
switch (Tt(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
|
-
return
|
|
848
|
-
props: [
|
|
847
|
+
return te([le(t, {
|
|
848
|
+
props: [_(i, /:(read-\w+)/, ":" + we + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
|
-
return
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
856
|
-
}),
|
|
857
|
-
props: [
|
|
852
|
+
return te([le(t, {
|
|
853
|
+
props: [_(i, /:(plac\w+)/, ":" + E + "input-$1")]
|
|
854
|
+
}), le(t, {
|
|
855
|
+
props: [_(i, /:(plac\w+)/, ":" + we + "$1")]
|
|
856
|
+
}), le(t, {
|
|
857
|
+
props: [_(i, /:(plac\w+)/, L + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
860
860
|
return "";
|
|
@@ -865,8 +865,8 @@ var Ht = function(t, r, n, a) {
|
|
|
865
865
|
if (r === "css") {
|
|
866
866
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
867
867
|
Array.prototype.forEach.call(n, function(p) {
|
|
868
|
-
var
|
|
869
|
-
|
|
868
|
+
var h = p.getAttribute("data-emotion");
|
|
869
|
+
h.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
var a = t.stylisPlugins || Gt, i = {}, s, c = [];
|
|
@@ -875,23 +875,23 @@ var Ht = function(t, r, n, a) {
|
|
|
875
875
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
876
876
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
877
877
|
function(p) {
|
|
878
|
-
for (var
|
|
879
|
-
i[
|
|
878
|
+
for (var h = p.getAttribute("data-emotion").split(" "), g = 1; g < h.length; g++)
|
|
879
|
+
i[h[g]] = !0;
|
|
880
880
|
c.push(p);
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
var
|
|
883
|
+
var u, y = [Yt, qt];
|
|
884
884
|
{
|
|
885
|
-
var l,
|
|
885
|
+
var l, d = [Mt, zt(function(p) {
|
|
886
886
|
l.insert(p);
|
|
887
|
-
})],
|
|
888
|
-
return
|
|
887
|
+
})], v = Bt(y.concat(a, d)), w = function(h) {
|
|
888
|
+
return te(Ft(h), v);
|
|
889
889
|
};
|
|
890
|
-
|
|
891
|
-
l =
|
|
890
|
+
u = function(h, g, m, S) {
|
|
891
|
+
l = m, w(h ? h + "{" + g.styles + "}" : g.styles), S && (b.inserted[g.name] = !0);
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
|
-
var
|
|
894
|
+
var b = {
|
|
895
895
|
key: r,
|
|
896
896
|
sheet: new Pt({
|
|
897
897
|
key: r,
|
|
@@ -904,9 +904,9 @@ var Ht = function(t, r, n, a) {
|
|
|
904
904
|
nonce: t.nonce,
|
|
905
905
|
inserted: i,
|
|
906
906
|
registered: {},
|
|
907
|
-
insert:
|
|
907
|
+
insert: u
|
|
908
908
|
};
|
|
909
|
-
return
|
|
909
|
+
return b.sheet.hydrate(c), b;
|
|
910
910
|
}, Kt = !0;
|
|
911
911
|
function Jt(e, t, r) {
|
|
912
912
|
var n = "";
|
|
@@ -1016,16 +1016,16 @@ var er = {
|
|
|
1016
1016
|
case "animationName":
|
|
1017
1017
|
if (typeof r == "string")
|
|
1018
1018
|
return r.replace(rr, function(n, a, i) {
|
|
1019
|
-
return
|
|
1019
|
+
return Y = {
|
|
1020
1020
|
name: a,
|
|
1021
1021
|
styles: i,
|
|
1022
|
-
next:
|
|
1022
|
+
next: Y
|
|
1023
1023
|
}, a;
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
return er[t] !== 1 && !dt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1027
1027
|
};
|
|
1028
|
-
function
|
|
1028
|
+
function fe(e, t, r) {
|
|
1029
1029
|
if (r == null)
|
|
1030
1030
|
return "";
|
|
1031
1031
|
var n = r;
|
|
@@ -1037,20 +1037,20 @@ function ue(e, t, r) {
|
|
|
1037
1037
|
case "object": {
|
|
1038
1038
|
var a = r;
|
|
1039
1039
|
if (a.anim === 1)
|
|
1040
|
-
return
|
|
1040
|
+
return Y = {
|
|
1041
1041
|
name: a.name,
|
|
1042
1042
|
styles: a.styles,
|
|
1043
|
-
next:
|
|
1043
|
+
next: Y
|
|
1044
1044
|
}, a.name;
|
|
1045
1045
|
var i = r;
|
|
1046
1046
|
if (i.styles !== void 0) {
|
|
1047
1047
|
var s = i.next;
|
|
1048
1048
|
if (s !== void 0)
|
|
1049
1049
|
for (; s !== void 0; )
|
|
1050
|
-
|
|
1050
|
+
Y = {
|
|
1051
1051
|
name: s.name,
|
|
1052
1052
|
styles: s.styles,
|
|
1053
|
-
next:
|
|
1053
|
+
next: Y
|
|
1054
1054
|
}, s = s.next;
|
|
1055
1055
|
var c = i.styles + ";";
|
|
1056
1056
|
return c;
|
|
@@ -1059,8 +1059,8 @@ function ue(e, t, r) {
|
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var
|
|
1063
|
-
return
|
|
1062
|
+
var u = Y, y = r(e);
|
|
1063
|
+
return Y = u, fe(e, t, y);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
@@ -1068,14 +1068,14 @@ function ue(e, t, r) {
|
|
|
1068
1068
|
var l = r;
|
|
1069
1069
|
if (t == null)
|
|
1070
1070
|
return l;
|
|
1071
|
-
var
|
|
1072
|
-
return
|
|
1071
|
+
var d = t[l];
|
|
1072
|
+
return d !== void 0 ? d : l;
|
|
1073
1073
|
}
|
|
1074
1074
|
function nr(e, t, r) {
|
|
1075
1075
|
var n = "";
|
|
1076
1076
|
if (Array.isArray(r))
|
|
1077
1077
|
for (var a = 0; a < r.length; a++)
|
|
1078
|
-
n +=
|
|
1078
|
+
n += fe(e, t, r[a]) + ";";
|
|
1079
1079
|
else
|
|
1080
1080
|
for (var i in r) {
|
|
1081
1081
|
var s = r[i];
|
|
@@ -1083,54 +1083,54 @@ function nr(e, t, r) {
|
|
|
1083
1083
|
var c = s;
|
|
1084
1084
|
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Ae(i) + ":" + Xe(i, c) + ";");
|
|
1085
1085
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
|
|
1086
|
-
for (var
|
|
1087
|
-
Ge(s[
|
|
1086
|
+
for (var u = 0; u < s.length; u++)
|
|
1087
|
+
Ge(s[u]) && (n += Ae(i) + ":" + Xe(i, s[u]) + ";");
|
|
1088
1088
|
else {
|
|
1089
|
-
var
|
|
1089
|
+
var y = fe(e, t, s);
|
|
1090
1090
|
switch (i) {
|
|
1091
1091
|
case "animation":
|
|
1092
1092
|
case "animationName": {
|
|
1093
|
-
n += Ae(i) + ":" +
|
|
1093
|
+
n += Ae(i) + ":" + y + ";";
|
|
1094
1094
|
break;
|
|
1095
1095
|
}
|
|
1096
1096
|
default:
|
|
1097
|
-
n += i + "{" +
|
|
1097
|
+
n += i + "{" + y + "}";
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
return n;
|
|
1102
1102
|
}
|
|
1103
|
-
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
1103
|
+
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, Y;
|
|
1104
1104
|
function ar(e, t, r) {
|
|
1105
1105
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1106
1106
|
return e[0];
|
|
1107
1107
|
var n = !0, a = "";
|
|
1108
|
-
|
|
1108
|
+
Y = void 0;
|
|
1109
1109
|
var i = e[0];
|
|
1110
1110
|
if (i == null || i.raw === void 0)
|
|
1111
|
-
n = !1, a +=
|
|
1111
|
+
n = !1, a += fe(r, t, i);
|
|
1112
1112
|
else {
|
|
1113
1113
|
var s = i;
|
|
1114
1114
|
a += s[0];
|
|
1115
1115
|
}
|
|
1116
1116
|
for (var c = 1; c < e.length; c++)
|
|
1117
|
-
if (a +=
|
|
1118
|
-
var
|
|
1119
|
-
a +=
|
|
1117
|
+
if (a += fe(r, t, e[c]), n) {
|
|
1118
|
+
var u = i;
|
|
1119
|
+
a += u[c];
|
|
1120
1120
|
}
|
|
1121
1121
|
Ke.lastIndex = 0;
|
|
1122
|
-
for (var
|
|
1123
|
-
|
|
1124
|
-
var
|
|
1122
|
+
for (var y = "", l; (l = Ke.exec(a)) !== null; )
|
|
1123
|
+
y += "-" + l[1];
|
|
1124
|
+
var d = Qt(a) + y;
|
|
1125
1125
|
return {
|
|
1126
|
-
name:
|
|
1126
|
+
name: d,
|
|
1127
1127
|
styles: a,
|
|
1128
|
-
next:
|
|
1128
|
+
next: Y
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
var ir = function(t) {
|
|
1132
1132
|
return t();
|
|
1133
|
-
}, or =
|
|
1133
|
+
}, or = H.useInsertionEffect ? H.useInsertionEffect : !1, sr = or || ir, ft = /* @__PURE__ */ H.createContext(
|
|
1134
1134
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1135
1135
|
// because this module is primarily intended for the browser and node
|
|
1136
1136
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -1147,7 +1147,7 @@ var cr = function(t) {
|
|
|
1147
1147
|
var a = et(ft);
|
|
1148
1148
|
return t(r, a, n);
|
|
1149
1149
|
});
|
|
1150
|
-
}, lr = /* @__PURE__ */
|
|
1150
|
+
}, lr = /* @__PURE__ */ H.createContext({}), ur = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, dr = /* @__PURE__ */ ct(
|
|
1151
1151
|
function(e) {
|
|
1152
1152
|
return ur.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1153
1153
|
}
|
|
@@ -1176,46 +1176,46 @@ 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),
|
|
1179
|
+
var c = Ze(t, r, n), u = c || Je(a), y = !u("as");
|
|
1180
1180
|
return function() {
|
|
1181
|
-
var l = arguments,
|
|
1182
|
-
if (i !== void 0 &&
|
|
1183
|
-
|
|
1181
|
+
var l = arguments, d = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1182
|
+
if (i !== void 0 && d.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
|
|
1183
|
+
d.push.apply(d, l);
|
|
1184
1184
|
else {
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1187
|
-
for (var w = l.length,
|
|
1188
|
-
|
|
1185
|
+
var v = l[0];
|
|
1186
|
+
d.push(v[0]);
|
|
1187
|
+
for (var w = l.length, b = 1; b < w; b++)
|
|
1188
|
+
d.push(l[b], v[b]);
|
|
1189
1189
|
}
|
|
1190
|
-
var p = cr(function(
|
|
1191
|
-
var
|
|
1192
|
-
if (
|
|
1193
|
-
|
|
1194
|
-
for (var f in
|
|
1195
|
-
|
|
1196
|
-
|
|
1190
|
+
var p = cr(function(h, g, m) {
|
|
1191
|
+
var S = y && h.as || a, R = "", k = [], P = h;
|
|
1192
|
+
if (h.theme == null) {
|
|
1193
|
+
P = {};
|
|
1194
|
+
for (var f in h)
|
|
1195
|
+
P[f] = h[f];
|
|
1196
|
+
P.theme = H.useContext(lr);
|
|
1197
1197
|
}
|
|
1198
|
-
typeof
|
|
1199
|
-
var C = ar(
|
|
1200
|
-
|
|
1201
|
-
var F =
|
|
1202
|
-
for (var V in
|
|
1203
|
-
|
|
1204
|
-
return
|
|
1205
|
-
cache:
|
|
1198
|
+
typeof h.className == "string" ? R = Jt(g.registered, k, h.className) : h.className != null && (R = h.className + " ");
|
|
1199
|
+
var C = ar(d.concat(k), g.registered, P);
|
|
1200
|
+
R += g.key + "-" + C.name, s !== void 0 && (R += " " + s);
|
|
1201
|
+
var F = y && c === void 0 ? Je(S) : u, T = {};
|
|
1202
|
+
for (var V in h)
|
|
1203
|
+
y && V === "as" || F(V) && (T[V] = h[V]);
|
|
1204
|
+
return T.className = R, m && (T.ref = m), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement(hr, {
|
|
1205
|
+
cache: g,
|
|
1206
1206
|
serialized: C,
|
|
1207
|
-
isStringTag: typeof
|
|
1208
|
-
}), /* @__PURE__ */
|
|
1207
|
+
isStringTag: typeof S == "string"
|
|
1208
|
+
}), /* @__PURE__ */ H.createElement(S, T));
|
|
1209
1209
|
});
|
|
1210
|
-
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles =
|
|
1210
|
+
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = d, p.__emotion_forwardProp = c, Object.defineProperty(p, "toString", {
|
|
1211
1211
|
value: function() {
|
|
1212
1212
|
return "." + s;
|
|
1213
1213
|
}
|
|
1214
|
-
}), p.withComponent = function(
|
|
1215
|
-
var
|
|
1216
|
-
shouldForwardProp: Ze(p,
|
|
1214
|
+
}), p.withComponent = function(h, g) {
|
|
1215
|
+
var m = e(h, Oe({}, r, g, {
|
|
1216
|
+
shouldForwardProp: Ze(p, g, !0)
|
|
1217
1217
|
}));
|
|
1218
|
-
return
|
|
1218
|
+
return m.apply(void 0, d);
|
|
1219
1219
|
}, p;
|
|
1220
1220
|
};
|
|
1221
1221
|
}, yr = [
|
|
@@ -1354,11 +1354,11 @@ var cr = function(t) {
|
|
|
1354
1354
|
"svg",
|
|
1355
1355
|
"text",
|
|
1356
1356
|
"tspan"
|
|
1357
|
-
],
|
|
1357
|
+
], ne = mr.bind(null);
|
|
1358
1358
|
yr.forEach(function(e) {
|
|
1359
|
-
|
|
1359
|
+
ne[e] = ne(e);
|
|
1360
1360
|
});
|
|
1361
|
-
const gr =
|
|
1361
|
+
const gr = ne.div`
|
|
1362
1362
|
display: flex;
|
|
1363
1363
|
align-items: center;
|
|
1364
1364
|
justify-content: center;
|
|
@@ -1399,7 +1399,7 @@ const gr = re.div`
|
|
|
1399
1399
|
return "";
|
|
1400
1400
|
}
|
|
1401
1401
|
}}
|
|
1402
|
-
`,
|
|
1402
|
+
`, Ne = ({ type: e, children: t, className: r, icon: n, action: a }) => O.jsxs(gr, { type: e, className: r, children: [n && O.jsx("span", { children: n }), O.jsx("span", { children: t }), a && O.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;
|
|
@@ -1409,7 +1409,7 @@ const gr = re.div`
|
|
|
1409
1409
|
|
|
1410
1410
|
/* Hide specific elements inside the player */
|
|
1411
1411
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
|
|
1412
|
-
`, vr =
|
|
1412
|
+
`, vr = ne.div`
|
|
1413
1413
|
position: fixed;
|
|
1414
1414
|
top: 0;
|
|
1415
1415
|
left: 0;
|
|
@@ -1421,7 +1421,7 @@ const gr = re.div`
|
|
|
1421
1421
|
align-items: center;
|
|
1422
1422
|
z-index: 1000;
|
|
1423
1423
|
pointer-events: auto;
|
|
1424
|
-
`, br =
|
|
1424
|
+
`, br = ne.div`
|
|
1425
1425
|
position: relative;
|
|
1426
1426
|
width: 100%; /* Default for mobile */
|
|
1427
1427
|
max-width: 100%;
|
|
@@ -1433,98 +1433,98 @@ const gr = re.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`,
|
|
1437
|
-
const [r, n] =
|
|
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 || ""}`, Te = /* @__PURE__ */ new Map(), Pr = (e, t) => {
|
|
1437
|
+
const [r, n] = D(!1), [a, i] = D(null);
|
|
1438
1438
|
return xe(() => {
|
|
1439
|
-
let s = null, c,
|
|
1440
|
-
const
|
|
1439
|
+
let s = null, c, u = 0;
|
|
1440
|
+
const y = 3;
|
|
1441
1441
|
let l;
|
|
1442
1442
|
try {
|
|
1443
1443
|
l = t || kr(e || "latest");
|
|
1444
1444
|
} catch (w) {
|
|
1445
|
-
const
|
|
1446
|
-
i(`Failed to resolve script URL: ${
|
|
1445
|
+
const b = w instanceof Error ? w.message : String(w);
|
|
1446
|
+
i(`Failed to resolve script URL: ${b}`), n(!1);
|
|
1447
1447
|
return;
|
|
1448
1448
|
}
|
|
1449
|
-
if (
|
|
1449
|
+
if (Te.get(l)) {
|
|
1450
1450
|
n(!0), i(null);
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (document.querySelector(`script[src="${l}"]`)) {
|
|
1454
|
-
|
|
1454
|
+
Te.set(l, !0), n(!0), i(null);
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1457
|
+
const v = () => {
|
|
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), Te.set(l, !0), n(!0), i(null);
|
|
1462
1462
|
}, s.onerror = () => {
|
|
1463
|
-
clearTimeout(c),
|
|
1463
|
+
clearTimeout(c), u++, u < y ? setTimeout(v, 1e3 * u) : (n(!1), i(`Failed to load VP Player script after ${y} attempts: ${l}`));
|
|
1464
1464
|
}, document.body.appendChild(s);
|
|
1465
1465
|
};
|
|
1466
|
-
return
|
|
1466
|
+
return v(), () => {
|
|
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 = 15e3,
|
|
1471
|
-
const [i, s] =
|
|
1470
|
+
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 15e3, Ce = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1471
|
+
const [i, s] = D(null), [c, u] = D(null), [y, l] = D(!1), [d, v] = D(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
|
|
1472
1472
|
return xe(() => {
|
|
1473
|
-
const
|
|
1473
|
+
const b = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1474
1474
|
if (!e || n || !t && !r) {
|
|
1475
|
-
s(n || null),
|
|
1475
|
+
s(n || null), u(null), l(!1), v(null);
|
|
1476
1476
|
return;
|
|
1477
1477
|
}
|
|
1478
1478
|
if (!w) {
|
|
1479
|
-
l(!1),
|
|
1479
|
+
l(!1), v("No API key provided");
|
|
1480
1480
|
return;
|
|
1481
1481
|
}
|
|
1482
|
-
if (
|
|
1483
|
-
const
|
|
1484
|
-
s(
|
|
1482
|
+
if (b && ye.has(b)) {
|
|
1483
|
+
const m = ye.get(b);
|
|
1484
|
+
s(m.url), u(m.playlist), l(!1), v(null);
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
|
-
const p = new AbortController(),
|
|
1487
|
+
const p = new AbortController(), h = p.signal;
|
|
1488
1488
|
return (async () => {
|
|
1489
|
-
var
|
|
1490
|
-
l(!0),
|
|
1491
|
-
let
|
|
1492
|
-
for (;
|
|
1489
|
+
var S, R;
|
|
1490
|
+
l(!0), v(null);
|
|
1491
|
+
let m = 0;
|
|
1492
|
+
for (; m < Ce; )
|
|
1493
1493
|
try {
|
|
1494
|
-
const
|
|
1494
|
+
const k = t && !r ? xr(e, t) : wr(e, r), P = setTimeout(() => p.abort(), _r), f = await fetch(k, {
|
|
1495
1495
|
method: "GET",
|
|
1496
1496
|
headers: { "api-key": w, Accept: "application/json" },
|
|
1497
|
-
signal:
|
|
1497
|
+
signal: h
|
|
1498
1498
|
});
|
|
1499
|
-
if (clearTimeout(
|
|
1499
|
+
if (clearTimeout(P), !f.ok)
|
|
1500
1500
|
throw new Error(`Fetch failed with status ${f.status}`);
|
|
1501
1501
|
const C = await f.json();
|
|
1502
1502
|
if (t && !r) {
|
|
1503
|
-
const F = (
|
|
1503
|
+
const F = (R = (S = C.result) == null ? void 0 : S.items) == null ? void 0 : R.find((T) => T.mediaId === t);
|
|
1504
1504
|
if (!(F != null && F.playbackUrl))
|
|
1505
1505
|
throw new Error("Invalid video data");
|
|
1506
|
-
s(F.playbackUrl),
|
|
1506
|
+
s(F.playbackUrl), u(null), b && ye.set(b, { url: F.playbackUrl, playlist: null });
|
|
1507
1507
|
} else {
|
|
1508
1508
|
if (!Array.isArray(C.result))
|
|
1509
1509
|
throw new Error("Invalid playlist format");
|
|
1510
|
-
|
|
1510
|
+
u(C.result), s(null), b && ye.set(b, { url: null, playlist: C.result });
|
|
1511
1511
|
}
|
|
1512
1512
|
break;
|
|
1513
|
-
} catch (
|
|
1514
|
-
if (
|
|
1515
|
-
|
|
1513
|
+
} catch (k) {
|
|
1514
|
+
if (h.aborted) {
|
|
1515
|
+
v("Request timed out");
|
|
1516
1516
|
break;
|
|
1517
1517
|
}
|
|
1518
|
-
if (
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1518
|
+
if (m++, m >= Ce) {
|
|
1519
|
+
const P = k instanceof Error ? k.message : String(k);
|
|
1520
|
+
v(`Failed after ${Ce} attempts: ${P}`);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
l(!1);
|
|
1524
1524
|
})(), () => {
|
|
1525
1525
|
p.abort();
|
|
1526
1526
|
};
|
|
1527
|
-
}, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading:
|
|
1527
|
+
}, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: y, error: d };
|
|
1528
1528
|
}, Rr = {
|
|
1529
1529
|
projectId: "vp-player-projectId",
|
|
1530
1530
|
video: {
|
|
@@ -1533,6 +1533,7 @@ const gr = re.div`
|
|
|
1533
1533
|
playlist: {
|
|
1534
1534
|
state: !0,
|
|
1535
1535
|
// Enable playlist by default
|
|
1536
|
+
// If we have a playlist, we start with the first video, if any issue check value, should
|
|
1536
1537
|
playlistVideoIndex: 0,
|
|
1537
1538
|
// Start with the first video
|
|
1538
1539
|
videos: []
|
|
@@ -1577,97 +1578,136 @@ const gr = re.div`
|
|
|
1577
1578
|
// Enabled by default
|
|
1578
1579
|
}
|
|
1579
1580
|
}
|
|
1580
|
-
}, Ar = ({
|
|
1581
|
-
|
|
1582
|
-
|
|
1581
|
+
}, Ar = ({
|
|
1582
|
+
videoUrl: e,
|
|
1583
|
+
fetchedPlaybackUrl: t,
|
|
1584
|
+
// fetchedPlaylist,
|
|
1585
|
+
fetchedPlaylist: r,
|
|
1586
|
+
projectId: n,
|
|
1587
|
+
config: a = {},
|
|
1588
|
+
isVerticalPlayer: i
|
|
1589
|
+
// Distinguish between VP Player types
|
|
1590
|
+
}) => {
|
|
1591
|
+
var l, d, v, w, b, p, h, g;
|
|
1592
|
+
const s = { ...Rr, ...a }, c = { ...s.config, ...a.config };
|
|
1583
1593
|
if (e)
|
|
1584
1594
|
return {
|
|
1585
|
-
...
|
|
1595
|
+
...s,
|
|
1586
1596
|
video: {
|
|
1587
|
-
...
|
|
1597
|
+
...s.video,
|
|
1588
1598
|
file: e,
|
|
1589
1599
|
playlist: void 0
|
|
1590
1600
|
},
|
|
1591
|
-
config:
|
|
1601
|
+
config: c
|
|
1592
1602
|
};
|
|
1593
1603
|
if (t)
|
|
1594
1604
|
return {
|
|
1595
|
-
...
|
|
1605
|
+
...s,
|
|
1596
1606
|
video: {
|
|
1597
|
-
...
|
|
1607
|
+
...s.video,
|
|
1598
1608
|
file: t,
|
|
1599
1609
|
playlist: void 0
|
|
1600
1610
|
},
|
|
1601
|
-
config:
|
|
1611
|
+
config: c
|
|
1602
1612
|
};
|
|
1603
|
-
if (r && r.length > 0)
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
...
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1613
|
+
if (r && r.length > 0) {
|
|
1614
|
+
const m = ((d = (l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) == null ? void 0 : d.playlistVideoIndex) ?? ((v = a == null ? void 0 : a.config) == null ? void 0 : v.playlistVideoIndex) ?? 0;
|
|
1615
|
+
if (i) {
|
|
1616
|
+
const S = Math.min(m, r.length - 1), R = ((w = r[S]) == null ? void 0 : w.hlsUrl) ?? void 0;
|
|
1617
|
+
return {
|
|
1618
|
+
...s,
|
|
1619
|
+
projectId: n || "vp-player-projectId",
|
|
1620
|
+
video: {
|
|
1621
|
+
...s.video,
|
|
1622
|
+
// Set the correct video file for the desired index
|
|
1623
|
+
file: R,
|
|
1624
|
+
playlist: {
|
|
1625
|
+
state: !0,
|
|
1626
|
+
playlistId: "",
|
|
1627
|
+
// Will be set by API
|
|
1628
|
+
// IMPORTANT: Based on docs, here should be an int, but we use string, cause it works
|
|
1629
|
+
// TODO: this should require some added work in the future
|
|
1630
|
+
playlistVideoIndex: String(m),
|
|
1631
|
+
videos: r.map((P, f) => ({
|
|
1632
|
+
videoId: String(f),
|
|
1633
|
+
title: P.title,
|
|
1634
|
+
file: P.hlsUrl,
|
|
1635
|
+
thumbnailUrl: P.thumbnailUrl,
|
|
1636
|
+
duration: P.duration
|
|
1637
|
+
}))
|
|
1638
|
+
}
|
|
1639
|
+
},
|
|
1640
|
+
config: c
|
|
1641
|
+
};
|
|
1642
|
+
} else
|
|
1643
|
+
return {
|
|
1644
|
+
...s,
|
|
1645
|
+
projectId: n || "vp-player-projectId",
|
|
1646
|
+
video: {
|
|
1647
|
+
...s.video,
|
|
1648
|
+
file: ((b = r[m]) == null ? void 0 : b.hlsUrl) || ((p = r[0]) == null ? void 0 : p.hlsUrl) || "",
|
|
1649
|
+
playlist: {
|
|
1650
|
+
state: !0,
|
|
1651
|
+
playlistVideoIndex: m,
|
|
1652
|
+
videos: r.map((R, k) => ({
|
|
1653
|
+
videoId: String(k),
|
|
1654
|
+
title: R.title,
|
|
1655
|
+
file: R.hlsUrl,
|
|
1656
|
+
thumbnailUrl: R.thumbnailUrl,
|
|
1657
|
+
duration: R.duration
|
|
1658
|
+
}))
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
config: c
|
|
1662
|
+
};
|
|
1663
|
+
}
|
|
1664
|
+
const u = ((h = a == null ? void 0 : a.video) == null ? void 0 : h.playlist) || s.video.playlist, y = (g = a == null ? void 0 : a.video) == null ? void 0 : g.file;
|
|
1665
|
+
if (y)
|
|
1626
1666
|
return {
|
|
1627
|
-
...
|
|
1667
|
+
...s,
|
|
1628
1668
|
video: {
|
|
1629
|
-
...
|
|
1630
|
-
file:
|
|
1669
|
+
...s.video,
|
|
1670
|
+
file: y,
|
|
1631
1671
|
playlist: void 0
|
|
1632
1672
|
// No playlist, just one video
|
|
1633
1673
|
},
|
|
1634
|
-
config:
|
|
1674
|
+
config: c
|
|
1635
1675
|
};
|
|
1636
|
-
if (
|
|
1637
|
-
const
|
|
1676
|
+
if (u != null && u.videos && u.videos.length > 0) {
|
|
1677
|
+
const m = u.videos[Number(u.playlistVideoIndex) || 0];
|
|
1638
1678
|
return {
|
|
1639
|
-
...
|
|
1679
|
+
...s,
|
|
1640
1680
|
video: {
|
|
1641
|
-
...
|
|
1642
|
-
file: (
|
|
1681
|
+
...s.video,
|
|
1682
|
+
file: (m == null ? void 0 : m.file) || "",
|
|
1643
1683
|
playlist: {
|
|
1644
|
-
...
|
|
1645
|
-
state:
|
|
1646
|
-
playlistVideoIndex:
|
|
1647
|
-
videos:
|
|
1684
|
+
...u,
|
|
1685
|
+
state: u.state ?? !0,
|
|
1686
|
+
playlistVideoIndex: u.playlistVideoIndex ?? 0,
|
|
1687
|
+
videos: u.videos
|
|
1648
1688
|
}
|
|
1649
1689
|
},
|
|
1650
1690
|
config: {
|
|
1651
|
-
...
|
|
1691
|
+
...s.config,
|
|
1652
1692
|
...a == null ? void 0 : a.config
|
|
1653
1693
|
}
|
|
1654
1694
|
};
|
|
1655
1695
|
}
|
|
1656
1696
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1657
|
-
},
|
|
1697
|
+
}, Tr = (e) => {
|
|
1658
1698
|
if (!e)
|
|
1659
1699
|
return;
|
|
1660
1700
|
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1661
1701
|
return r ? r[2] : void 0;
|
|
1662
|
-
},
|
|
1663
|
-
const l =
|
|
1702
|
+
}, Cr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: y = !1 }) => {
|
|
1703
|
+
const l = Be(null), d = Be(null), { isLoaded: v, error: w } = Pr(r, s), b = t || Tr(s), [p, h] = D(null), { fetchedPlaybackUrl: g, fetchedPlaylist: m, isLoading: S, error: R } = Sr({
|
|
1664
1704
|
projectId: a,
|
|
1665
|
-
videoId:
|
|
1705
|
+
videoId: b,
|
|
1666
1706
|
playlistId: i,
|
|
1667
1707
|
videoUrl: n,
|
|
1668
|
-
apiKey:
|
|
1669
|
-
}),
|
|
1670
|
-
const f = c.config || {}, C =
|
|
1708
|
+
apiKey: u
|
|
1709
|
+
}), k = Me(e, b), P = tt(() => {
|
|
1710
|
+
const f = c.config || {}, C = y && !f.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : f.size || { sizeType: "FIXED", width: "100%" };
|
|
1671
1711
|
return {
|
|
1672
1712
|
...c,
|
|
1673
1713
|
config: {
|
|
@@ -1675,58 +1715,61 @@ const gr = re.div`
|
|
|
1675
1715
|
size: C
|
|
1676
1716
|
}
|
|
1677
1717
|
};
|
|
1678
|
-
}, [c,
|
|
1718
|
+
}, [c, y]);
|
|
1679
1719
|
return xe(() => {
|
|
1680
1720
|
if (w) {
|
|
1681
|
-
|
|
1721
|
+
h(w);
|
|
1682
1722
|
return;
|
|
1683
1723
|
}
|
|
1684
|
-
if (!
|
|
1724
|
+
if (!v || S && !n)
|
|
1685
1725
|
return;
|
|
1686
1726
|
let f = !0;
|
|
1687
1727
|
const F = setTimeout(async () => {
|
|
1688
1728
|
try {
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1729
|
+
const T = s == null ? void 0 : s.includes("vertical-player");
|
|
1730
|
+
if (document.querySelectorAll('[id*="player"]').forEach((Q) => {
|
|
1731
|
+
var ie, oe;
|
|
1732
|
+
const K = Q.id;
|
|
1733
|
+
if (K !== k)
|
|
1734
|
+
try {
|
|
1735
|
+
const o = T ? (ie = window.vpVerticalPlayer) == null ? void 0 : ie.call(window, K) : (oe = window.vpPlayer) == null ? void 0 : oe.call(window, K);
|
|
1736
|
+
o != null && o.destroy && o.destroy();
|
|
1737
|
+
} catch (o) {
|
|
1738
|
+
console.warn(`Failed to destroy existing player ${K}:`, o);
|
|
1739
|
+
}
|
|
1740
|
+
}), await new Promise((Q) => setTimeout(Q, 100)), !f || !l.current)
|
|
1699
1741
|
return;
|
|
1700
|
-
if (!document.getElementById(
|
|
1701
|
-
|
|
1742
|
+
if (!document.getElementById(k)) {
|
|
1743
|
+
h("DOM element not found after cleanup.");
|
|
1702
1744
|
return;
|
|
1703
1745
|
}
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
y("VP Player script not loaded.");
|
|
1746
|
+
if (!window.vpPlayer && !window.vpVerticalPlayer) {
|
|
1747
|
+
h("VP Player script not loaded.");
|
|
1707
1748
|
return;
|
|
1708
1749
|
}
|
|
1709
|
-
const
|
|
1710
|
-
if (!
|
|
1711
|
-
|
|
1750
|
+
const z = T ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1751
|
+
if (!z) {
|
|
1752
|
+
h(`VP ${T ? "Vertical " : ""}Player script not loaded.`);
|
|
1712
1753
|
return;
|
|
1713
1754
|
}
|
|
1714
|
-
const
|
|
1755
|
+
const G = Ar({
|
|
1715
1756
|
videoUrl: n,
|
|
1716
|
-
fetchedPlaybackUrl:
|
|
1717
|
-
fetchedPlaylist:
|
|
1757
|
+
fetchedPlaybackUrl: g ?? void 0,
|
|
1758
|
+
fetchedPlaylist: m ?? void 0,
|
|
1718
1759
|
projectId: a,
|
|
1719
|
-
config:
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1760
|
+
config: P,
|
|
1761
|
+
isVerticalPlayer: T
|
|
1762
|
+
// Pass player type to config builder
|
|
1763
|
+
}), Z = z(k);
|
|
1764
|
+
if (!Z) {
|
|
1765
|
+
h(`Failed to create VP ${T ? "Vertical " : ""}Player instance.`);
|
|
1723
1766
|
return;
|
|
1724
1767
|
}
|
|
1725
|
-
f && l.current && (
|
|
1726
|
-
} catch (
|
|
1768
|
+
f && l.current && (Z.setup(G), d.current = Z, h(null));
|
|
1769
|
+
} catch (T) {
|
|
1727
1770
|
if (f) {
|
|
1728
|
-
const V =
|
|
1729
|
-
|
|
1771
|
+
const V = T instanceof Error ? T.message : String(T);
|
|
1772
|
+
h(V), console.error("VP Player initialization error:", T);
|
|
1730
1773
|
}
|
|
1731
1774
|
}
|
|
1732
1775
|
}, 150);
|
|
@@ -1734,37 +1777,37 @@ const gr = re.div`
|
|
|
1734
1777
|
f = !1, clearTimeout(F);
|
|
1735
1778
|
};
|
|
1736
1779
|
}, [
|
|
1737
|
-
h,
|
|
1738
|
-
_,
|
|
1739
|
-
n,
|
|
1740
1780
|
v,
|
|
1741
|
-
b,
|
|
1742
|
-
a,
|
|
1743
1781
|
S,
|
|
1744
|
-
|
|
1782
|
+
n,
|
|
1783
|
+
g,
|
|
1784
|
+
m,
|
|
1785
|
+
a,
|
|
1786
|
+
P,
|
|
1787
|
+
k,
|
|
1745
1788
|
w,
|
|
1746
1789
|
s
|
|
1747
1790
|
]), xe(() => () => {
|
|
1748
|
-
if (
|
|
1791
|
+
if (d.current) {
|
|
1749
1792
|
try {
|
|
1750
|
-
|
|
1793
|
+
d.current.destroy && d.current.destroy();
|
|
1751
1794
|
} catch (C) {
|
|
1752
|
-
console.warn(`Failed to destroy player ${
|
|
1795
|
+
console.warn(`Failed to destroy player ${k}:`, C);
|
|
1753
1796
|
}
|
|
1754
|
-
|
|
1797
|
+
d.current = null;
|
|
1755
1798
|
}
|
|
1756
|
-
const f = document.getElementById(
|
|
1799
|
+
const f = document.getElementById(k);
|
|
1757
1800
|
f && (f.innerHTML = "");
|
|
1758
|
-
}, [
|
|
1801
|
+
}, [k]), {
|
|
1759
1802
|
playerRef: l,
|
|
1760
|
-
playerInstanceRef:
|
|
1761
|
-
isScriptLoaded:
|
|
1762
|
-
isLoading:
|
|
1763
|
-
error:
|
|
1803
|
+
playerInstanceRef: d,
|
|
1804
|
+
isScriptLoaded: v,
|
|
1805
|
+
isLoading: S,
|
|
1806
|
+
error: R || p || w
|
|
1764
1807
|
};
|
|
1765
|
-
},
|
|
1766
|
-
var F,
|
|
1767
|
-
const { playerRef: w, playerInstanceRef:
|
|
1808
|
+
}, Ir = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: u, isReels: y = !1, hiddenClasses: l = [], onClose: d, className: v }) => {
|
|
1809
|
+
var F, T, V, J;
|
|
1810
|
+
const { playerRef: w, playerInstanceRef: b, isScriptLoaded: p, isLoading: h, error: g } = Cr({
|
|
1768
1811
|
playerId: e,
|
|
1769
1812
|
videoId: t,
|
|
1770
1813
|
version: r,
|
|
@@ -1773,36 +1816,36 @@ const gr = re.div`
|
|
|
1773
1816
|
playlistId: i,
|
|
1774
1817
|
scriptUrl: s,
|
|
1775
1818
|
config: c,
|
|
1776
|
-
apiKey:
|
|
1777
|
-
isReels:
|
|
1778
|
-
}), [
|
|
1779
|
-
var z,
|
|
1780
|
-
|
|
1781
|
-
},
|
|
1782
|
-
return
|
|
1783
|
-
}, pt = gt(void 0),
|
|
1784
|
-
const [t, r] =
|
|
1819
|
+
apiKey: u,
|
|
1820
|
+
isReels: y
|
|
1821
|
+
}), [m, S] = D(!0), R = () => y && S(!0), k = () => {
|
|
1822
|
+
var z, G;
|
|
1823
|
+
S(!1), (G = (z = b.current) == null ? void 0 : z.play) == null || G.call(z), d == null || d();
|
|
1824
|
+
}, P = (T = (F = c == null ? void 0 : c.config) == null ? void 0 : F.size) != null && T.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, f = (J = (V = c == null ? void 0 : c.config) == null ? void 0 : V.size) != null && J.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, C = Me(e, t);
|
|
1825
|
+
return g ? O.jsxs(Ne, { type: "error", children: ["An error occurred: ", g] }) : h || !p ? O.jsx(Ne, { type: "loading", children: "Loading..." }) : O.jsxs(O.Fragment, { children: [y && !m ? O.jsx("div", { onClick: R }) : null, !y && O.jsx("div", { children: O.jsx(Qe, { id: C, ref: w, width: P || "100%", height: f || "auto", $hiddenClasses: l, className: v }) }, C), y && m && O.jsx(vr, { onClick: k, className: v, children: O.jsx(br, { className: v, onClick: (z) => z.stopPropagation(), children: O.jsx("div", { children: O.jsx(Qe, { id: C, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: v }) }, C) }) })] });
|
|
1826
|
+
}, pt = gt(void 0), jr = ({ children: e }) => {
|
|
1827
|
+
const [t, r] = D(!1), [n, a] = D(null), [i, s] = D(null), c = ze((l) => {
|
|
1785
1828
|
try {
|
|
1786
|
-
const
|
|
1787
|
-
a({ ...l, playerId:
|
|
1829
|
+
const d = Me(l.playerId, l.videoId);
|
|
1830
|
+
a({ ...l, playerId: d }), r(!0), s(null);
|
|
1788
1831
|
} catch {
|
|
1789
1832
|
s("Failed to show player.");
|
|
1790
1833
|
}
|
|
1791
|
-
}, []),
|
|
1834
|
+
}, []), u = ze(() => {
|
|
1792
1835
|
r(!1), a(null), s(null);
|
|
1793
|
-
}, []),
|
|
1836
|
+
}, []), y = tt(() => ({
|
|
1794
1837
|
showPlayer: c,
|
|
1795
|
-
hidePlayer:
|
|
1838
|
+
hidePlayer: u,
|
|
1796
1839
|
isPlayerVisible: t,
|
|
1797
1840
|
playerParams: n
|
|
1798
|
-
}), [c,
|
|
1799
|
-
return
|
|
1800
|
-
},
|
|
1841
|
+
}), [c, u, t, n]);
|
|
1842
|
+
return O.jsxs(pt.Provider, { value: y, children: [e, i && O.jsx(Ne, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && O.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
|
+
}, $r = () => {
|
|
1801
1844
|
const e = et(pt);
|
|
1802
1845
|
if (!e)
|
|
1803
1846
|
throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
1804
1847
|
return e;
|
|
1805
|
-
},
|
|
1848
|
+
}, Nr = {
|
|
1806
1849
|
projectId: "vp-player-projectId",
|
|
1807
1850
|
video: {
|
|
1808
1851
|
file: "",
|
|
@@ -1835,7 +1878,7 @@ const gr = re.div`
|
|
|
1835
1878
|
shareButton: !0
|
|
1836
1879
|
}
|
|
1837
1880
|
}
|
|
1838
|
-
},
|
|
1881
|
+
}, Lr = {
|
|
1839
1882
|
config: {
|
|
1840
1883
|
autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
|
|
1841
1884
|
muted: !0
|
|
@@ -1845,7 +1888,7 @@ const gr = re.div`
|
|
|
1845
1888
|
autoplay: !0,
|
|
1846
1889
|
muted: !0
|
|
1847
1890
|
}
|
|
1848
|
-
},
|
|
1891
|
+
}, Ie = {
|
|
1849
1892
|
video: {
|
|
1850
1893
|
advertising: !0,
|
|
1851
1894
|
ads: {
|
|
@@ -1859,11 +1902,11 @@ const gr = re.div`
|
|
|
1859
1902
|
}, Vr = (e, t, r = "time", n = 0) => {
|
|
1860
1903
|
var a;
|
|
1861
1904
|
return {
|
|
1862
|
-
...
|
|
1905
|
+
...Ie,
|
|
1863
1906
|
video: {
|
|
1864
|
-
...
|
|
1907
|
+
...Ie.video,
|
|
1865
1908
|
ads: {
|
|
1866
|
-
...(a =
|
|
1909
|
+
...(a = Ie.video) == null ? void 0 : a.ads,
|
|
1867
1910
|
adBreaks: [
|
|
1868
1911
|
{
|
|
1869
1912
|
adTagUrl: t,
|
|
@@ -1875,28 +1918,28 @@ const gr = re.div`
|
|
|
1875
1918
|
}
|
|
1876
1919
|
}
|
|
1877
1920
|
};
|
|
1878
|
-
},
|
|
1921
|
+
}, Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Ur = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
|
|
1879
1922
|
export {
|
|
1880
1923
|
Ur as AD_TAG_LINEAR_URL,
|
|
1881
1924
|
Wr as AD_TAG_SKIPPABLE_LINEAR_URL,
|
|
1882
|
-
|
|
1883
|
-
|
|
1925
|
+
Mr as BIG_BUCK_BUNNY_URL,
|
|
1926
|
+
Br as ELEPHANTS_DREAM_URL,
|
|
1884
1927
|
vr as Overlay,
|
|
1885
1928
|
Dr as PEXELS_THUMBNAIL_URL,
|
|
1886
1929
|
zr as PEXELS_VERTICAL_VIDEO_URL,
|
|
1887
1930
|
Qe as PlayerContainer,
|
|
1888
1931
|
br as PlayerWrapper,
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1932
|
+
Ir as VPPlayer,
|
|
1933
|
+
jr as VPPlayerProvider,
|
|
1934
|
+
Lr as baseConfig,
|
|
1935
|
+
Ie as baseConfigWithAds,
|
|
1893
1936
|
Fr as baseConfigWithAutoplay,
|
|
1894
1937
|
Ar as buildVPPlayerConfig,
|
|
1895
|
-
|
|
1896
|
-
|
|
1938
|
+
Nr as defaultVPPlayerConfig,
|
|
1939
|
+
Tr as extractVideoId,
|
|
1897
1940
|
Vr as getAdConfig,
|
|
1898
|
-
|
|
1899
|
-
|
|
1941
|
+
$r as useVPPlayer,
|
|
1942
|
+
Cr as useVPPlayerLogic,
|
|
1900
1943
|
Pr as useVPPlayerScript,
|
|
1901
1944
|
Sr as useVideoData
|
|
1902
1945
|
};
|