@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.1 → 1.0.31-beta.5
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 +202 -99
- package/dist/index.d.ts +374 -562
- package/dist/react-gjirafa-vp-player.es.js +1075 -1327
- package/dist/react-gjirafa-vp-player.umd.js +9 -9
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as ne from "react";
|
|
2
|
+
import mr, { forwardRef as nr, useContext as gr, useState as Re, useEffect as je, useRef as be, useId as yr, useMemo as ve, useImperativeHandle as br } from "react";
|
|
3
|
+
var xe = { exports: {} }, fe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -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 We;
|
|
14
|
+
function vr() {
|
|
15
|
+
if (We) return fe;
|
|
16
|
+
We = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
|
-
function t(
|
|
19
|
-
var
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
} else
|
|
25
|
-
return
|
|
18
|
+
function t(a, n, s) {
|
|
19
|
+
var l = null;
|
|
20
|
+
if (s !== void 0 && (l = "" + s), n.key !== void 0 && (l = "" + n.key), "key" in n) {
|
|
21
|
+
s = {};
|
|
22
|
+
for (var u in n)
|
|
23
|
+
u !== "key" && (s[u] = n[u]);
|
|
24
|
+
} else s = n;
|
|
25
|
+
return n = s.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
|
-
type:
|
|
28
|
-
key:
|
|
29
|
-
ref:
|
|
30
|
-
props:
|
|
27
|
+
type: a,
|
|
28
|
+
key: l,
|
|
29
|
+
ref: n !== void 0 ? n : null,
|
|
30
|
+
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return fe.Fragment = r, fe.jsx = t, fe.jsxs = t, fe;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var de = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,47 +42,47 @@ 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
|
|
45
|
+
var Ye;
|
|
46
|
+
function xr() {
|
|
47
|
+
return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
48
|
function e(o) {
|
|
49
49
|
if (o == null) return null;
|
|
50
50
|
if (typeof o == "function")
|
|
51
|
-
return o.$$typeof ===
|
|
51
|
+
return o.$$typeof === B ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case x:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case R:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case w:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case $:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case k:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case L:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
68
68
|
switch (typeof o.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
70
|
), o.$$typeof) {
|
|
71
|
-
case
|
|
71
|
+
case v:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case M:
|
|
74
74
|
return o.displayName || "Context";
|
|
75
|
-
case
|
|
75
|
+
case j:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return o = o.displayName, o || (o =
|
|
80
|
-
case J:
|
|
81
|
-
return m = o.displayName || null, m !== null ? m : e(o.type) || "Memo";
|
|
77
|
+
case N:
|
|
78
|
+
var f = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = f.displayName || f.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
82
80
|
case q:
|
|
83
|
-
|
|
81
|
+
return f = o.displayName || null, f !== null ? f : e(o.type) || "Memo";
|
|
82
|
+
case J:
|
|
83
|
+
f = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(o(
|
|
85
|
+
return e(o(f));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,74 +94,74 @@ function Ir() {
|
|
|
94
94
|
function t(o) {
|
|
95
95
|
try {
|
|
96
96
|
r(o);
|
|
97
|
-
var
|
|
97
|
+
var f = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
f = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (f) {
|
|
102
|
+
f = console;
|
|
103
|
+
var i = f.error, c = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return i.call(
|
|
105
|
+
f,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
c
|
|
108
108
|
), r(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (o ===
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
111
|
+
function a(o) {
|
|
112
|
+
if (o === x) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === J)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var f = e(o);
|
|
117
|
+
return f ? "<" + f + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
var o =
|
|
122
|
+
function n() {
|
|
123
|
+
var o = z.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function s() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
129
|
+
function l(o) {
|
|
130
|
+
if (g.call(o, "key")) {
|
|
131
|
+
var f = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (f && f.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function u(o, f) {
|
|
137
|
+
function i() {
|
|
138
|
+
W || (W = !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
|
+
f
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
i.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: i,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function h() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
150
|
+
return te[o] || (te[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
152
|
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
var
|
|
154
|
+
function y(o, f, i, c, C, oe) {
|
|
155
|
+
var P = i.ref;
|
|
156
156
|
return o = {
|
|
157
|
-
$$typeof:
|
|
157
|
+
$$typeof: A,
|
|
158
158
|
type: o,
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
159
|
+
key: f,
|
|
160
|
+
props: i,
|
|
161
|
+
_owner: c
|
|
162
|
+
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(o, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
164
|
+
get: h
|
|
165
165
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
@@ -176,217 +176,217 @@ function Ir() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: C
|
|
180
180
|
}), Object.defineProperty(o, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: oe
|
|
185
185
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function m(o, f, i, c, C, oe) {
|
|
188
|
+
var P = f.children;
|
|
189
|
+
if (P !== void 0)
|
|
190
|
+
if (c)
|
|
191
|
+
if (Z(P)) {
|
|
192
|
+
for (c = 0; c < P.length; c++)
|
|
193
|
+
b(P[c]);
|
|
194
|
+
Object.freeze && Object.freeze(P);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
var
|
|
203
|
-
return
|
|
199
|
+
else b(P);
|
|
200
|
+
if (g.call(f, "key")) {
|
|
201
|
+
P = e(o);
|
|
202
|
+
var _ = Object.keys(f).filter(function(d) {
|
|
203
|
+
return d !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
c = 0 < _.length ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}", ae[P + c] || (_ = 0 < _.length ? "{" + _.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
|
+
P,
|
|
214
|
+
_,
|
|
215
|
+
P
|
|
216
|
+
), ae[P + c] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
223
|
-
return
|
|
224
|
-
|
|
218
|
+
if (P = null, i !== void 0 && (t(i), P = "" + i), l(f) && (t(f.key), P = "" + f.key), "key" in f) {
|
|
219
|
+
i = {};
|
|
220
|
+
for (var p in f)
|
|
221
|
+
p !== "key" && (i[p] = f[p]);
|
|
222
|
+
} else i = f;
|
|
223
|
+
return P && u(
|
|
224
|
+
i,
|
|
225
225
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
226
|
-
),
|
|
226
|
+
), y(
|
|
227
227
|
o,
|
|
228
|
-
O,
|
|
229
228
|
P,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
i,
|
|
230
|
+
n(),
|
|
231
|
+
C,
|
|
232
|
+
oe
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
235
|
+
function b(o) {
|
|
236
|
+
O(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === J && (o._payload.status === "fulfilled" ? O(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return typeof o == "object" && o !== null && o.$$typeof ===
|
|
238
|
+
function O(o) {
|
|
239
|
+
return typeof o == "object" && o !== null && o.$$typeof === A;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var T = mr, A = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), M = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), J = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), B = Symbol.for("react.client.reference"), z = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Z = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
T = {
|
|
245
245
|
react_stack_bottom_frame: function(o) {
|
|
246
246
|
return o();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
)(),
|
|
253
|
-
|
|
254
|
-
var
|
|
255
|
-
return
|
|
249
|
+
var W, te = {}, H = T.react_stack_bottom_frame.bind(
|
|
250
|
+
T,
|
|
251
|
+
s
|
|
252
|
+
)(), Q = D(a(s)), ae = {};
|
|
253
|
+
de.Fragment = x, de.jsx = function(o, f, i) {
|
|
254
|
+
var c = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return m(
|
|
256
256
|
o,
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
f,
|
|
258
|
+
i,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
c ? Error("react-stack-top-frame") : H,
|
|
261
|
+
c ? D(a(o)) : Q
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return
|
|
263
|
+
}, de.jsxs = function(o, f, i) {
|
|
264
|
+
var c = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return m(
|
|
266
266
|
o,
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
f,
|
|
268
|
+
i,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
c ? Error("react-stack-top-frame") : H,
|
|
271
|
+
c ? D(a(o)) : Q
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
|
-
})()),
|
|
274
|
+
})()), de;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var qe;
|
|
277
|
+
function wr() {
|
|
278
|
+
return qe || (qe = 1, process.env.NODE_ENV === "production" ? xe.exports = vr() : xe.exports = xr()), xe.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var I = wr();
|
|
281
|
+
function Fe() {
|
|
282
|
+
return Fe = Object.assign ? Object.assign.bind() : function(e) {
|
|
283
283
|
for (var r = 1; r < arguments.length; r++) {
|
|
284
284
|
var t = arguments[r];
|
|
285
|
-
for (var
|
|
285
|
+
for (var a in t) ({}).hasOwnProperty.call(t, a) && (e[a] = t[a]);
|
|
286
286
|
}
|
|
287
287
|
return e;
|
|
288
|
-
},
|
|
288
|
+
}, Fe.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Pr(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 kr(e) {
|
|
298
298
|
var r = document.createElement("style");
|
|
299
299
|
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
301
|
+
var Sr = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(t) {
|
|
303
|
-
var
|
|
304
|
-
this._insertTag = function(
|
|
305
|
-
var
|
|
306
|
-
|
|
303
|
+
var a = this;
|
|
304
|
+
this._insertTag = function(n) {
|
|
305
|
+
var s;
|
|
306
|
+
a.tags.length === 0 ? a.insertionPoint ? s = a.insertionPoint.nextSibling : a.prepend ? s = a.container.firstChild : s = a.before : s = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(n, s), a.tags.push(n);
|
|
307
307
|
}, this.isSpeedy = t.speedy === void 0 ? !0 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
|
|
308
308
|
}
|
|
309
309
|
var r = e.prototype;
|
|
310
|
-
return r.hydrate = function(
|
|
311
|
-
|
|
312
|
-
}, r.insert = function(
|
|
313
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
314
|
-
var
|
|
310
|
+
return r.hydrate = function(a) {
|
|
311
|
+
a.forEach(this._insertTag);
|
|
312
|
+
}, r.insert = function(a) {
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(kr(this));
|
|
314
|
+
var n = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var
|
|
316
|
+
var s = Pr(n);
|
|
317
317
|
try {
|
|
318
|
-
|
|
318
|
+
s.insertRule(a, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
n.appendChild(document.createTextNode(a));
|
|
323
323
|
this.ctr++;
|
|
324
324
|
}, r.flush = function() {
|
|
325
|
-
this.tags.forEach(function(
|
|
326
|
-
var
|
|
327
|
-
return (
|
|
325
|
+
this.tags.forEach(function(a) {
|
|
326
|
+
var n;
|
|
327
|
+
return (n = a.parentNode) == null ? void 0 : n.removeChild(a);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(),
|
|
331
|
-
function
|
|
332
|
-
return
|
|
330
|
+
})(), U = "-ms-", _e = "-moz-", S = "-webkit-", ar = "comm", Ne = "rule", Le = "decl", Er = "@import", ir = "@keyframes", Rr = "@layer", _r = Math.abs, Te = String.fromCharCode, Tr = Object.assign;
|
|
331
|
+
function Ar(e, r) {
|
|
332
|
+
return V(e, 0) ^ 45 ? (((r << 2 ^ V(e, 0)) << 2 ^ V(e, 1)) << 2 ^ V(e, 2)) << 2 ^ V(e, 3) : 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function or(e) {
|
|
335
335
|
return e.trim();
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Cr(e, r) {
|
|
338
338
|
return (e = r.exec(e)) ? e[0] : e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function E(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 V(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function he(e, r, t) {
|
|
350
350
|
return e.slice(r, t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function K(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ve(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function we(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Or(e, r) {
|
|
362
362
|
return e.map(r).join("");
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
366
|
-
return { value: e, root: r, parent: t, type:
|
|
364
|
+
var Ae = 1, ce = 1, sr = 0, Y = 0, F = 0, ue = "";
|
|
365
|
+
function Ce(e, r, t, a, n, s, l) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: a, props: n, children: s, line: Ae, column: ce, length: l, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
368
|
+
function pe(e, r) {
|
|
369
|
+
return Tr(Ce("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function $r() {
|
|
372
|
+
return F;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function jr() {
|
|
375
|
+
return F = Y > 0 ? V(ue, --Y) : 0, ce--, F === 10 && (ce = 1, Ae--), F;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
377
|
+
function G() {
|
|
378
|
+
return F = Y < sr ? V(ue, Y++) : 0, ce++, F === 10 && (ce = 1, Ae++), F;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function re() {
|
|
381
|
+
return V(ue, Y);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function ke() {
|
|
384
|
+
return Y;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function ye(e, r) {
|
|
387
|
+
return he(ue, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function me(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -424,260 +424,260 @@ function xe(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function cr(e) {
|
|
428
|
+
return Ae = ce = 1, sr = K(ue = e), Y = 0, [];
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
430
|
+
function lr(e) {
|
|
431
|
+
return ue = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
433
|
+
function Se(e) {
|
|
434
|
+
return or(ye(Y - 1, Me(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
for (; (
|
|
438
|
-
|
|
439
|
-
return
|
|
436
|
+
function Fr(e) {
|
|
437
|
+
for (; (F = re()) && F < 33; )
|
|
438
|
+
G();
|
|
439
|
+
return me(e) > 2 || me(F) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function Ir(e, r) {
|
|
442
|
+
for (; --r && G() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return ye(e, ke() + (r < 6 && re() == 32 && G() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
448
|
-
switch (
|
|
446
|
+
function Me(e) {
|
|
447
|
+
for (; G(); )
|
|
448
|
+
switch (F) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
|
-
return
|
|
451
|
+
return Y;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && Me(F);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && Me(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
|
-
|
|
463
|
+
G();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return Y;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (;
|
|
470
|
-
if (e +
|
|
468
|
+
function Mr(e, r) {
|
|
469
|
+
for (; G() && e + F !== 57; )
|
|
470
|
+
if (e + F === 84 && re() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + ye(r, Y - 1) + "*" + Te(e === 47 ? e : G());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
for (; !
|
|
476
|
-
|
|
477
|
-
return
|
|
474
|
+
function Nr(e) {
|
|
475
|
+
for (; !me(re()); )
|
|
476
|
+
G();
|
|
477
|
+
return ye(e, Y);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function Lr(e) {
|
|
480
|
+
return lr(Ee("", null, null, null, [""], e = cr(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
for (var
|
|
484
|
-
switch (
|
|
482
|
+
function Ee(e, r, t, a, n, s, l, u, h) {
|
|
483
|
+
for (var y = 0, m = 0, b = l, O = 0, T = 0, A = 0, v = 1, x = 1, w = 1, R = 0, j = "", M = n, N = s, $ = a, k = j; x; )
|
|
484
|
+
switch (A = R, R = G()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (
|
|
488
|
-
|
|
487
|
+
if (A != 108 && V(k, b - 1) == 58) {
|
|
488
|
+
Ie(k += E(Se(R), "&", "&\f"), "&\f") != -1 && (w = -1);
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
// " ' [
|
|
492
492
|
case 34:
|
|
493
493
|
case 39:
|
|
494
494
|
case 91:
|
|
495
|
-
|
|
495
|
+
k += Se(R);
|
|
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
|
+
k += Fr(A);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
k += Ir(ke() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
|
-
switch (
|
|
510
|
+
switch (re()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
we(Vr(Mr(G(), ke()), r, t), h);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
k += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
|
-
case 123 *
|
|
521
|
-
|
|
520
|
+
case 123 * v:
|
|
521
|
+
u[y++] = K(k) * w;
|
|
522
522
|
// } ; \0
|
|
523
|
-
case 125 *
|
|
523
|
+
case 125 * v:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
|
-
switch (
|
|
526
|
+
switch (R) {
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
x = 0;
|
|
531
531
|
// ;
|
|
532
|
-
case 59 +
|
|
533
|
-
|
|
532
|
+
case 59 + m:
|
|
533
|
+
w == -1 && (k = E(k, /\f/g, "")), T > 0 && K(k) - b && we(T > 32 ? Ge(k + ";", a, t, b - 1) : Ge(E(k, " ", "") + ";", a, t, b - 2), h);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
k += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
541
|
-
if (
|
|
542
|
-
|
|
540
|
+
if (we($ = He(k, r, t, y, m, n, u, j, M = [], N = [], b), s), R === 123)
|
|
541
|
+
if (m === 0)
|
|
542
|
+
Ee(k, r, $, $, M, s, b, u, N);
|
|
543
543
|
else
|
|
544
|
-
switch (
|
|
544
|
+
switch (O === 99 && V(k, 3) === 110 ? 100 : O) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
|
|
550
|
+
Ee(e, $, $, a && we(He(e, $, $, 0, 0, n, u, j, n, M = [], b), N), n, N, b, u, a ? M : N);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
Ee(k, $, $, $, [""], N, 0, u, N);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
y = m = T = 0, v = w = 1, j = k = "", b = l;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
|
|
560
|
+
b = 1 + K(k), T = A;
|
|
561
561
|
default:
|
|
562
|
-
if (
|
|
563
|
-
if (
|
|
564
|
-
--
|
|
565
|
-
else if (
|
|
562
|
+
if (v < 1) {
|
|
563
|
+
if (R == 123)
|
|
564
|
+
--v;
|
|
565
|
+
else if (R == 125 && v++ == 0 && jr() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (k += Te(R), R * v) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
w = m > 0 ? 1 : (k += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
|
|
575
|
+
u[y++] = (K(k) - 1) * w, w = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
|
|
579
|
+
re() === 45 && (k += Se(G())), O = re(), m = b = K(j = k += Nr(ke())), R++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
|
|
583
|
+
A === 45 && K(k) == 2 && (v = 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 He(e, r, t, a, n, s, l, u, h, y, m) {
|
|
589
|
+
for (var b = n - 1, O = n === 0 ? s : [""], T = Ve(O), A = 0, v = 0, x = 0; A < a; ++A)
|
|
590
|
+
for (var w = 0, R = he(e, b + 1, b = _r(v = l[A])), j = e; w < T; ++w)
|
|
591
|
+
(j = or(v > 0 ? O[w] + " " + R : E(R, /&\f/g, O[w]))) && (h[x++] = j);
|
|
592
|
+
return Ce(e, r, t, n === 0 ? Ne : u, h, y, m);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function Vr(e, r, t) {
|
|
595
|
+
return Ce(e, r, t, ar, Te($r()), he(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
597
|
+
function Ge(e, r, t, a) {
|
|
598
|
+
return Ce(e, r, t, Le, he(e, 0, a), he(e, a + 1, -1), a);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "",
|
|
602
|
-
t += r(e[
|
|
600
|
+
function se(e, r) {
|
|
601
|
+
for (var t = "", a = Ve(e), n = 0; n < a; n++)
|
|
602
|
+
t += r(e[n], n, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function zr(e, r, t, a) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case
|
|
607
|
+
case Rr:
|
|
608
608
|
if (e.children.length) break;
|
|
609
|
-
case
|
|
610
|
-
case
|
|
609
|
+
case Er:
|
|
610
|
+
case Le:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case ar:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
614
|
+
case ir:
|
|
615
|
+
return e.return = e.value + "{" + se(e.children, a) + "}";
|
|
616
|
+
case Ne:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return K(t = se(e.children, a)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
623
|
-
return function(t,
|
|
624
|
-
for (var
|
|
625
|
-
|
|
626
|
-
return
|
|
621
|
+
function Ur(e) {
|
|
622
|
+
var r = Ve(e);
|
|
623
|
+
return function(t, a, n, s) {
|
|
624
|
+
for (var l = "", u = 0; u < r; u++)
|
|
625
|
+
l += e[u](t, a, n, s) || "";
|
|
626
|
+
return l;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Dr(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ur(e) {
|
|
635
635
|
var r = /* @__PURE__ */ Object.create(null);
|
|
636
636
|
return function(t) {
|
|
637
637
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
for (var
|
|
642
|
-
|
|
643
|
-
return
|
|
644
|
-
},
|
|
645
|
-
var
|
|
640
|
+
var Wr = function(r, t, a) {
|
|
641
|
+
for (var n = 0, s = 0; n = s, s = re(), n === 38 && s === 12 && (t[a] = 1), !me(s); )
|
|
642
|
+
G();
|
|
643
|
+
return ye(r, Y);
|
|
644
|
+
}, Yr = function(r, t) {
|
|
645
|
+
var a = -1, n = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch (me(n)) {
|
|
648
648
|
case 0:
|
|
649
|
-
|
|
649
|
+
n === 38 && re() === 12 && (t[a] = 1), r[a] += Wr(Y - 1, t, a);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[
|
|
652
|
+
r[a] += Se(n);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
|
-
if (
|
|
656
|
-
r[++
|
|
655
|
+
if (n === 44) {
|
|
656
|
+
r[++a] = re() === 58 ? "&\f" : "", t[a] = r[a].length;
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[
|
|
661
|
+
r[a] += Te(n);
|
|
662
662
|
}
|
|
663
|
-
while (
|
|
663
|
+
while (n = G());
|
|
664
664
|
return r;
|
|
665
|
-
},
|
|
666
|
-
return
|
|
667
|
-
},
|
|
665
|
+
}, qr = function(r, t) {
|
|
666
|
+
return lr(Yr(cr(r), t));
|
|
667
|
+
}, Be = /* @__PURE__ */ new WeakMap(), Hr = function(r) {
|
|
668
668
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
669
669
|
// negative .length indicates that this rule has been already prefixed
|
|
670
670
|
r.length < 1)) {
|
|
671
|
-
for (var t = r.value,
|
|
672
|
-
if (
|
|
673
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
674
|
-
|
|
675
|
-
for (var
|
|
676
|
-
for (var
|
|
677
|
-
r.props[
|
|
671
|
+
for (var t = r.value, a = r.parent, n = r.column === a.column && r.line === a.line; a.type !== "rule"; )
|
|
672
|
+
if (a = a.parent, !a) return;
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Be.get(a)) && !n) {
|
|
674
|
+
Be.set(r, !0);
|
|
675
|
+
for (var s = [], l = qr(t, s), u = a.props, h = 0, y = 0; h < l.length; h++)
|
|
676
|
+
for (var m = 0; m < u.length; m++, y++)
|
|
677
|
+
r.props[y] = s[h] ? l[h].replace(/&\f/g, u[m]) : u[m] + " " + l[h];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, Gr = 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 fr(e, r) {
|
|
689
|
+
switch (Ar(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
|
-
return
|
|
692
|
+
return S + "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 S + 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 S + e + _e + e + U + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
733
|
-
return
|
|
733
|
+
return S + e + U + e + e;
|
|
734
734
|
// order
|
|
735
735
|
case 6165:
|
|
736
|
-
return
|
|
736
|
+
return S + e + U + "flex-" + e + e;
|
|
737
737
|
// align-items
|
|
738
738
|
case 5187:
|
|
739
|
-
return
|
|
739
|
+
return S + e + E(e, /(\w+).+(:[^]+)/, S + "box-$1$2" + U + "flex-$1$2") + e;
|
|
740
740
|
// align-self
|
|
741
741
|
case 5443:
|
|
742
|
-
return
|
|
742
|
+
return S + e + U + "flex-item-" + E(e, /flex-|-self/, "") + e;
|
|
743
743
|
// align-content
|
|
744
744
|
case 4675:
|
|
745
|
-
return
|
|
745
|
+
return S + e + U + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
|
|
746
746
|
// flex-shrink
|
|
747
747
|
case 5548:
|
|
748
|
-
return
|
|
748
|
+
return S + e + U + E(e, "shrink", "negative") + e;
|
|
749
749
|
// flex-basis
|
|
750
750
|
case 5292:
|
|
751
|
-
return
|
|
751
|
+
return S + e + U + E(e, "basis", "preferred-size") + e;
|
|
752
752
|
// flex-grow
|
|
753
753
|
case 6060:
|
|
754
|
-
return
|
|
754
|
+
return S + "box-" + E(e, "-grow", "") + S + e + U + E(e, "grow", "positive") + e;
|
|
755
755
|
// transition
|
|
756
756
|
case 4554:
|
|
757
|
-
return
|
|
757
|
+
return S + E(e, /([^-])(transform)/g, "$1" + S + "$2") + e;
|
|
758
758
|
// cursor
|
|
759
759
|
case 6187:
|
|
760
|
-
return
|
|
760
|
+
return E(E(E(e, /(zoom-|grab)/, S + "$1"), /(image-set)/, S + "$1"), e, "") + e;
|
|
761
761
|
// background, background-image
|
|
762
762
|
case 5495:
|
|
763
763
|
case 3959:
|
|
764
|
-
return
|
|
764
|
+
return E(e, /(image-set\([^]*)/, S + "$1$`$1");
|
|
765
765
|
// justify-content
|
|
766
766
|
case 4968:
|
|
767
|
-
return
|
|
767
|
+
return E(E(e, /(.+:)(flex-)?(.*)/, S + "box-pack:$3" + U + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + S + 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(e, /(.+)-inline(.+)/, S + "$1$2") + e;
|
|
774
774
|
// (min|max)?(width|height|inline-size|block-size)
|
|
775
775
|
case 8116:
|
|
776
776
|
case 7059:
|
|
@@ -784,176 +784,176 @@ function hr(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (
|
|
787
|
+
if (K(e) - 1 - r > 6) switch (V(e, r + 1)) {
|
|
788
788
|
// (m)ax-content, (m)in-content
|
|
789
789
|
case 109:
|
|
790
|
-
if (
|
|
790
|
+
if (V(e, r + 4) !== 45) break;
|
|
791
791
|
// (f)ill-available, (f)it-content
|
|
792
792
|
case 102:
|
|
793
|
-
return
|
|
793
|
+
return E(e, /(.+:)(.+)-([^]+)/, "$1" + S + "$2-$3$1" + _e + (V(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~Ie(e, "stretch") ? fr(E(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
800
800
|
case 4949:
|
|
801
|
-
if (
|
|
801
|
+
if (V(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (
|
|
804
|
+
switch (V(e, K(e) - 3 - (~Ie(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
|
-
return
|
|
807
|
+
return E(e, ":", ":" + S) + e;
|
|
808
808
|
// (inline-)?fl(e)x
|
|
809
809
|
case 101:
|
|
810
|
-
return
|
|
810
|
+
return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + S + (V(e, 14) === 45 ? "inline-" : "") + "box$3$1" + S + "$2$3$1" + U + "$2box$3") + e;
|
|
811
811
|
}
|
|
812
812
|
break;
|
|
813
813
|
// writing-mode
|
|
814
814
|
case 5936:
|
|
815
|
-
switch (
|
|
815
|
+
switch (V(e, r + 11)) {
|
|
816
816
|
// vertical-l(r)
|
|
817
817
|
case 114:
|
|
818
|
-
return
|
|
818
|
+
return S + e + U + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
819
819
|
// vertical-r(l)
|
|
820
820
|
case 108:
|
|
821
|
-
return
|
|
821
|
+
return S + e + U + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
822
822
|
// horizontal(-)tb
|
|
823
823
|
case 45:
|
|
824
|
-
return
|
|
824
|
+
return S + e + U + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return S + e + U + e + e;
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Br = function(r, t, a, n) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case Le:
|
|
833
|
+
r.return = fr(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
836
|
-
return
|
|
837
|
-
value:
|
|
838
|
-
})],
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
841
|
-
switch (
|
|
835
|
+
case ir:
|
|
836
|
+
return se([pe(r, {
|
|
837
|
+
value: E(r.value, "@", "@" + S)
|
|
838
|
+
})], n);
|
|
839
|
+
case Ne:
|
|
840
|
+
if (r.length) return Or(r.props, function(s) {
|
|
841
|
+
switch (Cr(s, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
|
-
return
|
|
846
|
-
props: [
|
|
847
|
-
})],
|
|
845
|
+
return se([pe(r, {
|
|
846
|
+
props: [E(s, /:(read-\w+)/, ":" + _e + "$1")]
|
|
847
|
+
})], n);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
851
|
-
props: [
|
|
852
|
-
}),
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
856
|
-
})],
|
|
850
|
+
return se([pe(r, {
|
|
851
|
+
props: [E(s, /:(plac\w+)/, ":" + S + "input-$1")]
|
|
852
|
+
}), pe(r, {
|
|
853
|
+
props: [E(s, /:(plac\w+)/, ":" + _e + "$1")]
|
|
854
|
+
}), pe(r, {
|
|
855
|
+
props: [E(s, /:(plac\w+)/, U + "input-$1")]
|
|
856
|
+
})], n);
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, Xr = [Br], Jr = function(r) {
|
|
862
862
|
var t = r.key;
|
|
863
863
|
if (t === "css") {
|
|
864
|
-
var
|
|
865
|
-
Array.prototype.forEach.call(
|
|
866
|
-
var
|
|
867
|
-
|
|
864
|
+
var a = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
865
|
+
Array.prototype.forEach.call(a, function(v) {
|
|
866
|
+
var x = v.getAttribute("data-emotion");
|
|
867
|
+
x.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var
|
|
871
|
-
|
|
870
|
+
var n = r.stylisPlugins || Xr, s = {}, l, u = [];
|
|
871
|
+
l = 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(v) {
|
|
876
|
+
for (var x = v.getAttribute("data-emotion").split(" "), w = 1; w < x.length; w++)
|
|
877
|
+
s[x[w]] = !0;
|
|
878
|
+
u.push(v);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var
|
|
881
|
+
var h, y = [Hr, Gr];
|
|
882
882
|
{
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
})],
|
|
886
|
-
return
|
|
883
|
+
var m, b = [zr, Dr(function(v) {
|
|
884
|
+
m.insert(v);
|
|
885
|
+
})], O = Ur(y.concat(n, b)), T = function(x) {
|
|
886
|
+
return se(Lr(x), O);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
h = function(x, w, R, j) {
|
|
889
|
+
m = R, T(x ? x + "{" + w.styles + "}" : w.styles), j && (A.inserted[w.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var A = {
|
|
893
893
|
key: t,
|
|
894
|
-
sheet: new
|
|
894
|
+
sheet: new Sr({
|
|
895
895
|
key: t,
|
|
896
|
-
container:
|
|
896
|
+
container: l,
|
|
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: h
|
|
906
906
|
};
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
function
|
|
910
|
-
var
|
|
911
|
-
return t.split(" ").forEach(function(
|
|
912
|
-
e[
|
|
913
|
-
}),
|
|
907
|
+
return A.sheet.hydrate(u), A;
|
|
908
|
+
}, Zr = !0;
|
|
909
|
+
function Qr(e, r, t) {
|
|
910
|
+
var a = "";
|
|
911
|
+
return t.split(" ").forEach(function(n) {
|
|
912
|
+
e[n] !== void 0 ? r.push(e[n] + ";") : n && (a += n + " ");
|
|
913
|
+
}), a;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
916
|
-
var
|
|
915
|
+
var dr = function(r, t, a) {
|
|
916
|
+
var n = r.key + "-" + t.name;
|
|
917
917
|
// we only need to add the styles to the registered cache if the
|
|
918
918
|
// class name could be used further down
|
|
919
919
|
// the tree but if it's a string tag, we know it won't
|
|
920
920
|
// so we don't have to add it to registered cache.
|
|
921
921
|
// this improves memory usage since we can avoid storing the whole style string
|
|
922
|
-
(
|
|
922
|
+
(a === !1 || // we need to always store it if we're in compat mode and
|
|
923
923
|
// in node since emotion-server relies on whether a style is in
|
|
924
924
|
// the registered cache to know whether a style is global or not
|
|
925
925
|
// also, note that this check will be dead code eliminated in the browser
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
|
|
929
|
-
var
|
|
926
|
+
Zr === !1) && r.registered[n] === void 0 && (r.registered[n] = t.styles);
|
|
927
|
+
}, Kr = function(r, t, a) {
|
|
928
|
+
dr(r, t, a);
|
|
929
|
+
var n = 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 ? "." + n : "", s, r.sheet, !0), s = s.next;
|
|
934
|
+
while (s !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
function
|
|
938
|
-
for (var r = 0, t,
|
|
939
|
-
t = e.charCodeAt(
|
|
937
|
+
function et(e) {
|
|
938
|
+
for (var r = 0, t, a = 0, n = e.length; n >= 4; ++a, n -= 4)
|
|
939
|
+
t = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 255) << 24, t = /* Math.imul(k, m): */
|
|
940
940
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
941
941
|
t >>> 24, r = /* Math.imul(k, m): */
|
|
942
942
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
943
943
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
944
|
-
switch (
|
|
944
|
+
switch (n) {
|
|
945
945
|
case 3:
|
|
946
|
-
r ^= (e.charCodeAt(
|
|
946
|
+
r ^= (e.charCodeAt(a + 2) & 255) << 16;
|
|
947
947
|
case 2:
|
|
948
|
-
r ^= (e.charCodeAt(
|
|
948
|
+
r ^= (e.charCodeAt(a + 1) & 255) << 8;
|
|
949
949
|
case 1:
|
|
950
|
-
r ^= e.charCodeAt(
|
|
950
|
+
r ^= e.charCodeAt(a) & 255, r = /* Math.imul(h, m): */
|
|
951
951
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
952
952
|
}
|
|
953
953
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
954
954
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
955
955
|
}
|
|
956
|
-
var
|
|
956
|
+
var rt = {
|
|
957
957
|
animationIterationCount: 1,
|
|
958
958
|
aspectRatio: 1,
|
|
959
959
|
borderImageOutset: 1,
|
|
@@ -1002,221 +1002,221 @@ var lt = {
|
|
|
1002
1002
|
strokeMiterlimit: 1,
|
|
1003
1003
|
strokeOpacity: 1,
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
|
-
},
|
|
1005
|
+
}, tt = /[A-Z]|^ms/g, nt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, pr = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, Xe = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
}),
|
|
1009
|
+
}, $e = /* @__PURE__ */ ur(function(e) {
|
|
1010
|
+
return pr(e) ? e : e.replace(tt, "-$&").toLowerCase();
|
|
1011
|
+
}), Je = function(r, t) {
|
|
1012
1012
|
switch (r) {
|
|
1013
1013
|
case "animation":
|
|
1014
1014
|
case "animationName":
|
|
1015
1015
|
if (typeof t == "string")
|
|
1016
|
-
return t.replace(
|
|
1017
|
-
return
|
|
1018
|
-
name:
|
|
1019
|
-
styles:
|
|
1020
|
-
next:
|
|
1021
|
-
},
|
|
1016
|
+
return t.replace(nt, function(a, n, s) {
|
|
1017
|
+
return ee = {
|
|
1018
|
+
name: n,
|
|
1019
|
+
styles: s,
|
|
1020
|
+
next: ee
|
|
1021
|
+
}, n;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return rt[r] !== 1 && !pr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
|
-
function
|
|
1026
|
+
function ge(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
1028
1028
|
return "";
|
|
1029
|
-
var
|
|
1030
|
-
if (
|
|
1031
|
-
return
|
|
1029
|
+
var a = t;
|
|
1030
|
+
if (a.__emotion_styles !== void 0)
|
|
1031
|
+
return a;
|
|
1032
1032
|
switch (typeof t) {
|
|
1033
1033
|
case "boolean":
|
|
1034
1034
|
return "";
|
|
1035
1035
|
case "object": {
|
|
1036
|
-
var
|
|
1037
|
-
if (
|
|
1038
|
-
return
|
|
1039
|
-
name:
|
|
1040
|
-
styles:
|
|
1041
|
-
next:
|
|
1042
|
-
},
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1047
|
-
for (;
|
|
1048
|
-
|
|
1049
|
-
name:
|
|
1050
|
-
styles:
|
|
1051
|
-
next:
|
|
1052
|
-
},
|
|
1053
|
-
var
|
|
1054
|
-
return
|
|
1036
|
+
var n = t;
|
|
1037
|
+
if (n.anim === 1)
|
|
1038
|
+
return ee = {
|
|
1039
|
+
name: n.name,
|
|
1040
|
+
styles: n.styles,
|
|
1041
|
+
next: ee
|
|
1042
|
+
}, n.name;
|
|
1043
|
+
var s = t;
|
|
1044
|
+
if (s.styles !== void 0) {
|
|
1045
|
+
var l = s.next;
|
|
1046
|
+
if (l !== void 0)
|
|
1047
|
+
for (; l !== void 0; )
|
|
1048
|
+
ee = {
|
|
1049
|
+
name: l.name,
|
|
1050
|
+
styles: l.styles,
|
|
1051
|
+
next: ee
|
|
1052
|
+
}, l = l.next;
|
|
1053
|
+
var u = s.styles + ";";
|
|
1054
|
+
return u;
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return at(e, r, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
|
-
var
|
|
1061
|
-
return
|
|
1060
|
+
var h = ee, y = t(e);
|
|
1061
|
+
return ee = h, ge(e, r, y);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var m = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
|
-
return
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1068
|
+
return m;
|
|
1069
|
+
var b = r[m];
|
|
1070
|
+
return b !== void 0 ? b : m;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
var
|
|
1072
|
+
function at(e, r, t) {
|
|
1073
|
+
var a = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
|
-
for (var
|
|
1076
|
-
|
|
1075
|
+
for (var n = 0; n < t.length; n++)
|
|
1076
|
+
a += ge(e, r, t[n]) + ";";
|
|
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 l = t[s];
|
|
1080
|
+
if (typeof l != "object") {
|
|
1081
|
+
var u = l;
|
|
1082
|
+
r != null && r[u] !== void 0 ? a += s + "{" + r[u] + "}" : Xe(u) && (a += $e(s) + ":" + Je(s, u) + ";");
|
|
1083
|
+
} else if (Array.isArray(l) && typeof l[0] == "string" && (r == null || r[l[0]] === void 0))
|
|
1084
|
+
for (var h = 0; h < l.length; h++)
|
|
1085
|
+
Xe(l[h]) && (a += $e(s) + ":" + Je(s, l[h]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var
|
|
1088
|
-
switch (
|
|
1087
|
+
var y = ge(e, r, l);
|
|
1088
|
+
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
|
|
1091
|
+
a += $e(s) + ":" + y + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
1095
|
-
|
|
1095
|
+
a += s + "{" + y + "}";
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
return
|
|
1099
|
+
return a;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1101
|
+
var Ze = /label:\s*([^\s;{]+)\s*(;|$)/g, ee;
|
|
1102
|
+
function it(e, r, t) {
|
|
1103
1103
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1104
1104
|
return e[0];
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1105
|
+
var a = !0, n = "";
|
|
1106
|
+
ee = void 0;
|
|
1107
|
+
var s = e[0];
|
|
1108
|
+
if (s == null || s.raw === void 0)
|
|
1109
|
+
a = !1, n += ge(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1111
|
+
var l = s;
|
|
1112
|
+
n += l[0];
|
|
1113
1113
|
}
|
|
1114
|
-
for (var
|
|
1115
|
-
if (
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1114
|
+
for (var u = 1; u < e.length; u++)
|
|
1115
|
+
if (n += ge(t, r, e[u]), a) {
|
|
1116
|
+
var h = s;
|
|
1117
|
+
n += h[u];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var
|
|
1121
|
-
|
|
1122
|
-
var
|
|
1119
|
+
Ze.lastIndex = 0;
|
|
1120
|
+
for (var y = "", m; (m = Ze.exec(n)) !== null; )
|
|
1121
|
+
y += "-" + m[1];
|
|
1122
|
+
var b = et(n) + y;
|
|
1123
1123
|
return {
|
|
1124
|
-
name:
|
|
1125
|
-
styles:
|
|
1126
|
-
next:
|
|
1124
|
+
name: b,
|
|
1125
|
+
styles: n,
|
|
1126
|
+
next: ee
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var ot = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, st = ne.useInsertionEffect ? ne.useInsertionEffect : !1, ct = st || ot, hr = /* @__PURE__ */ ne.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__ */ Jr({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1143
|
-
var
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var
|
|
1146
|
-
return r(t,
|
|
1142
|
+
hr.Provider;
|
|
1143
|
+
var lt = function(r) {
|
|
1144
|
+
return /* @__PURE__ */ nr(function(t, a) {
|
|
1145
|
+
var n = gr(hr);
|
|
1146
|
+
return r(t, n, a);
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, ut = /* @__PURE__ */ ne.createContext({}), ft = /^((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)-.*))$/, dt = /* @__PURE__ */ ur(
|
|
1149
1149
|
function(e) {
|
|
1150
|
-
return
|
|
1150
|
+
return ft.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
|
-
),
|
|
1153
|
+
), pt = dt, ht = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
|
-
},
|
|
1155
|
+
}, Qe = 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
|
-
},
|
|
1161
|
-
var
|
|
1159
|
+
r.charCodeAt(0) > 96 ? pt : ht;
|
|
1160
|
+
}, Ke = function(r, t, a) {
|
|
1161
|
+
var n;
|
|
1162
1162
|
if (t) {
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
return r.__emotion_forwardProp(
|
|
1166
|
-
} :
|
|
1163
|
+
var s = t.shouldForwardProp;
|
|
1164
|
+
n = r.__emotion_forwardProp && s ? function(l) {
|
|
1165
|
+
return r.__emotion_forwardProp(l) && s(l);
|
|
1166
|
+
} : s;
|
|
1167
1167
|
}
|
|
1168
|
-
return typeof
|
|
1169
|
-
},
|
|
1170
|
-
var t = r.cache,
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1168
|
+
return typeof n != "function" && a && (n = r.__emotion_forwardProp), n;
|
|
1169
|
+
}, mt = function(r) {
|
|
1170
|
+
var t = r.cache, a = r.serialized, n = r.isStringTag;
|
|
1171
|
+
return dr(t, a, n), ct(function() {
|
|
1172
|
+
return Kr(t, a, n);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1175
|
-
var
|
|
1176
|
-
t !== void 0 && (
|
|
1177
|
-
var
|
|
1174
|
+
}, gt = function e(r, t) {
|
|
1175
|
+
var a = r.__emotion_real === r, n = a && r.__emotion_base || r, s, l;
|
|
1176
|
+
t !== void 0 && (s = t.label, l = t.target);
|
|
1177
|
+
var u = Ke(r, t, a), h = u || Qe(n), y = !h("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1181
|
-
|
|
1179
|
+
var m = arguments, b = a && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && b.push("label:" + s + ";"), m[0] == null || m[0].raw === void 0)
|
|
1181
|
+
b.push.apply(b, m);
|
|
1182
1182
|
else {
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1185
|
-
for (var
|
|
1186
|
-
|
|
1183
|
+
var O = m[0];
|
|
1184
|
+
b.push(O[0]);
|
|
1185
|
+
for (var T = m.length, A = 1; A < T; A++)
|
|
1186
|
+
b.push(m[A], O[A]);
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1189
|
-
var
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
for (var
|
|
1193
|
-
|
|
1194
|
-
|
|
1188
|
+
var v = lt(function(x, w, R) {
|
|
1189
|
+
var j = y && x.as || n, M = "", N = [], $ = x;
|
|
1190
|
+
if (x.theme == null) {
|
|
1191
|
+
$ = {};
|
|
1192
|
+
for (var k in x)
|
|
1193
|
+
$[k] = x[k];
|
|
1194
|
+
$.theme = ne.useContext(ut);
|
|
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" ? M = Qr(w.registered, N, x.className) : x.className != null && (M = x.className + " ");
|
|
1197
|
+
var q = it(b.concat(N), w.registered, $);
|
|
1198
|
+
M += w.key + "-" + q.name, l !== void 0 && (M += " " + l);
|
|
1199
|
+
var J = y && u === void 0 ? Qe(j) : h, L = {};
|
|
1200
|
+
for (var B in x)
|
|
1201
|
+
y && B === "as" || J(B) && (L[B] = x[B]);
|
|
1202
|
+
return L.className = M, R && (L.ref = R), /* @__PURE__ */ ne.createElement(ne.Fragment, null, /* @__PURE__ */ ne.createElement(mt, {
|
|
1203
|
+
cache: w,
|
|
1204
|
+
serialized: q,
|
|
1205
|
+
isStringTag: typeof j == "string"
|
|
1206
|
+
}), /* @__PURE__ */ ne.createElement(j, L));
|
|
1207
1207
|
});
|
|
1208
|
-
return
|
|
1208
|
+
return v.displayName = s !== void 0 ? s : "Styled(" + (typeof n == "string" ? n : n.displayName || n.name || "Component") + ")", v.defaultProps = r.defaultProps, v.__emotion_real = v, v.__emotion_base = n, v.__emotion_styles = b, v.__emotion_forwardProp = u, Object.defineProperty(v, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
|
-
return "." +
|
|
1210
|
+
return "." + l;
|
|
1211
1211
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
var
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), v.withComponent = function(x, w) {
|
|
1213
|
+
var R = e(x, Fe({}, t, w, {
|
|
1214
|
+
shouldForwardProp: Ke(v, w, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return
|
|
1217
|
-
},
|
|
1216
|
+
return R.apply(void 0, b);
|
|
1217
|
+
}, v;
|
|
1218
1218
|
};
|
|
1219
|
-
},
|
|
1219
|
+
}, yt = [
|
|
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
|
+
], le = gt.bind(null);
|
|
1356
|
+
yt.forEach(function(e) {
|
|
1357
|
+
le[e] = le(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1359
|
+
const bt = le.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
|
-
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
|
|
1404
|
-
] }),
|
|
1400
|
+
`, er = ({ type: e, children: r, className: t, icon: a, action: n }) => /* @__PURE__ */ I.jsxs(bt, { type: e, className: t, children: [
|
|
1401
|
+
a && /* @__PURE__ */ I.jsx("span", { children: a }),
|
|
1402
|
+
/* @__PURE__ */ I.jsx("span", { children: r }),
|
|
1403
|
+
n && /* @__PURE__ */ I.jsx("span", { children: n })
|
|
1404
|
+
] }), rr = le.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
|
+
`, vt = le.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
|
+
`, xt = le.div`
|
|
1429
1429
|
position: relative;
|
|
1430
1430
|
height: 80vh;
|
|
1431
1431
|
width: auto;
|
|
@@ -1433,834 +1433,582 @@ 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
|
+
`, Oe = "https://host.vpplayer.tech", wt = (e) => `${Oe}/player/${e}/vpplayer.js`, Ct = (e) => `${Oe}/player/${e}.js`, Pt = (e, r) => `${Oe}/player/${e}/${r}.js`, tr = (e) => `${Oe}/vertical-player/${e}.js`, kt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", St = (e, r) => {
|
|
1437
|
+
const t = new URL(e);
|
|
1438
|
+
return t.searchParams.set("divId", r), t.toString();
|
|
1439
|
+
}, Pe = /* @__PURE__ */ new Map(), Et = (e, r) => {
|
|
1440
|
+
const [t, a] = Re(!1), [n, s] = Re(null);
|
|
1441
|
+
return je(() => {
|
|
1442
|
+
let l;
|
|
1440
1443
|
try {
|
|
1441
|
-
|
|
1442
|
-
} catch (
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1444
|
+
l = r || wt(e || "latest");
|
|
1445
|
+
} catch (y) {
|
|
1446
|
+
const m = y instanceof Error ? y.message : String(y);
|
|
1447
|
+
s(`Failed to resolve script URL: ${m}`);
|
|
1445
1448
|
return;
|
|
1446
1449
|
}
|
|
1447
|
-
if (!
|
|
1450
|
+
if (!Pe.has(l))
|
|
1448
1451
|
if (document.querySelector(
|
|
1449
|
-
`script[src="${
|
|
1452
|
+
`script[src="${l}"]`
|
|
1450
1453
|
))
|
|
1451
|
-
|
|
1454
|
+
Pe.set(l, Promise.resolve());
|
|
1452
1455
|
else {
|
|
1453
|
-
const
|
|
1454
|
-
const
|
|
1455
|
-
|
|
1456
|
+
const m = new Promise((b, O) => {
|
|
1457
|
+
const T = document.createElement("script");
|
|
1458
|
+
T.src = l, T.async = !0, T.onload = () => b(), T.onerror = () => O(new Error(`Failed to load script: ${l}`)), document.body.appendChild(T);
|
|
1456
1459
|
});
|
|
1457
|
-
|
|
1460
|
+
Pe.set(l, m);
|
|
1458
1461
|
}
|
|
1459
|
-
let
|
|
1460
|
-
const
|
|
1461
|
-
return
|
|
1462
|
-
|
|
1463
|
-
}).catch((
|
|
1464
|
-
|
|
1462
|
+
let u = !0;
|
|
1463
|
+
const h = Pe.get(l);
|
|
1464
|
+
return h && h.then(() => {
|
|
1465
|
+
u && (a(!0), s(null));
|
|
1466
|
+
}).catch((y) => {
|
|
1467
|
+
u && (a(!1), s(y instanceof Error ? y.message : String(y)));
|
|
1465
1468
|
}), () => {
|
|
1466
|
-
|
|
1467
|
-
};
|
|
1468
|
-
}, [e, r]), { isLoaded: t, error: a };
|
|
1469
|
-
}, Re = {
|
|
1470
|
-
projectId: void 0,
|
|
1471
|
-
// Set via props or config
|
|
1472
|
-
video: {
|
|
1473
|
-
// NOTE: Do NOT set file: '' here - it interferes with managed mode
|
|
1474
|
-
// where the SDK resolves the video URL from videoId + projectId
|
|
1475
|
-
},
|
|
1476
|
-
config: {
|
|
1477
|
-
autoplay: !0,
|
|
1478
|
-
// Start playing automatically
|
|
1479
|
-
muted: !0,
|
|
1480
|
-
// Start muted (required for browser autoplay policy)
|
|
1481
|
-
loop: !1,
|
|
1482
|
-
// No loop by default
|
|
1483
|
-
size: {
|
|
1484
|
-
width: "100%",
|
|
1485
|
-
height: "30vh"
|
|
1486
|
-
}
|
|
1487
|
-
// NOTE: Do NOT set controls here - let the SDK/managed script
|
|
1488
|
-
// use what's configured in the Gjirafa admin panel (projectId config)
|
|
1489
|
-
}
|
|
1490
|
-
}, 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
|
|
1469
|
+
u = !1;
|
|
1506
1470
|
};
|
|
1507
|
-
},
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
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
|
|
1471
|
+
}, [e, r]), { isLoaded: t, error: n };
|
|
1472
|
+
};
|
|
1473
|
+
function Rt(e, r, t = !1) {
|
|
1474
|
+
const a = e.startIndex ?? 0, n = e.videos[a] || e.videos[0];
|
|
1475
|
+
if (!n)
|
|
1476
|
+
throw new Error("Manual playlist must have at least one video");
|
|
1477
|
+
const s = n.file || n.hlsUrl;
|
|
1478
|
+
if (!s)
|
|
1479
|
+
throw new Error(
|
|
1480
|
+
"Each video in manual playlist must have a 'file' or 'hlsUrl' property"
|
|
1536
1481
|
);
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
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)
|
|
1482
|
+
const l = e.videos.map((h) => ({
|
|
1483
|
+
videoId: h.videoId || "",
|
|
1484
|
+
title: h.title || "",
|
|
1485
|
+
file: h.file || h.hlsUrl || "",
|
|
1486
|
+
thumbnailUrl: h.thumbnailUrl || h.thumbnail || "",
|
|
1487
|
+
duration: h.duration || 0
|
|
1488
|
+
}));
|
|
1489
|
+
return {
|
|
1490
|
+
projectId: r || "",
|
|
1491
|
+
video: {
|
|
1492
|
+
videoId: n.videoId || "",
|
|
1493
|
+
file: s,
|
|
1494
|
+
// REQUIRED for VP Vertical Player SDK!
|
|
1495
|
+
title: n.title || "",
|
|
1496
|
+
thumbnail: n.thumbnailUrl || n.thumbnail || "",
|
|
1497
|
+
playlist: {
|
|
1498
|
+
state: !0,
|
|
1499
|
+
playlistId: "",
|
|
1500
|
+
// Empty string for manual playlist mode
|
|
1501
|
+
playlistVideoIndex: a,
|
|
1502
|
+
videos: l
|
|
1503
|
+
}
|
|
1504
|
+
},
|
|
1505
|
+
config: {
|
|
1506
|
+
autoplay: !0,
|
|
1507
|
+
muted: !0,
|
|
1508
|
+
// For vertical player, use responsive sizing
|
|
1509
|
+
...t && {
|
|
1510
|
+
size: {
|
|
1511
|
+
sizeType: "RESPONSIVE",
|
|
1512
|
+
aspectRatio: "9:16"
|
|
1618
1513
|
}
|
|
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
|
-
};
|
|
1638
|
-
}
|
|
1639
|
-
if (($ = t == null ? void 0 : t.video) != null && $.file)
|
|
1640
|
-
return {
|
|
1641
|
-
...i,
|
|
1642
|
-
video: {
|
|
1643
|
-
...i.video,
|
|
1644
|
-
...t.video,
|
|
1645
|
-
file: t.video.file,
|
|
1646
|
-
playlist: void 0
|
|
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."
|
|
1652
|
-
);
|
|
1653
|
-
}, Tt = ({
|
|
1654
|
-
videoUrl: e,
|
|
1655
|
-
projectId: r,
|
|
1656
|
-
config: t = {},
|
|
1657
|
-
isVerticalPlayer: n = !1
|
|
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
1514
|
}
|
|
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
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
if (Object.keys(u).length > 0 && (c.video = u), t.config) {
|
|
1694
|
-
const C = { ...t.config };
|
|
1695
|
-
if (n && C.controls) {
|
|
1696
|
-
const A = xr(
|
|
1697
|
-
C.controls,
|
|
1698
|
-
!0
|
|
1699
|
-
// pureMode flag
|
|
1700
|
-
);
|
|
1701
|
-
A && (C.controls = A);
|
|
1702
1515
|
}
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
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,
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
const _t = ({
|
|
1519
|
+
scriptId: e,
|
|
1723
1520
|
videoId: r,
|
|
1724
|
-
|
|
1725
|
-
videoUrl: n,
|
|
1521
|
+
scriptUrl: t,
|
|
1726
1522
|
projectId: a,
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
isReels:
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
onPlayerEvent: J
|
|
1523
|
+
playlist: n,
|
|
1524
|
+
playerId: s,
|
|
1525
|
+
isVertical: l = !1,
|
|
1526
|
+
isReels: u = !1,
|
|
1527
|
+
onReady: h,
|
|
1528
|
+
onPlay: y,
|
|
1529
|
+
onPause: m,
|
|
1530
|
+
onResume: b,
|
|
1531
|
+
onComplete: O,
|
|
1532
|
+
onError: T,
|
|
1533
|
+
onVideoStarted: A,
|
|
1534
|
+
onTimeUpdate: v,
|
|
1535
|
+
onQuartile25: x,
|
|
1536
|
+
onQuartile50: w,
|
|
1537
|
+
onQuartile75: R,
|
|
1538
|
+
onNext: j,
|
|
1539
|
+
onPrevious: M,
|
|
1540
|
+
onProgress10s: N,
|
|
1541
|
+
onProgress20s: $
|
|
1747
1542
|
}) => {
|
|
1748
|
-
var
|
|
1749
|
-
const q =
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1543
|
+
var o;
|
|
1544
|
+
const k = be(null), q = be(null), [J, L] = Re(null), B = yr().replace(/:/g, ""), z = ve(
|
|
1545
|
+
() => kt(s || `auto-${B}`, r),
|
|
1546
|
+
[s, B, r]
|
|
1547
|
+
), g = be({
|
|
1548
|
+
onReady: h,
|
|
1549
|
+
onPlay: y,
|
|
1550
|
+
onPause: m,
|
|
1551
|
+
onResume: b,
|
|
1552
|
+
onComplete: O,
|
|
1553
|
+
onError: T,
|
|
1554
|
+
onVideoStarted: A,
|
|
1555
|
+
onTimeUpdate: v,
|
|
1556
|
+
onQuartile25: x,
|
|
1557
|
+
onQuartile50: w,
|
|
1558
|
+
onQuartile75: R,
|
|
1559
|
+
onNext: j,
|
|
1560
|
+
onPrevious: M,
|
|
1561
|
+
onProgress10s: N,
|
|
1562
|
+
onProgress20s: $
|
|
1765
1563
|
});
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1564
|
+
je(() => {
|
|
1565
|
+
g.current = {
|
|
1566
|
+
onReady: h,
|
|
1567
|
+
onPlay: y,
|
|
1568
|
+
onPause: m,
|
|
1569
|
+
onResume: b,
|
|
1570
|
+
onComplete: O,
|
|
1571
|
+
onError: T,
|
|
1572
|
+
onVideoStarted: A,
|
|
1573
|
+
onTimeUpdate: v,
|
|
1574
|
+
onQuartile25: x,
|
|
1575
|
+
onQuartile50: w,
|
|
1576
|
+
onQuartile75: R,
|
|
1577
|
+
onNext: j,
|
|
1578
|
+
onPrevious: M,
|
|
1579
|
+
onProgress10s: N,
|
|
1580
|
+
onProgress20s: $
|
|
1783
1581
|
};
|
|
1784
1582
|
});
|
|
1785
|
-
const
|
|
1583
|
+
const Z = be(!1), D = !!((o = n == null ? void 0 : n.videos) != null && o.length), W = ve(() => l || u ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [l, u, t]), te = ve(() => {
|
|
1584
|
+
let f;
|
|
1585
|
+
if (t)
|
|
1586
|
+
f = t;
|
|
1587
|
+
else if (e && r && !D)
|
|
1588
|
+
f = W ? tr(e) : Pt(e, r);
|
|
1589
|
+
else if (e)
|
|
1590
|
+
f = W ? tr(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1591
|
+
else
|
|
1592
|
+
return null;
|
|
1593
|
+
return St(f, z);
|
|
1594
|
+
}, [
|
|
1786
1595
|
t,
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1596
|
+
e,
|
|
1597
|
+
r,
|
|
1598
|
+
W,
|
|
1599
|
+
z,
|
|
1790
1600
|
D
|
|
1791
|
-
),
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
return
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
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);
|
|
1601
|
+
]), H = ve(() => {
|
|
1602
|
+
if (!D || !n) return null;
|
|
1603
|
+
try {
|
|
1604
|
+
return Rt(n, a, W);
|
|
1605
|
+
} catch (f) {
|
|
1606
|
+
return console.error("Failed to build manual playlist config:", f), null;
|
|
1607
|
+
}
|
|
1608
|
+
}, [D, n, a, W]), { isLoaded: Q, error: ae } = Et(
|
|
1609
|
+
null,
|
|
1610
|
+
// No version needed - we're using full URL
|
|
1611
|
+
te || void 0
|
|
1612
|
+
);
|
|
1613
|
+
return je(() => {
|
|
1614
|
+
if (!te) {
|
|
1615
|
+
L(
|
|
1616
|
+
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + playlist) to initialize the player."
|
|
1617
|
+
);
|
|
1618
|
+
return;
|
|
1619
|
+
}
|
|
1620
|
+
if (ae) {
|
|
1621
|
+
L(ae);
|
|
1829
1622
|
return;
|
|
1830
1623
|
}
|
|
1831
|
-
if (!
|
|
1832
|
-
|
|
1624
|
+
if (!Q) return;
|
|
1625
|
+
if (D && !H) {
|
|
1626
|
+
L("VPPlayer: Failed to build manual playlist configuration.");
|
|
1627
|
+
return;
|
|
1628
|
+
}
|
|
1629
|
+
let f = !0;
|
|
1833
1630
|
return (async () => {
|
|
1834
|
-
var
|
|
1631
|
+
var c;
|
|
1835
1632
|
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.");
|
|
1633
|
+
const C = W ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1634
|
+
if (!C) {
|
|
1635
|
+
L(
|
|
1636
|
+
`VP Player: Script loaded but global function not found. Expected ${W ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1637
|
+
);
|
|
1851
1638
|
return;
|
|
1852
1639
|
}
|
|
1853
|
-
if (await new Promise((
|
|
1640
|
+
if (await new Promise((_) => setTimeout(_, 0)), !document.getElementById(z)) {
|
|
1854
1641
|
console.error(
|
|
1855
|
-
`VP Player: Container element with ID '${
|
|
1642
|
+
`VP Player: Container element with ID '${z}' not found in DOM.`
|
|
1856
1643
|
);
|
|
1857
1644
|
return;
|
|
1858
1645
|
}
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
}
|
|
1878
|
-
} else
|
|
1879
|
-
console.error("VP Player: Setup error", V), Q(`Player setup failed: ${we}`);
|
|
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)
|
|
1646
|
+
const P = C(z);
|
|
1647
|
+
if (!P) {
|
|
1648
|
+
L("VP Player: Failed to get player instance.");
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
if (f) {
|
|
1652
|
+
if (q.current = P, L(null), Z.current = !1, D && H) {
|
|
1653
|
+
console.log(
|
|
1654
|
+
"VP Player: Manual playlist mode - calling setup() with config:",
|
|
1655
|
+
H
|
|
1656
|
+
);
|
|
1657
|
+
try {
|
|
1658
|
+
P.setup(H);
|
|
1659
|
+
} catch (_) {
|
|
1660
|
+
const p = _ instanceof Error ? _.message : String(_);
|
|
1661
|
+
if (p.includes("already initialized")) {
|
|
1662
|
+
console.warn(
|
|
1663
|
+
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1919
1664
|
);
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
), Ee.onPlayerEvent && Ee.onPlayerEvent("player_progress_at_20_seconds", he);
|
|
1665
|
+
try {
|
|
1666
|
+
if ((c = P.destroy) == null || c.call(P), await new Promise((d) => setTimeout(d, 50)), f && document.getElementById(z)) {
|
|
1667
|
+
const d = C(z);
|
|
1668
|
+
d && (d.setup(H), q.current = d);
|
|
1669
|
+
}
|
|
1670
|
+
} catch (d) {
|
|
1671
|
+
console.error(
|
|
1672
|
+
"VP Player: Failed to recover from initialization error",
|
|
1673
|
+
d
|
|
1674
|
+
);
|
|
1931
1675
|
}
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
|
-
try {
|
|
1938
|
-
we();
|
|
1939
|
-
} catch (d) {
|
|
1940
|
-
console.warn("VP Player: Failed to attach event listeners", d);
|
|
1676
|
+
} else {
|
|
1677
|
+
console.error("VP Player: Setup error", _), L(`Player setup failed: ${p}`);
|
|
1678
|
+
return;
|
|
1679
|
+
}
|
|
1941
1680
|
}
|
|
1942
1681
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1682
|
+
if (P.on) {
|
|
1683
|
+
const _ = P.on.bind(P);
|
|
1684
|
+
_("ready", () => {
|
|
1685
|
+
var p, d;
|
|
1686
|
+
(d = (p = g.current).onReady) == null || d.call(p);
|
|
1687
|
+
}), _("play", () => {
|
|
1688
|
+
var p, d;
|
|
1689
|
+
(d = (p = g.current).onPlay) == null || d.call(p);
|
|
1690
|
+
}), _("pause", () => {
|
|
1691
|
+
var p, d;
|
|
1692
|
+
(d = (p = g.current).onPause) == null || d.call(p);
|
|
1693
|
+
}), _("resume", () => {
|
|
1694
|
+
var p, d;
|
|
1695
|
+
(d = (p = g.current).onResume) == null || d.call(p);
|
|
1696
|
+
}), _("complete", () => {
|
|
1697
|
+
var p, d;
|
|
1698
|
+
(d = (p = g.current).onComplete) == null || d.call(p), Z.current = !1;
|
|
1699
|
+
}), _("video-started", (p) => {
|
|
1700
|
+
var d, X;
|
|
1701
|
+
(X = (d = g.current).onVideoStarted) == null || X.call(d, p);
|
|
1702
|
+
}), _("firstQuartile", () => {
|
|
1703
|
+
var p, d;
|
|
1704
|
+
(d = (p = g.current).onQuartile25) == null || d.call(p);
|
|
1705
|
+
}), _("secondQuartile", () => {
|
|
1706
|
+
var p, d;
|
|
1707
|
+
(d = (p = g.current).onQuartile50) == null || d.call(p);
|
|
1708
|
+
}), _("thirdQuartile", () => {
|
|
1709
|
+
var p, d;
|
|
1710
|
+
(d = (p = g.current).onQuartile75) == null || d.call(p);
|
|
1711
|
+
}), _("video-state", () => {
|
|
1712
|
+
var d, X, ie;
|
|
1713
|
+
const p = ((d = P.getPosition) == null ? void 0 : d.call(P)) ?? 0;
|
|
1714
|
+
(ie = (X = g.current).onProgress10s) == null || ie.call(X, Math.floor(p));
|
|
1715
|
+
}), _("time", (p) => {
|
|
1716
|
+
var X, ie, ze, Ue, De;
|
|
1717
|
+
let d = 0;
|
|
1718
|
+
typeof p == "number" ? d = p : p && typeof p == "object" && "position" in p ? d = p.position : d = ((X = P.getPosition) == null ? void 0 : X.call(P)) ?? 0, (ze = (ie = g.current).onTimeUpdate) == null || ze.call(ie, d), !Z.current && d >= 20 && (Z.current = !0, (De = (Ue = g.current).onProgress20s) == null || De.call(Ue, Math.floor(d)));
|
|
1719
|
+
}), _("playlistItem", () => {
|
|
1720
|
+
var p, d;
|
|
1721
|
+
(d = (p = g.current).onNext) == null || d.call(p), Z.current = !1;
|
|
1722
|
+
}), _("error", (p) => {
|
|
1723
|
+
var X, ie;
|
|
1724
|
+
const d = typeof p == "string" ? p : (p == null ? void 0 : p.message) || "Unknown error";
|
|
1725
|
+
(ie = (X = g.current).onError) == null || ie.call(X, d);
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1950
1728
|
}
|
|
1951
|
-
} catch (
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1729
|
+
} catch (C) {
|
|
1730
|
+
if (f) {
|
|
1731
|
+
const oe = C instanceof Error ? C.message : String(C);
|
|
1732
|
+
L(oe), console.error("VP Player initialization error:", C);
|
|
1955
1733
|
}
|
|
1956
1734
|
}
|
|
1957
1735
|
})(), () => {
|
|
1958
|
-
var
|
|
1959
|
-
if (
|
|
1736
|
+
var c;
|
|
1737
|
+
if (f = !1, (c = q.current) != null && c.destroy) {
|
|
1960
1738
|
try {
|
|
1961
|
-
|
|
1739
|
+
q.current.destroy();
|
|
1962
1740
|
} catch {
|
|
1963
1741
|
}
|
|
1964
|
-
|
|
1742
|
+
q.current = null;
|
|
1965
1743
|
}
|
|
1966
|
-
A.current = !1;
|
|
1967
1744
|
};
|
|
1968
1745
|
}, [
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1746
|
+
Q,
|
|
1747
|
+
z,
|
|
1748
|
+
ae,
|
|
1749
|
+
te,
|
|
1750
|
+
W,
|
|
1973
1751
|
D,
|
|
1974
|
-
|
|
1975
|
-
n,
|
|
1976
|
-
a,
|
|
1977
|
-
o,
|
|
1978
|
-
p,
|
|
1979
|
-
f
|
|
1752
|
+
H
|
|
1980
1753
|
]), {
|
|
1981
|
-
playerRef:
|
|
1982
|
-
playerInstanceRef:
|
|
1983
|
-
isScriptLoaded:
|
|
1984
|
-
isLoading: !
|
|
1985
|
-
error:
|
|
1986
|
-
generatedPlayerId:
|
|
1754
|
+
playerRef: k,
|
|
1755
|
+
playerInstanceRef: q,
|
|
1756
|
+
isScriptLoaded: Q,
|
|
1757
|
+
isLoading: !Q && !J,
|
|
1758
|
+
error: J,
|
|
1759
|
+
generatedPlayerId: z
|
|
1987
1760
|
};
|
|
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,
|
|
1761
|
+
}, Tt = nr(
|
|
1762
|
+
({
|
|
1763
|
+
scriptId: e,
|
|
2029
1764
|
videoId: r,
|
|
2030
|
-
|
|
2031
|
-
videoUrl: n,
|
|
1765
|
+
scriptUrl: t,
|
|
2032
1766
|
projectId: a,
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
isReels:
|
|
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
|
-
|
|
1767
|
+
playlist: n,
|
|
1768
|
+
playerId: s,
|
|
1769
|
+
isVertical: l = !1,
|
|
1770
|
+
isReels: u = !1,
|
|
1771
|
+
thumbnailUrl: h,
|
|
1772
|
+
onClose: y,
|
|
1773
|
+
className: m,
|
|
1774
|
+
hiddenClasses: b = [],
|
|
1775
|
+
onReady: O,
|
|
1776
|
+
onPlay: T,
|
|
1777
|
+
onPause: A,
|
|
1778
|
+
onResume: v,
|
|
1779
|
+
onComplete: x,
|
|
1780
|
+
onError: w,
|
|
1781
|
+
onVideoStarted: R,
|
|
1782
|
+
onTimeUpdate: j,
|
|
1783
|
+
onQuartile25: M,
|
|
1784
|
+
onQuartile50: N,
|
|
1785
|
+
onQuartile75: $,
|
|
1786
|
+
onNext: k,
|
|
1787
|
+
onPrevious: q,
|
|
1788
|
+
onProgress10s: J,
|
|
1789
|
+
onProgress20s: L
|
|
1790
|
+
}, B) => {
|
|
1791
|
+
const {
|
|
1792
|
+
playerRef: z,
|
|
1793
|
+
playerInstanceRef: g,
|
|
1794
|
+
isScriptLoaded: Z,
|
|
1795
|
+
isLoading: D,
|
|
1796
|
+
error: W,
|
|
1797
|
+
generatedPlayerId: te
|
|
1798
|
+
} = _t({
|
|
1799
|
+
scriptId: e,
|
|
1800
|
+
videoId: r,
|
|
1801
|
+
scriptUrl: t,
|
|
1802
|
+
projectId: a,
|
|
1803
|
+
playlist: n,
|
|
1804
|
+
playerId: s,
|
|
1805
|
+
isVertical: l,
|
|
1806
|
+
isReels: u,
|
|
1807
|
+
onReady: O,
|
|
1808
|
+
onPlay: T,
|
|
1809
|
+
onPause: A,
|
|
1810
|
+
onResume: v,
|
|
1811
|
+
onComplete: x,
|
|
1812
|
+
onError: w,
|
|
1813
|
+
onVideoStarted: R,
|
|
1814
|
+
onTimeUpdate: j,
|
|
1815
|
+
onQuartile25: M,
|
|
1816
|
+
onQuartile50: N,
|
|
1817
|
+
onQuartile75: $,
|
|
1818
|
+
onNext: k,
|
|
1819
|
+
onPrevious: q,
|
|
1820
|
+
onProgress10s: J,
|
|
1821
|
+
onProgress20s: L
|
|
1822
|
+
});
|
|
1823
|
+
br(
|
|
1824
|
+
B,
|
|
1825
|
+
() => ({
|
|
1826
|
+
play: () => {
|
|
1827
|
+
var i, c;
|
|
1828
|
+
return (c = (i = g.current) == null ? void 0 : i.play) == null ? void 0 : c.call(i);
|
|
1829
|
+
},
|
|
1830
|
+
pause: () => {
|
|
1831
|
+
var i, c;
|
|
1832
|
+
return (c = (i = g.current) == null ? void 0 : i.pause) == null ? void 0 : c.call(i);
|
|
1833
|
+
},
|
|
1834
|
+
seek: (i) => {
|
|
1835
|
+
var c, C;
|
|
1836
|
+
return (C = (c = g.current) == null ? void 0 : c.seek) == null ? void 0 : C.call(c, i);
|
|
1837
|
+
},
|
|
1838
|
+
forward: () => {
|
|
1839
|
+
var i, c;
|
|
1840
|
+
return (c = (i = g.current) == null ? void 0 : i.forward) == null ? void 0 : c.call(i);
|
|
1841
|
+
},
|
|
1842
|
+
rewind: () => {
|
|
1843
|
+
var i, c;
|
|
1844
|
+
return (c = (i = g.current) == null ? void 0 : i.rewind) == null ? void 0 : c.call(i);
|
|
1845
|
+
},
|
|
1846
|
+
replay: () => {
|
|
1847
|
+
var i, c;
|
|
1848
|
+
return (c = (i = g.current) == null ? void 0 : i.replay) == null ? void 0 : c.call(i);
|
|
1849
|
+
},
|
|
1850
|
+
mute: () => {
|
|
1851
|
+
var i, c;
|
|
1852
|
+
return (c = (i = g.current) == null ? void 0 : i.mute) == null ? void 0 : c.call(i);
|
|
1853
|
+
},
|
|
1854
|
+
unmute: () => {
|
|
1855
|
+
var i, c;
|
|
1856
|
+
return (c = (i = g.current) == null ? void 0 : i.unmute) == null ? void 0 : c.call(i);
|
|
1857
|
+
},
|
|
1858
|
+
togglePlay: () => {
|
|
1859
|
+
var i, c;
|
|
1860
|
+
return (c = (i = g.current) == null ? void 0 : i.togglePlay) == null ? void 0 : c.call(i);
|
|
1861
|
+
},
|
|
1862
|
+
toggleMute: () => {
|
|
1863
|
+
var i, c;
|
|
1864
|
+
return (c = (i = g.current) == null ? void 0 : i.toggleMute) == null ? void 0 : c.call(i);
|
|
1865
|
+
},
|
|
1866
|
+
enterFullScreen: () => {
|
|
1867
|
+
var i, c, C;
|
|
1868
|
+
return (C = ((i = g.current) == null ? void 0 : i.enterFullScreen) ?? ((c = g.current) == null ? void 0 : c.enterFullscreen)) == null ? void 0 : C();
|
|
1869
|
+
},
|
|
1870
|
+
exitFullScreen: () => {
|
|
1871
|
+
var i, c, C;
|
|
1872
|
+
return (C = ((i = g.current) == null ? void 0 : i.exitFullScreen) ?? ((c = g.current) == null ? void 0 : c.exitFullscreen)) == null ? void 0 : C();
|
|
1873
|
+
},
|
|
1874
|
+
getPosition: () => {
|
|
1875
|
+
var i, c;
|
|
1876
|
+
return ((c = (i = g.current) == null ? void 0 : i.getPosition) == null ? void 0 : c.call(i)) ?? null;
|
|
1877
|
+
},
|
|
1878
|
+
getDuration: () => {
|
|
1879
|
+
var i, c;
|
|
1880
|
+
return ((c = (i = g.current) == null ? void 0 : i.getDuration) == null ? void 0 : c.call(i)) ?? null;
|
|
1881
|
+
},
|
|
1882
|
+
getVolume: () => {
|
|
1883
|
+
var i, c;
|
|
1884
|
+
return ((c = (i = g.current) == null ? void 0 : i.getVolume) == null ? void 0 : c.call(i)) ?? null;
|
|
1885
|
+
},
|
|
1886
|
+
setVolume: (i) => {
|
|
1887
|
+
var c, C;
|
|
1888
|
+
return (C = (c = g.current) == null ? void 0 : c.setVolume) == null ? void 0 : C.call(c, i);
|
|
1889
|
+
},
|
|
1890
|
+
isMuted: () => {
|
|
1891
|
+
var i, c;
|
|
1892
|
+
return ((c = (i = g.current) == null ? void 0 : i.isMuted) == null ? void 0 : c.call(i)) ?? !1;
|
|
1893
|
+
},
|
|
1894
|
+
isPlaying: () => {
|
|
1895
|
+
var i, c;
|
|
1896
|
+
return ((c = (i = g.current) == null ? void 0 : i.isPlaying) == null ? void 0 : c.call(i)) ?? !1;
|
|
1897
|
+
},
|
|
1898
|
+
isPaused: () => {
|
|
1899
|
+
var i, c;
|
|
1900
|
+
return ((c = (i = g.current) == null ? void 0 : i.isPaused) == null ? void 0 : c.call(i)) ?? !1;
|
|
1901
|
+
},
|
|
1902
|
+
isFullscreen: () => {
|
|
1903
|
+
var i, c;
|
|
1904
|
+
return ((c = (i = g.current) == null ? void 0 : i.isFullscreen) == null ? void 0 : c.call(i)) ?? !1;
|
|
1905
|
+
}
|
|
1906
|
+
}),
|
|
1907
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1908
|
+
[]
|
|
1909
|
+
);
|
|
1910
|
+
const [H, Q] = Re(!0), ae = () => u && Q(!0), o = () => {
|
|
1911
|
+
var i, c;
|
|
1912
|
+
!u || !H || (Q(!1), (c = (i = g.current) == null ? void 0 : i.pause) == null || c.call(i), y == null || y());
|
|
1913
|
+
};
|
|
1914
|
+
if (W)
|
|
1915
|
+
return /* @__PURE__ */ I.jsxs(er, { type: "error", children: [
|
|
1916
|
+
"An error occurred: ",
|
|
1917
|
+
W
|
|
1918
|
+
] });
|
|
1919
|
+
const f = () => /* @__PURE__ */ I.jsx(
|
|
2062
1920
|
"div",
|
|
2063
1921
|
{
|
|
2064
|
-
|
|
2065
|
-
|
|
1922
|
+
style: {
|
|
1923
|
+
position: "absolute",
|
|
1924
|
+
top: 0,
|
|
1925
|
+
left: 0,
|
|
1926
|
+
right: 0,
|
|
1927
|
+
bottom: 0,
|
|
1928
|
+
display: "flex",
|
|
1929
|
+
alignItems: "center",
|
|
1930
|
+
justifyContent: "center",
|
|
1931
|
+
background: "rgba(0,0,0,0.8)",
|
|
1932
|
+
zIndex: 10
|
|
1933
|
+
},
|
|
1934
|
+
children: /* @__PURE__ */ I.jsx(er, { type: "loading", children: "Loading..." })
|
|
2066
1935
|
}
|
|
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(
|
|
1936
|
+
);
|
|
1937
|
+
return u ? /* @__PURE__ */ I.jsxs(I.Fragment, { children: [
|
|
1938
|
+
!H && /* @__PURE__ */ I.jsx(
|
|
2081
1939
|
"div",
|
|
2082
1940
|
{
|
|
1941
|
+
onClick: ae,
|
|
2083
1942
|
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..." })
|
|
1943
|
+
cursor: "pointer",
|
|
1944
|
+
width: "100%",
|
|
1945
|
+
height: "100%",
|
|
1946
|
+
backgroundImage: h ? `url(${h})` : void 0,
|
|
1947
|
+
backgroundSize: "cover",
|
|
1948
|
+
backgroundPosition: "center"
|
|
1949
|
+
}
|
|
2096
1950
|
}
|
|
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(
|
|
1951
|
+
),
|
|
1952
|
+
H && /* @__PURE__ */ I.jsx(vt, { onClick: o, className: m, children: /* @__PURE__ */ I.jsx(
|
|
1953
|
+
xt,
|
|
1954
|
+
{
|
|
1955
|
+
className: m,
|
|
1956
|
+
onClick: (i) => i.stopPropagation(),
|
|
1957
|
+
children: /* @__PURE__ */ I.jsxs(
|
|
2119
1958
|
"div",
|
|
2120
1959
|
{
|
|
2121
1960
|
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
|
|
1961
|
+
position: "relative",
|
|
1962
|
+
width: "100%",
|
|
1963
|
+
height: "100%"
|
|
2132
1964
|
},
|
|
2133
|
-
children:
|
|
1965
|
+
children: [
|
|
1966
|
+
/* @__PURE__ */ I.jsx(
|
|
1967
|
+
rr,
|
|
1968
|
+
{
|
|
1969
|
+
id: te,
|
|
1970
|
+
ref: z,
|
|
1971
|
+
width: "100%",
|
|
1972
|
+
height: "100%",
|
|
1973
|
+
$hiddenClasses: b,
|
|
1974
|
+
className: m
|
|
1975
|
+
}
|
|
1976
|
+
),
|
|
1977
|
+
(D || !Z) && /* @__PURE__ */ I.jsx(f, {})
|
|
1978
|
+
]
|
|
2134
1979
|
}
|
|
2135
1980
|
)
|
|
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
|
|
1981
|
+
}
|
|
1982
|
+
) })
|
|
1983
|
+
] }) : /* @__PURE__ */ I.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
1984
|
+
/* @__PURE__ */ I.jsx(
|
|
1985
|
+
rr,
|
|
1986
|
+
{
|
|
1987
|
+
id: te,
|
|
1988
|
+
ref: z,
|
|
1989
|
+
width: "100%",
|
|
1990
|
+
height: "100%",
|
|
1991
|
+
$hiddenClasses: b,
|
|
1992
|
+
className: m
|
|
1993
|
+
}
|
|
1994
|
+
),
|
|
1995
|
+
(D || !Z) && /* @__PURE__ */ I.jsx(f, {})
|
|
1996
|
+
] });
|
|
2223
1997
|
}
|
|
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=";
|
|
1998
|
+
);
|
|
1999
|
+
Tt.displayName = "VPPlayer";
|
|
2244
2000
|
export {
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
Vt as baseConfigWithAutoplay,
|
|
2259
|
-
At as buildVPPlayerConfig,
|
|
2260
|
-
Ft as defaultVPPlayerConfig,
|
|
2261
|
-
Ot as extractVideoId,
|
|
2262
|
-
Dt as getAdConfig,
|
|
2263
|
-
zt as useVPPlayer,
|
|
2264
|
-
jt as useVPPlayerLogic,
|
|
2265
|
-
Ct as useVPPlayerScript
|
|
2001
|
+
vt as Overlay,
|
|
2002
|
+
rr as PlayerContainer,
|
|
2003
|
+
xt as PlayerWrapper,
|
|
2004
|
+
Tt as VPPlayer,
|
|
2005
|
+
Oe as VP_PLAYER_BASE_URL,
|
|
2006
|
+
St as appendDivIdToUrl,
|
|
2007
|
+
kt as generatePlayerId,
|
|
2008
|
+
Pt as getFullyManagedPlayerScriptUrl,
|
|
2009
|
+
Ct as getManagedPlayerScriptUrl,
|
|
2010
|
+
wt as getPlayerScriptUrl,
|
|
2011
|
+
tr as getVerticalPlayerScriptUrl,
|
|
2012
|
+
_t as useVPPlayerLogic,
|
|
2013
|
+
Et as useVPPlayerScript
|
|
2266
2014
|
};
|