@halibegic/react-video-player 0.0.2 → 0.0.3
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 +43 -2
- package/dist/components/live-player.d.ts +9 -1
- package/dist/components/player/live-player/live-player-event-check.d.ts +8 -0
- package/dist/components/player/live-player/live-player-go-live.d.ts +6 -0
- package/dist/components/player/live-player/live-player-playback-indicator.d.ts +2 -0
- package/dist/components/player/live-player/live-player-playback.d.ts +1 -1
- package/dist/components/player/live-player/live-player-progress.d.ts +2 -0
- package/dist/components/player/live-player/live-player-provider.d.ts +7 -0
- package/dist/components/player/live-player/live-player-remaining-time.d.ts +2 -0
- package/dist/components/player/live-player/live-player-tech.d.ts +5 -0
- package/dist/components/player/player-hls-engine.d.ts +6 -0
- package/dist/components/player/player-tech.d.ts +1 -1
- package/dist/components/player/ui/icons/arrow-right-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/fullscreen-enter-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/fullscreen-exit-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/pause-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/play-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/volume-max-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/volume-min-icon.d.ts +2 -0
- package/dist/components/player/ui/icons/volume-mute-icon.d.ts +2 -0
- package/dist/components/player/ui/player-button.d.ts +5 -2
- package/dist/components/player/ui/player-controls.styles.d.ts +8 -0
- package/dist/components/player/ui/player-fullscreen.d.ts +1 -1
- package/dist/components/player/ui/player-idle-check.d.ts +3 -0
- package/dist/components/player/ui/player-playback-indicator.d.ts +4 -0
- package/dist/components/player/ui/player-progress.styles.d.ts +6 -0
- package/dist/components/player/ui/player-remaining-time.styles.d.ts +6 -0
- package/dist/components/player/ui/player-slider.d.ts +3 -5
- package/dist/components/player/ui/player-spinner.d.ts +3 -0
- package/dist/components/player/ui/player-volume.d.ts +2 -0
- package/dist/components/vod-player/vod-player-playback-indicator.d.ts +2 -0
- package/dist/components/vod-player/vod-player-remaining-time.d.ts +2 -0
- package/dist/components/vod-player/vod-player-watch-history.d.ts +5 -0
- package/dist/components/vod-player.d.ts +5 -1
- package/dist/config/player.d.ts +3 -5
- package/dist/hooks/use-interval.d.ts +2 -0
- package/dist/hooks/use-isomorphic-layout-effect.d.ts +3 -0
- package/dist/hooks/use-state-refresh.d.ts +2 -0
- package/dist/index-DkJtizQx.js +3265 -0
- package/dist/index-DkJtizQx.js.map +1 -0
- package/dist/react-video-player.es.js +1 -1
- package/dist/react-video-player.umd.js +227 -105
- package/dist/react-video-player.umd.js.map +1 -1
- package/dist/stores/live-player-store.d.ts +21 -0
- package/dist/stores/player-store.d.ts +1 -1
- package/dist/utils/dom.d.ts +11 -0
- package/dist/utils/player.d.ts +4 -3
- package/dist/vod-player-watch-history-D3ZHK2x3.js +37 -0
- package/dist/vod-player-watch-history-D3ZHK2x3.js.map +1 -0
- package/package.json +3 -8
- package/dist/components/player/tech/player-dash-tech.d.ts +0 -6
- package/dist/components/player/tech/player-hls-tech.d.ts +0 -6
- package/dist/index-DXKCbM7O.js +0 -2003
- package/dist/index-DXKCbM7O.js.map +0 -1
- package/dist/player-dash-tech-D7KQCWFx.js +0 -50
- package/dist/player-dash-tech-D7KQCWFx.js.map +0 -1
- package/dist/player-hls-tech-sXKjWi4D.js +0 -29
- package/dist/player-hls-tech-sXKjWi4D.js.map +0 -1
- /package/dist/{components/hooks → hooks}/use-debounce.d.ts +0 -0
|
@@ -0,0 +1,3265 @@
|
|
|
1
|
+
import * as v from "react";
|
|
2
|
+
import B, { useLayoutEffect as Lr, useEffect as ne, useRef as q, useState as G, createContext as pn, useContext as jt, useDebugValue as $t, createElement as Dr, useCallback as ie, lazy as Nr } from "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
import De from "hls.js";
|
|
5
|
+
var He = { exports: {} }, Ne = {};
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-jsx-runtime.production.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var Ht;
|
|
16
|
+
function Mr() {
|
|
17
|
+
if (Ht) return Ne;
|
|
18
|
+
Ht = 1;
|
|
19
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
20
|
+
function n(r, o, s) {
|
|
21
|
+
var i = null;
|
|
22
|
+
if (s !== void 0 && (i = "" + s), o.key !== void 0 && (i = "" + o.key), "key" in o) {
|
|
23
|
+
s = {};
|
|
24
|
+
for (var a in o)
|
|
25
|
+
a !== "key" && (s[a] = o[a]);
|
|
26
|
+
} else s = o;
|
|
27
|
+
return o = s.ref, {
|
|
28
|
+
$$typeof: e,
|
|
29
|
+
type: r,
|
|
30
|
+
key: i,
|
|
31
|
+
ref: o !== void 0 ? o : null,
|
|
32
|
+
props: s
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return Ne.Fragment = t, Ne.jsx = n, Ne.jsxs = n, Ne;
|
|
36
|
+
}
|
|
37
|
+
var Me = {};
|
|
38
|
+
/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react-jsx-runtime.development.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/
|
|
47
|
+
var zt;
|
|
48
|
+
function Or() {
|
|
49
|
+
return zt || (zt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
50
|
+
function e(f) {
|
|
51
|
+
if (f == null) return null;
|
|
52
|
+
if (typeof f == "function")
|
|
53
|
+
return f.$$typeof === I ? null : f.displayName || f.name || null;
|
|
54
|
+
if (typeof f == "string") return f;
|
|
55
|
+
switch (f) {
|
|
56
|
+
case y:
|
|
57
|
+
return "Fragment";
|
|
58
|
+
case w:
|
|
59
|
+
return "Profiler";
|
|
60
|
+
case E:
|
|
61
|
+
return "StrictMode";
|
|
62
|
+
case T:
|
|
63
|
+
return "Suspense";
|
|
64
|
+
case P:
|
|
65
|
+
return "SuspenseList";
|
|
66
|
+
case U:
|
|
67
|
+
return "Activity";
|
|
68
|
+
}
|
|
69
|
+
if (typeof f == "object")
|
|
70
|
+
switch (typeof f.tag == "number" && console.error(
|
|
71
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
|
+
), f.$$typeof) {
|
|
73
|
+
case x:
|
|
74
|
+
return "Portal";
|
|
75
|
+
case p:
|
|
76
|
+
return (f.displayName || "Context") + ".Provider";
|
|
77
|
+
case R:
|
|
78
|
+
return (f._context.displayName || "Context") + ".Consumer";
|
|
79
|
+
case S:
|
|
80
|
+
var k = f.render;
|
|
81
|
+
return f = f.displayName, f || (f = k.displayName || k.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
|
|
82
|
+
case C:
|
|
83
|
+
return k = f.displayName || null, k !== null ? k : e(f.type) || "Memo";
|
|
84
|
+
case $:
|
|
85
|
+
k = f._payload, f = f._init;
|
|
86
|
+
try {
|
|
87
|
+
return e(f(k));
|
|
88
|
+
} catch {
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
function t(f) {
|
|
94
|
+
return "" + f;
|
|
95
|
+
}
|
|
96
|
+
function n(f) {
|
|
97
|
+
try {
|
|
98
|
+
t(f);
|
|
99
|
+
var k = !1;
|
|
100
|
+
} catch {
|
|
101
|
+
k = !0;
|
|
102
|
+
}
|
|
103
|
+
if (k) {
|
|
104
|
+
k = console;
|
|
105
|
+
var _ = k.error, V = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
|
106
|
+
return _.call(
|
|
107
|
+
k,
|
|
108
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
109
|
+
V
|
|
110
|
+
), t(f);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function r(f) {
|
|
114
|
+
if (f === y) return "<>";
|
|
115
|
+
if (typeof f == "object" && f !== null && f.$$typeof === $)
|
|
116
|
+
return "<...>";
|
|
117
|
+
try {
|
|
118
|
+
var k = e(f);
|
|
119
|
+
return k ? "<" + k + ">" : "<...>";
|
|
120
|
+
} catch {
|
|
121
|
+
return "<...>";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function o() {
|
|
125
|
+
var f = N.A;
|
|
126
|
+
return f === null ? null : f.getOwner();
|
|
127
|
+
}
|
|
128
|
+
function s() {
|
|
129
|
+
return Error("react-stack-top-frame");
|
|
130
|
+
}
|
|
131
|
+
function i(f) {
|
|
132
|
+
if (z.call(f, "key")) {
|
|
133
|
+
var k = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
134
|
+
if (k && k.isReactWarning) return !1;
|
|
135
|
+
}
|
|
136
|
+
return f.key !== void 0;
|
|
137
|
+
}
|
|
138
|
+
function a(f, k) {
|
|
139
|
+
function _() {
|
|
140
|
+
se || (se = !0, console.error(
|
|
141
|
+
"%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)",
|
|
142
|
+
k
|
|
143
|
+
));
|
|
144
|
+
}
|
|
145
|
+
_.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
146
|
+
get: _,
|
|
147
|
+
configurable: !0
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function l() {
|
|
151
|
+
var f = e(this.type);
|
|
152
|
+
return J[f] || (J[f] = !0, console.error(
|
|
153
|
+
"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."
|
|
154
|
+
)), f = this.props.ref, f !== void 0 ? f : null;
|
|
155
|
+
}
|
|
156
|
+
function u(f, k, _, V, te, W, le, de) {
|
|
157
|
+
return _ = W.ref, f = {
|
|
158
|
+
$$typeof: g,
|
|
159
|
+
type: f,
|
|
160
|
+
key: k,
|
|
161
|
+
props: W,
|
|
162
|
+
_owner: te
|
|
163
|
+
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(f, "ref", {
|
|
164
|
+
enumerable: !1,
|
|
165
|
+
get: l
|
|
166
|
+
}) : Object.defineProperty(f, "ref", { enumerable: !1, value: null }), f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
167
|
+
configurable: !1,
|
|
168
|
+
enumerable: !1,
|
|
169
|
+
writable: !0,
|
|
170
|
+
value: 0
|
|
171
|
+
}), Object.defineProperty(f, "_debugInfo", {
|
|
172
|
+
configurable: !1,
|
|
173
|
+
enumerable: !1,
|
|
174
|
+
writable: !0,
|
|
175
|
+
value: null
|
|
176
|
+
}), Object.defineProperty(f, "_debugStack", {
|
|
177
|
+
configurable: !1,
|
|
178
|
+
enumerable: !1,
|
|
179
|
+
writable: !0,
|
|
180
|
+
value: le
|
|
181
|
+
}), Object.defineProperty(f, "_debugTask", {
|
|
182
|
+
configurable: !1,
|
|
183
|
+
enumerable: !1,
|
|
184
|
+
writable: !0,
|
|
185
|
+
value: de
|
|
186
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
187
|
+
}
|
|
188
|
+
function h(f, k, _, V, te, W, le, de) {
|
|
189
|
+
var M = k.children;
|
|
190
|
+
if (M !== void 0)
|
|
191
|
+
if (V)
|
|
192
|
+
if (ee(M)) {
|
|
193
|
+
for (V = 0; V < M.length; V++)
|
|
194
|
+
d(M[V]);
|
|
195
|
+
Object.freeze && Object.freeze(M);
|
|
196
|
+
} else
|
|
197
|
+
console.error(
|
|
198
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
199
|
+
);
|
|
200
|
+
else d(M);
|
|
201
|
+
if (z.call(k, "key")) {
|
|
202
|
+
M = e(f);
|
|
203
|
+
var K = Object.keys(k).filter(function(xe) {
|
|
204
|
+
return xe !== "key";
|
|
205
|
+
});
|
|
206
|
+
V = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", Y[M + V] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
207
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
208
|
+
let props = %s;
|
|
209
|
+
<%s {...props} />
|
|
210
|
+
React keys must be passed directly to JSX without using spread:
|
|
211
|
+
let props = %s;
|
|
212
|
+
<%s key={someKey} {...props} />`,
|
|
213
|
+
V,
|
|
214
|
+
M,
|
|
215
|
+
K,
|
|
216
|
+
M
|
|
217
|
+
), Y[M + V] = !0);
|
|
218
|
+
}
|
|
219
|
+
if (M = null, _ !== void 0 && (n(_), M = "" + _), i(k) && (n(k.key), M = "" + k.key), "key" in k) {
|
|
220
|
+
_ = {};
|
|
221
|
+
for (var me in k)
|
|
222
|
+
me !== "key" && (_[me] = k[me]);
|
|
223
|
+
} else _ = k;
|
|
224
|
+
return M && a(
|
|
225
|
+
_,
|
|
226
|
+
typeof f == "function" ? f.displayName || f.name || "Unknown" : f
|
|
227
|
+
), u(
|
|
228
|
+
f,
|
|
229
|
+
M,
|
|
230
|
+
W,
|
|
231
|
+
te,
|
|
232
|
+
o(),
|
|
233
|
+
_,
|
|
234
|
+
le,
|
|
235
|
+
de
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
function d(f) {
|
|
239
|
+
typeof f == "object" && f !== null && f.$$typeof === g && f._store && (f._store.validated = 1);
|
|
240
|
+
}
|
|
241
|
+
var m = B, g = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), p = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), N = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, z = Object.prototype.hasOwnProperty, ee = Array.isArray, oe = console.createTask ? console.createTask : function() {
|
|
242
|
+
return null;
|
|
243
|
+
};
|
|
244
|
+
m = {
|
|
245
|
+
react_stack_bottom_frame: function(f) {
|
|
246
|
+
return f();
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
var se, J = {}, O = m.react_stack_bottom_frame.bind(
|
|
250
|
+
m,
|
|
251
|
+
s
|
|
252
|
+
)(), Q = oe(r(s)), Y = {};
|
|
253
|
+
Me.Fragment = y, Me.jsx = function(f, k, _, V, te) {
|
|
254
|
+
var W = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return h(
|
|
256
|
+
f,
|
|
257
|
+
k,
|
|
258
|
+
_,
|
|
259
|
+
!1,
|
|
260
|
+
V,
|
|
261
|
+
te,
|
|
262
|
+
W ? Error("react-stack-top-frame") : O,
|
|
263
|
+
W ? oe(r(f)) : Q
|
|
264
|
+
);
|
|
265
|
+
}, Me.jsxs = function(f, k, _, V, te) {
|
|
266
|
+
var W = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
267
|
+
return h(
|
|
268
|
+
f,
|
|
269
|
+
k,
|
|
270
|
+
_,
|
|
271
|
+
!0,
|
|
272
|
+
V,
|
|
273
|
+
te,
|
|
274
|
+
W ? Error("react-stack-top-frame") : O,
|
|
275
|
+
W ? oe(r(f)) : Q
|
|
276
|
+
);
|
|
277
|
+
};
|
|
278
|
+
})()), Me;
|
|
279
|
+
}
|
|
280
|
+
var Bt;
|
|
281
|
+
function Vr() {
|
|
282
|
+
return Bt || (Bt = 1, process.env.NODE_ENV === "production" ? He.exports = Mr() : He.exports = Or()), He.exports;
|
|
283
|
+
}
|
|
284
|
+
var c = Vr();
|
|
285
|
+
const Fr = typeof window < "u" ? Lr : ne;
|
|
286
|
+
function It(e, t) {
|
|
287
|
+
const n = q(e);
|
|
288
|
+
Fr(() => {
|
|
289
|
+
n.current = e;
|
|
290
|
+
}, [e]), ne(() => {
|
|
291
|
+
if (t === null)
|
|
292
|
+
return;
|
|
293
|
+
const r = setInterval(() => {
|
|
294
|
+
n.current();
|
|
295
|
+
}, t);
|
|
296
|
+
return () => {
|
|
297
|
+
clearInterval(r);
|
|
298
|
+
};
|
|
299
|
+
}, [t]);
|
|
300
|
+
}
|
|
301
|
+
function $r(e) {
|
|
302
|
+
const [, t] = G(0);
|
|
303
|
+
It(() => t((n) => n + 1), e);
|
|
304
|
+
}
|
|
305
|
+
const Ut = (e) => {
|
|
306
|
+
let t;
|
|
307
|
+
const n = /* @__PURE__ */ new Set(), r = (u, h) => {
|
|
308
|
+
const d = typeof u == "function" ? u(t) : u;
|
|
309
|
+
if (!Object.is(d, t)) {
|
|
310
|
+
const m = t;
|
|
311
|
+
t = h ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((g) => g(t, m));
|
|
312
|
+
}
|
|
313
|
+
}, o = () => t, a = { setState: r, getState: o, getInitialState: () => l, subscribe: (u) => (n.add(u), () => n.delete(u)) }, l = t = e(r, o, a);
|
|
314
|
+
return a;
|
|
315
|
+
}, Hr = ((e) => e ? Ut(e) : Ut), zr = (e) => e;
|
|
316
|
+
function _t(e, t = zr) {
|
|
317
|
+
const n = B.useSyncExternalStore(
|
|
318
|
+
e.subscribe,
|
|
319
|
+
B.useCallback(() => t(e.getState()), [e, t]),
|
|
320
|
+
B.useCallback(() => t(e.getInitialState()), [e, t])
|
|
321
|
+
);
|
|
322
|
+
return B.useDebugValue(n), n;
|
|
323
|
+
}
|
|
324
|
+
const Yt = (e) => {
|
|
325
|
+
const t = Hr(e), n = (r) => _t(t, r);
|
|
326
|
+
return Object.assign(n, t), n;
|
|
327
|
+
}, hn = ((e) => e ? Yt(e) : Yt), Br = (e, t) => hn((n) => ({
|
|
328
|
+
delay: 0,
|
|
329
|
+
startDate: e,
|
|
330
|
+
endDate: t,
|
|
331
|
+
startTime: e.getTime(),
|
|
332
|
+
endTime: t.getTime(),
|
|
333
|
+
setDelay: (r) => n({ delay: r }),
|
|
334
|
+
setStartDate: (r) => n({ startDate: r }),
|
|
335
|
+
setEndDate: (r) => n({ endDate: r })
|
|
336
|
+
})), mn = pn(
|
|
337
|
+
null
|
|
338
|
+
), Ur = ({
|
|
339
|
+
children: e,
|
|
340
|
+
startDate: t,
|
|
341
|
+
endDate: n
|
|
342
|
+
}) => {
|
|
343
|
+
const r = q(
|
|
344
|
+
null
|
|
345
|
+
);
|
|
346
|
+
return r.current || (r.current = Br(t, n)), /* @__PURE__ */ c.jsx(mn.Provider, { value: r.current, children: e });
|
|
347
|
+
}, Z = (e) => {
|
|
348
|
+
const t = jt(mn);
|
|
349
|
+
if (!t)
|
|
350
|
+
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
351
|
+
return _t(t, e);
|
|
352
|
+
};
|
|
353
|
+
var X = function() {
|
|
354
|
+
return X = Object.assign || function(t) {
|
|
355
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
356
|
+
n = arguments[r];
|
|
357
|
+
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
358
|
+
}
|
|
359
|
+
return t;
|
|
360
|
+
}, X.apply(this, arguments);
|
|
361
|
+
};
|
|
362
|
+
function we(e, t, n) {
|
|
363
|
+
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
364
|
+
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
365
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
366
|
+
}
|
|
367
|
+
function Yr(e) {
|
|
368
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
369
|
+
return function(n) {
|
|
370
|
+
return t[n] === void 0 && (t[n] = e(n)), t[n];
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
var Wr = /^((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|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)-.*))$/, qr = /* @__PURE__ */ Yr(
|
|
374
|
+
function(e) {
|
|
375
|
+
return Wr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
376
|
+
}
|
|
377
|
+
/* Z+1 */
|
|
378
|
+
), D = "-ms-", Ve = "-moz-", L = "-webkit-", gn = "comm", nt = "rule", At = "decl", Kr = "@import", yn = "@keyframes", Gr = "@layer", vn = Math.abs, Lt = String.fromCharCode, pt = Object.assign;
|
|
379
|
+
function Zr(e, t) {
|
|
380
|
+
return H(e, 0) ^ 45 ? (((t << 2 ^ H(e, 0)) << 2 ^ H(e, 1)) << 2 ^ H(e, 2)) << 2 ^ H(e, 3) : 0;
|
|
381
|
+
}
|
|
382
|
+
function Sn(e) {
|
|
383
|
+
return e.trim();
|
|
384
|
+
}
|
|
385
|
+
function ue(e, t) {
|
|
386
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
387
|
+
}
|
|
388
|
+
function j(e, t, n) {
|
|
389
|
+
return e.replace(t, n);
|
|
390
|
+
}
|
|
391
|
+
function We(e, t, n) {
|
|
392
|
+
return e.indexOf(t, n);
|
|
393
|
+
}
|
|
394
|
+
function H(e, t) {
|
|
395
|
+
return e.charCodeAt(t) | 0;
|
|
396
|
+
}
|
|
397
|
+
function Pe(e, t, n) {
|
|
398
|
+
return e.slice(t, n);
|
|
399
|
+
}
|
|
400
|
+
function ce(e) {
|
|
401
|
+
return e.length;
|
|
402
|
+
}
|
|
403
|
+
function wn(e) {
|
|
404
|
+
return e.length;
|
|
405
|
+
}
|
|
406
|
+
function Oe(e, t) {
|
|
407
|
+
return t.push(e), e;
|
|
408
|
+
}
|
|
409
|
+
function Xr(e, t) {
|
|
410
|
+
return e.map(t).join("");
|
|
411
|
+
}
|
|
412
|
+
function Wt(e, t) {
|
|
413
|
+
return e.filter(function(n) {
|
|
414
|
+
return !ue(n, t);
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
var rt = 1, Re = 1, bn = 0, re = 0, F = 0, _e = "";
|
|
418
|
+
function ot(e, t, n, r, o, s, i, a) {
|
|
419
|
+
return { value: e, root: t, parent: n, type: r, props: o, children: s, line: rt, column: Re, length: i, return: "", siblings: a };
|
|
420
|
+
}
|
|
421
|
+
function pe(e, t) {
|
|
422
|
+
return pt(ot("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
423
|
+
}
|
|
424
|
+
function Ee(e) {
|
|
425
|
+
for (; e.root; )
|
|
426
|
+
e = pe(e.root, { children: [e] });
|
|
427
|
+
Oe(e, e.siblings);
|
|
428
|
+
}
|
|
429
|
+
function Jr() {
|
|
430
|
+
return F;
|
|
431
|
+
}
|
|
432
|
+
function Qr() {
|
|
433
|
+
return F = re > 0 ? H(_e, --re) : 0, Re--, F === 10 && (Re = 1, rt--), F;
|
|
434
|
+
}
|
|
435
|
+
function ae() {
|
|
436
|
+
return F = re < bn ? H(_e, re++) : 0, Re++, F === 10 && (Re = 1, rt++), F;
|
|
437
|
+
}
|
|
438
|
+
function ve() {
|
|
439
|
+
return H(_e, re);
|
|
440
|
+
}
|
|
441
|
+
function qe() {
|
|
442
|
+
return re;
|
|
443
|
+
}
|
|
444
|
+
function st(e, t) {
|
|
445
|
+
return Pe(_e, e, t);
|
|
446
|
+
}
|
|
447
|
+
function ht(e) {
|
|
448
|
+
switch (e) {
|
|
449
|
+
// \0 \t \n \r \s whitespace token
|
|
450
|
+
case 0:
|
|
451
|
+
case 9:
|
|
452
|
+
case 10:
|
|
453
|
+
case 13:
|
|
454
|
+
case 32:
|
|
455
|
+
return 5;
|
|
456
|
+
// ! + , / > @ ~ isolate token
|
|
457
|
+
case 33:
|
|
458
|
+
case 43:
|
|
459
|
+
case 44:
|
|
460
|
+
case 47:
|
|
461
|
+
case 62:
|
|
462
|
+
case 64:
|
|
463
|
+
case 126:
|
|
464
|
+
// ; { } breakpoint token
|
|
465
|
+
case 59:
|
|
466
|
+
case 123:
|
|
467
|
+
case 125:
|
|
468
|
+
return 4;
|
|
469
|
+
// : accompanied token
|
|
470
|
+
case 58:
|
|
471
|
+
return 3;
|
|
472
|
+
// " ' ( [ opening delimit token
|
|
473
|
+
case 34:
|
|
474
|
+
case 39:
|
|
475
|
+
case 40:
|
|
476
|
+
case 91:
|
|
477
|
+
return 2;
|
|
478
|
+
// ) ] closing delimit token
|
|
479
|
+
case 41:
|
|
480
|
+
case 93:
|
|
481
|
+
return 1;
|
|
482
|
+
}
|
|
483
|
+
return 0;
|
|
484
|
+
}
|
|
485
|
+
function eo(e) {
|
|
486
|
+
return rt = Re = 1, bn = ce(_e = e), re = 0, [];
|
|
487
|
+
}
|
|
488
|
+
function to(e) {
|
|
489
|
+
return _e = "", e;
|
|
490
|
+
}
|
|
491
|
+
function lt(e) {
|
|
492
|
+
return Sn(st(re - 1, mt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
493
|
+
}
|
|
494
|
+
function no(e) {
|
|
495
|
+
for (; (F = ve()) && F < 33; )
|
|
496
|
+
ae();
|
|
497
|
+
return ht(e) > 2 || ht(F) > 3 ? "" : " ";
|
|
498
|
+
}
|
|
499
|
+
function ro(e, t) {
|
|
500
|
+
for (; --t && ae() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
501
|
+
;
|
|
502
|
+
return st(e, qe() + (t < 6 && ve() == 32 && ae() == 32));
|
|
503
|
+
}
|
|
504
|
+
function mt(e) {
|
|
505
|
+
for (; ae(); )
|
|
506
|
+
switch (F) {
|
|
507
|
+
// ] ) " '
|
|
508
|
+
case e:
|
|
509
|
+
return re;
|
|
510
|
+
// " '
|
|
511
|
+
case 34:
|
|
512
|
+
case 39:
|
|
513
|
+
e !== 34 && e !== 39 && mt(F);
|
|
514
|
+
break;
|
|
515
|
+
// (
|
|
516
|
+
case 40:
|
|
517
|
+
e === 41 && mt(e);
|
|
518
|
+
break;
|
|
519
|
+
// \
|
|
520
|
+
case 92:
|
|
521
|
+
ae();
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
return re;
|
|
525
|
+
}
|
|
526
|
+
function oo(e, t) {
|
|
527
|
+
for (; ae() && e + F !== 57; )
|
|
528
|
+
if (e + F === 84 && ve() === 47)
|
|
529
|
+
break;
|
|
530
|
+
return "/*" + st(t, re - 1) + "*" + Lt(e === 47 ? e : ae());
|
|
531
|
+
}
|
|
532
|
+
function so(e) {
|
|
533
|
+
for (; !ht(ve()); )
|
|
534
|
+
ae();
|
|
535
|
+
return st(e, re);
|
|
536
|
+
}
|
|
537
|
+
function io(e) {
|
|
538
|
+
return to(Ke("", null, null, null, [""], e = eo(e), 0, [0], e));
|
|
539
|
+
}
|
|
540
|
+
function Ke(e, t, n, r, o, s, i, a, l) {
|
|
541
|
+
for (var u = 0, h = 0, d = i, m = 0, g = 0, x = 0, y = 1, E = 1, w = 1, R = 0, p = "", S = o, T = s, P = r, C = p; E; )
|
|
542
|
+
switch (x = R, R = ae()) {
|
|
543
|
+
// (
|
|
544
|
+
case 40:
|
|
545
|
+
if (x != 108 && H(C, d - 1) == 58) {
|
|
546
|
+
We(C += j(lt(R), "&", "&\f"), "&\f", vn(u ? a[u - 1] : 0)) != -1 && (w = -1);
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
// " ' [
|
|
550
|
+
case 34:
|
|
551
|
+
case 39:
|
|
552
|
+
case 91:
|
|
553
|
+
C += lt(R);
|
|
554
|
+
break;
|
|
555
|
+
// \t \n \r \s
|
|
556
|
+
case 9:
|
|
557
|
+
case 10:
|
|
558
|
+
case 13:
|
|
559
|
+
case 32:
|
|
560
|
+
C += no(x);
|
|
561
|
+
break;
|
|
562
|
+
// \
|
|
563
|
+
case 92:
|
|
564
|
+
C += ro(qe() - 1, 7);
|
|
565
|
+
continue;
|
|
566
|
+
// /
|
|
567
|
+
case 47:
|
|
568
|
+
switch (ve()) {
|
|
569
|
+
case 42:
|
|
570
|
+
case 47:
|
|
571
|
+
Oe(ao(oo(ae(), qe()), t, n, l), l);
|
|
572
|
+
break;
|
|
573
|
+
default:
|
|
574
|
+
C += "/";
|
|
575
|
+
}
|
|
576
|
+
break;
|
|
577
|
+
// {
|
|
578
|
+
case 123 * y:
|
|
579
|
+
a[u++] = ce(C) * w;
|
|
580
|
+
// } ; \0
|
|
581
|
+
case 125 * y:
|
|
582
|
+
case 59:
|
|
583
|
+
case 0:
|
|
584
|
+
switch (R) {
|
|
585
|
+
// \0 }
|
|
586
|
+
case 0:
|
|
587
|
+
case 125:
|
|
588
|
+
E = 0;
|
|
589
|
+
// ;
|
|
590
|
+
case 59 + h:
|
|
591
|
+
w == -1 && (C = j(C, /\f/g, "")), g > 0 && ce(C) - d && Oe(g > 32 ? Kt(C + ";", r, n, d - 1, l) : Kt(j(C, " ", "") + ";", r, n, d - 2, l), l);
|
|
592
|
+
break;
|
|
593
|
+
// @ ;
|
|
594
|
+
case 59:
|
|
595
|
+
C += ";";
|
|
596
|
+
// { rule/at-rule
|
|
597
|
+
default:
|
|
598
|
+
if (Oe(P = qt(C, t, n, u, h, o, a, p, S = [], T = [], d, s), s), R === 123)
|
|
599
|
+
if (h === 0)
|
|
600
|
+
Ke(C, t, P, P, S, s, d, a, T);
|
|
601
|
+
else
|
|
602
|
+
switch (m === 99 && H(C, 3) === 110 ? 100 : m) {
|
|
603
|
+
// d l m s
|
|
604
|
+
case 100:
|
|
605
|
+
case 108:
|
|
606
|
+
case 109:
|
|
607
|
+
case 115:
|
|
608
|
+
Ke(e, P, P, r && Oe(qt(e, P, P, 0, 0, o, a, p, o, S = [], d, T), T), o, T, d, a, r ? S : T);
|
|
609
|
+
break;
|
|
610
|
+
default:
|
|
611
|
+
Ke(C, P, P, P, [""], T, 0, a, T);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
u = h = g = 0, y = w = 1, p = C = "", d = i;
|
|
615
|
+
break;
|
|
616
|
+
// :
|
|
617
|
+
case 58:
|
|
618
|
+
d = 1 + ce(C), g = x;
|
|
619
|
+
default:
|
|
620
|
+
if (y < 1) {
|
|
621
|
+
if (R == 123)
|
|
622
|
+
--y;
|
|
623
|
+
else if (R == 125 && y++ == 0 && Qr() == 125)
|
|
624
|
+
continue;
|
|
625
|
+
}
|
|
626
|
+
switch (C += Lt(R), R * y) {
|
|
627
|
+
// &
|
|
628
|
+
case 38:
|
|
629
|
+
w = h > 0 ? 1 : (C += "\f", -1);
|
|
630
|
+
break;
|
|
631
|
+
// ,
|
|
632
|
+
case 44:
|
|
633
|
+
a[u++] = (ce(C) - 1) * w, w = 1;
|
|
634
|
+
break;
|
|
635
|
+
// @
|
|
636
|
+
case 64:
|
|
637
|
+
ve() === 45 && (C += lt(ae())), m = ve(), h = d = ce(p = C += so(qe())), R++;
|
|
638
|
+
break;
|
|
639
|
+
// -
|
|
640
|
+
case 45:
|
|
641
|
+
x === 45 && ce(C) == 2 && (y = 0);
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
return s;
|
|
645
|
+
}
|
|
646
|
+
function qt(e, t, n, r, o, s, i, a, l, u, h, d) {
|
|
647
|
+
for (var m = o - 1, g = o === 0 ? s : [""], x = wn(g), y = 0, E = 0, w = 0; y < r; ++y)
|
|
648
|
+
for (var R = 0, p = Pe(e, m + 1, m = vn(E = i[y])), S = e; R < x; ++R)
|
|
649
|
+
(S = Sn(E > 0 ? g[R] + " " + p : j(p, /&\f/g, g[R]))) && (l[w++] = S);
|
|
650
|
+
return ot(e, t, n, o === 0 ? nt : a, l, u, h, d);
|
|
651
|
+
}
|
|
652
|
+
function ao(e, t, n, r) {
|
|
653
|
+
return ot(e, t, n, gn, Lt(Jr()), Pe(e, 2, -2), 0, r);
|
|
654
|
+
}
|
|
655
|
+
function Kt(e, t, n, r, o) {
|
|
656
|
+
return ot(e, t, n, At, Pe(e, 0, r), Pe(e, r + 1, -1), r, o);
|
|
657
|
+
}
|
|
658
|
+
function xn(e, t, n) {
|
|
659
|
+
switch (Zr(e, t)) {
|
|
660
|
+
// color-adjust
|
|
661
|
+
case 5103:
|
|
662
|
+
return L + "print-" + e + e;
|
|
663
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
664
|
+
case 5737:
|
|
665
|
+
case 4201:
|
|
666
|
+
case 3177:
|
|
667
|
+
case 3433:
|
|
668
|
+
case 1641:
|
|
669
|
+
case 4457:
|
|
670
|
+
case 2921:
|
|
671
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
672
|
+
case 5572:
|
|
673
|
+
case 6356:
|
|
674
|
+
case 5844:
|
|
675
|
+
case 3191:
|
|
676
|
+
case 6645:
|
|
677
|
+
case 3005:
|
|
678
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
679
|
+
case 6391:
|
|
680
|
+
case 5879:
|
|
681
|
+
case 5623:
|
|
682
|
+
case 6135:
|
|
683
|
+
case 4599:
|
|
684
|
+
case 4855:
|
|
685
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
686
|
+
case 4215:
|
|
687
|
+
case 6389:
|
|
688
|
+
case 5109:
|
|
689
|
+
case 5365:
|
|
690
|
+
case 5621:
|
|
691
|
+
case 3829:
|
|
692
|
+
return L + e + e;
|
|
693
|
+
// tab-size
|
|
694
|
+
case 4789:
|
|
695
|
+
return Ve + e + e;
|
|
696
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
697
|
+
case 5349:
|
|
698
|
+
case 4246:
|
|
699
|
+
case 4810:
|
|
700
|
+
case 6968:
|
|
701
|
+
case 2756:
|
|
702
|
+
return L + e + Ve + e + D + e + e;
|
|
703
|
+
// writing-mode
|
|
704
|
+
case 5936:
|
|
705
|
+
switch (H(e, t + 11)) {
|
|
706
|
+
// vertical-l(r)
|
|
707
|
+
case 114:
|
|
708
|
+
return L + e + D + j(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
709
|
+
// vertical-r(l)
|
|
710
|
+
case 108:
|
|
711
|
+
return L + e + D + j(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
712
|
+
// horizontal(-)tb
|
|
713
|
+
case 45:
|
|
714
|
+
return L + e + D + j(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
715
|
+
}
|
|
716
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
717
|
+
case 6828:
|
|
718
|
+
case 4268:
|
|
719
|
+
case 2903:
|
|
720
|
+
return L + e + D + e + e;
|
|
721
|
+
// order
|
|
722
|
+
case 6165:
|
|
723
|
+
return L + e + D + "flex-" + e + e;
|
|
724
|
+
// align-items
|
|
725
|
+
case 5187:
|
|
726
|
+
return L + e + j(e, /(\w+).+(:[^]+)/, L + "box-$1$2" + D + "flex-$1$2") + e;
|
|
727
|
+
// align-self
|
|
728
|
+
case 5443:
|
|
729
|
+
return L + e + D + "flex-item-" + j(e, /flex-|-self/g, "") + (ue(e, /flex-|baseline/) ? "" : D + "grid-row-" + j(e, /flex-|-self/g, "")) + e;
|
|
730
|
+
// align-content
|
|
731
|
+
case 4675:
|
|
732
|
+
return L + e + D + "flex-line-pack" + j(e, /align-content|flex-|-self/g, "") + e;
|
|
733
|
+
// flex-shrink
|
|
734
|
+
case 5548:
|
|
735
|
+
return L + e + D + j(e, "shrink", "negative") + e;
|
|
736
|
+
// flex-basis
|
|
737
|
+
case 5292:
|
|
738
|
+
return L + e + D + j(e, "basis", "preferred-size") + e;
|
|
739
|
+
// flex-grow
|
|
740
|
+
case 6060:
|
|
741
|
+
return L + "box-" + j(e, "-grow", "") + L + e + D + j(e, "grow", "positive") + e;
|
|
742
|
+
// transition
|
|
743
|
+
case 4554:
|
|
744
|
+
return L + j(e, /([^-])(transform)/g, "$1" + L + "$2") + e;
|
|
745
|
+
// cursor
|
|
746
|
+
case 6187:
|
|
747
|
+
return j(j(j(e, /(zoom-|grab)/, L + "$1"), /(image-set)/, L + "$1"), e, "") + e;
|
|
748
|
+
// background, background-image
|
|
749
|
+
case 5495:
|
|
750
|
+
case 3959:
|
|
751
|
+
return j(e, /(image-set\([^]*)/, L + "$1$`$1");
|
|
752
|
+
// justify-content
|
|
753
|
+
case 4968:
|
|
754
|
+
return j(j(e, /(.+:)(flex-)?(.*)/, L + "box-pack:$3" + D + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + L + e + e;
|
|
755
|
+
// justify-self
|
|
756
|
+
case 4200:
|
|
757
|
+
if (!ue(e, /flex-|baseline/)) return D + "grid-column-align" + Pe(e, t) + e;
|
|
758
|
+
break;
|
|
759
|
+
// grid-template-(columns|rows)
|
|
760
|
+
case 2592:
|
|
761
|
+
case 3360:
|
|
762
|
+
return D + j(e, "template-", "") + e;
|
|
763
|
+
// grid-(row|column)-start
|
|
764
|
+
case 4384:
|
|
765
|
+
case 3616:
|
|
766
|
+
return n && n.some(function(r, o) {
|
|
767
|
+
return t = o, ue(r.props, /grid-\w+-end/);
|
|
768
|
+
}) ? ~We(e + (n = n[t].value), "span", 0) ? e : D + j(e, "-start", "") + e + D + "grid-row-span:" + (~We(n, "span", 0) ? ue(n, /\d+/) : +ue(n, /\d+/) - +ue(e, /\d+/)) + ";" : D + j(e, "-start", "") + e;
|
|
769
|
+
// grid-(row|column)-end
|
|
770
|
+
case 4896:
|
|
771
|
+
case 4128:
|
|
772
|
+
return n && n.some(function(r) {
|
|
773
|
+
return ue(r.props, /grid-\w+-start/);
|
|
774
|
+
}) ? e : D + j(j(e, "-end", "-span"), "span ", "") + e;
|
|
775
|
+
// (margin|padding)-inline-(start|end)
|
|
776
|
+
case 4095:
|
|
777
|
+
case 3583:
|
|
778
|
+
case 4068:
|
|
779
|
+
case 2532:
|
|
780
|
+
return j(e, /(.+)-inline(.+)/, L + "$1$2") + e;
|
|
781
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
782
|
+
case 8116:
|
|
783
|
+
case 7059:
|
|
784
|
+
case 5753:
|
|
785
|
+
case 5535:
|
|
786
|
+
case 5445:
|
|
787
|
+
case 5701:
|
|
788
|
+
case 4933:
|
|
789
|
+
case 4677:
|
|
790
|
+
case 5533:
|
|
791
|
+
case 5789:
|
|
792
|
+
case 5021:
|
|
793
|
+
case 4765:
|
|
794
|
+
if (ce(e) - 1 - t > 6)
|
|
795
|
+
switch (H(e, t + 1)) {
|
|
796
|
+
// (m)ax-content, (m)in-content
|
|
797
|
+
case 109:
|
|
798
|
+
if (H(e, t + 4) !== 45)
|
|
799
|
+
break;
|
|
800
|
+
// (f)ill-available, (f)it-content
|
|
801
|
+
case 102:
|
|
802
|
+
return j(e, /(.+:)(.+)-([^]+)/, "$1" + L + "$2-$3$1" + Ve + (H(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
803
|
+
// (s)tretch
|
|
804
|
+
case 115:
|
|
805
|
+
return ~We(e, "stretch", 0) ? xn(j(e, "stretch", "fill-available"), t, n) + e : e;
|
|
806
|
+
}
|
|
807
|
+
break;
|
|
808
|
+
// grid-(column|row)
|
|
809
|
+
case 5152:
|
|
810
|
+
case 5920:
|
|
811
|
+
return j(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, s, i, a, l, u) {
|
|
812
|
+
return D + o + ":" + s + u + (i ? D + o + "-span:" + (a ? l : +l - +s) + u : "") + e;
|
|
813
|
+
});
|
|
814
|
+
// position: sticky
|
|
815
|
+
case 4949:
|
|
816
|
+
if (H(e, t + 6) === 121)
|
|
817
|
+
return j(e, ":", ":" + L) + e;
|
|
818
|
+
break;
|
|
819
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
820
|
+
case 6444:
|
|
821
|
+
switch (H(e, H(e, 14) === 45 ? 18 : 11)) {
|
|
822
|
+
// (inline-)?fle(x)
|
|
823
|
+
case 120:
|
|
824
|
+
return j(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + L + (H(e, 14) === 45 ? "inline-" : "") + "box$3$1" + L + "$2$3$1" + D + "$2box$3") + e;
|
|
825
|
+
// (inline-)?gri(d)
|
|
826
|
+
case 100:
|
|
827
|
+
return j(e, ":", ":" + D) + e;
|
|
828
|
+
}
|
|
829
|
+
break;
|
|
830
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
831
|
+
case 5719:
|
|
832
|
+
case 2647:
|
|
833
|
+
case 2135:
|
|
834
|
+
case 3927:
|
|
835
|
+
case 2391:
|
|
836
|
+
return j(e, "scroll-", "scroll-snap-") + e;
|
|
837
|
+
}
|
|
838
|
+
return e;
|
|
839
|
+
}
|
|
840
|
+
function Xe(e, t) {
|
|
841
|
+
for (var n = "", r = 0; r < e.length; r++)
|
|
842
|
+
n += t(e[r], r, e, t) || "";
|
|
843
|
+
return n;
|
|
844
|
+
}
|
|
845
|
+
function co(e, t, n, r) {
|
|
846
|
+
switch (e.type) {
|
|
847
|
+
case Gr:
|
|
848
|
+
if (e.children.length) break;
|
|
849
|
+
case Kr:
|
|
850
|
+
case At:
|
|
851
|
+
return e.return = e.return || e.value;
|
|
852
|
+
case gn:
|
|
853
|
+
return "";
|
|
854
|
+
case yn:
|
|
855
|
+
return e.return = e.value + "{" + Xe(e.children, r) + "}";
|
|
856
|
+
case nt:
|
|
857
|
+
if (!ce(e.value = e.props.join(","))) return "";
|
|
858
|
+
}
|
|
859
|
+
return ce(n = Xe(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
860
|
+
}
|
|
861
|
+
function lo(e) {
|
|
862
|
+
var t = wn(e);
|
|
863
|
+
return function(n, r, o, s) {
|
|
864
|
+
for (var i = "", a = 0; a < t; a++)
|
|
865
|
+
i += e[a](n, r, o, s) || "";
|
|
866
|
+
return i;
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
function uo(e) {
|
|
870
|
+
return function(t) {
|
|
871
|
+
t.root || (t = t.return) && e(t);
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function fo(e, t, n, r) {
|
|
875
|
+
if (e.length > -1 && !e.return)
|
|
876
|
+
switch (e.type) {
|
|
877
|
+
case At:
|
|
878
|
+
e.return = xn(e.value, e.length, n);
|
|
879
|
+
return;
|
|
880
|
+
case yn:
|
|
881
|
+
return Xe([pe(e, { value: j(e.value, "@", "@" + L) })], r);
|
|
882
|
+
case nt:
|
|
883
|
+
if (e.length)
|
|
884
|
+
return Xr(n = e.props, function(o) {
|
|
885
|
+
switch (ue(o, r = /(::plac\w+|:read-\w+)/)) {
|
|
886
|
+
// :read-(only|write)
|
|
887
|
+
case ":read-only":
|
|
888
|
+
case ":read-write":
|
|
889
|
+
Ee(pe(e, { props: [j(o, /:(read-\w+)/, ":" + Ve + "$1")] })), Ee(pe(e, { props: [o] })), pt(e, { props: Wt(n, r) });
|
|
890
|
+
break;
|
|
891
|
+
// :placeholder
|
|
892
|
+
case "::placeholder":
|
|
893
|
+
Ee(pe(e, { props: [j(o, /:(plac\w+)/, ":" + L + "input-$1")] })), Ee(pe(e, { props: [j(o, /:(plac\w+)/, ":" + Ve + "$1")] })), Ee(pe(e, { props: [j(o, /:(plac\w+)/, D + "input-$1")] })), Ee(pe(e, { props: [o] })), pt(e, { props: Wt(n, r) });
|
|
894
|
+
break;
|
|
895
|
+
}
|
|
896
|
+
return "";
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
var po = {
|
|
901
|
+
animationIterationCount: 1,
|
|
902
|
+
aspectRatio: 1,
|
|
903
|
+
borderImageOutset: 1,
|
|
904
|
+
borderImageSlice: 1,
|
|
905
|
+
borderImageWidth: 1,
|
|
906
|
+
boxFlex: 1,
|
|
907
|
+
boxFlexGroup: 1,
|
|
908
|
+
boxOrdinalGroup: 1,
|
|
909
|
+
columnCount: 1,
|
|
910
|
+
columns: 1,
|
|
911
|
+
flex: 1,
|
|
912
|
+
flexGrow: 1,
|
|
913
|
+
flexPositive: 1,
|
|
914
|
+
flexShrink: 1,
|
|
915
|
+
flexNegative: 1,
|
|
916
|
+
flexOrder: 1,
|
|
917
|
+
gridRow: 1,
|
|
918
|
+
gridRowEnd: 1,
|
|
919
|
+
gridRowSpan: 1,
|
|
920
|
+
gridRowStart: 1,
|
|
921
|
+
gridColumn: 1,
|
|
922
|
+
gridColumnEnd: 1,
|
|
923
|
+
gridColumnSpan: 1,
|
|
924
|
+
gridColumnStart: 1,
|
|
925
|
+
msGridRow: 1,
|
|
926
|
+
msGridRowSpan: 1,
|
|
927
|
+
msGridColumn: 1,
|
|
928
|
+
msGridColumnSpan: 1,
|
|
929
|
+
fontWeight: 1,
|
|
930
|
+
lineHeight: 1,
|
|
931
|
+
opacity: 1,
|
|
932
|
+
order: 1,
|
|
933
|
+
orphans: 1,
|
|
934
|
+
tabSize: 1,
|
|
935
|
+
widows: 1,
|
|
936
|
+
zIndex: 1,
|
|
937
|
+
zoom: 1,
|
|
938
|
+
WebkitLineClamp: 1,
|
|
939
|
+
// SVG-related properties
|
|
940
|
+
fillOpacity: 1,
|
|
941
|
+
floodOpacity: 1,
|
|
942
|
+
stopOpacity: 1,
|
|
943
|
+
strokeDasharray: 1,
|
|
944
|
+
strokeDashoffset: 1,
|
|
945
|
+
strokeMiterlimit: 1,
|
|
946
|
+
strokeOpacity: 1,
|
|
947
|
+
strokeWidth: 1
|
|
948
|
+
}, be = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", En = "active", Cn = "data-styled-version", it = "6.1.19", Dt = `/*!sc*/
|
|
949
|
+
`, Je = typeof window < "u" && typeof document < "u", ho = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Gt = /invalid hook call/i, ze = /* @__PURE__ */ new Set(), mo = function(e, t) {
|
|
950
|
+
if (process.env.NODE_ENV !== "production") {
|
|
951
|
+
var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
|
|
952
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
953
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
954
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
955
|
+
`, o = console.error;
|
|
956
|
+
try {
|
|
957
|
+
var s = !0;
|
|
958
|
+
console.error = function(i) {
|
|
959
|
+
for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
|
|
960
|
+
Gt.test(i) ? (s = !1, ze.delete(r)) : o.apply(void 0, we([i], a, !1));
|
|
961
|
+
}, q(), s && !ze.has(r) && (console.warn(r), ze.add(r));
|
|
962
|
+
} catch (i) {
|
|
963
|
+
Gt.test(i.message) && ze.delete(r);
|
|
964
|
+
} finally {
|
|
965
|
+
console.error = o;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}, at = Object.freeze([]), ke = Object.freeze({});
|
|
969
|
+
function go(e, t, n) {
|
|
970
|
+
return n === void 0 && (n = ke), e.theme !== n.theme && e.theme || t || n.theme;
|
|
971
|
+
}
|
|
972
|
+
var gt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), yo = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, vo = /(^-|-$)/g;
|
|
973
|
+
function Zt(e) {
|
|
974
|
+
return e.replace(yo, "-").replace(vo, "");
|
|
975
|
+
}
|
|
976
|
+
var So = /(a)(d)/gi, Be = 52, Xt = function(e) {
|
|
977
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
978
|
+
};
|
|
979
|
+
function yt(e) {
|
|
980
|
+
var t, n = "";
|
|
981
|
+
for (t = Math.abs(e); t > Be; t = t / Be | 0) n = Xt(t % Be) + n;
|
|
982
|
+
return (Xt(t % Be) + n).replace(So, "$1-$2");
|
|
983
|
+
}
|
|
984
|
+
var ut, Pn = 5381, ge = function(e, t) {
|
|
985
|
+
for (var n = t.length; n; ) e = 33 * e ^ t.charCodeAt(--n);
|
|
986
|
+
return e;
|
|
987
|
+
}, Rn = function(e) {
|
|
988
|
+
return ge(Pn, e);
|
|
989
|
+
};
|
|
990
|
+
function kn(e) {
|
|
991
|
+
return yt(Rn(e) >>> 0);
|
|
992
|
+
}
|
|
993
|
+
function Tn(e) {
|
|
994
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
995
|
+
}
|
|
996
|
+
function dt(e) {
|
|
997
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
998
|
+
}
|
|
999
|
+
var jn = typeof Symbol == "function" && Symbol.for, In = jn ? Symbol.for("react.memo") : 60115, wo = jn ? Symbol.for("react.forward_ref") : 60112, bo = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, xo = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, _n = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Eo = ((ut = {})[wo] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, ut[In] = _n, ut);
|
|
1000
|
+
function Jt(e) {
|
|
1001
|
+
return ("type" in (t = e) && t.type.$$typeof) === In ? _n : "$$typeof" in e ? Eo[e.$$typeof] : bo;
|
|
1002
|
+
var t;
|
|
1003
|
+
}
|
|
1004
|
+
var Co = Object.defineProperty, Po = Object.getOwnPropertyNames, Qt = Object.getOwnPropertySymbols, Ro = Object.getOwnPropertyDescriptor, ko = Object.getPrototypeOf, en = Object.prototype;
|
|
1005
|
+
function An(e, t, n) {
|
|
1006
|
+
if (typeof t != "string") {
|
|
1007
|
+
if (en) {
|
|
1008
|
+
var r = ko(t);
|
|
1009
|
+
r && r !== en && An(e, r, n);
|
|
1010
|
+
}
|
|
1011
|
+
var o = Po(t);
|
|
1012
|
+
Qt && (o = o.concat(Qt(t)));
|
|
1013
|
+
for (var s = Jt(e), i = Jt(t), a = 0; a < o.length; ++a) {
|
|
1014
|
+
var l = o[a];
|
|
1015
|
+
if (!(l in xo || n && n[l] || i && l in i || s && l in s)) {
|
|
1016
|
+
var u = Ro(t, l);
|
|
1017
|
+
try {
|
|
1018
|
+
Co(e, l, u);
|
|
1019
|
+
} catch {
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
return e;
|
|
1025
|
+
}
|
|
1026
|
+
function Te(e) {
|
|
1027
|
+
return typeof e == "function";
|
|
1028
|
+
}
|
|
1029
|
+
function Nt(e) {
|
|
1030
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1031
|
+
}
|
|
1032
|
+
function ye(e, t) {
|
|
1033
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1034
|
+
}
|
|
1035
|
+
function vt(e, t) {
|
|
1036
|
+
if (e.length === 0) return "";
|
|
1037
|
+
for (var n = e[0], r = 1; r < e.length; r++) n += e[r];
|
|
1038
|
+
return n;
|
|
1039
|
+
}
|
|
1040
|
+
function je(e) {
|
|
1041
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1042
|
+
}
|
|
1043
|
+
function St(e, t, n) {
|
|
1044
|
+
if (n === void 0 && (n = !1), !n && !je(e) && !Array.isArray(e)) return t;
|
|
1045
|
+
if (Array.isArray(t)) for (var r = 0; r < t.length; r++) e[r] = St(e[r], t[r]);
|
|
1046
|
+
else if (je(t)) for (var r in t) e[r] = St(e[r], t[r]);
|
|
1047
|
+
return e;
|
|
1048
|
+
}
|
|
1049
|
+
function Mt(e, t) {
|
|
1050
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1051
|
+
}
|
|
1052
|
+
var To = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1053
|
+
|
|
1054
|
+
`, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
1055
|
+
|
|
1056
|
+
- Are you trying to reuse it across renders?
|
|
1057
|
+
- Are you accidentally calling collectStyles twice?
|
|
1058
|
+
|
|
1059
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1060
|
+
|
|
1061
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1062
|
+
|
|
1063
|
+
- Does this error occur on the client and is your target falsy?
|
|
1064
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1065
|
+
|
|
1066
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1067
|
+
|
|
1068
|
+
- Are you running in a client-like environment on the server?
|
|
1069
|
+
- Are you trying to run SSR on the client?
|
|
1070
|
+
|
|
1071
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1072
|
+
|
|
1073
|
+
- Are you using a custom target that isn't mounted?
|
|
1074
|
+
- Does your document not have a valid head element?
|
|
1075
|
+
- Have you accidentally removed a style tag manually?
|
|
1076
|
+
|
|
1077
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1078
|
+
|
|
1079
|
+
`, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
1080
|
+
|
|
1081
|
+
`, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
1082
|
+
|
|
1083
|
+
`, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
1084
|
+
|
|
1085
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1086
|
+
|
|
1087
|
+
`, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1088
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1089
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1090
|
+
|
|
1091
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1092
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1093
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1094
|
+
function jo() {
|
|
1095
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1096
|
+
for (var n = e[0], r = [], o = 1, s = e.length; o < s; o += 1) r.push(e[o]);
|
|
1097
|
+
return r.forEach(function(i) {
|
|
1098
|
+
n = n.replace(/%[a-z]/, i);
|
|
1099
|
+
}), n;
|
|
1100
|
+
}
|
|
1101
|
+
function Ae(e) {
|
|
1102
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1103
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(jo.apply(void 0, we([To[e]], t, !1)).trim());
|
|
1104
|
+
}
|
|
1105
|
+
var Io = (function() {
|
|
1106
|
+
function e(t) {
|
|
1107
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1108
|
+
}
|
|
1109
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1110
|
+
for (var n = 0, r = 0; r < t; r++) n += this.groupSizes[r];
|
|
1111
|
+
return n;
|
|
1112
|
+
}, e.prototype.insertRules = function(t, n) {
|
|
1113
|
+
if (t >= this.groupSizes.length) {
|
|
1114
|
+
for (var r = this.groupSizes, o = r.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw Ae(16, "".concat(t));
|
|
1115
|
+
this.groupSizes = new Uint32Array(s), this.groupSizes.set(r), this.length = s;
|
|
1116
|
+
for (var i = o; i < s; i++) this.groupSizes[i] = 0;
|
|
1117
|
+
}
|
|
1118
|
+
for (var a = this.indexOfGroup(t + 1), l = (i = 0, n.length); i < l; i++) this.tag.insertRule(a, n[i]) && (this.groupSizes[t]++, a++);
|
|
1119
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1120
|
+
if (t < this.length) {
|
|
1121
|
+
var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
|
|
1122
|
+
this.groupSizes[t] = 0;
|
|
1123
|
+
for (var s = r; s < o; s++) this.tag.deleteRule(r);
|
|
1124
|
+
}
|
|
1125
|
+
}, e.prototype.getGroup = function(t) {
|
|
1126
|
+
var n = "";
|
|
1127
|
+
if (t >= this.length || this.groupSizes[t] === 0) return n;
|
|
1128
|
+
for (var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r, i = o; i < s; i++) n += "".concat(this.tag.getRule(i)).concat(Dt);
|
|
1129
|
+
return n;
|
|
1130
|
+
}, e;
|
|
1131
|
+
})(), _o = 1 << 30, Ge = /* @__PURE__ */ new Map(), Qe = /* @__PURE__ */ new Map(), Ze = 1, Ue = function(e) {
|
|
1132
|
+
if (Ge.has(e)) return Ge.get(e);
|
|
1133
|
+
for (; Qe.has(Ze); ) Ze++;
|
|
1134
|
+
var t = Ze++;
|
|
1135
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > _o)) throw Ae(16, "".concat(t));
|
|
1136
|
+
return Ge.set(e, t), Qe.set(t, e), t;
|
|
1137
|
+
}, Ao = function(e, t) {
|
|
1138
|
+
Ze = t + 1, Ge.set(e, t), Qe.set(t, e);
|
|
1139
|
+
}, Lo = "style[".concat(be, "][").concat(Cn, '="').concat(it, '"]'), Do = new RegExp("^".concat(be, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), No = function(e, t, n) {
|
|
1140
|
+
for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
|
|
1141
|
+
}, Mo = function(e, t) {
|
|
1142
|
+
for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Dt), o = [], s = 0, i = r.length; s < i; s++) {
|
|
1143
|
+
var a = r[s].trim();
|
|
1144
|
+
if (a) {
|
|
1145
|
+
var l = a.match(Do);
|
|
1146
|
+
if (l) {
|
|
1147
|
+
var u = 0 | parseInt(l[1], 10), h = l[2];
|
|
1148
|
+
u !== 0 && (Ao(h, u), No(e, h, l[3]), e.getTag().insertRules(u, o)), o.length = 0;
|
|
1149
|
+
} else o.push(a);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}, tn = function(e) {
|
|
1153
|
+
for (var t = document.querySelectorAll(Lo), n = 0, r = t.length; n < r; n++) {
|
|
1154
|
+
var o = t[n];
|
|
1155
|
+
o && o.getAttribute(be) !== En && (Mo(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
function Oo() {
|
|
1159
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1160
|
+
}
|
|
1161
|
+
var Ln = function(e) {
|
|
1162
|
+
var t = document.head, n = e || t, r = document.createElement("style"), o = (function(a) {
|
|
1163
|
+
var l = Array.from(a.querySelectorAll("style[".concat(be, "]")));
|
|
1164
|
+
return l[l.length - 1];
|
|
1165
|
+
})(n), s = o !== void 0 ? o.nextSibling : null;
|
|
1166
|
+
r.setAttribute(be, En), r.setAttribute(Cn, it);
|
|
1167
|
+
var i = Oo();
|
|
1168
|
+
return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
|
|
1169
|
+
}, Vo = (function() {
|
|
1170
|
+
function e(t) {
|
|
1171
|
+
this.element = Ln(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(n) {
|
|
1172
|
+
if (n.sheet) return n.sheet;
|
|
1173
|
+
for (var r = document.styleSheets, o = 0, s = r.length; o < s; o++) {
|
|
1174
|
+
var i = r[o];
|
|
1175
|
+
if (i.ownerNode === n) return i;
|
|
1176
|
+
}
|
|
1177
|
+
throw Ae(17);
|
|
1178
|
+
})(this.element), this.length = 0;
|
|
1179
|
+
}
|
|
1180
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1181
|
+
try {
|
|
1182
|
+
return this.sheet.insertRule(n, t), this.length++, !0;
|
|
1183
|
+
} catch {
|
|
1184
|
+
return !1;
|
|
1185
|
+
}
|
|
1186
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1187
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1188
|
+
}, e.prototype.getRule = function(t) {
|
|
1189
|
+
var n = this.sheet.cssRules[t];
|
|
1190
|
+
return n && n.cssText ? n.cssText : "";
|
|
1191
|
+
}, e;
|
|
1192
|
+
})(), Fo = (function() {
|
|
1193
|
+
function e(t) {
|
|
1194
|
+
this.element = Ln(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1195
|
+
}
|
|
1196
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1197
|
+
if (t <= this.length && t >= 0) {
|
|
1198
|
+
var r = document.createTextNode(n);
|
|
1199
|
+
return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
|
|
1200
|
+
}
|
|
1201
|
+
return !1;
|
|
1202
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1203
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1204
|
+
}, e.prototype.getRule = function(t) {
|
|
1205
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1206
|
+
}, e;
|
|
1207
|
+
})(), $o = (function() {
|
|
1208
|
+
function e(t) {
|
|
1209
|
+
this.rules = [], this.length = 0;
|
|
1210
|
+
}
|
|
1211
|
+
return e.prototype.insertRule = function(t, n) {
|
|
1212
|
+
return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
|
|
1213
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1214
|
+
this.rules.splice(t, 1), this.length--;
|
|
1215
|
+
}, e.prototype.getRule = function(t) {
|
|
1216
|
+
return t < this.length ? this.rules[t] : "";
|
|
1217
|
+
}, e;
|
|
1218
|
+
})(), nn = Je, Ho = { isServer: !Je, useCSSOMInjection: !ho }, Dn = (function() {
|
|
1219
|
+
function e(t, n, r) {
|
|
1220
|
+
t === void 0 && (t = ke), n === void 0 && (n = {});
|
|
1221
|
+
var o = this;
|
|
1222
|
+
this.options = X(X({}, Ho), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && Je && nn && (nn = !1, tn(this)), Mt(this, function() {
|
|
1223
|
+
return (function(s) {
|
|
1224
|
+
for (var i = s.getTag(), a = i.length, l = "", u = function(d) {
|
|
1225
|
+
var m = (function(w) {
|
|
1226
|
+
return Qe.get(w);
|
|
1227
|
+
})(d);
|
|
1228
|
+
if (m === void 0) return "continue";
|
|
1229
|
+
var g = s.names.get(m), x = i.getGroup(d);
|
|
1230
|
+
if (g === void 0 || !g.size || x.length === 0) return "continue";
|
|
1231
|
+
var y = "".concat(be, ".g").concat(d, '[id="').concat(m, '"]'), E = "";
|
|
1232
|
+
g !== void 0 && g.forEach(function(w) {
|
|
1233
|
+
w.length > 0 && (E += "".concat(w, ","));
|
|
1234
|
+
}), l += "".concat(x).concat(y, '{content:"').concat(E, '"}').concat(Dt);
|
|
1235
|
+
}, h = 0; h < a; h++) u(h);
|
|
1236
|
+
return l;
|
|
1237
|
+
})(o);
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
return e.registerId = function(t) {
|
|
1241
|
+
return Ue(t);
|
|
1242
|
+
}, e.prototype.rehydrate = function() {
|
|
1243
|
+
!this.server && Je && tn(this);
|
|
1244
|
+
}, e.prototype.reconstructWithOptions = function(t, n) {
|
|
1245
|
+
return n === void 0 && (n = !0), new e(X(X({}, this.options), t), this.gs, n && this.names || void 0);
|
|
1246
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1247
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1248
|
+
}, e.prototype.getTag = function() {
|
|
1249
|
+
return this.tag || (this.tag = (t = (function(n) {
|
|
1250
|
+
var r = n.useCSSOMInjection, o = n.target;
|
|
1251
|
+
return n.isServer ? new $o(o) : r ? new Vo(o) : new Fo(o);
|
|
1252
|
+
})(this.options), new Io(t)));
|
|
1253
|
+
var t;
|
|
1254
|
+
}, e.prototype.hasNameForId = function(t, n) {
|
|
1255
|
+
return this.names.has(t) && this.names.get(t).has(n);
|
|
1256
|
+
}, e.prototype.registerName = function(t, n) {
|
|
1257
|
+
if (Ue(t), this.names.has(t)) this.names.get(t).add(n);
|
|
1258
|
+
else {
|
|
1259
|
+
var r = /* @__PURE__ */ new Set();
|
|
1260
|
+
r.add(n), this.names.set(t, r);
|
|
1261
|
+
}
|
|
1262
|
+
}, e.prototype.insertRules = function(t, n, r) {
|
|
1263
|
+
this.registerName(t, n), this.getTag().insertRules(Ue(t), r);
|
|
1264
|
+
}, e.prototype.clearNames = function(t) {
|
|
1265
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1266
|
+
}, e.prototype.clearRules = function(t) {
|
|
1267
|
+
this.getTag().clearGroup(Ue(t)), this.clearNames(t);
|
|
1268
|
+
}, e.prototype.clearTag = function() {
|
|
1269
|
+
this.tag = void 0;
|
|
1270
|
+
}, e;
|
|
1271
|
+
})(), zo = /&/g, Bo = /^\s*\/\/.*$/gm;
|
|
1272
|
+
function Nn(e, t) {
|
|
1273
|
+
return e.map(function(n) {
|
|
1274
|
+
return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
|
|
1275
|
+
return "".concat(t, " ").concat(r);
|
|
1276
|
+
})), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = Nn(n.children, t)), n;
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
function Uo(e) {
|
|
1280
|
+
var t, n, r, o = ke, s = o.options, i = s === void 0 ? ke : s, a = o.plugins, l = a === void 0 ? at : a, u = function(m, g, x) {
|
|
1281
|
+
return x.startsWith(n) && x.endsWith(n) && x.replaceAll(n, "").length > 0 ? ".".concat(t) : m;
|
|
1282
|
+
}, h = l.slice();
|
|
1283
|
+
h.push(function(m) {
|
|
1284
|
+
m.type === nt && m.value.includes("&") && (m.props[0] = m.props[0].replace(zo, n).replace(r, u));
|
|
1285
|
+
}), i.prefix && h.push(fo), h.push(co);
|
|
1286
|
+
var d = function(m, g, x, y) {
|
|
1287
|
+
g === void 0 && (g = ""), x === void 0 && (x = ""), y === void 0 && (y = "&"), t = y, n = g, r = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1288
|
+
var E = m.replace(Bo, ""), w = io(x || g ? "".concat(x, " ").concat(g, " { ").concat(E, " }") : E);
|
|
1289
|
+
i.namespace && (w = Nn(w, i.namespace));
|
|
1290
|
+
var R = [];
|
|
1291
|
+
return Xe(w, lo(h.concat(uo(function(p) {
|
|
1292
|
+
return R.push(p);
|
|
1293
|
+
})))), R;
|
|
1294
|
+
};
|
|
1295
|
+
return d.hash = l.length ? l.reduce(function(m, g) {
|
|
1296
|
+
return g.name || Ae(15), ge(m, g.name);
|
|
1297
|
+
}, Pn).toString() : "", d;
|
|
1298
|
+
}
|
|
1299
|
+
var Yo = new Dn(), wt = Uo(), Mn = B.createContext({ shouldForwardProp: void 0, styleSheet: Yo, stylis: wt });
|
|
1300
|
+
Mn.Consumer;
|
|
1301
|
+
B.createContext(void 0);
|
|
1302
|
+
function rn() {
|
|
1303
|
+
return jt(Mn);
|
|
1304
|
+
}
|
|
1305
|
+
var bt = (function() {
|
|
1306
|
+
function e(t, n) {
|
|
1307
|
+
var r = this;
|
|
1308
|
+
this.inject = function(o, s) {
|
|
1309
|
+
s === void 0 && (s = wt);
|
|
1310
|
+
var i = r.name + s.hash;
|
|
1311
|
+
o.hasNameForId(r.id, i) || o.insertRules(r.id, i, s(r.rules, i, "@keyframes"));
|
|
1312
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, Mt(this, function() {
|
|
1313
|
+
throw Ae(12, String(r.name));
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
return e.prototype.getName = function(t) {
|
|
1317
|
+
return t === void 0 && (t = wt), this.name + t.hash;
|
|
1318
|
+
}, e;
|
|
1319
|
+
})(), Wo = function(e) {
|
|
1320
|
+
return e >= "A" && e <= "Z";
|
|
1321
|
+
};
|
|
1322
|
+
function on(e) {
|
|
1323
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1324
|
+
var r = e[n];
|
|
1325
|
+
if (n === 1 && r === "-" && e[0] === "-") return e;
|
|
1326
|
+
Wo(r) ? t += "-" + r.toLowerCase() : t += r;
|
|
1327
|
+
}
|
|
1328
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1329
|
+
}
|
|
1330
|
+
var On = function(e) {
|
|
1331
|
+
return e == null || e === !1 || e === "";
|
|
1332
|
+
}, Vn = function(e) {
|
|
1333
|
+
var t, n, r = [];
|
|
1334
|
+
for (var o in e) {
|
|
1335
|
+
var s = e[o];
|
|
1336
|
+
e.hasOwnProperty(o) && !On(s) && (Array.isArray(s) && s.isCss || Te(s) ? r.push("".concat(on(o), ":"), s, ";") : je(s) ? r.push.apply(r, we(we(["".concat(o, " {")], Vn(s), !1), ["}"], !1)) : r.push("".concat(on(o), ": ").concat((t = o, (n = s) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in po || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
|
|
1337
|
+
}
|
|
1338
|
+
return r;
|
|
1339
|
+
};
|
|
1340
|
+
function Se(e, t, n, r) {
|
|
1341
|
+
if (On(e)) return [];
|
|
1342
|
+
if (Nt(e)) return [".".concat(e.styledComponentId)];
|
|
1343
|
+
if (Te(e)) {
|
|
1344
|
+
if (!Te(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1345
|
+
var o = e(t);
|
|
1346
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof bt || je(o) || o === null || console.error("".concat(Tn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Se(o, t, n, r);
|
|
1347
|
+
}
|
|
1348
|
+
var s;
|
|
1349
|
+
return e instanceof bt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : je(e) ? Vn(e) : Array.isArray(e) ? Array.prototype.concat.apply(at, e.map(function(i) {
|
|
1350
|
+
return Se(i, t, n, r);
|
|
1351
|
+
})) : [e.toString()];
|
|
1352
|
+
}
|
|
1353
|
+
function qo(e) {
|
|
1354
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1355
|
+
var n = e[t];
|
|
1356
|
+
if (Te(n) && !Nt(n)) return !1;
|
|
1357
|
+
}
|
|
1358
|
+
return !0;
|
|
1359
|
+
}
|
|
1360
|
+
var Ko = Rn(it), Go = (function() {
|
|
1361
|
+
function e(t, n, r) {
|
|
1362
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && qo(t), this.componentId = n, this.baseHash = ge(Ko, n), this.baseStyle = r, Dn.registerId(n);
|
|
1363
|
+
}
|
|
1364
|
+
return e.prototype.generateAndInjectStyles = function(t, n, r) {
|
|
1365
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
|
|
1366
|
+
if (this.isStatic && !r.hash) if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId)) o = ye(o, this.staticRulesId);
|
|
1367
|
+
else {
|
|
1368
|
+
var s = vt(Se(this.rules, t, n, r)), i = yt(ge(this.baseHash, s) >>> 0);
|
|
1369
|
+
if (!n.hasNameForId(this.componentId, i)) {
|
|
1370
|
+
var a = r(s, ".".concat(i), void 0, this.componentId);
|
|
1371
|
+
n.insertRules(this.componentId, i, a);
|
|
1372
|
+
}
|
|
1373
|
+
o = ye(o, i), this.staticRulesId = i;
|
|
1374
|
+
}
|
|
1375
|
+
else {
|
|
1376
|
+
for (var l = ge(this.baseHash, r.hash), u = "", h = 0; h < this.rules.length; h++) {
|
|
1377
|
+
var d = this.rules[h];
|
|
1378
|
+
if (typeof d == "string") u += d, process.env.NODE_ENV !== "production" && (l = ge(l, d));
|
|
1379
|
+
else if (d) {
|
|
1380
|
+
var m = vt(Se(d, t, n, r));
|
|
1381
|
+
l = ge(l, m + h), u += m;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
if (u) {
|
|
1385
|
+
var g = yt(l >>> 0);
|
|
1386
|
+
n.hasNameForId(this.componentId, g) || n.insertRules(this.componentId, g, r(u, ".".concat(g), void 0, this.componentId)), o = ye(o, g);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
return o;
|
|
1390
|
+
}, e;
|
|
1391
|
+
})(), Fn = B.createContext(void 0);
|
|
1392
|
+
Fn.Consumer;
|
|
1393
|
+
var ft = {}, sn = /* @__PURE__ */ new Set();
|
|
1394
|
+
function Zo(e, t, n) {
|
|
1395
|
+
var r = Nt(e), o = e, s = !dt(e), i = t.attrs, a = i === void 0 ? at : i, l = t.componentId, u = l === void 0 ? (function(S, T) {
|
|
1396
|
+
var P = typeof S != "string" ? "sc" : Zt(S);
|
|
1397
|
+
ft[P] = (ft[P] || 0) + 1;
|
|
1398
|
+
var C = "".concat(P, "-").concat(kn(it + P + ft[P]));
|
|
1399
|
+
return T ? "".concat(T, "-").concat(C) : C;
|
|
1400
|
+
})(t.displayName, t.parentComponentId) : l, h = t.displayName, d = h === void 0 ? (function(S) {
|
|
1401
|
+
return dt(S) ? "styled.".concat(S) : "Styled(".concat(Tn(S), ")");
|
|
1402
|
+
})(e) : h, m = t.displayName && t.componentId ? "".concat(Zt(t.displayName), "-").concat(t.componentId) : t.componentId || u, g = r && o.attrs ? o.attrs.concat(a).filter(Boolean) : a, x = t.shouldForwardProp;
|
|
1403
|
+
if (r && o.shouldForwardProp) {
|
|
1404
|
+
var y = o.shouldForwardProp;
|
|
1405
|
+
if (t.shouldForwardProp) {
|
|
1406
|
+
var E = t.shouldForwardProp;
|
|
1407
|
+
x = function(S, T) {
|
|
1408
|
+
return y(S, T) && E(S, T);
|
|
1409
|
+
};
|
|
1410
|
+
} else x = y;
|
|
1411
|
+
}
|
|
1412
|
+
var w = new Go(n, m, r ? o.componentStyle : void 0);
|
|
1413
|
+
function R(S, T) {
|
|
1414
|
+
return (function(P, C, $) {
|
|
1415
|
+
var U = P.attrs, I = P.componentStyle, N = P.defaultProps, z = P.foldedComponentIds, ee = P.styledComponentId, oe = P.target, se = B.useContext(Fn), J = rn(), O = P.shouldForwardProp || J.shouldForwardProp;
|
|
1416
|
+
process.env.NODE_ENV !== "production" && $t(ee);
|
|
1417
|
+
var Q = go(C, se, N) || ke, Y = (function(W, le, de) {
|
|
1418
|
+
for (var M, K = X(X({}, le), { className: void 0, theme: de }), me = 0; me < W.length; me += 1) {
|
|
1419
|
+
var xe = Te(M = W[me]) ? M(K) : M;
|
|
1420
|
+
for (var fe in xe) K[fe] = fe === "className" ? ye(K[fe], xe[fe]) : fe === "style" ? X(X({}, K[fe]), xe[fe]) : xe[fe];
|
|
1421
|
+
}
|
|
1422
|
+
return le.className && (K.className = ye(K.className, le.className)), K;
|
|
1423
|
+
})(U, C, Q), f = Y.as || oe, k = {};
|
|
1424
|
+
for (var _ in Y) Y[_] === void 0 || _[0] === "$" || _ === "as" || _ === "theme" && Y.theme === Q || (_ === "forwardedAs" ? k.as = Y.forwardedAs : O && !O(_, f) || (k[_] = Y[_], O || process.env.NODE_ENV !== "development" || qr(_) || sn.has(_) || !gt.has(f) || (sn.add(_), console.warn('styled-components: it looks like an unknown prop "'.concat(_, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
1425
|
+
var V = (function(W, le) {
|
|
1426
|
+
var de = rn(), M = W.generateAndInjectStyles(le, de.styleSheet, de.stylis);
|
|
1427
|
+
return process.env.NODE_ENV !== "production" && $t(M), M;
|
|
1428
|
+
})(I, Y);
|
|
1429
|
+
process.env.NODE_ENV !== "production" && P.warnTooManyClasses && P.warnTooManyClasses(V);
|
|
1430
|
+
var te = ye(z, ee);
|
|
1431
|
+
return V && (te += " " + V), Y.className && (te += " " + Y.className), k[dt(f) && !gt.has(f) ? "class" : "className"] = te, $ && (k.ref = $), Dr(f, k);
|
|
1432
|
+
})(p, S, T);
|
|
1433
|
+
}
|
|
1434
|
+
R.displayName = d;
|
|
1435
|
+
var p = B.forwardRef(R);
|
|
1436
|
+
return p.attrs = g, p.componentStyle = w, p.displayName = d, p.shouldForwardProp = x, p.foldedComponentIds = r ? ye(o.foldedComponentIds, o.styledComponentId) : "", p.styledComponentId = m, p.target = r ? o.target : e, Object.defineProperty(p, "defaultProps", { get: function() {
|
|
1437
|
+
return this._foldedDefaultProps;
|
|
1438
|
+
}, set: function(S) {
|
|
1439
|
+
this._foldedDefaultProps = r ? (function(T) {
|
|
1440
|
+
for (var P = [], C = 1; C < arguments.length; C++) P[C - 1] = arguments[C];
|
|
1441
|
+
for (var $ = 0, U = P; $ < U.length; $++) St(T, U[$], !0);
|
|
1442
|
+
return T;
|
|
1443
|
+
})({}, o.defaultProps, S) : S;
|
|
1444
|
+
} }), process.env.NODE_ENV !== "production" && (mo(d, m), p.warnTooManyClasses = /* @__PURE__ */ (function(S, T) {
|
|
1445
|
+
var P = {}, C = !1;
|
|
1446
|
+
return function($) {
|
|
1447
|
+
if (!C && (P[$] = !0, Object.keys(P).length >= 200)) {
|
|
1448
|
+
var U = T ? ' with the id of "'.concat(T, '"') : "";
|
|
1449
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(S).concat(U, `.
|
|
1450
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1451
|
+
Example:
|
|
1452
|
+
const Component = styled.div.attrs(props => ({
|
|
1453
|
+
style: {
|
|
1454
|
+
background: props.background,
|
|
1455
|
+
},
|
|
1456
|
+
}))\`width: 100%;\`
|
|
1457
|
+
|
|
1458
|
+
<Component />`), C = !0, P = {};
|
|
1459
|
+
}
|
|
1460
|
+
};
|
|
1461
|
+
})(d, m)), Mt(p, function() {
|
|
1462
|
+
return ".".concat(p.styledComponentId);
|
|
1463
|
+
}), s && An(p, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), p;
|
|
1464
|
+
}
|
|
1465
|
+
function an(e, t) {
|
|
1466
|
+
for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
|
|
1467
|
+
return n;
|
|
1468
|
+
}
|
|
1469
|
+
var cn = function(e) {
|
|
1470
|
+
return Object.assign(e, { isCss: !0 });
|
|
1471
|
+
};
|
|
1472
|
+
function et(e) {
|
|
1473
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1474
|
+
if (Te(e) || je(e)) return cn(Se(an(at, we([e], t, !0))));
|
|
1475
|
+
var r = e;
|
|
1476
|
+
return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? Se(r) : cn(Se(an(r, t)));
|
|
1477
|
+
}
|
|
1478
|
+
function xt(e, t, n) {
|
|
1479
|
+
if (n === void 0 && (n = ke), !t) throw Ae(1, t);
|
|
1480
|
+
var r = function(o) {
|
|
1481
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1482
|
+
return e(t, n, et.apply(void 0, we([o], s, !1)));
|
|
1483
|
+
};
|
|
1484
|
+
return r.attrs = function(o) {
|
|
1485
|
+
return xt(e, t, X(X({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
|
|
1486
|
+
}, r.withConfig = function(o) {
|
|
1487
|
+
return xt(e, t, X(X({}, n), o));
|
|
1488
|
+
}, r;
|
|
1489
|
+
}
|
|
1490
|
+
var $n = function(e) {
|
|
1491
|
+
return xt(Zo, e);
|
|
1492
|
+
}, A = $n;
|
|
1493
|
+
gt.forEach(function(e) {
|
|
1494
|
+
A[e] = $n(e);
|
|
1495
|
+
});
|
|
1496
|
+
function Xo(e) {
|
|
1497
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1498
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1499
|
+
var r = vt(et.apply(void 0, we([e], t, !1))), o = kn(r);
|
|
1500
|
+
return new bt(o, r);
|
|
1501
|
+
}
|
|
1502
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1503
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1504
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1505
|
+
var Ye = "__sc-".concat(be, "__");
|
|
1506
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Ye] || (window[Ye] = 0), window[Ye] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1507
|
+
|
|
1508
|
+
See https://s-c.sh/2BAXzed for more info.`), window[Ye] += 1);
|
|
1509
|
+
function Jo({
|
|
1510
|
+
children: e,
|
|
1511
|
+
eventFinishedMessage: t,
|
|
1512
|
+
eventNotStartedMessage: n,
|
|
1513
|
+
eventStartingSoonMessage: r
|
|
1514
|
+
}) {
|
|
1515
|
+
const o = Z((u) => u.startDate), s = Z((u) => u.endDate), i = Date.now(), a = i < o.getTime(), l = i > s.getTime();
|
|
1516
|
+
return $r(5e3), a ? /* @__PURE__ */ c.jsx(
|
|
1517
|
+
Qo,
|
|
1518
|
+
{
|
|
1519
|
+
startDate: o,
|
|
1520
|
+
title: n || "Event has not started yet.",
|
|
1521
|
+
message: r || "Starting in few seconds..."
|
|
1522
|
+
}
|
|
1523
|
+
) : l ? /* @__PURE__ */ c.jsx(es, { title: t || "Event has finished." }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
1524
|
+
}
|
|
1525
|
+
function Qo({ startDate: e, title: t, message: n }) {
|
|
1526
|
+
const r = e.getTime() - Date.now(), o = Math.floor(r / (1e3 * 60 * 60)), s = Math.floor(
|
|
1527
|
+
r % (1e3 * 60 * 60) / (1e3 * 60)
|
|
1528
|
+
);
|
|
1529
|
+
return o || s ? /* @__PURE__ */ c.jsxs(Et, { children: [
|
|
1530
|
+
/* @__PURE__ */ c.jsx(Ct, { children: t }),
|
|
1531
|
+
/* @__PURE__ */ c.jsxs(ts, { children: [
|
|
1532
|
+
"(",
|
|
1533
|
+
o > 0 ? `${o}h ${s}m` : `${s}m`,
|
|
1534
|
+
")"
|
|
1535
|
+
] })
|
|
1536
|
+
] }) : /* @__PURE__ */ c.jsx(Et, { children: /* @__PURE__ */ c.jsx(Ct, { children: n }) });
|
|
1537
|
+
}
|
|
1538
|
+
function es({ title: e }) {
|
|
1539
|
+
return /* @__PURE__ */ c.jsx(Et, { children: /* @__PURE__ */ c.jsx(Ct, { children: e }) });
|
|
1540
|
+
}
|
|
1541
|
+
const Et = A.div`
|
|
1542
|
+
position: absolute;
|
|
1543
|
+
top: 0;
|
|
1544
|
+
left: 0;
|
|
1545
|
+
width: 100%;
|
|
1546
|
+
height: 100%;
|
|
1547
|
+
z-index: 10;
|
|
1548
|
+
display: flex;
|
|
1549
|
+
flex-direction: column;
|
|
1550
|
+
align-items: center;
|
|
1551
|
+
justify-content: center;
|
|
1552
|
+
color: black;
|
|
1553
|
+
background: #f7e406;
|
|
1554
|
+
`, Ct = A.h3`
|
|
1555
|
+
margin: 0;
|
|
1556
|
+
padding: 0.5rem 0;
|
|
1557
|
+
font-size: 1.5rem;
|
|
1558
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1559
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
1560
|
+
font-weight: 500;
|
|
1561
|
+
`, ts = A.p`
|
|
1562
|
+
margin: 0;
|
|
1563
|
+
height: 1.25rem;
|
|
1564
|
+
font-size: 1rem;
|
|
1565
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1566
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
1567
|
+
font-weight: 500;
|
|
1568
|
+
`;
|
|
1569
|
+
function ns() {
|
|
1570
|
+
return /* @__PURE__ */ c.jsx(
|
|
1571
|
+
"svg",
|
|
1572
|
+
{
|
|
1573
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1574
|
+
viewBox: "0 0 24 24",
|
|
1575
|
+
fill: "currentColor",
|
|
1576
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" })
|
|
1577
|
+
}
|
|
1578
|
+
);
|
|
1579
|
+
}
|
|
1580
|
+
function Fe({ shape: e = "circle", ...t }) {
|
|
1581
|
+
return /* @__PURE__ */ c.jsx(rs, { $shape: e, ...t });
|
|
1582
|
+
}
|
|
1583
|
+
const rs = A.button`
|
|
1584
|
+
margin: 0;
|
|
1585
|
+
display: flex;
|
|
1586
|
+
align-items: center;
|
|
1587
|
+
justify-content: center;
|
|
1588
|
+
flex-shrink: 0;
|
|
1589
|
+
line-height: 1;
|
|
1590
|
+
font-size: 0.875rem;
|
|
1591
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1592
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
1593
|
+
font-weight: 500;
|
|
1594
|
+
cursor: pointer;
|
|
1595
|
+
color: white;
|
|
1596
|
+
background: none;
|
|
1597
|
+
border: none;
|
|
1598
|
+
transition: color 0.2s ease-in-out, background 0.2s ease-in-out;
|
|
1599
|
+
|
|
1600
|
+
svg {
|
|
1601
|
+
width: 1.25rem;
|
|
1602
|
+
height: 1.25rem;
|
|
1603
|
+
flex-shrink: 0;
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
&:hover {
|
|
1607
|
+
color: black;
|
|
1608
|
+
background: #f7e406;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
&:focus {
|
|
1612
|
+
outline: none;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
&:disabled {
|
|
1616
|
+
opacity: 0.5;
|
|
1617
|
+
cursor: not-allowed;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
${({ $shape: e }) => e === "circle" && et`
|
|
1621
|
+
padding: 0;
|
|
1622
|
+
width: 2.25rem;
|
|
1623
|
+
height: 2.25rem;
|
|
1624
|
+
border-radius: 1.25rem;
|
|
1625
|
+
`}
|
|
1626
|
+
|
|
1627
|
+
${({ $shape: e }) => e === "square" && et`
|
|
1628
|
+
padding: 0.25rem 0.5rem;
|
|
1629
|
+
border-radius: 1rem;
|
|
1630
|
+
`}
|
|
1631
|
+
`;
|
|
1632
|
+
function os({ message: e, ...t }) {
|
|
1633
|
+
const n = Z((s) => s.delay), r = Z((s) => s.setDelay), o = () => r(0);
|
|
1634
|
+
return n ? /* @__PURE__ */ c.jsxs(Fe, { onClick: o, shape: "square", ...t, children: [
|
|
1635
|
+
/* @__PURE__ */ c.jsx("span", { children: e || "Live" }),
|
|
1636
|
+
/* @__PURE__ */ c.jsx(ns, {})
|
|
1637
|
+
] }) : null;
|
|
1638
|
+
}
|
|
1639
|
+
function Hn() {
|
|
1640
|
+
return /* @__PURE__ */ c.jsx(
|
|
1641
|
+
"svg",
|
|
1642
|
+
{
|
|
1643
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1644
|
+
viewBox: "0 0 24 24",
|
|
1645
|
+
fill: "currentColor",
|
|
1646
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6 3H8V21H6V3ZM16 3H18V21H16V3Z" })
|
|
1647
|
+
}
|
|
1648
|
+
);
|
|
1649
|
+
}
|
|
1650
|
+
function zn() {
|
|
1651
|
+
return /* @__PURE__ */ c.jsx(
|
|
1652
|
+
"svg",
|
|
1653
|
+
{
|
|
1654
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1655
|
+
viewBox: "0 0 24 24",
|
|
1656
|
+
fill: "currentColor",
|
|
1657
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6 20.1957V3.80421C6 3.01878 6.86395 2.53993 7.53 2.95621L20.6432 11.152C21.2699 11.5436 21.2699 12.4563 20.6432 12.848L7.53 21.0437C6.86395 21.46 6 20.9812 6 20.1957Z" })
|
|
1658
|
+
}
|
|
1659
|
+
);
|
|
1660
|
+
}
|
|
1661
|
+
function ss(e, t, n) {
|
|
1662
|
+
const r = {
|
|
1663
|
+
days: 86400,
|
|
1664
|
+
hours: 3600,
|
|
1665
|
+
minutes: 60,
|
|
1666
|
+
seconds: 1,
|
|
1667
|
+
milliseconds: 1e-3
|
|
1668
|
+
};
|
|
1669
|
+
return e * (r[t] / r[n]);
|
|
1670
|
+
}
|
|
1671
|
+
function is(e) {
|
|
1672
|
+
return ss(e, "milliseconds", "seconds");
|
|
1673
|
+
}
|
|
1674
|
+
const Ie = (e) => {
|
|
1675
|
+
const t = Math.floor(e / 60), n = Math.floor(e % 60);
|
|
1676
|
+
return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
|
|
1677
|
+
};
|
|
1678
|
+
function as(e) {
|
|
1679
|
+
const t = typeof window < "u" && window.navigator?.userAgent || "";
|
|
1680
|
+
return e.test(t);
|
|
1681
|
+
}
|
|
1682
|
+
const Bn = as(/iPhone|iPad|iPod/i);
|
|
1683
|
+
function cs() {
|
|
1684
|
+
const e = document;
|
|
1685
|
+
return !!(e.fullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || e.msFullscreenElement);
|
|
1686
|
+
}
|
|
1687
|
+
function ls(e) {
|
|
1688
|
+
e.requestFullscreen ? e.requestFullscreen() : e.msRequestFullscreen ? e.msRequestFullscreen() : e.webkitRequestFullScreen ? e.webkitRequestFullScreen() : e.webkitEnterFullScreen ? e.webkitEnterFullScreen() : e.mozRequestFullScreen && e.mozRequestFullScreen();
|
|
1689
|
+
}
|
|
1690
|
+
function us(e) {
|
|
1691
|
+
e.exitFullscreen ? e.exitFullscreen() : e.msExitFullscreen ? e.msExitFullscreen() : e.webkitExitFullscreen ? e.webkitExitFullscreen() : e.mozCancelFullScreen && e.mozCancelFullScreen();
|
|
1692
|
+
}
|
|
1693
|
+
function ds(e, t) {
|
|
1694
|
+
return e.addEventListener("fullscreenchange", t), e.addEventListener("webkitfullscreenchange", t), e.addEventListener("mozfullscreenchange", t), e.addEventListener("MSFullscreenChange", t), () => {
|
|
1695
|
+
e.removeEventListener("fullscreenchange", t), e.removeEventListener("webkitfullscreenchange", t), e.removeEventListener("mozfullscreenchange", t), e.removeEventListener("MSFullscreenChange", t);
|
|
1696
|
+
};
|
|
1697
|
+
}
|
|
1698
|
+
const fs = (e, t) => ({
|
|
1699
|
+
currentTime: 0,
|
|
1700
|
+
duration: 0,
|
|
1701
|
+
isEnded: !1,
|
|
1702
|
+
isLoading: !1,
|
|
1703
|
+
isLoop: !1,
|
|
1704
|
+
isMetaLoaded: !1,
|
|
1705
|
+
isPlaying: !1,
|
|
1706
|
+
isReady: !1,
|
|
1707
|
+
isStarted: !1,
|
|
1708
|
+
pauseTime: 0,
|
|
1709
|
+
seekTime: -1,
|
|
1710
|
+
startTime: -1,
|
|
1711
|
+
volume: 100,
|
|
1712
|
+
destroy: () => {
|
|
1713
|
+
},
|
|
1714
|
+
handleDurationChange: () => {
|
|
1715
|
+
const n = t().techRef.current;
|
|
1716
|
+
n && e({ duration: n.duration });
|
|
1717
|
+
},
|
|
1718
|
+
handleEnd: () => {
|
|
1719
|
+
t().techRef.current && e({
|
|
1720
|
+
isEnded: !0,
|
|
1721
|
+
isLoading: !1,
|
|
1722
|
+
isMetaLoaded: !1,
|
|
1723
|
+
isPlaying: !1
|
|
1724
|
+
});
|
|
1725
|
+
},
|
|
1726
|
+
handleLoadedMetadata: () => {
|
|
1727
|
+
const n = t().techRef.current;
|
|
1728
|
+
n && (n.loop = t().isLoop, n.volume = n.muted ? 0 : 1, t().startTime !== -1 && (n.currentTime = t().startTime), e({
|
|
1729
|
+
currentTime: t().startTime !== -1 ? t().startTime : n.currentTime,
|
|
1730
|
+
duration: n.duration,
|
|
1731
|
+
startTime: -1,
|
|
1732
|
+
isMetaLoaded: !0,
|
|
1733
|
+
volume: n.muted ? 0 : 100
|
|
1734
|
+
}));
|
|
1735
|
+
},
|
|
1736
|
+
handleLoadStart: () => {
|
|
1737
|
+
const n = t().techRef.current;
|
|
1738
|
+
n && (e({ isReady: !0 }), n.play().then(() => {
|
|
1739
|
+
e({
|
|
1740
|
+
isEnded: !1,
|
|
1741
|
+
isLoading: !1,
|
|
1742
|
+
isPlaying: !0,
|
|
1743
|
+
isStarted: !0,
|
|
1744
|
+
pauseTime: 0
|
|
1745
|
+
});
|
|
1746
|
+
}).catch(
|
|
1747
|
+
(r) => e(() => (console.info("Player failed to autoplay", r), {
|
|
1748
|
+
isStarted: !1,
|
|
1749
|
+
isEnded: !1,
|
|
1750
|
+
isLoading: !1,
|
|
1751
|
+
isPlaying: !1
|
|
1752
|
+
}))
|
|
1753
|
+
));
|
|
1754
|
+
},
|
|
1755
|
+
handlePause: () => e({
|
|
1756
|
+
isPlaying: !1,
|
|
1757
|
+
pauseTime: Date.now()
|
|
1758
|
+
}),
|
|
1759
|
+
handlePlay: () => e({
|
|
1760
|
+
isPlaying: !0,
|
|
1761
|
+
pauseTime: 0
|
|
1762
|
+
}),
|
|
1763
|
+
handlePlaying: () => e({ isLoading: !1 }),
|
|
1764
|
+
handleSeeked: () => e({ isLoading: !1 }),
|
|
1765
|
+
handleSeeking: () => e({ isLoading: !0 }),
|
|
1766
|
+
handleTimeUpdate: () => {
|
|
1767
|
+
const n = t().techRef.current;
|
|
1768
|
+
n && e({ currentTime: n.currentTime });
|
|
1769
|
+
},
|
|
1770
|
+
handleWaiting: () => e({ isLoading: !0 }),
|
|
1771
|
+
pause: () => {
|
|
1772
|
+
const n = t().techRef.current;
|
|
1773
|
+
n && (n.pause(), e({
|
|
1774
|
+
isEnded: !1,
|
|
1775
|
+
isPlaying: !1,
|
|
1776
|
+
pauseTime: Date.now()
|
|
1777
|
+
}));
|
|
1778
|
+
},
|
|
1779
|
+
pauseTimeDiff: () => is(Date.now() - t().pauseTime),
|
|
1780
|
+
play: () => {
|
|
1781
|
+
const n = t().techRef.current;
|
|
1782
|
+
n && (n.play(), e({
|
|
1783
|
+
isEnded: !1,
|
|
1784
|
+
isPlaying: !0,
|
|
1785
|
+
isStarted: !0,
|
|
1786
|
+
pauseTime: 0
|
|
1787
|
+
}));
|
|
1788
|
+
},
|
|
1789
|
+
seek: (n) => {
|
|
1790
|
+
const r = t().techRef.current;
|
|
1791
|
+
r && (r.currentTime = n, (r.paused || r.ended) && r.play(), e({
|
|
1792
|
+
seekTime: -1,
|
|
1793
|
+
currentTime: n,
|
|
1794
|
+
isStarted: !0,
|
|
1795
|
+
isEnded: !1,
|
|
1796
|
+
isPlaying: !0
|
|
1797
|
+
}));
|
|
1798
|
+
},
|
|
1799
|
+
setIsLoading: (n) => e({ isLoading: n }),
|
|
1800
|
+
setIsLoop: (n) => {
|
|
1801
|
+
const r = t().techRef.current;
|
|
1802
|
+
r && (r.loop = n, e({ isLoop: n }));
|
|
1803
|
+
},
|
|
1804
|
+
setStartTime: (n) => e({ startTime: n }),
|
|
1805
|
+
setVolume: (n) => {
|
|
1806
|
+
const r = t().techRef.current;
|
|
1807
|
+
r && (r.muted = n === 0, r.volume = n / 100, e({ volume: n }));
|
|
1808
|
+
},
|
|
1809
|
+
stop: () => {
|
|
1810
|
+
t().techRef.current && e({
|
|
1811
|
+
isPlaying: !1,
|
|
1812
|
+
isLoading: !1
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
}), ps = (e) => ({
|
|
1816
|
+
idleLocks: /* @__PURE__ */ new Set(),
|
|
1817
|
+
addIdleLock: (t) => e((n) => ({
|
|
1818
|
+
idleLocks: new Set(n.idleLocks).add(t)
|
|
1819
|
+
})),
|
|
1820
|
+
removeIdleLock: (t) => e((n) => {
|
|
1821
|
+
const r = new Set(n.idleLocks);
|
|
1822
|
+
return r.delete(t), { idleLocks: r };
|
|
1823
|
+
})
|
|
1824
|
+
}), hs = (e, t) => ({
|
|
1825
|
+
isFullscreen: !1,
|
|
1826
|
+
isFullscreenReady: !1,
|
|
1827
|
+
exitFullscreen: () => {
|
|
1828
|
+
us(document), e({ isFullscreen: !1 });
|
|
1829
|
+
},
|
|
1830
|
+
requestFullscreen: () => {
|
|
1831
|
+
const n = t().techRef.current, r = t().containerRef.current;
|
|
1832
|
+
if (!n || !r) return;
|
|
1833
|
+
const o = Bn ? n : r;
|
|
1834
|
+
o && ls(o), e({ isFullscreen: !0 });
|
|
1835
|
+
},
|
|
1836
|
+
setIsFullscreen: (n) => e({ isFullscreen: n }),
|
|
1837
|
+
setIsFullscreenReady: (n) => e({ isFullscreenReady: n })
|
|
1838
|
+
}), ms = (e) => ({
|
|
1839
|
+
url: "",
|
|
1840
|
+
setURL: (t) => e({ url: t })
|
|
1841
|
+
}), gs = (e) => () => ({
|
|
1842
|
+
...e
|
|
1843
|
+
}), ys = (e, t) => hn()((...n) => ({
|
|
1844
|
+
...fs(...n),
|
|
1845
|
+
...ps(...n),
|
|
1846
|
+
...hs(...n),
|
|
1847
|
+
...ms(...n),
|
|
1848
|
+
...gs({ techRef: e, containerRef: t })(...n)
|
|
1849
|
+
})), Un = pn(null);
|
|
1850
|
+
function vs({ children: e }) {
|
|
1851
|
+
const t = q(null), n = q(null), r = q(null);
|
|
1852
|
+
return t.current || (t.current = ys(n, r)), /* @__PURE__ */ c.jsx(Un.Provider, { value: t.current, children: e });
|
|
1853
|
+
}
|
|
1854
|
+
const b = (e) => {
|
|
1855
|
+
const t = jt(Un);
|
|
1856
|
+
if (!t)
|
|
1857
|
+
throw new Error("usePlayerStore must be used within PlayerStoreProvider");
|
|
1858
|
+
return _t(t, e);
|
|
1859
|
+
};
|
|
1860
|
+
function Ss() {
|
|
1861
|
+
const e = b((l) => l.isPlaying), t = b((l) => l.pause), n = b((l) => l.pauseTime), r = b((l) => l.pauseTimeDiff), o = b((l) => l.play), s = Z((l) => l.delay), i = Z((l) => l.setDelay), a = () => {
|
|
1862
|
+
e ? t() : (n && i(s + r()), o());
|
|
1863
|
+
};
|
|
1864
|
+
return /* @__PURE__ */ c.jsx(Fe, { onClick: a, children: e ? /* @__PURE__ */ c.jsx(Hn, {}) : /* @__PURE__ */ c.jsx(zn, {}) });
|
|
1865
|
+
}
|
|
1866
|
+
function Yn({
|
|
1867
|
+
className: e,
|
|
1868
|
+
onClick: t,
|
|
1869
|
+
...n
|
|
1870
|
+
}) {
|
|
1871
|
+
const r = q(null), o = b((d) => d.exitFullscreen), s = b((d) => d.isFullscreen), i = b((d) => d.requestFullscreen), a = (d) => {
|
|
1872
|
+
h() ? (u(), s ? o() : i()) : l(d);
|
|
1873
|
+
}, l = (d) => {
|
|
1874
|
+
r.current = window.setTimeout(() => {
|
|
1875
|
+
t?.(d), u();
|
|
1876
|
+
}, 200);
|
|
1877
|
+
}, u = () => {
|
|
1878
|
+
r.current !== null && (window.clearTimeout(r.current), r.current = null);
|
|
1879
|
+
}, h = () => r.current !== null;
|
|
1880
|
+
return ne(() => () => {
|
|
1881
|
+
u();
|
|
1882
|
+
}, []), /* @__PURE__ */ c.jsx(
|
|
1883
|
+
ws,
|
|
1884
|
+
{
|
|
1885
|
+
onClick: a,
|
|
1886
|
+
className: e,
|
|
1887
|
+
"aria-label": "Player playback indicator",
|
|
1888
|
+
...n
|
|
1889
|
+
}
|
|
1890
|
+
);
|
|
1891
|
+
}
|
|
1892
|
+
const ws = A.button`
|
|
1893
|
+
position: absolute;
|
|
1894
|
+
top: 0;
|
|
1895
|
+
left: 0;
|
|
1896
|
+
display: flex;
|
|
1897
|
+
width: 100%;
|
|
1898
|
+
height: 100%;
|
|
1899
|
+
cursor: default;
|
|
1900
|
+
align-items: center;
|
|
1901
|
+
justify-content: center;
|
|
1902
|
+
outline: none;
|
|
1903
|
+
background: none;
|
|
1904
|
+
border: none;
|
|
1905
|
+
padding: 0;
|
|
1906
|
+
|
|
1907
|
+
&:focus {
|
|
1908
|
+
outline: none;
|
|
1909
|
+
}
|
|
1910
|
+
`;
|
|
1911
|
+
function bs() {
|
|
1912
|
+
const e = b((r) => r.isPlaying), t = b((r) => r.play), n = () => {
|
|
1913
|
+
e || t();
|
|
1914
|
+
};
|
|
1915
|
+
return /* @__PURE__ */ c.jsx(Yn, { onClick: n });
|
|
1916
|
+
}
|
|
1917
|
+
const Wn = A.div`
|
|
1918
|
+
position: relative;
|
|
1919
|
+
width: 100%;
|
|
1920
|
+
`, qn = A.div`
|
|
1921
|
+
position: absolute;
|
|
1922
|
+
bottom: 1.75rem;
|
|
1923
|
+
left: 0;
|
|
1924
|
+
width: 3rem;
|
|
1925
|
+
z-index: 10;
|
|
1926
|
+
pointer-events: none;
|
|
1927
|
+
user-select: none;
|
|
1928
|
+
opacity: ${({ $isVisible: e }) => e ? 1 : 0};
|
|
1929
|
+
transform: ${({ $isVisible: e }) => e ? "translateY(0)" : "translateY(-0.5rem)"};
|
|
1930
|
+
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
1931
|
+
`, Kn = A.p`
|
|
1932
|
+
margin: 0;
|
|
1933
|
+
padding: 0.25rem;
|
|
1934
|
+
font-variant-numeric: tabular-nums;
|
|
1935
|
+
font-size: 0.875rem;
|
|
1936
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
1937
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
1938
|
+
font-weight: 500;
|
|
1939
|
+
text-align: center;
|
|
1940
|
+
color: white;
|
|
1941
|
+
background: rgba(0, 0, 0, 0.8);
|
|
1942
|
+
border-radius: 1rem;
|
|
1943
|
+
`;
|
|
1944
|
+
function Gn(e, [t, n]) {
|
|
1945
|
+
return Math.min(n, Math.max(t, e));
|
|
1946
|
+
}
|
|
1947
|
+
function Ce(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
1948
|
+
return function(o) {
|
|
1949
|
+
if (e?.(o), n === !1 || !o.defaultPrevented)
|
|
1950
|
+
return t?.(o);
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
function ln(e, t) {
|
|
1954
|
+
if (typeof e == "function")
|
|
1955
|
+
return e(t);
|
|
1956
|
+
e != null && (e.current = t);
|
|
1957
|
+
}
|
|
1958
|
+
function Zn(...e) {
|
|
1959
|
+
return (t) => {
|
|
1960
|
+
let n = !1;
|
|
1961
|
+
const r = e.map((o) => {
|
|
1962
|
+
const s = ln(o, t);
|
|
1963
|
+
return !n && typeof s == "function" && (n = !0), s;
|
|
1964
|
+
});
|
|
1965
|
+
if (n)
|
|
1966
|
+
return () => {
|
|
1967
|
+
for (let o = 0; o < r.length; o++) {
|
|
1968
|
+
const s = r[o];
|
|
1969
|
+
typeof s == "function" ? s() : ln(e[o], null);
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
}
|
|
1974
|
+
function he(...e) {
|
|
1975
|
+
return v.useCallback(Zn(...e), e);
|
|
1976
|
+
}
|
|
1977
|
+
function Xn(e, t = []) {
|
|
1978
|
+
let n = [];
|
|
1979
|
+
function r(s, i) {
|
|
1980
|
+
const a = v.createContext(i), l = n.length;
|
|
1981
|
+
n = [...n, i];
|
|
1982
|
+
const u = (d) => {
|
|
1983
|
+
const { scope: m, children: g, ...x } = d, y = m?.[e]?.[l] || a, E = v.useMemo(() => x, Object.values(x));
|
|
1984
|
+
return /* @__PURE__ */ c.jsx(y.Provider, { value: E, children: g });
|
|
1985
|
+
};
|
|
1986
|
+
u.displayName = s + "Provider";
|
|
1987
|
+
function h(d, m) {
|
|
1988
|
+
const g = m?.[e]?.[l] || a, x = v.useContext(g);
|
|
1989
|
+
if (x) return x;
|
|
1990
|
+
if (i !== void 0) return i;
|
|
1991
|
+
throw new Error(`\`${d}\` must be used within \`${s}\``);
|
|
1992
|
+
}
|
|
1993
|
+
return [u, h];
|
|
1994
|
+
}
|
|
1995
|
+
const o = () => {
|
|
1996
|
+
const s = n.map((i) => v.createContext(i));
|
|
1997
|
+
return function(a) {
|
|
1998
|
+
const l = a?.[e] || s;
|
|
1999
|
+
return v.useMemo(
|
|
2000
|
+
() => ({ [`__scope${e}`]: { ...a, [e]: l } }),
|
|
2001
|
+
[a, l]
|
|
2002
|
+
);
|
|
2003
|
+
};
|
|
2004
|
+
};
|
|
2005
|
+
return o.scopeName = e, [r, xs(o, ...t)];
|
|
2006
|
+
}
|
|
2007
|
+
function xs(...e) {
|
|
2008
|
+
const t = e[0];
|
|
2009
|
+
if (e.length === 1) return t;
|
|
2010
|
+
const n = () => {
|
|
2011
|
+
const r = e.map((o) => ({
|
|
2012
|
+
useScope: o(),
|
|
2013
|
+
scopeName: o.scopeName
|
|
2014
|
+
}));
|
|
2015
|
+
return function(s) {
|
|
2016
|
+
const i = r.reduce((a, { useScope: l, scopeName: u }) => {
|
|
2017
|
+
const d = l(s)[`__scope${u}`];
|
|
2018
|
+
return { ...a, ...d };
|
|
2019
|
+
}, {});
|
|
2020
|
+
return v.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
return n.scopeName = t.scopeName, n;
|
|
2024
|
+
}
|
|
2025
|
+
var Jn = globalThis?.document ? v.useLayoutEffect : () => {
|
|
2026
|
+
}, Es = v[" useInsertionEffect ".trim().toString()] || Jn;
|
|
2027
|
+
function Cs({
|
|
2028
|
+
prop: e,
|
|
2029
|
+
defaultProp: t,
|
|
2030
|
+
onChange: n = () => {
|
|
2031
|
+
},
|
|
2032
|
+
caller: r
|
|
2033
|
+
}) {
|
|
2034
|
+
const [o, s, i] = Ps({
|
|
2035
|
+
defaultProp: t,
|
|
2036
|
+
onChange: n
|
|
2037
|
+
}), a = e !== void 0, l = a ? e : o;
|
|
2038
|
+
{
|
|
2039
|
+
const h = v.useRef(e !== void 0);
|
|
2040
|
+
v.useEffect(() => {
|
|
2041
|
+
const d = h.current;
|
|
2042
|
+
d !== a && console.warn(
|
|
2043
|
+
`${r} is changing from ${d ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
2044
|
+
), h.current = a;
|
|
2045
|
+
}, [a, r]);
|
|
2046
|
+
}
|
|
2047
|
+
const u = v.useCallback(
|
|
2048
|
+
(h) => {
|
|
2049
|
+
if (a) {
|
|
2050
|
+
const d = Rs(h) ? h(e) : h;
|
|
2051
|
+
d !== e && i.current?.(d);
|
|
2052
|
+
} else
|
|
2053
|
+
s(h);
|
|
2054
|
+
},
|
|
2055
|
+
[a, e, s, i]
|
|
2056
|
+
);
|
|
2057
|
+
return [l, u];
|
|
2058
|
+
}
|
|
2059
|
+
function Ps({
|
|
2060
|
+
defaultProp: e,
|
|
2061
|
+
onChange: t
|
|
2062
|
+
}) {
|
|
2063
|
+
const [n, r] = v.useState(e), o = v.useRef(n), s = v.useRef(t);
|
|
2064
|
+
return Es(() => {
|
|
2065
|
+
s.current = t;
|
|
2066
|
+
}, [t]), v.useEffect(() => {
|
|
2067
|
+
o.current !== n && (s.current?.(n), o.current = n);
|
|
2068
|
+
}, [n, o]), [n, r, s];
|
|
2069
|
+
}
|
|
2070
|
+
function Rs(e) {
|
|
2071
|
+
return typeof e == "function";
|
|
2072
|
+
}
|
|
2073
|
+
var ks = v.createContext(void 0);
|
|
2074
|
+
function Ts(e) {
|
|
2075
|
+
const t = v.useContext(ks);
|
|
2076
|
+
return e || t || "ltr";
|
|
2077
|
+
}
|
|
2078
|
+
function js(e) {
|
|
2079
|
+
const t = v.useRef({ value: e, previous: e });
|
|
2080
|
+
return v.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
2081
|
+
}
|
|
2082
|
+
function Is(e) {
|
|
2083
|
+
const [t, n] = v.useState(void 0);
|
|
2084
|
+
return Jn(() => {
|
|
2085
|
+
if (e) {
|
|
2086
|
+
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
2087
|
+
const r = new ResizeObserver((o) => {
|
|
2088
|
+
if (!Array.isArray(o) || !o.length)
|
|
2089
|
+
return;
|
|
2090
|
+
const s = o[0];
|
|
2091
|
+
let i, a;
|
|
2092
|
+
if ("borderBoxSize" in s) {
|
|
2093
|
+
const l = s.borderBoxSize, u = Array.isArray(l) ? l[0] : l;
|
|
2094
|
+
i = u.inlineSize, a = u.blockSize;
|
|
2095
|
+
} else
|
|
2096
|
+
i = e.offsetWidth, a = e.offsetHeight;
|
|
2097
|
+
n({ width: i, height: a });
|
|
2098
|
+
});
|
|
2099
|
+
return r.observe(e, { box: "border-box" }), () => r.unobserve(e);
|
|
2100
|
+
} else
|
|
2101
|
+
n(void 0);
|
|
2102
|
+
}, [e]), t;
|
|
2103
|
+
}
|
|
2104
|
+
// @__NO_SIDE_EFFECTS__
|
|
2105
|
+
function Pt(e) {
|
|
2106
|
+
const t = /* @__PURE__ */ _s(e), n = v.forwardRef((r, o) => {
|
|
2107
|
+
const { children: s, ...i } = r, a = v.Children.toArray(s), l = a.find(Ls);
|
|
2108
|
+
if (l) {
|
|
2109
|
+
const u = l.props.children, h = a.map((d) => d === l ? v.Children.count(u) > 1 ? v.Children.only(null) : v.isValidElement(u) ? u.props.children : null : d);
|
|
2110
|
+
return /* @__PURE__ */ c.jsx(t, { ...i, ref: o, children: v.isValidElement(u) ? v.cloneElement(u, void 0, h) : null });
|
|
2111
|
+
}
|
|
2112
|
+
return /* @__PURE__ */ c.jsx(t, { ...i, ref: o, children: s });
|
|
2113
|
+
});
|
|
2114
|
+
return n.displayName = `${e}.Slot`, n;
|
|
2115
|
+
}
|
|
2116
|
+
// @__NO_SIDE_EFFECTS__
|
|
2117
|
+
function _s(e) {
|
|
2118
|
+
const t = v.forwardRef((n, r) => {
|
|
2119
|
+
const { children: o, ...s } = n;
|
|
2120
|
+
if (v.isValidElement(o)) {
|
|
2121
|
+
const i = Ns(o), a = Ds(s, o.props);
|
|
2122
|
+
return o.type !== v.Fragment && (a.ref = r ? Zn(r, i) : i), v.cloneElement(o, a);
|
|
2123
|
+
}
|
|
2124
|
+
return v.Children.count(o) > 1 ? v.Children.only(null) : null;
|
|
2125
|
+
});
|
|
2126
|
+
return t.displayName = `${e}.SlotClone`, t;
|
|
2127
|
+
}
|
|
2128
|
+
var As = Symbol("radix.slottable");
|
|
2129
|
+
function Ls(e) {
|
|
2130
|
+
return v.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === As;
|
|
2131
|
+
}
|
|
2132
|
+
function Ds(e, t) {
|
|
2133
|
+
const n = { ...t };
|
|
2134
|
+
for (const r in t) {
|
|
2135
|
+
const o = e[r], s = t[r];
|
|
2136
|
+
/^on[A-Z]/.test(r) ? o && s ? n[r] = (...a) => {
|
|
2137
|
+
const l = s(...a);
|
|
2138
|
+
return o(...a), l;
|
|
2139
|
+
} : o && (n[r] = o) : r === "style" ? n[r] = { ...o, ...s } : r === "className" && (n[r] = [o, s].filter(Boolean).join(" "));
|
|
2140
|
+
}
|
|
2141
|
+
return { ...e, ...n };
|
|
2142
|
+
}
|
|
2143
|
+
function Ns(e) {
|
|
2144
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2145
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2146
|
+
}
|
|
2147
|
+
var Ms = [
|
|
2148
|
+
"a",
|
|
2149
|
+
"button",
|
|
2150
|
+
"div",
|
|
2151
|
+
"form",
|
|
2152
|
+
"h2",
|
|
2153
|
+
"h3",
|
|
2154
|
+
"img",
|
|
2155
|
+
"input",
|
|
2156
|
+
"label",
|
|
2157
|
+
"li",
|
|
2158
|
+
"nav",
|
|
2159
|
+
"ol",
|
|
2160
|
+
"p",
|
|
2161
|
+
"select",
|
|
2162
|
+
"span",
|
|
2163
|
+
"svg",
|
|
2164
|
+
"ul"
|
|
2165
|
+
], $e = Ms.reduce((e, t) => {
|
|
2166
|
+
const n = /* @__PURE__ */ Pt(`Primitive.${t}`), r = v.forwardRef((o, s) => {
|
|
2167
|
+
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
2168
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(l, { ...a, ref: s });
|
|
2169
|
+
});
|
|
2170
|
+
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
2171
|
+
}, {});
|
|
2172
|
+
function Os(e) {
|
|
2173
|
+
const t = e + "CollectionProvider", [n, r] = Xn(t), [o, s] = n(
|
|
2174
|
+
t,
|
|
2175
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
2176
|
+
), i = (y) => {
|
|
2177
|
+
const { scope: E, children: w } = y, R = B.useRef(null), p = B.useRef(/* @__PURE__ */ new Map()).current;
|
|
2178
|
+
return /* @__PURE__ */ c.jsx(o, { scope: E, itemMap: p, collectionRef: R, children: w });
|
|
2179
|
+
};
|
|
2180
|
+
i.displayName = t;
|
|
2181
|
+
const a = e + "CollectionSlot", l = /* @__PURE__ */ Pt(a), u = B.forwardRef(
|
|
2182
|
+
(y, E) => {
|
|
2183
|
+
const { scope: w, children: R } = y, p = s(a, w), S = he(E, p.collectionRef);
|
|
2184
|
+
return /* @__PURE__ */ c.jsx(l, { ref: S, children: R });
|
|
2185
|
+
}
|
|
2186
|
+
);
|
|
2187
|
+
u.displayName = a;
|
|
2188
|
+
const h = e + "CollectionItemSlot", d = "data-radix-collection-item", m = /* @__PURE__ */ Pt(h), g = B.forwardRef(
|
|
2189
|
+
(y, E) => {
|
|
2190
|
+
const { scope: w, children: R, ...p } = y, S = B.useRef(null), T = he(E, S), P = s(h, w);
|
|
2191
|
+
return B.useEffect(() => (P.itemMap.set(S, { ref: S, ...p }), () => void P.itemMap.delete(S))), /* @__PURE__ */ c.jsx(m, { [d]: "", ref: T, children: R });
|
|
2192
|
+
}
|
|
2193
|
+
);
|
|
2194
|
+
g.displayName = h;
|
|
2195
|
+
function x(y) {
|
|
2196
|
+
const E = s(e + "CollectionConsumer", y);
|
|
2197
|
+
return B.useCallback(() => {
|
|
2198
|
+
const R = E.collectionRef.current;
|
|
2199
|
+
if (!R) return [];
|
|
2200
|
+
const p = Array.from(R.querySelectorAll(`[${d}]`));
|
|
2201
|
+
return Array.from(E.itemMap.values()).sort(
|
|
2202
|
+
(P, C) => p.indexOf(P.ref.current) - p.indexOf(C.ref.current)
|
|
2203
|
+
);
|
|
2204
|
+
}, [E.collectionRef, E.itemMap]);
|
|
2205
|
+
}
|
|
2206
|
+
return [
|
|
2207
|
+
{ Provider: i, Slot: u, ItemSlot: g },
|
|
2208
|
+
x,
|
|
2209
|
+
r
|
|
2210
|
+
];
|
|
2211
|
+
}
|
|
2212
|
+
var Qn = ["PageUp", "PageDown"], er = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], tr = {
|
|
2213
|
+
"from-left": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
2214
|
+
"from-right": ["Home", "PageDown", "ArrowDown", "ArrowRight"],
|
|
2215
|
+
"from-bottom": ["Home", "PageDown", "ArrowDown", "ArrowLeft"],
|
|
2216
|
+
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
2217
|
+
}, Le = "Slider", [Rt, Vs, Fs] = Os(Le), [nr, Vi] = Xn(Le, [
|
|
2218
|
+
Fs
|
|
2219
|
+
]), [$s, ct] = nr(Le), rr = v.forwardRef(
|
|
2220
|
+
(e, t) => {
|
|
2221
|
+
const {
|
|
2222
|
+
name: n,
|
|
2223
|
+
min: r = 0,
|
|
2224
|
+
max: o = 100,
|
|
2225
|
+
step: s = 1,
|
|
2226
|
+
orientation: i = "horizontal",
|
|
2227
|
+
disabled: a = !1,
|
|
2228
|
+
minStepsBetweenThumbs: l = 0,
|
|
2229
|
+
defaultValue: u = [r],
|
|
2230
|
+
value: h,
|
|
2231
|
+
onValueChange: d = () => {
|
|
2232
|
+
},
|
|
2233
|
+
onValueCommit: m = () => {
|
|
2234
|
+
},
|
|
2235
|
+
inverted: g = !1,
|
|
2236
|
+
form: x,
|
|
2237
|
+
...y
|
|
2238
|
+
} = e, E = v.useRef(/* @__PURE__ */ new Set()), w = v.useRef(0), p = i === "horizontal" ? Hs : zs, [S = [], T] = Cs({
|
|
2239
|
+
prop: h,
|
|
2240
|
+
defaultProp: u,
|
|
2241
|
+
onChange: (N) => {
|
|
2242
|
+
[...E.current][w.current]?.focus(), d(N);
|
|
2243
|
+
}
|
|
2244
|
+
}), P = v.useRef(S);
|
|
2245
|
+
function C(N) {
|
|
2246
|
+
const z = qs(S, N);
|
|
2247
|
+
I(N, z);
|
|
2248
|
+
}
|
|
2249
|
+
function $(N) {
|
|
2250
|
+
I(N, w.current);
|
|
2251
|
+
}
|
|
2252
|
+
function U() {
|
|
2253
|
+
const N = P.current[w.current];
|
|
2254
|
+
S[w.current] !== N && m(S);
|
|
2255
|
+
}
|
|
2256
|
+
function I(N, z, { commit: ee } = { commit: !1 }) {
|
|
2257
|
+
const oe = Xs(s), se = Js(Math.round((N - r) / s) * s + r, oe), J = Gn(se, [r, o]);
|
|
2258
|
+
T((O = []) => {
|
|
2259
|
+
const Q = Ys(O, J, z);
|
|
2260
|
+
if (Zs(Q, l * s)) {
|
|
2261
|
+
w.current = Q.indexOf(J);
|
|
2262
|
+
const Y = String(Q) !== String(O);
|
|
2263
|
+
return Y && ee && m(Q), Y ? Q : O;
|
|
2264
|
+
} else
|
|
2265
|
+
return O;
|
|
2266
|
+
});
|
|
2267
|
+
}
|
|
2268
|
+
return /* @__PURE__ */ c.jsx(
|
|
2269
|
+
$s,
|
|
2270
|
+
{
|
|
2271
|
+
scope: e.__scopeSlider,
|
|
2272
|
+
name: n,
|
|
2273
|
+
disabled: a,
|
|
2274
|
+
min: r,
|
|
2275
|
+
max: o,
|
|
2276
|
+
valueIndexToChangeRef: w,
|
|
2277
|
+
thumbs: E.current,
|
|
2278
|
+
values: S,
|
|
2279
|
+
orientation: i,
|
|
2280
|
+
form: x,
|
|
2281
|
+
children: /* @__PURE__ */ c.jsx(Rt.Provider, { scope: e.__scopeSlider, children: /* @__PURE__ */ c.jsx(Rt.Slot, { scope: e.__scopeSlider, children: /* @__PURE__ */ c.jsx(
|
|
2282
|
+
p,
|
|
2283
|
+
{
|
|
2284
|
+
"aria-disabled": a,
|
|
2285
|
+
"data-disabled": a ? "" : void 0,
|
|
2286
|
+
...y,
|
|
2287
|
+
ref: t,
|
|
2288
|
+
onPointerDown: Ce(y.onPointerDown, () => {
|
|
2289
|
+
a || (P.current = S);
|
|
2290
|
+
}),
|
|
2291
|
+
min: r,
|
|
2292
|
+
max: o,
|
|
2293
|
+
inverted: g,
|
|
2294
|
+
onSlideStart: a ? void 0 : C,
|
|
2295
|
+
onSlideMove: a ? void 0 : $,
|
|
2296
|
+
onSlideEnd: a ? void 0 : U,
|
|
2297
|
+
onHomeKeyDown: () => !a && I(r, 0, { commit: !0 }),
|
|
2298
|
+
onEndKeyDown: () => !a && I(o, S.length - 1, { commit: !0 }),
|
|
2299
|
+
onStepKeyDown: ({ event: N, direction: z }) => {
|
|
2300
|
+
if (!a) {
|
|
2301
|
+
const se = Qn.includes(N.key) || N.shiftKey && er.includes(N.key) ? 10 : 1, J = w.current, O = S[J], Q = s * se * z;
|
|
2302
|
+
I(O + Q, J, { commit: !0 });
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
) }) })
|
|
2307
|
+
}
|
|
2308
|
+
);
|
|
2309
|
+
}
|
|
2310
|
+
);
|
|
2311
|
+
rr.displayName = Le;
|
|
2312
|
+
var [or, sr] = nr(Le, {
|
|
2313
|
+
startEdge: "left",
|
|
2314
|
+
endEdge: "right",
|
|
2315
|
+
size: "width",
|
|
2316
|
+
direction: 1
|
|
2317
|
+
}), Hs = v.forwardRef(
|
|
2318
|
+
(e, t) => {
|
|
2319
|
+
const {
|
|
2320
|
+
min: n,
|
|
2321
|
+
max: r,
|
|
2322
|
+
dir: o,
|
|
2323
|
+
inverted: s,
|
|
2324
|
+
onSlideStart: i,
|
|
2325
|
+
onSlideMove: a,
|
|
2326
|
+
onSlideEnd: l,
|
|
2327
|
+
onStepKeyDown: u,
|
|
2328
|
+
...h
|
|
2329
|
+
} = e, [d, m] = v.useState(null), g = he(t, (p) => m(p)), x = v.useRef(void 0), y = Ts(o), E = y === "ltr", w = E && !s || !E && s;
|
|
2330
|
+
function R(p) {
|
|
2331
|
+
const S = x.current || d.getBoundingClientRect(), T = [0, S.width], C = Ot(T, w ? [n, r] : [r, n]);
|
|
2332
|
+
return x.current = S, C(p - S.left);
|
|
2333
|
+
}
|
|
2334
|
+
return /* @__PURE__ */ c.jsx(
|
|
2335
|
+
or,
|
|
2336
|
+
{
|
|
2337
|
+
scope: e.__scopeSlider,
|
|
2338
|
+
startEdge: w ? "left" : "right",
|
|
2339
|
+
endEdge: w ? "right" : "left",
|
|
2340
|
+
direction: w ? 1 : -1,
|
|
2341
|
+
size: "width",
|
|
2342
|
+
children: /* @__PURE__ */ c.jsx(
|
|
2343
|
+
ir,
|
|
2344
|
+
{
|
|
2345
|
+
dir: y,
|
|
2346
|
+
"data-orientation": "horizontal",
|
|
2347
|
+
...h,
|
|
2348
|
+
ref: g,
|
|
2349
|
+
style: {
|
|
2350
|
+
...h.style,
|
|
2351
|
+
"--radix-slider-thumb-transform": "translateX(-50%)"
|
|
2352
|
+
},
|
|
2353
|
+
onSlideStart: (p) => {
|
|
2354
|
+
const S = R(p.clientX);
|
|
2355
|
+
i?.(S);
|
|
2356
|
+
},
|
|
2357
|
+
onSlideMove: (p) => {
|
|
2358
|
+
const S = R(p.clientX);
|
|
2359
|
+
a?.(S);
|
|
2360
|
+
},
|
|
2361
|
+
onSlideEnd: () => {
|
|
2362
|
+
x.current = void 0, l?.();
|
|
2363
|
+
},
|
|
2364
|
+
onStepKeyDown: (p) => {
|
|
2365
|
+
const T = tr[w ? "from-left" : "from-right"].includes(p.key);
|
|
2366
|
+
u?.({ event: p, direction: T ? -1 : 1 });
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
)
|
|
2370
|
+
}
|
|
2371
|
+
);
|
|
2372
|
+
}
|
|
2373
|
+
), zs = v.forwardRef(
|
|
2374
|
+
(e, t) => {
|
|
2375
|
+
const {
|
|
2376
|
+
min: n,
|
|
2377
|
+
max: r,
|
|
2378
|
+
inverted: o,
|
|
2379
|
+
onSlideStart: s,
|
|
2380
|
+
onSlideMove: i,
|
|
2381
|
+
onSlideEnd: a,
|
|
2382
|
+
onStepKeyDown: l,
|
|
2383
|
+
...u
|
|
2384
|
+
} = e, h = v.useRef(null), d = he(t, h), m = v.useRef(void 0), g = !o;
|
|
2385
|
+
function x(y) {
|
|
2386
|
+
const E = m.current || h.current.getBoundingClientRect(), w = [0, E.height], p = Ot(w, g ? [r, n] : [n, r]);
|
|
2387
|
+
return m.current = E, p(y - E.top);
|
|
2388
|
+
}
|
|
2389
|
+
return /* @__PURE__ */ c.jsx(
|
|
2390
|
+
or,
|
|
2391
|
+
{
|
|
2392
|
+
scope: e.__scopeSlider,
|
|
2393
|
+
startEdge: g ? "bottom" : "top",
|
|
2394
|
+
endEdge: g ? "top" : "bottom",
|
|
2395
|
+
size: "height",
|
|
2396
|
+
direction: g ? 1 : -1,
|
|
2397
|
+
children: /* @__PURE__ */ c.jsx(
|
|
2398
|
+
ir,
|
|
2399
|
+
{
|
|
2400
|
+
"data-orientation": "vertical",
|
|
2401
|
+
...u,
|
|
2402
|
+
ref: d,
|
|
2403
|
+
style: {
|
|
2404
|
+
...u.style,
|
|
2405
|
+
"--radix-slider-thumb-transform": "translateY(50%)"
|
|
2406
|
+
},
|
|
2407
|
+
onSlideStart: (y) => {
|
|
2408
|
+
const E = x(y.clientY);
|
|
2409
|
+
s?.(E);
|
|
2410
|
+
},
|
|
2411
|
+
onSlideMove: (y) => {
|
|
2412
|
+
const E = x(y.clientY);
|
|
2413
|
+
i?.(E);
|
|
2414
|
+
},
|
|
2415
|
+
onSlideEnd: () => {
|
|
2416
|
+
m.current = void 0, a?.();
|
|
2417
|
+
},
|
|
2418
|
+
onStepKeyDown: (y) => {
|
|
2419
|
+
const w = tr[g ? "from-bottom" : "from-top"].includes(y.key);
|
|
2420
|
+
l?.({ event: y, direction: w ? -1 : 1 });
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
)
|
|
2424
|
+
}
|
|
2425
|
+
);
|
|
2426
|
+
}
|
|
2427
|
+
), ir = v.forwardRef(
|
|
2428
|
+
(e, t) => {
|
|
2429
|
+
const {
|
|
2430
|
+
__scopeSlider: n,
|
|
2431
|
+
onSlideStart: r,
|
|
2432
|
+
onSlideMove: o,
|
|
2433
|
+
onSlideEnd: s,
|
|
2434
|
+
onHomeKeyDown: i,
|
|
2435
|
+
onEndKeyDown: a,
|
|
2436
|
+
onStepKeyDown: l,
|
|
2437
|
+
...u
|
|
2438
|
+
} = e, h = ct(Le, n);
|
|
2439
|
+
return /* @__PURE__ */ c.jsx(
|
|
2440
|
+
$e.span,
|
|
2441
|
+
{
|
|
2442
|
+
...u,
|
|
2443
|
+
ref: t,
|
|
2444
|
+
onKeyDown: Ce(e.onKeyDown, (d) => {
|
|
2445
|
+
d.key === "Home" ? (i(d), d.preventDefault()) : d.key === "End" ? (a(d), d.preventDefault()) : Qn.concat(er).includes(d.key) && (l(d), d.preventDefault());
|
|
2446
|
+
}),
|
|
2447
|
+
onPointerDown: Ce(e.onPointerDown, (d) => {
|
|
2448
|
+
const m = d.target;
|
|
2449
|
+
m.setPointerCapture(d.pointerId), d.preventDefault(), h.thumbs.has(m) ? m.focus() : r(d);
|
|
2450
|
+
}),
|
|
2451
|
+
onPointerMove: Ce(e.onPointerMove, (d) => {
|
|
2452
|
+
d.target.hasPointerCapture(d.pointerId) && o(d);
|
|
2453
|
+
}),
|
|
2454
|
+
onPointerUp: Ce(e.onPointerUp, (d) => {
|
|
2455
|
+
const m = d.target;
|
|
2456
|
+
m.hasPointerCapture(d.pointerId) && (m.releasePointerCapture(d.pointerId), s(d));
|
|
2457
|
+
})
|
|
2458
|
+
}
|
|
2459
|
+
);
|
|
2460
|
+
}
|
|
2461
|
+
), ar = "SliderTrack", cr = v.forwardRef(
|
|
2462
|
+
(e, t) => {
|
|
2463
|
+
const { __scopeSlider: n, ...r } = e, o = ct(ar, n);
|
|
2464
|
+
return /* @__PURE__ */ c.jsx(
|
|
2465
|
+
$e.span,
|
|
2466
|
+
{
|
|
2467
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
2468
|
+
"data-orientation": o.orientation,
|
|
2469
|
+
...r,
|
|
2470
|
+
ref: t
|
|
2471
|
+
}
|
|
2472
|
+
);
|
|
2473
|
+
}
|
|
2474
|
+
);
|
|
2475
|
+
cr.displayName = ar;
|
|
2476
|
+
var kt = "SliderRange", lr = v.forwardRef(
|
|
2477
|
+
(e, t) => {
|
|
2478
|
+
const { __scopeSlider: n, ...r } = e, o = ct(kt, n), s = sr(kt, n), i = v.useRef(null), a = he(t, i), l = o.values.length, u = o.values.map(
|
|
2479
|
+
(m) => fr(m, o.min, o.max)
|
|
2480
|
+
), h = l > 1 ? Math.min(...u) : 0, d = 100 - Math.max(...u);
|
|
2481
|
+
return /* @__PURE__ */ c.jsx(
|
|
2482
|
+
$e.span,
|
|
2483
|
+
{
|
|
2484
|
+
"data-orientation": o.orientation,
|
|
2485
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
2486
|
+
...r,
|
|
2487
|
+
ref: a,
|
|
2488
|
+
style: {
|
|
2489
|
+
...e.style,
|
|
2490
|
+
[s.startEdge]: h + "%",
|
|
2491
|
+
[s.endEdge]: d + "%"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
);
|
|
2495
|
+
}
|
|
2496
|
+
);
|
|
2497
|
+
lr.displayName = kt;
|
|
2498
|
+
var Tt = "SliderThumb", ur = v.forwardRef(
|
|
2499
|
+
(e, t) => {
|
|
2500
|
+
const n = Vs(e.__scopeSlider), [r, o] = v.useState(null), s = he(t, (a) => o(a)), i = v.useMemo(
|
|
2501
|
+
() => r ? n().findIndex((a) => a.ref.current === r) : -1,
|
|
2502
|
+
[n, r]
|
|
2503
|
+
);
|
|
2504
|
+
return /* @__PURE__ */ c.jsx(Bs, { ...e, ref: s, index: i });
|
|
2505
|
+
}
|
|
2506
|
+
), Bs = v.forwardRef(
|
|
2507
|
+
(e, t) => {
|
|
2508
|
+
const { __scopeSlider: n, index: r, name: o, ...s } = e, i = ct(Tt, n), a = sr(Tt, n), [l, u] = v.useState(null), h = he(t, (R) => u(R)), d = l ? i.form || !!l.closest("form") : !0, m = Is(l), g = i.values[r], x = g === void 0 ? 0 : fr(g, i.min, i.max), y = Ws(r, i.values.length), E = m?.[a.size], w = E ? Ks(E, x, a.direction) : 0;
|
|
2509
|
+
return v.useEffect(() => {
|
|
2510
|
+
if (l)
|
|
2511
|
+
return i.thumbs.add(l), () => {
|
|
2512
|
+
i.thumbs.delete(l);
|
|
2513
|
+
};
|
|
2514
|
+
}, [l, i.thumbs]), /* @__PURE__ */ c.jsxs(
|
|
2515
|
+
"span",
|
|
2516
|
+
{
|
|
2517
|
+
style: {
|
|
2518
|
+
transform: "var(--radix-slider-thumb-transform)",
|
|
2519
|
+
position: "absolute",
|
|
2520
|
+
[a.startEdge]: `calc(${x}% + ${w}px)`
|
|
2521
|
+
},
|
|
2522
|
+
children: [
|
|
2523
|
+
/* @__PURE__ */ c.jsx(Rt.ItemSlot, { scope: e.__scopeSlider, children: /* @__PURE__ */ c.jsx(
|
|
2524
|
+
$e.span,
|
|
2525
|
+
{
|
|
2526
|
+
role: "slider",
|
|
2527
|
+
"aria-label": e["aria-label"] || y,
|
|
2528
|
+
"aria-valuemin": i.min,
|
|
2529
|
+
"aria-valuenow": g,
|
|
2530
|
+
"aria-valuemax": i.max,
|
|
2531
|
+
"aria-orientation": i.orientation,
|
|
2532
|
+
"data-orientation": i.orientation,
|
|
2533
|
+
"data-disabled": i.disabled ? "" : void 0,
|
|
2534
|
+
tabIndex: i.disabled ? void 0 : 0,
|
|
2535
|
+
...s,
|
|
2536
|
+
ref: h,
|
|
2537
|
+
style: g === void 0 ? { display: "none" } : e.style,
|
|
2538
|
+
onFocus: Ce(e.onFocus, () => {
|
|
2539
|
+
i.valueIndexToChangeRef.current = r;
|
|
2540
|
+
})
|
|
2541
|
+
}
|
|
2542
|
+
) }),
|
|
2543
|
+
d && /* @__PURE__ */ c.jsx(
|
|
2544
|
+
dr,
|
|
2545
|
+
{
|
|
2546
|
+
name: o ?? (i.name ? i.name + (i.values.length > 1 ? "[]" : "") : void 0),
|
|
2547
|
+
form: i.form,
|
|
2548
|
+
value: g
|
|
2549
|
+
},
|
|
2550
|
+
r
|
|
2551
|
+
)
|
|
2552
|
+
]
|
|
2553
|
+
}
|
|
2554
|
+
);
|
|
2555
|
+
}
|
|
2556
|
+
);
|
|
2557
|
+
ur.displayName = Tt;
|
|
2558
|
+
var Us = "RadioBubbleInput", dr = v.forwardRef(
|
|
2559
|
+
({ __scopeSlider: e, value: t, ...n }, r) => {
|
|
2560
|
+
const o = v.useRef(null), s = he(o, r), i = js(t);
|
|
2561
|
+
return v.useEffect(() => {
|
|
2562
|
+
const a = o.current;
|
|
2563
|
+
if (!a) return;
|
|
2564
|
+
const l = window.HTMLInputElement.prototype, h = Object.getOwnPropertyDescriptor(l, "value").set;
|
|
2565
|
+
if (i !== t && h) {
|
|
2566
|
+
const d = new Event("input", { bubbles: !0 });
|
|
2567
|
+
h.call(a, t), a.dispatchEvent(d);
|
|
2568
|
+
}
|
|
2569
|
+
}, [i, t]), /* @__PURE__ */ c.jsx(
|
|
2570
|
+
$e.input,
|
|
2571
|
+
{
|
|
2572
|
+
style: { display: "none" },
|
|
2573
|
+
...n,
|
|
2574
|
+
ref: s,
|
|
2575
|
+
defaultValue: t
|
|
2576
|
+
}
|
|
2577
|
+
);
|
|
2578
|
+
}
|
|
2579
|
+
);
|
|
2580
|
+
dr.displayName = Us;
|
|
2581
|
+
function Ys(e = [], t, n) {
|
|
2582
|
+
const r = [...e];
|
|
2583
|
+
return r[n] = t, r.sort((o, s) => o - s);
|
|
2584
|
+
}
|
|
2585
|
+
function fr(e, t, n) {
|
|
2586
|
+
const s = 100 / (n - t) * (e - t);
|
|
2587
|
+
return Gn(s, [0, 100]);
|
|
2588
|
+
}
|
|
2589
|
+
function Ws(e, t) {
|
|
2590
|
+
return t > 2 ? `Value ${e + 1} of ${t}` : t === 2 ? ["Minimum", "Maximum"][e] : void 0;
|
|
2591
|
+
}
|
|
2592
|
+
function qs(e, t) {
|
|
2593
|
+
if (e.length === 1) return 0;
|
|
2594
|
+
const n = e.map((o) => Math.abs(o - t)), r = Math.min(...n);
|
|
2595
|
+
return n.indexOf(r);
|
|
2596
|
+
}
|
|
2597
|
+
function Ks(e, t, n) {
|
|
2598
|
+
const r = e / 2, s = Ot([0, 50], [0, r]);
|
|
2599
|
+
return (r - s(t) * n) * n;
|
|
2600
|
+
}
|
|
2601
|
+
function Gs(e) {
|
|
2602
|
+
return e.slice(0, -1).map((t, n) => e[n + 1] - t);
|
|
2603
|
+
}
|
|
2604
|
+
function Zs(e, t) {
|
|
2605
|
+
if (t > 0) {
|
|
2606
|
+
const n = Gs(e);
|
|
2607
|
+
return Math.min(...n) >= t;
|
|
2608
|
+
}
|
|
2609
|
+
return !0;
|
|
2610
|
+
}
|
|
2611
|
+
function Ot(e, t) {
|
|
2612
|
+
return (n) => {
|
|
2613
|
+
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
2614
|
+
const r = (t[1] - t[0]) / (e[1] - e[0]);
|
|
2615
|
+
return t[0] + r * (n - e[0]);
|
|
2616
|
+
};
|
|
2617
|
+
}
|
|
2618
|
+
function Xs(e) {
|
|
2619
|
+
return (String(e).split(".")[1] || "").length;
|
|
2620
|
+
}
|
|
2621
|
+
function Js(e, t) {
|
|
2622
|
+
const n = Math.pow(10, t);
|
|
2623
|
+
return Math.round(e * n) / n;
|
|
2624
|
+
}
|
|
2625
|
+
var Qs = rr, ei = cr, ti = lr, ni = ur;
|
|
2626
|
+
function Vt({
|
|
2627
|
+
max: e = 100,
|
|
2628
|
+
min: t = 0,
|
|
2629
|
+
...n
|
|
2630
|
+
}) {
|
|
2631
|
+
return /* @__PURE__ */ c.jsxs(
|
|
2632
|
+
ri,
|
|
2633
|
+
{
|
|
2634
|
+
min: t,
|
|
2635
|
+
max: e,
|
|
2636
|
+
"aria-label": "Player progress",
|
|
2637
|
+
onKeyDown: (r) => (
|
|
2638
|
+
// Prevent the slider from being controlled by the keyboard
|
|
2639
|
+
// when the slider is focused by a click
|
|
2640
|
+
r.preventDefault()
|
|
2641
|
+
),
|
|
2642
|
+
...n,
|
|
2643
|
+
children: [
|
|
2644
|
+
/* @__PURE__ */ c.jsx(oi, { children: /* @__PURE__ */ c.jsx(si, {}) }),
|
|
2645
|
+
/* @__PURE__ */ c.jsx(ii, {})
|
|
2646
|
+
]
|
|
2647
|
+
}
|
|
2648
|
+
);
|
|
2649
|
+
}
|
|
2650
|
+
const ri = A(Qs)`
|
|
2651
|
+
position: relative;
|
|
2652
|
+
display: flex;
|
|
2653
|
+
align-items: center;
|
|
2654
|
+
width: 100%;
|
|
2655
|
+
height: 1rem;
|
|
2656
|
+
touch-action: none;
|
|
2657
|
+
user-select: none;
|
|
2658
|
+
cursor: pointer;
|
|
2659
|
+
|
|
2660
|
+
&[data-disabled] {
|
|
2661
|
+
cursor: not-allowed;
|
|
2662
|
+
opacity: 0.5;
|
|
2663
|
+
}
|
|
2664
|
+
`, oi = A(ei)`
|
|
2665
|
+
position: relative;
|
|
2666
|
+
height: 0.25rem;
|
|
2667
|
+
flex-grow: 1;
|
|
2668
|
+
background: rgba(255, 255, 255, 0.2);
|
|
2669
|
+
border-radius: 1rem;
|
|
2670
|
+
overflow: hidden;
|
|
2671
|
+
`, si = A(ti)`
|
|
2672
|
+
position: absolute;
|
|
2673
|
+
height: 100%;
|
|
2674
|
+
background: #f7e406;
|
|
2675
|
+
transition: width 0.2s ease-in-out;
|
|
2676
|
+
border-radius: 1rem;
|
|
2677
|
+
`, ii = A(ni)`
|
|
2678
|
+
display: block;
|
|
2679
|
+
width: 1rem;
|
|
2680
|
+
height: 1rem;
|
|
2681
|
+
cursor: pointer;
|
|
2682
|
+
background: white;
|
|
2683
|
+
transition: all 0.2s ease-in-out;
|
|
2684
|
+
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
|
|
2685
|
+
border-radius: 50%;
|
|
2686
|
+
|
|
2687
|
+
&:hover {
|
|
2688
|
+
box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.4);
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
&:focus {
|
|
2692
|
+
outline: none;
|
|
2693
|
+
box-shadow: 0 0 0 0.125rem rgba(247, 228, 6, 0.5);
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
&[data-disabled] {
|
|
2697
|
+
cursor: not-allowed;
|
|
2698
|
+
opacity: 0.5;
|
|
2699
|
+
}
|
|
2700
|
+
`;
|
|
2701
|
+
function tt(e) {
|
|
2702
|
+
const t = e.getBoundingClientRect();
|
|
2703
|
+
return e.offsetWidth / e.offsetHeight > e.clientWidth / e.clientHeight ? {
|
|
2704
|
+
left: t.left * 100,
|
|
2705
|
+
right: t.right * 100,
|
|
2706
|
+
top: t.top * 100,
|
|
2707
|
+
bottom: t.bottom * 100,
|
|
2708
|
+
width: t.width * 100,
|
|
2709
|
+
height: t.height * 100
|
|
2710
|
+
} : t;
|
|
2711
|
+
}
|
|
2712
|
+
const ai = (e, t) => parseInt(
|
|
2713
|
+
Math.max(0, (Date.now() - (e + t * 1e3)) / 1e3).toFixed(0)
|
|
2714
|
+
), pr = (e, t) => Math.max(0, (Date.now() - e - t * 1e3) / 1e3), hr = (e, t) => Math.max(0, (t - e) / 1e3), un = "vod-player-progress-bar";
|
|
2715
|
+
function ci() {
|
|
2716
|
+
const e = q(null), t = q(null), [n, r] = G(0), [o, s] = G(0), [i, a] = G(!1), [l, u] = G(-1), [h, d] = G(-1), m = Z((I) => I.delay), g = Z((I) => I.startTime), x = Z((I) => I.endTime), y = Z((I) => I.setDelay), E = b((I) => I.isPlaying), w = b((I) => I.addIdleLock), R = b((I) => I.removeIdleLock), p = ie(() => {
|
|
2717
|
+
r(pr(g, m)), s(hr(g, x));
|
|
2718
|
+
}, [m, x, g]), S = parseFloat(
|
|
2719
|
+
(o ? (h !== -1 ? h : n) / o * 100 : 0).toFixed(1)
|
|
2720
|
+
), T = (I) => {
|
|
2721
|
+
d(o * (I[0] / 100)), w(un);
|
|
2722
|
+
}, P = () => {
|
|
2723
|
+
if (h !== -1) {
|
|
2724
|
+
const I = ai(g, h);
|
|
2725
|
+
y(I), d(-1), R(un);
|
|
2726
|
+
}
|
|
2727
|
+
}, C = () => a(!0), $ = () => a(!1), U = ie(
|
|
2728
|
+
(I) => {
|
|
2729
|
+
const N = e.current, z = t.current;
|
|
2730
|
+
if (N && z) {
|
|
2731
|
+
const ee = tt(N), oe = tt(z), se = (I.pageX || I.clientX) - ee.left, J = se / ee.width;
|
|
2732
|
+
if (J < 0) return;
|
|
2733
|
+
let O = se - oe.width / 2;
|
|
2734
|
+
O < 0 && (O = 0), O > ee.width - oe.width && (O = -1), z.style.left = O > -1 ? `${O}px` : "auto", z.style.right = O > -1 ? "auto" : "0px", u(J * o);
|
|
2735
|
+
}
|
|
2736
|
+
C();
|
|
2737
|
+
},
|
|
2738
|
+
[o]
|
|
2739
|
+
);
|
|
2740
|
+
return It(() => p(), E ? 1e3 : null), ne(() => {
|
|
2741
|
+
p();
|
|
2742
|
+
}, [p]), /* @__PURE__ */ c.jsxs(Wn, { children: [
|
|
2743
|
+
/* @__PURE__ */ c.jsx(
|
|
2744
|
+
Vt,
|
|
2745
|
+
{
|
|
2746
|
+
ref: e,
|
|
2747
|
+
value: [S],
|
|
2748
|
+
onPointerLeave: $,
|
|
2749
|
+
onPointerDown: $,
|
|
2750
|
+
onPointerMove: U,
|
|
2751
|
+
onValueChange: T,
|
|
2752
|
+
onValueCommit: P,
|
|
2753
|
+
step: 0.1
|
|
2754
|
+
}
|
|
2755
|
+
),
|
|
2756
|
+
/* @__PURE__ */ c.jsx(qn, { ref: t, $isVisible: i, children: /* @__PURE__ */ c.jsx(Kn, { children: Ie(l) }) })
|
|
2757
|
+
] });
|
|
2758
|
+
}
|
|
2759
|
+
function mr({ children: e }) {
|
|
2760
|
+
return /* @__PURE__ */ c.jsx(vs, { children: e });
|
|
2761
|
+
}
|
|
2762
|
+
function li({
|
|
2763
|
+
children: e,
|
|
2764
|
+
startDate: t,
|
|
2765
|
+
endDate: n
|
|
2766
|
+
}) {
|
|
2767
|
+
return /* @__PURE__ */ c.jsx(Ur, { startDate: t, endDate: n, children: /* @__PURE__ */ c.jsx(mr, { children: e }) });
|
|
2768
|
+
}
|
|
2769
|
+
const gr = A.div`
|
|
2770
|
+
display: flex;
|
|
2771
|
+
align-items: center;
|
|
2772
|
+
`, yr = A.p`
|
|
2773
|
+
margin: 0;
|
|
2774
|
+
padding: 0;
|
|
2775
|
+
font-variant-numeric: tabular-nums;
|
|
2776
|
+
font-size: 0.875rem;
|
|
2777
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
2778
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
2779
|
+
font-weight: 500;
|
|
2780
|
+
`, vr = A(yr)`
|
|
2781
|
+
margin-right: 0.5rem;
|
|
2782
|
+
`, Sr = A(yr)`
|
|
2783
|
+
margin-left: 0.5rem;
|
|
2784
|
+
`, wr = A.p`
|
|
2785
|
+
margin: 0;
|
|
2786
|
+
padding: 0;
|
|
2787
|
+
font-size: 0.875rem;
|
|
2788
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
2789
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
2790
|
+
font-weight: 500;
|
|
2791
|
+
|
|
2792
|
+
&::before {
|
|
2793
|
+
content: "/";
|
|
2794
|
+
}
|
|
2795
|
+
`;
|
|
2796
|
+
function ui() {
|
|
2797
|
+
const [e, t] = G(0), [n, r] = G(0), o = b((u) => u.isPlaying), s = Z((u) => u.delay), i = Z((u) => u.startTime), a = Z((u) => u.endTime), l = ie(() => {
|
|
2798
|
+
t(pr(i, s)), r(hr(i, a));
|
|
2799
|
+
}, [s, a, i]);
|
|
2800
|
+
return It(() => l(), o ? 1e3 : null), ne(() => {
|
|
2801
|
+
l();
|
|
2802
|
+
}, [l]), s ? /* @__PURE__ */ c.jsxs(gr, { children: [
|
|
2803
|
+
/* @__PURE__ */ c.jsx(vr, { children: Ie(e) }),
|
|
2804
|
+
/* @__PURE__ */ c.jsx(wr, {}),
|
|
2805
|
+
/* @__PURE__ */ c.jsx(Sr, { children: Ie(n) })
|
|
2806
|
+
] }) : null;
|
|
2807
|
+
}
|
|
2808
|
+
function di({ url: e, isLive: t }) {
|
|
2809
|
+
const n = q(null), r = b((a) => a.techRef), o = ie(() => {
|
|
2810
|
+
n.current && (console.log("[Player][Event]", "MEDIA_ATTACHED"), n.current.loadSource(e));
|
|
2811
|
+
}, [e]), s = ie(() => {
|
|
2812
|
+
if (!r.current) return;
|
|
2813
|
+
const u = t ? {
|
|
2814
|
+
backBufferLength: 10,
|
|
2815
|
+
startLevel: -1
|
|
2816
|
+
} : {
|
|
2817
|
+
backBufferLength: 60,
|
|
2818
|
+
startLevel: -1
|
|
2819
|
+
};
|
|
2820
|
+
try {
|
|
2821
|
+
console.log("[Player] URL", e), console.log("[Player] Config", JSON.stringify(u)), console.log("[Player] Version", De.version), n.current = new De(u), n.current.attachMedia(r.current), n.current.on(De.Events.MEDIA_ATTACHED, o);
|
|
2822
|
+
} catch (h) {
|
|
2823
|
+
throw new Error(`Error initializing Hls: ${h}`);
|
|
2824
|
+
}
|
|
2825
|
+
}, [o, t, r, e]), i = ie(() => {
|
|
2826
|
+
n.current && (n.current.off(De.Events.MEDIA_ATTACHED, o), n.current.destroy(), n.current = null);
|
|
2827
|
+
}, [o]);
|
|
2828
|
+
return ne(() => (De.isSupported() && s(), i), [i, s]), null;
|
|
2829
|
+
}
|
|
2830
|
+
function br({ url: e, isLive: t, isMuted: n = !1 }) {
|
|
2831
|
+
const r = b((p) => p.handleDurationChange), o = b((p) => p.handleEnd), s = b((p) => p.handleLoadedMetadata), i = b((p) => p.handleLoadStart), a = b((p) => p.handlePause), l = b((p) => p.handlePlay), u = b((p) => p.handlePlaying), h = b((p) => p.handleSeeked), d = b((p) => p.handleSeeking), m = b((p) => p.handleTimeUpdate), g = b((p) => p.handleWaiting), x = b((p) => p.techRef), y = q(null), E = () => t ? {} : {
|
|
2832
|
+
onDurationChange: r,
|
|
2833
|
+
onSeeked: h,
|
|
2834
|
+
onSeeking: d,
|
|
2835
|
+
onTimeUpdate: w
|
|
2836
|
+
}, w = () => {
|
|
2837
|
+
(!y.current || Date.now() - y.current >= 1e3) && (m(), y.current = Date.now());
|
|
2838
|
+
}, R = E();
|
|
2839
|
+
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2840
|
+
/* @__PURE__ */ c.jsx(di, { isLive: t, url: e }),
|
|
2841
|
+
/* @__PURE__ */ c.jsx(
|
|
2842
|
+
fi,
|
|
2843
|
+
{
|
|
2844
|
+
ref: x,
|
|
2845
|
+
playsInline: !0,
|
|
2846
|
+
autoPlay: !0,
|
|
2847
|
+
controls: !1,
|
|
2848
|
+
muted: n,
|
|
2849
|
+
preload: "auto",
|
|
2850
|
+
crossOrigin: "anonymous",
|
|
2851
|
+
onEnded: o,
|
|
2852
|
+
onLoadedMetadata: s,
|
|
2853
|
+
onLoadStart: i,
|
|
2854
|
+
onPause: a,
|
|
2855
|
+
onPlay: l,
|
|
2856
|
+
onPlaying: u,
|
|
2857
|
+
onWaiting: g,
|
|
2858
|
+
tabIndex: -1,
|
|
2859
|
+
...R
|
|
2860
|
+
}
|
|
2861
|
+
)
|
|
2862
|
+
] });
|
|
2863
|
+
}
|
|
2864
|
+
const fi = A.video`
|
|
2865
|
+
position: relative;
|
|
2866
|
+
width: 100%;
|
|
2867
|
+
height: 100%;
|
|
2868
|
+
|
|
2869
|
+
@media (min-width: 768px) {
|
|
2870
|
+
pointer-events: none;
|
|
2871
|
+
}
|
|
2872
|
+
`;
|
|
2873
|
+
function pi({ url: e }) {
|
|
2874
|
+
const [t, n] = G(null), r = Z((s) => s.delay), o = ie(async () => {
|
|
2875
|
+
n(
|
|
2876
|
+
r ? e.replace(
|
|
2877
|
+
"playlist.m3u8",
|
|
2878
|
+
`playlist_fmp4_dvr_timeshift-${r}.m3u8`
|
|
2879
|
+
) : e
|
|
2880
|
+
);
|
|
2881
|
+
}, [r, e]);
|
|
2882
|
+
return ne(() => {
|
|
2883
|
+
o();
|
|
2884
|
+
}, [o]), t ? /* @__PURE__ */ c.jsx(br, { url: t, isLive: !0 }) : null;
|
|
2885
|
+
}
|
|
2886
|
+
const xr = A.div`
|
|
2887
|
+
position: absolute;
|
|
2888
|
+
top: 0;
|
|
2889
|
+
left: 0;
|
|
2890
|
+
width: 100%;
|
|
2891
|
+
height: 100%;
|
|
2892
|
+
color: white;
|
|
2893
|
+
background: black;
|
|
2894
|
+
overflow: hidden;
|
|
2895
|
+
`, Er = A.div`
|
|
2896
|
+
position: absolute;
|
|
2897
|
+
left: 0;
|
|
2898
|
+
width: 100%;
|
|
2899
|
+
bottom: 0;
|
|
2900
|
+
z-index: 10;
|
|
2901
|
+
background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
|
|
2902
|
+
padding-top: 1rem;
|
|
2903
|
+
|
|
2904
|
+
@media (min-width: 768px) {
|
|
2905
|
+
padding-top: 2rem;
|
|
2906
|
+
}
|
|
2907
|
+
`, Cr = A.div`
|
|
2908
|
+
display: flex;
|
|
2909
|
+
flex-direction: column;
|
|
2910
|
+
padding-left: 0.5rem;
|
|
2911
|
+
padding-right: 0.5rem;
|
|
2912
|
+
line-height: 1;
|
|
2913
|
+
font-size: 0;
|
|
2914
|
+
height: 4rem;
|
|
2915
|
+
|
|
2916
|
+
@media (min-width: 768px) {
|
|
2917
|
+
padding-left: 1rem;
|
|
2918
|
+
padding-right: 1rem;
|
|
2919
|
+
height: 4.5rem;
|
|
2920
|
+
}
|
|
2921
|
+
`, Pr = A.div`
|
|
2922
|
+
margin: auto 0;
|
|
2923
|
+
display: flex;
|
|
2924
|
+
width: 100%;
|
|
2925
|
+
align-items: center;
|
|
2926
|
+
`, Ft = A.div`
|
|
2927
|
+
display: flex;
|
|
2928
|
+
flex: 1;
|
|
2929
|
+
align-items: center;
|
|
2930
|
+
gap: 0.5rem;
|
|
2931
|
+
`, Rr = A(Ft)`
|
|
2932
|
+
justify-content: flex-start;
|
|
2933
|
+
`, hi = A(Ft)`
|
|
2934
|
+
justify-content: center;
|
|
2935
|
+
`, kr = A(Ft)`
|
|
2936
|
+
justify-content: flex-end;
|
|
2937
|
+
`;
|
|
2938
|
+
function mi() {
|
|
2939
|
+
return /* @__PURE__ */ c.jsx(
|
|
2940
|
+
"svg",
|
|
2941
|
+
{
|
|
2942
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2943
|
+
viewBox: "0 0 24 24",
|
|
2944
|
+
fill: "currentColor",
|
|
2945
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z" })
|
|
2946
|
+
}
|
|
2947
|
+
);
|
|
2948
|
+
}
|
|
2949
|
+
function gi() {
|
|
2950
|
+
return /* @__PURE__ */ c.jsx(
|
|
2951
|
+
"svg",
|
|
2952
|
+
{
|
|
2953
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2954
|
+
viewBox: "0 0 24 24",
|
|
2955
|
+
fill: "currentColor",
|
|
2956
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z" })
|
|
2957
|
+
}
|
|
2958
|
+
);
|
|
2959
|
+
}
|
|
2960
|
+
function Tr() {
|
|
2961
|
+
const e = b((u) => u.containerRef), t = b((u) => u.exitFullscreen), n = b((u) => u.isFullscreen), r = b((u) => u.requestFullscreen), o = b((u) => u.setIsFullscreen), s = b((u) => u.setIsFullscreenReady), i = b((u) => u.techRef), a = ie(
|
|
2962
|
+
(u) => {
|
|
2963
|
+
u.stopPropagation(), o(cs());
|
|
2964
|
+
},
|
|
2965
|
+
[o]
|
|
2966
|
+
), l = () => {
|
|
2967
|
+
n ? t() : r();
|
|
2968
|
+
};
|
|
2969
|
+
return ne(() => {
|
|
2970
|
+
const u = Bn ? i.current : e.current;
|
|
2971
|
+
if (u)
|
|
2972
|
+
return ds(u, a);
|
|
2973
|
+
}, [e, a, i]), ne(() => {
|
|
2974
|
+
s(!0);
|
|
2975
|
+
}, [s]), /* @__PURE__ */ c.jsx(Fe, { onClick: l, children: n ? /* @__PURE__ */ c.jsx(gi, {}) : /* @__PURE__ */ c.jsx(mi, {}) });
|
|
2976
|
+
}
|
|
2977
|
+
const yi = 5 * 1e3;
|
|
2978
|
+
function jr({ children: e }) {
|
|
2979
|
+
const t = q(null), [n, r] = G(!1), o = q(null), i = b((u) => u.idleLocks).size, a = ie(() => {
|
|
2980
|
+
o.current !== null && (window.clearTimeout(o.current), o.current = null);
|
|
2981
|
+
}, []), l = ie(() => {
|
|
2982
|
+
a(), o.current = window.setTimeout(() => r(!0), yi);
|
|
2983
|
+
}, [a]);
|
|
2984
|
+
return ne(() => (r(!1), l(), () => {
|
|
2985
|
+
a();
|
|
2986
|
+
}), [a, l]), ne(() => {
|
|
2987
|
+
const u = t.current;
|
|
2988
|
+
if (!u) return;
|
|
2989
|
+
const h = (m) => {
|
|
2990
|
+
n && (m.stopPropagation(), r(!1), l());
|
|
2991
|
+
}, d = () => {
|
|
2992
|
+
n && r(!1), l();
|
|
2993
|
+
};
|
|
2994
|
+
return u.addEventListener("click", h), u.addEventListener("mousemove", d), () => {
|
|
2995
|
+
u.removeEventListener("click", h), u.removeEventListener("mousemove", d);
|
|
2996
|
+
};
|
|
2997
|
+
}, [t, n, r, l]), /* @__PURE__ */ c.jsx(vi, { ref: t, $isIdle: n && !i, children: e });
|
|
2998
|
+
}
|
|
2999
|
+
const vi = A.div`
|
|
3000
|
+
position: absolute;
|
|
3001
|
+
top: 0;
|
|
3002
|
+
left: 0;
|
|
3003
|
+
width: 100%;
|
|
3004
|
+
height: 100%;
|
|
3005
|
+
transition: opacity 0.2s ease-in-out;
|
|
3006
|
+
cursor: ${({ $isIdle: e }) => e ? "none" : "auto"};
|
|
3007
|
+
opacity: ${({ $isIdle: e }) => e ? 0 : 1};
|
|
3008
|
+
`;
|
|
3009
|
+
function Si(e) {
|
|
3010
|
+
return /* @__PURE__ */ c.jsx(bi, { ...e });
|
|
3011
|
+
}
|
|
3012
|
+
const wi = Xo`
|
|
3013
|
+
from {
|
|
3014
|
+
transform: rotate(0deg);
|
|
3015
|
+
}
|
|
3016
|
+
to {
|
|
3017
|
+
transform: rotate(360deg);
|
|
3018
|
+
}
|
|
3019
|
+
`, bi = A.div`
|
|
3020
|
+
width: 1.5rem;
|
|
3021
|
+
height: 1.5rem;
|
|
3022
|
+
border: 2px solid white;
|
|
3023
|
+
border-bottom-color: transparent;
|
|
3024
|
+
border-radius: 50%;
|
|
3025
|
+
animation: ${wi} 1s linear infinite;
|
|
3026
|
+
`;
|
|
3027
|
+
function xi(e, t = 500) {
|
|
3028
|
+
const [n, r] = G(e);
|
|
3029
|
+
return ne(() => {
|
|
3030
|
+
const o = window.setTimeout(() => r(e), t);
|
|
3031
|
+
return () => {
|
|
3032
|
+
window.clearTimeout(o);
|
|
3033
|
+
};
|
|
3034
|
+
}, [e, t]), n;
|
|
3035
|
+
}
|
|
3036
|
+
function Ir({ style: e, ...t }) {
|
|
3037
|
+
const n = b((o) => o.isLoading);
|
|
3038
|
+
return xi(n, 100) ? /* @__PURE__ */ c.jsx(Ei, { style: e, ...t, children: /* @__PURE__ */ c.jsx(Si, {}) }) : null;
|
|
3039
|
+
}
|
|
3040
|
+
const Ei = A.div`
|
|
3041
|
+
pointer-events: none;
|
|
3042
|
+
position: absolute;
|
|
3043
|
+
top: 0;
|
|
3044
|
+
right: 0;
|
|
3045
|
+
bottom: 0;
|
|
3046
|
+
left: 0;
|
|
3047
|
+
display: flex;
|
|
3048
|
+
width: 100%;
|
|
3049
|
+
height: 100%;
|
|
3050
|
+
align-items: center;
|
|
3051
|
+
justify-content: center;
|
|
3052
|
+
`;
|
|
3053
|
+
function Ci() {
|
|
3054
|
+
return /* @__PURE__ */ c.jsx(
|
|
3055
|
+
"svg",
|
|
3056
|
+
{
|
|
3057
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3058
|
+
viewBox: "0 0 24 24",
|
|
3059
|
+
fill: "currentColor",
|
|
3060
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M6.60282 10.0001L10 7.22056V16.7796L6.60282 14.0001H3V10.0001H6.60282ZM2 16.0001H5.88889L11.1834 20.3319C11.2727 20.405 11.3846 20.4449 11.5 20.4449C11.7761 20.4449 12 20.2211 12 19.9449V4.05519C12 3.93977 11.9601 3.8279 11.887 3.73857C11.7121 3.52485 11.3971 3.49335 11.1834 3.66821L5.88889 8.00007H2C1.44772 8.00007 1 8.44778 1 9.00007V15.0001C1 15.5524 1.44772 16.0001 2 16.0001ZM23 12C23 15.292 21.5539 18.2463 19.2622 20.2622L17.8445 18.8444C19.7758 17.1937 21 14.7398 21 12C21 9.26016 19.7758 6.80629 17.8445 5.15557L19.2622 3.73779C21.5539 5.75368 23 8.70795 23 12ZM18 12C18 10.0883 17.106 8.38548 15.7133 7.28673L14.2842 8.71584C15.3213 9.43855 16 10.64 16 12C16 13.36 15.3213 14.5614 14.2842 15.2841L15.7133 16.7132C17.106 15.6145 18 13.9116 18 12Z" })
|
|
3061
|
+
}
|
|
3062
|
+
);
|
|
3063
|
+
}
|
|
3064
|
+
function Pi() {
|
|
3065
|
+
return /* @__PURE__ */ c.jsx(
|
|
3066
|
+
"svg",
|
|
3067
|
+
{
|
|
3068
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3069
|
+
viewBox: "0 0 24 24",
|
|
3070
|
+
fill: "currentColor",
|
|
3071
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M13 7.22056L9.60282 10.0001H6V14.0001H9.60282L13 16.7796V7.22056ZM8.88889 16.0001H5C4.44772 16.0001 4 15.5524 4 15.0001V9.00007C4 8.44778 4.44772 8.00007 5 8.00007H8.88889L14.1834 3.66821C14.3971 3.49335 14.7121 3.52485 14.887 3.73857C14.9601 3.8279 15 3.93977 15 4.05519V19.9449C15 20.2211 14.7761 20.4449 14.5 20.4449C14.3846 20.4449 14.2727 20.405 14.1834 20.3319L8.88889 16.0001ZM18.8631 16.5911L17.4411 15.1691C18.3892 14.4376 19 13.2902 19 12.0001C19 10.5697 18.2493 9.31476 17.1203 8.60766L18.5589 7.16906C20.0396 8.26166 21 10.0187 21 12.0001C21 13.8422 20.1698 15.4905 18.8631 16.5911Z" })
|
|
3072
|
+
}
|
|
3073
|
+
);
|
|
3074
|
+
}
|
|
3075
|
+
function Ri() {
|
|
3076
|
+
return /* @__PURE__ */ c.jsx(
|
|
3077
|
+
"svg",
|
|
3078
|
+
{
|
|
3079
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3080
|
+
viewBox: "0 0 24 24",
|
|
3081
|
+
fill: "currentColor",
|
|
3082
|
+
children: /* @__PURE__ */ c.jsx("path", { d: "M10 7.22056L6.60282 10.0001H3V14.0001H6.60282L10 16.7796V7.22056ZM5.88889 16.0001H2C1.44772 16.0001 1 15.5524 1 15.0001V9.00007C1 8.44778 1.44772 8.00007 2 8.00007H5.88889L11.1834 3.66821C11.3971 3.49335 11.7121 3.52485 11.887 3.73857C11.9601 3.8279 12 3.93977 12 4.05519V19.9449C12 20.2211 11.7761 20.4449 11.5 20.4449C11.3846 20.4449 11.2727 20.405 11.1834 20.3319L5.88889 16.0001ZM20.4142 12.0001L23.9497 15.5356L22.5355 16.9498L19 13.4143L15.4645 16.9498L14.0503 15.5356L17.5858 12.0001L14.0503 8.46454L15.4645 7.05032L19 10.5859L22.5355 7.05032L23.9497 8.46454L20.4142 12.0001Z" })
|
|
3083
|
+
}
|
|
3084
|
+
);
|
|
3085
|
+
}
|
|
3086
|
+
const dn = "volume";
|
|
3087
|
+
function _r() {
|
|
3088
|
+
b((a) => a.containerRef);
|
|
3089
|
+
const e = b((a) => a.setVolume), t = b((a) => a.volume), n = b((a) => a.addIdleLock), r = b((a) => a.removeIdleLock), o = (a) => {
|
|
3090
|
+
e(a[0]), n(dn);
|
|
3091
|
+
}, s = () => {
|
|
3092
|
+
r(dn);
|
|
3093
|
+
}, i = () => e(t ? 0 : 100);
|
|
3094
|
+
return /* @__PURE__ */ c.jsxs(ki, { children: [
|
|
3095
|
+
/* @__PURE__ */ c.jsx(Fe, { onClick: i, className: "shrink-0", children: t ? t > 50 ? /* @__PURE__ */ c.jsx(Ci, {}) : /* @__PURE__ */ c.jsx(Pi, {}) : /* @__PURE__ */ c.jsx(Ri, {}) }),
|
|
3096
|
+
/* @__PURE__ */ c.jsx(Ar, { children: /* @__PURE__ */ c.jsx(
|
|
3097
|
+
Vt,
|
|
3098
|
+
{
|
|
3099
|
+
value: [t],
|
|
3100
|
+
onValueChange: o,
|
|
3101
|
+
onValueCommit: s
|
|
3102
|
+
}
|
|
3103
|
+
) })
|
|
3104
|
+
] });
|
|
3105
|
+
}
|
|
3106
|
+
const Ar = A.div`
|
|
3107
|
+
width: 0;
|
|
3108
|
+
opacity: 0;
|
|
3109
|
+
transition: all 0.2s ease-in-out;
|
|
3110
|
+
`, ki = A.div`
|
|
3111
|
+
display: flex;
|
|
3112
|
+
align-items: center;
|
|
3113
|
+
gap: 0.25rem;
|
|
3114
|
+
width: 3rem;
|
|
3115
|
+
transition: all 0.2s ease-in-out;
|
|
3116
|
+
|
|
3117
|
+
@media (min-width: 768px) {
|
|
3118
|
+
&:hover {
|
|
3119
|
+
width: 6rem;
|
|
3120
|
+
|
|
3121
|
+
${Ar} {
|
|
3122
|
+
width: 100%;
|
|
3123
|
+
opacity: 1;
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
`;
|
|
3128
|
+
function Fi({ url: e, startDate: t, endDate: n, messages: r }) {
|
|
3129
|
+
return /* @__PURE__ */ c.jsx(
|
|
3130
|
+
li,
|
|
3131
|
+
{
|
|
3132
|
+
startDate: new Date(t),
|
|
3133
|
+
endDate: new Date(n),
|
|
3134
|
+
children: /* @__PURE__ */ c.jsx(Ti, { url: e, messages: r })
|
|
3135
|
+
}
|
|
3136
|
+
);
|
|
3137
|
+
}
|
|
3138
|
+
function Ti({ url: e, messages: t }) {
|
|
3139
|
+
const n = b((r) => r.containerRef);
|
|
3140
|
+
return /* @__PURE__ */ c.jsx(xr, { ref: n, children: /* @__PURE__ */ c.jsxs(
|
|
3141
|
+
Jo,
|
|
3142
|
+
{
|
|
3143
|
+
eventFinishedMessage: t?.eventFinished,
|
|
3144
|
+
eventNotStartedMessage: t?.eventNotStarted,
|
|
3145
|
+
eventStartingSoonMessage: t?.eventStartingSoon,
|
|
3146
|
+
children: [
|
|
3147
|
+
/* @__PURE__ */ c.jsx(pi, { url: e }),
|
|
3148
|
+
/* @__PURE__ */ c.jsx(Ir, {}),
|
|
3149
|
+
/* @__PURE__ */ c.jsxs(jr, { children: [
|
|
3150
|
+
/* @__PURE__ */ c.jsx(bs, {}),
|
|
3151
|
+
/* @__PURE__ */ c.jsx(Er, { children: /* @__PURE__ */ c.jsxs(Cr, { children: [
|
|
3152
|
+
/* @__PURE__ */ c.jsx(ci, {}),
|
|
3153
|
+
/* @__PURE__ */ c.jsxs(Pr, { children: [
|
|
3154
|
+
/* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
3155
|
+
/* @__PURE__ */ c.jsx(Ss, {}),
|
|
3156
|
+
/* @__PURE__ */ c.jsx(_r, {}),
|
|
3157
|
+
/* @__PURE__ */ c.jsx(ui, {})
|
|
3158
|
+
] }),
|
|
3159
|
+
/* @__PURE__ */ c.jsxs(kr, { children: [
|
|
3160
|
+
/* @__PURE__ */ c.jsx(os, { message: t?.live }),
|
|
3161
|
+
/* @__PURE__ */ c.jsx(Tr, {})
|
|
3162
|
+
] })
|
|
3163
|
+
] })
|
|
3164
|
+
] }) })
|
|
3165
|
+
] })
|
|
3166
|
+
]
|
|
3167
|
+
}
|
|
3168
|
+
) });
|
|
3169
|
+
}
|
|
3170
|
+
function ji() {
|
|
3171
|
+
const e = b((o) => o.isPlaying), t = b((o) => o.pause), n = b((o) => o.play), r = () => {
|
|
3172
|
+
e ? t() : n();
|
|
3173
|
+
};
|
|
3174
|
+
return /* @__PURE__ */ c.jsx(Fe, { onClick: r, children: e ? /* @__PURE__ */ c.jsx(Hn, {}) : /* @__PURE__ */ c.jsx(zn, {}) });
|
|
3175
|
+
}
|
|
3176
|
+
function Ii() {
|
|
3177
|
+
const e = b((o) => o.isPlaying), t = b((o) => o.pause), n = b((o) => o.play), r = () => {
|
|
3178
|
+
e ? t() : n();
|
|
3179
|
+
};
|
|
3180
|
+
return /* @__PURE__ */ c.jsx(Yn, { onClick: r });
|
|
3181
|
+
}
|
|
3182
|
+
const fn = "vod-player-progress-bar";
|
|
3183
|
+
function _i() {
|
|
3184
|
+
const e = q(null), t = q(null), [n, r] = G(!1), [o, s] = G(-1), [i, a] = G(-1), l = b((p) => p.currentTime), u = b((p) => p.duration), h = b((p) => p.seek), d = b((p) => p.addIdleLock), m = b((p) => p.removeIdleLock), g = parseFloat(
|
|
3185
|
+
(u ? (i !== -1 ? i : l) / u * 100 : 0).toFixed(1)
|
|
3186
|
+
), x = (p) => {
|
|
3187
|
+
a(u * (p[0] / 100)), d(fn);
|
|
3188
|
+
}, y = () => {
|
|
3189
|
+
i !== -1 && (h(i), a(-1), m(fn));
|
|
3190
|
+
}, E = () => r(!0), w = () => r(!1), R = ie(
|
|
3191
|
+
(p) => {
|
|
3192
|
+
const S = e.current, T = t.current;
|
|
3193
|
+
if (S && T) {
|
|
3194
|
+
const P = tt(S), C = tt(T), $ = (p.pageX || p.clientX) - P.left, U = $ / P.width;
|
|
3195
|
+
if (U < 0) return;
|
|
3196
|
+
let I = $ - C.width / 2;
|
|
3197
|
+
I < 0 && (I = 0), I > P.width - C.width && (I = -1), T.style.left = I > -1 ? `${I}px` : "auto", T.style.right = I > -1 ? "auto" : "0px", s(U * u);
|
|
3198
|
+
}
|
|
3199
|
+
E();
|
|
3200
|
+
},
|
|
3201
|
+
[u]
|
|
3202
|
+
);
|
|
3203
|
+
return /* @__PURE__ */ c.jsxs(Wn, { children: [
|
|
3204
|
+
/* @__PURE__ */ c.jsx(
|
|
3205
|
+
Vt,
|
|
3206
|
+
{
|
|
3207
|
+
ref: e,
|
|
3208
|
+
value: [g],
|
|
3209
|
+
onPointerLeave: w,
|
|
3210
|
+
onPointerDown: w,
|
|
3211
|
+
onPointerMove: R,
|
|
3212
|
+
onValueChange: x,
|
|
3213
|
+
onValueCommit: y,
|
|
3214
|
+
step: 0.1
|
|
3215
|
+
}
|
|
3216
|
+
),
|
|
3217
|
+
/* @__PURE__ */ c.jsx(qn, { ref: t, $isVisible: n, children: /* @__PURE__ */ c.jsx(Kn, { children: Ie(o) }) })
|
|
3218
|
+
] });
|
|
3219
|
+
}
|
|
3220
|
+
function Ai() {
|
|
3221
|
+
const e = b((n) => n.currentTime), t = b((n) => n.duration);
|
|
3222
|
+
return /* @__PURE__ */ c.jsxs(gr, { children: [
|
|
3223
|
+
/* @__PURE__ */ c.jsx(vr, { children: Ie(e) }),
|
|
3224
|
+
/* @__PURE__ */ c.jsx(wr, {}),
|
|
3225
|
+
/* @__PURE__ */ c.jsx(Sr, { children: Ie(t) })
|
|
3226
|
+
] });
|
|
3227
|
+
}
|
|
3228
|
+
const Li = Nr(
|
|
3229
|
+
() => import("./vod-player-watch-history-D3ZHK2x3.js")
|
|
3230
|
+
);
|
|
3231
|
+
function $i({ url: e, watchHistory: t }) {
|
|
3232
|
+
return /* @__PURE__ */ c.jsxs(mr, { children: [
|
|
3233
|
+
/* @__PURE__ */ c.jsx(Di, { url: e }),
|
|
3234
|
+
t?.enabled && /* @__PURE__ */ c.jsx(Li, { storageKey: t.storageKey })
|
|
3235
|
+
] });
|
|
3236
|
+
}
|
|
3237
|
+
function Di({ url: e }) {
|
|
3238
|
+
const t = b((n) => n.containerRef);
|
|
3239
|
+
return /* @__PURE__ */ c.jsxs(xr, { ref: t, children: [
|
|
3240
|
+
/* @__PURE__ */ c.jsx(br, { url: e, isLive: !1 }),
|
|
3241
|
+
/* @__PURE__ */ c.jsx(Ir, {}),
|
|
3242
|
+
/* @__PURE__ */ c.jsxs(jr, { children: [
|
|
3243
|
+
/* @__PURE__ */ c.jsx(Ii, {}),
|
|
3244
|
+
/* @__PURE__ */ c.jsx(Er, { children: /* @__PURE__ */ c.jsxs(Cr, { children: [
|
|
3245
|
+
/* @__PURE__ */ c.jsx(_i, {}),
|
|
3246
|
+
/* @__PURE__ */ c.jsxs(Pr, { children: [
|
|
3247
|
+
/* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
3248
|
+
/* @__PURE__ */ c.jsx(ji, {}),
|
|
3249
|
+
/* @__PURE__ */ c.jsx(_r, {}),
|
|
3250
|
+
/* @__PURE__ */ c.jsx(Ai, {})
|
|
3251
|
+
] }),
|
|
3252
|
+
/* @__PURE__ */ c.jsx(hi, {}),
|
|
3253
|
+
/* @__PURE__ */ c.jsx(kr, { children: /* @__PURE__ */ c.jsx(Tr, {}) })
|
|
3254
|
+
] })
|
|
3255
|
+
] }) })
|
|
3256
|
+
] })
|
|
3257
|
+
] });
|
|
3258
|
+
}
|
|
3259
|
+
export {
|
|
3260
|
+
Fi as L,
|
|
3261
|
+
$i as V,
|
|
3262
|
+
It as a,
|
|
3263
|
+
b as u
|
|
3264
|
+
};
|
|
3265
|
+
//# sourceMappingURL=index-DkJtizQx.js.map
|