@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.1 → 1.0.31-beta.12
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 +826 -544
- package/dist/react-gjirafa-vp-player.es.js +1030 -1279
- package/dist/react-gjirafa-vp-player.umd.js +9 -9
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as se 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
3
|
var ke = { exports: {} }, me = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
@@ -10,29 +10,29 @@ var ke = { exports: {} }, me = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var 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(n, a,
|
|
19
|
-
var
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
} else
|
|
25
|
-
return a =
|
|
18
|
+
function t(n, a, s) {
|
|
19
|
+
var f = null;
|
|
20
|
+
if (s !== void 0 && (f = "" + s), a.key !== void 0 && (f = "" + a.key), "key" in a) {
|
|
21
|
+
s = {};
|
|
22
|
+
for (var d in a)
|
|
23
|
+
d !== "key" && (s[d] = a[d]);
|
|
24
|
+
} else s = a;
|
|
25
|
+
return a = s.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: n,
|
|
28
|
-
key:
|
|
28
|
+
key: f,
|
|
29
29
|
ref: a !== void 0 ? a : null,
|
|
30
|
-
props:
|
|
30
|
+
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
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
|
|
@@ -42,242 +42,242 @@ var ve = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
function e(
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
45
|
+
var Ge;
|
|
46
|
+
function Sr() {
|
|
47
|
+
return Ge || (Ge = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
|
+
function e(i) {
|
|
49
|
+
if (i == null) return null;
|
|
50
|
+
if (typeof i == "function")
|
|
51
|
+
return i.$$typeof === J ? null : i.displayName || i.name || null;
|
|
52
|
+
if (typeof i == "string") return i;
|
|
53
|
+
switch (i) {
|
|
54
|
+
case x:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case T:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case k:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case M:
|
|
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
|
-
),
|
|
71
|
-
case
|
|
70
|
+
), i.$$typeof) {
|
|
71
|
+
case b:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case N:
|
|
74
|
-
return o.displayName || "Context";
|
|
75
|
-
case T:
|
|
76
|
-
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
73
|
case z:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
return i.displayName || "Context";
|
|
75
|
+
case F:
|
|
76
|
+
return (i._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case D:
|
|
78
|
+
var m = i.render;
|
|
79
|
+
return i = i.displayName, i || (i = m.displayName || m.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
80
|
+
case G:
|
|
81
|
+
return m = i.displayName || null, m !== null ? m : e(i.type) || "Memo";
|
|
82
|
+
case K:
|
|
83
|
+
m = i._payload, i = i._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(i(m));
|
|
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(
|
|
96
|
+
r(i);
|
|
97
97
|
var m = !1;
|
|
98
98
|
} catch {
|
|
99
99
|
m = !0;
|
|
100
100
|
}
|
|
101
101
|
if (m) {
|
|
102
102
|
m = console;
|
|
103
|
-
var
|
|
104
|
-
return
|
|
103
|
+
var o = m.error, c = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
104
|
+
return o.call(
|
|
105
105
|
m,
|
|
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
|
+
c
|
|
108
|
+
), r(i);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function n(
|
|
112
|
-
if (
|
|
113
|
-
if (typeof
|
|
111
|
+
function n(i) {
|
|
112
|
+
if (i === x) return "<>";
|
|
113
|
+
if (typeof i == "object" && i !== null && i.$$typeof === K)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var m = e(
|
|
116
|
+
var m = e(i);
|
|
117
117
|
return m ? "<" + m + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var
|
|
124
|
-
return
|
|
123
|
+
var i = Y.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 m = Object.getOwnPropertyDescriptor(
|
|
129
|
+
function f(i) {
|
|
130
|
+
if (p.call(i, "key")) {
|
|
131
|
+
var m = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
132
132
|
if (m && m.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return i.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function d(i, m) {
|
|
137
|
+
function o() {
|
|
138
|
+
re || (re = !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
|
m
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
o.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
144
|
+
get: o,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
return
|
|
148
|
+
function w() {
|
|
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:
|
|
154
|
+
function y(i, m, o, c, L, A) {
|
|
155
|
+
var h = o.ref;
|
|
156
|
+
return i = {
|
|
157
|
+
$$typeof: C,
|
|
158
|
+
type: i,
|
|
159
159
|
key: m,
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
160
|
+
props: o,
|
|
161
|
+
_owner: c
|
|
162
|
+
}, (h !== void 0 ? h : null) !== null ? Object.defineProperty(i, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
165
|
-
}) : Object.defineProperty(
|
|
164
|
+
get: w
|
|
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: L
|
|
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: A
|
|
185
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function g(i, m, o, c, L, A) {
|
|
188
|
+
var h = m.children;
|
|
189
|
+
if (h !== void 0)
|
|
190
|
+
if (c)
|
|
191
|
+
if (B(h)) {
|
|
192
|
+
for (c = 0; c < h.length; c++)
|
|
193
|
+
v(h[c]);
|
|
194
|
+
Object.freeze && Object.freeze(h);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
var
|
|
203
|
-
return
|
|
199
|
+
else v(h);
|
|
200
|
+
if (p.call(m, "key")) {
|
|
201
|
+
h = e(i);
|
|
202
|
+
var E = Object.keys(m).filter(function(l) {
|
|
203
|
+
return l !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
c = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", ce[h + c] || (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
|
+
c,
|
|
213
|
+
h,
|
|
214
|
+
E,
|
|
215
|
+
h
|
|
216
|
+
), ce[h + c] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
223
|
-
return
|
|
224
|
-
|
|
225
|
-
typeof
|
|
226
|
-
),
|
|
218
|
+
if (h = null, o !== void 0 && (t(o), h = "" + o), f(m) && (t(m.key), h = "" + m.key), "key" in m) {
|
|
219
|
+
o = {};
|
|
220
|
+
for (var u in m)
|
|
221
|
+
u !== "key" && (o[u] = m[u]);
|
|
222
|
+
} else o = m;
|
|
223
|
+
return h && d(
|
|
224
|
+
o,
|
|
225
|
+
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
226
|
+
), y(
|
|
227
|
+
i,
|
|
228
|
+
h,
|
|
227
229
|
o,
|
|
228
|
-
O,
|
|
229
|
-
P,
|
|
230
230
|
a(),
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
L,
|
|
232
|
+
A
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
235
|
+
function v(i) {
|
|
236
|
+
j(i) ? i._store && (i._store.validated = 1) : typeof i == "object" && i !== null && i.$$typeof === K && (i._payload.status === "fulfilled" ? j(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 j(i) {
|
|
239
|
+
return typeof i == "object" && i !== null && i.$$typeof === C;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var $ = br, C = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), z = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), K = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), J = Symbol.for("react.client.reference"), Y = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, p = Object.prototype.hasOwnProperty, B = Array.isArray, ee = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
245
|
-
react_stack_bottom_frame: function(
|
|
246
|
-
return
|
|
244
|
+
$ = {
|
|
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
|
-
|
|
249
|
+
var re, V = {}, te = $.react_stack_bottom_frame.bind(
|
|
250
|
+
$,
|
|
251
|
+
s
|
|
252
|
+
)(), ne = ee(n(s)), ce = {};
|
|
253
|
+
ye.Fragment = x, ye.jsx = function(i, m, o) {
|
|
254
|
+
var c = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return g(
|
|
256
|
+
i,
|
|
257
257
|
m,
|
|
258
|
-
|
|
258
|
+
o,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
c ? Error("react-stack-top-frame") : te,
|
|
261
|
+
c ? ee(n(i)) : ne
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return
|
|
266
|
-
|
|
263
|
+
}, ye.jsxs = function(i, m, o) {
|
|
264
|
+
var c = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return g(
|
|
266
|
+
i,
|
|
267
267
|
m,
|
|
268
|
-
|
|
268
|
+
o,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
c ? Error("react-stack-top-frame") : te,
|
|
271
|
+
c ? ee(n(i)) : ne
|
|
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
|
|
280
|
+
var I = Er();
|
|
281
281
|
function Ve() {
|
|
282
282
|
return Ve = Object.assign ? Object.assign.bind() : function(e) {
|
|
283
283
|
for (var r = 1; r < arguments.length; r++) {
|
|
@@ -287,14 +287,14 @@ function Ve() {
|
|
|
287
287
|
return e;
|
|
288
288
|
}, Ve.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Rr(e) {
|
|
291
291
|
if (e.sheet)
|
|
292
292
|
return e.sheet;
|
|
293
293
|
for (var r = 0; r < document.styleSheets.length; r++)
|
|
294
294
|
if (document.styleSheets[r].ownerNode === e)
|
|
295
295
|
return document.styleSheets[r];
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function _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
|
}
|
|
@@ -302,20 +302,20 @@ var Tr = /* @__PURE__ */ (function() {
|
|
|
302
302
|
function e(t) {
|
|
303
303
|
var n = this;
|
|
304
304
|
this._insertTag = function(a) {
|
|
305
|
-
var
|
|
306
|
-
n.tags.length === 0 ? n.insertionPoint ?
|
|
305
|
+
var s;
|
|
306
|
+
n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, s), n.tags.push(a);
|
|
307
307
|
}, this.isSpeedy = t.speedy === void 0 ? !0 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
|
|
308
308
|
}
|
|
309
309
|
var r = e.prototype;
|
|
310
310
|
return r.hydrate = function(n) {
|
|
311
311
|
n.forEach(this._insertTag);
|
|
312
312
|
}, r.insert = function(n) {
|
|
313
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(_r(this));
|
|
314
314
|
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var
|
|
316
|
+
var s = Rr(a);
|
|
317
317
|
try {
|
|
318
|
-
|
|
318
|
+
s.insertRule(n, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
} else
|
|
@@ -327,32 +327,32 @@ var Tr = /* @__PURE__ */ (function() {
|
|
|
327
327
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(),
|
|
331
|
-
function
|
|
332
|
-
return
|
|
330
|
+
})(), q = "-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 ae(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function We(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
358
|
function Se(e, r) {
|
|
@@ -361,30 +361,30 @@ function Se(e, r) {
|
|
|
361
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: n, props: a, children:
|
|
364
|
+
var je = 1, de = 1, lr = 0, H = 0, N = 0, he = "";
|
|
365
|
+
function Me(e, r, t, n, a, s, f) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: je, column: de, length: f, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
368
|
+
function ve(e, r) {
|
|
369
|
+
return Or(Me("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function Nr() {
|
|
372
|
+
return N;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function Lr() {
|
|
375
|
+
return N = H > 0 ? U(he, --H) : 0, de--, N === 10 && (de = 1, je--), N;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
377
|
+
function X() {
|
|
378
|
+
return N = H < lr ? U(he, H++) : 0, de++, N === 10 && (de = 1, je++), N;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function ie() {
|
|
381
|
+
return U(he, H);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function _e() {
|
|
384
|
+
return H;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function Pe(e, r) {
|
|
387
|
+
return be(he, e, r);
|
|
388
388
|
}
|
|
389
389
|
function xe(e) {
|
|
390
390
|
switch (e) {
|
|
@@ -424,260 +424,260 @@ function xe(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function ur(e) {
|
|
428
|
+
return je = de = 1, lr = ae(he = e), H = 0, [];
|
|
429
429
|
}
|
|
430
430
|
function fr(e) {
|
|
431
|
-
return
|
|
431
|
+
return he = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return cr(
|
|
433
|
+
function Te(e) {
|
|
434
|
+
return cr(Pe(H - 1, ze(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
for (; (
|
|
438
|
-
|
|
439
|
-
return xe(e) > 2 || xe(
|
|
436
|
+
function Vr(e) {
|
|
437
|
+
for (; (N = ie()) && N < 33; )
|
|
438
|
+
X();
|
|
439
|
+
return xe(e) > 2 || xe(N) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function Ir(e, r) {
|
|
442
|
+
for (; --r && X() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return Pe(e, _e() + (r < 6 && ie() == 32 && X() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
448
|
-
switch (
|
|
446
|
+
function ze(e) {
|
|
447
|
+
for (; X(); )
|
|
448
|
+
switch (N) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
|
-
return
|
|
451
|
+
return H;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && ze(N);
|
|
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
|
+
X();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return H;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (;
|
|
470
|
-
if (e +
|
|
468
|
+
function zr(e, r) {
|
|
469
|
+
for (; X() && e + N !== 57; )
|
|
470
|
+
if (e + N === 84 && ie() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + Pe(r, H - 1) + "*" + Oe(e === 47 ? e : X());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
for (; !xe(
|
|
476
|
-
|
|
477
|
-
return
|
|
474
|
+
function Dr(e) {
|
|
475
|
+
for (; !xe(ie()); )
|
|
476
|
+
X();
|
|
477
|
+
return Pe(e, H);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return fr(
|
|
479
|
+
function Ur(e) {
|
|
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, n, a, s, f, d, w) {
|
|
483
|
+
for (var y = 0, g = 0, v = f, j = 0, $ = 0, C = 0, b = 1, x = 1, k = 1, T = 0, F = "", z = a, D = s, M = n, S = F; x; )
|
|
484
|
+
switch (C = T, T = X()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (
|
|
488
|
-
|
|
487
|
+
if (C != 108 && U(S, v - 1) == 58) {
|
|
488
|
+
Ie(S += _(Te(T), "&", "&\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(T);
|
|
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(C);
|
|
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 (ie()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
Se(
|
|
513
|
+
Se(Wr(zr(X(), _e()), r, t), w);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
S += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
|
-
case 123 *
|
|
521
|
-
|
|
520
|
+
case 123 * b:
|
|
521
|
+
d[y++] = ae(S) * k;
|
|
522
522
|
// } ; \0
|
|
523
|
-
case 125 *
|
|
523
|
+
case 125 * b:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
|
-
switch (
|
|
526
|
+
switch (T) {
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
x = 0;
|
|
531
531
|
// ;
|
|
532
|
-
case 59 +
|
|
533
|
-
|
|
532
|
+
case 59 + g:
|
|
533
|
+
k == -1 && (S = _(S, /\f/g, "")), $ > 0 && ae(S) - v && Se($ > 32 ? Je(S + ";", n, t, v - 1) : Je(_(S, " ", "") + ";", n, t, v - 2), w);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
S += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (Se(
|
|
541
|
-
if (
|
|
542
|
-
|
|
540
|
+
if (Se(M = Xe(S, r, t, y, g, a, d, F, z = [], D = [], v), s), T === 123)
|
|
541
|
+
if (g === 0)
|
|
542
|
+
Ae(S, r, M, M, z, s, v, d, D);
|
|
543
543
|
else
|
|
544
|
-
switch (
|
|
544
|
+
switch (j === 99 && U(S, 3) === 110 ? 100 : j) {
|
|
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, M, M, n && Se(Xe(e, M, M, 0, 0, a, d, F, a, z = [], v), D), a, D, v, d, n ? z : D);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
Ae(S, M, M, M, [""], D, 0, d, D);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
y = g = $ = 0, b = k = 1, F = S = "", v = f;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
|
|
560
|
+
v = 1 + ae(S), $ = C;
|
|
561
561
|
default:
|
|
562
|
-
if (
|
|
563
|
-
if (
|
|
564
|
-
--
|
|
565
|
-
else if (
|
|
562
|
+
if (b < 1) {
|
|
563
|
+
if (T == 123)
|
|
564
|
+
--b;
|
|
565
|
+
else if (T == 125 && b++ == 0 && Lr() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (S += Oe(T), T * b) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
k = g > 0 ? 1 : (S += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
|
|
575
|
+
d[y++] = (ae(S) - 1) * k, k = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
|
|
579
|
+
ie() === 45 && (S += Te(X())), j = ie(), g = v = ae(F = S += Dr(_e())), T++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
|
|
583
|
+
C === 45 && ae(S) == 2 && (b = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
return
|
|
586
|
+
return s;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
for (var
|
|
590
|
-
for (var
|
|
591
|
-
(
|
|
592
|
-
return
|
|
588
|
+
function Xe(e, r, t, n, a, s, f, d, w, y, g) {
|
|
589
|
+
for (var v = a - 1, j = a === 0 ? s : [""], $ = We(j), C = 0, b = 0, x = 0; C < n; ++C)
|
|
590
|
+
for (var k = 0, T = be(e, v + 1, v = Cr(b = f[C])), F = e; k < $; ++k)
|
|
591
|
+
(F = cr(b > 0 ? j[k] + " " + T : _(T, /&\f/g, j[k]))) && (w[x++] = F);
|
|
592
|
+
return Me(e, r, t, a === 0 ? De : d, w, y, g);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function Wr(e, r, t) {
|
|
595
|
+
return Me(e, r, t, ir, Oe(Nr()), be(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
597
|
+
function Je(e, r, t, n) {
|
|
598
|
+
return Me(e, r, t, Ue, be(e, 0, n), be(e, n + 1, -1), n);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "", n =
|
|
600
|
+
function fe(e, r) {
|
|
601
|
+
for (var t = "", n = We(e), a = 0; a < n; a++)
|
|
602
602
|
t += r(e[a], a, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Yr(e, r, t, n) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case
|
|
607
|
+
case $r:
|
|
608
608
|
if (e.children.length) break;
|
|
609
|
-
case
|
|
610
|
-
case
|
|
609
|
+
case Ar:
|
|
610
|
+
case Ue:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case ir:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
614
|
+
case sr:
|
|
615
|
+
return e.return = e.value + "{" + fe(e.children, n) + "}";
|
|
616
|
+
case De:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return ae(t = fe(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
623
|
-
return function(t, n, a,
|
|
624
|
-
for (var
|
|
625
|
-
|
|
626
|
-
return
|
|
621
|
+
function qr(e) {
|
|
622
|
+
var r = We(e);
|
|
623
|
+
return function(t, n, a, s) {
|
|
624
|
+
for (var f = "", d = 0; d < r; d++)
|
|
625
|
+
f += e[d](t, n, a, 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 a = 0,
|
|
642
|
-
|
|
643
|
-
return
|
|
644
|
-
},
|
|
640
|
+
var Gr = function(r, t, n) {
|
|
641
|
+
for (var a = 0, s = 0; a = s, s = ie(), a === 38 && s === 12 && (t[n] = 1), !xe(s); )
|
|
642
|
+
X();
|
|
643
|
+
return Pe(r, H);
|
|
644
|
+
}, Br = function(r, t) {
|
|
645
645
|
var n = -1, a = 44;
|
|
646
646
|
do
|
|
647
647
|
switch (xe(a)) {
|
|
648
648
|
case 0:
|
|
649
|
-
a === 38 &&
|
|
649
|
+
a === 38 && ie() === 12 && (t[n] = 1), r[n] += Gr(H - 1, t, n);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[n] +=
|
|
652
|
+
r[n] += Te(a);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
655
|
if (a === 44) {
|
|
656
|
-
r[++n] =
|
|
656
|
+
r[++n] = ie() === 58 ? "&\f" : "", t[n] = r[n].length;
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[n] +=
|
|
661
|
+
r[n] += Oe(a);
|
|
662
662
|
}
|
|
663
|
-
while (a =
|
|
663
|
+
while (a = X());
|
|
664
664
|
return r;
|
|
665
|
-
},
|
|
666
|
-
return fr(
|
|
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
671
|
for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
|
|
672
672
|
if (n = n.parent, !n) return;
|
|
673
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
674
|
-
|
|
675
|
-
for (var
|
|
676
|
-
for (var
|
|
677
|
-
r.props[
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Ze.get(n)) && !a) {
|
|
674
|
+
Ze.set(r, !0);
|
|
675
|
+
for (var s = [], f = Xr(t, s), d = n.props, w = 0, y = 0; w < f.length; w++)
|
|
676
|
+
for (var g = 0; g < d.length; g++, y++)
|
|
677
|
+
r.props[y] = s[w] ? f[w].replace(/&\f/g, d[g]) : d[g] + " " + f[w];
|
|
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
|
|
@@ -685,11 +685,11 @@ var Jr = function(r, t, n) {
|
|
|
685
685
|
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
switch (
|
|
688
|
+
function pr(e, r) {
|
|
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 hr(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 + q + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
733
|
-
return
|
|
733
|
+
return R + e + q + e + e;
|
|
734
734
|
// order
|
|
735
735
|
case 6165:
|
|
736
|
-
return
|
|
736
|
+
return R + e + q + "flex-" + e + e;
|
|
737
737
|
// align-items
|
|
738
738
|
case 5187:
|
|
739
|
-
return
|
|
739
|
+
return R + e + _(e, /(\w+).+(:[^]+)/, R + "box-$1$2" + q + "flex-$1$2") + e;
|
|
740
740
|
// align-self
|
|
741
741
|
case 5443:
|
|
742
|
-
return
|
|
742
|
+
return R + e + q + "flex-item-" + _(e, /flex-|-self/, "") + e;
|
|
743
743
|
// align-content
|
|
744
744
|
case 4675:
|
|
745
|
-
return
|
|
745
|
+
return R + e + q + "flex-line-pack" + _(e, /align-content|flex-|-self/, "") + e;
|
|
746
746
|
// flex-shrink
|
|
747
747
|
case 5548:
|
|
748
|
-
return
|
|
748
|
+
return R + e + q + _(e, "shrink", "negative") + e;
|
|
749
749
|
// flex-basis
|
|
750
750
|
case 5292:
|
|
751
|
-
return
|
|
751
|
+
return R + e + q + _(e, "basis", "preferred-size") + e;
|
|
752
752
|
// flex-grow
|
|
753
753
|
case 6060:
|
|
754
|
-
return
|
|
754
|
+
return R + "box-" + _(e, "-grow", "") + R + e + q + _(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" + q + "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,135 +784,135 @@ function hr(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (
|
|
787
|
+
if (ae(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, ae(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" + q + "$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 + q + _(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
819
819
|
// vertical-r(l)
|
|
820
820
|
case 108:
|
|
821
|
-
return
|
|
821
|
+
return R + e + q + _(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
822
822
|
// horizontal(-)tb
|
|
823
823
|
case 45:
|
|
824
|
-
return
|
|
824
|
+
return R + e + q + _(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return R + e + q + e + e;
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Qr = function(r, t, n, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case Ue:
|
|
833
|
+
r.return = pr(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
836
|
-
return
|
|
837
|
-
value:
|
|
835
|
+
case sr:
|
|
836
|
+
return fe([ve(r, {
|
|
837
|
+
value: _(r.value, "@", "@" + R)
|
|
838
838
|
})], a);
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return Fr(r.props, function(
|
|
841
|
-
switch (
|
|
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: [
|
|
845
|
+
return fe([ve(r, {
|
|
846
|
+
props: [_(s, /:(read-\w+)/, ":" + Ce + "$1")]
|
|
847
847
|
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
851
|
-
props: [
|
|
852
|
-
}),
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
850
|
+
return fe([ve(r, {
|
|
851
|
+
props: [_(s, /:(plac\w+)/, ":" + R + "input-$1")]
|
|
852
|
+
}), ve(r, {
|
|
853
|
+
props: [_(s, /:(plac\w+)/, ":" + Ce + "$1")]
|
|
854
|
+
}), ve(r, {
|
|
855
|
+
props: [_(s, /:(plac\w+)/, q + "input-$1")]
|
|
856
856
|
})], a);
|
|
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
864
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
865
|
-
Array.prototype.forEach.call(n, function(
|
|
866
|
-
var
|
|
867
|
-
|
|
865
|
+
Array.prototype.forEach.call(n, function(b) {
|
|
866
|
+
var x = b.getAttribute("data-emotion");
|
|
867
|
+
x.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var a = r.stylisPlugins ||
|
|
871
|
-
|
|
870
|
+
var a = 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
|
-
function(
|
|
876
|
-
for (var
|
|
877
|
-
|
|
878
|
-
|
|
875
|
+
function(b) {
|
|
876
|
+
for (var x = b.getAttribute("data-emotion").split(" "), k = 1; k < x.length; k++)
|
|
877
|
+
s[x[k]] = !0;
|
|
878
|
+
d.push(b);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var
|
|
881
|
+
var w, y = [Jr, Zr];
|
|
882
882
|
{
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
})],
|
|
886
|
-
return
|
|
883
|
+
var g, v = [Yr, Hr(function(b) {
|
|
884
|
+
g.insert(b);
|
|
885
|
+
})], j = qr(y.concat(a, v)), $ = function(x) {
|
|
886
|
+
return fe(Ur(x), j);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
w = function(x, k, T, F) {
|
|
889
|
+
g = T, $(x ? x + "{" + k.styles + "}" : k.styles), F && (C.inserted[k.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var C = {
|
|
893
893
|
key: t,
|
|
894
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: w
|
|
906
906
|
};
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
function
|
|
907
|
+
return C.sheet.hydrate(d), C;
|
|
908
|
+
}, rt = !0;
|
|
909
|
+
function tt(e, r, t) {
|
|
910
910
|
var n = "";
|
|
911
911
|
return t.split(" ").forEach(function(a) {
|
|
912
912
|
e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
|
|
913
913
|
}), n;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var hr = function(r, t, n) {
|
|
916
916
|
var a = r.key + "-" + t.name;
|
|
917
917
|
// we only need to add the styles to the registered cache if the
|
|
918
918
|
// class name could be used further down
|
|
@@ -923,18 +923,18 @@ var yr = function(r, t, n) {
|
|
|
923
923
|
// in node since emotion-server relies on whether a style is in
|
|
924
924
|
// the registered cache to know whether a style is global or not
|
|
925
925
|
// also, note that this check will be dead code eliminated in the browser
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
|
|
926
|
+
rt === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
|
|
927
|
+
}, nt = function(r, t, n) {
|
|
928
|
+
hr(r, t, n);
|
|
929
929
|
var a = 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 ? "." + a : "", s, r.sheet, !0), s = s.next;
|
|
934
|
+
while (s !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function at(e) {
|
|
938
938
|
for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
|
|
939
939
|
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
|
|
940
940
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
@@ -953,7 +953,7 @@ function st(e) {
|
|
|
953
953
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
954
954
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
955
955
|
}
|
|
956
|
-
var
|
|
956
|
+
var ot = {
|
|
957
957
|
animationIterationCount: 1,
|
|
958
958
|
aspectRatio: 1,
|
|
959
959
|
borderImageOutset: 1,
|
|
@@ -1002,28 +1002,28 @@ var lt = {
|
|
|
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
|
|
1016
|
+
return t.replace(st, function(n, a, s) {
|
|
1017
|
+
return oe = {
|
|
1018
1018
|
name: a,
|
|
1019
|
-
styles:
|
|
1020
|
-
next:
|
|
1019
|
+
styles: s,
|
|
1020
|
+
next: oe
|
|
1021
1021
|
}, a;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
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
1029
|
var n = t;
|
|
@@ -1035,188 +1035,188 @@ function Pe(e, r, t) {
|
|
|
1035
1035
|
case "object": {
|
|
1036
1036
|
var a = t;
|
|
1037
1037
|
if (a.anim === 1)
|
|
1038
|
-
return
|
|
1038
|
+
return oe = {
|
|
1039
1039
|
name: a.name,
|
|
1040
1040
|
styles: a.styles,
|
|
1041
|
-
next:
|
|
1041
|
+
next: oe
|
|
1042
1042
|
}, a.name;
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1047
|
-
for (;
|
|
1048
|
-
|
|
1049
|
-
name:
|
|
1050
|
-
styles:
|
|
1051
|
-
next:
|
|
1052
|
-
},
|
|
1053
|
-
var
|
|
1054
|
-
return
|
|
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
|
+
oe = {
|
|
1049
|
+
name: f.name,
|
|
1050
|
+
styles: f.styles,
|
|
1051
|
+
next: oe
|
|
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 w = oe, y = t(e);
|
|
1061
|
+
return oe = w, we(e, r, y);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var g = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
|
-
return
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1068
|
+
return g;
|
|
1069
|
+
var v = r[g];
|
|
1070
|
+
return v !== void 0 ? v : g;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function ct(e, r, t) {
|
|
1073
1073
|
var n = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
1075
|
for (var a = 0; a < t.length; a++)
|
|
1076
|
-
n +=
|
|
1076
|
+
n += we(e, r, t[a]) + ";";
|
|
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 ? n += s + "{" + r[d] + "}" : Qe(d) && (n += 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 w = 0; w < f.length; w++)
|
|
1085
|
+
Qe(f[w]) && (n += Ne(s) + ":" + Ke(s, f[w]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var
|
|
1088
|
-
switch (
|
|
1087
|
+
var y = we(e, r, f);
|
|
1088
|
+
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
n +=
|
|
1091
|
+
n += Ne(s) + ":" + y + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
1095
|
-
n +=
|
|
1095
|
+
n += s + "{" + y + "}";
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
return n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1101
|
+
var er = /label:\s*([^\s;{]+)\s*(;|$)/g, oe;
|
|
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
1105
|
var n = !0, a = "";
|
|
1106
|
-
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1109
|
-
n = !1, a +=
|
|
1106
|
+
oe = void 0;
|
|
1107
|
+
var s = e[0];
|
|
1108
|
+
if (s == null || s.raw === void 0)
|
|
1109
|
+
n = !1, a += we(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
|
-
var
|
|
1112
|
-
a +=
|
|
1111
|
+
var f = s;
|
|
1112
|
+
a += f[0];
|
|
1113
1113
|
}
|
|
1114
|
-
for (var
|
|
1115
|
-
if (a +=
|
|
1116
|
-
var
|
|
1117
|
-
a +=
|
|
1114
|
+
for (var d = 1; d < e.length; d++)
|
|
1115
|
+
if (a += we(t, r, e[d]), n) {
|
|
1116
|
+
var w = s;
|
|
1117
|
+
a += w[d];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var
|
|
1121
|
-
|
|
1122
|
-
var
|
|
1119
|
+
er.lastIndex = 0;
|
|
1120
|
+
for (var y = "", g; (g = er.exec(a)) !== null; )
|
|
1121
|
+
y += "-" + g[1];
|
|
1122
|
+
var v = at(a) + y;
|
|
1123
1123
|
return {
|
|
1124
|
-
name:
|
|
1124
|
+
name: v,
|
|
1125
1125
|
styles: a,
|
|
1126
|
-
next:
|
|
1126
|
+
next: oe
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var ut = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, ft = se.useInsertionEffect ? se.useInsertionEffect : !1, dt = ft || ut, mr = /* @__PURE__ */ se.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
|
-
|
|
1143
|
-
var
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var a =
|
|
1142
|
+
mr.Provider;
|
|
1143
|
+
var pt = function(r) {
|
|
1144
|
+
return /* @__PURE__ */ or(function(t, n) {
|
|
1145
|
+
var a = xr(mr);
|
|
1146
1146
|
return r(t, a, n);
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, ht = /* @__PURE__ */ se.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
|
-
},
|
|
1159
|
+
r.charCodeAt(0) > 96 ? yt : vt;
|
|
1160
|
+
}, tr = function(r, t, n) {
|
|
1161
1161
|
var a;
|
|
1162
1162
|
if (t) {
|
|
1163
|
-
var
|
|
1164
|
-
a = r.__emotion_forwardProp &&
|
|
1165
|
-
return r.__emotion_forwardProp(
|
|
1166
|
-
} :
|
|
1163
|
+
var s = t.shouldForwardProp;
|
|
1164
|
+
a = r.__emotion_forwardProp && s ? function(f) {
|
|
1165
|
+
return r.__emotion_forwardProp(f) && s(f);
|
|
1166
|
+
} : s;
|
|
1167
1167
|
}
|
|
1168
1168
|
return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
|
|
1169
|
-
},
|
|
1169
|
+
}, bt = function(r) {
|
|
1170
1170
|
var t = r.cache, n = r.serialized, a = r.isStringTag;
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1171
|
+
return hr(t, n, a), dt(function() {
|
|
1172
|
+
return nt(t, n, a);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1175
|
-
var n = r.__emotion_real === r, a = n && r.__emotion_base || r,
|
|
1176
|
-
t !== void 0 && (
|
|
1177
|
-
var
|
|
1174
|
+
}, xt = function e(r, t) {
|
|
1175
|
+
var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, f;
|
|
1176
|
+
t !== void 0 && (s = t.label, f = t.target);
|
|
1177
|
+
var d = tr(r, t, n), w = d || rr(a), y = !w("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1181
|
-
|
|
1179
|
+
var g = arguments, v = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && v.push("label:" + s + ";"), g[0] == null || g[0].raw === void 0)
|
|
1181
|
+
v.push.apply(v, g);
|
|
1182
1182
|
else {
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1185
|
-
for (var
|
|
1186
|
-
|
|
1183
|
+
var j = g[0];
|
|
1184
|
+
v.push(j[0]);
|
|
1185
|
+
for (var $ = g.length, C = 1; C < $; C++)
|
|
1186
|
+
v.push(g[C], j[C]);
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1189
|
-
var
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
for (var
|
|
1193
|
-
|
|
1194
|
-
|
|
1188
|
+
var b = pt(function(x, k, T) {
|
|
1189
|
+
var F = y && x.as || a, z = "", D = [], M = x;
|
|
1190
|
+
if (x.theme == null) {
|
|
1191
|
+
M = {};
|
|
1192
|
+
for (var S in x)
|
|
1193
|
+
M[S] = x[S];
|
|
1194
|
+
M.theme = se.useContext(ht);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof
|
|
1197
|
-
var
|
|
1198
|
-
|
|
1199
|
-
var
|
|
1200
|
-
for (var
|
|
1201
|
-
|
|
1202
|
-
return
|
|
1203
|
-
cache:
|
|
1204
|
-
serialized:
|
|
1205
|
-
isStringTag: typeof
|
|
1206
|
-
}), /* @__PURE__ */
|
|
1196
|
+
typeof x.className == "string" ? z = tt(k.registered, D, x.className) : x.className != null && (z = x.className + " ");
|
|
1197
|
+
var G = lt(v.concat(D), k.registered, M);
|
|
1198
|
+
z += k.key + "-" + G.name, f !== void 0 && (z += " " + f);
|
|
1199
|
+
var K = y && d === void 0 ? rr(F) : w, W = {};
|
|
1200
|
+
for (var J in x)
|
|
1201
|
+
y && J === "as" || K(J) && (W[J] = x[J]);
|
|
1202
|
+
return W.className = z, T && (W.ref = T), /* @__PURE__ */ se.createElement(se.Fragment, null, /* @__PURE__ */ se.createElement(bt, {
|
|
1203
|
+
cache: k,
|
|
1204
|
+
serialized: G,
|
|
1205
|
+
isStringTag: typeof F == "string"
|
|
1206
|
+
}), /* @__PURE__ */ se.createElement(F, W));
|
|
1207
1207
|
});
|
|
1208
|
-
return
|
|
1208
|
+
return b.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", b.defaultProps = r.defaultProps, b.__emotion_real = b, b.__emotion_base = a, b.__emotion_styles = v, b.__emotion_forwardProp = d, Object.defineProperty(b, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
|
-
return "." +
|
|
1210
|
+
return "." + f;
|
|
1211
1211
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
var
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), b.withComponent = function(x, k) {
|
|
1213
|
+
var T = e(x, Ve({}, t, k, {
|
|
1214
|
+
shouldForwardProp: tr(b, k, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return
|
|
1217
|
-
},
|
|
1216
|
+
return T.apply(void 0, v);
|
|
1217
|
+
}, b;
|
|
1218
1218
|
};
|
|
1219
|
-
},
|
|
1219
|
+
}, wt = [
|
|
1220
1220
|
"a",
|
|
1221
1221
|
"abbr",
|
|
1222
1222
|
"address",
|
|
@@ -1352,11 +1352,11 @@ var mt = 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 kt = de.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`,
|
|
1401
|
-
n && /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
a && /* @__PURE__ */
|
|
1404
|
-
] }), ar =
|
|
1400
|
+
`, nr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ I.jsxs(Pt, { type: e, className: t, children: [
|
|
1401
|
+
n && /* @__PURE__ */ I.jsx("span", { children: n }),
|
|
1402
|
+
/* @__PURE__ */ I.jsx("span", { children: r }),
|
|
1403
|
+
a && /* @__PURE__ */ I.jsx("span", { children: a })
|
|
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 kt = 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 kt = 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,834 +1433,585 @@ const kt = 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, n] = $e(!1), [a, 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 (y) {
|
|
1446
|
+
const g = y instanceof Error ? y.message : String(y);
|
|
1447
|
+
s(`Failed to resolve script URL: ${g}`);
|
|
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 g = new Promise((v, j) => {
|
|
1457
|
+
const $ = document.createElement("script");
|
|
1458
|
+
$.src = f, $.async = !0, $.onload = () => v(), $.onerror = () => j(new Error(`Failed to load script: ${f}`)), document.body.appendChild($);
|
|
1456
1459
|
});
|
|
1457
|
-
|
|
1460
|
+
Ee.set(f, g);
|
|
1458
1461
|
}
|
|
1459
|
-
let
|
|
1460
|
-
const
|
|
1461
|
-
return
|
|
1462
|
-
|
|
1463
|
-
}).catch((
|
|
1464
|
-
|
|
1462
|
+
let d = !0;
|
|
1463
|
+
const w = Ee.get(f);
|
|
1464
|
+
return w && w.then(() => {
|
|
1465
|
+
d && (n(!0), s(null));
|
|
1466
|
+
}).catch((y) => {
|
|
1467
|
+
d && (n(!1), s(y instanceof Error ? y.message : String(y)));
|
|
1465
1468
|
}), () => {
|
|
1466
|
-
|
|
1469
|
+
d = !1;
|
|
1467
1470
|
};
|
|
1468
1471
|
}, [e, r]), { isLoaded: t, error: a };
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
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
|
-
}, xr = (e, r) => {
|
|
1491
|
-
if (!(r && !e))
|
|
1492
|
-
return e ? {
|
|
1493
|
-
play: e.bigPlayButton ?? e.autopausePlayButton ?? !0,
|
|
1494
|
-
fullscreen: e.fullscreenButton ?? !0,
|
|
1495
|
-
share: e.shareButton ?? !0,
|
|
1496
|
-
seekbar: !0,
|
|
1497
|
-
settings: e.settingsButton ?? !0,
|
|
1498
|
-
time: !0
|
|
1499
|
-
} : {
|
|
1500
|
-
play: !0,
|
|
1501
|
-
fullscreen: !0,
|
|
1502
|
-
share: !0,
|
|
1503
|
-
seekbar: !0,
|
|
1504
|
-
settings: !0,
|
|
1505
|
-
time: !0
|
|
1506
|
-
};
|
|
1507
|
-
}, At = ({
|
|
1508
|
-
videoUrl: e,
|
|
1509
|
-
projectId: r,
|
|
1510
|
-
config: t = {},
|
|
1511
|
-
isVerticalPlayer: n = !1,
|
|
1512
|
-
pureMode: a = !0
|
|
1513
|
-
}) => {
|
|
1514
|
-
var I, _, w, h, y, v, g, T, N, z, R, b, J, q, C, A, $;
|
|
1515
|
-
if (a)
|
|
1516
|
-
return Tt({ videoUrl: e, projectId: r, config: t, isVerticalPlayer: n });
|
|
1517
|
-
const i = { ...Re };
|
|
1518
|
-
i.video = { ...Re.video, ...t.video };
|
|
1519
|
-
let s = {
|
|
1520
|
-
...Re.config,
|
|
1521
|
-
...t.config,
|
|
1522
|
-
// Only include controls if explicitly provided by user config
|
|
1523
|
-
// Otherwise, let SDK use what's configured in the admin panel (projectId config)
|
|
1524
|
-
...((I = t.config) == null ? void 0 : I.controls) && {
|
|
1525
|
-
controls: t.config.controls
|
|
1526
|
-
},
|
|
1527
|
-
// Ensure size is merged
|
|
1528
|
-
size: {
|
|
1529
|
-
...Re.config.size,
|
|
1530
|
-
...(_ = t.config) == null ? void 0 : _.size
|
|
1531
|
-
}
|
|
1532
|
-
};
|
|
1533
|
-
if (r && (i.projectId = r), t.projectId && (i.projectId = t.projectId), n && s.controls) {
|
|
1534
|
-
const j = xr(
|
|
1535
|
-
s.controls
|
|
1536
|
-
);
|
|
1537
|
-
s = {
|
|
1538
|
-
...s,
|
|
1539
|
-
controls: j
|
|
1540
|
-
};
|
|
1541
|
-
}
|
|
1542
|
-
const l = !!((h = (w = t == null ? void 0 : t.video) == null ? void 0 : w.playlist) != null && h.playlistId), p = !!((g = (v = (y = t == null ? void 0 : t.video) == null ? void 0 : y.playlist) == null ? void 0 : v.videos) != null && g.length), f = l || p, c = (T = t == null ? void 0 : t.video) == null ? void 0 : T.playlist;
|
|
1543
|
-
if (n && f) {
|
|
1544
|
-
const j = Number((c == null ? void 0 : c.playlistVideoIndex) || 0);
|
|
1545
|
-
if ((N = c == null ? void 0 : c.videos) != null && N.length) {
|
|
1546
|
-
const x = c.videos[j] || c.videos[0], Y = e || ((z = t == null ? void 0 : t.video) == null ? void 0 : z.file) || (x == null ? void 0 : x.file) || (x == null ? void 0 : x.hlsUrl), D = c.videos.map((Q) => {
|
|
1547
|
-
const G = Q;
|
|
1548
|
-
return {
|
|
1549
|
-
videoId: G.videoId || "",
|
|
1550
|
-
title: G.title || "",
|
|
1551
|
-
file: G.file || G.hlsUrl || "",
|
|
1552
|
-
thumbnailUrl: G.thumbnailUrl || G.thumbnail || "",
|
|
1553
|
-
duration: G.duration || 0
|
|
1554
|
-
};
|
|
1555
|
-
});
|
|
1556
|
-
return {
|
|
1557
|
-
...i,
|
|
1558
|
-
projectId: r || t.projectId || "",
|
|
1559
|
-
// Use top-level projectId if available
|
|
1560
|
-
video: {
|
|
1561
|
-
...i.video,
|
|
1562
|
-
videoId: (x == null ? void 0 : x.videoId) || "",
|
|
1563
|
-
file: Y,
|
|
1564
|
-
title: ((R = t.video) == null ? void 0 : R.title) || (x == null ? void 0 : x.title),
|
|
1565
|
-
thumbnail: ((b = t.video) == null ? void 0 : b.thumbnail) || (x == null ? void 0 : x.thumbnailUrl),
|
|
1566
|
-
playlist: {
|
|
1567
|
-
state: !0,
|
|
1568
|
-
playlistId: "",
|
|
1569
|
-
// Empty string - required for manual playlist mode
|
|
1570
|
-
playlistVideoIndex: j,
|
|
1571
|
-
videos: D
|
|
1572
|
-
}
|
|
1573
|
-
},
|
|
1574
|
-
config: s
|
|
1575
|
-
};
|
|
1576
|
-
}
|
|
1577
|
-
return {
|
|
1578
|
-
...i,
|
|
1579
|
-
projectId: r || t.projectId || "",
|
|
1580
|
-
// Use top-level projectId if available
|
|
1581
|
-
video: {
|
|
1582
|
-
...i.video,
|
|
1583
|
-
file: e || ((J = t.video) == null ? void 0 : J.file),
|
|
1584
|
-
// Use provided videoUrl as fallback/primary file
|
|
1585
|
-
playlist: {
|
|
1586
|
-
state: !0,
|
|
1587
|
-
playlistId: c == null ? void 0 : c.playlistId,
|
|
1588
|
-
playlistVideoIndex: j
|
|
1589
|
-
}
|
|
1590
|
-
},
|
|
1591
|
-
config: s
|
|
1592
|
-
};
|
|
1593
|
-
}
|
|
1594
|
-
if (e && !f)
|
|
1595
|
-
return {
|
|
1596
|
-
...i,
|
|
1597
|
-
video: {
|
|
1598
|
-
...i.video,
|
|
1599
|
-
...t.video,
|
|
1600
|
-
file: e,
|
|
1601
|
-
playlist: void 0
|
|
1602
|
-
},
|
|
1603
|
-
config: s
|
|
1604
|
-
};
|
|
1605
|
-
if (f && c)
|
|
1606
|
-
return {
|
|
1607
|
-
...i,
|
|
1608
|
-
video: {
|
|
1609
|
-
...i.video,
|
|
1610
|
-
...t.video,
|
|
1611
|
-
// For horizontal player, file can be omitted - SDK handles it
|
|
1612
|
-
file: (q = t.video) == null ? void 0 : q.file,
|
|
1613
|
-
playlist: {
|
|
1614
|
-
...i.video.playlist,
|
|
1615
|
-
...c,
|
|
1616
|
-
state: !0,
|
|
1617
|
-
playlistVideoIndex: Number(c.playlistVideoIndex || 0)
|
|
1618
|
-
}
|
|
1619
|
-
},
|
|
1620
|
-
config: s
|
|
1621
|
-
};
|
|
1622
|
-
const u = ((C = t == null ? void 0 : t.video) == null ? void 0 : C.videoId) || (t == null ? void 0 : t.videoId);
|
|
1623
|
-
if (u) {
|
|
1624
|
-
const j = (A = t.video) == null ? void 0 : A.file, x = j && j.trim() !== "", Y = r || t.projectId || i.projectId;
|
|
1625
|
-
let D;
|
|
1626
|
-
return x ? D = j : Y && u && (D = `https://cdn.vpplayer.tech/${Y}/encode/${u}/hls/master_file.m3u8`), {
|
|
1627
|
-
projectId: Y,
|
|
1628
|
-
videoId: u,
|
|
1629
|
-
video: {
|
|
1630
|
-
...t.video,
|
|
1631
|
-
// Only user's explicit video config
|
|
1632
|
-
videoId: u,
|
|
1633
|
-
file: D
|
|
1634
|
-
},
|
|
1635
|
-
// Only include config if user explicitly provided overrides
|
|
1636
|
-
...t.config && { config: t.config }
|
|
1637
|
-
};
|
|
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 n of Object.keys(r)) {
|
|
1481
|
+
const a = r[n], s = t[n];
|
|
1482
|
+
Re(a) && Re(s) ? t[n] = yr(s, a) : a !== void 0 && (t[n] = a);
|
|
1638
1483
|
}
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
config: s
|
|
1649
|
-
};
|
|
1650
|
-
throw new Error(
|
|
1651
|
-
"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..."
|
|
1652
1493
|
);
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
var _, w, h, y, v, g, T, N, z, R, b, J, q;
|
|
1660
|
-
const a = r || t.projectId, i = ((_ = t == null ? void 0 : t.video) == null ? void 0 : _.videoId) || (t == null ? void 0 : t.videoId), s = !!((h = (w = t == null ? void 0 : t.video) == null ? void 0 : w.playlist) != null && h.playlistId), l = !!((g = (v = (y = t == null ? void 0 : t.video) == null ? void 0 : y.playlist) == null ? void 0 : v.videos) != null && g.length), p = s || l, f = (T = t == null ? void 0 : t.video) == null ? void 0 : T.playlist, c = {};
|
|
1661
|
-
a && (c.projectId = a), i && (c.videoId = i);
|
|
1662
|
-
const u = {};
|
|
1663
|
-
if (i && (u.videoId = i), e ? u.file = e : (N = t == null ? void 0 : t.video) != null && N.file ? u.file = t.video.file : a && i && !p && (u.file = `https://cdn.vpplayer.tech/${a}/encode/${i}/hls/master_file.m3u8`), p && f) {
|
|
1664
|
-
const C = Number(f.playlistVideoIndex || 0);
|
|
1665
|
-
if ((z = f.videos) != null && z.length) {
|
|
1666
|
-
const A = f.videos[C] || f.videos[0];
|
|
1667
|
-
if (n) {
|
|
1668
|
-
const j = e || ((R = t == null ? void 0 : t.video) == null ? void 0 : R.file) || (A == null ? void 0 : A.file) || (A == null ? void 0 : A.hlsUrl);
|
|
1669
|
-
j && (u.file = j), u.videoId = (A == null ? void 0 : A.videoId) || "";
|
|
1670
|
-
}
|
|
1671
|
-
const $ = f.videos.map((j) => {
|
|
1672
|
-
const x = j;
|
|
1673
|
-
return {
|
|
1674
|
-
videoId: x.videoId || "",
|
|
1675
|
-
title: x.title || "",
|
|
1676
|
-
file: x.file || x.hlsUrl || "",
|
|
1677
|
-
thumbnailUrl: x.thumbnailUrl || x.thumbnail || "",
|
|
1678
|
-
duration: x.duration || 0
|
|
1679
|
-
};
|
|
1680
|
-
});
|
|
1681
|
-
u.playlist = {
|
|
1682
|
-
state: !0,
|
|
1683
|
-
playlistId: f.playlistId || "",
|
|
1684
|
-
playlistVideoIndex: C,
|
|
1685
|
-
videos: $
|
|
1686
|
-
};
|
|
1687
|
-
} else f.playlistId && (u.playlist = {
|
|
1688
|
-
state: !0,
|
|
1689
|
-
playlistId: f.playlistId,
|
|
1690
|
-
playlistVideoIndex: C
|
|
1691
|
-
});
|
|
1494
|
+
const n = t ? $t(e, r || "") : At(e, r || "");
|
|
1495
|
+
try {
|
|
1496
|
+
const a = await fetch(n);
|
|
1497
|
+
return a.ok ? await a.json() : null;
|
|
1498
|
+
} catch {
|
|
1499
|
+
return null;
|
|
1692
1500
|
}
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
const A = xr(
|
|
1697
|
-
C.controls,
|
|
1698
|
-
!0
|
|
1699
|
-
// pureMode flag
|
|
1700
|
-
);
|
|
1701
|
-
A && (C.controls = A);
|
|
1702
|
-
}
|
|
1703
|
-
Object.keys(C).length > 0 && (c.config = C);
|
|
1704
|
-
}
|
|
1705
|
-
if (!(u.file || u.videoId || ((b = u.playlist) == null ? void 0 : b.playlistId) || ((q = (J = u.playlist) == null ? void 0 : J.videos) == null ? void 0 : q.length)))
|
|
1706
|
-
throw new Error(
|
|
1707
|
-
"No valid video source found in pure mode. Provide videoUrl, videoId, playlistId, or config with video.file or playlist."
|
|
1708
|
-
);
|
|
1709
|
-
return c;
|
|
1710
|
-
}, Ot = (e) => {
|
|
1711
|
-
if (!e || e.includes("vertical-player") || e.includes("vpverticalplayer"))
|
|
1712
|
-
return;
|
|
1713
|
-
const r = br.replace(
|
|
1714
|
-
/[.*+?^${}()|[\]\\]/g,
|
|
1715
|
-
"\\$&"
|
|
1716
|
-
), t = new RegExp(
|
|
1717
|
-
`${r}\\/player\\/([^/]+)\\/([^/]+)(?:\\/[^/]+)?\\.js`
|
|
1718
|
-
), n = e.match(t);
|
|
1719
|
-
if (n)
|
|
1720
|
-
return n[2];
|
|
1721
|
-
}, jt = ({
|
|
1722
|
-
playerId: e,
|
|
1501
|
+
}
|
|
1502
|
+
const Ft = ({
|
|
1503
|
+
scriptId: e,
|
|
1723
1504
|
videoId: r,
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
onPlayerPrevious: b,
|
|
1746
|
-
onPlayerEvent: J
|
|
1505
|
+
scriptUrl: t,
|
|
1506
|
+
projectId: n,
|
|
1507
|
+
config: a,
|
|
1508
|
+
playerId: s,
|
|
1509
|
+
isVertical: f = !1,
|
|
1510
|
+
isReels: d = !1,
|
|
1511
|
+
onReady: w,
|
|
1512
|
+
onPlay: y,
|
|
1513
|
+
onPause: g,
|
|
1514
|
+
onResume: v,
|
|
1515
|
+
onComplete: j,
|
|
1516
|
+
onError: $,
|
|
1517
|
+
onVideoStarted: C,
|
|
1518
|
+
onTimeUpdate: b,
|
|
1519
|
+
onQuartile25: x,
|
|
1520
|
+
onQuartile50: k,
|
|
1521
|
+
onQuartile75: T,
|
|
1522
|
+
onNext: F,
|
|
1523
|
+
onPrevious: z,
|
|
1524
|
+
onProgress10s: D,
|
|
1525
|
+
onProgress20s: M
|
|
1747
1526
|
}) => {
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1527
|
+
const S = ge(null), G = ge(null), [K, W] = $e(null), J = wr().replace(/:/g, ""), Y = Fe(
|
|
1528
|
+
() => Ct(s || `auto-${J}`, r),
|
|
1529
|
+
[s, J, r]
|
|
1530
|
+
), p = ge({
|
|
1531
|
+
onReady: w,
|
|
1532
|
+
onPlay: y,
|
|
1533
|
+
onPause: g,
|
|
1534
|
+
onResume: v,
|
|
1535
|
+
onComplete: j,
|
|
1536
|
+
onError: $,
|
|
1537
|
+
onVideoStarted: C,
|
|
1538
|
+
onTimeUpdate: b,
|
|
1539
|
+
onQuartile25: x,
|
|
1540
|
+
onQuartile50: k,
|
|
1541
|
+
onQuartile75: T,
|
|
1542
|
+
onNext: F,
|
|
1543
|
+
onPrevious: z,
|
|
1544
|
+
onProgress10s: D,
|
|
1545
|
+
onProgress20s: M
|
|
1765
1546
|
});
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1547
|
+
Le(() => {
|
|
1548
|
+
p.current = {
|
|
1549
|
+
onReady: w,
|
|
1550
|
+
onPlay: y,
|
|
1551
|
+
onPause: g,
|
|
1552
|
+
onResume: v,
|
|
1553
|
+
onComplete: j,
|
|
1554
|
+
onError: $,
|
|
1555
|
+
onVideoStarted: C,
|
|
1556
|
+
onTimeUpdate: b,
|
|
1557
|
+
onQuartile25: x,
|
|
1558
|
+
onQuartile50: k,
|
|
1559
|
+
onQuartile75: T,
|
|
1560
|
+
onNext: F,
|
|
1561
|
+
onPrevious: z,
|
|
1562
|
+
onProgress10s: D,
|
|
1563
|
+
onProgress20s: M
|
|
1783
1564
|
};
|
|
1784
1565
|
});
|
|
1785
|
-
const
|
|
1566
|
+
const B = ge(!1), ee = ge(!1), re = !!a, V = Fe(() => f || d ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [f, d, t]), te = Fe(() => {
|
|
1567
|
+
let i;
|
|
1568
|
+
if (t)
|
|
1569
|
+
i = t;
|
|
1570
|
+
else if (e && r && !re)
|
|
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, Y);
|
|
1577
|
+
}, [
|
|
1786
1578
|
t,
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
state: !0,
|
|
1802
|
-
playlistVideoIndex: 0
|
|
1803
|
-
} : (H = l.video) == null ? void 0 : H.playlist
|
|
1804
|
-
},
|
|
1805
|
-
// Only include config if user explicitly provided it
|
|
1806
|
-
...l.config && { config: l.config }
|
|
1807
|
-
};
|
|
1808
|
-
const P = l.config || {}, L = p && !P.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : P.size || { sizeType: "FIXED", width: "100%" };
|
|
1809
|
-
return {
|
|
1810
|
-
...l,
|
|
1811
|
-
video: {
|
|
1812
|
-
...l.video,
|
|
1813
|
-
videoId: D,
|
|
1814
|
-
playlist: i ? {
|
|
1815
|
-
playlistId: i,
|
|
1816
|
-
state: !0,
|
|
1817
|
-
playlistVideoIndex: 0
|
|
1818
|
-
} : (B = l.video) == null ? void 0 : B.playlist
|
|
1819
|
-
},
|
|
1820
|
-
config: {
|
|
1821
|
-
...P,
|
|
1822
|
-
size: L
|
|
1823
|
-
}
|
|
1824
|
-
};
|
|
1825
|
-
}, [l, p, D, i, f]);
|
|
1826
|
-
return Me(() => {
|
|
1827
|
-
if (Y) {
|
|
1828
|
-
Q(Y);
|
|
1579
|
+
e,
|
|
1580
|
+
r,
|
|
1581
|
+
V,
|
|
1582
|
+
Y,
|
|
1583
|
+
re
|
|
1584
|
+
]), { isLoaded: ne, error: ce } = jt(
|
|
1585
|
+
null,
|
|
1586
|
+
te || void 0
|
|
1587
|
+
);
|
|
1588
|
+
return Le(() => {
|
|
1589
|
+
if (!te) {
|
|
1590
|
+
W(
|
|
1591
|
+
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1592
|
+
);
|
|
1829
1593
|
return;
|
|
1830
1594
|
}
|
|
1831
|
-
if (
|
|
1832
|
-
|
|
1595
|
+
if (ce) {
|
|
1596
|
+
W(ce);
|
|
1597
|
+
return;
|
|
1598
|
+
}
|
|
1599
|
+
if (!ne) return;
|
|
1600
|
+
let i = !0;
|
|
1833
1601
|
return (async () => {
|
|
1834
|
-
var
|
|
1602
|
+
var o;
|
|
1835
1603
|
try {
|
|
1836
|
-
const
|
|
1837
|
-
if (!
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
C.current = null, q.current;
|
|
1842
|
-
const re = At({
|
|
1843
|
-
videoUrl: n,
|
|
1844
|
-
projectId: a,
|
|
1845
|
-
config: o,
|
|
1846
|
-
isVerticalPlayer: B,
|
|
1847
|
-
pureMode: f
|
|
1848
|
-
}), S = O(Z);
|
|
1849
|
-
if (!S) {
|
|
1850
|
-
Q("Failed to create player instance.");
|
|
1604
|
+
const c = V ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1605
|
+
if (!c) {
|
|
1606
|
+
W(
|
|
1607
|
+
`VP Player: Script loaded but global function not found. Expected ${V ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1608
|
+
);
|
|
1851
1609
|
return;
|
|
1852
1610
|
}
|
|
1853
|
-
if (await new Promise((
|
|
1611
|
+
if (await new Promise((h) => setTimeout(h, 0)), !document.getElementById(Y)) {
|
|
1854
1612
|
console.error(
|
|
1855
|
-
`VP Player: Container element with ID '${
|
|
1613
|
+
`VP Player: Container element with ID '${Y}' not found in DOM.`
|
|
1856
1614
|
);
|
|
1857
1615
|
return;
|
|
1858
1616
|
}
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
}
|
|
1881
|
-
if (C.current = S, A.current = !0, Q(null), j.current = !1, S.on) {
|
|
1882
|
-
const V = S.on.bind(S), we = () => {
|
|
1883
|
-
V("ready", () => {
|
|
1884
|
-
const d = $.current;
|
|
1885
|
-
d.onPlayerStart && d.onPlayerStart("player_start"), d.onPlayerEvent && d.onPlayerEvent("player_start");
|
|
1886
|
-
}), V("play", () => {
|
|
1887
|
-
const d = $.current;
|
|
1888
|
-
d.onPlayerPlay && d.onPlayerPlay("player_play"), d.onPlayerEvent && d.onPlayerEvent("player_play");
|
|
1889
|
-
}), V("video-started", (d) => {
|
|
1890
|
-
const U = $.current;
|
|
1891
|
-
U.onVideoStarted && U.onVideoStarted(d);
|
|
1892
|
-
}), V("resume", () => {
|
|
1893
|
-
const d = $.current;
|
|
1894
|
-
d.onPlayerResume && d.onPlayerResume("player_resume"), d.onPlayerEvent && d.onPlayerEvent("player_resume");
|
|
1895
|
-
}), V("pause", () => {
|
|
1896
|
-
const d = $.current;
|
|
1897
|
-
d.onPlayerPause && d.onPlayerPause("player_pause"), d.onPlayerEvent && d.onPlayerEvent("player_pause");
|
|
1898
|
-
}), V("complete", () => {
|
|
1899
|
-
const d = $.current;
|
|
1900
|
-
d.onPlayerEnd && d.onPlayerEnd("player_end"), d.onPlayerEvent && d.onPlayerEvent("player_end"), j.current = !1;
|
|
1901
|
-
}), V("firstQuartile", () => {
|
|
1902
|
-
const d = $.current;
|
|
1903
|
-
d.onPlayerQuartile25 && d.onPlayerQuartile25("player_quartile_25", 0), d.onPlayerEvent && d.onPlayerEvent("player_quartile_25", 0);
|
|
1904
|
-
}), V("secondQuartile", () => {
|
|
1905
|
-
const d = $.current;
|
|
1906
|
-
d.onPlayerQuartile50 && d.onPlayerQuartile50("player_quartile_50", 0), d.onPlayerEvent && d.onPlayerEvent("player_quartile_50", 0);
|
|
1907
|
-
}), V("thirdQuartile", () => {
|
|
1908
|
-
const d = $.current;
|
|
1909
|
-
d.onPlayerQuartile75 && d.onPlayerQuartile75("player_quartile_75", 0), d.onPlayerEvent && d.onPlayerEvent("player_quartile_75", 0);
|
|
1910
|
-
}), V("video-state", (d) => {
|
|
1911
|
-
var he;
|
|
1912
|
-
const U = ((he = S.getPosition) == null ? void 0 : he.call(S)) ?? (d == null ? void 0 : d.position) ?? 0, se = $.current;
|
|
1913
|
-
se.onPlayerProgressEvery10Seconds && se.onPlayerProgressEvery10Seconds(
|
|
1914
|
-
"player_progress_every_10_seconds",
|
|
1915
|
-
Math.floor(U)
|
|
1916
|
-
), se.onPlayerEvent && se.onPlayerEvent(
|
|
1917
|
-
"player_progress_every_10_seconds",
|
|
1918
|
-
Math.floor(U)
|
|
1617
|
+
const A = c(Y);
|
|
1618
|
+
if (!A) {
|
|
1619
|
+
W("VP Player: Failed to get player instance.");
|
|
1620
|
+
return;
|
|
1621
|
+
}
|
|
1622
|
+
if (i) {
|
|
1623
|
+
if (G.current = A, W(null), B.current = !1, re && a) {
|
|
1624
|
+
let h;
|
|
1625
|
+
const E = await Mt(
|
|
1626
|
+
e,
|
|
1627
|
+
r,
|
|
1628
|
+
V
|
|
1629
|
+
);
|
|
1630
|
+
E ? h = yr(E, a) : h = a, n && !h.projectId && (h.projectId = n);
|
|
1631
|
+
try {
|
|
1632
|
+
A.setup(h);
|
|
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."
|
|
1919
1638
|
);
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
), Ee.onPlayerEvent && Ee.onPlayerEvent("player_progress_at_20_seconds", he);
|
|
1639
|
+
try {
|
|
1640
|
+
if ((o = A.destroy) == null || o.call(A), await new Promise((P) => setTimeout(P, 50)), i && document.getElementById(Y)) {
|
|
1641
|
+
const P = c(Y);
|
|
1642
|
+
P && (P.setup(h), G.current = P);
|
|
1643
|
+
}
|
|
1644
|
+
} catch (P) {
|
|
1645
|
+
console.error(
|
|
1646
|
+
"VP Player: Failed to recover from initialization error",
|
|
1647
|
+
P
|
|
1648
|
+
);
|
|
1931
1649
|
}
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
|
-
try {
|
|
1938
|
-
we();
|
|
1939
|
-
} catch (d) {
|
|
1940
|
-
console.warn("VP Player: Failed to attach event listeners", d);
|
|
1650
|
+
} else {
|
|
1651
|
+
console.error("VP Player: Setup error", u), W(`Player setup failed: ${l}`);
|
|
1652
|
+
return;
|
|
1653
|
+
}
|
|
1941
1654
|
}
|
|
1942
1655
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1656
|
+
if (A.on) {
|
|
1657
|
+
const h = A.on.bind(A), E = V ? "vertical" : "horizontal";
|
|
1658
|
+
h("vp-event", (u) => {
|
|
1659
|
+
var O, Z, Q, le, Ye, qe;
|
|
1660
|
+
const l = u, P = l == null ? void 0 : l.eventName;
|
|
1661
|
+
if (V && P === "vp-state-playing") {
|
|
1662
|
+
const vr = A.videoObject;
|
|
1663
|
+
ee.current ? (ee.current = !1, console.log(`[${E}] onResume`), (Z = (O = p.current).onResume) == null || Z.call(O)) : (console.log(`[${E}] onPlay`), (le = (Q = p.current).onPlay) == null || le.call(Q, vr));
|
|
1948
1664
|
}
|
|
1949
|
-
|
|
1665
|
+
V && P === "vp-state-paused" && (ee.current = !0, console.log(`[${E}] onPause`), (qe = (Ye = p.current).onPause) == null || qe.call(Ye));
|
|
1666
|
+
}), h("analytics-25%-completed", () => {
|
|
1667
|
+
var u, l;
|
|
1668
|
+
console.log(`[${E}] onQuartile25`), (l = (u = p.current).onQuartile25) == null || l.call(u);
|
|
1669
|
+
}), h("analytics-50%-completed", () => {
|
|
1670
|
+
var u, l;
|
|
1671
|
+
console.log(`[${E}] onQuartile50`), (l = (u = p.current).onQuartile50) == null || l.call(u);
|
|
1672
|
+
}), h("analytics-75%-completed", () => {
|
|
1673
|
+
var u, l;
|
|
1674
|
+
console.log(`[${E}] onQuartile75`), (l = (u = p.current).onQuartile75) == null || l.call(u);
|
|
1675
|
+
}), V || h("pause", () => {
|
|
1676
|
+
var u, l;
|
|
1677
|
+
console.log(`[${E}] onPause`), (l = (u = p.current).onPause) == null || l.call(u);
|
|
1678
|
+
}), h("error", (u) => {
|
|
1679
|
+
var P, O;
|
|
1680
|
+
const l = typeof u == "string" ? u : (u == null ? void 0 : u.message) || "Unknown error";
|
|
1681
|
+
console.log(`[${E}] onError`, l), (O = (P = p.current).onError) == null || O.call(P, l);
|
|
1682
|
+
}), V ? (h("vp-first-frame", () => {
|
|
1683
|
+
var P, O;
|
|
1684
|
+
const l = A.videoObject;
|
|
1685
|
+
console.log(`[${E}] onReady`), (O = (P = p.current).onReady) == null || O.call(P, l);
|
|
1686
|
+
}), h("vp-video-started", (u) => {
|
|
1687
|
+
var l, P;
|
|
1688
|
+
console.log(`[${E}] onVideoStarted`), (P = (l = p.current).onVideoStarted) == null || P.call(l, u);
|
|
1689
|
+
}), h("vp-video-state", () => {
|
|
1690
|
+
var l, P, O;
|
|
1691
|
+
const u = ((l = A.getPosition) == null ? void 0 : l.call(A)) ?? 0;
|
|
1692
|
+
console.log(`[${E}] onProgress10s`, Math.floor(u)), (O = (P = p.current).onProgress10s) == null || O.call(P, Math.floor(u));
|
|
1693
|
+
}), h("vp-time", (u) => {
|
|
1694
|
+
var P, O, Z, Q, le;
|
|
1695
|
+
let l = 0;
|
|
1696
|
+
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((P = A.getPosition) == null ? void 0 : P.call(A)) ?? 0, (Z = (O = p.current).onTimeUpdate) == null || Z.call(O, l), !B.current && l >= 20 && (B.current = !0, console.log(`[${E}] onProgress20s`, Math.floor(l)), (le = (Q = p.current).onProgress20s) == null || le.call(Q, Math.floor(l)));
|
|
1697
|
+
}), h("vp-video-switch", () => {
|
|
1698
|
+
queueMicrotask(() => {
|
|
1699
|
+
var P, O, Z, Q;
|
|
1700
|
+
const l = A._switchDirection;
|
|
1701
|
+
l === "next" ? (console.log(`[${E}] onNext`), (O = (P = p.current).onNext) == null || O.call(P)) : l === "previous" && (console.log(`[${E}] onPrevious`), (Q = (Z = p.current).onPrevious) == null || Q.call(Z)), B.current = !1;
|
|
1702
|
+
});
|
|
1703
|
+
})) : (h("ready", () => {
|
|
1704
|
+
var u, l;
|
|
1705
|
+
console.log(`[${E}] onReady`), (l = (u = p.current).onReady) == null || l.call(u);
|
|
1706
|
+
}), h("play", () => {
|
|
1707
|
+
var u, l;
|
|
1708
|
+
console.log(`[${E}] onPlay`), (l = (u = p.current).onPlay) == null || l.call(u);
|
|
1709
|
+
}), h("complete", () => {
|
|
1710
|
+
var u, l;
|
|
1711
|
+
console.log(`[${E}] onComplete`), (l = (u = p.current).onComplete) == null || l.call(u), B.current = !1;
|
|
1712
|
+
}), h("video-started", (u) => {
|
|
1713
|
+
var l, P;
|
|
1714
|
+
console.log(`[${E}] onVideoStarted`), (P = (l = p.current).onVideoStarted) == null || P.call(l, u);
|
|
1715
|
+
}), h("video-state", () => {
|
|
1716
|
+
var l, P, O;
|
|
1717
|
+
const u = ((l = A.getPosition) == null ? void 0 : l.call(A)) ?? 0;
|
|
1718
|
+
console.log(`[${E}] onProgress10s`, Math.floor(u)), (O = (P = p.current).onProgress10s) == null || O.call(P, Math.floor(u));
|
|
1719
|
+
}), h("time", (u) => {
|
|
1720
|
+
var P, O, Z, Q, le;
|
|
1721
|
+
let l = 0;
|
|
1722
|
+
typeof u == "number" ? l = u : u && typeof u == "object" && "position" in u ? l = u.position : l = ((P = A.getPosition) == null ? void 0 : P.call(A)) ?? 0, (Z = (O = p.current).onTimeUpdate) == null || Z.call(O, l), !B.current && l >= 20 && (B.current = !0, console.log(`[${E}] onProgress20s`, Math.floor(l)), (le = (Q = p.current).onProgress20s) == null || le.call(Q, Math.floor(l)));
|
|
1723
|
+
}), h("playlistItem", () => {
|
|
1724
|
+
var u, l;
|
|
1725
|
+
console.log(`[${E}] onNext`), (l = (u = p.current).onNext) == null || l.call(u), B.current = !1;
|
|
1726
|
+
}));
|
|
1727
|
+
}
|
|
1950
1728
|
}
|
|
1951
|
-
} catch (
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1729
|
+
} catch (c) {
|
|
1730
|
+
if (i) {
|
|
1731
|
+
const L = c instanceof Error ? c.message : String(c);
|
|
1732
|
+
W(L), console.error("VP Player initialization error:", c);
|
|
1955
1733
|
}
|
|
1956
1734
|
}
|
|
1957
1735
|
})(), () => {
|
|
1958
|
-
var
|
|
1959
|
-
if (
|
|
1736
|
+
var o;
|
|
1737
|
+
if (i = !1, (o = G.current) != null && o.destroy) {
|
|
1960
1738
|
try {
|
|
1961
|
-
|
|
1739
|
+
G.current.destroy();
|
|
1962
1740
|
} catch {
|
|
1963
1741
|
}
|
|
1964
|
-
|
|
1742
|
+
G.current = null;
|
|
1965
1743
|
}
|
|
1966
|
-
A.current = !1;
|
|
1967
1744
|
};
|
|
1968
1745
|
}, [
|
|
1969
|
-
|
|
1970
|
-
Z,
|
|
1746
|
+
ne,
|
|
1971
1747
|
Y,
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1748
|
+
ce,
|
|
1749
|
+
te,
|
|
1750
|
+
V,
|
|
1751
|
+
re,
|
|
1976
1752
|
a,
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1753
|
+
e,
|
|
1754
|
+
r,
|
|
1755
|
+
n
|
|
1980
1756
|
]), {
|
|
1981
|
-
playerRef:
|
|
1982
|
-
playerInstanceRef:
|
|
1983
|
-
isScriptLoaded:
|
|
1984
|
-
isLoading: !
|
|
1985
|
-
error:
|
|
1986
|
-
generatedPlayerId:
|
|
1757
|
+
playerRef: S,
|
|
1758
|
+
playerInstanceRef: G,
|
|
1759
|
+
isScriptLoaded: ne,
|
|
1760
|
+
isLoading: !ne && !K,
|
|
1761
|
+
error: K,
|
|
1762
|
+
generatedPlayerId: Y
|
|
1987
1763
|
};
|
|
1988
|
-
},
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
version: t,
|
|
1992
|
-
videoUrl: n,
|
|
1993
|
-
projectId: a,
|
|
1994
|
-
playlistId: i,
|
|
1995
|
-
scriptUrl: s,
|
|
1996
|
-
config: l = {},
|
|
1997
|
-
isReels: p = !1,
|
|
1998
|
-
pureMode: f = !0,
|
|
1999
|
-
hiddenClasses: c = [],
|
|
2000
|
-
onClose: u,
|
|
2001
|
-
className: I,
|
|
2002
|
-
onPlaylistData: _,
|
|
2003
|
-
onVideoStarted: w,
|
|
2004
|
-
trackingMetadata: h,
|
|
2005
|
-
onPlayerStart: y,
|
|
2006
|
-
onPlayerPlay: v,
|
|
2007
|
-
onPlayerPause: g,
|
|
2008
|
-
onPlayerResume: T,
|
|
2009
|
-
onPlayerEnd: N,
|
|
2010
|
-
onPlayerProgressEvery10Seconds: z,
|
|
2011
|
-
onPlayerProgressAt20Seconds: R,
|
|
2012
|
-
onPlayerQuartile25: b,
|
|
2013
|
-
onPlayerQuartile50: J,
|
|
2014
|
-
onPlayerQuartile75: q,
|
|
2015
|
-
onPlayerNext: C,
|
|
2016
|
-
onPlayerPrevious: A,
|
|
2017
|
-
onPlayerEvent: $
|
|
2018
|
-
}) => {
|
|
2019
|
-
var H, B, O, re;
|
|
2020
|
-
const {
|
|
2021
|
-
playerRef: j,
|
|
2022
|
-
playerInstanceRef: x,
|
|
2023
|
-
isScriptLoaded: Y,
|
|
2024
|
-
isLoading: D,
|
|
2025
|
-
error: oe,
|
|
2026
|
-
generatedPlayerId: Q
|
|
2027
|
-
} = jt({
|
|
2028
|
-
playerId: e,
|
|
1764
|
+
}, Nt = or(
|
|
1765
|
+
({
|
|
1766
|
+
scriptId: e,
|
|
2029
1767
|
videoId: r,
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
1768
|
+
scriptUrl: t,
|
|
1769
|
+
projectId: n,
|
|
1770
|
+
config: a,
|
|
1771
|
+
playerId: s,
|
|
1772
|
+
isVertical: f = !1,
|
|
1773
|
+
isReels: d = !1,
|
|
1774
|
+
thumbnailUrl: w,
|
|
1775
|
+
onClose: y,
|
|
1776
|
+
className: g,
|
|
1777
|
+
hiddenClasses: v = [],
|
|
1778
|
+
onReady: j,
|
|
1779
|
+
onPlay: $,
|
|
1780
|
+
onPause: C,
|
|
1781
|
+
onResume: b,
|
|
1782
|
+
onComplete: x,
|
|
1783
|
+
onError: k,
|
|
1784
|
+
onVideoStarted: T,
|
|
1785
|
+
onTimeUpdate: F,
|
|
1786
|
+
onQuartile25: z,
|
|
1787
|
+
onQuartile50: D,
|
|
1788
|
+
onQuartile75: M,
|
|
1789
|
+
onNext: S,
|
|
1790
|
+
onPrevious: G,
|
|
1791
|
+
onProgress10s: K,
|
|
1792
|
+
onProgress20s: W
|
|
1793
|
+
}, J) => {
|
|
1794
|
+
const {
|
|
1795
|
+
playerRef: Y,
|
|
1796
|
+
playerInstanceRef: p,
|
|
1797
|
+
isScriptLoaded: B,
|
|
1798
|
+
isLoading: ee,
|
|
1799
|
+
error: re,
|
|
1800
|
+
generatedPlayerId: V
|
|
1801
|
+
} = Ft({
|
|
1802
|
+
scriptId: e,
|
|
1803
|
+
videoId: r,
|
|
1804
|
+
scriptUrl: t,
|
|
1805
|
+
projectId: n,
|
|
1806
|
+
config: a,
|
|
1807
|
+
playerId: s,
|
|
1808
|
+
isVertical: f,
|
|
1809
|
+
isReels: d,
|
|
1810
|
+
onReady: j,
|
|
1811
|
+
onPlay: $,
|
|
1812
|
+
onPause: C,
|
|
1813
|
+
onResume: b,
|
|
1814
|
+
onComplete: x,
|
|
1815
|
+
onError: k,
|
|
1816
|
+
onVideoStarted: T,
|
|
1817
|
+
onTimeUpdate: F,
|
|
1818
|
+
onQuartile25: z,
|
|
1819
|
+
onQuartile50: D,
|
|
1820
|
+
onQuartile75: M,
|
|
1821
|
+
onNext: S,
|
|
1822
|
+
onPrevious: G,
|
|
1823
|
+
onProgress10s: K,
|
|
1824
|
+
onProgress20s: W
|
|
1825
|
+
});
|
|
1826
|
+
Pr(
|
|
1827
|
+
J,
|
|
1828
|
+
() => ({
|
|
1829
|
+
play: () => {
|
|
1830
|
+
var o, c;
|
|
1831
|
+
return (c = (o = p.current) == null ? void 0 : o.play) == null ? void 0 : c.call(o);
|
|
1832
|
+
},
|
|
1833
|
+
pause: () => {
|
|
1834
|
+
var o, c;
|
|
1835
|
+
return (c = (o = p.current) == null ? void 0 : o.pause) == null ? void 0 : c.call(o);
|
|
1836
|
+
},
|
|
1837
|
+
seek: (o) => {
|
|
1838
|
+
var c, L;
|
|
1839
|
+
return (L = (c = p.current) == null ? void 0 : c.seek) == null ? void 0 : L.call(c, o);
|
|
1840
|
+
},
|
|
1841
|
+
forward: () => {
|
|
1842
|
+
var o, c;
|
|
1843
|
+
return (c = (o = p.current) == null ? void 0 : o.forward) == null ? void 0 : c.call(o);
|
|
1844
|
+
},
|
|
1845
|
+
rewind: () => {
|
|
1846
|
+
var o, c;
|
|
1847
|
+
return (c = (o = p.current) == null ? void 0 : o.rewind) == null ? void 0 : c.call(o);
|
|
1848
|
+
},
|
|
1849
|
+
replay: () => {
|
|
1850
|
+
var o, c;
|
|
1851
|
+
return (c = (o = p.current) == null ? void 0 : o.replay) == null ? void 0 : c.call(o);
|
|
1852
|
+
},
|
|
1853
|
+
mute: () => {
|
|
1854
|
+
var o, c;
|
|
1855
|
+
return (c = (o = p.current) == null ? void 0 : o.mute) == null ? void 0 : c.call(o);
|
|
1856
|
+
},
|
|
1857
|
+
unmute: () => {
|
|
1858
|
+
var o, c;
|
|
1859
|
+
return (c = (o = p.current) == null ? void 0 : o.unmute) == null ? void 0 : c.call(o);
|
|
1860
|
+
},
|
|
1861
|
+
togglePlay: () => {
|
|
1862
|
+
var o, c;
|
|
1863
|
+
return (c = (o = p.current) == null ? void 0 : o.togglePlay) == null ? void 0 : c.call(o);
|
|
1864
|
+
},
|
|
1865
|
+
toggleMute: () => {
|
|
1866
|
+
var o, c;
|
|
1867
|
+
return (c = (o = p.current) == null ? void 0 : o.toggleMute) == null ? void 0 : c.call(o);
|
|
1868
|
+
},
|
|
1869
|
+
enterFullScreen: () => {
|
|
1870
|
+
var o, c, L;
|
|
1871
|
+
return (L = ((o = p.current) == null ? void 0 : o.enterFullScreen) ?? ((c = p.current) == null ? void 0 : c.enterFullscreen)) == null ? void 0 : L();
|
|
1872
|
+
},
|
|
1873
|
+
exitFullScreen: () => {
|
|
1874
|
+
var o, c, L;
|
|
1875
|
+
return (L = ((o = p.current) == null ? void 0 : o.exitFullScreen) ?? ((c = p.current) == null ? void 0 : c.exitFullscreen)) == null ? void 0 : L();
|
|
1876
|
+
},
|
|
1877
|
+
getPosition: () => {
|
|
1878
|
+
var o, c;
|
|
1879
|
+
return ((c = (o = p.current) == null ? void 0 : o.getPosition) == null ? void 0 : c.call(o)) ?? null;
|
|
1880
|
+
},
|
|
1881
|
+
getDuration: () => {
|
|
1882
|
+
var o, c;
|
|
1883
|
+
return ((c = (o = p.current) == null ? void 0 : o.getDuration) == null ? void 0 : c.call(o)) ?? null;
|
|
1884
|
+
},
|
|
1885
|
+
getVolume: () => {
|
|
1886
|
+
var o, c;
|
|
1887
|
+
return ((c = (o = p.current) == null ? void 0 : o.getVolume) == null ? void 0 : c.call(o)) ?? null;
|
|
1888
|
+
},
|
|
1889
|
+
setVolume: (o) => {
|
|
1890
|
+
var c, L;
|
|
1891
|
+
return (L = (c = p.current) == null ? void 0 : c.setVolume) == null ? void 0 : L.call(c, o);
|
|
1892
|
+
},
|
|
1893
|
+
isMuted: () => {
|
|
1894
|
+
var o, c;
|
|
1895
|
+
return ((c = (o = p.current) == null ? void 0 : o.isMuted) == null ? void 0 : c.call(o)) ?? !1;
|
|
1896
|
+
},
|
|
1897
|
+
isPlaying: () => {
|
|
1898
|
+
var o, c;
|
|
1899
|
+
return ((c = (o = p.current) == null ? void 0 : o.isPlaying) == null ? void 0 : c.call(o)) ?? !1;
|
|
1900
|
+
},
|
|
1901
|
+
isPaused: () => {
|
|
1902
|
+
var o, c;
|
|
1903
|
+
return ((c = (o = p.current) == null ? void 0 : o.isPaused) == null ? void 0 : c.call(o)) ?? !1;
|
|
1904
|
+
},
|
|
1905
|
+
isFullscreen: () => {
|
|
1906
|
+
var o, c;
|
|
1907
|
+
return ((c = (o = p.current) == null ? void 0 : o.isFullscreen) == null ? void 0 : c.call(o)) ?? !1;
|
|
1908
|
+
}
|
|
1909
|
+
}),
|
|
1910
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1911
|
+
[]
|
|
1912
|
+
);
|
|
1913
|
+
const [te, ne] = $e(!0), ce = () => d && ne(!0), i = () => {
|
|
1914
|
+
var o, c;
|
|
1915
|
+
!d || !te || (ne(!1), (c = (o = p.current) == null ? void 0 : o.pause) == null || c.call(o), y == null || y());
|
|
1916
|
+
};
|
|
1917
|
+
if (re)
|
|
1918
|
+
return /* @__PURE__ */ I.jsxs(nr, { type: "error", children: [
|
|
1919
|
+
"An error occurred: ",
|
|
1920
|
+
re
|
|
1921
|
+
] });
|
|
1922
|
+
const m = () => /* @__PURE__ */ I.jsx(
|
|
2062
1923
|
"div",
|
|
2063
1924
|
{
|
|
2064
|
-
|
|
2065
|
-
|
|
1925
|
+
style: {
|
|
1926
|
+
position: "absolute",
|
|
1927
|
+
top: 0,
|
|
1928
|
+
left: 0,
|
|
1929
|
+
right: 0,
|
|
1930
|
+
bottom: 0,
|
|
1931
|
+
display: "flex",
|
|
1932
|
+
alignItems: "center",
|
|
1933
|
+
justifyContent: "center",
|
|
1934
|
+
background: "rgba(0,0,0,0.8)",
|
|
1935
|
+
zIndex: 10
|
|
1936
|
+
},
|
|
1937
|
+
children: /* @__PURE__ */ I.jsx(nr, { type: "loading", children: "Loading..." })
|
|
2066
1938
|
}
|
|
2067
|
-
)
|
|
2068
|
-
|
|
2069
|
-
/* @__PURE__ */
|
|
2070
|
-
ar,
|
|
2071
|
-
{
|
|
2072
|
-
id: Q,
|
|
2073
|
-
ref: j,
|
|
2074
|
-
width: P || "100%",
|
|
2075
|
-
height: L || "auto",
|
|
2076
|
-
$hiddenClasses: c,
|
|
2077
|
-
className: I
|
|
2078
|
-
}
|
|
2079
|
-
),
|
|
2080
|
-
(D || !Y) && /* @__PURE__ */ F.jsx(
|
|
1939
|
+
);
|
|
1940
|
+
return d ? /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
1941
|
+
!te && /* @__PURE__ */ I.jsx(
|
|
2081
1942
|
"div",
|
|
2082
1943
|
{
|
|
1944
|
+
onClick: ce,
|
|
2083
1945
|
style: {
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
justifyContent: "center",
|
|
2092
|
-
background: "rgba(0,0,0,0.8)",
|
|
2093
|
-
zIndex: 10
|
|
2094
|
-
},
|
|
2095
|
-
children: /* @__PURE__ */ F.jsx(Oe, { type: "loading", children: "Loading..." })
|
|
1946
|
+
cursor: "pointer",
|
|
1947
|
+
width: "100%",
|
|
1948
|
+
height: "100%",
|
|
1949
|
+
backgroundImage: w ? `url(${w})` : void 0,
|
|
1950
|
+
backgroundSize: "cover",
|
|
1951
|
+
backgroundPosition: "center"
|
|
1952
|
+
}
|
|
2096
1953
|
}
|
|
2097
|
-
)
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
S.stopPropagation();
|
|
2105
|
-
},
|
|
2106
|
-
children: /* @__PURE__ */ F.jsxs("div", { style: { position: "relative" }, children: [
|
|
2107
|
-
/* @__PURE__ */ F.jsx(
|
|
2108
|
-
ar,
|
|
2109
|
-
{
|
|
2110
|
-
id: Q,
|
|
2111
|
-
ref: j,
|
|
2112
|
-
width: "100%",
|
|
2113
|
-
height: "100%",
|
|
2114
|
-
$hiddenClasses: c,
|
|
2115
|
-
className: I
|
|
2116
|
-
}
|
|
2117
|
-
),
|
|
2118
|
-
(D || !Y) && /* @__PURE__ */ F.jsx(
|
|
1954
|
+
),
|
|
1955
|
+
te && /* @__PURE__ */ I.jsx(kt, { onClick: i, className: g, children: /* @__PURE__ */ I.jsx(
|
|
1956
|
+
St,
|
|
1957
|
+
{
|
|
1958
|
+
className: g,
|
|
1959
|
+
onClick: (o) => o.stopPropagation(),
|
|
1960
|
+
children: /* @__PURE__ */ I.jsxs(
|
|
2119
1961
|
"div",
|
|
2120
1962
|
{
|
|
2121
1963
|
style: {
|
|
2122
|
-
position: "
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
right: 0,
|
|
2126
|
-
bottom: 0,
|
|
2127
|
-
display: "flex",
|
|
2128
|
-
alignItems: "center",
|
|
2129
|
-
justifyContent: "center",
|
|
2130
|
-
background: "rgba(0,0,0,0.8)",
|
|
2131
|
-
zIndex: 10
|
|
1964
|
+
position: "relative",
|
|
1965
|
+
width: "100%",
|
|
1966
|
+
height: "100%"
|
|
2132
1967
|
},
|
|
2133
|
-
children:
|
|
1968
|
+
children: [
|
|
1969
|
+
/* @__PURE__ */ I.jsx(
|
|
1970
|
+
ar,
|
|
1971
|
+
{
|
|
1972
|
+
id: V,
|
|
1973
|
+
ref: Y,
|
|
1974
|
+
width: "100%",
|
|
1975
|
+
height: "100%",
|
|
1976
|
+
$hiddenClasses: v,
|
|
1977
|
+
className: g
|
|
1978
|
+
}
|
|
1979
|
+
),
|
|
1980
|
+
(ee || !B) && /* @__PURE__ */ I.jsx(m, {})
|
|
1981
|
+
]
|
|
2134
1982
|
}
|
|
2135
1983
|
)
|
|
2136
|
-
|
|
2137
|
-
}
|
|
2138
|
-
) }
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
showPlayer: l,
|
|
2153
|
-
hidePlayer: p,
|
|
2154
|
-
isPlayerVisible: r,
|
|
2155
|
-
playerParams: n
|
|
2156
|
-
}),
|
|
2157
|
-
[l, p, r, n]
|
|
2158
|
-
);
|
|
2159
|
-
return /* @__PURE__ */ F.jsxs(Pr.Provider, { value: f, children: [
|
|
2160
|
-
e,
|
|
2161
|
-
i && /* @__PURE__ */ F.jsx(Oe, { type: "error", children: i }),
|
|
2162
|
-
r && (n == null ? void 0 : n.playerId) && /* @__PURE__ */ F.jsx(
|
|
2163
|
-
$t,
|
|
2164
|
-
{
|
|
2165
|
-
playerId: n.playerId,
|
|
2166
|
-
videoId: n.videoId,
|
|
2167
|
-
projectId: n.projectId,
|
|
2168
|
-
videoUrl: n.videoUrl,
|
|
2169
|
-
version: n.version,
|
|
2170
|
-
playlistId: n.playlistId,
|
|
2171
|
-
scriptUrl: n.scriptUrl,
|
|
2172
|
-
config: n.config,
|
|
2173
|
-
isReels: n.isReels,
|
|
2174
|
-
thumbnailUrl: n.thumbnailUrl,
|
|
2175
|
-
onClose: p,
|
|
2176
|
-
hiddenClasses: n.hiddenClasses || [],
|
|
2177
|
-
className: n.className
|
|
2178
|
-
}
|
|
2179
|
-
)
|
|
2180
|
-
] });
|
|
2181
|
-
}, zt = () => {
|
|
2182
|
-
const e = ir(Pr);
|
|
2183
|
-
if (!e) throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
2184
|
-
return e;
|
|
2185
|
-
}, Ft = {
|
|
2186
|
-
projectId: void 0,
|
|
2187
|
-
video: {
|
|
2188
|
-
// NOTE: Do NOT set file: '' here - it interferes with managed mode
|
|
2189
|
-
// where the SDK resolves the video URL from videoId + projectId
|
|
2190
|
-
},
|
|
2191
|
-
config: {
|
|
2192
|
-
autoplay: !0,
|
|
2193
|
-
muted: !0,
|
|
2194
|
-
// Required for browser autoplay policy
|
|
2195
|
-
loop: !1,
|
|
2196
|
-
size: {
|
|
2197
|
-
width: "100%",
|
|
2198
|
-
height: "30vh"
|
|
2199
|
-
}
|
|
2200
|
-
// NOTE: Do NOT set controls here - let the SDK/managed script
|
|
2201
|
-
// use what's configured in the Gjirafa admin panel (projectId config)
|
|
2202
|
-
}
|
|
2203
|
-
}, Mt = {
|
|
2204
|
-
config: {
|
|
2205
|
-
autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
|
|
2206
|
-
muted: !0
|
|
2207
|
-
}
|
|
2208
|
-
}, Vt = {
|
|
2209
|
-
config: {
|
|
2210
|
-
autoplay: !0,
|
|
2211
|
-
muted: !0
|
|
2212
|
-
}
|
|
2213
|
-
}, Fe = {
|
|
2214
|
-
video: {
|
|
2215
|
-
advertising: !0,
|
|
2216
|
-
ads: {
|
|
2217
|
-
skipAd: { state: !0, skipFrom: 5 }
|
|
2218
|
-
}
|
|
2219
|
-
},
|
|
2220
|
-
config: {
|
|
2221
|
-
adAnnouncement: { state: !0, timeBeforeAd: 5 },
|
|
2222
|
-
adsRequireInteraction: !1
|
|
1984
|
+
}
|
|
1985
|
+
) })
|
|
1986
|
+
] }) : /* @__PURE__ */ I.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
1987
|
+
/* @__PURE__ */ I.jsx(
|
|
1988
|
+
ar,
|
|
1989
|
+
{
|
|
1990
|
+
id: V,
|
|
1991
|
+
ref: Y,
|
|
1992
|
+
width: "100%",
|
|
1993
|
+
height: "100%",
|
|
1994
|
+
$hiddenClasses: v,
|
|
1995
|
+
className: g
|
|
1996
|
+
}
|
|
1997
|
+
),
|
|
1998
|
+
(ee || !B) && /* @__PURE__ */ I.jsx(m, {})
|
|
1999
|
+
] });
|
|
2223
2000
|
}
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
return {
|
|
2227
|
-
...Fe,
|
|
2228
|
-
video: {
|
|
2229
|
-
...Fe.video,
|
|
2230
|
-
ads: {
|
|
2231
|
-
...(a = Fe.video) == null ? void 0 : a.ads,
|
|
2232
|
-
adBreaks: [
|
|
2233
|
-
{
|
|
2234
|
-
adTagUrl: r,
|
|
2235
|
-
breakType: e,
|
|
2236
|
-
breakTimingType: t,
|
|
2237
|
-
breakTimingValue: n
|
|
2238
|
-
}
|
|
2239
|
-
]
|
|
2240
|
-
}
|
|
2241
|
-
}
|
|
2242
|
-
};
|
|
2243
|
-
}, Bt = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Ut = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", Wt = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", qt = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Yt = "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=", Gt = "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=";
|
|
2001
|
+
);
|
|
2002
|
+
Nt.displayName = "VPPlayer";
|
|
2244
2003
|
export {
|
|
2245
|
-
|
|
2246
|
-
Gt as AD_TAG_SKIPPABLE_LINEAR_URL,
|
|
2247
|
-
Bt as BIG_BUCK_BUNNY_URL,
|
|
2248
|
-
Ut as ELEPHANTS_DREAM_URL,
|
|
2249
|
-
St as Overlay,
|
|
2250
|
-
qt as PEXELS_THUMBNAIL_URL,
|
|
2251
|
-
Wt as PEXELS_VERTICAL_VIDEO_URL,
|
|
2004
|
+
kt as Overlay,
|
|
2252
2005
|
ar as PlayerContainer,
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
jt as useVPPlayerLogic,
|
|
2265
|
-
Ct as useVPPlayerScript
|
|
2006
|
+
St as PlayerWrapper,
|
|
2007
|
+
Nt as VPPlayer,
|
|
2008
|
+
ue as VP_PLAYER_BASE_URL,
|
|
2009
|
+
Ot as appendDivIdToUrl,
|
|
2010
|
+
Ct as generatePlayerId,
|
|
2011
|
+
Rt as getFullyManagedPlayerScriptUrl,
|
|
2012
|
+
It as getManagedPlayerScriptUrl,
|
|
2013
|
+
Et as getPlayerScriptUrl,
|
|
2014
|
+
_t as getVerticalPlayerScriptUrl,
|
|
2015
|
+
Ft as useVPPlayerLogic,
|
|
2016
|
+
jt as useVPPlayerScript
|
|
2266
2017
|
};
|