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