react-av-timeline 1.0.1 → 1.0.2

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 CHANGED
@@ -12,10 +12,20 @@ npm install react-av-timeline
12
12
 
13
13
  ## 使用
14
14
 
15
+ 首先引入组件,由于css未注入,需要手动引入css
16
+
17
+ ````jsx
18
+ import { Timeline } from 'react-av-timeline';
19
+ import 'react-av-timeline/dist/index.css';
20
+ ````
21
+
15
22
  ````jsx
16
23
  <Component items={[{
17
24
  time:1,
18
- content:'这是第一秒展示的内容'
25
+ content:'这是第一秒展示的内容',
26
+ style:{
27
+ background: "#EAEAAD"
28
+ }
19
29
  },{
20
30
  time:69,
21
31
  content:'这是第69秒展示的内容'
@@ -0,0 +1,9 @@
1
+ import b,{useRef as E,useState as O,useEffect as L,StrictMode as S}from"react";import q from"react-dom";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const c of r)if(c.type==="childList")for(const m of c.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&a(m)}).observe(document,{childList:!0,subtree:!0});function s(r){const c={};return r.integrity&&(c.integrity=r.integrity),r.referrerPolicy&&(c.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?c.credentials="include":r.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(r){if(r.ep)return;r.ep=!0;const c=s(r);fetch(r.href,c)}})();var _={exports:{}},d={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 R;function A(){if(R)return d;R=1;var t=b,e=Symbol.for("react.element"),s=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function m(l,i,p){var o,u={},y=null,x=null;p!==void 0&&(y=""+p),i.key!==void 0&&(y=""+i.key),i.ref!==void 0&&(x=i.ref);for(o in i)a.call(i,o)&&!c.hasOwnProperty(o)&&(u[o]=i[o]);if(l&&l.defaultProps)for(o in i=l.defaultProps,i)u[o]===void 0&&(u[o]=i[o]);return{$$typeof:e,type:l,key:y,ref:x,props:u,_owner:r.current}}return d.Fragment=s,d.jsx=m,d.jsxs=m,d}var j;function N(){return j||(j=1,_.exports=A()),_.exports}var n=N(),h={},C;function B(){if(C)return h;C=1;var t=q;return h.createRoot=t.createRoot,h.hydrateRoot=t.hydrateRoot,h}var M=B();const P="_timeline_1tjsb_1",f={timeline:P,"timeline-items":"_timeline-items_1tjsb_6","timeline-item":"_timeline-item_1tjsb_6","timeline-indicator":"_timeline-indicator_1tjsb_23"};function T(){var t=Math.floor(156+Math.random()*100),e=Math.floor(156+Math.random()*100),s=Math.floor(156+Math.random()*100);return"rgb("+t+","+e+","+s+")"}function w(t,e){return e===t.length-1?t[e]-t[e-1]:t[e+1]-t[e]}function v({items:t,currentTime:e,totalTime:s,scale:a=1,indicator:r}){const c=E(new Array(t.length).fill(0).map(T));return n.jsxs("div",{className:f.timeline,children:[n.jsx("div",{className:f["timeline-indicator"],...r}),n.jsx("div",{className:f["timeline-items"],style:{"--translate":`${a*50/a-e/s*a*100}%`},children:t.map((m,l)=>{const i=t.map(u=>u.time),o=w(i,l)/s*a*100+"%";return n.jsx("span",{className:f["timeline-item"],style:{"--bg":m.style?.background||c.current[l],width:o},children:m.content})})})]})}const $=[{t:0,c:" 作词 : ChiliChill"},{t:1,c:" 作曲 : ChiliChill"},{t:2,c:" 制作人 : ChiliChill"},{t:10.473,c:"船 摇啊摇"},{t:12.239,c:"摇到陌生的远方摇断了船桨"},{t:16.087,c:"进土壤 长成了愿望和新故乡"},{t:20.342,c:"(Bora sana, Bora sana)"},{t:20.724,c:"我的朋友"},{t:22.759,c:"你在哪 是否凝望同一轮月光"},{t:26.474,c:"有没有 成为期待的英雄模样"},{t:30.752,c:"期待的模样"},{t:40.368,c:"(Nzuri Sana)"},{t:41.777,c:"风 绕啊绕"},{t:43.573,c:"绕成年轮记录西山来的歌谣"},{t:47.421,c:"轻唱着 十八万个寂静的夜色"},{t:51.631,c:""},{t:52.178,c:"我的朋友"},{t:53.929,c:"若岁月是一条能够逆流的河"},{t:57.787,c:"你是否 还会踏上未知的远走"},{t:62.323,c:""},{t:62.675,c:"Hakunamatata my friend"},{t:65.085,c:"层岩上雕刻着你的画"},{t:67.563,c:"Hakunamatata my friend"},{t:70.766,c:"庆贺的佳酿千里飘香"},{t:72.859,c:"Latata!Latata!"},{t:75.27,c:"从风花到雪月 从东南到北呀"},{t:78.163,c:"地脉记录着你传奇的诗篇到永远 永远"},{t:83.19,c:""},{t:83.543,c:"船 摇啊摇"},{t:85.28,c:"摇到太阳下班月儿挂树梢"},{t:89.033,c:"歇歇脚 默念早睡早起身体好"},{t:93.814,c:"我的朋友"},{t:95.69,c:"要是累了病了找我瞧一瞧"},{t:99.50800000000001,c:"不得了 三丘丘快采药让四丘丘熬"},{t:103.95,c:""},{t:104.436,c:"Hakunamatata my friend"},{t:106.86,c:"森林里传来可爱回响"},{t:109.324,c:"Hakunamatata my friend"},{t:112.006,c:"见你点燃勇敢的火把"},{t:114.721,c:"Latata!Latata!"},{t:117.02600000000001,c:"从桓那兰那到欧庇克莱呀"},{t:119.814,c:"地脉记录着你传奇的诗篇到永远 永远"},{t:127.237,c:"永远…"},{t:137.056,c:""},{t:138.25,c:"船 摇啊摇"},{t:140.144,c:"摇到陌生的远方摇断了船桨"},{t:144.195,c:"进土壤 长成了愿望和新故乡"},{t:148.982,c:"我的朋友"},{t:151.328,c:"你在哪 是否凝望同一轮月光"},{t:155.184,c:"有没有…"},{t:158.164,c:""},{t:162.578,c:"Hakunamatata my friend"},{t:167.78199999999998,c:"船 摇啊摇"},{t:169.518,c:"摇到陌生的远方摇断了船桨"},{t:173.422,c:"进土壤 长成了愿望和新故乡"},{t:177.966,c:"我的朋友"},{t:179.935,c:"你在哪 是否凝望同一轮月光"},{t:183.714,c:"有没有 成为期待的英雄模样"},{t:188.102,c:""},{t:188.666,c:"船 摇啊摇 摇啊摇啊摇啊摇"},{t:193.865,c:"风 绕啊绕 绕啊绕啊绕啊绕"},{t:198.731,c:""},{t:199.098,c:"我的朋友"},{t:200.951,c:"请带走这一首歌"},{t:204.127,c:"去更远的远方…"},{t:209.063,c:""},{t:209.98,c:""},{t:212.466,c:" 音乐制作 : ChiliChill"},{t:213.299,c:" 笛子 : Akshat Mehrotra"},{t:214.132,c:" 上海录音 : ChiliChill@Staff Only Studio"},{t:214.965,c:" 北京录音 : Kevin刘瀚文@Studio21A"},{t:215.798,c:" 混音 : ChiliChill"},{t:216.631,c:" 母带 : Joe LaPorta"}],k=[{time:0,characters:[]},{time:10.473,characters:[0]},{time:30.752,characters:[1]},{time:40.368,characters:[0,1,2,3,4,5,6]},{time:41.777,characters:[1]},{time:52.178,characters:[2]},{time:62.675,characters:[0,1,2,3,4,5,6]},{time:65.085,characters:[3]},{time:67.563,characters:[0,1,2,3,4,5,6]},{time:70.766,characters:[3]},{time:83.543,characters:[4]},{time:104.436,characters:[0,1,2,3,4,5,6]},{time:106.86,characters:[6]},{time:109.324,characters:[0,1,2,3,4,5,6]},{time:112.006,characters:[6]},{time:114.721,characters:[0,1,2,3,4,5,6]},{time:117.02600000000001,characters:[6]},{time:127.237,characters:[5]},{time:158.164,characters:[]},{time:162.578,characters:[0,1,2,3,4,5,6]},{time:167.78199999999998,characters:[0]},{time:209.063,characters:[]}],g=[{name:"荧",cv:"宴宁",color:"#EEDCA2"},{name:"茜特菈莉",cv:"柳知萧",color:"#B986AE"},{name:"丝柯克",cv:"谢莹",color:"#2B3882"},{name:"嘉明",cv:"谢莹",color:"#611E10"},{name:"胡桃",cv:"陶典",color:"#ECB79A"},{name:"蒂莱尔",cv:"闫夜桥",color:"#253B64"},{name:"凯亚",cv:"孙晔",color:"#456886"}],D=$.map(t=>({time:t.t,content:t.c})),I=k.map(t=>({time:t.time,content:t.characters.length===g.length?"合唱":t.characters.map(e=>g[e].cv).join(" ")}));function J(){const t=E(null),[e,s]=O(0);function a(){s(t.current.currentTime+.3),requestAnimationFrame(a)}return L(()=>{t.current!==null&&a()},[]),n.jsxs(n.Fragment,{children:[n.jsx(v,{items:[{time:1,content:"这是第一秒展示的内容"},{time:69,content:"这是第69秒展示的内容"}],currentTime:0,scale:.2,totalTime:91}),n.jsx(v,{items:D,currentTime:e,scale:10,totalTime:t.current?.duration}),n.jsx(v,{items:I,currentTime:e,scale:5,totalTime:t.current?.duration}),n.jsx("audio",{src:"/index.mp3",controls:!0,ref:t,style:{width:"100%"}})]})}M.createRoot(document.getElementById("root")).render(n.jsx(S,{children:n.jsx(J,{})}));
@@ -1 +1 @@
1
- ._timeline_1tjsb_1{position:relative;overflow:clip;width:100%}._timeline-items_1tjsb_6{transform:translate(var(--translate));display:flex;transition:all .13s;height:100%;width:100%}._timeline-item_1tjsb_6{display:flex;align-items:center;justify-content:center;color:#000;background-color:var(--bg);flex-shrink:0;border-right:2px solid white;box-sizing:border-box}._timeline-indicator_1tjsb_23{z-index:1;position:absolute;top:0;left:50%;background-color:#000;transform:translate(-50%);width:3px;opacity:.4;height:100%}
1
+ ._timeline_1tjsb_1{position:relative;overflow:clip;width:100%}._timeline-items_1tjsb_6{transform:translate(var(--translate));display:flex;transition:all .13s;height:100%;width:100%}._timeline-item_1tjsb_6{display:flex;align-items:center;justify-content:center;color:#000;background-color:var(--bg);flex-shrink:0;border-right:2px solid white;box-sizing:border-box}._timeline-indicator_1tjsb_23{z-index:1;position:absolute;top:0;left:50%;background-color:#000;transform:translate(-50%);width:3px;opacity:.4;height:100%}body{margin:0}a{color:#0ff;text-decoration:none}
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html lang="zh">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + React + TS</title>
8
+ <script type="module" crossorigin src="/assets/index-4pe00mnL.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-DzZLKPs2.css">
10
+ </head>
11
+ <body>
12
+ <div id="root"></div>
13
+ </body>
14
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-av-timeline",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "React 音视频时间线组件",
5
5
  "type": "module",
6
6
  "files": [
package/dist/index.js DELETED
@@ -1,658 +0,0 @@
1
- import we, { useRef as dr } from "react";
2
- var V = { exports: {} }, I = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var Ce;
13
- function vr() {
14
- if (Ce) return I;
15
- Ce = 1;
16
- var c = we, d = Symbol.for("react.element"), R = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, w = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function E(y, f, O) {
18
- var v, b = {}, C = null, W = null;
19
- O !== void 0 && (C = "" + O), f.key !== void 0 && (C = "" + f.key), f.ref !== void 0 && (W = f.ref);
20
- for (v in f) g.call(f, v) && !P.hasOwnProperty(v) && (b[v] = f[v]);
21
- if (y && y.defaultProps) for (v in f = y.defaultProps, f) b[v] === void 0 && (b[v] = f[v]);
22
- return { $$typeof: d, type: y, key: C, ref: W, props: b, _owner: w.current };
23
- }
24
- return I.Fragment = R, I.jsx = E, I.jsxs = E, I;
25
- }
26
- var $ = {};
27
- /**
28
- * @license React
29
- * react-jsx-runtime.development.js
30
- *
31
- * Copyright (c) Facebook, Inc. and its affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- */
36
- var Se;
37
- function pr() {
38
- return Se || (Se = 1, process.env.NODE_ENV !== "production" && (function() {
39
- var c = we, d = Symbol.for("react.element"), R = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), E = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, Pe = "@@iterator";
40
- function xe(e) {
41
- if (e === null || typeof e != "object")
42
- return null;
43
- var r = Q && e[Q] || e[Pe];
44
- return typeof r == "function" ? r : null;
45
- }
46
- var x = c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function p(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 === g || e === P || $e || e === w || e === O || e === v || Ie || e === W || De || Ae || Fe || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === b || e.$$typeof === E || e.$$typeof === y || e.$$typeof === f || // 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 T(e) {
84
- if (e == null)
85
- return null;
86
- if (typeof e.tag == "number" && p("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;
90
- switch (e) {
91
- case g:
92
- return "Fragment";
93
- case R:
94
- return "Portal";
95
- case P:
96
- return "Profiler";
97
- case w:
98
- return "StrictMode";
99
- case O:
100
- return "Suspense";
101
- case v:
102
- return "SuspenseList";
103
- }
104
- if (typeof e == "object")
105
- switch (e.$$typeof) {
106
- case y:
107
- var r = e;
108
- return re(r) + ".Consumer";
109
- case E:
110
- var t = e;
111
- return re(t._context) + ".Provider";
112
- case f:
113
- return Ye(e, e.render, "ForwardRef");
114
- case b:
115
- var n = e.displayName || null;
116
- return n !== null ? n : T(e.type) || "Memo";
117
- case C: {
118
- var o = e, u = o._payload, i = o._init;
119
- try {
120
- return T(i(u));
121
- } catch {
122
- return null;
123
- }
124
- }
125
- }
126
- return null;
127
- }
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 && p("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
- }
203
- }
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();
223
- try {
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
- `), m = n.stack.split(`
259
- `), s = a.length - 1, l = m.length - 1; s >= 1 && l >= 0 && a[s] !== m[l]; )
260
- l--;
261
- for (; s >= 1 && l >= 0; s--, l--)
262
- if (a[s] !== m[l]) {
263
- if (s !== 1 || l !== 1)
264
- do
265
- if (s--, l--, l < 0 || a[s] !== m[l]) {
266
- var h = `
267
- ` + a[s].replace(" at new ", " at ");
268
- return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, h), h;
269
- }
270
- while (s >= 1 && l >= 0);
271
- break;
272
- }
273
- }
274
- } finally {
275
- K = !1, q.current = u, Le(), Error.prepareStackTrace = o;
276
- }
277
- var D = e ? e.displayName || e.name : "", j = D ? Y(D) : "";
278
- return typeof e == "function" && M.set(e, j), j;
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 v:
298
- return Y("SuspenseList");
299
- }
300
- if (typeof e == "object")
301
- switch (e.$$typeof) {
302
- case f:
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 m = 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 m.name = "Invariant Violation", m;
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), p("%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), p("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;
351
- }
352
- }
353
- function Ke(e) {
354
- try {
355
- return ve(e), !1;
356
- } catch {
357
- return !0;
358
- }
359
- }
360
- function ve(e) {
361
- return "" + e;
362
- }
363
- function pe(e) {
364
- if (Ke(e))
365
- return p("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);
366
- }
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")) {
383
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
- if (r && r.isReactWarning)
385
- return !1;
386
- }
387
- return e.key !== void 0;
388
- }
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, p("%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
- });
401
- }
402
- }
403
- function Qe(e, r) {
404
- {
405
- var t = function() {
406
- he || (he = !0, p("%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: d,
418
- // Built-in properties that belong on the element
419
- type: e,
420
- key: r,
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", {
427
- configurable: !1,
428
- enumerable: !1,
429
- writable: !0,
430
- value: !1
431
- }), Object.defineProperty(a, "_self", {
432
- configurable: !1,
433
- enumerable: !1,
434
- writable: !1,
435
- value: n
436
- }), Object.defineProperty(a, "_source", {
437
- configurable: !1,
438
- enumerable: !1,
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, m = null;
446
- t !== void 0 && (pe(t), a = "" + t), Xe(r) && (pe(r.key), a = "" + r.key), ze(r) && (m = 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 || m) {
455
- var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- a && Ze(i, l), m && Qe(i, l);
457
- }
458
- return er(e, a, m, 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 === d;
473
- }
474
- function be() {
475
- {
476
- if (z.current) {
477
- var e = T(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 ye = {};
490
- function nr(e) {
491
- {
492
- var r = be();
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 Re(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 (ye[t])
509
- return;
510
- ye[t] = !0;
511
- var n = "";
512
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + T(e._owner.type) + "."), k(e), p('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 Ee(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) && Re(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) && Re(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 === f || // 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 = T(r);
550
- Je(t, e.props, "prop", n, e);
551
- } else if (r.PropTypes !== void 0 && !X) {
552
- X = !0;
553
- var o = T(r);
554
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
555
- }
556
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("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), p("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), p("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 m = tr();
579
- m ? a += m : a += be();
580
- var s;
581
- e === null ? s = "null" : G(e) ? s = "array" : e !== void 0 && e.$$typeof === d ? (s = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, p("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 l = rr(e, r, t, o, u);
584
- if (l == null)
585
- return l;
586
- if (i) {
587
- var h = r.children;
588
- if (h !== void 0)
589
- if (n)
590
- if (G(h)) {
591
- for (var D = 0; D < h.length; D++)
592
- Ee(h[D], e);
593
- Object.freeze && Object.freeze(h);
594
- } else
595
- p("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
- Ee(h, e);
598
- }
599
- if (F.call(r, "key")) {
600
- var j = T(e), _ = Object.keys(r).filter(function(cr) {
601
- return cr !== "key";
602
- }), Z = _.length > 0 ? "{key: someKey, " + _.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Te[j + Z]) {
604
- var fr = _.length > 0 ? "{" + _.join(": ..., ") + ": ...}" : "{}";
605
- p(`A props object containing a "key" prop is being spread into JSX:
606
- let props = %s;
607
- <%s {...props} />
608
- React keys must be passed directly to JSX without using spread:
609
- let props = %s;
610
- <%s key={someKey} {...props} />`, Z, j, fr, j), Te[j + Z] = !0;
611
- }
612
- }
613
- return e === g ? ir(l) : ar(l), l;
614
- }
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 = g, $.jsx = sr, $.jsxs = lr;
624
- })()), $;
625
- }
626
- var je;
627
- function mr() {
628
- return je || (je = 1, process.env.NODE_ENV === "production" ? V.exports = vr() : V.exports = pr()), V.exports;
629
- }
630
- var U = mr();
631
- const _r = "_timeline_1tjsb_1", J = {
632
- timeline: _r,
633
- "timeline-items": "_timeline-items_1tjsb_6",
634
- "timeline-item": "_timeline-item_1tjsb_6",
635
- "timeline-indicator": "_timeline-indicator_1tjsb_23"
636
- };
637
- function hr() {
638
- var c = Math.floor(156 + Math.random() * 100), d = Math.floor(156 + Math.random() * 100), R = Math.floor(156 + Math.random() * 100);
639
- return "rgb(" + c + "," + d + "," + R + ")";
640
- }
641
- function gr(c, d) {
642
- return d === c.length - 1 ? c[d] - c[d - 1] : c[d + 1] - c[d];
643
- }
644
- function yr({ items: c, currentTime: d, totalTime: R, scale: g = 1, indicator: w }) {
645
- const P = dr(new Array(c.length).fill(0).map(hr));
646
- return U.jsxs("div", { className: J.timeline, children: [U.jsx("div", { className: J["timeline-indicator"], ...w }), U.jsx("div", { className: J["timeline-items"], style: {
647
- "--translate": `${g * 50 / g - d / R * g * 100}%`
648
- }, children: c.map((E, y) => {
649
- const f = c.map((b) => b.time), v = gr(f, y) / R * g * 100 + "%";
650
- return U.jsx("span", { className: J["timeline-item"], style: {
651
- "--bg": E.style?.background || P.current[y],
652
- width: v
653
- }, children: E.content });
654
- }) })] });
655
- }
656
- export {
657
- yr as default
658
- };
@@ -1,30 +0,0 @@
1
- (function(R,E){typeof exports=="object"&&typeof module<"u"?module.exports=E(require("react")):typeof define=="function"&&define.amd?define(["react"],E):(R=typeof globalThis<"u"?globalThis:R||self,R.index=E(R.react))})(this,(function(R){"use strict";var E={exports:{}},I={};/**
2
- * @license React
3
- * react-jsx-runtime.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its 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 ee;function Pe(){if(ee)return I;ee=1;var c=R,d=Symbol.for("react.element"),T=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,x=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,k={key:!0,ref:!0,__self:!0,__source:!0};function O(b,f,C){var v,y={},S=null,N=null;C!==void 0&&(S=""+C),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(N=f.ref);for(v in f)g.call(f,v)&&!k.hasOwnProperty(v)&&(y[v]=f[v]);if(b&&b.defaultProps)for(v in f=b.defaultProps,f)y[v]===void 0&&(y[v]=f[v]);return{$$typeof:d,type:b,key:S,ref:N,props:y,_owner:x.current}}return I.Fragment=T,I.jsx=O,I.jsxs=O,I}var W={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its 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 re;function xe(){return re||(re=1,process.env.NODE_ENV!=="production"&&(function(){var c=R,d=Symbol.for("react.element"),T=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),b=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),ne=Symbol.iterator,Ie="@@iterator";function We(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[Ie];return typeof r=="function"?r:null}var D=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ye("error",e,t)}}function Ye(e,r,t){{var n=D.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Me=!1,$e=!1,Le=!1,Ne=!1,Ve=!1,ae;ae=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===k||Ve||e===x||e===C||e===v||Ne||e===N||Me||$e||Le||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===y||e.$$typeof===O||e.$$typeof===b||e.$$typeof===f||e.$$typeof===ae||e.getModuleId!==void 0))}function Je(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ie(e){return e.displayName||"Context"}function j(e){if(e==null)return null;if(typeof e.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case g:return"Fragment";case T:return"Portal";case k:return"Profiler";case x:return"StrictMode";case C:return"Suspense";case v:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return ie(r)+".Consumer";case O:var t=e;return ie(t._context)+".Provider";case f:return Je(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:j(e.type)||"Memo";case S:{var o=e,u=o._payload,i=o._init;try{return j(i(u))}catch{return null}}}return null}var w=Object.assign,Y=0,oe,ue,se,le,fe,ce,de;function ve(){}ve.__reactDisabledLog=!0;function Be(){{if(Y===0){oe=console.log,ue=console.info,se=console.warn,le=console.error,fe=console.group,ce=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function qe(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:oe}),info:w({},e,{value:ue}),warn:w({},e,{value:se}),error:w({},e,{value:le}),group:w({},e,{value:fe}),groupCollapsed:w({},e,{value:ce}),groupEnd:w({},e,{value:de})})}Y<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=D.ReactCurrentDispatcher,K;function V(e,r,t){{if(K===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);K=n&&n[1]||""}return`
18
- `+K+e}}var G=!1,U;{var Ke=typeof WeakMap=="function"?WeakMap:Map;U=new Ke}function pe(e,r){if(!e||G)return"";{var t=U.get(e);if(t!==void 0)return t}var n;G=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Be();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(h){n=h}Reflect.construct(e,[],i)}else{try{i.call()}catch(h){n=h}e.call(i.prototype)}}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var a=h.stack.split(`
19
- `),m=n.stack.split(`
20
- `),s=a.length-1,l=m.length-1;s>=1&&l>=0&&a[s]!==m[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==m[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==m[l]){var _=`
21
- `+a[s].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&U.set(e,_),_}while(s>=1&&l>=0);break}}}finally{G=!1,q.current=u,qe(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",P=F?V(F):"";return typeof e=="function"&&U.set(e,P),P}function Ge(e,r,t){return pe(e,!1)}function ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,ze(e));if(typeof e=="string")return V(e);switch(e){case C:return V("Suspense");case v:return V("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Ge(e.render);case y:return J(e.type,r,t);case S:{var n=e,o=n._payload,u=n._init;try{return J(u(o),r,t)}catch{}}}return""}var M=Object.prototype.hasOwnProperty,me={},he=D.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);he.setExtraStackFrame(t)}else he.setExtraStackFrame(null)}function Xe(e,r,t,n,o){{var u=Function.call.bind(M);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=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`.");throw m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(B(o),p("%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),B(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,B(o),p("Failed %s type: %s",t,a.message),B(null))}}}var He=Array.isArray;function z(e){return He(e)}function Ze(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Qe(e){try{return _e(e),!1}catch{return!0}}function _e(e){return""+e}function ge(e){if(Qe(e))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ze(e)),_e(e)}var ye=D.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0},be,Re;function rr(e){if(M.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(M.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){typeof e.ref=="string"&&ye.current}function ar(e,r){{var t=function(){be||(be=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){Re||(Re=!0,p("%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))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var or=function(e,r,t,n,o,u,i){var a={$$typeof:d,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,o){{var u,i={},a=null,m=null;t!==void 0&&(ge(t),a=""+t),tr(r)&&(ge(r.key),a=""+r.key),rr(r)&&(m=r.ref,nr(r,o));for(u in r)M.call(r,u)&&!er.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||m){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,l),m&&ir(i,l)}return or(e,a,m,o,n,ye.current,i)}}var X=D.ReactCurrentOwner,Ee=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var H;H=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function Te(){{if(X.current){var e=j(X.current.type);if(e)return`
22
-
23
- Check the render method of \``+e+"`."}return""}}function sr(e){return""}var Oe={};function lr(e){{var r=Te();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
-
25
- Check the top-level render call using <`+t+">.")}return r}}function je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Oe[t])return;Oe[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),A(e),p('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),A(null)}}function Ce(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var n=e[t];Z(n)&&je(n,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var o=We(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Z(i.value)&&je(i.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=j(r);Xe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=j(r);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function cr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),p("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}var Se={};function we(e,r,t,n,o,u){{var i=Ue(e);if(!i){var a="";(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.");var m=sr();m?a+=m:a+=Te();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===d?(s="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,p("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)}var l=ur(e,r,t,o,u);if(l==null)return l;if(i){var _=r.children;if(_!==void 0)if(n)if(z(_)){for(var F=0;F<_.length;F++)Ce(_[F],e);Object.freeze&&Object.freeze(_)}else p("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 Ce(_,e)}if(M.call(r,"key")){var P=j(e),h=Object.keys(r).filter(function(_r){return _r!=="key"}),Q=h.length>0?"{key: someKey, "+h.join(": ..., ")+": ...}":"{key: someKey}";if(!Se[P+Q]){var hr=h.length>0?"{"+h.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
26
- let props = %s;
27
- <%s {...props} />
28
- React keys must be passed directly to JSX without using spread:
29
- let props = %s;
30
- <%s key={someKey} {...props} />`,Q,P,hr,P),Se[P+Q]=!0}}return e===g?cr(l):fr(l),l}}function dr(e,r,t){return we(e,r,t,!0)}function vr(e,r,t){return we(e,r,t,!1)}var pr=vr,mr=dr;W.Fragment=g,W.jsx=pr,W.jsxs=mr})()),W}var te;function ke(){return te||(te=1,process.env.NODE_ENV==="production"?E.exports=Pe():E.exports=xe()),E.exports}var $=ke();const L={timeline:"_timeline_1tjsb_1","timeline-items":"_timeline-items_1tjsb_6","timeline-item":"_timeline-item_1tjsb_6","timeline-indicator":"_timeline-indicator_1tjsb_23"};function De(){var c=Math.floor(156+Math.random()*100),d=Math.floor(156+Math.random()*100),T=Math.floor(156+Math.random()*100);return"rgb("+c+","+d+","+T+")"}function Ae(c,d){return d===c.length-1?c[d]-c[d-1]:c[d+1]-c[d]}function Fe({items:c,currentTime:d,totalTime:T,scale:g=1,indicator:x}){const k=R.useRef(new Array(c.length).fill(0).map(De));return $.jsxs("div",{className:L.timeline,children:[$.jsx("div",{className:L["timeline-indicator"],...x}),$.jsx("div",{className:L["timeline-items"],style:{"--translate":`${g*50/g-d/T*g*100}%`},children:c.map((O,b)=>{const f=c.map(y=>y.time),v=Ae(f,b)/T*g*100+"%";return $.jsx("span",{className:L["timeline-item"],style:{"--bg":O.style?.background||k.current[b],width:v},children:O.content})})})]})}return Fe}));