react-av-timeline 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +586 -235
- package/package.json +3 -3
- package/dist/index.umd.cjs +0 -22
package/dist/index.js
CHANGED
|
@@ -1,309 +1,660 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Pe from "react";
|
|
2
|
+
var V = { exports: {} }, I = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
|
-
* react-jsx-runtime.production.js
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c)
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} else i = l;
|
|
24
|
-
return l = i.ref, {
|
|
25
|
-
$$typeof: o,
|
|
26
|
-
type: c,
|
|
27
|
-
key: m,
|
|
28
|
-
ref: l !== void 0 ? l : null,
|
|
29
|
-
props: i
|
|
30
|
-
};
|
|
12
|
+
var Ce;
|
|
13
|
+
function dr() {
|
|
14
|
+
if (Ce) return I;
|
|
15
|
+
Ce = 1;
|
|
16
|
+
var m = Pe, c = Symbol.for("react.element"), E = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, P = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function T(h, l, O) {
|
|
18
|
+
var d, b = {}, C = null, W = null;
|
|
19
|
+
O !== void 0 && (C = "" + O), l.key !== void 0 && (C = "" + l.key), l.ref !== void 0 && (W = l.ref);
|
|
20
|
+
for (d in l) y.call(l, d) && !j.hasOwnProperty(d) && (b[d] = l[d]);
|
|
21
|
+
if (h && h.defaultProps) for (d in l = h.defaultProps, l) b[d] === void 0 && (b[d] = l[d]);
|
|
22
|
+
return { $$typeof: c, type: h, key: C, ref: W, props: b, _owner: P.current };
|
|
31
23
|
}
|
|
32
|
-
return
|
|
24
|
+
return I.Fragment = E, I.jsx = T, I.jsxs = T, I;
|
|
33
25
|
}
|
|
34
|
-
var
|
|
26
|
+
var $ = {};
|
|
35
27
|
/**
|
|
36
28
|
* @license React
|
|
37
29
|
* react-jsx-runtime.development.js
|
|
38
30
|
*
|
|
39
|
-
* Copyright (c)
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
40
32
|
*
|
|
41
33
|
* This source code is licensed under the MIT license found in the
|
|
42
34
|
* LICENSE file in the root directory of this source tree.
|
|
43
35
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
if (typeof e
|
|
50
|
-
return
|
|
51
|
-
|
|
36
|
+
var Se;
|
|
37
|
+
function vr() {
|
|
38
|
+
return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
+
var m = Pe, c = Symbol.for("react.element"), E = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, je = "@@iterator";
|
|
40
|
+
function xe(e) {
|
|
41
|
+
if (e === null || typeof e != "object")
|
|
42
|
+
return null;
|
|
43
|
+
var r = Q && e[Q] || e[je];
|
|
44
|
+
return typeof r == "function" ? r : null;
|
|
45
|
+
}
|
|
46
|
+
var x = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function v(e) {
|
|
48
|
+
{
|
|
49
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
+
t[n - 1] = arguments[n];
|
|
51
|
+
ke("error", e, t);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function ke(e, r, t) {
|
|
55
|
+
{
|
|
56
|
+
var n = x.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
+
var u = t.map(function(i) {
|
|
59
|
+
return String(i);
|
|
60
|
+
});
|
|
61
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
var De = !1, Ae = !1, Fe = !1, Ie = !1, $e = !1, ee;
|
|
65
|
+
ee = Symbol.for("react.module.reference");
|
|
66
|
+
function We(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === y || e === j || $e || e === P || e === O || e === d || Ie || e === W || De || Ae || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === b || e.$$typeof === T || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
|
|
68
|
+
// types supported by any Flight configuration anywhere since
|
|
69
|
+
// we don't know which Flight build this will end up being used
|
|
70
|
+
// with.
|
|
71
|
+
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
|
+
}
|
|
73
|
+
function Ye(e, r, t) {
|
|
74
|
+
var n = e.displayName;
|
|
75
|
+
if (n)
|
|
76
|
+
return n;
|
|
77
|
+
var o = r.displayName || r.name || "";
|
|
78
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
+
}
|
|
80
|
+
function re(e) {
|
|
81
|
+
return e.displayName || "Context";
|
|
82
|
+
}
|
|
83
|
+
function R(e) {
|
|
84
|
+
if (e == null)
|
|
85
|
+
return null;
|
|
86
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
+
return e.displayName || e.name || null;
|
|
88
|
+
if (typeof e == "string")
|
|
89
|
+
return e;
|
|
52
90
|
switch (e) {
|
|
53
91
|
case y:
|
|
54
92
|
return "Fragment";
|
|
55
|
-
case
|
|
93
|
+
case E:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case j:
|
|
56
96
|
return "Profiler";
|
|
57
|
-
case
|
|
97
|
+
case P:
|
|
58
98
|
return "StrictMode";
|
|
59
|
-
case
|
|
99
|
+
case O:
|
|
60
100
|
return "Suspense";
|
|
61
|
-
case
|
|
101
|
+
case d:
|
|
62
102
|
return "SuspenseList";
|
|
63
|
-
case Z:
|
|
64
|
-
return "Activity";
|
|
65
103
|
}
|
|
66
104
|
if (typeof e == "object")
|
|
67
|
-
switch (typeof
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return
|
|
74
|
-
case
|
|
75
|
-
return (e.
|
|
76
|
-
case
|
|
77
|
-
var
|
|
78
|
-
return
|
|
79
|
-
case
|
|
80
|
-
|
|
81
|
-
case A:
|
|
82
|
-
r = e._payload, e = e._init;
|
|
105
|
+
switch (e.$$typeof) {
|
|
106
|
+
case h:
|
|
107
|
+
var r = e;
|
|
108
|
+
return re(r) + ".Consumer";
|
|
109
|
+
case T:
|
|
110
|
+
var t = e;
|
|
111
|
+
return re(t._context) + ".Provider";
|
|
112
|
+
case l:
|
|
113
|
+
return Ye(e, e.render, "ForwardRef");
|
|
114
|
+
case b:
|
|
115
|
+
var n = e.displayName || null;
|
|
116
|
+
return n !== null ? n : R(e.type) || "Memo";
|
|
117
|
+
case C: {
|
|
118
|
+
var o = e, u = o._payload, i = o._init;
|
|
83
119
|
try {
|
|
84
|
-
return
|
|
120
|
+
return R(i(u));
|
|
85
121
|
} catch {
|
|
122
|
+
return null;
|
|
86
123
|
}
|
|
124
|
+
}
|
|
87
125
|
}
|
|
88
126
|
return null;
|
|
89
127
|
}
|
|
90
|
-
|
|
91
|
-
|
|
128
|
+
var S = Object.assign, A = 0, te, ne, ae, ie, oe, ue, se;
|
|
129
|
+
function le() {
|
|
130
|
+
}
|
|
131
|
+
le.__reactDisabledLog = !0;
|
|
132
|
+
function Me() {
|
|
133
|
+
{
|
|
134
|
+
if (A === 0) {
|
|
135
|
+
te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
136
|
+
var e = {
|
|
137
|
+
configurable: !0,
|
|
138
|
+
enumerable: !0,
|
|
139
|
+
value: le,
|
|
140
|
+
writable: !0
|
|
141
|
+
};
|
|
142
|
+
Object.defineProperties(console, {
|
|
143
|
+
info: e,
|
|
144
|
+
log: e,
|
|
145
|
+
warn: e,
|
|
146
|
+
error: e,
|
|
147
|
+
group: e,
|
|
148
|
+
groupCollapsed: e,
|
|
149
|
+
groupEnd: e
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
A++;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function Le() {
|
|
156
|
+
{
|
|
157
|
+
if (A--, A === 0) {
|
|
158
|
+
var e = {
|
|
159
|
+
configurable: !0,
|
|
160
|
+
enumerable: !0,
|
|
161
|
+
writable: !0
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(console, {
|
|
164
|
+
log: S({}, e, {
|
|
165
|
+
value: te
|
|
166
|
+
}),
|
|
167
|
+
info: S({}, e, {
|
|
168
|
+
value: ne
|
|
169
|
+
}),
|
|
170
|
+
warn: S({}, e, {
|
|
171
|
+
value: ae
|
|
172
|
+
}),
|
|
173
|
+
error: S({}, e, {
|
|
174
|
+
value: ie
|
|
175
|
+
}),
|
|
176
|
+
group: S({}, e, {
|
|
177
|
+
value: oe
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: S({}, e, {
|
|
180
|
+
value: ue
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: S({}, e, {
|
|
183
|
+
value: se
|
|
184
|
+
})
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
A < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
var q = x.ReactCurrentDispatcher, B;
|
|
191
|
+
function Y(e, r, t) {
|
|
192
|
+
{
|
|
193
|
+
if (B === void 0)
|
|
194
|
+
try {
|
|
195
|
+
throw Error();
|
|
196
|
+
} catch (o) {
|
|
197
|
+
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
B = n && n[1] || "";
|
|
199
|
+
}
|
|
200
|
+
return `
|
|
201
|
+
` + B + e;
|
|
202
|
+
}
|
|
92
203
|
}
|
|
93
|
-
|
|
204
|
+
var K = !1, M;
|
|
205
|
+
{
|
|
206
|
+
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
M = new Ne();
|
|
208
|
+
}
|
|
209
|
+
function fe(e, r) {
|
|
210
|
+
if (!e || K)
|
|
211
|
+
return "";
|
|
212
|
+
{
|
|
213
|
+
var t = M.get(e);
|
|
214
|
+
if (t !== void 0)
|
|
215
|
+
return t;
|
|
216
|
+
}
|
|
217
|
+
var n;
|
|
218
|
+
K = !0;
|
|
219
|
+
var o = Error.prepareStackTrace;
|
|
220
|
+
Error.prepareStackTrace = void 0;
|
|
221
|
+
var u;
|
|
222
|
+
u = q.current, q.current = null, Me();
|
|
94
223
|
try {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
224
|
+
if (r) {
|
|
225
|
+
var i = function() {
|
|
226
|
+
throw Error();
|
|
227
|
+
};
|
|
228
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
+
set: function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
}
|
|
232
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
+
try {
|
|
234
|
+
Reflect.construct(i, []);
|
|
235
|
+
} catch (_) {
|
|
236
|
+
n = _;
|
|
237
|
+
}
|
|
238
|
+
Reflect.construct(e, [], i);
|
|
239
|
+
} else {
|
|
240
|
+
try {
|
|
241
|
+
i.call();
|
|
242
|
+
} catch (_) {
|
|
243
|
+
n = _;
|
|
244
|
+
}
|
|
245
|
+
e.call(i.prototype);
|
|
246
|
+
}
|
|
247
|
+
} else {
|
|
248
|
+
try {
|
|
249
|
+
throw Error();
|
|
250
|
+
} catch (_) {
|
|
251
|
+
n = _;
|
|
252
|
+
}
|
|
253
|
+
e();
|
|
254
|
+
}
|
|
255
|
+
} catch (_) {
|
|
256
|
+
if (_ && n && typeof _.stack == "string") {
|
|
257
|
+
for (var a = _.stack.split(`
|
|
258
|
+
`), p = n.stack.split(`
|
|
259
|
+
`), s = a.length - 1, f = p.length - 1; s >= 1 && f >= 0 && a[s] !== p[f]; )
|
|
260
|
+
f--;
|
|
261
|
+
for (; s >= 1 && f >= 0; s--, f--)
|
|
262
|
+
if (a[s] !== p[f]) {
|
|
263
|
+
if (s !== 1 || f !== 1)
|
|
264
|
+
do
|
|
265
|
+
if (s--, f--, f < 0 || a[s] !== p[f]) {
|
|
266
|
+
var g = `
|
|
267
|
+
` + a[s].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, g), g;
|
|
269
|
+
}
|
|
270
|
+
while (s >= 1 && f >= 0);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} finally {
|
|
275
|
+
K = !1, q.current = u, Le(), Error.prepareStackTrace = o;
|
|
99
276
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
277
|
+
var D = e ? e.displayName || e.name : "", w = D ? Y(D) : "";
|
|
278
|
+
return typeof e == "function" && M.set(e, w), w;
|
|
279
|
+
}
|
|
280
|
+
function Ve(e, r, t) {
|
|
281
|
+
return fe(e, !1);
|
|
282
|
+
}
|
|
283
|
+
function Ue(e) {
|
|
284
|
+
var r = e.prototype;
|
|
285
|
+
return !!(r && r.isReactComponent);
|
|
286
|
+
}
|
|
287
|
+
function L(e, r, t) {
|
|
288
|
+
if (e == null)
|
|
289
|
+
return "";
|
|
290
|
+
if (typeof e == "function")
|
|
291
|
+
return fe(e, Ue(e));
|
|
292
|
+
if (typeof e == "string")
|
|
293
|
+
return Y(e);
|
|
294
|
+
switch (e) {
|
|
295
|
+
case O:
|
|
296
|
+
return Y("Suspense");
|
|
297
|
+
case d:
|
|
298
|
+
return Y("SuspenseList");
|
|
299
|
+
}
|
|
300
|
+
if (typeof e == "object")
|
|
301
|
+
switch (e.$$typeof) {
|
|
302
|
+
case l:
|
|
303
|
+
return Ve(e.render);
|
|
304
|
+
case b:
|
|
305
|
+
return L(e.type, r, t);
|
|
306
|
+
case C: {
|
|
307
|
+
var n = e, o = n._payload, u = n._init;
|
|
308
|
+
try {
|
|
309
|
+
return L(u(o), r, t);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
return "";
|
|
315
|
+
}
|
|
316
|
+
var F = Object.prototype.hasOwnProperty, ce = {}, de = x.ReactDebugCurrentFrame;
|
|
317
|
+
function N(e) {
|
|
318
|
+
if (e) {
|
|
319
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
320
|
+
de.setExtraStackFrame(t);
|
|
321
|
+
} else
|
|
322
|
+
de.setExtraStackFrame(null);
|
|
323
|
+
}
|
|
324
|
+
function Je(e, r, t, n, o) {
|
|
325
|
+
{
|
|
326
|
+
var u = Function.call.bind(F);
|
|
327
|
+
for (var i in e)
|
|
328
|
+
if (u(e, i)) {
|
|
329
|
+
var a = void 0;
|
|
330
|
+
try {
|
|
331
|
+
if (typeof e[i] != "function") {
|
|
332
|
+
var p = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
+
throw p.name = "Invariant Violation", p;
|
|
334
|
+
}
|
|
335
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (s) {
|
|
337
|
+
a = s;
|
|
338
|
+
}
|
|
339
|
+
a && !(a instanceof Error) && (N(o), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), N(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, N(o), v("Failed %s type: %s", t, a.message), N(null));
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
var qe = Array.isArray;
|
|
344
|
+
function G(e) {
|
|
345
|
+
return qe(e);
|
|
346
|
+
}
|
|
347
|
+
function Be(e) {
|
|
348
|
+
{
|
|
349
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
+
return t;
|
|
108
351
|
}
|
|
109
352
|
}
|
|
110
|
-
function
|
|
111
|
-
if (e === y) return "<>";
|
|
112
|
-
if (typeof e == "object" && e !== null && e.$$typeof === A)
|
|
113
|
-
return "<...>";
|
|
353
|
+
function Ke(e) {
|
|
114
354
|
try {
|
|
115
|
-
|
|
116
|
-
return r ? "<" + r + ">" : "<...>";
|
|
355
|
+
return ve(e), !1;
|
|
117
356
|
} catch {
|
|
118
|
-
return
|
|
357
|
+
return !0;
|
|
119
358
|
}
|
|
120
359
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
123
|
-
return e === null ? null : e.getOwner();
|
|
360
|
+
function ve(e) {
|
|
361
|
+
return "" + e;
|
|
124
362
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
363
|
+
function pe(e) {
|
|
364
|
+
if (Ke(e))
|
|
365
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ve(e);
|
|
127
366
|
}
|
|
128
|
-
|
|
129
|
-
|
|
367
|
+
var me = x.ReactCurrentOwner, Ge = {
|
|
368
|
+
key: !0,
|
|
369
|
+
ref: !0,
|
|
370
|
+
__self: !0,
|
|
371
|
+
__source: !0
|
|
372
|
+
}, _e, he;
|
|
373
|
+
function ze(e) {
|
|
374
|
+
if (F.call(e, "ref")) {
|
|
375
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
+
if (r && r.isReactWarning)
|
|
377
|
+
return !1;
|
|
378
|
+
}
|
|
379
|
+
return e.ref !== void 0;
|
|
380
|
+
}
|
|
381
|
+
function Xe(e) {
|
|
382
|
+
if (F.call(e, "key")) {
|
|
130
383
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
|
-
if (r && r.isReactWarning)
|
|
384
|
+
if (r && r.isReactWarning)
|
|
385
|
+
return !1;
|
|
132
386
|
}
|
|
133
387
|
return e.key !== void 0;
|
|
134
388
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
)
|
|
389
|
+
function He(e, r) {
|
|
390
|
+
typeof e.ref == "string" && me.current;
|
|
391
|
+
}
|
|
392
|
+
function Ze(e, r) {
|
|
393
|
+
{
|
|
394
|
+
var t = function() {
|
|
395
|
+
_e || (_e = !0, v("%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://reactjs.org/link/special-props)", r));
|
|
396
|
+
};
|
|
397
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
+
get: t,
|
|
399
|
+
configurable: !0
|
|
400
|
+
});
|
|
141
401
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
402
|
+
}
|
|
403
|
+
function Qe(e, r) {
|
|
404
|
+
{
|
|
405
|
+
var t = function() {
|
|
406
|
+
he || (he = !0, v("%s: `ref` 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://reactjs.org/link/special-props)", r));
|
|
407
|
+
};
|
|
408
|
+
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
+
get: t,
|
|
410
|
+
configurable: !0
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
var er = function(e, r, t, n, o, u, i) {
|
|
415
|
+
var a = {
|
|
416
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
+
$$typeof: c,
|
|
418
|
+
// Built-in properties that belong on the element
|
|
157
419
|
type: e,
|
|
158
420
|
key: r,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
configurable: !1,
|
|
166
|
-
enumerable: !1,
|
|
167
|
-
writable: !0,
|
|
168
|
-
value: 0
|
|
169
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
421
|
+
ref: t,
|
|
422
|
+
props: i,
|
|
423
|
+
// Record the component responsible for creating this element.
|
|
424
|
+
_owner: u
|
|
425
|
+
};
|
|
426
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
170
427
|
configurable: !1,
|
|
171
428
|
enumerable: !1,
|
|
172
429
|
writable: !0,
|
|
173
|
-
value:
|
|
174
|
-
}), Object.defineProperty(
|
|
430
|
+
value: !1
|
|
431
|
+
}), Object.defineProperty(a, "_self", {
|
|
175
432
|
configurable: !1,
|
|
176
433
|
enumerable: !1,
|
|
177
|
-
writable: !
|
|
178
|
-
value:
|
|
179
|
-
}), Object.defineProperty(
|
|
434
|
+
writable: !1,
|
|
435
|
+
value: n
|
|
436
|
+
}), Object.defineProperty(a, "_source", {
|
|
180
437
|
configurable: !1,
|
|
181
438
|
enumerable: !1,
|
|
182
|
-
writable: !
|
|
183
|
-
value:
|
|
184
|
-
}), Object.freeze && (Object.freeze(
|
|
185
|
-
}
|
|
186
|
-
function
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
439
|
+
writable: !1,
|
|
440
|
+
value: o
|
|
441
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
|
+
};
|
|
443
|
+
function rr(e, r, t, n, o) {
|
|
444
|
+
{
|
|
445
|
+
var u, i = {}, a = null, p = null;
|
|
446
|
+
t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), ze(r) && (p = r.ref, He(r, o));
|
|
447
|
+
for (u in r)
|
|
448
|
+
F.call(r, u) && !Ge.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
|
+
if (e && e.defaultProps) {
|
|
450
|
+
var s = e.defaultProps;
|
|
451
|
+
for (u in s)
|
|
452
|
+
i[u] === void 0 && (i[u] = s[u]);
|
|
453
|
+
}
|
|
454
|
+
if (a || p) {
|
|
455
|
+
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
a && Ze(i, f), p && Qe(i, f);
|
|
457
|
+
}
|
|
458
|
+
return er(e, a, p, o, n, me.current, i);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
var z = x.ReactCurrentOwner, ge = x.ReactDebugCurrentFrame;
|
|
462
|
+
function k(e) {
|
|
463
|
+
if (e) {
|
|
464
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
465
|
+
ge.setExtraStackFrame(t);
|
|
466
|
+
} else
|
|
467
|
+
ge.setExtraStackFrame(null);
|
|
468
|
+
}
|
|
469
|
+
var X;
|
|
470
|
+
X = !1;
|
|
471
|
+
function H(e) {
|
|
472
|
+
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
473
|
+
}
|
|
474
|
+
function ye() {
|
|
475
|
+
{
|
|
476
|
+
if (z.current) {
|
|
477
|
+
var e = R(z.current.type);
|
|
478
|
+
if (e)
|
|
479
|
+
return `
|
|
480
|
+
|
|
481
|
+
Check the render method of \`` + e + "`.";
|
|
482
|
+
}
|
|
483
|
+
return "";
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function tr(e) {
|
|
487
|
+
return "";
|
|
488
|
+
}
|
|
489
|
+
var be = {};
|
|
490
|
+
function nr(e) {
|
|
491
|
+
{
|
|
492
|
+
var r = ye();
|
|
493
|
+
if (!r) {
|
|
494
|
+
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
+
t && (r = `
|
|
496
|
+
|
|
497
|
+
Check the top-level render call using <` + t + ">.");
|
|
498
|
+
}
|
|
499
|
+
return r;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
function Ee(e, r) {
|
|
503
|
+
{
|
|
504
|
+
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
+
return;
|
|
506
|
+
e._store.validated = !0;
|
|
507
|
+
var t = nr(r);
|
|
508
|
+
if (be[t])
|
|
509
|
+
return;
|
|
510
|
+
be[t] = !0;
|
|
511
|
+
var n = "";
|
|
512
|
+
e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + R(e._owner.type) + "."), k(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), k(null);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function Re(e, r) {
|
|
516
|
+
{
|
|
517
|
+
if (typeof e != "object")
|
|
518
|
+
return;
|
|
519
|
+
if (G(e))
|
|
520
|
+
for (var t = 0; t < e.length; t++) {
|
|
521
|
+
var n = e[t];
|
|
522
|
+
H(n) && Ee(n, r);
|
|
523
|
+
}
|
|
524
|
+
else if (H(e))
|
|
525
|
+
e._store && (e._store.validated = !0);
|
|
526
|
+
else if (e) {
|
|
527
|
+
var o = xe(e);
|
|
528
|
+
if (typeof o == "function" && o !== e.entries)
|
|
529
|
+
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
530
|
+
H(i.value) && Ee(i.value, r);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
function ar(e) {
|
|
535
|
+
{
|
|
536
|
+
var r = e.type;
|
|
537
|
+
if (r == null || typeof r == "string")
|
|
538
|
+
return;
|
|
539
|
+
var t;
|
|
540
|
+
if (typeof r == "function")
|
|
541
|
+
t = r.propTypes;
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
|
|
543
|
+
// Inner props are checked in the reconciler.
|
|
544
|
+
r.$$typeof === b))
|
|
545
|
+
t = r.propTypes;
|
|
546
|
+
else
|
|
547
|
+
return;
|
|
548
|
+
if (t) {
|
|
549
|
+
var n = R(r);
|
|
550
|
+
Je(t, e.props, "prop", n, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !X) {
|
|
552
|
+
X = !0;
|
|
553
|
+
var o = R(r);
|
|
554
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
|
+
}
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
function ir(e) {
|
|
560
|
+
{
|
|
561
|
+
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
+
var n = r[t];
|
|
563
|
+
if (n !== "children" && n !== "key") {
|
|
564
|
+
k(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
e.ref !== null && (k(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
var Te = {};
|
|
572
|
+
function Oe(e, r, t, n, o, u) {
|
|
573
|
+
{
|
|
574
|
+
var i = We(e);
|
|
575
|
+
if (!i) {
|
|
576
|
+
var a = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var p = tr();
|
|
579
|
+
p ? a += p : a += ye();
|
|
580
|
+
var s;
|
|
581
|
+
e === null ? s = "null" : G(e) ? s = "array" : e !== void 0 && e.$$typeof === c ? (s = "<" + (R(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
582
|
+
}
|
|
583
|
+
var f = rr(e, r, t, o, u);
|
|
584
|
+
if (f == null)
|
|
585
|
+
return f;
|
|
586
|
+
if (i) {
|
|
587
|
+
var g = r.children;
|
|
588
|
+
if (g !== void 0)
|
|
589
|
+
if (n)
|
|
590
|
+
if (G(g)) {
|
|
591
|
+
for (var D = 0; D < g.length; D++)
|
|
592
|
+
Re(g[D], e);
|
|
593
|
+
Object.freeze && Object.freeze(g);
|
|
594
|
+
} else
|
|
595
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
+
else
|
|
597
|
+
Re(g, e);
|
|
598
|
+
}
|
|
599
|
+
if (F.call(r, "key")) {
|
|
600
|
+
var w = R(e), _ = Object.keys(r).filter(function(cr) {
|
|
601
|
+
return cr !== "key";
|
|
602
|
+
}), Z = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Te[w + Z]) {
|
|
604
|
+
var fr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
206
606
|
let props = %s;
|
|
207
607
|
<%s {...props} />
|
|
208
608
|
React keys must be passed directly to JSX without using spread:
|
|
209
609
|
let props = %s;
|
|
210
|
-
<%s key={someKey} {...props} />`,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
a
|
|
215
|
-
), I[a + n] = !0);
|
|
216
|
-
}
|
|
217
|
-
if (a = null, t !== void 0 && (u(t), a = "" + t), m(r) && (u(r.key), a = "" + r.key), "key" in r) {
|
|
218
|
-
t = {};
|
|
219
|
-
for (var j in r)
|
|
220
|
-
j !== "key" && (t[j] = r[j]);
|
|
221
|
-
} else t = r;
|
|
222
|
-
return a && f(
|
|
223
|
-
t,
|
|
224
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
225
|
-
), w(
|
|
226
|
-
e,
|
|
227
|
-
a,
|
|
228
|
-
t,
|
|
229
|
-
l(),
|
|
230
|
-
p,
|
|
231
|
-
S
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
|
-
function P(e) {
|
|
235
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === A && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
236
|
-
}
|
|
237
|
-
function x(e) {
|
|
238
|
-
return typeof e == "object" && e !== null && e.$$typeof === N;
|
|
239
|
-
}
|
|
240
|
-
var b = re, N = Symbol.for("react.transitional.element"), U = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), J = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), z = Symbol.for("react.context"), G = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), O = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, K = Array.isArray, g = console.createTask ? console.createTask : function() {
|
|
241
|
-
return null;
|
|
242
|
-
};
|
|
243
|
-
b = {
|
|
244
|
-
react_stack_bottom_frame: function(e) {
|
|
245
|
-
return e();
|
|
610
|
+
<%s key={someKey} {...props} />`, Z, w, fr, w), Te[w + Z] = !0;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
return e === y ? ir(f) : ar(f), f;
|
|
246
614
|
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
t,
|
|
258
|
-
!1,
|
|
259
|
-
n ? Error("react-stack-top-frame") : M,
|
|
260
|
-
n ? g(c(e)) : D
|
|
261
|
-
);
|
|
262
|
-
}, v.jsxs = function(e, r, t) {
|
|
263
|
-
var n = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return R(
|
|
265
|
-
e,
|
|
266
|
-
r,
|
|
267
|
-
t,
|
|
268
|
-
!0,
|
|
269
|
-
n ? Error("react-stack-top-frame") : M,
|
|
270
|
-
n ? g(c(e)) : D
|
|
271
|
-
);
|
|
272
|
-
};
|
|
273
|
-
})()), v;
|
|
615
|
+
}
|
|
616
|
+
function or(e, r, t) {
|
|
617
|
+
return Oe(e, r, t, !0);
|
|
618
|
+
}
|
|
619
|
+
function ur(e, r, t) {
|
|
620
|
+
return Oe(e, r, t, !1);
|
|
621
|
+
}
|
|
622
|
+
var sr = ur, lr = or;
|
|
623
|
+
$.Fragment = y, $.jsx = sr, $.jsxs = lr;
|
|
624
|
+
})()), $;
|
|
274
625
|
}
|
|
275
|
-
var
|
|
276
|
-
function
|
|
277
|
-
return
|
|
626
|
+
var we;
|
|
627
|
+
function pr() {
|
|
628
|
+
return we || (we = 1, process.env.NODE_ENV === "production" ? V.exports = dr() : V.exports = vr()), V.exports;
|
|
278
629
|
}
|
|
279
|
-
var
|
|
280
|
-
const
|
|
281
|
-
timeline:
|
|
630
|
+
var U = pr();
|
|
631
|
+
const mr = "_timeline_160ei_1", J = {
|
|
632
|
+
timeline: mr,
|
|
282
633
|
"timeline-items": "_timeline-items_160ei_6",
|
|
283
634
|
"timeline-item": "_timeline-item_160ei_6",
|
|
284
635
|
"timeline-indicator": "_timeline-indicator_160ei_23"
|
|
285
636
|
};
|
|
286
|
-
function
|
|
287
|
-
var
|
|
288
|
-
return "rgb(" +
|
|
637
|
+
function _r() {
|
|
638
|
+
var m = Math.floor(156 + Math.random() * 100), c = Math.floor(156 + Math.random() * 100), E = Math.floor(156 + Math.random() * 100);
|
|
639
|
+
return "rgb(" + m + "," + c + "," + E + ")";
|
|
289
640
|
}
|
|
290
|
-
function
|
|
291
|
-
return
|
|
641
|
+
function hr(m, c) {
|
|
642
|
+
return c === m.length - 1 ? m[c] - m[c - 1] : m[c + 1] - m[c];
|
|
292
643
|
}
|
|
293
|
-
const
|
|
294
|
-
function
|
|
295
|
-
const
|
|
296
|
-
return
|
|
297
|
-
"--translate": `${
|
|
298
|
-
}, children:
|
|
299
|
-
const
|
|
300
|
-
return
|
|
301
|
-
"--bg":
|
|
302
|
-
width:
|
|
303
|
-
...
|
|
304
|
-
}, children:
|
|
644
|
+
const gr = new Array(10).fill(0).map(_r);
|
|
645
|
+
function br({ items: m, currentTime: c, totalTime: E, scale: y = 1, indicator: P, itemStyle: j }) {
|
|
646
|
+
const T = m.map((h) => h.time);
|
|
647
|
+
return U.jsxs("div", { className: J.timeline, children: [U.jsx("div", { className: J["timeline-indicator"], ...P }), U.jsx("div", { className: J["timeline-items"], style: {
|
|
648
|
+
"--translate": `${y * 50 / y - c / E * y * 100}%`
|
|
649
|
+
}, children: m.map((h, l) => {
|
|
650
|
+
const d = hr(T, l) / E * y * 100 + "%";
|
|
651
|
+
return U.jsx("span", { className: J["timeline-item"], style: {
|
|
652
|
+
"--bg": h.style?.background || gr[l > 10 ? l % 10 : l],
|
|
653
|
+
width: d,
|
|
654
|
+
...j
|
|
655
|
+
}, children: h.content });
|
|
305
656
|
}) })] });
|
|
306
657
|
}
|
|
307
658
|
export {
|
|
308
|
-
|
|
659
|
+
br as default
|
|
309
660
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-av-timeline",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "React 音视频时间线组件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"vite-plugin-sass": "^0.1.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"react": "^
|
|
62
|
-
"react-dom": "^
|
|
61
|
+
"react": "^18.3.1",
|
|
62
|
+
"react-dom": "^18.3.1",
|
|
63
63
|
"typescript": "^5.9.3"
|
|
64
64
|
}
|
|
65
65
|
}
|
package/dist/index.umd.cjs
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
(function(_,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("react")):typeof define=="function"&&define.amd?define(["react"],m):(_=typeof globalThis<"u"?globalThis:_||self,_.index=m(_.react))})(this,(function(_){"use strict";var m={exports:{}},v={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var x;function q(){if(x)return v;x=1;var o=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function u(c,i,l){var d=null;if(l!==void 0&&(d=""+l),i.key!==void 0&&(d=""+i.key),"key"in i){l={};for(var f in i)f!=="key"&&(l[f]=i[f])}else l=i;return i=l.ref,{$$typeof:o,type:c,key:d,ref:i!==void 0?i:null,props:l}}return v.Fragment=s,v.jsx=u,v.jsxs=u,v}var R={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var P;function J(){return P||(P=1,process.env.NODE_ENV!=="production"&&(function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case Q:return"Profiler";case Z:return"StrictMode";case te:return"Suspense";case ne:return"SuspenseList";case oe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case H:return"Portal";case ee:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case re:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function s(e){return""+e}function u(e){try{s(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),s(e)}}function c(e){if(e===A)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===O)return"<...>";try{var r=o(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function i(){var e=j.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function d(e){if($.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function f(e,r){function t(){I||(I=!0,console.error("%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)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function E(){var e=o(this.type);return F[e]||(F[e]=!0,console.error("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.")),e=this.props.ref,e!==void 0?e:null}function C(e,r,t,n,y,g){var a=t.ref;return e={$$typeof:D,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:E}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:y}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:g}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function k(e,r,t,n,y,g){var a=r.children;if(a!==void 0)if(n)if(ie(a)){for(n=0;n<a.length;n++)Y(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Y(a);if($.call(r,"key")){a=o(e);var p=Object.keys(r).filter(function(le){return le!=="key"});n=0<p.length?"{key: someKey, "+p.join(": ..., ")+": ...}":"{key: someKey}",U[a+n]||(p=0<p.length?"{"+p.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
-
let props = %s;
|
|
19
|
-
<%s {...props} />
|
|
20
|
-
React keys must be passed directly to JSX without using spread:
|
|
21
|
-
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,n,a,p,a),U[a+n]=!0)}if(a=null,t!==void 0&&(u(t),a=""+t),d(r)&&(u(r.key),a=""+r.key),"key"in r){t={};for(var w in r)w!=="key"&&(t[w]=r[w])}else t=r;return a&&f(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),C(e,a,t,i(),y,g)}function Y(e){M(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===O&&(e._payload.status==="fulfilled"?M(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function M(e){return typeof e=="object"&&e!==null&&e.$$typeof===D}var h=_,D=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),se=Symbol.for("react.client.reference"),j=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,ie=Array.isArray,S=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var I,F={},L=h.react_stack_bottom_frame.bind(h,l)(),W=S(c(l)),U={};R.Fragment=A,R.jsx=function(e,r,t){var n=1e4>j.recentlyCreatedOwnerStacks++;return k(e,r,t,!1,n?Error("react-stack-top-frame"):L,n?S(c(e)):W)},R.jsxs=function(e,r,t){var n=1e4>j.recentlyCreatedOwnerStacks++;return k(e,r,t,!0,n?Error("react-stack-top-frame"):L,n?S(c(e)):W)}})()),R}var N;function V(){return N||(N=1,process.env.NODE_ENV==="production"?m.exports=q():m.exports=J()),m.exports}var b=V();const T={timeline:"_timeline_160ei_1","timeline-items":"_timeline-items_160ei_6","timeline-item":"_timeline-item_160ei_6","timeline-indicator":"_timeline-indicator_160ei_23"};function z(){var o=Math.floor(156+Math.random()*100),s=Math.floor(156+Math.random()*100),u=Math.floor(156+Math.random()*100);return"rgb("+o+","+s+","+u+")"}function G(o,s){return s===o.length-1?o[s]-o[s-1]:o[s+1]-o[s]}const X=new Array(10).fill(0).map(z);function B({items:o,currentTime:s,totalTime:u,scale:c=1,indicator:i,itemStyle:l}){const d=o.map(f=>f.time);return b.jsxs("div",{className:T.timeline,children:[b.jsx("div",{className:T["timeline-indicator"],...i}),b.jsx("div",{className:T["timeline-items"],style:{"--translate":`${c*50/c-s/u*c*100}%`},children:o.map((f,E)=>{const k=G(d,E)/u*c*100+"%";return b.jsx("span",{className:T["timeline-item"],style:{"--bg":f.style?.background||X[E>10?E%10:E],width:k,...l},children:f.content})})})]})}return B}));
|