@devix-technologies/react-gjirafa-vp-player 1.0.27 → 1.0.29
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/dist/App.d.ts +2 -0
- package/dist/components/Feedback.d.ts +25 -0
- package/dist/components/VPPlayer/index.d.ts +2 -0
- package/dist/components/VPPlayer/ui/index.d.ts +1 -0
- package/dist/components/VPPlayer/ui/styled.d.ts +42 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/vpPlayerConfig.d.ts +9 -0
- package/dist/constants/configs.d.ts +22 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/storybook.d.ts +9 -0
- package/dist/constants/styles.d.ts +11 -0
- package/dist/constants/urls.d.ts +18 -0
- package/dist/constants/vpPlayer.d.ts +47 -0
- package/dist/contexts/VPPlayerContext.d.ts +52 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/features/VPPlayer.d.ts +41 -0
- package/dist/features/stories/ads/Ads.stories.d.ts +20 -0
- package/dist/features/stories/context/Context.stories.d.ts +10 -0
- package/dist/features/stories/index.d.ts +3 -0
- package/dist/features/stories/playback/Playback.stories.d.ts +38 -0
- package/dist/fixtures/index.d.ts +1 -0
- package/dist/fixtures/playlist.d.ts +11 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useVPPlayerEvents.d.ts +24 -0
- package/dist/hooks/useVPPlayerLogic.d.ts +22 -0
- package/dist/hooks/useVPPlayerScript.d.ts +13 -0
- package/dist/hooks/useVideoData.d.ts +19 -0
- package/dist/index.d.ts +9 -0
- package/dist/interfaces/config.d.ts +314 -0
- package/dist/interfaces/index.d.ts +3 -0
- package/dist/interfaces/instance.d.ts +73 -0
- package/dist/interfaces/props.d.ts +77 -0
- package/dist/main.d.ts +0 -0
- package/dist/react-gjirafa-vp-player.es.js +785 -791
- package/dist/react-gjirafa-vp-player.umd.js +8 -8
- package/dist/types/api.types.d.ts +81 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/playerEvents.types.d.ts +67 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/vpPlayerConfigBuilder.d.ts +30 -0
- package/dist/utils/vpPlayerUtils.d.ts +8 -0
- package/package.json +21 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as xe from "react";
|
|
2
|
-
import
|
|
3
|
-
var
|
|
2
|
+
import Nr, { forwardRef as Fr, useContext as Er, useState as de, useEffect as Se, useRef as K, useMemo as Pr, createContext as Dr, useCallback as cr } from "react";
|
|
3
|
+
var Me = { exports: {} }, Oe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,17 +10,17 @@ var De = { exports: {} }, ke = {};
|
|
|
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 dr;
|
|
14
|
+
function Mr() {
|
|
15
|
+
if (dr) return Oe;
|
|
16
|
+
dr = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
18
|
function n(i, a, t) {
|
|
19
19
|
var s = null;
|
|
20
20
|
if (t !== void 0 && (s = "" + t), a.key !== void 0 && (s = "" + a.key), "key" in a) {
|
|
21
21
|
t = {};
|
|
22
|
-
for (var
|
|
23
|
-
|
|
22
|
+
for (var u in a)
|
|
23
|
+
u !== "key" && (t[u] = a[u]);
|
|
24
24
|
} else t = a;
|
|
25
25
|
return a = t.ref, {
|
|
26
26
|
$$typeof: e,
|
|
@@ -30,9 +30,9 @@ function Fr() {
|
|
|
30
30
|
props: t
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return Oe.Fragment = r, Oe.jsx = n, Oe.jsxs = n, Oe;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var Ve = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,26 +42,26 @@ var Oe = {};
|
|
|
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 fr;
|
|
46
|
+
function zr() {
|
|
47
|
+
return fr || (fr = 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 === y ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
|
-
case
|
|
54
|
+
case v:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case P:
|
|
57
|
-
return "Profiler";
|
|
58
56
|
case b:
|
|
57
|
+
return "Profiler";
|
|
58
|
+
case w:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case I:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case _:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case P:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
@@ -70,19 +70,19 @@ function Dr() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case h:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case F:
|
|
74
74
|
return o.displayName || "Context";
|
|
75
75
|
case L:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return o = o.displayName, o || (o =
|
|
80
|
-
case
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
77
|
+
case k:
|
|
78
|
+
var l = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = l.displayName || l.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
+
case J:
|
|
81
|
+
return l = o.displayName || null, l !== null ? l : e(o.type) || "Memo";
|
|
82
|
+
case W:
|
|
83
|
+
l = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(o(
|
|
85
|
+
return e(o(l));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,74 +94,74 @@ function Dr() {
|
|
|
94
94
|
function n(o) {
|
|
95
95
|
try {
|
|
96
96
|
r(o);
|
|
97
|
-
var
|
|
97
|
+
var l = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
l = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (l) {
|
|
102
|
+
l = console;
|
|
103
|
+
var d = l.error, $ = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return d.call(
|
|
105
|
+
l,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
107
|
+
$
|
|
108
108
|
), r(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function i(o) {
|
|
112
|
-
if (o ===
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
112
|
+
if (o === v) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === W)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var l = e(o);
|
|
117
|
+
return l ? "<" + l + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = R.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function t() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
129
|
function s(o) {
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
130
|
+
if (B.call(o, "key")) {
|
|
131
|
+
var l = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (l && l.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function u(o, l) {
|
|
137
|
+
function d() {
|
|
138
|
+
j || (j = !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
|
+
l
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
d.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: d,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function f() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
150
|
+
return z[o] || (z[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 m(o,
|
|
155
|
-
var V =
|
|
154
|
+
function m(o, l, d, $, H, fe) {
|
|
155
|
+
var V = d.ref;
|
|
156
156
|
return o = {
|
|
157
|
-
$$typeof:
|
|
157
|
+
$$typeof: E,
|
|
158
158
|
type: o,
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
159
|
+
key: l,
|
|
160
|
+
props: d,
|
|
161
|
+
_owner: $
|
|
162
162
|
}, (V !== void 0 ? V : null) !== null ? Object.defineProperty(o, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
164
|
+
get: f
|
|
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,
|
|
@@ -184,61 +184,61 @@ function Dr() {
|
|
|
184
184
|
value: fe
|
|
185
185
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var V =
|
|
187
|
+
function c(o, l, d, $, H, fe) {
|
|
188
|
+
var V = l.children;
|
|
189
189
|
if (V !== void 0)
|
|
190
|
-
if (
|
|
190
|
+
if ($)
|
|
191
191
|
if (Y(V)) {
|
|
192
|
-
for (
|
|
193
|
-
|
|
192
|
+
for ($ = 0; $ < V.length; $++)
|
|
193
|
+
p(V[$]);
|
|
194
194
|
Object.freeze && Object.freeze(V);
|
|
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 (
|
|
199
|
+
else p(V);
|
|
200
|
+
if (B.call(l, "key")) {
|
|
201
201
|
V = e(o);
|
|
202
|
-
var
|
|
203
|
-
return
|
|
202
|
+
var ee = Object.keys(l).filter(function(ne) {
|
|
203
|
+
return ne !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
$ = 0 < ee.length ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}", U[V + $] || (ee = 0 < ee.length ? "{" + ee.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
|
-
|
|
212
|
+
$,
|
|
213
213
|
V,
|
|
214
|
-
|
|
214
|
+
ee,
|
|
215
215
|
V
|
|
216
|
-
),
|
|
216
|
+
), U[V + $] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (V = null,
|
|
219
|
-
|
|
220
|
-
for (var pe in
|
|
221
|
-
pe !== "key" && (
|
|
222
|
-
} else
|
|
223
|
-
return V &&
|
|
224
|
-
|
|
218
|
+
if (V = null, d !== void 0 && (n(d), V = "" + d), s(l) && (n(l.key), V = "" + l.key), "key" in l) {
|
|
219
|
+
d = {};
|
|
220
|
+
for (var pe in l)
|
|
221
|
+
pe !== "key" && (d[pe] = l[pe]);
|
|
222
|
+
} else d = l;
|
|
223
|
+
return V && u(
|
|
224
|
+
d,
|
|
225
225
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
226
226
|
), m(
|
|
227
227
|
o,
|
|
228
228
|
V,
|
|
229
|
-
|
|
229
|
+
d,
|
|
230
230
|
a(),
|
|
231
231
|
H,
|
|
232
232
|
fe
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
235
|
+
function p(o) {
|
|
236
|
+
x(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === W && (o._payload.status === "fulfilled" ? x(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 x(o) {
|
|
239
|
+
return typeof o == "object" && o !== null && o.$$typeof === E;
|
|
240
240
|
}
|
|
241
|
-
var g =
|
|
241
|
+
var g = Nr, E = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), F = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), J = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), P = Symbol.for("react.activity"), y = Symbol.for("react.client.reference"), R = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, B = Object.prototype.hasOwnProperty, Y = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
g = {
|
|
@@ -246,59 +246,59 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
return o();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var
|
|
249
|
+
var j, z = {}, O = g.react_stack_bottom_frame.bind(
|
|
250
250
|
g,
|
|
251
251
|
t
|
|
252
|
-
)(),
|
|
253
|
-
|
|
254
|
-
var
|
|
255
|
-
return
|
|
252
|
+
)(), Q = M(i(t)), U = {};
|
|
253
|
+
Ve.Fragment = v, Ve.jsx = function(o, l, d) {
|
|
254
|
+
var $ = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return c(
|
|
256
256
|
o,
|
|
257
|
-
|
|
258
|
-
|
|
257
|
+
l,
|
|
258
|
+
d,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
$ ? Error("react-stack-top-frame") : O,
|
|
261
|
+
$ ? M(i(o)) : Q
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return
|
|
263
|
+
}, Ve.jsxs = function(o, l, d) {
|
|
264
|
+
var $ = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return c(
|
|
266
266
|
o,
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
l,
|
|
268
|
+
d,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
$ ? Error("react-stack-top-frame") : O,
|
|
271
|
+
$ ? M(i(o)) : Q
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
|
-
})()),
|
|
274
|
+
})()), Ve;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
276
|
+
var pr;
|
|
277
|
+
function Br() {
|
|
278
|
+
return pr || (pr = 1, process.env.NODE_ENV === "production" ? Me.exports = Mr() : Me.exports = zr()), Me.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var Z = Br();
|
|
281
|
+
function tr() {
|
|
282
|
+
return tr = Object.assign ? Object.assign.bind() : function(e) {
|
|
283
283
|
for (var r = 1; r < arguments.length; r++) {
|
|
284
284
|
var n = arguments[r];
|
|
285
285
|
for (var i in n) ({}).hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
286
286
|
}
|
|
287
287
|
return e;
|
|
288
|
-
},
|
|
288
|
+
}, tr.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ur(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 qr(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 Wr = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(n) {
|
|
303
303
|
var i = this;
|
|
304
304
|
this._insertTag = function(a) {
|
|
@@ -310,10 +310,10 @@ var Ur = /* @__PURE__ */ (function() {
|
|
|
310
310
|
return r.hydrate = function(i) {
|
|
311
311
|
i.forEach(this._insertTag);
|
|
312
312
|
}, r.insert = function(i) {
|
|
313
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(qr(this));
|
|
314
314
|
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var t =
|
|
316
|
+
var t = Ur(a);
|
|
317
317
|
try {
|
|
318
318
|
t.insertRule(i, t.cssRules.length);
|
|
319
319
|
} catch {
|
|
@@ -327,66 +327,66 @@ var Ur = /* @__PURE__ */ (function() {
|
|
|
327
327
|
return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(), ie = "-ms-",
|
|
331
|
-
function
|
|
332
|
-
return
|
|
330
|
+
})(), ie = "-ms-", Ye = "-moz-", A = "-webkit-", Ir = "comm", or = "rule", sr = "decl", Yr = "@import", Sr = "@keyframes", Hr = "@layer", Gr = Math.abs, He = String.fromCharCode, Xr = Object.assign;
|
|
331
|
+
function Jr(e, r) {
|
|
332
|
+
return te(e, 0) ^ 45 ? (((r << 2 ^ te(e, 0)) << 2 ^ te(e, 1)) << 2 ^ te(e, 2)) << 2 ^ te(e, 3) : 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Rr(e) {
|
|
335
335
|
return e.trim();
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function Qr(e, r) {
|
|
338
338
|
return (e = r.exec(e)) ? e[0] : e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function C(e, r, n) {
|
|
341
341
|
return e.replace(r, n);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function nr(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function te(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function je(e, r, n) {
|
|
350
350
|
return e.slice(r, n);
|
|
351
351
|
}
|
|
352
352
|
function he(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function lr(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ze(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Kr(e, r) {
|
|
362
362
|
return e.map(r).join("");
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
366
|
-
return { value: e, root: r, parent: n, type: i, props: a, children: t, line:
|
|
364
|
+
var Ge = 1, Te = 1, Tr = 0, le = 0, X = 0, Ce = "";
|
|
365
|
+
function Xe(e, r, n, i, a, t, s) {
|
|
366
|
+
return { value: e, root: r, parent: n, type: i, props: a, children: t, line: Ge, column: Te, length: s, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return
|
|
368
|
+
function Le(e, r) {
|
|
369
|
+
return Xr(Xe("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function Zr() {
|
|
372
|
+
return X;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function et() {
|
|
375
|
+
return X = le > 0 ? te(Ce, --le) : 0, Te--, X === 10 && (Te = 1, Ge--), X;
|
|
376
376
|
}
|
|
377
377
|
function ce() {
|
|
378
|
-
return
|
|
378
|
+
return X = le < Tr ? te(Ce, le++) : 0, Te++, X === 10 && (Te = 1, Ge++), X;
|
|
379
379
|
}
|
|
380
380
|
function ye() {
|
|
381
|
-
return
|
|
381
|
+
return te(Ce, le);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function Ue() {
|
|
384
|
+
return le;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function Fe(e, r) {
|
|
387
|
+
return je(Ce, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function $e(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -424,232 +424,232 @@ function je(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function Ar(e) {
|
|
428
|
+
return Ge = Te = 1, Tr = he(Ce = e), le = 0, [];
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
430
|
+
function Cr(e) {
|
|
431
|
+
return Ce = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
433
|
+
function qe(e) {
|
|
434
|
+
return Rr(Fe(le - 1, ir(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
|
-
function
|
|
437
|
-
for (; (
|
|
436
|
+
function rt(e) {
|
|
437
|
+
for (; (X = ye()) && X < 33; )
|
|
438
438
|
ce();
|
|
439
|
-
return
|
|
439
|
+
return $e(e) > 2 || $e(X) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r && ce() && !(
|
|
441
|
+
function tt(e, r) {
|
|
442
|
+
for (; --r && ce() && !(X < 48 || X > 102 || X > 57 && X < 65 || X > 70 && X < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return Fe(e, Ue() + (r < 6 && ye() == 32 && ce() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function ir(e) {
|
|
447
447
|
for (; ce(); )
|
|
448
|
-
switch (
|
|
448
|
+
switch (X) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
|
-
return
|
|
451
|
+
return le;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && ir(X);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && ir(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
463
|
ce();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return le;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (; ce() && e +
|
|
470
|
-
if (e +
|
|
468
|
+
function nt(e, r) {
|
|
469
|
+
for (; ce() && e + X !== 57; )
|
|
470
|
+
if (e + X === 84 && ye() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + Fe(r, le - 1) + "*" + He(e === 47 ? e : ce());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
for (;
|
|
474
|
+
function it(e) {
|
|
475
|
+
for (; !$e(ye()); )
|
|
476
476
|
ce();
|
|
477
|
-
return
|
|
477
|
+
return Fe(e, le);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function at(e) {
|
|
480
|
+
return Cr(We("", null, null, null, [""], e = Ar(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
for (var m = 0,
|
|
484
|
-
switch (
|
|
482
|
+
function We(e, r, n, i, a, t, s, u, f) {
|
|
483
|
+
for (var m = 0, c = 0, p = s, x = 0, g = 0, E = 0, h = 1, v = 1, w = 1, b = 0, L = "", F = a, k = t, I = i, _ = L; v; )
|
|
484
|
+
switch (E = b, b = ce()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (
|
|
488
|
-
|
|
487
|
+
if (E != 108 && te(_, p - 1) == 58) {
|
|
488
|
+
nr(_ += C(qe(b), "&", "&\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
|
+
_ += qe(b);
|
|
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
|
+
_ += rt(E);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
_ += tt(Ue() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
510
|
switch (ye()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
ze(ot(nt(ce(), Ue()), r, n), f);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
_ += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
520
|
case 123 * h:
|
|
521
|
-
|
|
521
|
+
u[m++] = he(_) * w;
|
|
522
522
|
// } ; \0
|
|
523
523
|
case 125 * h:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
|
-
switch (
|
|
526
|
+
switch (b) {
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
v = 0;
|
|
531
531
|
// ;
|
|
532
|
-
case 59 +
|
|
533
|
-
|
|
532
|
+
case 59 + c:
|
|
533
|
+
w == -1 && (_ = C(_, /\f/g, "")), g > 0 && he(_) - p && ze(g > 32 ? mr(_ + ";", i, n, p - 1) : mr(C(_, " ", "") + ";", i, n, p - 2), f);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
_ += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
541
|
-
if (
|
|
542
|
-
|
|
540
|
+
if (ze(I = hr(_, r, n, m, c, a, u, L, F = [], k = [], p), t), b === 123)
|
|
541
|
+
if (c === 0)
|
|
542
|
+
We(_, r, I, I, F, t, p, u, k);
|
|
543
543
|
else
|
|
544
|
-
switch (
|
|
544
|
+
switch (x === 99 && te(_, 3) === 110 ? 100 : x) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
|
|
550
|
+
We(e, I, I, i && ze(hr(e, I, I, 0, 0, a, u, L, a, F = [], p), k), a, k, p, u, i ? F : k);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
We(_, I, I, I, [""], k, 0, u, k);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
m =
|
|
556
|
+
m = c = g = 0, h = w = 1, L = _ = "", p = s;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
|
|
560
|
+
p = 1 + he(_), g = E;
|
|
561
561
|
default:
|
|
562
562
|
if (h < 1) {
|
|
563
|
-
if (
|
|
563
|
+
if (b == 123)
|
|
564
564
|
--h;
|
|
565
|
-
else if (
|
|
565
|
+
else if (b == 125 && h++ == 0 && et() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (_ += He(b), b * h) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
w = c > 0 ? 1 : (_ += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
|
|
575
|
+
u[m++] = (he(_) - 1) * w, w = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
ye() === 45 && (
|
|
579
|
+
ye() === 45 && (_ += qe(ce())), x = ye(), c = p = he(L = _ += it(Ue())), b++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
|
|
583
|
+
E === 45 && he(_) == 2 && (h = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
return t;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
for (var
|
|
590
|
-
for (var
|
|
591
|
-
(L =
|
|
592
|
-
return
|
|
588
|
+
function hr(e, r, n, i, a, t, s, u, f, m, c) {
|
|
589
|
+
for (var p = a - 1, x = a === 0 ? t : [""], g = lr(x), E = 0, h = 0, v = 0; E < i; ++E)
|
|
590
|
+
for (var w = 0, b = je(e, p + 1, p = Gr(h = s[E])), L = e; w < g; ++w)
|
|
591
|
+
(L = Rr(h > 0 ? x[w] + " " + b : C(b, /&\f/g, x[w]))) && (f[v++] = L);
|
|
592
|
+
return Xe(e, r, n, a === 0 ? or : u, f, m, c);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function ot(e, r, n) {
|
|
595
|
+
return Xe(e, r, n, Ir, He(Zr()), je(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
597
|
+
function mr(e, r, n, i) {
|
|
598
|
+
return Xe(e, r, n, sr, je(e, 0, i), je(e, i + 1, -1), i);
|
|
599
599
|
}
|
|
600
600
|
function Re(e, r) {
|
|
601
|
-
for (var n = "", i =
|
|
601
|
+
for (var n = "", i = lr(e), a = 0; a < i; a++)
|
|
602
602
|
n += r(e[a], a, e, r) || "";
|
|
603
603
|
return n;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function st(e, r, n, i) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case
|
|
607
|
+
case Hr:
|
|
608
608
|
if (e.children.length) break;
|
|
609
|
-
case
|
|
610
|
-
case
|
|
609
|
+
case Yr:
|
|
610
|
+
case sr:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case Ir:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
614
|
+
case Sr:
|
|
615
615
|
return e.return = e.value + "{" + Re(e.children, i) + "}";
|
|
616
|
-
case
|
|
616
|
+
case or:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
619
|
return he(n = Re(e.children, i)) ? e.return = e.value + "{" + n + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
621
|
+
function lt(e) {
|
|
622
|
+
var r = lr(e);
|
|
623
623
|
return function(n, i, a, t) {
|
|
624
|
-
for (var s = "",
|
|
625
|
-
s += e[
|
|
624
|
+
for (var s = "", u = 0; u < r; u++)
|
|
625
|
+
s += e[u](n, i, a, t) || "";
|
|
626
626
|
return s;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function ut(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function kr(e) {
|
|
635
635
|
var r = /* @__PURE__ */ Object.create(null);
|
|
636
636
|
return function(n) {
|
|
637
637
|
return r[n] === void 0 && (r[n] = e(n)), r[n];
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
for (var a = 0, t = 0; a = t, t = ye(), a === 38 && t === 12 && (n[i] = 1),
|
|
640
|
+
var ct = function(r, n, i) {
|
|
641
|
+
for (var a = 0, t = 0; a = t, t = ye(), a === 38 && t === 12 && (n[i] = 1), !$e(t); )
|
|
642
642
|
ce();
|
|
643
|
-
return
|
|
644
|
-
},
|
|
643
|
+
return Fe(r, le);
|
|
644
|
+
}, dt = function(r, n) {
|
|
645
645
|
var i = -1, a = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch ($e(a)) {
|
|
648
648
|
case 0:
|
|
649
|
-
a === 38 && ye() === 12 && (n[i] = 1), r[i] +=
|
|
649
|
+
a === 38 && ye() === 12 && (n[i] = 1), r[i] += ct(le - 1, n, i);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[i] +=
|
|
652
|
+
r[i] += qe(a);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
655
|
if (a === 44) {
|
|
@@ -658,26 +658,26 @@ var lt = function(r, n, i) {
|
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[i] +=
|
|
661
|
+
r[i] += He(a);
|
|
662
662
|
}
|
|
663
663
|
while (a = ce());
|
|
664
664
|
return r;
|
|
665
|
-
},
|
|
666
|
-
return
|
|
667
|
-
},
|
|
665
|
+
}, ft = function(r, n) {
|
|
666
|
+
return Cr(dt(Ar(r), n));
|
|
667
|
+
}, yr = /* @__PURE__ */ new WeakMap(), pt = function(r) {
|
|
668
668
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
669
669
|
// negative .length indicates that this rule has been already prefixed
|
|
670
670
|
r.length < 1)) {
|
|
671
671
|
for (var n = r.value, i = r.parent, a = r.column === i.column && r.line === i.line; i.type !== "rule"; )
|
|
672
672
|
if (i = i.parent, !i) return;
|
|
673
|
-
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !
|
|
674
|
-
|
|
675
|
-
for (var t = [], s =
|
|
676
|
-
for (var
|
|
677
|
-
r.props[m] = t[
|
|
673
|
+
if (!(r.props.length === 1 && n.charCodeAt(0) !== 58 && !yr.get(i)) && !a) {
|
|
674
|
+
yr.set(r, !0);
|
|
675
|
+
for (var t = [], s = ft(n, t), u = i.props, f = 0, m = 0; f < s.length; f++)
|
|
676
|
+
for (var c = 0; c < u.length; c++, m++)
|
|
677
|
+
r.props[m] = t[f] ? s[f].replace(/&\f/g, u[c]) : u[c] + " " + s[f];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
},
|
|
680
|
+
}, ht = function(r) {
|
|
681
681
|
if (r.type === "decl") {
|
|
682
682
|
var n = r.value;
|
|
683
683
|
// charcode for l
|
|
@@ -685,11 +685,11 @@ var lt = function(r, n, i) {
|
|
|
685
685
|
n.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
function
|
|
689
|
-
switch (
|
|
688
|
+
function Or(e, r) {
|
|
689
|
+
switch (Jr(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
|
-
return
|
|
692
|
+
return A + "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 Ar(e, r) {
|
|
|
719
719
|
case 5365:
|
|
720
720
|
case 5621:
|
|
721
721
|
case 3829:
|
|
722
|
-
return
|
|
722
|
+
return A + 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 A + e + Ye + e + ie + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
733
|
-
return
|
|
733
|
+
return A + e + ie + e + e;
|
|
734
734
|
// order
|
|
735
735
|
case 6165:
|
|
736
|
-
return
|
|
736
|
+
return A + e + ie + "flex-" + e + e;
|
|
737
737
|
// align-items
|
|
738
738
|
case 5187:
|
|
739
|
-
return
|
|
739
|
+
return A + e + C(e, /(\w+).+(:[^]+)/, A + "box-$1$2" + ie + "flex-$1$2") + e;
|
|
740
740
|
// align-self
|
|
741
741
|
case 5443:
|
|
742
|
-
return
|
|
742
|
+
return A + e + ie + "flex-item-" + C(e, /flex-|-self/, "") + e;
|
|
743
743
|
// align-content
|
|
744
744
|
case 4675:
|
|
745
|
-
return
|
|
745
|
+
return A + e + ie + "flex-line-pack" + C(e, /align-content|flex-|-self/, "") + e;
|
|
746
746
|
// flex-shrink
|
|
747
747
|
case 5548:
|
|
748
|
-
return
|
|
748
|
+
return A + e + ie + C(e, "shrink", "negative") + e;
|
|
749
749
|
// flex-basis
|
|
750
750
|
case 5292:
|
|
751
|
-
return
|
|
751
|
+
return A + e + ie + C(e, "basis", "preferred-size") + e;
|
|
752
752
|
// flex-grow
|
|
753
753
|
case 6060:
|
|
754
|
-
return
|
|
754
|
+
return A + "box-" + C(e, "-grow", "") + A + e + ie + C(e, "grow", "positive") + e;
|
|
755
755
|
// transition
|
|
756
756
|
case 4554:
|
|
757
|
-
return
|
|
757
|
+
return A + C(e, /([^-])(transform)/g, "$1" + A + "$2") + e;
|
|
758
758
|
// cursor
|
|
759
759
|
case 6187:
|
|
760
|
-
return
|
|
760
|
+
return C(C(C(e, /(zoom-|grab)/, A + "$1"), /(image-set)/, A + "$1"), e, "") + e;
|
|
761
761
|
// background, background-image
|
|
762
762
|
case 5495:
|
|
763
763
|
case 3959:
|
|
764
|
-
return
|
|
764
|
+
return C(e, /(image-set\([^]*)/, A + "$1$`$1");
|
|
765
765
|
// justify-content
|
|
766
766
|
case 4968:
|
|
767
|
-
return
|
|
767
|
+
return C(C(e, /(.+:)(flex-)?(.*)/, A + "box-pack:$3" + ie + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + A + 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 C(e, /(.+)-inline(.+)/, A + "$1$2") + e;
|
|
774
774
|
// (min|max)?(width|height|inline-size|block-size)
|
|
775
775
|
case 8116:
|
|
776
776
|
case 7059:
|
|
@@ -784,114 +784,114 @@ function Ar(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (he(e) - 1 - r > 6) switch (
|
|
787
|
+
if (he(e) - 1 - r > 6) switch (te(e, r + 1)) {
|
|
788
788
|
// (m)ax-content, (m)in-content
|
|
789
789
|
case 109:
|
|
790
|
-
if (
|
|
790
|
+
if (te(e, r + 4) !== 45) break;
|
|
791
791
|
// (f)ill-available, (f)it-content
|
|
792
792
|
case 102:
|
|
793
|
-
return
|
|
793
|
+
return C(e, /(.+:)(.+)-([^]+)/, "$1" + A + "$2-$3$1" + Ye + (te(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~nr(e, "stretch") ? Or(C(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
800
800
|
case 4949:
|
|
801
|
-
if (
|
|
801
|
+
if (te(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (
|
|
804
|
+
switch (te(e, he(e) - 3 - (~nr(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
|
-
return
|
|
807
|
+
return C(e, ":", ":" + A) + e;
|
|
808
808
|
// (inline-)?fl(e)x
|
|
809
809
|
case 101:
|
|
810
|
-
return
|
|
810
|
+
return C(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + A + (te(e, 14) === 45 ? "inline-" : "") + "box$3$1" + A + "$2$3$1" + ie + "$2box$3") + e;
|
|
811
811
|
}
|
|
812
812
|
break;
|
|
813
813
|
// writing-mode
|
|
814
814
|
case 5936:
|
|
815
|
-
switch (
|
|
815
|
+
switch (te(e, r + 11)) {
|
|
816
816
|
// vertical-l(r)
|
|
817
817
|
case 114:
|
|
818
|
-
return
|
|
818
|
+
return A + e + ie + C(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
819
819
|
// vertical-r(l)
|
|
820
820
|
case 108:
|
|
821
|
-
return
|
|
821
|
+
return A + e + ie + C(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
822
822
|
// horizontal(-)tb
|
|
823
823
|
case 45:
|
|
824
|
-
return
|
|
824
|
+
return A + e + ie + C(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return A + e + ie + e + e;
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var mt = function(r, n, i, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case sr:
|
|
833
|
+
r.return = Or(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
836
|
-
return Re([
|
|
837
|
-
value:
|
|
835
|
+
case Sr:
|
|
836
|
+
return Re([Le(r, {
|
|
837
|
+
value: C(r.value, "@", "@" + A)
|
|
838
838
|
})], a);
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
841
|
-
switch (
|
|
839
|
+
case or:
|
|
840
|
+
if (r.length) return Kr(r.props, function(t) {
|
|
841
|
+
switch (Qr(t, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
|
-
return Re([
|
|
846
|
-
props: [
|
|
845
|
+
return Re([Le(r, {
|
|
846
|
+
props: [C(t, /:(read-\w+)/, ":" + Ye + "$1")]
|
|
847
847
|
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return Re([
|
|
851
|
-
props: [
|
|
852
|
-
}),
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
850
|
+
return Re([Le(r, {
|
|
851
|
+
props: [C(t, /:(plac\w+)/, ":" + A + "input-$1")]
|
|
852
|
+
}), Le(r, {
|
|
853
|
+
props: [C(t, /:(plac\w+)/, ":" + Ye + "$1")]
|
|
854
|
+
}), Le(r, {
|
|
855
|
+
props: [C(t, /:(plac\w+)/, ie + "input-$1")]
|
|
856
856
|
})], a);
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, yt = [mt], vt = function(r) {
|
|
862
862
|
var n = r.key;
|
|
863
863
|
if (n === "css") {
|
|
864
864
|
var i = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
865
865
|
Array.prototype.forEach.call(i, function(h) {
|
|
866
|
-
var
|
|
867
|
-
|
|
866
|
+
var v = h.getAttribute("data-emotion");
|
|
867
|
+
v.indexOf(" ") !== -1 && (document.head.appendChild(h), h.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var a = r.stylisPlugins ||
|
|
870
|
+
var a = r.stylisPlugins || yt, t = {}, s, u = [];
|
|
871
871
|
s = 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^="' + n + ' "]'),
|
|
875
875
|
function(h) {
|
|
876
|
-
for (var
|
|
877
|
-
t[
|
|
878
|
-
|
|
876
|
+
for (var v = h.getAttribute("data-emotion").split(" "), w = 1; w < v.length; w++)
|
|
877
|
+
t[v[w]] = !0;
|
|
878
|
+
u.push(h);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var
|
|
881
|
+
var f, m = [pt, ht];
|
|
882
882
|
{
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
})],
|
|
886
|
-
return Re(
|
|
883
|
+
var c, p = [st, ut(function(h) {
|
|
884
|
+
c.insert(h);
|
|
885
|
+
})], x = lt(m.concat(a, p)), g = function(v) {
|
|
886
|
+
return Re(at(v), x);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
f = function(v, w, b, L) {
|
|
889
|
+
c = b, g(v ? v + "{" + w.styles + "}" : w.styles), L && (E.inserted[w.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var E = {
|
|
893
893
|
key: n,
|
|
894
|
-
sheet: new
|
|
894
|
+
sheet: new Wr({
|
|
895
895
|
key: n,
|
|
896
896
|
container: s,
|
|
897
897
|
nonce: r.nonce,
|
|
@@ -902,17 +902,17 @@ var pt = function(r, n, i, a) {
|
|
|
902
902
|
nonce: r.nonce,
|
|
903
903
|
inserted: t,
|
|
904
904
|
registered: {},
|
|
905
|
-
insert:
|
|
905
|
+
insert: f
|
|
906
906
|
};
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
function
|
|
907
|
+
return E.sheet.hydrate(u), E;
|
|
908
|
+
}, gt = !0;
|
|
909
|
+
function xt(e, r, n) {
|
|
910
910
|
var i = "";
|
|
911
911
|
return n.split(" ").forEach(function(a) {
|
|
912
912
|
e[a] !== void 0 ? r.push(e[a] + ";") : a && (i += a + " ");
|
|
913
913
|
}), i;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
915
|
+
var Vr = function(r, n, i) {
|
|
916
916
|
var a = r.key + "-" + n.name;
|
|
917
917
|
// we only need to add the styles to the registered cache if the
|
|
918
918
|
// class name could be used further down
|
|
@@ -923,9 +923,9 @@ var kr = function(r, n, i) {
|
|
|
923
923
|
// in node since emotion-server relies on whether a style is in
|
|
924
924
|
// the registered cache to know whether a style is global or not
|
|
925
925
|
// also, note that this check will be dead code eliminated in the browser
|
|
926
|
-
|
|
927
|
-
},
|
|
928
|
-
|
|
926
|
+
gt === !1) && r.registered[a] === void 0 && (r.registered[a] = n.styles);
|
|
927
|
+
}, wt = function(r, n, i) {
|
|
928
|
+
Vr(r, n, i);
|
|
929
929
|
var a = r.key + "-" + n.name;
|
|
930
930
|
if (r.inserted[n.name] === void 0) {
|
|
931
931
|
var t = n;
|
|
@@ -934,7 +934,7 @@ var kr = function(r, n, i) {
|
|
|
934
934
|
while (t !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
|
-
function
|
|
937
|
+
function bt(e) {
|
|
938
938
|
for (var r = 0, n, i = 0, a = e.length; a >= 4; ++i, a -= 4)
|
|
939
939
|
n = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, n = /* Math.imul(k, m): */
|
|
940
940
|
(n & 65535) * 1540483477 + ((n >>> 16) * 59797 << 16), n ^= /* k >>> r: */
|
|
@@ -953,7 +953,7 @@ function xt(e) {
|
|
|
953
953
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
954
954
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);
|
|
955
955
|
}
|
|
956
|
-
var
|
|
956
|
+
var _t = {
|
|
957
957
|
animationIterationCount: 1,
|
|
958
958
|
aspectRatio: 1,
|
|
959
959
|
borderImageOutset: 1,
|
|
@@ -1002,18 +1002,18 @@ var wt = {
|
|
|
1002
1002
|
strokeMiterlimit: 1,
|
|
1003
1003
|
strokeOpacity: 1,
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
|
-
},
|
|
1005
|
+
}, Et = /[A-Z]|^ms/g, Pt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Lr = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, vr = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
}),
|
|
1009
|
+
}, Ke = /* @__PURE__ */ kr(function(e) {
|
|
1010
|
+
return Lr(e) ? e : e.replace(Et, "-$&").toLowerCase();
|
|
1011
|
+
}), gr = function(r, n) {
|
|
1012
1012
|
switch (r) {
|
|
1013
1013
|
case "animation":
|
|
1014
1014
|
case "animationName":
|
|
1015
1015
|
if (typeof n == "string")
|
|
1016
|
-
return n.replace(
|
|
1016
|
+
return n.replace(Pt, function(i, a, t) {
|
|
1017
1017
|
return me = {
|
|
1018
1018
|
name: a,
|
|
1019
1019
|
styles: t,
|
|
@@ -1021,9 +1021,9 @@ var wt = {
|
|
|
1021
1021
|
}, a;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return
|
|
1024
|
+
return _t[r] !== 1 && !Lr(r) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1025
1025
|
};
|
|
1026
|
-
function
|
|
1026
|
+
function Ne(e, r, n) {
|
|
1027
1027
|
if (n == null)
|
|
1028
1028
|
return "";
|
|
1029
1029
|
var i = n;
|
|
@@ -1050,45 +1050,45 @@ function $e(e, r, n) {
|
|
|
1050
1050
|
styles: s.styles,
|
|
1051
1051
|
next: me
|
|
1052
1052
|
}, s = s.next;
|
|
1053
|
-
var
|
|
1054
|
-
return
|
|
1053
|
+
var u = t.styles + ";";
|
|
1054
|
+
return u;
|
|
1055
1055
|
}
|
|
1056
|
-
return
|
|
1056
|
+
return It(e, r, n);
|
|
1057
1057
|
}
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
|
-
var
|
|
1061
|
-
return me =
|
|
1060
|
+
var f = me, m = n(e);
|
|
1061
|
+
return me = f, Ne(e, r, m);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var c = n;
|
|
1067
1067
|
if (r == null)
|
|
1068
|
-
return
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1068
|
+
return c;
|
|
1069
|
+
var p = r[c];
|
|
1070
|
+
return p !== void 0 ? p : c;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function It(e, r, n) {
|
|
1073
1073
|
var i = "";
|
|
1074
1074
|
if (Array.isArray(n))
|
|
1075
1075
|
for (var a = 0; a < n.length; a++)
|
|
1076
|
-
i +=
|
|
1076
|
+
i += Ne(e, r, n[a]) + ";";
|
|
1077
1077
|
else
|
|
1078
1078
|
for (var t in n) {
|
|
1079
1079
|
var s = n[t];
|
|
1080
1080
|
if (typeof s != "object") {
|
|
1081
|
-
var
|
|
1082
|
-
r != null && r[
|
|
1081
|
+
var u = s;
|
|
1082
|
+
r != null && r[u] !== void 0 ? i += t + "{" + r[u] + "}" : vr(u) && (i += Ke(t) + ":" + gr(t, u) + ";");
|
|
1083
1083
|
} else if (Array.isArray(s) && typeof s[0] == "string" && (r == null || r[s[0]] === void 0))
|
|
1084
|
-
for (var
|
|
1085
|
-
|
|
1084
|
+
for (var f = 0; f < s.length; f++)
|
|
1085
|
+
vr(s[f]) && (i += Ke(t) + ":" + gr(t, s[f]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var m =
|
|
1087
|
+
var m = Ne(e, r, s);
|
|
1088
1088
|
switch (t) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
i +=
|
|
1091
|
+
i += Ke(t) + ":" + m + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
@@ -1098,66 +1098,66 @@ function Et(e, r, n) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
return i;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1101
|
+
var xr = /label:\s*([^\s;{]+)\s*(;|$)/g, me;
|
|
1102
|
+
function St(e, r, n) {
|
|
1103
1103
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1104
1104
|
return e[0];
|
|
1105
1105
|
var i = !0, a = "";
|
|
1106
1106
|
me = void 0;
|
|
1107
1107
|
var t = e[0];
|
|
1108
1108
|
if (t == null || t.raw === void 0)
|
|
1109
|
-
i = !1, a +=
|
|
1109
|
+
i = !1, a += Ne(n, r, t);
|
|
1110
1110
|
else {
|
|
1111
1111
|
var s = t;
|
|
1112
1112
|
a += s[0];
|
|
1113
1113
|
}
|
|
1114
|
-
for (var
|
|
1115
|
-
if (a +=
|
|
1116
|
-
var
|
|
1117
|
-
a +=
|
|
1114
|
+
for (var u = 1; u < e.length; u++)
|
|
1115
|
+
if (a += Ne(n, r, e[u]), i) {
|
|
1116
|
+
var f = t;
|
|
1117
|
+
a += f[u];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var m = "",
|
|
1121
|
-
m += "-" +
|
|
1122
|
-
var
|
|
1119
|
+
xr.lastIndex = 0;
|
|
1120
|
+
for (var m = "", c; (c = xr.exec(a)) !== null; )
|
|
1121
|
+
m += "-" + c[1];
|
|
1122
|
+
var p = bt(a) + m;
|
|
1123
1123
|
return {
|
|
1124
|
-
name:
|
|
1124
|
+
name: p,
|
|
1125
1125
|
styles: a,
|
|
1126
1126
|
next: me
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var Rt = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, Tt = xe.useInsertionEffect ? xe.useInsertionEffect : !1, At = Tt || Rt, jr = /* @__PURE__ */ xe.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__ */ vt({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1143
|
-
var
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var a =
|
|
1142
|
+
jr.Provider;
|
|
1143
|
+
var Ct = function(r) {
|
|
1144
|
+
return /* @__PURE__ */ Fr(function(n, i) {
|
|
1145
|
+
var a = Er(jr);
|
|
1146
1146
|
return r(n, a, i);
|
|
1147
1147
|
});
|
|
1148
|
-
},
|
|
1148
|
+
}, kt = /* @__PURE__ */ xe.createContext({}), Ot = /^((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)-.*))$/, Vt = /* @__PURE__ */ kr(
|
|
1149
1149
|
function(e) {
|
|
1150
|
-
return
|
|
1150
|
+
return Ot.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
|
-
),
|
|
1153
|
+
), Lt = Vt, jt = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
|
-
},
|
|
1155
|
+
}, wr = function(r) {
|
|
1156
1156
|
return typeof r == "string" && // 96 is one less than the char code
|
|
1157
1157
|
// for "a" so this is checking that
|
|
1158
1158
|
// it's a lowercase character
|
|
1159
|
-
r.charCodeAt(0) > 96 ?
|
|
1160
|
-
},
|
|
1159
|
+
r.charCodeAt(0) > 96 ? Lt : jt;
|
|
1160
|
+
}, br = function(r, n, i) {
|
|
1161
1161
|
var a;
|
|
1162
1162
|
if (n) {
|
|
1163
1163
|
var t = n.shouldForwardProp;
|
|
@@ -1166,57 +1166,57 @@ var Tt = function(r) {
|
|
|
1166
1166
|
} : t;
|
|
1167
1167
|
}
|
|
1168
1168
|
return typeof a != "function" && i && (a = r.__emotion_forwardProp), a;
|
|
1169
|
-
},
|
|
1169
|
+
}, $t = function(r) {
|
|
1170
1170
|
var n = r.cache, i = r.serialized, a = r.isStringTag;
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1171
|
+
return Vr(n, i, a), At(function() {
|
|
1172
|
+
return wt(n, i, a);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1174
|
+
}, Nt = function e(r, n) {
|
|
1175
1175
|
var i = r.__emotion_real === r, a = i && r.__emotion_base || r, t, s;
|
|
1176
1176
|
n !== void 0 && (t = n.label, s = n.target);
|
|
1177
|
-
var
|
|
1177
|
+
var u = br(r, n, i), f = u || wr(a), m = !f("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var
|
|
1180
|
-
if (t !== void 0 &&
|
|
1181
|
-
|
|
1179
|
+
var c = arguments, p = i && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (t !== void 0 && p.push("label:" + t + ";"), c[0] == null || c[0].raw === void 0)
|
|
1181
|
+
p.push.apply(p, c);
|
|
1182
1182
|
else {
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1185
|
-
for (var g =
|
|
1186
|
-
|
|
1183
|
+
var x = c[0];
|
|
1184
|
+
p.push(x[0]);
|
|
1185
|
+
for (var g = c.length, E = 1; E < g; E++)
|
|
1186
|
+
p.push(c[E], x[E]);
|
|
1187
1187
|
}
|
|
1188
|
-
var h =
|
|
1189
|
-
var L = m &&
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
for (var
|
|
1193
|
-
|
|
1194
|
-
|
|
1188
|
+
var h = Ct(function(v, w, b) {
|
|
1189
|
+
var L = m && v.as || a, F = "", k = [], I = v;
|
|
1190
|
+
if (v.theme == null) {
|
|
1191
|
+
I = {};
|
|
1192
|
+
for (var _ in v)
|
|
1193
|
+
I[_] = v[_];
|
|
1194
|
+
I.theme = xe.useContext(kt);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof
|
|
1197
|
-
var
|
|
1198
|
-
|
|
1199
|
-
var
|
|
1200
|
-
for (var
|
|
1201
|
-
m &&
|
|
1202
|
-
return
|
|
1203
|
-
cache:
|
|
1204
|
-
serialized:
|
|
1196
|
+
typeof v.className == "string" ? F = xt(w.registered, k, v.className) : v.className != null && (F = v.className + " ");
|
|
1197
|
+
var J = St(p.concat(k), w.registered, I);
|
|
1198
|
+
F += w.key + "-" + J.name, s !== void 0 && (F += " " + s);
|
|
1199
|
+
var W = m && u === void 0 ? wr(L) : f, P = {};
|
|
1200
|
+
for (var y in v)
|
|
1201
|
+
m && y === "as" || W(y) && (P[y] = v[y]);
|
|
1202
|
+
return P.className = F, b && (P.ref = b), /* @__PURE__ */ xe.createElement(xe.Fragment, null, /* @__PURE__ */ xe.createElement($t, {
|
|
1203
|
+
cache: w,
|
|
1204
|
+
serialized: J,
|
|
1205
1205
|
isStringTag: typeof L == "string"
|
|
1206
|
-
}), /* @__PURE__ */ xe.createElement(L,
|
|
1206
|
+
}), /* @__PURE__ */ xe.createElement(L, P));
|
|
1207
1207
|
});
|
|
1208
|
-
return h.displayName = t !== void 0 ? t : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", h.defaultProps = r.defaultProps, h.__emotion_real = h, h.__emotion_base = a, h.__emotion_styles =
|
|
1208
|
+
return h.displayName = t !== void 0 ? t : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", h.defaultProps = r.defaultProps, h.__emotion_real = h, h.__emotion_base = a, h.__emotion_styles = p, h.__emotion_forwardProp = u, Object.defineProperty(h, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
1210
|
return "." + s;
|
|
1211
1211
|
}
|
|
1212
|
-
}), h.withComponent = function(
|
|
1213
|
-
var
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), h.withComponent = function(v, w) {
|
|
1213
|
+
var b = e(v, tr({}, n, w, {
|
|
1214
|
+
shouldForwardProp: br(h, w, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return
|
|
1216
|
+
return b.apply(void 0, p);
|
|
1217
1217
|
}, h;
|
|
1218
1218
|
};
|
|
1219
|
-
},
|
|
1219
|
+
}, Ft = [
|
|
1220
1220
|
"a",
|
|
1221
1221
|
"abbr",
|
|
1222
1222
|
"address",
|
|
@@ -1352,11 +1352,11 @@ var Tt = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
],
|
|
1356
|
-
|
|
1357
|
-
|
|
1355
|
+
], Ae = Nt.bind(null);
|
|
1356
|
+
Ft.forEach(function(e) {
|
|
1357
|
+
Ae[e] = Ae(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const
|
|
1359
|
+
const Dt = Ae.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,7 +1397,7 @@ const Nt = Ce.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`,
|
|
1400
|
+
`, ar = ({ type: e, children: r, className: n, icon: i, action: a }) => Z.jsxs(Dt, { type: e, className: n, children: [i && Z.jsx("span", { children: i }), Z.jsx("span", { children: r }), a && Z.jsx("span", { children: a })] }), _r = Ae.div`
|
|
1401
1401
|
width: ${({ width: e }) => e || "100%"};
|
|
1402
1402
|
height: ${({ height: e }) => e || "100%"};
|
|
1403
1403
|
border-radius: 0px !important; /* Force remove rounded corners on container */
|
|
@@ -1409,7 +1409,7 @@ const Nt = Ce.div`
|
|
|
1409
1409
|
|
|
1410
1410
|
/* Hide specific elements inside the player */
|
|
1411
1411
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
|
|
1412
|
-
`,
|
|
1412
|
+
`, Mt = Ae.div`
|
|
1413
1413
|
position: fixed;
|
|
1414
1414
|
top: 0;
|
|
1415
1415
|
left: 0;
|
|
@@ -1421,74 +1421,74 @@ const Nt = Ce.div`
|
|
|
1421
1421
|
align-items: center;
|
|
1422
1422
|
z-index: 1000;
|
|
1423
1423
|
pointer-events: auto;
|
|
1424
|
-
`,
|
|
1424
|
+
`, zt = Ae.div`
|
|
1425
1425
|
position: relative;
|
|
1426
1426
|
max-width: 100vw;
|
|
1427
1427
|
aspect-ratio: 9 / 16;
|
|
1428
1428
|
height: auto;
|
|
1429
1429
|
z-index: 1001;
|
|
1430
1430
|
max-height: 100vh;
|
|
1431
|
-
`,
|
|
1431
|
+
`, Bt = (e, r) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${r}`, Ut = (e) => `https://host.vpplayer.tech/playlist/${e}`, qt = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, ur = (e, r) => `vp-player-${e || "default"}-${r || ""}`, Ze = /* @__PURE__ */ new Map(), Wt = (e, r) => {
|
|
1432
1432
|
const [n, i] = de(!1), [a, t] = de(null);
|
|
1433
1433
|
return Se(() => {
|
|
1434
|
-
let s = null,
|
|
1434
|
+
let s = null, u, f = 0;
|
|
1435
1435
|
const m = 3;
|
|
1436
|
-
let
|
|
1436
|
+
let c;
|
|
1437
1437
|
try {
|
|
1438
|
-
|
|
1438
|
+
c = r || qt(e || "latest");
|
|
1439
1439
|
} catch (g) {
|
|
1440
|
-
const
|
|
1441
|
-
t(`Failed to resolve script URL: ${
|
|
1440
|
+
const E = g instanceof Error ? g.message : String(g);
|
|
1441
|
+
t(`Failed to resolve script URL: ${E}`), i(!1);
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
|
-
if (
|
|
1444
|
+
if (Ze.get(c)) {
|
|
1445
1445
|
i(!0), t(null);
|
|
1446
1446
|
return;
|
|
1447
1447
|
}
|
|
1448
|
-
if (document.querySelector(`script[src="${
|
|
1449
|
-
|
|
1448
|
+
if (document.querySelector(`script[src="${c}"]`)) {
|
|
1449
|
+
Ze.set(c, !0), i(!0), t(null);
|
|
1450
1450
|
return;
|
|
1451
1451
|
}
|
|
1452
|
-
const
|
|
1453
|
-
s = document.createElement("script"), s.src =
|
|
1454
|
-
i(!1), t(`Loading script timed out: ${
|
|
1452
|
+
const x = () => {
|
|
1453
|
+
s = document.createElement("script"), s.src = c, s.async = !0, u = window.setTimeout(() => {
|
|
1454
|
+
i(!1), t(`Loading script timed out: ${c}`);
|
|
1455
1455
|
}, 1e4), s.onload = () => {
|
|
1456
|
-
clearTimeout(
|
|
1456
|
+
clearTimeout(u), Ze.set(c, !0), i(!0), t(null);
|
|
1457
1457
|
}, s.onerror = () => {
|
|
1458
|
-
clearTimeout(
|
|
1458
|
+
clearTimeout(u), f++, f < m ? setTimeout(x, 1e3 * f) : (i(!1), t(`Failed to load VP Player script after ${m} attempts: ${c}`));
|
|
1459
1459
|
}, document.body.appendChild(s);
|
|
1460
1460
|
};
|
|
1461
|
-
return
|
|
1462
|
-
clearTimeout(
|
|
1461
|
+
return x(), () => {
|
|
1462
|
+
clearTimeout(u), s && document.body.contains(s) && document.body.removeChild(s);
|
|
1463
1463
|
};
|
|
1464
1464
|
}, [e, r]), { isLoaded: n, error: a };
|
|
1465
|
-
},
|
|
1466
|
-
const [a, t] = de(null), [s,
|
|
1465
|
+
}, Be = /* @__PURE__ */ new Map(), Yt = 3e4, er = 5, Ht = ({ projectId: e, videoId: r, playlistId: n, videoUrl: i }) => {
|
|
1466
|
+
const [a, t] = de(null), [s, u] = de(null), [f, m] = de(!1), [c, p] = de(null);
|
|
1467
1467
|
return Se(() => {
|
|
1468
|
-
const
|
|
1468
|
+
const x = r ? `video:${r}` : n ? `playlist:${n}` : null;
|
|
1469
1469
|
if (i || !r && !n) {
|
|
1470
|
-
t(i || null),
|
|
1470
|
+
t(i || null), u(null), m(!1), p(null);
|
|
1471
1471
|
return;
|
|
1472
1472
|
}
|
|
1473
1473
|
if (r && !e) {
|
|
1474
|
-
m(!1),
|
|
1474
|
+
m(!1), p("projectId is required for single video fetch");
|
|
1475
1475
|
return;
|
|
1476
1476
|
}
|
|
1477
|
-
if (
|
|
1478
|
-
const
|
|
1479
|
-
t(
|
|
1477
|
+
if (x && Be.has(x)) {
|
|
1478
|
+
const b = Be.get(x);
|
|
1479
|
+
t(b.url), u(b.playlist), m(!1), p(null);
|
|
1480
1480
|
return;
|
|
1481
1481
|
}
|
|
1482
1482
|
let g = !0;
|
|
1483
|
-
const
|
|
1484
|
-
var L,
|
|
1483
|
+
const E = new AbortController(), h = E.signal, w = setTimeout(async () => {
|
|
1484
|
+
var L, F;
|
|
1485
1485
|
if (!g)
|
|
1486
1486
|
return;
|
|
1487
|
-
m(!0),
|
|
1488
|
-
let
|
|
1489
|
-
for (;
|
|
1487
|
+
m(!0), p(null);
|
|
1488
|
+
let b = 0;
|
|
1489
|
+
for (; b < er && g; )
|
|
1490
1490
|
try {
|
|
1491
|
-
const
|
|
1491
|
+
const k = r && !n ? Bt(e, r) : Ut(n), I = setTimeout(() => E.abort(), Yt), J = await fetch(k, {
|
|
1492
1492
|
method: "GET",
|
|
1493
1493
|
headers: {
|
|
1494
1494
|
Accept: "application/json",
|
|
@@ -1496,183 +1496,183 @@ const Nt = Ce.div`
|
|
|
1496
1496
|
},
|
|
1497
1497
|
signal: h
|
|
1498
1498
|
});
|
|
1499
|
-
if (clearTimeout(
|
|
1500
|
-
throw new Error(`Fetch failed with status ${
|
|
1501
|
-
const
|
|
1499
|
+
if (clearTimeout(I), !J.ok)
|
|
1500
|
+
throw new Error(`Fetch failed with status ${J.status}`);
|
|
1501
|
+
const W = await J.json();
|
|
1502
1502
|
if (!g)
|
|
1503
1503
|
return;
|
|
1504
1504
|
if (r && !n) {
|
|
1505
|
-
const
|
|
1506
|
-
if (!(
|
|
1505
|
+
const P = (F = (L = W.result) == null ? void 0 : L.items) == null ? void 0 : F.find((y) => y.mediaId === r);
|
|
1506
|
+
if (!(P != null && P.playbackUrl))
|
|
1507
1507
|
throw new Error("Invalid video data");
|
|
1508
|
-
t(
|
|
1508
|
+
t(P.playbackUrl), u(null), x && Be.set(x, { url: P.playbackUrl, playlist: null });
|
|
1509
1509
|
} else {
|
|
1510
|
-
const
|
|
1511
|
-
if (!Array.isArray(
|
|
1510
|
+
const P = W.videos;
|
|
1511
|
+
if (!Array.isArray(P))
|
|
1512
1512
|
throw new Error("Invalid playlist format");
|
|
1513
|
-
|
|
1513
|
+
u(P), t(null), x && Be.set(x, { url: null, playlist: P });
|
|
1514
1514
|
}
|
|
1515
1515
|
break;
|
|
1516
|
-
} catch (
|
|
1516
|
+
} catch (k) {
|
|
1517
1517
|
if (h.aborted) {
|
|
1518
|
-
g &&
|
|
1518
|
+
g && p("Request timed out");
|
|
1519
1519
|
break;
|
|
1520
1520
|
}
|
|
1521
|
-
if (
|
|
1522
|
-
const
|
|
1523
|
-
g &&
|
|
1521
|
+
if (b++, b >= er) {
|
|
1522
|
+
const I = k instanceof Error ? k.message : String(k);
|
|
1523
|
+
g && p(`Failed after ${er} attempts: ${I}`);
|
|
1524
1524
|
} else
|
|
1525
|
-
await new Promise((
|
|
1525
|
+
await new Promise((I) => setTimeout(I, 2e3));
|
|
1526
1526
|
}
|
|
1527
1527
|
g && m(!1);
|
|
1528
1528
|
}, 100);
|
|
1529
1529
|
return () => {
|
|
1530
|
-
g = !1, clearTimeout(
|
|
1530
|
+
g = !1, clearTimeout(w), E.abort();
|
|
1531
1531
|
};
|
|
1532
|
-
}, [e, r, n, i]), { fetchedPlaybackUrl: a, fetchedPlaylist: s, isLoading:
|
|
1533
|
-
},
|
|
1534
|
-
const s =
|
|
1532
|
+
}, [e, r, n, i]), { fetchedPlaybackUrl: a, fetchedPlaylist: s, isLoading: f, error: c };
|
|
1533
|
+
}, Gt = ({ playerId: e, playerInstanceRef: r, playerRef: n, videoData: i, trackingMetadata: a, callbacks: t }) => {
|
|
1534
|
+
const s = K(!1), u = K(!1), f = K(!1), m = K(0), c = K({}), p = K(null), x = K(null), g = K(null), E = K(null), h = K(!1), v = K(!1);
|
|
1535
1535
|
Se(() => {
|
|
1536
1536
|
if (!(t && (t.onPlayerStart || t.onPlayerPlay || t.onPlayerPause || t.onPlayerResume || t.onPlayerEnd || t.onPlayerProgressEvery10Seconds || t.onPlayerProgressAt20Seconds || t.onPlayerQuartile25 || t.onPlayerQuartile50 || t.onPlayerQuartile75 || t.onPlayerNext || t.onPlayerPrevious || t.onPlayerEvent)))
|
|
1537
1537
|
return;
|
|
1538
|
-
(
|
|
1539
|
-
s.current = !1,
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
if (!d)
|
|
1538
|
+
const b = () => {
|
|
1539
|
+
s.current = !1, u.current = !1, f.current = !1, m.current = 0, c.current = {};
|
|
1540
|
+
}, L = () => {
|
|
1541
|
+
var B;
|
|
1542
|
+
const y = document.getElementById(e);
|
|
1543
|
+
if (!y)
|
|
1545
1544
|
return null;
|
|
1546
|
-
if (
|
|
1547
|
-
const
|
|
1545
|
+
if (y.querySelectorAll("video").length > 1 && r.current) {
|
|
1546
|
+
const Y = r.current, M = Y.videoIndex ?? ((B = Y.playlist) == null ? void 0 : B.playlistVideoIndex) ?? 0, j = y.querySelector(`video[id="${M}"]`);
|
|
1547
|
+
if (j)
|
|
1548
|
+
return j;
|
|
1549
|
+
const z = y.querySelector("video.active");
|
|
1548
1550
|
if (z)
|
|
1549
1551
|
return z;
|
|
1550
|
-
const $ = d.querySelector("video.active");
|
|
1551
|
-
if ($)
|
|
1552
|
-
return $;
|
|
1553
1552
|
}
|
|
1554
|
-
return
|
|
1555
|
-
},
|
|
1556
|
-
const
|
|
1557
|
-
if (!
|
|
1553
|
+
return y.querySelector("video");
|
|
1554
|
+
}, F = () => {
|
|
1555
|
+
const y = L();
|
|
1556
|
+
if (!y)
|
|
1558
1557
|
return !1;
|
|
1559
|
-
const
|
|
1560
|
-
var
|
|
1561
|
-
const
|
|
1562
|
-
if (!(
|
|
1563
|
-
switch (
|
|
1558
|
+
const R = (l, d) => {
|
|
1559
|
+
var H, fe, V, ee, pe, ne, _e, De, ue, we, ve, Je, Qe, ke;
|
|
1560
|
+
const $ = Date.now();
|
|
1561
|
+
if (!(l === "player_start" && s.current)) {
|
|
1562
|
+
switch (E.current = { type: l, time: $ }, l) {
|
|
1564
1563
|
case "player_start":
|
|
1565
|
-
(
|
|
1564
|
+
(H = t.onPlayerStart) == null || H.call(t, l);
|
|
1566
1565
|
break;
|
|
1567
1566
|
case "player_play":
|
|
1568
|
-
(
|
|
1567
|
+
(fe = t.onPlayerPlay) == null || fe.call(t, l);
|
|
1569
1568
|
break;
|
|
1570
1569
|
case "player_pause":
|
|
1571
|
-
(
|
|
1570
|
+
(V = t.onPlayerPause) == null || V.call(t, l);
|
|
1572
1571
|
break;
|
|
1573
1572
|
case "player_resume":
|
|
1574
|
-
(
|
|
1573
|
+
(ee = t.onPlayerResume) == null || ee.call(t, l);
|
|
1575
1574
|
break;
|
|
1576
1575
|
case "player_end":
|
|
1577
|
-
(
|
|
1576
|
+
(pe = t.onPlayerEnd) == null || pe.call(t, l);
|
|
1578
1577
|
break;
|
|
1579
1578
|
case "player_progress_every_10_seconds":
|
|
1580
|
-
|
|
1579
|
+
d !== void 0 && ((ne = t.onPlayerProgressEvery10Seconds) == null || ne.call(t, l, d));
|
|
1581
1580
|
break;
|
|
1582
1581
|
case "player_progress_at_20_seconds":
|
|
1583
|
-
|
|
1582
|
+
d !== void 0 && ((_e = t.onPlayerProgressAt20Seconds) == null || _e.call(t, l, d));
|
|
1584
1583
|
break;
|
|
1585
1584
|
case "player_quartile_25":
|
|
1586
|
-
|
|
1585
|
+
d !== void 0 && ((De = t.onPlayerQuartile25) == null || De.call(t, l, d));
|
|
1587
1586
|
break;
|
|
1588
1587
|
case "player_quartile_50":
|
|
1589
|
-
|
|
1588
|
+
d !== void 0 && ((ue = t.onPlayerQuartile50) == null || ue.call(t, l, d));
|
|
1590
1589
|
break;
|
|
1591
1590
|
case "player_quartile_75":
|
|
1592
|
-
|
|
1591
|
+
d !== void 0 && ((we = t.onPlayerQuartile75) == null || we.call(t, l, d));
|
|
1593
1592
|
break;
|
|
1594
1593
|
case "player_next":
|
|
1595
|
-
(
|
|
1594
|
+
(ve = t.onPlayerNext) == null || ve.call(t, l);
|
|
1596
1595
|
break;
|
|
1597
1596
|
case "player_previous":
|
|
1598
|
-
(
|
|
1597
|
+
(Je = t.onPlayerPrevious) == null || Je.call(t, l);
|
|
1599
1598
|
break;
|
|
1600
1599
|
}
|
|
1601
|
-
|
|
1600
|
+
d !== void 0 && (l === "player_progress_every_10_seconds" || l === "player_progress_at_20_seconds" || l === "player_quartile_25" || l === "player_quartile_50" || l === "player_quartile_75") ? (Qe = t.onPlayerEvent) == null || Qe.call(t, l, d) : (ke = t.onPlayerEvent) == null || ke.call(t, l);
|
|
1602
1601
|
}
|
|
1602
|
+
}, B = () => L() === y, Y = () => {
|
|
1603
|
+
h.current || B() && (s.current || (R("player_start"), s.current = !0));
|
|
1603
1604
|
}, M = () => {
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
c.current ? E("player_resume") : l.current ? E("player_play") : (E("player_play"), l.current = !0), c.current = !1;
|
|
1609
|
-
}, Y = () => {
|
|
1610
|
-
d.ended || h.current || setTimeout(() => {
|
|
1611
|
-
var p;
|
|
1605
|
+
h.current || B() && (f.current ? R("player_resume") : u.current && v.current ? (R("player_play"), v.current = !1) : u.current || (R("player_play"), u.current = !0), f.current = !1);
|
|
1606
|
+
}, j = () => {
|
|
1607
|
+
y.ended || h.current || setTimeout(() => {
|
|
1608
|
+
var l;
|
|
1612
1609
|
if (!h.current) {
|
|
1613
|
-
if (r.current &&
|
|
1614
|
-
const
|
|
1615
|
-
if ((
|
|
1610
|
+
if (r.current && x.current !== null) {
|
|
1611
|
+
const d = r.current;
|
|
1612
|
+
if ((d.videoIndex ?? ((l = d.playlist) == null ? void 0 : l.playlistVideoIndex) ?? 0) !== x.current)
|
|
1616
1613
|
return;
|
|
1617
1614
|
}
|
|
1618
|
-
|
|
1615
|
+
R("player_pause"), f.current = !0;
|
|
1619
1616
|
}
|
|
1620
1617
|
}, 200);
|
|
1621
1618
|
}, z = () => {
|
|
1622
|
-
|
|
1623
|
-
},
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1619
|
+
R("player_end");
|
|
1620
|
+
}, O = () => {
|
|
1621
|
+
if (h.current)
|
|
1622
|
+
return;
|
|
1623
|
+
const l = y.duration > 0 ? y.currentTime / y.duration * 100 : 0, d = Math.floor(y.currentTime);
|
|
1624
|
+
d - m.current >= 10 && (m.current = d, R("player_progress_every_10_seconds", d)), d >= 20 && !c.current[20] && (c.current[20] = !0, R("player_progress_at_20_seconds", d)), l >= 25 && !c.current[25] && (c.current[25] = !0, R("player_quartile_25", d)), l >= 50 && !c.current[50] && (c.current[50] = !0, R("player_quartile_50", d)), l >= 75 && !c.current[75] && (c.current[75] = !0, R("player_quartile_75", d));
|
|
1625
|
+
}, Q = () => {
|
|
1626
|
+
v.current = !0;
|
|
1627
1627
|
};
|
|
1628
|
-
if (g.current && g.current !==
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1628
|
+
if (g.current && g.current !== y) {
|
|
1629
|
+
const l = g.current;
|
|
1630
|
+
l.removeEventListener("loadedmetadata", Y), l.removeEventListener("play", M), l.removeEventListener("pause", j), l.removeEventListener("ended", z), l.removeEventListener("timeupdate", O), l.removeEventListener("seeking", Q);
|
|
1631
1631
|
}
|
|
1632
|
-
g.current =
|
|
1633
|
-
const
|
|
1634
|
-
const
|
|
1635
|
-
(
|
|
1632
|
+
g.current = y, y.addEventListener("loadedmetadata", Y), y.addEventListener("play", M), y.addEventListener("pause", j), y.addEventListener("ended", z), y.addEventListener("timeupdate", O), y.addEventListener("seeking", Q), y.readyState >= 1 && Y(), !y.paused && y.currentTime > 0 && !u.current && M();
|
|
1633
|
+
const U = document.getElementById(e), o = (l) => {
|
|
1634
|
+
const d = l.target;
|
|
1635
|
+
(d.closest(".vp-next") || d.closest(".vrt-icon-down") || d.closest(".vrt-arrow.vrt-icon-down")) && (h.current = !0, R("player_next"), b(), setTimeout(() => {
|
|
1636
1636
|
h.current = !1;
|
|
1637
|
-
}, 500)), (
|
|
1637
|
+
}, 500)), (d.closest(".vp-prev") || d.closest(".vp-previous") || d.closest(".vrt-icon-up") || d.closest(".vrt-arrow.vrt-icon-up")) && (h.current = !0, R("player_previous"), b(), setTimeout(() => {
|
|
1638
1638
|
h.current = !1;
|
|
1639
1639
|
}, 500));
|
|
1640
1640
|
};
|
|
1641
|
-
return
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1641
|
+
return U && U.addEventListener("click", o, !0), p.current = () => {
|
|
1642
|
+
const l = g.current || y;
|
|
1643
|
+
l.removeEventListener("loadedmetadata", Y), l.removeEventListener("play", M), l.removeEventListener("pause", j), l.removeEventListener("ended", z), l.removeEventListener("timeupdate", O), l.removeEventListener("seeking", Q), U == null || U.removeEventListener("click", o, !0), g.current = null;
|
|
1644
1644
|
}, !0;
|
|
1645
1645
|
};
|
|
1646
|
-
let
|
|
1647
|
-
const
|
|
1646
|
+
let k = null, I = !1;
|
|
1647
|
+
const _ = () => {
|
|
1648
1648
|
if (!r.current)
|
|
1649
1649
|
return;
|
|
1650
|
-
const
|
|
1651
|
-
|
|
1652
|
-
var
|
|
1650
|
+
const y = r.current, R = document.getElementById(e), B = R == null ? void 0 : R.querySelectorAll("video");
|
|
1651
|
+
B && B.length > 1 && y.videoIndex !== void 0 && (k = window.setInterval(() => {
|
|
1652
|
+
var M, j, z, O;
|
|
1653
1653
|
try {
|
|
1654
|
-
const
|
|
1655
|
-
if (
|
|
1656
|
-
const
|
|
1657
|
-
t && !h.current && (
|
|
1658
|
-
|
|
1654
|
+
const Q = y.videoIndex ?? ((M = y.playlist) == null ? void 0 : M.playlistVideoIndex) ?? 0;
|
|
1655
|
+
if (x.current !== null && Q !== x.current) {
|
|
1656
|
+
const U = Q > x.current, o = U ? "player_next" : "player_previous";
|
|
1657
|
+
t && !h.current && (U ? (j = t.onPlayerNext) == null || j.call(t, o) : (z = t.onPlayerPrevious) == null || z.call(t, o), (O = t.onPlayerEvent) == null || O.call(t, o)), h.current = !0, p.current && (p.current(), p.current = null), s.current = !1, u.current = !1, f.current = !1, m.current = 0, c.current = {}, g.current = null, v.current = !1, setTimeout(() => {
|
|
1658
|
+
F(), setTimeout(() => {
|
|
1659
1659
|
h.current = !1;
|
|
1660
1660
|
}, 200);
|
|
1661
1661
|
}, 100);
|
|
1662
1662
|
}
|
|
1663
|
-
|
|
1663
|
+
x.current = Q;
|
|
1664
1664
|
} catch {
|
|
1665
1665
|
}
|
|
1666
1666
|
}, 500));
|
|
1667
1667
|
};
|
|
1668
|
-
let
|
|
1669
|
-
const
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
}, 1e3)) :
|
|
1668
|
+
let J = 0;
|
|
1669
|
+
const W = 20, P = setInterval(() => {
|
|
1670
|
+
J++, F() && !I ? (I = !0, clearInterval(P), setTimeout(() => {
|
|
1671
|
+
_();
|
|
1672
|
+
}, 1e3)) : J >= W && clearInterval(P);
|
|
1673
1673
|
}, 500);
|
|
1674
1674
|
return () => {
|
|
1675
|
-
clearInterval(
|
|
1675
|
+
clearInterval(P), k !== null && (clearInterval(k), k = null), p.current && (p.current(), p.current = null);
|
|
1676
1676
|
};
|
|
1677
1677
|
}, [
|
|
1678
1678
|
e,
|
|
@@ -1682,7 +1682,7 @@ const Nt = Ce.div`
|
|
|
1682
1682
|
r,
|
|
1683
1683
|
n
|
|
1684
1684
|
]);
|
|
1685
|
-
},
|
|
1685
|
+
}, Xt = {
|
|
1686
1686
|
projectId: "vp-player-projectId",
|
|
1687
1687
|
// this is used only if prop projectId is not provided
|
|
1688
1688
|
video: {
|
|
@@ -1736,7 +1736,7 @@ const Nt = Ce.div`
|
|
|
1736
1736
|
// Enabled by default
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
}, Ie = "vp-player-project",
|
|
1739
|
+
}, Ie = "vp-player-project", Jt = ({
|
|
1740
1740
|
videoUrl: e,
|
|
1741
1741
|
fetchedPlaybackUrl: r,
|
|
1742
1742
|
fetchedPlaylist: n,
|
|
@@ -1745,8 +1745,8 @@ const Nt = Ce.div`
|
|
|
1745
1745
|
isVerticalPlayer: t
|
|
1746
1746
|
// Distinguish between VP Player types
|
|
1747
1747
|
}) => {
|
|
1748
|
-
var
|
|
1749
|
-
const s = { ...
|
|
1748
|
+
var c, p, x, g, E, h, v, w, b, L, F, k, I, _, J, W, P, y, R, B, Y, M;
|
|
1749
|
+
const s = { ...Xt, ...a }, u = { ...s.config, ...a.config };
|
|
1750
1750
|
if (e)
|
|
1751
1751
|
return {
|
|
1752
1752
|
...s,
|
|
@@ -1756,7 +1756,7 @@ const Nt = Ce.div`
|
|
|
1756
1756
|
file: e,
|
|
1757
1757
|
playlist: void 0
|
|
1758
1758
|
},
|
|
1759
|
-
config:
|
|
1759
|
+
config: u
|
|
1760
1760
|
};
|
|
1761
1761
|
if (r)
|
|
1762
1762
|
return {
|
|
@@ -1767,10 +1767,10 @@ const Nt = Ce.div`
|
|
|
1767
1767
|
file: r,
|
|
1768
1768
|
playlist: void 0
|
|
1769
1769
|
},
|
|
1770
|
-
config:
|
|
1770
|
+
config: u
|
|
1771
1771
|
};
|
|
1772
1772
|
if (n && n.length > 0) {
|
|
1773
|
-
const
|
|
1773
|
+
const j = ((p = (c = a == null ? void 0 : a.video) == null ? void 0 : c.playlist) == null ? void 0 : p.playlistVideoIndex) ?? ((x = a == null ? void 0 : a.config) == null ? void 0 : x.playlistVideoIndex) ?? 0;
|
|
1774
1774
|
return t ? {
|
|
1775
1775
|
...s,
|
|
1776
1776
|
projectId: i || Ie,
|
|
@@ -1779,7 +1779,7 @@ const Nt = Ce.div`
|
|
|
1779
1779
|
// Set first video file (index 0) to avoid VP Player duplication
|
|
1780
1780
|
videoId: (g = n[0]) == null ? void 0 : g.mediaId,
|
|
1781
1781
|
// Add videoId for tracking
|
|
1782
|
-
file: (
|
|
1782
|
+
file: (E = n[0]) == null ? void 0 : E.hlsUrl,
|
|
1783
1783
|
title: (h = n[0]) == null ? void 0 : h.title,
|
|
1784
1784
|
// thumbnail: fetchedPlaylist[0]?.thumbnailUrl,
|
|
1785
1785
|
playlist: {
|
|
@@ -1787,47 +1787,47 @@ const Nt = Ce.div`
|
|
|
1787
1787
|
playlistId: "",
|
|
1788
1788
|
// Will be set by API
|
|
1789
1789
|
// Use original playlistVideoIndex - VP Player will navigate to it
|
|
1790
|
-
playlistVideoIndex: Number(
|
|
1790
|
+
playlistVideoIndex: Number(j),
|
|
1791
1791
|
// Remove first video from playlist to avoid duplication (already in file)
|
|
1792
|
-
videos: n.slice(1).map((
|
|
1793
|
-
videoId:
|
|
1792
|
+
videos: n.slice(1).map((O, Q) => ({
|
|
1793
|
+
videoId: O.mediaId || String(Q + 1),
|
|
1794
1794
|
// Use mediaId if available
|
|
1795
|
-
title:
|
|
1796
|
-
file:
|
|
1797
|
-
thumbnailUrl:
|
|
1798
|
-
duration:
|
|
1795
|
+
title: O.title,
|
|
1796
|
+
file: O.hlsUrl,
|
|
1797
|
+
thumbnailUrl: O.thumbnailUrl,
|
|
1798
|
+
duration: O.duration
|
|
1799
1799
|
}))
|
|
1800
1800
|
}
|
|
1801
1801
|
},
|
|
1802
|
-
config:
|
|
1802
|
+
config: u
|
|
1803
1803
|
} : {
|
|
1804
1804
|
...s,
|
|
1805
1805
|
projectId: i || Ie,
|
|
1806
1806
|
video: {
|
|
1807
1807
|
...s.video,
|
|
1808
|
-
videoId: ((
|
|
1808
|
+
videoId: ((v = n[Number(j)]) == null ? void 0 : v.mediaId) || ((w = n[0]) == null ? void 0 : w.mediaId),
|
|
1809
1809
|
// Add videoId for tracking
|
|
1810
|
-
file: ((
|
|
1811
|
-
title: ((
|
|
1812
|
-
thumbnail: ((
|
|
1810
|
+
file: ((b = n[Number(j)]) == null ? void 0 : b.hlsUrl) || ((L = n[0]) == null ? void 0 : L.hlsUrl) || "",
|
|
1811
|
+
title: ((F = n[Number(j)]) == null ? void 0 : F.title) || ((k = n[0]) == null ? void 0 : k.title),
|
|
1812
|
+
thumbnail: ((I = n[Number(j)]) == null ? void 0 : I.thumbnailUrl) || ((_ = n[0]) == null ? void 0 : _.thumbnailUrl),
|
|
1813
1813
|
playlist: {
|
|
1814
1814
|
state: !0,
|
|
1815
1815
|
// playlistVideoIndex: String(userPlaylistVideoIndex), this has been bug, fixed, now int
|
|
1816
|
-
playlistVideoIndex: Number(
|
|
1817
|
-
videos: n.map((
|
|
1818
|
-
videoId:
|
|
1816
|
+
playlistVideoIndex: Number(j),
|
|
1817
|
+
videos: n.map((O, Q) => ({
|
|
1818
|
+
videoId: O.mediaId || String(Q),
|
|
1819
1819
|
// Use mediaId if available
|
|
1820
|
-
title:
|
|
1821
|
-
file:
|
|
1822
|
-
thumbnailUrl:
|
|
1823
|
-
duration:
|
|
1820
|
+
title: O.title,
|
|
1821
|
+
file: O.hlsUrl,
|
|
1822
|
+
thumbnailUrl: O.thumbnailUrl,
|
|
1823
|
+
duration: O.duration
|
|
1824
1824
|
}))
|
|
1825
1825
|
}
|
|
1826
1826
|
},
|
|
1827
|
-
config:
|
|
1827
|
+
config: u
|
|
1828
1828
|
};
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1830
|
+
const f = ((J = a == null ? void 0 : a.video) == null ? void 0 : J.playlist) || s.video.playlist, m = (W = a == null ? void 0 : a.video) == null ? void 0 : W.file;
|
|
1831
1831
|
if (m)
|
|
1832
1832
|
return {
|
|
1833
1833
|
...s,
|
|
@@ -1838,310 +1838,304 @@ const Nt = Ce.div`
|
|
|
1838
1838
|
playlist: void 0
|
|
1839
1839
|
// No playlist, just one video
|
|
1840
1840
|
},
|
|
1841
|
-
config:
|
|
1841
|
+
config: u
|
|
1842
1842
|
};
|
|
1843
|
-
if (
|
|
1844
|
-
const
|
|
1843
|
+
if (f != null && f.videos && f.videos.length > 0) {
|
|
1844
|
+
const j = ((y = (P = a == null ? void 0 : a.video) == null ? void 0 : P.playlist) == null ? void 0 : y.playlistVideoIndex) ?? ((R = a == null ? void 0 : a.config) == null ? void 0 : R.playlistVideoIndex) ?? 0;
|
|
1845
1845
|
return {
|
|
1846
1846
|
...s,
|
|
1847
1847
|
projectId: i || Ie,
|
|
1848
1848
|
video: {
|
|
1849
1849
|
...s.video,
|
|
1850
|
-
videoId: (
|
|
1851
|
-
file: ((Y =
|
|
1852
|
-
title: (
|
|
1850
|
+
videoId: (B = f.videos[0]) == null ? void 0 : B.videoId,
|
|
1851
|
+
file: ((Y = f.videos[0]) == null ? void 0 : Y.file) || "",
|
|
1852
|
+
title: (M = f.videos[0]) == null ? void 0 : M.title,
|
|
1853
1853
|
playlist: {
|
|
1854
1854
|
state: !0,
|
|
1855
1855
|
playlistId: "",
|
|
1856
|
-
playlistVideoIndex: Number(
|
|
1857
|
-
videos:
|
|
1856
|
+
playlistVideoIndex: Number(j),
|
|
1857
|
+
videos: f.videos
|
|
1858
1858
|
}
|
|
1859
1859
|
},
|
|
1860
|
-
config:
|
|
1860
|
+
config: u
|
|
1861
1861
|
};
|
|
1862
1862
|
}
|
|
1863
1863
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1864
|
-
},
|
|
1864
|
+
}, Qt = (e) => {
|
|
1865
1865
|
if (!e)
|
|
1866
1866
|
return;
|
|
1867
1867
|
const r = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, n = e.match(r);
|
|
1868
1868
|
return n ? n[2] : void 0;
|
|
1869
|
-
},
|
|
1870
|
-
const
|
|
1869
|
+
}, Kt = ({ playerId: e, videoId: r, version: n, videoUrl: i, projectId: a, playlistId: t, scriptUrl: s, config: u = {}, isReels: f = !1, onPlaylistData: m, onVideoStarted: c, trackingMetadata: p, onPlayerStart: x, onPlayerPlay: g, onPlayerPause: E, onPlayerResume: h, onPlayerEnd: v, onPlayerProgressEvery10Seconds: w, onPlayerProgressAt20Seconds: b, onPlayerQuartile25: L, onPlayerQuartile50: F, onPlayerQuartile75: k, onPlayerNext: I, onPlayerPrevious: _, onPlayerEvent: J }) => {
|
|
1870
|
+
const W = K(null), P = K(null), y = K(!1), R = K(""), B = K([]), Y = K([]), M = K(null), { isLoaded: j, error: z } = Wt(n, s), O = r || Qt(s), [Q, U] = de(null), { fetchedPlaybackUrl: o, fetchedPlaylist: l, isLoading: d, error: $ } = Ht({
|
|
1871
1871
|
projectId: a,
|
|
1872
|
-
videoId:
|
|
1872
|
+
videoId: O,
|
|
1873
1873
|
playlistId: t,
|
|
1874
1874
|
videoUrl: i
|
|
1875
|
-
}), H =
|
|
1875
|
+
}), H = ur(e, O), [fe, V] = de(void 0);
|
|
1876
1876
|
Se(() => {
|
|
1877
|
-
|
|
1878
|
-
}, [
|
|
1877
|
+
l && m && m(l);
|
|
1878
|
+
}, [l, m]), Gt({
|
|
1879
1879
|
playerId: H,
|
|
1880
|
-
playerInstanceRef:
|
|
1881
|
-
playerRef:
|
|
1880
|
+
playerInstanceRef: P,
|
|
1881
|
+
playerRef: W,
|
|
1882
1882
|
videoData: fe,
|
|
1883
|
-
trackingMetadata:
|
|
1883
|
+
trackingMetadata: p,
|
|
1884
1884
|
callbacks: {
|
|
1885
|
-
onPlayerStart:
|
|
1885
|
+
onPlayerStart: x,
|
|
1886
1886
|
onPlayerPlay: g,
|
|
1887
|
-
onPlayerPause:
|
|
1887
|
+
onPlayerPause: E,
|
|
1888
1888
|
onPlayerResume: h,
|
|
1889
|
-
onPlayerEnd:
|
|
1890
|
-
onPlayerProgressEvery10Seconds:
|
|
1891
|
-
onPlayerProgressAt20Seconds:
|
|
1889
|
+
onPlayerEnd: v,
|
|
1890
|
+
onPlayerProgressEvery10Seconds: w,
|
|
1891
|
+
onPlayerProgressAt20Seconds: b,
|
|
1892
1892
|
onPlayerQuartile25: L,
|
|
1893
|
-
onPlayerQuartile50:
|
|
1894
|
-
onPlayerQuartile75:
|
|
1895
|
-
onPlayerNext:
|
|
1896
|
-
onPlayerPrevious:
|
|
1897
|
-
onPlayerEvent:
|
|
1893
|
+
onPlayerQuartile50: F,
|
|
1894
|
+
onPlayerQuartile75: k,
|
|
1895
|
+
onPlayerNext: I,
|
|
1896
|
+
onPlayerPrevious: _,
|
|
1897
|
+
onPlayerEvent: J
|
|
1898
1898
|
}
|
|
1899
1899
|
});
|
|
1900
|
-
const pe =
|
|
1901
|
-
const
|
|
1900
|
+
const pe = Pr(() => {
|
|
1901
|
+
const ne = u.config || {}, _e = f && !ne.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : ne.size || { sizeType: "FIXED", width: "100%" };
|
|
1902
1902
|
return {
|
|
1903
|
-
...
|
|
1903
|
+
...u,
|
|
1904
1904
|
config: {
|
|
1905
|
-
...
|
|
1906
|
-
size:
|
|
1905
|
+
...ne,
|
|
1906
|
+
size: _e
|
|
1907
1907
|
}
|
|
1908
1908
|
};
|
|
1909
|
-
}, [
|
|
1909
|
+
}, [u, f]);
|
|
1910
1910
|
return Se(() => {
|
|
1911
|
-
if (
|
|
1912
|
-
|
|
1911
|
+
if (z) {
|
|
1912
|
+
U(z);
|
|
1913
1913
|
return;
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1915
|
+
if (!j || d && !i)
|
|
1916
1916
|
return;
|
|
1917
|
-
let
|
|
1918
|
-
const
|
|
1917
|
+
let ne = !0;
|
|
1918
|
+
const De = setTimeout(async () => {
|
|
1919
1919
|
try {
|
|
1920
|
-
|
|
1921
|
-
const
|
|
1920
|
+
B.current.forEach((oe) => clearInterval(oe)), B.current = [], Y.current.forEach((oe) => clearTimeout(oe)), Y.current = [], M.current = null;
|
|
1921
|
+
const ue = (l == null ? void 0 : l.length) ?? 0, we = JSON.stringify({
|
|
1922
1922
|
playerId: H,
|
|
1923
|
-
videoId: r ||
|
|
1923
|
+
videoId: r || O,
|
|
1924
1924
|
playlistId: t,
|
|
1925
1925
|
videoUrl: i,
|
|
1926
1926
|
fetchedPlaybackUrl: o,
|
|
1927
1927
|
scriptUrl: s,
|
|
1928
|
-
isReels:
|
|
1928
|
+
isReels: f,
|
|
1929
1929
|
projectId: a,
|
|
1930
|
-
playlistLength:
|
|
1930
|
+
playlistLength: ue
|
|
1931
1931
|
});
|
|
1932
|
-
if (
|
|
1932
|
+
if (y.current && P.current && R.current === we)
|
|
1933
1933
|
return;
|
|
1934
|
-
|
|
1934
|
+
R.current !== we && (y.current = !1, R.current = we);
|
|
1935
1935
|
const ve = s == null ? void 0 : s.includes("vertical-player");
|
|
1936
1936
|
if (document.querySelectorAll('[id*="player"]').forEach((oe) => {
|
|
1937
|
-
var Pe,
|
|
1938
|
-
const
|
|
1939
|
-
if (
|
|
1937
|
+
var Pe, T;
|
|
1938
|
+
const be = oe.id;
|
|
1939
|
+
if (be !== H)
|
|
1940
1940
|
try {
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
} catch (
|
|
1944
|
-
console.warn(`Failed to destroy existing player ${
|
|
1941
|
+
const S = ve ? (Pe = window.vpVerticalPlayer) == null ? void 0 : Pe.call(window, be) : (T = window.vpPlayer) == null ? void 0 : T.call(window, be);
|
|
1942
|
+
S != null && S.destroy && S.destroy();
|
|
1943
|
+
} catch (S) {
|
|
1944
|
+
console.warn(`Failed to destroy existing player ${be}:`, S);
|
|
1945
1945
|
}
|
|
1946
|
-
}), await new Promise((oe) => setTimeout(oe, 100)), !
|
|
1946
|
+
}), await new Promise((oe) => setTimeout(oe, 100)), !ne || !W.current)
|
|
1947
1947
|
return;
|
|
1948
1948
|
if (!document.getElementById(H)) {
|
|
1949
|
-
|
|
1949
|
+
U("DOM element not found after cleanup.");
|
|
1950
1950
|
return;
|
|
1951
1951
|
}
|
|
1952
1952
|
if (!window.vpPlayer && !window.vpVerticalPlayer) {
|
|
1953
|
-
|
|
1953
|
+
U("VP Player script not loaded.");
|
|
1954
1954
|
return;
|
|
1955
1955
|
}
|
|
1956
|
-
const
|
|
1957
|
-
if (!
|
|
1958
|
-
|
|
1956
|
+
const ke = ve ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1957
|
+
if (!ke) {
|
|
1958
|
+
U(`VP ${ve ? "Vertical " : ""}Player script not loaded.`);
|
|
1959
1959
|
return;
|
|
1960
1960
|
}
|
|
1961
|
-
const ge =
|
|
1961
|
+
const ge = Jt({
|
|
1962
1962
|
videoUrl: i,
|
|
1963
1963
|
fetchedPlaybackUrl: o ?? void 0,
|
|
1964
|
-
fetchedPlaylist:
|
|
1964
|
+
fetchedPlaylist: l ?? void 0,
|
|
1965
1965
|
projectId: a,
|
|
1966
1966
|
config: pe,
|
|
1967
1967
|
isVerticalPlayer: ve
|
|
1968
1968
|
// Pass player type to config builder
|
|
1969
|
-
}), G =
|
|
1969
|
+
}), G = ke(H);
|
|
1970
1970
|
if (!G) {
|
|
1971
|
-
|
|
1971
|
+
U(`Failed to create VP ${ve ? "Vertical " : ""}Player instance.`);
|
|
1972
1972
|
return;
|
|
1973
1973
|
}
|
|
1974
|
-
if (
|
|
1974
|
+
if (ne && W.current && (G.setup(ge), P.current = G, y.current = !0, U(null), c && G.on)) {
|
|
1975
1975
|
const oe = () => {
|
|
1976
|
-
var
|
|
1977
|
-
const
|
|
1978
|
-
if ((
|
|
1979
|
-
const
|
|
1980
|
-
|
|
1981
|
-
} else ge.video && (
|
|
1982
|
-
return
|
|
1976
|
+
var S, N, ae;
|
|
1977
|
+
const T = {};
|
|
1978
|
+
if ((N = (S = ge.video) == null ? void 0 : S.playlist) != null && N.videos && ge.video.playlist.videos.length > 0) {
|
|
1979
|
+
const D = G.videoIndex ?? ((ae = G.playlist) == null ? void 0 : ae.playlistVideoIndex) ?? 0, q = ge.video.playlist.videos[D];
|
|
1980
|
+
q && (T.title = q.title, T.file = q.file || q.hlsUrl, T.hlsUrl = q.file || q.hlsUrl, T.thumbnailUrl = q.thumbnailUrl, T.duration = q.duration, T.videoIndex = D, T.playlistVideoIndex = D, T.videoId = q.videoId || q.mediaId, T.mediaId = q.mediaId || q.videoId);
|
|
1981
|
+
} else ge.video && (T.title = ge.video.title, T.file = ge.video.file, T.hlsUrl = ge.video.file, T.thumbnailUrl = ge.video.thumbnail, T.videoId = r || O, T.videoIndex = 0, T.playlistVideoIndex = 0, G.getDuration && (T.duration = G.getDuration()));
|
|
1982
|
+
return T;
|
|
1983
1983
|
};
|
|
1984
|
-
let
|
|
1984
|
+
let be = null;
|
|
1985
1985
|
const Pe = async () => {
|
|
1986
|
-
var
|
|
1986
|
+
var T;
|
|
1987
1987
|
try {
|
|
1988
|
-
|
|
1989
|
-
let
|
|
1990
|
-
const
|
|
1991
|
-
if (
|
|
1988
|
+
be && clearTimeout(be), await new Promise((D) => setTimeout(D, 100));
|
|
1989
|
+
let S = oe();
|
|
1990
|
+
const N = S.videoId || S.mediaId;
|
|
1991
|
+
if (N && N === M.current)
|
|
1992
1992
|
return;
|
|
1993
|
-
if (
|
|
1994
|
-
|
|
1995
|
-
}, 500), (s == null ? void 0 : s.includes("vertical-player")) &&
|
|
1993
|
+
if (be = window.setTimeout(() => {
|
|
1994
|
+
M.current = null;
|
|
1995
|
+
}, 500), (s == null ? void 0 : s.includes("vertical-player")) && N)
|
|
1996
1996
|
try {
|
|
1997
|
-
const Ee = `https://host.vpplayer.tech/player/ptkzurnx/${
|
|
1998
|
-
if (
|
|
1999
|
-
const
|
|
2000
|
-
|
|
2001
|
-
...
|
|
2002
|
-
title:
|
|
2003
|
-
description:
|
|
2004
|
-
publishDate:
|
|
2005
|
-
projectId:
|
|
2006
|
-
premium: ((
|
|
2007
|
-
author:
|
|
2008
|
-
tags:
|
|
1997
|
+
const Ee = `https://host.vpplayer.tech/player/ptkzurnx/${N}.json`, q = await fetch(Ee);
|
|
1998
|
+
if (q.ok) {
|
|
1999
|
+
const re = await q.json();
|
|
2000
|
+
re != null && re.video && (S = {
|
|
2001
|
+
...S,
|
|
2002
|
+
title: re.video.title || S.title,
|
|
2003
|
+
description: re.video.description,
|
|
2004
|
+
publishDate: re.video.publishDate,
|
|
2005
|
+
projectId: re.projectId || S.projectId,
|
|
2006
|
+
premium: ((T = re.video.videoLocking) == null ? void 0 : T.isEnabled) || !1,
|
|
2007
|
+
author: re.video.author,
|
|
2008
|
+
tags: re.video.tags || []
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
2011
|
} catch {
|
|
2012
2012
|
}
|
|
2013
|
-
|
|
2014
|
-
} catch (
|
|
2015
|
-
console.warn("Error in video-started handler:",
|
|
2013
|
+
M.current = N || null, V(S), c(S);
|
|
2014
|
+
} catch (S) {
|
|
2015
|
+
console.warn("Error in video-started handler:", S);
|
|
2016
2016
|
}
|
|
2017
2017
|
};
|
|
2018
2018
|
if (ve) {
|
|
2019
|
-
let
|
|
2020
|
-
const
|
|
2021
|
-
if (!
|
|
2022
|
-
|
|
2019
|
+
let T = !1, S = -1;
|
|
2020
|
+
const N = () => {
|
|
2021
|
+
if (!T) {
|
|
2022
|
+
T = !0;
|
|
2023
2023
|
try {
|
|
2024
2024
|
G.on && G.on("vp-video-started", Pe), setTimeout(() => {
|
|
2025
|
-
Pe(),
|
|
2025
|
+
Pe(), S = G.videoIndex ?? 0;
|
|
2026
2026
|
}, 500);
|
|
2027
|
-
} catch (
|
|
2028
|
-
console.error("Error setting up event listeners:",
|
|
2027
|
+
} catch (q) {
|
|
2028
|
+
console.error("Error setting up event listeners:", q);
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
2031
|
};
|
|
2032
|
-
let
|
|
2033
|
-
const
|
|
2032
|
+
let ae = 0;
|
|
2033
|
+
const D = 15, Ee = setInterval(() => {
|
|
2034
2034
|
try {
|
|
2035
|
-
const
|
|
2036
|
-
if (!
|
|
2037
|
-
|
|
2035
|
+
const q = G.videoIndex !== void 0 || G.playlist;
|
|
2036
|
+
if (!T)
|
|
2037
|
+
ae++, (q || ae >= D) && N();
|
|
2038
2038
|
else {
|
|
2039
|
-
const
|
|
2040
|
-
|
|
2039
|
+
const re = G.videoIndex ?? 0;
|
|
2040
|
+
re !== S && S !== -1 && (S = re, Pe());
|
|
2041
2041
|
}
|
|
2042
2042
|
} catch {
|
|
2043
2043
|
}
|
|
2044
2044
|
}, 200);
|
|
2045
|
-
|
|
2045
|
+
B.current.push(Ee);
|
|
2046
2046
|
try {
|
|
2047
|
-
G.on && G.on("vp-listen-ready",
|
|
2047
|
+
G.on && G.on("vp-listen-ready", N);
|
|
2048
2048
|
} catch {
|
|
2049
2049
|
}
|
|
2050
2050
|
} else {
|
|
2051
|
-
const
|
|
2052
|
-
var
|
|
2051
|
+
const T = async (S) => {
|
|
2052
|
+
var N, ae;
|
|
2053
2053
|
try {
|
|
2054
|
-
const
|
|
2055
|
-
if (!Ee || !
|
|
2054
|
+
const D = s == null ? void 0 : s.match(/player\/([^/.]+)/), Ee = D == null ? void 0 : D[1];
|
|
2055
|
+
if (!Ee || !S)
|
|
2056
2056
|
return oe();
|
|
2057
|
-
const
|
|
2058
|
-
if (!
|
|
2059
|
-
return console.warn("Failed to fetch full video config:",
|
|
2060
|
-
const
|
|
2061
|
-
return
|
|
2062
|
-
videoId:
|
|
2063
|
-
title:
|
|
2064
|
-
description:
|
|
2065
|
-
file:
|
|
2066
|
-
hlsUrl:
|
|
2067
|
-
thumbnailUrl:
|
|
2068
|
-
duration:
|
|
2069
|
-
publishDate:
|
|
2070
|
-
projectId:
|
|
2071
|
-
premium: ((
|
|
2072
|
-
author:
|
|
2073
|
-
tags:
|
|
2057
|
+
const q = `https://host.vpplayer.tech/player/${Ee}/${S}.json`, re = await fetch(q);
|
|
2058
|
+
if (!re.ok)
|
|
2059
|
+
return console.warn("Failed to fetch full video config:", re.status), oe();
|
|
2060
|
+
const se = await re.json();
|
|
2061
|
+
return se != null && se.video ? {
|
|
2062
|
+
videoId: S,
|
|
2063
|
+
title: se.video.title,
|
|
2064
|
+
description: se.video.description,
|
|
2065
|
+
file: se.video.file,
|
|
2066
|
+
hlsUrl: se.video.file,
|
|
2067
|
+
thumbnailUrl: se.video.thumbnail,
|
|
2068
|
+
duration: se.video.duration,
|
|
2069
|
+
publishDate: se.video.publishDate,
|
|
2070
|
+
projectId: se.projectId,
|
|
2071
|
+
premium: ((N = se.video.videoLocking) == null ? void 0 : N.isEnabled) || !1,
|
|
2072
|
+
author: se.video.author,
|
|
2073
|
+
tags: se.video.tags || [],
|
|
2074
2074
|
videoIndex: G.videoIndex ?? 0,
|
|
2075
|
-
playlistVideoIndex: ((
|
|
2076
|
-
};
|
|
2077
|
-
} catch (
|
|
2078
|
-
return console.warn("Error fetching full video data:",
|
|
2075
|
+
playlistVideoIndex: ((ae = G.playlist) == null ? void 0 : ae.playlistVideoIndex) ?? 0
|
|
2076
|
+
} : oe();
|
|
2077
|
+
} catch (D) {
|
|
2078
|
+
return console.warn("Error fetching full video data:", D), oe();
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
G.on("ready", async (
|
|
2081
|
+
G.on("ready", async (S) => {
|
|
2082
2082
|
try {
|
|
2083
|
-
const
|
|
2084
|
-
if (
|
|
2085
|
-
const
|
|
2086
|
-
V(
|
|
2083
|
+
const N = S, ae = (N == null ? void 0 : N.id) || r || O;
|
|
2084
|
+
if (ae) {
|
|
2085
|
+
const D = await T(ae);
|
|
2086
|
+
V(D), c(D);
|
|
2087
2087
|
} else {
|
|
2088
|
-
const
|
|
2089
|
-
(
|
|
2088
|
+
const D = oe();
|
|
2089
|
+
(D.title || D.file) && (V(D), c(D));
|
|
2090
2090
|
}
|
|
2091
|
-
} catch (
|
|
2092
|
-
console.warn("Error in ready handler:",
|
|
2091
|
+
} catch (N) {
|
|
2092
|
+
console.warn("Error in ready handler:", N);
|
|
2093
2093
|
}
|
|
2094
|
-
}), G.on("playlistItem", async (
|
|
2094
|
+
}), G.on("playlistItem", async (S) => {
|
|
2095
2095
|
try {
|
|
2096
|
-
const
|
|
2097
|
-
if (
|
|
2098
|
-
const
|
|
2099
|
-
V(
|
|
2096
|
+
const N = S, ae = N == null ? void 0 : N.id;
|
|
2097
|
+
if (ae) {
|
|
2098
|
+
const D = await T(ae);
|
|
2099
|
+
V(D), c(D);
|
|
2100
2100
|
}
|
|
2101
|
-
} catch (
|
|
2102
|
-
console.warn("Error in playlistItem handler:",
|
|
2101
|
+
} catch (N) {
|
|
2102
|
+
console.warn("Error in playlistItem handler:", N);
|
|
2103
2103
|
}
|
|
2104
2104
|
});
|
|
2105
2105
|
}
|
|
2106
2106
|
}
|
|
2107
|
-
} catch (
|
|
2108
|
-
if (
|
|
2109
|
-
const we =
|
|
2110
|
-
|
|
2107
|
+
} catch (ue) {
|
|
2108
|
+
if (ne) {
|
|
2109
|
+
const we = ue instanceof Error ? ue.message : String(ue);
|
|
2110
|
+
U(we), console.error("VP Player initialization error:", ue);
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
2113
|
}, 150);
|
|
2114
2114
|
return () => {
|
|
2115
|
-
|
|
2115
|
+
ne = !1, clearTimeout(De), B.current.forEach((ue) => clearInterval(ue)), B.current = [], Y.current.forEach((ue) => clearTimeout(ue)), Y.current = [], y.current = !1;
|
|
2116
2116
|
};
|
|
2117
|
-
}, [
|
|
2118
|
-
|
|
2119
|
-
R,
|
|
2120
|
-
H,
|
|
2121
|
-
q,
|
|
2122
|
-
s
|
|
2123
|
-
]), Se(() => () => {
|
|
2124
|
-
if (d.current) {
|
|
2117
|
+
}, [j, d, H, z, s]), Se(() => () => {
|
|
2118
|
+
if (P.current) {
|
|
2125
2119
|
try {
|
|
2126
|
-
|
|
2127
|
-
} catch (
|
|
2128
|
-
console.warn(`Failed to destroy player ${H}:`,
|
|
2120
|
+
P.current.destroy && P.current.destroy();
|
|
2121
|
+
} catch (_e) {
|
|
2122
|
+
console.warn(`Failed to destroy player ${H}:`, _e);
|
|
2129
2123
|
}
|
|
2130
|
-
|
|
2124
|
+
P.current = null;
|
|
2131
2125
|
}
|
|
2132
|
-
|
|
2133
|
-
const
|
|
2134
|
-
|
|
2126
|
+
y.current = !1;
|
|
2127
|
+
const ne = document.getElementById(H);
|
|
2128
|
+
ne && (ne.innerHTML = "");
|
|
2135
2129
|
}, [H]), {
|
|
2136
|
-
playerRef:
|
|
2137
|
-
playerInstanceRef:
|
|
2138
|
-
isScriptLoaded:
|
|
2139
|
-
isLoading:
|
|
2140
|
-
error:
|
|
2130
|
+
playerRef: W,
|
|
2131
|
+
playerInstanceRef: P,
|
|
2132
|
+
isScriptLoaded: j,
|
|
2133
|
+
isLoading: d,
|
|
2134
|
+
error: $ || Q || z
|
|
2141
2135
|
};
|
|
2142
|
-
},
|
|
2143
|
-
var
|
|
2144
|
-
const { playerRef:
|
|
2136
|
+
}, Zt = ({ playerId: e, videoId: r, version: n, videoUrl: i, projectId: a, playlistId: t, scriptUrl: s, config: u = {}, isReels: f = !1, hiddenClasses: m = [], onClose: c, className: p, onPlaylistData: x, onVideoStarted: g, trackingMetadata: E, onPlayerStart: h, onPlayerPlay: v, onPlayerPause: w, onPlayerResume: b, onPlayerEnd: L, onPlayerProgressEvery10Seconds: F, onPlayerProgressAt20Seconds: k, onPlayerQuartile25: I, onPlayerQuartile50: _, onPlayerQuartile75: J, onPlayerNext: W, onPlayerPrevious: P, onPlayerEvent: y }) => {
|
|
2137
|
+
var $, H, fe, V;
|
|
2138
|
+
const { playerRef: R, playerInstanceRef: B, isScriptLoaded: Y, isLoading: M, error: j } = Kt({
|
|
2145
2139
|
playerId: e,
|
|
2146
2140
|
videoId: r,
|
|
2147
2141
|
version: n,
|
|
@@ -2149,48 +2143,48 @@ const Nt = Ce.div`
|
|
|
2149
2143
|
projectId: a,
|
|
2150
2144
|
playlistId: t,
|
|
2151
2145
|
scriptUrl: s,
|
|
2152
|
-
config:
|
|
2153
|
-
isReels:
|
|
2154
|
-
onPlaylistData:
|
|
2146
|
+
config: u,
|
|
2147
|
+
isReels: f,
|
|
2148
|
+
onPlaylistData: x,
|
|
2155
2149
|
onVideoStarted: g,
|
|
2156
|
-
trackingMetadata:
|
|
2150
|
+
trackingMetadata: E,
|
|
2157
2151
|
onPlayerStart: h,
|
|
2158
|
-
onPlayerPlay:
|
|
2159
|
-
onPlayerPause:
|
|
2160
|
-
onPlayerResume:
|
|
2152
|
+
onPlayerPlay: v,
|
|
2153
|
+
onPlayerPause: w,
|
|
2154
|
+
onPlayerResume: b,
|
|
2161
2155
|
onPlayerEnd: L,
|
|
2162
|
-
onPlayerProgressEvery10Seconds:
|
|
2163
|
-
onPlayerProgressAt20Seconds:
|
|
2164
|
-
onPlayerQuartile25:
|
|
2165
|
-
onPlayerQuartile50:
|
|
2166
|
-
onPlayerQuartile75:
|
|
2167
|
-
onPlayerNext:
|
|
2168
|
-
onPlayerPrevious:
|
|
2169
|
-
onPlayerEvent:
|
|
2170
|
-
}), [
|
|
2171
|
-
var
|
|
2172
|
-
|
|
2173
|
-
}, o = (H = (
|
|
2174
|
-
return
|
|
2175
|
-
},
|
|
2176
|
-
const [r, n] = de(!1), [i, a] = de(null), [t, s] = de(null),
|
|
2156
|
+
onPlayerProgressEvery10Seconds: F,
|
|
2157
|
+
onPlayerProgressAt20Seconds: k,
|
|
2158
|
+
onPlayerQuartile25: I,
|
|
2159
|
+
onPlayerQuartile50: _,
|
|
2160
|
+
onPlayerQuartile75: J,
|
|
2161
|
+
onPlayerNext: W,
|
|
2162
|
+
onPlayerPrevious: P,
|
|
2163
|
+
onPlayerEvent: y
|
|
2164
|
+
}), [z, O] = de(!0), Q = () => f && O(!0), U = () => {
|
|
2165
|
+
var ee, pe;
|
|
2166
|
+
O(!1), (pe = (ee = B.current) == null ? void 0 : ee.play) == null || pe.call(ee), c == null || c();
|
|
2167
|
+
}, o = (H = ($ = u == null ? void 0 : u.config) == null ? void 0 : $.size) != null && H.width ? typeof u.config.size.width == "number" ? `${u.config.size.width}px` : u.config.size.width : void 0, l = (V = (fe = u == null ? void 0 : u.config) == null ? void 0 : fe.size) != null && V.height ? typeof u.config.size.height == "number" ? `${u.config.size.height}px` : u.config.size.height : void 0, d = ur(e, r);
|
|
2168
|
+
return j ? Z.jsxs(ar, { type: "error", children: ["An error occurred: ", j] }) : M || !Y ? Z.jsx(ar, { type: "loading", children: "Loading..." }) : Z.jsxs(Z.Fragment, { children: [f && !z ? Z.jsx("div", { onClick: Q }) : null, !f && Z.jsx("div", { children: Z.jsx(_r, { id: d, ref: R, width: o || "100%", height: l || "auto", $hiddenClasses: m, className: p }) }, d), f && z && Z.jsx(Mt, { onClick: U, className: p, children: Z.jsx(zt, { className: p, onClick: (ee) => ee.stopPropagation(), children: Z.jsx("div", { children: Z.jsx(_r, { id: d, ref: R, width: "100%", height: "auto", $hiddenClasses: m, className: p }) }, d) }) })] });
|
|
2169
|
+
}, $r = Dr(void 0), rn = ({ children: e }) => {
|
|
2170
|
+
const [r, n] = de(!1), [i, a] = de(null), [t, s] = de(null), u = cr((c) => {
|
|
2177
2171
|
try {
|
|
2178
|
-
const
|
|
2179
|
-
a({ ...
|
|
2172
|
+
const p = ur(c.playerId, c.videoId);
|
|
2173
|
+
a({ ...c, playerId: p }), n(!0), s(null);
|
|
2180
2174
|
} catch {
|
|
2181
2175
|
s("Failed to show player.");
|
|
2182
2176
|
}
|
|
2183
|
-
}, []),
|
|
2177
|
+
}, []), f = cr(() => {
|
|
2184
2178
|
n(!1), a(null), s(null);
|
|
2185
|
-
}, []), m =
|
|
2186
|
-
showPlayer:
|
|
2187
|
-
hidePlayer:
|
|
2179
|
+
}, []), m = Pr(() => ({
|
|
2180
|
+
showPlayer: u,
|
|
2181
|
+
hidePlayer: f,
|
|
2188
2182
|
isPlayerVisible: r,
|
|
2189
2183
|
playerParams: i
|
|
2190
|
-
}), [
|
|
2191
|
-
return
|
|
2184
|
+
}), [u, f, r, i]);
|
|
2185
|
+
return Z.jsxs($r.Provider, { value: m, children: [e, t && Z.jsx(ar, { type: "error", children: t }), r && (i == null ? void 0 : i.playerId) && Z.jsx(Zt, { playerId: i.playerId, videoId: i.videoId, projectId: i.projectId, videoUrl: i.videoUrl, version: i.version, playlistId: i.playlistId, scriptUrl: i.scriptUrl, config: i.config, isReels: i.isReels, thumbnailUrl: i.thumbnailUrl, onClose: f, hiddenClasses: i.hiddenClasses || [], className: i.className })] });
|
|
2192
2186
|
}, tn = () => {
|
|
2193
|
-
const e =
|
|
2187
|
+
const e = Er($r);
|
|
2194
2188
|
if (!e)
|
|
2195
2189
|
throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
2196
2190
|
return e;
|
|
@@ -2237,7 +2231,7 @@ const Nt = Ce.div`
|
|
|
2237
2231
|
autoplay: !0,
|
|
2238
2232
|
muted: !0
|
|
2239
2233
|
}
|
|
2240
|
-
},
|
|
2234
|
+
}, rr = {
|
|
2241
2235
|
video: {
|
|
2242
2236
|
advertising: !0,
|
|
2243
2237
|
ads: {
|
|
@@ -2251,11 +2245,11 @@ const Nt = Ce.div`
|
|
|
2251
2245
|
}, sn = (e, r, n = "time", i = 0) => {
|
|
2252
2246
|
var a;
|
|
2253
2247
|
return {
|
|
2254
|
-
...
|
|
2248
|
+
...rr,
|
|
2255
2249
|
video: {
|
|
2256
|
-
...
|
|
2250
|
+
...rr.video,
|
|
2257
2251
|
ads: {
|
|
2258
|
-
...(a =
|
|
2252
|
+
...(a = rr.video) == null ? void 0 : a.ads,
|
|
2259
2253
|
adBreaks: [
|
|
2260
2254
|
{
|
|
2261
2255
|
adTagUrl: r,
|
|
@@ -2273,23 +2267,23 @@ export {
|
|
|
2273
2267
|
pn as AD_TAG_SKIPPABLE_LINEAR_URL,
|
|
2274
2268
|
ln as BIG_BUCK_BUNNY_URL,
|
|
2275
2269
|
un as ELEPHANTS_DREAM_URL,
|
|
2276
|
-
|
|
2270
|
+
Mt as Overlay,
|
|
2277
2271
|
dn as PEXELS_THUMBNAIL_URL,
|
|
2278
2272
|
cn as PEXELS_VERTICAL_VIDEO_URL,
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2273
|
+
_r as PlayerContainer,
|
|
2274
|
+
zt as PlayerWrapper,
|
|
2275
|
+
Zt as VPPlayer,
|
|
2282
2276
|
rn as VPPlayerProvider,
|
|
2283
2277
|
an as baseConfig,
|
|
2284
|
-
|
|
2278
|
+
rr as baseConfigWithAds,
|
|
2285
2279
|
on as baseConfigWithAutoplay,
|
|
2286
|
-
|
|
2280
|
+
Jt as buildVPPlayerConfig,
|
|
2287
2281
|
nn as defaultVPPlayerConfig,
|
|
2288
|
-
|
|
2282
|
+
Qt as extractVideoId,
|
|
2289
2283
|
sn as getAdConfig,
|
|
2290
2284
|
tn as useVPPlayer,
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2285
|
+
Gt as useVPPlayerEvents,
|
|
2286
|
+
Kt as useVPPlayerLogic,
|
|
2287
|
+
Wt as useVPPlayerScript,
|
|
2288
|
+
Ht as useVideoData
|
|
2295
2289
|
};
|