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