@devix-technologies/react-gjirafa-vp-player 1.0.2 → 1.0.4
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/react-gjirafa-vp-player.es.js +751 -689
- package/dist/react-gjirafa-vp-player.umd.js +9 -9
- package/package.json +1 -1
- package/dist/App.d.ts +0 -2
- package/dist/components/Feedback.d.ts +0 -25
- package/dist/components/VPPlayer/index.d.ts +0 -2
- package/dist/components/VPPlayer/ui/index.d.ts +0 -1
- package/dist/components/VPPlayer/ui/styled.d.ts +0 -42
- package/dist/config/index.d.ts +0 -1
- package/dist/config/vpPlayerConfig.d.ts +0 -9
- package/dist/constants/configs.d.ts +0 -22
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/storybook.d.ts +0 -11
- package/dist/constants/styles.d.ts +0 -11
- package/dist/constants/urls.d.ts +0 -18
- package/dist/constants/vpPlayer.d.ts +0 -29
- package/dist/contexts/VPPlayerContext.d.ts +0 -53
- package/dist/contexts/index.d.ts +0 -1
- package/dist/features/VPPlayer.d.ts +0 -27
- package/dist/features/index.d.ts +0 -1
- package/dist/features/stories/ads/Ads.stories.d.ts +0 -13
- package/dist/features/stories/context/Context.stories.d.ts +0 -10
- package/dist/features/stories/index.d.ts +0 -3
- package/dist/features/stories/playback/Playback.stories.d.ts +0 -15
- package/dist/fixtures/index.d.ts +0 -1
- package/dist/fixtures/playlist.d.ts +0 -11
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/useVPPlayerLogic.d.ts +0 -16
- package/dist/hooks/useVPPlayerScript.d.ts +0 -13
- package/dist/hooks/useVideoData.d.ts +0 -21
- package/dist/index.d.ts +0 -2
- package/dist/interfaces/config.d.ts +0 -303
- package/dist/interfaces/index.d.ts +0 -3
- package/dist/interfaces/instance.d.ts +0 -11
- package/dist/interfaces/props.d.ts +0 -54
- package/dist/main.d.ts +0 -1
- package/dist/types/api.types.d.ts +0 -50
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/vpPlayerConfigBuilder.d.ts +0 -29
- package/dist/utils/vpPlayerUtils.d.ts +0 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
1
|
+
import * as K from "react";
|
|
2
|
+
import mt, { forwardRef as yt, useContext as et, useState as U, useEffect as xe, useRef as Me, useMemo as tt, createContext as gt, useCallback as ze } from "react";
|
|
3
|
+
var he = { exports: {} }, ie = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,29 +10,29 @@ var de = { exports: {} }, ae = {};
|
|
|
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
|
-
|
|
17
|
-
var e = Symbol.for("react.transitional.element"),
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
if (i !== void 0 && (
|
|
13
|
+
var De;
|
|
14
|
+
function vt() {
|
|
15
|
+
if (De) return ie;
|
|
16
|
+
De = 1;
|
|
17
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
|
+
function r(n, a, i) {
|
|
19
|
+
var s = null;
|
|
20
|
+
if (i !== void 0 && (s = "" + i), a.key !== void 0 && (s = "" + a.key), "key" in a) {
|
|
21
21
|
i = {};
|
|
22
|
-
for (var
|
|
23
|
-
|
|
22
|
+
for (var c in a)
|
|
23
|
+
c !== "key" && (i[c] = a[c]);
|
|
24
24
|
} else i = a;
|
|
25
25
|
return a = i.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
27
|
type: n,
|
|
28
|
-
key:
|
|
28
|
+
key: s,
|
|
29
29
|
ref: a !== void 0 ? a : null,
|
|
30
30
|
props: i
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return ie.Fragment = t, ie.jsx = r, ie.jsxs = r, ie;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var oe = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,26 +42,26 @@ var ie = {};
|
|
|
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 Ue;
|
|
46
|
+
function bt() {
|
|
47
|
+
return Ue || (Ue = 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 === $ ? null : o.displayName || o.name || null;
|
|
52
52
|
if (typeof o == "string") return o;
|
|
53
53
|
switch (o) {
|
|
54
54
|
case p:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case v:
|
|
57
57
|
return "Profiler";
|
|
58
58
|
case y:
|
|
59
59
|
return "StrictMode";
|
|
60
60
|
case E:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case S:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case F:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
@@ -70,16 +70,16 @@ function vr() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case x:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case _:
|
|
74
74
|
return (o.displayName || "Context") + ".Provider";
|
|
75
|
-
case
|
|
75
|
+
case b:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
-
case
|
|
77
|
+
case O:
|
|
78
78
|
var g = o.render;
|
|
79
79
|
return o = o.displayName, o || (o = g.displayName || g.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
-
case
|
|
80
|
+
case f:
|
|
81
81
|
return g = o.displayName || null, g !== null ? g : e(o.type) || "Memo";
|
|
82
|
-
case
|
|
82
|
+
case C:
|
|
83
83
|
g = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
85
|
return e(o(g));
|
|
@@ -88,29 +88,29 @@ function vr() {
|
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function t(o) {
|
|
92
92
|
return "" + o;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function r(o) {
|
|
95
95
|
try {
|
|
96
|
-
|
|
96
|
+
t(o);
|
|
97
97
|
var g = !1;
|
|
98
98
|
} catch {
|
|
99
99
|
g = !0;
|
|
100
100
|
}
|
|
101
101
|
if (g) {
|
|
102
102
|
g = console;
|
|
103
|
-
var R = g.error,
|
|
103
|
+
var R = g.error, A = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return R.call(
|
|
105
105
|
g,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
108
|
-
),
|
|
107
|
+
A
|
|
108
|
+
), t(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
function n(o) {
|
|
112
112
|
if (o === p) return "<>";
|
|
113
|
-
if (typeof o == "object" && o !== null && o.$$typeof ===
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === C)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
116
|
var g = e(o);
|
|
@@ -120,22 +120,22 @@ function vr() {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function a() {
|
|
123
|
-
var o =
|
|
123
|
+
var o = V.A;
|
|
124
124
|
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function i() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
129
|
+
function s(o) {
|
|
130
|
+
if (G.call(o, "key")) {
|
|
131
131
|
var g = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
132
|
if (g && g.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function c(o, g) {
|
|
137
137
|
function R() {
|
|
138
|
-
|
|
138
|
+
fe || (fe = !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
|
g
|
|
141
141
|
));
|
|
@@ -145,22 +145,22 @@ function vr() {
|
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function d() {
|
|
149
149
|
var o = e(this.type);
|
|
150
|
-
return
|
|
150
|
+
return J[o] || (J[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
|
-
return R =
|
|
154
|
+
function m(o, g, R, A, B, W, _e, Se) {
|
|
155
|
+
return R = W.ref, o = {
|
|
156
156
|
$$typeof: w,
|
|
157
157
|
type: o,
|
|
158
158
|
key: g,
|
|
159
|
-
props:
|
|
160
|
-
_owner:
|
|
159
|
+
props: W,
|
|
160
|
+
_owner: B
|
|
161
161
|
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(o, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
163
|
+
get: d
|
|
164
164
|
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
@@ -175,147 +175,147 @@ function vr() {
|
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
178
|
+
value: _e
|
|
179
179
|
}), Object.defineProperty(o, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
writable: !0,
|
|
183
|
-
value:
|
|
183
|
+
value: Se
|
|
184
184
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
185
185
|
}
|
|
186
|
-
function l(o, g, R,
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
for (
|
|
192
|
-
u(
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function l(o, g, R, A, B, W, _e, Se) {
|
|
187
|
+
var L = g.children;
|
|
188
|
+
if (L !== void 0)
|
|
189
|
+
if (A)
|
|
190
|
+
if (z(L)) {
|
|
191
|
+
for (A = 0; A < L.length; A++)
|
|
192
|
+
u(L[A]);
|
|
193
|
+
Object.freeze && Object.freeze(L);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else u(
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
return
|
|
198
|
+
else u(L);
|
|
199
|
+
if (G.call(g, "key")) {
|
|
200
|
+
L = e(o);
|
|
201
|
+
var Q = Object.keys(g).filter(function(ht) {
|
|
202
|
+
return ht !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
A = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", Z[L + A] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
208
208
|
React keys must be passed directly to JSX without using spread:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
),
|
|
211
|
+
A,
|
|
212
|
+
L,
|
|
213
|
+
Q,
|
|
214
|
+
L
|
|
215
|
+
), Z[L + A] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
217
|
+
if (L = null, R !== void 0 && (r(R), L = "" + R), s(g) && (r(g.key), L = "" + g.key), "key" in g) {
|
|
218
218
|
R = {};
|
|
219
|
-
for (var
|
|
220
|
-
|
|
219
|
+
for (var Re in g)
|
|
220
|
+
Re !== "key" && (R[Re] = g[Re]);
|
|
221
221
|
} else R = g;
|
|
222
|
-
return
|
|
222
|
+
return L && c(
|
|
223
223
|
R,
|
|
224
224
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
225
|
-
),
|
|
225
|
+
), m(
|
|
226
226
|
o,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
227
|
+
L,
|
|
228
|
+
W,
|
|
229
|
+
B,
|
|
230
230
|
a(),
|
|
231
231
|
R,
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
_e,
|
|
233
|
+
Se
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
236
|
function u(o) {
|
|
237
237
|
typeof o == "object" && o !== null && o.$$typeof === w && o._store && (o._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var
|
|
239
|
+
var h = mt, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), S = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), $ = Symbol.for("react.client.reference"), V = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, z = Array.isArray, X = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
|
-
|
|
242
|
+
h = {
|
|
243
243
|
"react-stack-bottom-frame": function(o) {
|
|
244
244
|
return o();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
248
|
-
|
|
247
|
+
var fe, J = {}, ae = h["react-stack-bottom-frame"].bind(
|
|
248
|
+
h,
|
|
249
249
|
i
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
250
|
+
)(), pe = X(n(i)), Z = {};
|
|
251
|
+
oe.Fragment = p, oe.jsx = function(o, g, R, A, B) {
|
|
252
|
+
var W = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return l(
|
|
254
254
|
o,
|
|
255
255
|
g,
|
|
256
256
|
R,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
A,
|
|
259
|
+
B,
|
|
260
|
+
W ? Error("react-stack-top-frame") : ae,
|
|
261
|
+
W ? X(n(o)) : pe
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
263
|
+
}, oe.jsxs = function(o, g, R, A, B) {
|
|
264
|
+
var W = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return l(
|
|
266
266
|
o,
|
|
267
267
|
g,
|
|
268
268
|
R,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
A,
|
|
271
|
+
B,
|
|
272
|
+
W ? Error("react-stack-top-frame") : ae,
|
|
273
|
+
W ? X(n(o)) : pe
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
276
|
+
}()), oe;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
278
|
+
var We;
|
|
279
|
+
function xt() {
|
|
280
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? he.exports = vt() : he.exports = bt()), he.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
return
|
|
285
|
-
for (var
|
|
286
|
-
var
|
|
287
|
-
for (var n in
|
|
282
|
+
var I = xt();
|
|
283
|
+
function Ie() {
|
|
284
|
+
return Ie = Object.assign ? Object.assign.bind() : function(e) {
|
|
285
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
286
|
+
var r = arguments[t];
|
|
287
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
288
288
|
}
|
|
289
289
|
return e;
|
|
290
|
-
},
|
|
290
|
+
}, Ie.apply(null, arguments);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function wt(e) {
|
|
293
293
|
if (e.sheet)
|
|
294
294
|
return e.sheet;
|
|
295
|
-
for (var
|
|
296
|
-
if (document.styleSheets[
|
|
297
|
-
return document.styleSheets[
|
|
295
|
+
for (var t = 0; t < document.styleSheets.length; t++)
|
|
296
|
+
if (document.styleSheets[t].ownerNode === e)
|
|
297
|
+
return document.styleSheets[t];
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
var
|
|
301
|
-
return
|
|
299
|
+
function kt(e) {
|
|
300
|
+
var t = document.createElement("style");
|
|
301
|
+
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
302
302
|
}
|
|
303
|
-
var
|
|
304
|
-
function e(
|
|
303
|
+
var Pt = /* @__PURE__ */ function() {
|
|
304
|
+
function e(r) {
|
|
305
305
|
var n = this;
|
|
306
306
|
this._insertTag = function(a) {
|
|
307
307
|
var i;
|
|
308
308
|
n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, i), n.tags.push(a);
|
|
309
|
-
}, this.isSpeedy =
|
|
309
|
+
}, this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy, this.tags = [], this.ctr = 0, this.nonce = r.nonce, this.key = r.key, this.container = r.container, this.prepend = r.prepend, this.insertionPoint = r.insertionPoint, this.before = null;
|
|
310
310
|
}
|
|
311
|
-
var
|
|
312
|
-
return
|
|
311
|
+
var t = e.prototype;
|
|
312
|
+
return t.hydrate = function(n) {
|
|
313
313
|
n.forEach(this._insertTag);
|
|
314
|
-
},
|
|
315
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
314
|
+
}, t.insert = function(n) {
|
|
315
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(kt(this));
|
|
316
316
|
var a = this.tags[this.tags.length - 1];
|
|
317
317
|
if (this.isSpeedy) {
|
|
318
|
-
var i =
|
|
318
|
+
var i = wt(a);
|
|
319
319
|
try {
|
|
320
320
|
i.insertRule(n, i.cssRules.length);
|
|
321
321
|
} catch {
|
|
@@ -323,70 +323,70 @@ var Pr = /* @__PURE__ */ function() {
|
|
|
323
323
|
} else
|
|
324
324
|
a.appendChild(document.createTextNode(n));
|
|
325
325
|
this.ctr++;
|
|
326
|
-
},
|
|
326
|
+
}, t.flush = function() {
|
|
327
327
|
this.tags.forEach(function(n) {
|
|
328
328
|
var a;
|
|
329
329
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
330
330
|
}), this.tags = [], this.ctr = 0;
|
|
331
331
|
}, e;
|
|
332
|
-
}(), N = "-ms-",
|
|
333
|
-
function
|
|
334
|
-
return
|
|
332
|
+
}(), N = "-ms-", we = "-moz-", k = "-webkit-", rt = "comm", Ne = "rule", Fe = "decl", Et = "@import", nt = "@keyframes", _t = "@layer", St = Math.abs, ke = String.fromCharCode, Rt = Object.assign;
|
|
333
|
+
function At(e, t) {
|
|
334
|
+
return j(e, 0) ^ 45 ? (((t << 2 ^ j(e, 0)) << 2 ^ j(e, 1)) << 2 ^ j(e, 2)) << 2 ^ j(e, 3) : 0;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function at(e) {
|
|
337
337
|
return e.trim();
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return (e =
|
|
339
|
+
function Ct(e, t) {
|
|
340
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
341
341
|
}
|
|
342
|
-
function P(e,
|
|
343
|
-
return e.replace(
|
|
342
|
+
function P(e, t, r) {
|
|
343
|
+
return e.replace(t, r);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
return e.indexOf(
|
|
345
|
+
function $e(e, t) {
|
|
346
|
+
return e.indexOf(t);
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return e.charCodeAt(
|
|
348
|
+
function j(e, t) {
|
|
349
|
+
return e.charCodeAt(t) | 0;
|
|
350
350
|
}
|
|
351
|
-
function ce(e,
|
|
352
|
-
return e.slice(
|
|
351
|
+
function ce(e, t, r) {
|
|
352
|
+
return e.slice(t, r);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Y(e) {
|
|
355
355
|
return e.length;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ve(e) {
|
|
358
358
|
return e.length;
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
return
|
|
360
|
+
function me(e, t) {
|
|
361
|
+
return t.push(e), e;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
return e.map(
|
|
363
|
+
function Tt(e, t) {
|
|
364
|
+
return e.map(t).join("");
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
368
|
-
return { value: e, root:
|
|
366
|
+
var Pe = 1, te = 1, it = 0, M = 0, T = 0, ne = "";
|
|
367
|
+
function Ee(e, t, r, n, a, i, s) {
|
|
368
|
+
return { value: e, root: t, parent: r, type: n, props: a, children: i, line: Pe, column: te, length: s, return: "" };
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
return
|
|
370
|
+
function se(e, t) {
|
|
371
|
+
return Rt(Ee("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
373
|
+
function Ot() {
|
|
374
|
+
return T;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return
|
|
376
|
+
function It() {
|
|
377
|
+
return T = M > 0 ? j(ne, --M) : 0, te--, T === 10 && (te = 1, Pe--), T;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
379
|
+
function D() {
|
|
380
|
+
return T = M < it ? j(ne, M++) : 0, te++, T === 10 && (te = 1, Pe++), T;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
383
|
-
return
|
|
382
|
+
function H() {
|
|
383
|
+
return j(ne, M);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
385
|
+
function ge() {
|
|
386
|
+
return M;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
return ce(
|
|
388
|
+
function de(e, t) {
|
|
389
|
+
return ce(ne, e, t);
|
|
390
390
|
}
|
|
391
391
|
function le(e) {
|
|
392
392
|
switch (e) {
|
|
@@ -426,269 +426,269 @@ function le(e) {
|
|
|
426
426
|
}
|
|
427
427
|
return 0;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
return
|
|
429
|
+
function ot(e) {
|
|
430
|
+
return Pe = te = 1, it = Y(ne = e), M = 0, [];
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return
|
|
432
|
+
function st(e) {
|
|
433
|
+
return ne = "", e;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
return
|
|
435
|
+
function ve(e) {
|
|
436
|
+
return at(de(M - 1, je(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
437
437
|
}
|
|
438
|
-
function $
|
|
439
|
-
for (; (
|
|
440
|
-
|
|
441
|
-
return le(e) > 2 || le(
|
|
438
|
+
function $t(e) {
|
|
439
|
+
for (; (T = H()) && T < 33; )
|
|
440
|
+
D();
|
|
441
|
+
return le(e) > 2 || le(T) > 3 ? "" : " ";
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
for (; --
|
|
443
|
+
function jt(e, t) {
|
|
444
|
+
for (; --t && D() && !(T < 48 || T > 102 || T > 57 && T < 65 || T > 70 && T < 97); )
|
|
445
445
|
;
|
|
446
|
-
return
|
|
446
|
+
return de(e, ge() + (t < 6 && H() == 32 && D() == 32));
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
for (;
|
|
450
|
-
switch (
|
|
448
|
+
function je(e) {
|
|
449
|
+
for (; D(); )
|
|
450
|
+
switch (T) {
|
|
451
451
|
// ] ) " '
|
|
452
452
|
case e:
|
|
453
|
-
return
|
|
453
|
+
return M;
|
|
454
454
|
// " '
|
|
455
455
|
case 34:
|
|
456
456
|
case 39:
|
|
457
|
-
e !== 34 && e !== 39 &&
|
|
457
|
+
e !== 34 && e !== 39 && je(T);
|
|
458
458
|
break;
|
|
459
459
|
// (
|
|
460
460
|
case 40:
|
|
461
|
-
e === 41 &&
|
|
461
|
+
e === 41 && je(e);
|
|
462
462
|
break;
|
|
463
463
|
// \
|
|
464
464
|
case 92:
|
|
465
|
-
|
|
465
|
+
D();
|
|
466
466
|
break;
|
|
467
467
|
}
|
|
468
|
-
return
|
|
468
|
+
return M;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
for (;
|
|
472
|
-
if (e +
|
|
470
|
+
function Lt(e, t) {
|
|
471
|
+
for (; D() && e + T !== 57; )
|
|
472
|
+
if (e + T === 84 && H() === 47)
|
|
473
473
|
break;
|
|
474
|
-
return "/*" +
|
|
474
|
+
return "/*" + de(t, M - 1) + "*" + ke(e === 47 ? e : D());
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
for (; !le(
|
|
478
|
-
|
|
479
|
-
return
|
|
476
|
+
function Nt(e) {
|
|
477
|
+
for (; !le(H()); )
|
|
478
|
+
D();
|
|
479
|
+
return de(e, M);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
return
|
|
481
|
+
function Ft(e) {
|
|
482
|
+
return st(be("", null, null, null, [""], e = ot(e), 0, [0], e));
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
for (var
|
|
486
|
-
switch (x =
|
|
484
|
+
function be(e, t, r, n, a, i, s, c, d) {
|
|
485
|
+
for (var m = 0, l = 0, u = s, h = 0, w = 0, x = 0, p = 1, y = 1, v = 1, b = 0, _ = "", O = a, E = i, S = n, f = _; y; )
|
|
486
|
+
switch (x = b, b = D()) {
|
|
487
487
|
// (
|
|
488
488
|
case 40:
|
|
489
|
-
if (x != 108 &&
|
|
490
|
-
|
|
489
|
+
if (x != 108 && j(f, u - 1) == 58) {
|
|
490
|
+
$e(f += P(ve(b), "&", "&\f"), "&\f") != -1 && (v = -1);
|
|
491
491
|
break;
|
|
492
492
|
}
|
|
493
493
|
// " ' [
|
|
494
494
|
case 34:
|
|
495
495
|
case 39:
|
|
496
496
|
case 91:
|
|
497
|
-
|
|
497
|
+
f += ve(b);
|
|
498
498
|
break;
|
|
499
499
|
// \t \n \r \s
|
|
500
500
|
case 9:
|
|
501
501
|
case 10:
|
|
502
502
|
case 13:
|
|
503
503
|
case 32:
|
|
504
|
-
|
|
504
|
+
f += $t(x);
|
|
505
505
|
break;
|
|
506
506
|
// \
|
|
507
507
|
case 92:
|
|
508
|
-
|
|
508
|
+
f += jt(ge() - 1, 7);
|
|
509
509
|
continue;
|
|
510
510
|
// /
|
|
511
511
|
case 47:
|
|
512
|
-
switch (
|
|
512
|
+
switch (H()) {
|
|
513
513
|
case 42:
|
|
514
514
|
case 47:
|
|
515
|
-
|
|
515
|
+
me(Vt(Lt(D(), ge()), t, r), d);
|
|
516
516
|
break;
|
|
517
517
|
default:
|
|
518
|
-
|
|
518
|
+
f += "/";
|
|
519
519
|
}
|
|
520
520
|
break;
|
|
521
521
|
// {
|
|
522
522
|
case 123 * p:
|
|
523
|
-
|
|
523
|
+
c[m++] = Y(f) * v;
|
|
524
524
|
// } ; \0
|
|
525
525
|
case 125 * p:
|
|
526
526
|
case 59:
|
|
527
527
|
case 0:
|
|
528
|
-
switch (
|
|
528
|
+
switch (b) {
|
|
529
529
|
// \0 }
|
|
530
530
|
case 0:
|
|
531
531
|
case 125:
|
|
532
532
|
y = 0;
|
|
533
533
|
// ;
|
|
534
534
|
case 59 + l:
|
|
535
|
-
|
|
535
|
+
v == -1 && (f = P(f, /\f/g, "")), w > 0 && Y(f) - u && me(w > 32 ? qe(f + ";", n, r, u - 1) : qe(P(f, " ", "") + ";", n, r, u - 2), d);
|
|
536
536
|
break;
|
|
537
537
|
// @ ;
|
|
538
538
|
case 59:
|
|
539
|
-
|
|
539
|
+
f += ";";
|
|
540
540
|
// { rule/at-rule
|
|
541
541
|
default:
|
|
542
|
-
if (
|
|
542
|
+
if (me(S = Ye(f, t, r, m, l, a, c, _, O = [], E = [], u), i), b === 123)
|
|
543
543
|
if (l === 0)
|
|
544
|
-
|
|
544
|
+
be(f, t, S, S, O, i, u, c, E);
|
|
545
545
|
else
|
|
546
|
-
switch (
|
|
546
|
+
switch (h === 99 && j(f, 3) === 110 ? 100 : h) {
|
|
547
547
|
// d l m s
|
|
548
548
|
case 100:
|
|
549
549
|
case 108:
|
|
550
550
|
case 109:
|
|
551
551
|
case 115:
|
|
552
|
-
|
|
552
|
+
be(e, S, S, n && me(Ye(e, S, S, 0, 0, a, c, _, a, O = [], u), E), a, E, u, c, n ? O : E);
|
|
553
553
|
break;
|
|
554
554
|
default:
|
|
555
|
-
|
|
555
|
+
be(f, S, S, S, [""], E, 0, c, E);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
|
|
558
|
+
m = l = w = 0, p = v = 1, _ = f = "", u = s;
|
|
559
559
|
break;
|
|
560
560
|
// :
|
|
561
561
|
case 58:
|
|
562
|
-
u = 1 +
|
|
562
|
+
u = 1 + Y(f), w = x;
|
|
563
563
|
default:
|
|
564
564
|
if (p < 1) {
|
|
565
|
-
if (
|
|
565
|
+
if (b == 123)
|
|
566
566
|
--p;
|
|
567
|
-
else if (
|
|
567
|
+
else if (b == 125 && p++ == 0 && It() == 125)
|
|
568
568
|
continue;
|
|
569
569
|
}
|
|
570
|
-
switch (
|
|
570
|
+
switch (f += ke(b), b * p) {
|
|
571
571
|
// &
|
|
572
572
|
case 38:
|
|
573
|
-
|
|
573
|
+
v = l > 0 ? 1 : (f += "\f", -1);
|
|
574
574
|
break;
|
|
575
575
|
// ,
|
|
576
576
|
case 44:
|
|
577
|
-
|
|
577
|
+
c[m++] = (Y(f) - 1) * v, v = 1;
|
|
578
578
|
break;
|
|
579
579
|
// @
|
|
580
580
|
case 64:
|
|
581
|
-
|
|
581
|
+
H() === 45 && (f += ve(D())), h = H(), l = u = Y(_ = f += Nt(ge())), b++;
|
|
582
582
|
break;
|
|
583
583
|
// -
|
|
584
584
|
case 45:
|
|
585
|
-
x === 45 &&
|
|
585
|
+
x === 45 && Y(f) == 2 && (p = 0);
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
return i;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
for (var u = a - 1,
|
|
592
|
-
for (var
|
|
593
|
-
(
|
|
594
|
-
return
|
|
590
|
+
function Ye(e, t, r, n, a, i, s, c, d, m, l) {
|
|
591
|
+
for (var u = a - 1, h = a === 0 ? i : [""], w = Ve(h), x = 0, p = 0, y = 0; x < n; ++x)
|
|
592
|
+
for (var v = 0, b = ce(e, u + 1, u = St(p = s[x])), _ = e; v < w; ++v)
|
|
593
|
+
(_ = at(p > 0 ? h[v] + " " + b : P(b, /&\f/g, h[v]))) && (d[y++] = _);
|
|
594
|
+
return Ee(e, t, r, a === 0 ? Ne : c, d, m, l);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
596
|
+
function Vt(e, t, r) {
|
|
597
|
+
return Ee(e, t, r, rt, ke(Ot()), ce(e, 2, -2), 0);
|
|
598
598
|
}
|
|
599
|
-
function
|
|
600
|
-
return
|
|
599
|
+
function qe(e, t, r, n) {
|
|
600
|
+
return Ee(e, t, r, Fe, ce(e, 0, n), ce(e, n + 1, -1), n);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
for (var
|
|
604
|
-
|
|
605
|
-
return
|
|
602
|
+
function ee(e, t) {
|
|
603
|
+
for (var r = "", n = Ve(e), a = 0; a < n; a++)
|
|
604
|
+
r += t(e[a], a, e, t) || "";
|
|
605
|
+
return r;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Bt(e, t, r, n) {
|
|
608
608
|
switch (e.type) {
|
|
609
|
-
case
|
|
609
|
+
case _t:
|
|
610
610
|
if (e.children.length) break;
|
|
611
|
-
case
|
|
612
|
-
case
|
|
611
|
+
case Et:
|
|
612
|
+
case Fe:
|
|
613
613
|
return e.return = e.return || e.value;
|
|
614
|
-
case
|
|
614
|
+
case rt:
|
|
615
615
|
return "";
|
|
616
|
-
case
|
|
617
|
-
return e.return = e.value + "{" +
|
|
618
|
-
case
|
|
616
|
+
case nt:
|
|
617
|
+
return e.return = e.value + "{" + ee(e.children, n) + "}";
|
|
618
|
+
case Ne:
|
|
619
619
|
e.value = e.props.join(",");
|
|
620
620
|
}
|
|
621
|
-
return
|
|
621
|
+
return Y(r = ee(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
var
|
|
625
|
-
return function(
|
|
626
|
-
for (var
|
|
627
|
-
|
|
628
|
-
return
|
|
623
|
+
function Mt(e) {
|
|
624
|
+
var t = Ve(e);
|
|
625
|
+
return function(r, n, a, i) {
|
|
626
|
+
for (var s = "", c = 0; c < t; c++)
|
|
627
|
+
s += e[c](r, n, a, i) || "";
|
|
628
|
+
return s;
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
return function(
|
|
633
|
-
|
|
631
|
+
function zt(e) {
|
|
632
|
+
return function(t) {
|
|
633
|
+
t.root || (t = t.return) && e(t);
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
var
|
|
638
|
-
return function(
|
|
639
|
-
return r
|
|
636
|
+
function ct(e) {
|
|
637
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
638
|
+
return function(r) {
|
|
639
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
for (var a = 0, i = 0; a = i, i =
|
|
644
|
-
|
|
645
|
-
return
|
|
646
|
-
},
|
|
642
|
+
var Dt = function(t, r, n) {
|
|
643
|
+
for (var a = 0, i = 0; a = i, i = H(), a === 38 && i === 12 && (r[n] = 1), !le(i); )
|
|
644
|
+
D();
|
|
645
|
+
return de(t, M);
|
|
646
|
+
}, Ut = function(t, r) {
|
|
647
647
|
var n = -1, a = 44;
|
|
648
648
|
do
|
|
649
649
|
switch (le(a)) {
|
|
650
650
|
case 0:
|
|
651
|
-
a === 38 &&
|
|
651
|
+
a === 38 && H() === 12 && (r[n] = 1), t[n] += Dt(M - 1, r, n);
|
|
652
652
|
break;
|
|
653
653
|
case 2:
|
|
654
|
-
|
|
654
|
+
t[n] += ve(a);
|
|
655
655
|
break;
|
|
656
656
|
case 4:
|
|
657
657
|
if (a === 44) {
|
|
658
|
-
|
|
658
|
+
t[++n] = H() === 58 ? "&\f" : "", r[n] = t[n].length;
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
// fallthrough
|
|
662
662
|
default:
|
|
663
|
-
|
|
663
|
+
t[n] += ke(a);
|
|
664
664
|
}
|
|
665
|
-
while (a =
|
|
666
|
-
return
|
|
667
|
-
},
|
|
668
|
-
return
|
|
669
|
-
},
|
|
670
|
-
if (!(
|
|
665
|
+
while (a = D());
|
|
666
|
+
return t;
|
|
667
|
+
}, Wt = function(t, r) {
|
|
668
|
+
return st(Ut(ot(t), r));
|
|
669
|
+
}, He = /* @__PURE__ */ new WeakMap(), Yt = function(t) {
|
|
670
|
+
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
671
671
|
// negative .length indicates that this rule has been already prefixed
|
|
672
|
-
|
|
673
|
-
for (var
|
|
672
|
+
t.length < 1)) {
|
|
673
|
+
for (var r = t.value, n = t.parent, a = t.column === n.column && t.line === n.line; n.type !== "rule"; )
|
|
674
674
|
if (n = n.parent, !n) return;
|
|
675
|
-
if (!(
|
|
676
|
-
|
|
677
|
-
for (var i = [],
|
|
678
|
-
for (var l = 0; l <
|
|
679
|
-
|
|
675
|
+
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !He.get(n)) && !a) {
|
|
676
|
+
He.set(t, !0);
|
|
677
|
+
for (var i = [], s = Wt(r, i), c = n.props, d = 0, m = 0; d < s.length; d++)
|
|
678
|
+
for (var l = 0; l < c.length; l++, m++)
|
|
679
|
+
t.props[m] = i[d] ? s[d].replace(/&\f/g, c[l]) : c[l] + " " + s[d];
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
|
-
},
|
|
683
|
-
if (
|
|
684
|
-
var
|
|
682
|
+
}, qt = function(t) {
|
|
683
|
+
if (t.type === "decl") {
|
|
684
|
+
var r = t.value;
|
|
685
685
|
// charcode for l
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
r.charCodeAt(0) === 108 && // charcode for b
|
|
687
|
+
r.charCodeAt(2) === 98 && (t.return = "", t.value = "");
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
|
-
function
|
|
691
|
-
switch (
|
|
690
|
+
function lt(e, t) {
|
|
691
|
+
switch (At(e, t)) {
|
|
692
692
|
// color-adjust
|
|
693
693
|
case 5103:
|
|
694
694
|
return k + "print-" + e + e;
|
|
@@ -728,7 +728,7 @@ function lr(e, r) {
|
|
|
728
728
|
case 4810:
|
|
729
729
|
case 6968:
|
|
730
730
|
case 2756:
|
|
731
|
-
return k + e +
|
|
731
|
+
return k + e + we + e + N + e + e;
|
|
732
732
|
// flex, flex-direction
|
|
733
733
|
case 6828:
|
|
734
734
|
case 4268:
|
|
@@ -786,35 +786,35 @@ function lr(e, r) {
|
|
|
786
786
|
case 5789:
|
|
787
787
|
case 5021:
|
|
788
788
|
case 4765:
|
|
789
|
-
if (
|
|
789
|
+
if (Y(e) - 1 - t > 6) switch (j(e, t + 1)) {
|
|
790
790
|
// (m)ax-content, (m)in-content
|
|
791
791
|
case 109:
|
|
792
|
-
if (
|
|
792
|
+
if (j(e, t + 4) !== 45) break;
|
|
793
793
|
// (f)ill-available, (f)it-content
|
|
794
794
|
case 102:
|
|
795
|
-
return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" +
|
|
795
|
+
return P(e, /(.+:)(.+)-([^]+)/, "$1" + k + "$2-$3$1" + we + (j(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
796
796
|
// (s)tretch
|
|
797
797
|
case 115:
|
|
798
|
-
return
|
|
798
|
+
return ~$e(e, "stretch") ? lt(P(e, "stretch", "fill-available"), t) + e : e;
|
|
799
799
|
}
|
|
800
800
|
break;
|
|
801
801
|
// position: sticky
|
|
802
802
|
case 4949:
|
|
803
|
-
if (
|
|
803
|
+
if (j(e, t + 1) !== 115) break;
|
|
804
804
|
// display: (flex|inline-flex)
|
|
805
805
|
case 6444:
|
|
806
|
-
switch (
|
|
806
|
+
switch (j(e, Y(e) - 3 - (~$e(e, "!important") && 10))) {
|
|
807
807
|
// stic(k)y
|
|
808
808
|
case 107:
|
|
809
809
|
return P(e, ":", ":" + k) + e;
|
|
810
810
|
// (inline-)?fl(e)x
|
|
811
811
|
case 101:
|
|
812
|
-
return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (
|
|
812
|
+
return P(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + k + (j(e, 14) === 45 ? "inline-" : "") + "box$3$1" + k + "$2$3$1" + N + "$2box$3") + e;
|
|
813
813
|
}
|
|
814
814
|
break;
|
|
815
815
|
// writing-mode
|
|
816
816
|
case 5936:
|
|
817
|
-
switch (
|
|
817
|
+
switch (j(e, t + 11)) {
|
|
818
818
|
// vertical-l(r)
|
|
819
819
|
case 114:
|
|
820
820
|
return k + e + N + P(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
@@ -829,93 +829,93 @@ function lr(e, r) {
|
|
|
829
829
|
}
|
|
830
830
|
return e;
|
|
831
831
|
}
|
|
832
|
-
var
|
|
833
|
-
if (
|
|
834
|
-
case
|
|
835
|
-
|
|
832
|
+
var Ht = function(t, r, n, a) {
|
|
833
|
+
if (t.length > -1 && !t.return) switch (t.type) {
|
|
834
|
+
case Fe:
|
|
835
|
+
t.return = lt(t.value, t.length);
|
|
836
836
|
break;
|
|
837
|
-
case
|
|
838
|
-
return
|
|
839
|
-
value: P(
|
|
837
|
+
case nt:
|
|
838
|
+
return ee([se(t, {
|
|
839
|
+
value: P(t.value, "@", "@" + k)
|
|
840
840
|
})], a);
|
|
841
|
-
case
|
|
842
|
-
if (
|
|
843
|
-
switch (
|
|
841
|
+
case Ne:
|
|
842
|
+
if (t.length) return Tt(t.props, function(i) {
|
|
843
|
+
switch (Ct(i, /(::plac\w+|:read-\w+)/)) {
|
|
844
844
|
// :read-(only|write)
|
|
845
845
|
case ":read-only":
|
|
846
846
|
case ":read-write":
|
|
847
|
-
return
|
|
848
|
-
props: [P(i, /:(read-\w+)/, ":" +
|
|
847
|
+
return ee([se(t, {
|
|
848
|
+
props: [P(i, /:(read-\w+)/, ":" + we + "$1")]
|
|
849
849
|
})], a);
|
|
850
850
|
// :placeholder
|
|
851
851
|
case "::placeholder":
|
|
852
|
-
return
|
|
852
|
+
return ee([se(t, {
|
|
853
853
|
props: [P(i, /:(plac\w+)/, ":" + k + "input-$1")]
|
|
854
|
-
}),
|
|
855
|
-
props: [P(i, /:(plac\w+)/, ":" +
|
|
856
|
-
}),
|
|
854
|
+
}), se(t, {
|
|
855
|
+
props: [P(i, /:(plac\w+)/, ":" + we + "$1")]
|
|
856
|
+
}), se(t, {
|
|
857
857
|
props: [P(i, /:(plac\w+)/, N + "input-$1")]
|
|
858
858
|
})], a);
|
|
859
859
|
}
|
|
860
860
|
return "";
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
},
|
|
864
|
-
var
|
|
865
|
-
if (
|
|
863
|
+
}, Gt = [Ht], Xt = function(t) {
|
|
864
|
+
var r = t.key;
|
|
865
|
+
if (r === "css") {
|
|
866
866
|
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
867
867
|
Array.prototype.forEach.call(n, function(p) {
|
|
868
868
|
var y = p.getAttribute("data-emotion");
|
|
869
869
|
y.indexOf(" ") !== -1 && (document.head.appendChild(p), p.setAttribute("data-s", ""));
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
|
-
var a =
|
|
873
|
-
|
|
872
|
+
var a = t.stylisPlugins || Gt, i = {}, s, c = [];
|
|
873
|
+
s = t.container || document.head, Array.prototype.forEach.call(
|
|
874
874
|
// this means we will ignore elements which don't have a space in them which
|
|
875
875
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
876
|
-
document.querySelectorAll('style[data-emotion^="' +
|
|
876
|
+
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
877
877
|
function(p) {
|
|
878
|
-
for (var y = p.getAttribute("data-emotion").split(" "),
|
|
879
|
-
i[y[
|
|
880
|
-
|
|
878
|
+
for (var y = p.getAttribute("data-emotion").split(" "), v = 1; v < y.length; v++)
|
|
879
|
+
i[y[v]] = !0;
|
|
880
|
+
c.push(p);
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
var
|
|
883
|
+
var d, m = [Yt, qt];
|
|
884
884
|
{
|
|
885
|
-
var l, u = [
|
|
885
|
+
var l, u = [Bt, zt(function(p) {
|
|
886
886
|
l.insert(p);
|
|
887
|
-
})],
|
|
888
|
-
return
|
|
887
|
+
})], h = Mt(m.concat(a, u)), w = function(y) {
|
|
888
|
+
return ee(Ft(y), h);
|
|
889
889
|
};
|
|
890
|
-
|
|
891
|
-
l =
|
|
890
|
+
d = function(y, v, b, _) {
|
|
891
|
+
l = b, w(y ? y + "{" + v.styles + "}" : v.styles), _ && (x.inserted[v.name] = !0);
|
|
892
892
|
};
|
|
893
893
|
}
|
|
894
894
|
var x = {
|
|
895
|
-
key:
|
|
896
|
-
sheet: new
|
|
897
|
-
key:
|
|
898
|
-
container:
|
|
899
|
-
nonce:
|
|
900
|
-
speedy:
|
|
901
|
-
prepend:
|
|
902
|
-
insertionPoint:
|
|
895
|
+
key: r,
|
|
896
|
+
sheet: new Pt({
|
|
897
|
+
key: r,
|
|
898
|
+
container: s,
|
|
899
|
+
nonce: t.nonce,
|
|
900
|
+
speedy: t.speedy,
|
|
901
|
+
prepend: t.prepend,
|
|
902
|
+
insertionPoint: t.insertionPoint
|
|
903
903
|
}),
|
|
904
|
-
nonce:
|
|
904
|
+
nonce: t.nonce,
|
|
905
905
|
inserted: i,
|
|
906
906
|
registered: {},
|
|
907
|
-
insert:
|
|
907
|
+
insert: d
|
|
908
908
|
};
|
|
909
|
-
return x.sheet.hydrate(
|
|
910
|
-
},
|
|
911
|
-
function
|
|
909
|
+
return x.sheet.hydrate(c), x;
|
|
910
|
+
}, Kt = !0;
|
|
911
|
+
function Jt(e, t, r) {
|
|
912
912
|
var n = "";
|
|
913
|
-
return
|
|
914
|
-
e[a] !== void 0 ?
|
|
913
|
+
return r.split(" ").forEach(function(a) {
|
|
914
|
+
e[a] !== void 0 ? t.push(e[a] + ";") : a && (n += a + " ");
|
|
915
915
|
}), n;
|
|
916
916
|
}
|
|
917
|
-
var
|
|
918
|
-
var a =
|
|
917
|
+
var ut = function(t, r, n) {
|
|
918
|
+
var a = t.key + "-" + r.name;
|
|
919
919
|
// we only need to add the styles to the registered cache if the
|
|
920
920
|
// class name could be used further down
|
|
921
921
|
// the tree but if it's a string tag, we know it won't
|
|
@@ -925,37 +925,37 @@ var ur = function(r, t, n) {
|
|
|
925
925
|
// in node since emotion-server relies on whether a style is in
|
|
926
926
|
// the registered cache to know whether a style is global or not
|
|
927
927
|
// also, note that this check will be dead code eliminated in the browser
|
|
928
|
-
|
|
929
|
-
},
|
|
930
|
-
|
|
931
|
-
var a =
|
|
932
|
-
if (
|
|
933
|
-
var i =
|
|
928
|
+
Kt === !1) && t.registered[a] === void 0 && (t.registered[a] = r.styles);
|
|
929
|
+
}, Zt = function(t, r, n) {
|
|
930
|
+
ut(t, r, n);
|
|
931
|
+
var a = t.key + "-" + r.name;
|
|
932
|
+
if (t.inserted[r.name] === void 0) {
|
|
933
|
+
var i = r;
|
|
934
934
|
do
|
|
935
|
-
|
|
935
|
+
t.insert(r === i ? "." + a : "", i, t.sheet, !0), i = i.next;
|
|
936
936
|
while (i !== void 0);
|
|
937
937
|
}
|
|
938
938
|
};
|
|
939
|
-
function
|
|
940
|
-
for (var
|
|
941
|
-
|
|
942
|
-
(
|
|
943
|
-
|
|
944
|
-
(
|
|
945
|
-
(
|
|
939
|
+
function Qt(e) {
|
|
940
|
+
for (var t = 0, r, n = 0, a = e.length; a >= 4; ++n, a -= 4)
|
|
941
|
+
r = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, r = /* Math.imul(k, m): */
|
|
942
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), r ^= /* k >>> r: */
|
|
943
|
+
r >>> 24, t = /* Math.imul(k, m): */
|
|
944
|
+
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
945
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
946
946
|
switch (a) {
|
|
947
947
|
case 3:
|
|
948
|
-
|
|
948
|
+
t ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
949
949
|
case 2:
|
|
950
|
-
|
|
950
|
+
t ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
951
951
|
case 1:
|
|
952
|
-
|
|
953
|
-
(
|
|
952
|
+
t ^= e.charCodeAt(n) & 255, t = /* Math.imul(h, m): */
|
|
953
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16);
|
|
954
954
|
}
|
|
955
|
-
return
|
|
956
|
-
(
|
|
955
|
+
return t ^= t >>> 13, t = /* Math.imul(h, m): */
|
|
956
|
+
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), ((t ^ t >>> 15) >>> 0).toString(36);
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var er = {
|
|
959
959
|
animationIterationCount: 1,
|
|
960
960
|
aspectRatio: 1,
|
|
961
961
|
borderImageOutset: 1,
|
|
@@ -1004,221 +1004,221 @@ var et = {
|
|
|
1004
1004
|
strokeMiterlimit: 1,
|
|
1005
1005
|
strokeOpacity: 1,
|
|
1006
1006
|
strokeWidth: 1
|
|
1007
|
-
},
|
|
1008
|
-
return
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
},
|
|
1012
|
-
return
|
|
1013
|
-
}),
|
|
1014
|
-
switch (
|
|
1007
|
+
}, tr = /[A-Z]|^ms/g, rr = /_EMO_([^_]+?)_([^]*?)_EMO_/g, dt = function(t) {
|
|
1008
|
+
return t.charCodeAt(1) === 45;
|
|
1009
|
+
}, Ge = function(t) {
|
|
1010
|
+
return t != null && typeof t != "boolean";
|
|
1011
|
+
}, Ae = /* @__PURE__ */ ct(function(e) {
|
|
1012
|
+
return dt(e) ? e : e.replace(tr, "-$&").toLowerCase();
|
|
1013
|
+
}), Xe = function(t, r) {
|
|
1014
|
+
switch (t) {
|
|
1015
1015
|
case "animation":
|
|
1016
1016
|
case "animationName":
|
|
1017
|
-
if (typeof
|
|
1018
|
-
return
|
|
1019
|
-
return
|
|
1017
|
+
if (typeof r == "string")
|
|
1018
|
+
return r.replace(rr, function(n, a, i) {
|
|
1019
|
+
return q = {
|
|
1020
1020
|
name: a,
|
|
1021
1021
|
styles: i,
|
|
1022
|
-
next:
|
|
1022
|
+
next: q
|
|
1023
1023
|
}, a;
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
|
-
return
|
|
1026
|
+
return er[t] !== 1 && !dt(t) && typeof r == "number" && r !== 0 ? r + "px" : r;
|
|
1027
1027
|
};
|
|
1028
|
-
function ue(e,
|
|
1029
|
-
if (
|
|
1028
|
+
function ue(e, t, r) {
|
|
1029
|
+
if (r == null)
|
|
1030
1030
|
return "";
|
|
1031
|
-
var n =
|
|
1031
|
+
var n = r;
|
|
1032
1032
|
if (n.__emotion_styles !== void 0)
|
|
1033
1033
|
return n;
|
|
1034
|
-
switch (typeof
|
|
1034
|
+
switch (typeof r) {
|
|
1035
1035
|
case "boolean":
|
|
1036
1036
|
return "";
|
|
1037
1037
|
case "object": {
|
|
1038
|
-
var a =
|
|
1038
|
+
var a = r;
|
|
1039
1039
|
if (a.anim === 1)
|
|
1040
|
-
return
|
|
1040
|
+
return q = {
|
|
1041
1041
|
name: a.name,
|
|
1042
1042
|
styles: a.styles,
|
|
1043
|
-
next:
|
|
1043
|
+
next: q
|
|
1044
1044
|
}, a.name;
|
|
1045
|
-
var i =
|
|
1045
|
+
var i = r;
|
|
1046
1046
|
if (i.styles !== void 0) {
|
|
1047
|
-
var
|
|
1048
|
-
if (
|
|
1049
|
-
for (;
|
|
1050
|
-
|
|
1051
|
-
name:
|
|
1052
|
-
styles:
|
|
1053
|
-
next:
|
|
1054
|
-
},
|
|
1055
|
-
var
|
|
1056
|
-
return
|
|
1047
|
+
var s = i.next;
|
|
1048
|
+
if (s !== void 0)
|
|
1049
|
+
for (; s !== void 0; )
|
|
1050
|
+
q = {
|
|
1051
|
+
name: s.name,
|
|
1052
|
+
styles: s.styles,
|
|
1053
|
+
next: q
|
|
1054
|
+
}, s = s.next;
|
|
1055
|
+
var c = i.styles + ";";
|
|
1056
|
+
return c;
|
|
1057
1057
|
}
|
|
1058
|
-
return
|
|
1058
|
+
return nr(e, t, r);
|
|
1059
1059
|
}
|
|
1060
1060
|
case "function": {
|
|
1061
1061
|
if (e !== void 0) {
|
|
1062
|
-
var
|
|
1063
|
-
return
|
|
1062
|
+
var d = q, m = r(e);
|
|
1063
|
+
return q = d, ue(e, t, m);
|
|
1064
1064
|
}
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
|
-
var l =
|
|
1069
|
-
if (
|
|
1068
|
+
var l = r;
|
|
1069
|
+
if (t == null)
|
|
1070
1070
|
return l;
|
|
1071
|
-
var u =
|
|
1071
|
+
var u = t[l];
|
|
1072
1072
|
return u !== void 0 ? u : l;
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function nr(e, t, r) {
|
|
1075
1075
|
var n = "";
|
|
1076
|
-
if (Array.isArray(
|
|
1077
|
-
for (var a = 0; a <
|
|
1078
|
-
n += ue(e,
|
|
1076
|
+
if (Array.isArray(r))
|
|
1077
|
+
for (var a = 0; a < r.length; a++)
|
|
1078
|
+
n += ue(e, t, r[a]) + ";";
|
|
1079
1079
|
else
|
|
1080
|
-
for (var i in
|
|
1081
|
-
var
|
|
1082
|
-
if (typeof
|
|
1083
|
-
var
|
|
1084
|
-
|
|
1085
|
-
} else if (Array.isArray(
|
|
1086
|
-
for (var
|
|
1087
|
-
|
|
1080
|
+
for (var i in r) {
|
|
1081
|
+
var s = r[i];
|
|
1082
|
+
if (typeof s != "object") {
|
|
1083
|
+
var c = s;
|
|
1084
|
+
t != null && t[c] !== void 0 ? n += i + "{" + t[c] + "}" : Ge(c) && (n += Ae(i) + ":" + Xe(i, c) + ";");
|
|
1085
|
+
} else if (Array.isArray(s) && typeof s[0] == "string" && (t == null || t[s[0]] === void 0))
|
|
1086
|
+
for (var d = 0; d < s.length; d++)
|
|
1087
|
+
Ge(s[d]) && (n += Ae(i) + ":" + Xe(i, s[d]) + ";");
|
|
1088
1088
|
else {
|
|
1089
|
-
var
|
|
1089
|
+
var m = ue(e, t, s);
|
|
1090
1090
|
switch (i) {
|
|
1091
1091
|
case "animation":
|
|
1092
1092
|
case "animationName": {
|
|
1093
|
-
n +=
|
|
1093
|
+
n += Ae(i) + ":" + m + ";";
|
|
1094
1094
|
break;
|
|
1095
1095
|
}
|
|
1096
1096
|
default:
|
|
1097
|
-
n += i + "{" +
|
|
1097
|
+
n += i + "{" + m + "}";
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
1101
|
return n;
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
function
|
|
1103
|
+
var Ke = /label:\s*([^\s;{]+)\s*(;|$)/g, q;
|
|
1104
|
+
function ar(e, t, r) {
|
|
1105
1105
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1106
1106
|
return e[0];
|
|
1107
1107
|
var n = !0, a = "";
|
|
1108
|
-
|
|
1108
|
+
q = void 0;
|
|
1109
1109
|
var i = e[0];
|
|
1110
1110
|
if (i == null || i.raw === void 0)
|
|
1111
|
-
n = !1, a += ue(
|
|
1111
|
+
n = !1, a += ue(r, t, i);
|
|
1112
1112
|
else {
|
|
1113
|
-
var
|
|
1114
|
-
a +=
|
|
1113
|
+
var s = i;
|
|
1114
|
+
a += s[0];
|
|
1115
1115
|
}
|
|
1116
|
-
for (var
|
|
1117
|
-
if (a += ue(
|
|
1118
|
-
var
|
|
1119
|
-
a +=
|
|
1116
|
+
for (var c = 1; c < e.length; c++)
|
|
1117
|
+
if (a += ue(r, t, e[c]), n) {
|
|
1118
|
+
var d = i;
|
|
1119
|
+
a += d[c];
|
|
1120
1120
|
}
|
|
1121
|
-
|
|
1122
|
-
for (var
|
|
1123
|
-
|
|
1124
|
-
var u =
|
|
1121
|
+
Ke.lastIndex = 0;
|
|
1122
|
+
for (var m = "", l; (l = Ke.exec(a)) !== null; )
|
|
1123
|
+
m += "-" + l[1];
|
|
1124
|
+
var u = Qt(a) + m;
|
|
1125
1125
|
return {
|
|
1126
1126
|
name: u,
|
|
1127
1127
|
styles: a,
|
|
1128
|
-
next:
|
|
1128
|
+
next: q
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
var
|
|
1132
|
-
return
|
|
1133
|
-
},
|
|
1131
|
+
var ir = function(t) {
|
|
1132
|
+
return t();
|
|
1133
|
+
}, or = K.useInsertionEffect ? K.useInsertionEffect : !1, sr = or || ir, ft = /* @__PURE__ */ K.createContext(
|
|
1134
1134
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1135
1135
|
// because this module is primarily intended for the browser and node
|
|
1136
1136
|
// but it's also required in react native and similar environments sometimes
|
|
1137
1137
|
// and we could have a special build just for that
|
|
1138
1138
|
// but this is much easier and the native packages
|
|
1139
1139
|
// might use a different theme context in the future anyway
|
|
1140
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1140
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Xt({
|
|
1141
1141
|
key: "css"
|
|
1142
1142
|
}) : null
|
|
1143
1143
|
);
|
|
1144
|
-
|
|
1145
|
-
var
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
var a =
|
|
1148
|
-
return r
|
|
1144
|
+
ft.Provider;
|
|
1145
|
+
var cr = function(t) {
|
|
1146
|
+
return /* @__PURE__ */ yt(function(r, n) {
|
|
1147
|
+
var a = et(ft);
|
|
1148
|
+
return t(r, a, n);
|
|
1149
1149
|
});
|
|
1150
|
-
},
|
|
1150
|
+
}, lr = /* @__PURE__ */ K.createContext({}), ur = /^((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|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)-.*))$/, dr = /* @__PURE__ */ ct(
|
|
1151
1151
|
function(e) {
|
|
1152
|
-
return
|
|
1152
|
+
return ur.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1153
1153
|
}
|
|
1154
1154
|
/* Z+1 */
|
|
1155
|
-
),
|
|
1156
|
-
return
|
|
1157
|
-
},
|
|
1158
|
-
return typeof
|
|
1155
|
+
), fr = dr, pr = function(t) {
|
|
1156
|
+
return t !== "theme";
|
|
1157
|
+
}, Je = function(t) {
|
|
1158
|
+
return typeof t == "string" && // 96 is one less than the char code
|
|
1159
1159
|
// for "a" so this is checking that
|
|
1160
1160
|
// it's a lowercase character
|
|
1161
|
-
|
|
1162
|
-
},
|
|
1161
|
+
t.charCodeAt(0) > 96 ? fr : pr;
|
|
1162
|
+
}, Ze = function(t, r, n) {
|
|
1163
1163
|
var a;
|
|
1164
|
-
if (
|
|
1165
|
-
var i =
|
|
1166
|
-
a =
|
|
1167
|
-
return
|
|
1164
|
+
if (r) {
|
|
1165
|
+
var i = r.shouldForwardProp;
|
|
1166
|
+
a = t.__emotion_forwardProp && i ? function(s) {
|
|
1167
|
+
return t.__emotion_forwardProp(s) && i(s);
|
|
1168
1168
|
} : i;
|
|
1169
1169
|
}
|
|
1170
|
-
return typeof a != "function" && n && (a =
|
|
1171
|
-
},
|
|
1172
|
-
var
|
|
1173
|
-
return
|
|
1174
|
-
return
|
|
1170
|
+
return typeof a != "function" && n && (a = t.__emotion_forwardProp), a;
|
|
1171
|
+
}, hr = function(t) {
|
|
1172
|
+
var r = t.cache, n = t.serialized, a = t.isStringTag;
|
|
1173
|
+
return ut(r, n, a), sr(function() {
|
|
1174
|
+
return Zt(r, n, a);
|
|
1175
1175
|
}), null;
|
|
1176
|
-
},
|
|
1177
|
-
var n =
|
|
1178
|
-
|
|
1179
|
-
var
|
|
1176
|
+
}, mr = function e(t, r) {
|
|
1177
|
+
var n = t.__emotion_real === t, a = n && t.__emotion_base || t, i, s;
|
|
1178
|
+
r !== void 0 && (i = r.label, s = r.target);
|
|
1179
|
+
var c = Ze(t, r, n), d = c || Je(a), m = !d("as");
|
|
1180
1180
|
return function() {
|
|
1181
|
-
var l = arguments, u = n &&
|
|
1181
|
+
var l = arguments, u = n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
1182
1182
|
if (i !== void 0 && u.push("label:" + i + ";"), l[0] == null || l[0].raw === void 0)
|
|
1183
1183
|
u.push.apply(u, l);
|
|
1184
1184
|
else {
|
|
1185
|
-
var
|
|
1186
|
-
u.push(
|
|
1185
|
+
var h = l[0];
|
|
1186
|
+
u.push(h[0]);
|
|
1187
1187
|
for (var w = l.length, x = 1; x < w; x++)
|
|
1188
|
-
u.push(l[x],
|
|
1188
|
+
u.push(l[x], h[x]);
|
|
1189
1189
|
}
|
|
1190
|
-
var p =
|
|
1191
|
-
var
|
|
1190
|
+
var p = cr(function(y, v, b) {
|
|
1191
|
+
var _ = m && y.as || a, O = "", E = [], S = y;
|
|
1192
1192
|
if (y.theme == null) {
|
|
1193
|
-
|
|
1194
|
-
for (var
|
|
1195
|
-
|
|
1196
|
-
|
|
1193
|
+
S = {};
|
|
1194
|
+
for (var f in y)
|
|
1195
|
+
S[f] = y[f];
|
|
1196
|
+
S.theme = K.useContext(lr);
|
|
1197
1197
|
}
|
|
1198
|
-
typeof y.className == "string" ?
|
|
1199
|
-
var
|
|
1200
|
-
|
|
1201
|
-
var
|
|
1202
|
-
for (var
|
|
1203
|
-
|
|
1204
|
-
return
|
|
1205
|
-
cache:
|
|
1206
|
-
serialized:
|
|
1207
|
-
isStringTag: typeof
|
|
1208
|
-
}), /* @__PURE__ */
|
|
1198
|
+
typeof y.className == "string" ? O = Jt(v.registered, E, y.className) : y.className != null && (O = y.className + " ");
|
|
1199
|
+
var C = ar(u.concat(E), v.registered, S);
|
|
1200
|
+
O += v.key + "-" + C.name, s !== void 0 && (O += " " + s);
|
|
1201
|
+
var F = m && c === void 0 ? Je(_) : d, $ = {};
|
|
1202
|
+
for (var V in y)
|
|
1203
|
+
m && V === "as" || F(V) && ($[V] = y[V]);
|
|
1204
|
+
return $.className = O, b && ($.ref = b), /* @__PURE__ */ K.createElement(K.Fragment, null, /* @__PURE__ */ K.createElement(hr, {
|
|
1205
|
+
cache: v,
|
|
1206
|
+
serialized: C,
|
|
1207
|
+
isStringTag: typeof _ == "string"
|
|
1208
|
+
}), /* @__PURE__ */ K.createElement(_, $));
|
|
1209
1209
|
});
|
|
1210
|
-
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps =
|
|
1210
|
+
return p.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", p.defaultProps = t.defaultProps, p.__emotion_real = p, p.__emotion_base = a, p.__emotion_styles = u, p.__emotion_forwardProp = c, Object.defineProperty(p, "toString", {
|
|
1211
1211
|
value: function() {
|
|
1212
|
-
return "." +
|
|
1212
|
+
return "." + s;
|
|
1213
1213
|
}
|
|
1214
|
-
}), p.withComponent = function(y,
|
|
1215
|
-
var
|
|
1216
|
-
shouldForwardProp:
|
|
1214
|
+
}), p.withComponent = function(y, v) {
|
|
1215
|
+
var b = e(y, Ie({}, r, v, {
|
|
1216
|
+
shouldForwardProp: Ze(p, v, !0)
|
|
1217
1217
|
}));
|
|
1218
|
-
return
|
|
1218
|
+
return b.apply(void 0, u);
|
|
1219
1219
|
}, p;
|
|
1220
1220
|
};
|
|
1221
|
-
},
|
|
1221
|
+
}, yr = [
|
|
1222
1222
|
"a",
|
|
1223
1223
|
"abbr",
|
|
1224
1224
|
"address",
|
|
@@ -1354,11 +1354,11 @@ var ct = function(r) {
|
|
|
1354
1354
|
"svg",
|
|
1355
1355
|
"text",
|
|
1356
1356
|
"tspan"
|
|
1357
|
-
], re =
|
|
1358
|
-
|
|
1357
|
+
], re = mr.bind(null);
|
|
1358
|
+
yr.forEach(function(e) {
|
|
1359
1359
|
re[e] = re(e);
|
|
1360
1360
|
});
|
|
1361
|
-
const
|
|
1361
|
+
const gr = re.div`
|
|
1362
1362
|
display: flex;
|
|
1363
1363
|
align-items: center;
|
|
1364
1364
|
justify-content: center;
|
|
@@ -1399,7 +1399,7 @@ const gt = re.div`
|
|
|
1399
1399
|
return "";
|
|
1400
1400
|
}
|
|
1401
1401
|
}}
|
|
1402
|
-
`,
|
|
1402
|
+
`, Le = ({ type: e, children: t, className: r, icon: n, action: a }) => I.jsxs(gr, { type: e, className: r, children: [n && I.jsx("span", { children: n }), I.jsx("span", { children: t }), a && I.jsx("span", { children: a })] }), Qe = re.div`
|
|
1403
1403
|
width: ${({ width: e }) => e || "100%"};
|
|
1404
1404
|
height: ${({ height: e }) => e || "100%"};
|
|
1405
1405
|
border-radius: 8px;
|
|
@@ -1408,8 +1408,8 @@ const gt = re.div`
|
|
|
1408
1408
|
z-index: 1002;
|
|
1409
1409
|
|
|
1410
1410
|
/* Hide specific elements inside the player */
|
|
1411
|
-
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((
|
|
1412
|
-
`,
|
|
1411
|
+
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((t) => `.${t} { display: none !important; }`).join("")}
|
|
1412
|
+
`, vr = re.div`
|
|
1413
1413
|
position: fixed;
|
|
1414
1414
|
top: 0;
|
|
1415
1415
|
left: 0;
|
|
@@ -1421,7 +1421,7 @@ const gt = re.div`
|
|
|
1421
1421
|
align-items: center;
|
|
1422
1422
|
z-index: 1000;
|
|
1423
1423
|
pointer-events: auto;
|
|
1424
|
-
`,
|
|
1424
|
+
`, br = re.div`
|
|
1425
1425
|
position: relative;
|
|
1426
1426
|
width: 100%; /* Default for mobile */
|
|
1427
1427
|
max-width: 100%;
|
|
@@ -1433,99 +1433,99 @@ const gt = re.div`
|
|
|
1433
1433
|
@media (min-width: 768px) {
|
|
1434
1434
|
width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
|
|
1435
1435
|
}
|
|
1436
|
-
`,
|
|
1437
|
-
const [
|
|
1438
|
-
return
|
|
1439
|
-
let
|
|
1440
|
-
const
|
|
1436
|
+
`, xr = (e, t) => `https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`, wr = (e, t) => `https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`, kr = (e) => `https://host.vpplayer.tech/player/${e}/vpplayer.js`, Be = (e, t) => `vp-player-${e || "default"}-${t || ""}`, Ce = /* @__PURE__ */ new Map(), Pr = (e, t) => {
|
|
1437
|
+
const [r, n] = U(!1), [a, i] = U(null);
|
|
1438
|
+
return xe(() => {
|
|
1439
|
+
let s = null, c, d = 0;
|
|
1440
|
+
const m = 3;
|
|
1441
1441
|
let l;
|
|
1442
1442
|
try {
|
|
1443
|
-
l =
|
|
1443
|
+
l = t || kr(e || "latest");
|
|
1444
1444
|
} catch (w) {
|
|
1445
1445
|
const x = w instanceof Error ? w.message : String(w);
|
|
1446
1446
|
i(`Failed to resolve script URL: ${x}`), n(!1);
|
|
1447
1447
|
return;
|
|
1448
1448
|
}
|
|
1449
|
-
if (
|
|
1449
|
+
if (Ce.get(l)) {
|
|
1450
1450
|
n(!0), i(null);
|
|
1451
1451
|
return;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (document.querySelector(`script[src="${l}"]`)) {
|
|
1454
|
-
|
|
1454
|
+
Ce.set(l, !0), n(!0), i(null);
|
|
1455
1455
|
return;
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1457
|
+
const h = () => {
|
|
1458
|
+
s = document.createElement("script"), s.src = l, s.async = !0, c = window.setTimeout(() => {
|
|
1459
1459
|
n(!1), i(`Loading script timed out: ${l}`);
|
|
1460
|
-
}, 1e4),
|
|
1461
|
-
clearTimeout(
|
|
1462
|
-
},
|
|
1463
|
-
clearTimeout(
|
|
1464
|
-
}, document.body.appendChild(
|
|
1460
|
+
}, 1e4), s.onload = () => {
|
|
1461
|
+
clearTimeout(c), Ce.set(l, !0), n(!0), i(null);
|
|
1462
|
+
}, s.onerror = () => {
|
|
1463
|
+
clearTimeout(c), d++, d < m ? setTimeout(h, 1e3 * d) : (n(!1), i(`Failed to load VP Player script after ${m} attempts: ${l}`));
|
|
1464
|
+
}, document.body.appendChild(s);
|
|
1465
1465
|
};
|
|
1466
|
-
return
|
|
1467
|
-
clearTimeout(
|
|
1466
|
+
return h(), () => {
|
|
1467
|
+
clearTimeout(c), s && document.body.contains(s) && document.body.removeChild(s);
|
|
1468
1468
|
};
|
|
1469
|
-
}, [e,
|
|
1470
|
-
},
|
|
1471
|
-
const [i,
|
|
1472
|
-
return
|
|
1473
|
-
const x =
|
|
1474
|
-
if (!e || n || !
|
|
1475
|
-
|
|
1469
|
+
}, [e, t]), { isLoaded: r, error: a };
|
|
1470
|
+
}, Er = {}, ye = /* @__PURE__ */ new Map(), _r = 15e3, Te = 5, Sr = ({ projectId: e, videoId: t, playlistId: r, videoUrl: n, apiKey: a }) => {
|
|
1471
|
+
const [i, s] = U(null), [c, d] = U(null), [m, l] = U(!1), [u, h] = U(null), w = a || (typeof Er < "u" ? "1CFC4B619E9342B6BAC4879BA8C30CF216C4BA9D3F084B11825F4AB2D5CF845E" : void 0);
|
|
1472
|
+
return xe(() => {
|
|
1473
|
+
const x = t ? `video:${t}` : r ? `playlist:${r}` : null;
|
|
1474
|
+
if (!e || n || !t && !r) {
|
|
1475
|
+
s(n || null), d(null), l(!1), h(null);
|
|
1476
1476
|
return;
|
|
1477
1477
|
}
|
|
1478
1478
|
if (!w) {
|
|
1479
|
-
l(!1),
|
|
1479
|
+
l(!1), h("No API key provided");
|
|
1480
1480
|
return;
|
|
1481
1481
|
}
|
|
1482
|
-
if (x &&
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1482
|
+
if (x && ye.has(x)) {
|
|
1483
|
+
const b = ye.get(x);
|
|
1484
|
+
s(b.url), d(b.playlist), l(!1), h(null);
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
1487
|
const p = new AbortController(), y = p.signal;
|
|
1488
1488
|
return (async () => {
|
|
1489
|
-
var
|
|
1490
|
-
l(!0),
|
|
1491
|
-
let
|
|
1492
|
-
for (;
|
|
1489
|
+
var _, O;
|
|
1490
|
+
l(!0), h(null);
|
|
1491
|
+
let b = 0;
|
|
1492
|
+
for (; b < Te; )
|
|
1493
1493
|
try {
|
|
1494
|
-
const E =
|
|
1494
|
+
const E = t && !r ? xr(e, t) : wr(e, r), S = setTimeout(() => p.abort(), _r), f = await fetch(E, {
|
|
1495
1495
|
method: "GET",
|
|
1496
1496
|
headers: { "api-key": w, Accept: "application/json" },
|
|
1497
1497
|
signal: y
|
|
1498
1498
|
});
|
|
1499
|
-
if (clearTimeout(
|
|
1500
|
-
throw new Error(`Fetch failed with status ${
|
|
1501
|
-
const
|
|
1502
|
-
if (
|
|
1503
|
-
const
|
|
1504
|
-
if (!(
|
|
1499
|
+
if (clearTimeout(S), !f.ok)
|
|
1500
|
+
throw new Error(`Fetch failed with status ${f.status}`);
|
|
1501
|
+
const C = await f.json();
|
|
1502
|
+
if (t && !r) {
|
|
1503
|
+
const F = (O = (_ = C.result) == null ? void 0 : _.items) == null ? void 0 : O.find(($) => $.mediaId === t);
|
|
1504
|
+
if (!(F != null && F.playbackUrl))
|
|
1505
1505
|
throw new Error("Invalid video data");
|
|
1506
|
-
|
|
1506
|
+
s(F.playbackUrl), d(null), x && ye.set(x, { url: F.playbackUrl, playlist: null });
|
|
1507
1507
|
} else {
|
|
1508
|
-
if (!Array.isArray(
|
|
1508
|
+
if (!Array.isArray(C.result))
|
|
1509
1509
|
throw new Error("Invalid playlist format");
|
|
1510
|
-
|
|
1510
|
+
d(C.result), s(null), x && ye.set(x, { url: null, playlist: C.result });
|
|
1511
1511
|
}
|
|
1512
1512
|
break;
|
|
1513
1513
|
} catch (E) {
|
|
1514
1514
|
if (y.aborted) {
|
|
1515
|
-
|
|
1515
|
+
h("Request timed out");
|
|
1516
1516
|
break;
|
|
1517
1517
|
}
|
|
1518
|
-
if (
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1518
|
+
if (b++, b >= Te) {
|
|
1519
|
+
const S = E instanceof Error ? E.message : String(E);
|
|
1520
|
+
h(`Failed after ${Te} attempts: ${S}`);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
l(!1);
|
|
1524
1524
|
})(), () => {
|
|
1525
1525
|
p.abort();
|
|
1526
1526
|
};
|
|
1527
|
-
}, [w, e,
|
|
1528
|
-
},
|
|
1527
|
+
}, [w, e, t, r, n]), { fetchedPlaybackUrl: i, fetchedPlaylist: c, isLoading: m, error: u };
|
|
1528
|
+
}, Rr = {
|
|
1529
1529
|
projectId: "vp-player-projectId",
|
|
1530
1530
|
video: {
|
|
1531
1531
|
file: "",
|
|
@@ -1577,9 +1577,9 @@ const gt = re.div`
|
|
|
1577
1577
|
// Enabled by default
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
|
-
},
|
|
1581
|
-
var
|
|
1582
|
-
const i = { ...
|
|
1580
|
+
}, Ar = ({ videoUrl: e, fetchedPlaybackUrl: t, fetchedPlaylist: r, projectId: n, config: a = {} }) => {
|
|
1581
|
+
var m, l, u;
|
|
1582
|
+
const i = { ...Rr, ...a }, s = { ...i.config, ...a.config };
|
|
1583
1583
|
if (e)
|
|
1584
1584
|
return {
|
|
1585
1585
|
...i,
|
|
@@ -1588,63 +1588,63 @@ const gt = re.div`
|
|
|
1588
1588
|
file: e,
|
|
1589
1589
|
playlist: void 0
|
|
1590
1590
|
},
|
|
1591
|
-
config:
|
|
1591
|
+
config: s
|
|
1592
1592
|
};
|
|
1593
|
-
if (
|
|
1593
|
+
if (t)
|
|
1594
1594
|
return {
|
|
1595
1595
|
...i,
|
|
1596
1596
|
video: {
|
|
1597
1597
|
...i.video,
|
|
1598
|
-
file:
|
|
1598
|
+
file: t,
|
|
1599
1599
|
playlist: void 0
|
|
1600
1600
|
},
|
|
1601
|
-
config:
|
|
1601
|
+
config: s
|
|
1602
1602
|
};
|
|
1603
|
-
if (
|
|
1603
|
+
if (r && r.length > 0)
|
|
1604
1604
|
return {
|
|
1605
1605
|
...i,
|
|
1606
1606
|
projectId: n || "vp-player-projectId",
|
|
1607
1607
|
video: {
|
|
1608
1608
|
...i.video,
|
|
1609
|
-
file: ((
|
|
1609
|
+
file: ((m = r[0]) == null ? void 0 : m.hlsUrl) || "",
|
|
1610
1610
|
playlist: {
|
|
1611
1611
|
state: !0,
|
|
1612
1612
|
playlistVideoIndex: 0,
|
|
1613
|
-
videos:
|
|
1613
|
+
videos: r.map((h, w) => ({
|
|
1614
1614
|
videoId: String(w),
|
|
1615
|
-
title:
|
|
1616
|
-
file:
|
|
1617
|
-
thumbnailUrl:
|
|
1618
|
-
duration:
|
|
1615
|
+
title: h.title,
|
|
1616
|
+
file: h.hlsUrl,
|
|
1617
|
+
thumbnailUrl: h.thumbnailUrl,
|
|
1618
|
+
duration: h.duration
|
|
1619
1619
|
}))
|
|
1620
1620
|
}
|
|
1621
1621
|
},
|
|
1622
|
-
config:
|
|
1622
|
+
config: s
|
|
1623
1623
|
};
|
|
1624
|
-
const
|
|
1625
|
-
if (
|
|
1624
|
+
const c = ((l = a == null ? void 0 : a.video) == null ? void 0 : l.playlist) || i.video.playlist, d = (u = a == null ? void 0 : a.video) == null ? void 0 : u.file;
|
|
1625
|
+
if (d)
|
|
1626
1626
|
return {
|
|
1627
1627
|
...i,
|
|
1628
1628
|
video: {
|
|
1629
1629
|
...i.video,
|
|
1630
|
-
file:
|
|
1630
|
+
file: d,
|
|
1631
1631
|
playlist: void 0
|
|
1632
1632
|
// No playlist, just one video
|
|
1633
1633
|
},
|
|
1634
|
-
config:
|
|
1634
|
+
config: s
|
|
1635
1635
|
};
|
|
1636
|
-
if (
|
|
1637
|
-
const
|
|
1636
|
+
if (c != null && c.videos && c.videos.length > 0) {
|
|
1637
|
+
const h = c.videos[c.playlistVideoIndex || 0];
|
|
1638
1638
|
return {
|
|
1639
1639
|
...i,
|
|
1640
1640
|
video: {
|
|
1641
1641
|
...i.video,
|
|
1642
|
-
file: (
|
|
1642
|
+
file: (h == null ? void 0 : h.file) || "",
|
|
1643
1643
|
playlist: {
|
|
1644
|
-
...
|
|
1645
|
-
state:
|
|
1646
|
-
playlistVideoIndex:
|
|
1647
|
-
videos:
|
|
1644
|
+
...c,
|
|
1645
|
+
state: c.state ?? !0,
|
|
1646
|
+
playlistVideoIndex: c.playlistVideoIndex ?? 0,
|
|
1647
|
+
videos: c.videos
|
|
1648
1648
|
}
|
|
1649
1649
|
},
|
|
1650
1650
|
config: {
|
|
@@ -1654,187 +1654,249 @@ const gt = re.div`
|
|
|
1654
1654
|
};
|
|
1655
1655
|
}
|
|
1656
1656
|
throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.");
|
|
1657
|
-
},
|
|
1657
|
+
}, Cr = (e) => {
|
|
1658
1658
|
if (!e)
|
|
1659
1659
|
return;
|
|
1660
|
-
const
|
|
1661
|
-
return
|
|
1662
|
-
},
|
|
1663
|
-
const l =
|
|
1660
|
+
const t = /https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/, r = e.match(t);
|
|
1661
|
+
return r ? r[2] : void 0;
|
|
1662
|
+
}, Tr = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1 }) => {
|
|
1663
|
+
const l = Me(null), u = Me(null), { isLoaded: h, error: w } = Pr(r, s), x = t || Cr(s), [p, y] = U(null), { fetchedPlaybackUrl: v, fetchedPlaylist: b, isLoading: _, error: O } = Sr({
|
|
1664
1664
|
projectId: a,
|
|
1665
1665
|
videoId: x,
|
|
1666
1666
|
playlistId: i,
|
|
1667
1667
|
videoUrl: n,
|
|
1668
|
-
apiKey:
|
|
1669
|
-
}), E =
|
|
1670
|
-
|
|
1668
|
+
apiKey: d
|
|
1669
|
+
}), E = Be(e, x), S = tt(() => {
|
|
1670
|
+
const f = c.config || {}, C = m && !f.size ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : f.size || { sizeType: "FIXED", width: "100%" };
|
|
1671
1671
|
return {
|
|
1672
|
-
...
|
|
1672
|
+
...c,
|
|
1673
1673
|
config: {
|
|
1674
|
-
...
|
|
1675
|
-
|
|
1676
|
-
muted: !1,
|
|
1677
|
-
size: h ? { sizeType: "RESPONSIVE", aspectRatio: "9:16" } : ((d = s.config) == null ? void 0 : d.size) || { sizeType: "FIXED", width: "100%" },
|
|
1678
|
-
controls: {
|
|
1679
|
-
settingsButton: !0,
|
|
1680
|
-
chromecastButton: !1,
|
|
1681
|
-
nextButton: !0,
|
|
1682
|
-
fullscreenButton: !0,
|
|
1683
|
-
airplayButton: !0,
|
|
1684
|
-
bigPlayButton: !0,
|
|
1685
|
-
autopausePlayButton: !0,
|
|
1686
|
-
pictureInPictureButton: !0,
|
|
1687
|
-
relatedButton: !1,
|
|
1688
|
-
volumeButton: !0,
|
|
1689
|
-
shareButton: !0
|
|
1690
|
-
},
|
|
1691
|
-
socialMedia: ["FACEBOOK", "LINKEDIN", "REDDIT", "TWITTER", "PINTEREST"],
|
|
1692
|
-
skin: {
|
|
1693
|
-
controlBar: {
|
|
1694
|
-
background: "rgba(0, 0, 0, 0.3)",
|
|
1695
|
-
text: "#FFFFFF",
|
|
1696
|
-
icons: { default: "#FFFFFF", hover: "#CC0000" },
|
|
1697
|
-
timeslider: {
|
|
1698
|
-
progress: "#CC0000",
|
|
1699
|
-
rail: "#808080",
|
|
1700
|
-
buffer: "#E2E2E2",
|
|
1701
|
-
dragger: "#CC0000"
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
},
|
|
1705
|
-
settings: {
|
|
1706
|
-
quality: "Quality",
|
|
1707
|
-
subtitles: "Subtitles",
|
|
1708
|
-
autoplay: "Autoplay",
|
|
1709
|
-
playbackRate: "Speed",
|
|
1710
|
-
auto: "Auto",
|
|
1711
|
-
off: "Off",
|
|
1712
|
-
normal: "Normal",
|
|
1713
|
-
share: "Share Video"
|
|
1714
|
-
}
|
|
1674
|
+
...f,
|
|
1675
|
+
size: C
|
|
1715
1676
|
}
|
|
1716
1677
|
};
|
|
1717
|
-
}, [
|
|
1718
|
-
return
|
|
1678
|
+
}, [c, m]);
|
|
1679
|
+
return xe(() => {
|
|
1719
1680
|
if (w) {
|
|
1720
1681
|
y(w);
|
|
1721
1682
|
return;
|
|
1722
1683
|
}
|
|
1723
|
-
|
|
1724
|
-
if (!m || !l.current || S && !n)
|
|
1684
|
+
if (!h || _ && !n)
|
|
1725
1685
|
return;
|
|
1726
|
-
let
|
|
1727
|
-
const
|
|
1686
|
+
let f = !0;
|
|
1687
|
+
const F = setTimeout(async () => {
|
|
1728
1688
|
try {
|
|
1729
|
-
if (
|
|
1730
|
-
|
|
1689
|
+
if (document.querySelectorAll('[id*="player"]').forEach((pe) => {
|
|
1690
|
+
var o, g, R;
|
|
1691
|
+
const Z = pe.id;
|
|
1731
1692
|
try {
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1734
|
-
} catch (
|
|
1735
|
-
console.warn(`Failed to destroy existing player ${
|
|
1693
|
+
const A = window, B = ((o = A.vpPlayer) == null ? void 0 : o.call(A, Z)) || ((g = A.vpVerticalPlayer) == null ? void 0 : g.call(A, Z));
|
|
1694
|
+
(R = B == null ? void 0 : B.destroy) == null || R.call(B);
|
|
1695
|
+
} catch (A) {
|
|
1696
|
+
console.warn(`Failed to destroy existing player ${Z}:`, A);
|
|
1736
1697
|
}
|
|
1737
|
-
}), await new Promise((
|
|
1698
|
+
}), await new Promise((ae) => setTimeout(ae, 100)), !f || !l.current)
|
|
1738
1699
|
return;
|
|
1739
1700
|
if (!document.getElementById(E)) {
|
|
1740
1701
|
y("DOM element not found after cleanup.");
|
|
1741
1702
|
return;
|
|
1742
1703
|
}
|
|
1743
|
-
|
|
1704
|
+
const G = s == null ? void 0 : s.includes("vertical-player"), z = window;
|
|
1705
|
+
if (!z.vpPlayer && !z.vpVerticalPlayer) {
|
|
1744
1706
|
y("VP Player script not loaded.");
|
|
1745
1707
|
return;
|
|
1746
1708
|
}
|
|
1747
|
-
const
|
|
1709
|
+
const X = G ? z.vpVerticalPlayer : z.vpPlayer;
|
|
1710
|
+
if (!X) {
|
|
1711
|
+
y(`VP ${G ? "Vertical " : ""}Player script not loaded.`);
|
|
1712
|
+
return;
|
|
1713
|
+
}
|
|
1714
|
+
const fe = Ar({
|
|
1748
1715
|
videoUrl: n,
|
|
1749
|
-
fetchedPlaybackUrl:
|
|
1750
|
-
fetchedPlaylist:
|
|
1716
|
+
fetchedPlaybackUrl: v,
|
|
1717
|
+
fetchedPlaylist: b,
|
|
1751
1718
|
projectId: a,
|
|
1752
|
-
config:
|
|
1753
|
-
}),
|
|
1754
|
-
if (!
|
|
1755
|
-
y(
|
|
1719
|
+
config: S
|
|
1720
|
+
}), J = X(E);
|
|
1721
|
+
if (!J) {
|
|
1722
|
+
y(`Failed to create VP ${G ? "Vertical " : ""}Player instance.`);
|
|
1756
1723
|
return;
|
|
1757
1724
|
}
|
|
1758
|
-
|
|
1759
|
-
} catch (
|
|
1760
|
-
if (
|
|
1761
|
-
const
|
|
1762
|
-
y(
|
|
1725
|
+
f && l.current && (J.setup(fe), u.current = J, y(null));
|
|
1726
|
+
} catch ($) {
|
|
1727
|
+
if (f) {
|
|
1728
|
+
const V = $ instanceof Error ? $.message : String($);
|
|
1729
|
+
y(V), console.error("VP Player initialization error:", $);
|
|
1763
1730
|
}
|
|
1764
1731
|
}
|
|
1765
1732
|
}, 150);
|
|
1766
1733
|
return () => {
|
|
1767
|
-
|
|
1734
|
+
f = !1, clearTimeout(F);
|
|
1768
1735
|
};
|
|
1769
1736
|
}, [
|
|
1770
|
-
|
|
1771
|
-
|
|
1737
|
+
h,
|
|
1738
|
+
_,
|
|
1772
1739
|
n,
|
|
1773
|
-
b,
|
|
1774
1740
|
v,
|
|
1741
|
+
b,
|
|
1775
1742
|
a,
|
|
1776
|
-
|
|
1777
|
-
E
|
|
1778
|
-
|
|
1743
|
+
S,
|
|
1744
|
+
E,
|
|
1745
|
+
w,
|
|
1746
|
+
s
|
|
1747
|
+
]), xe(() => () => {
|
|
1779
1748
|
if (u.current) {
|
|
1780
1749
|
try {
|
|
1781
1750
|
u.current.destroy && u.current.destroy();
|
|
1782
|
-
} catch (
|
|
1783
|
-
console.warn(`Failed to destroy player ${E}:`,
|
|
1751
|
+
} catch (C) {
|
|
1752
|
+
console.warn(`Failed to destroy player ${E}:`, C);
|
|
1784
1753
|
}
|
|
1785
1754
|
u.current = null;
|
|
1786
1755
|
}
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1756
|
+
const f = document.getElementById(E);
|
|
1757
|
+
f && (f.innerHTML = "");
|
|
1789
1758
|
}, [E]), {
|
|
1790
1759
|
playerRef: l,
|
|
1791
1760
|
playerInstanceRef: u,
|
|
1792
|
-
isScriptLoaded:
|
|
1793
|
-
isLoading:
|
|
1794
|
-
error:
|
|
1761
|
+
isScriptLoaded: h,
|
|
1762
|
+
isLoading: _,
|
|
1763
|
+
error: O || p || w
|
|
1795
1764
|
};
|
|
1796
|
-
},
|
|
1797
|
-
var
|
|
1798
|
-
const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error:
|
|
1765
|
+
}, Or = ({ playerId: e, videoId: t, version: r, videoUrl: n, projectId: a, playlistId: i, scriptUrl: s, config: c = {}, apiKey: d, isReels: m = !1, hiddenClasses: l = [], onClose: u, className: h }) => {
|
|
1766
|
+
var F, $, V, G;
|
|
1767
|
+
const { playerRef: w, playerInstanceRef: x, isScriptLoaded: p, isLoading: y, error: v } = Tr({
|
|
1799
1768
|
playerId: e,
|
|
1800
|
-
videoId:
|
|
1801
|
-
version:
|
|
1769
|
+
videoId: t,
|
|
1770
|
+
version: r,
|
|
1802
1771
|
videoUrl: n,
|
|
1803
1772
|
projectId: a,
|
|
1804
1773
|
playlistId: i,
|
|
1805
|
-
scriptUrl:
|
|
1806
|
-
config:
|
|
1807
|
-
apiKey:
|
|
1808
|
-
isReels:
|
|
1809
|
-
}), [
|
|
1810
|
-
var
|
|
1811
|
-
|
|
1812
|
-
},
|
|
1813
|
-
return
|
|
1814
|
-
},
|
|
1815
|
-
const [
|
|
1774
|
+
scriptUrl: s,
|
|
1775
|
+
config: c,
|
|
1776
|
+
apiKey: d,
|
|
1777
|
+
isReels: m
|
|
1778
|
+
}), [b, _] = U(!0), O = () => m && _(!0), E = () => {
|
|
1779
|
+
var z, X;
|
|
1780
|
+
_(!1), (X = (z = x.current) == null ? void 0 : z.play) == null || X.call(z), u == null || u();
|
|
1781
|
+
}, S = ($ = (F = c == null ? void 0 : c.config) == null ? void 0 : F.size) != null && $.width ? typeof c.config.size.width == "number" ? `${c.config.size.width}px` : c.config.size.width : void 0, f = (G = (V = c == null ? void 0 : c.config) == null ? void 0 : V.size) != null && G.height ? typeof c.config.size.height == "number" ? `${c.config.size.height}px` : c.config.size.height : void 0, C = Be(e, t);
|
|
1782
|
+
return v ? I.jsxs(Le, { type: "error", children: ["An error occurred: ", v] }) : y || !p ? I.jsx(Le, { type: "loading", children: "Loading..." }) : I.jsxs(I.Fragment, { children: [m && !b ? I.jsx("div", { onClick: O }) : null, !m && I.jsx("div", { children: I.jsx(Qe, { id: C, ref: w, width: S || "100%", height: f || "auto", $hiddenClasses: l, className: h }) }, C), m && b && I.jsx(vr, { onClick: E, className: h, children: I.jsx(br, { className: h, onClick: (z) => z.stopPropagation(), children: I.jsx("div", { children: I.jsx(Qe, { id: C, ref: w, width: "100%", height: "auto", $hiddenClasses: l, className: h }) }, C) }) })] });
|
|
1783
|
+
}, pt = gt(void 0), $r = ({ children: e }) => {
|
|
1784
|
+
const [t, r] = U(!1), [n, a] = U(null), [i, s] = U(null), c = ze((l) => {
|
|
1816
1785
|
try {
|
|
1817
|
-
const u =
|
|
1818
|
-
a({ ...l, playerId: u }),
|
|
1786
|
+
const u = Be(l.playerId, l.videoId);
|
|
1787
|
+
a({ ...l, playerId: u }), r(!0), s(null);
|
|
1819
1788
|
} catch {
|
|
1820
|
-
|
|
1789
|
+
s("Failed to show player.");
|
|
1821
1790
|
}
|
|
1822
|
-
}, []),
|
|
1823
|
-
|
|
1824
|
-
}, []),
|
|
1825
|
-
showPlayer:
|
|
1826
|
-
hidePlayer:
|
|
1827
|
-
isPlayerVisible:
|
|
1791
|
+
}, []), d = ze(() => {
|
|
1792
|
+
r(!1), a(null), s(null);
|
|
1793
|
+
}, []), m = tt(() => ({
|
|
1794
|
+
showPlayer: c,
|
|
1795
|
+
hidePlayer: d,
|
|
1796
|
+
isPlayerVisible: t,
|
|
1828
1797
|
playerParams: n
|
|
1829
|
-
}), [
|
|
1830
|
-
return
|
|
1831
|
-
},
|
|
1832
|
-
const e =
|
|
1798
|
+
}), [c, d, t, n]);
|
|
1799
|
+
return I.jsxs(pt.Provider, { value: m, children: [e, i && I.jsx(Le, { type: "error", children: i }), t && (n == null ? void 0 : n.playerId) && I.jsx(Or, { playerId: n.playerId, videoId: n.videoId, projectId: n.projectId, videoUrl: n.videoUrl, version: n.version, playlistId: n.playlistId, scriptUrl: n.scriptUrl, config: n.config, isReels: n.isReels, thumbnailUrl: n.thumbnailUrl, onClose: d, hiddenClasses: n.hiddenClasses || [], apiKey: n.apiKey, className: n.className })] });
|
|
1800
|
+
}, jr = () => {
|
|
1801
|
+
const e = et(pt);
|
|
1833
1802
|
if (!e)
|
|
1834
1803
|
throw new Error("useVPPlayer must be used within a VPPlayerProvider");
|
|
1835
1804
|
return e;
|
|
1836
|
-
}
|
|
1805
|
+
}, Lr = {
|
|
1806
|
+
projectId: "vp-player-projectId",
|
|
1807
|
+
video: {
|
|
1808
|
+
file: "",
|
|
1809
|
+
playlist: {
|
|
1810
|
+
state: !0,
|
|
1811
|
+
playlistVideoIndex: 0,
|
|
1812
|
+
videos: []
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
config: {
|
|
1816
|
+
autoplay: !0,
|
|
1817
|
+
pauseOtherVideos: !0,
|
|
1818
|
+
focusOnAutostart: !1,
|
|
1819
|
+
muted: !0,
|
|
1820
|
+
loop: !1,
|
|
1821
|
+
size: {
|
|
1822
|
+
width: "100%"
|
|
1823
|
+
},
|
|
1824
|
+
controls: {
|
|
1825
|
+
settingsButton: !0,
|
|
1826
|
+
chromecastButton: !1,
|
|
1827
|
+
nextButton: !1,
|
|
1828
|
+
fullscreenButton: !0,
|
|
1829
|
+
airplayButton: !1,
|
|
1830
|
+
bigPlayButton: !1,
|
|
1831
|
+
autopausePlayButton: !0,
|
|
1832
|
+
pictureInPictureButton: !1,
|
|
1833
|
+
relatedButton: !1,
|
|
1834
|
+
volumeButton: !0,
|
|
1835
|
+
shareButton: !0
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
}, Nr = {
|
|
1839
|
+
config: {
|
|
1840
|
+
autostartOnLoad: { state: !0, onMobile: !0, onData: !0 },
|
|
1841
|
+
muted: !0
|
|
1842
|
+
}
|
|
1843
|
+
}, Fr = {
|
|
1844
|
+
config: {
|
|
1845
|
+
autoplay: !0,
|
|
1846
|
+
muted: !0
|
|
1847
|
+
}
|
|
1848
|
+
}, Oe = {
|
|
1849
|
+
video: {
|
|
1850
|
+
advertising: !0,
|
|
1851
|
+
ads: {
|
|
1852
|
+
skipAd: { state: !0, skipFrom: 5 }
|
|
1853
|
+
}
|
|
1854
|
+
},
|
|
1855
|
+
config: {
|
|
1856
|
+
adAnnouncement: { state: !0, timeBeforeAd: 5 },
|
|
1857
|
+
adsRequireInteraction: !1
|
|
1858
|
+
}
|
|
1859
|
+
}, Vr = (e, t, r = "time", n = 0) => {
|
|
1860
|
+
var a;
|
|
1861
|
+
return {
|
|
1862
|
+
...Oe,
|
|
1863
|
+
video: {
|
|
1864
|
+
...Oe.video,
|
|
1865
|
+
ads: {
|
|
1866
|
+
...(a = Oe.video) == null ? void 0 : a.ads,
|
|
1867
|
+
adBreaks: [
|
|
1868
|
+
{
|
|
1869
|
+
adTagUrl: t,
|
|
1870
|
+
breakType: e,
|
|
1871
|
+
breakTimingType: r,
|
|
1872
|
+
breakTimingValue: n
|
|
1873
|
+
}
|
|
1874
|
+
]
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
}, Br = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4", Mr = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", zr = "https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4", Dr = "https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600", Ur = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=", Wr = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";
|
|
1837
1879
|
export {
|
|
1838
|
-
|
|
1839
|
-
|
|
1880
|
+
Ur as AD_TAG_LINEAR_URL,
|
|
1881
|
+
Wr as AD_TAG_SKIPPABLE_LINEAR_URL,
|
|
1882
|
+
Br as BIG_BUCK_BUNNY_URL,
|
|
1883
|
+
Mr as ELEPHANTS_DREAM_URL,
|
|
1884
|
+
vr as Overlay,
|
|
1885
|
+
Dr as PEXELS_THUMBNAIL_URL,
|
|
1886
|
+
zr as PEXELS_VERTICAL_VIDEO_URL,
|
|
1887
|
+
Qe as PlayerContainer,
|
|
1888
|
+
br as PlayerWrapper,
|
|
1889
|
+
Or as VPPlayer,
|
|
1890
|
+
$r as VPPlayerProvider,
|
|
1891
|
+
Nr as baseConfig,
|
|
1892
|
+
Oe as baseConfigWithAds,
|
|
1893
|
+
Fr as baseConfigWithAutoplay,
|
|
1894
|
+
Ar as buildVPPlayerConfig,
|
|
1895
|
+
Lr as defaultVPPlayerConfig,
|
|
1896
|
+
Cr as extractVideoId,
|
|
1897
|
+
Vr as getAdConfig,
|
|
1898
|
+
jr as useVPPlayer,
|
|
1899
|
+
Tr as useVPPlayerLogic,
|
|
1900
|
+
Pr as useVPPlayerScript,
|
|
1901
|
+
Sr as useVideoData
|
|
1840
1902
|
};
|