@chenkai_ioc/react-charts 0.1.0 → 0.1.1

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 CHANGED
@@ -48,11 +48,12 @@ const be = (i) => {
48
48
  right: "rgba(255, 255, 255, 0.15)",
49
49
  top: "rgba(255, 255, 255, 0.2)",
50
50
  stroke: "rgba(255, 255, 255, 0.3)"
51
- }
51
+ },
52
+ renderer: u = "canvas"
52
53
  }) => {
53
- const u = E(() => {
54
- const h = a.reduce((S, w) => Math.max(S, w.value), 0), m = h ? Math.ceil(h * 1.2) : 100, y = (S, w) => {
55
- const k = w.coord([w.value(0), w.value(1)]), L = r, d = k[0], p = k[1], _ = w.coord([w.value(0), 0])[1], T = L / 2, z = L / 4, $ = [d, _ + z];
54
+ const h = E(() => {
55
+ const m = a.reduce((w, x) => Math.max(w, x.value), 0), y = m ? Math.ceil(m * 1.2) : 100, v = (w, x) => {
56
+ const k = x.coord([x.value(0), x.value(1)]), p = r, d = k[0], L = k[1], T = x.coord([x.value(0), 0])[1], $ = p / 2, z = p / 4, F = [d, T + z];
56
57
  return {
57
58
  type: "group",
58
59
  children: [
@@ -61,19 +62,19 @@ const be = (i) => {
61
62
  type: "polygon",
62
63
  shape: {
63
64
  points: [
64
- [d - T, _],
65
- $,
65
+ [d - $, T],
66
+ F,
66
67
  // 注意:这里的baseBottom实际上是前中下点,baseLeft是左下点
67
68
  // 修正:我们需要画的是两个侧面。
68
69
  // 棱在中间。
69
70
  // 左面:左边缘,中间棱,中间棱顶,左边缘顶
70
- [d - T, _],
71
+ [d - $, T],
71
72
  // 左下
72
- [d, _ + z],
73
+ [d, T + z],
73
74
  // 中下
74
- [d, p + z],
75
+ [d, L + z],
75
76
  // 中上
76
- [d - T, p]
77
+ [d - $, L]
77
78
  // 左上
78
79
  ]
79
80
  },
@@ -90,13 +91,13 @@ const be = (i) => {
90
91
  type: "polygon",
91
92
  shape: {
92
93
  points: [
93
- [d, _ + z],
94
+ [d, T + z],
94
95
  // 中下
95
- [d + T, _],
96
+ [d + $, T],
96
97
  // 右下
97
- [d + T, p],
98
+ [d + $, L],
98
99
  // 右上
99
- [d, p + z]
100
+ [d, L + z]
100
101
  // 中上
101
102
  ]
102
103
  },
@@ -113,13 +114,13 @@ const be = (i) => {
113
114
  type: "polygon",
114
115
  shape: {
115
116
  points: [
116
- [d - T, p],
117
+ [d - $, L],
117
118
  // 左
118
- [d, p + z],
119
+ [d, L + z],
119
120
  // 下
120
- [d + T, p],
121
+ [d + $, L],
121
122
  // 右
122
- [d, p - z]
123
+ [d, L - z]
123
124
  // 上
124
125
  ]
125
126
  },
@@ -130,8 +131,8 @@ const be = (i) => {
130
131
  }
131
132
  ]
132
133
  };
133
- }, v = (S, w) => {
134
- const k = w.coord([w.value(0), w.value(1)]), L = k[0], d = k[1], x = w.coord([w.value(0), 0])[1], _ = r, T = _ / 2, z = _ / 4;
134
+ }, S = (w, x) => {
135
+ const k = x.coord([x.value(0), x.value(1)]), p = k[0], d = k[1], _ = x.coord([x.value(0), 0])[1], T = r, $ = T / 2, z = T / 4;
135
136
  return {
136
137
  type: "group",
137
138
  children: [
@@ -140,10 +141,10 @@ const be = (i) => {
140
141
  type: "polygon",
141
142
  shape: {
142
143
  points: [
143
- [L - T, x],
144
- [L, x + z],
145
- [L, d + z],
146
- [L - T, d]
144
+ [p - $, _],
145
+ [p, _ + z],
146
+ [p, d + z],
147
+ [p - $, d]
147
148
  ]
148
149
  },
149
150
  style: {
@@ -156,10 +157,10 @@ const be = (i) => {
156
157
  type: "polygon",
157
158
  shape: {
158
159
  points: [
159
- [L, x + z],
160
- [L + T, x],
161
- [L + T, d],
162
- [L, d + z]
160
+ [p, _ + z],
161
+ [p + $, _],
162
+ [p + $, d],
163
+ [p, d + z]
163
164
  ]
164
165
  },
165
166
  style: {
@@ -171,10 +172,10 @@ const be = (i) => {
171
172
  type: "polygon",
172
173
  shape: {
173
174
  points: [
174
- [L - T, d],
175
- [L, d + z],
176
- [L + T, d],
177
- [L, d - z]
175
+ [p - $, d],
176
+ [p, d + z],
177
+ [p + $, d],
178
+ [p, d - z]
178
179
  ]
179
180
  },
180
181
  style: {
@@ -194,13 +195,13 @@ const be = (i) => {
194
195
  axisPointer: {
195
196
  type: "shadow"
196
197
  },
197
- formatter: (S) => {
198
- const w = S.find((k) => k.seriesName === "bar");
199
- return w ? `${w.name}: ${be(w.value)}${o}` : "";
198
+ formatter: (w) => {
199
+ const x = w.find((k) => k.seriesName === "bar");
200
+ return x ? `${x.name}: ${be(x.value)}${o}` : "";
200
201
  }
201
202
  },
202
203
  xAxis: {
203
- data: a.map((S) => S.name),
204
+ data: a.map((w) => w.name),
204
205
  axisLine: {
205
206
  show: !1
206
207
  },
@@ -214,7 +215,7 @@ const be = (i) => {
214
215
  }
215
216
  },
216
217
  yAxis: {
217
- max: m + 10,
218
+ max: y + 10,
218
219
  // 留出顶部空间
219
220
  splitLine: {
220
221
  show: !0,
@@ -235,8 +236,8 @@ const be = (i) => {
235
236
  {
236
237
  type: "custom",
237
238
  name: "background",
238
- renderItem: v,
239
- data: a.map((S) => [S.name, m]),
239
+ renderItem: S,
240
+ data: a.map((w) => [w.name, y]),
240
241
  z: 1,
241
242
  silent: !0
242
243
  // 背景不响应鼠标
@@ -245,8 +246,8 @@ const be = (i) => {
245
246
  {
246
247
  type: "custom",
247
248
  name: "bar",
248
- renderItem: y,
249
- data: a.map((S) => [S.name, S.value]),
249
+ renderItem: v,
250
+ data: a.map((w) => [w.name, w.value]),
250
251
  z: 2,
251
252
  label: {
252
253
  show: !1
@@ -266,7 +267,14 @@ const be = (i) => {
266
267
  t,
267
268
  s
268
269
  ]);
269
- return /* @__PURE__ */ l("div", { style: { width: "100%", height: "100%", ...i }, children: /* @__PURE__ */ l(K, { option: u, style: { width: "100%", height: "100%", ...b } }) });
270
+ return /* @__PURE__ */ l("div", { style: { width: "100%", height: "100%", ...i }, children: /* @__PURE__ */ l(
271
+ K,
272
+ {
273
+ option: h,
274
+ opts: { renderer: u },
275
+ style: { width: "100%", height: "100%", ...b }
276
+ }
277
+ ) });
270
278
  }, nr = "_capsuleSwitch_1c26v_1", dr = "_capsuleSlider_1c26v_11", ir = "_capsuleItem_1c26v_23", hr = "_capsuleItemActive_1c26v_42", Tt = {
271
279
  capsuleSwitch: nr,
272
280
  capsuleSlider: dr,
@@ -340,15 +348,15 @@ const be = (i) => {
340
348
  const v = rr().replace(/:/g, ""), {
341
349
  progressGradientStart: S = "rgba(73, 163, 255, 1)",
342
350
  progressGradientEnd: w = "rgba(73, 163, 255, 1)",
343
- progressGradientEndOpacity: k = 1,
344
- progressWidth: L = 2,
345
- strokeLinecap: d = "round",
346
- showTrack: p = !1,
347
- trackColor: x = "transparent",
351
+ progressGradientEndOpacity: x = 1,
352
+ progressWidth: k = 2,
353
+ strokeLinecap: p = "round",
354
+ showTrack: d = !1,
355
+ trackColor: L = "transparent",
348
356
  trackWidth: _ = 3,
349
357
  showDot: T = !0,
350
- dotColor: z = "#45aaff",
351
- dotSize: $ = 3,
358
+ dotColor: $ = "#45aaff",
359
+ dotSize: z = 3,
352
360
  dotFollowProgress: F = !1,
353
361
  showGlow: I = !0,
354
362
  glowIntensity: W = 1.8
@@ -432,7 +440,7 @@ const be = (i) => {
432
440
  {
433
441
  offset: "100%",
434
442
  stopColor: w,
435
- stopOpacity: k
443
+ stopOpacity: x
436
444
  }
437
445
  )
438
446
  ] }),
@@ -444,7 +452,7 @@ const be = (i) => {
444
452
  ] })
445
453
  ] })
446
454
  ] }),
447
- p && /* @__PURE__ */ l("circle", { fill: "none", cx: pe, cy: oe, r: me, stroke: x, strokeWidth: _ }),
455
+ d && /* @__PURE__ */ l("circle", { fill: "none", cx: pe, cy: oe, r: me, stroke: L, strokeWidth: _ }),
448
456
  /* @__PURE__ */ l(
449
457
  "circle",
450
458
  {
@@ -453,8 +461,8 @@ const be = (i) => {
453
461
  cy: oe,
454
462
  r: me,
455
463
  stroke: `url(#${q})`,
456
- strokeWidth: L,
457
- strokeLinecap: d,
464
+ strokeWidth: k,
465
+ strokeLinecap: p,
458
466
  strokeDasharray: xe,
459
467
  transform: `rotate(${B} ${pe} ${oe})`,
460
468
  filter: I ? `url(#${Z})` : void 0,
@@ -464,8 +472,8 @@ const be = (i) => {
464
472
  T && /* @__PURE__ */ l(
465
473
  "circle",
466
474
  {
467
- r: $,
468
- fill: z,
475
+ r: z,
476
+ fill: $,
469
477
  cx: Le,
470
478
  cy: ke,
471
479
  filter: I ? `url(#${Z})` : void 0
@@ -537,19 +545,19 @@ const be = (i) => {
537
545
  preStyle: u,
538
546
  codeStyle: h
539
547
  }) => {
540
- const [m, y] = ze(a), v = async (w, k) => {
541
- var L;
548
+ const [m, y] = ze(a), v = async (w, x) => {
549
+ var k;
542
550
  w.stopPropagation();
543
551
  try {
544
- if ((L = navigator.clipboard) != null && L.writeText)
545
- await navigator.clipboard.writeText(k);
552
+ if ((k = navigator.clipboard) != null && k.writeText)
553
+ await navigator.clipboard.writeText(x);
546
554
  else {
547
- const d = document.createElement("textarea");
548
- d.value = k, d.style.position = "fixed", d.style.opacity = "0", document.body.appendChild(d), d.select(), document.execCommand("copy"), document.body.removeChild(d);
555
+ const p = document.createElement("textarea");
556
+ p.value = x, p.style.position = "fixed", p.style.opacity = "0", document.body.appendChild(p), p.select(), document.execCommand("copy"), document.body.removeChild(p);
549
557
  }
550
558
  Ut.success("复制成功");
551
- } catch (d) {
552
- Ut.error("复制失败"), console.error(d);
559
+ } catch (p) {
560
+ Ut.error("复制失败"), console.error(p);
553
561
  }
554
562
  }, S = () => {
555
563
  y(!m);
@@ -670,8 +678,8 @@ const be = (i) => {
670
678
  dashedLineStyle: v,
671
679
  dataGroupStyle: S,
672
680
  percentageStyle: w,
673
- valueStyle: k,
674
- progressBarStyle: L
681
+ valueStyle: x,
682
+ progressBarStyle: k
675
683
  }) => /* @__PURE__ */ M("div", { className: `${Ne.mainContent} `, style: n, children: [
676
684
  /* @__PURE__ */ l("div", { className: Ne.leftSection, style: e, children: /* @__PURE__ */ l("div", { className: Ne.iconCircle, style: t, children: /* @__PURE__ */ l(
677
685
  "img",
@@ -691,10 +699,10 @@ const be = (i) => {
691
699
  a,
692
700
  "%"
693
701
  ] }),
694
- /* @__PURE__ */ l("span", { className: Ne.value, style: k, children: o })
702
+ /* @__PURE__ */ l("span", { className: Ne.value, style: x, children: o })
695
703
  ] })
696
704
  ] }) }),
697
- c && /* @__PURE__ */ l(Dr, { percentage: a, style: L })
705
+ c && /* @__PURE__ */ l(Dr, { percentage: a, style: k })
698
706
  ] })
699
707
  ] }), Zr = "_gridContainer_vymgp_1", Kr = "_gridItem_vymgp_7", Qr = "_cardHeader_vymgp_15", Jr = "_cardBody_vymgp_45", fr = "_iconWrapper_vymgp_54", gr = "_icon_vymgp_54", Cr = "_value_vymgp_69", ea = "_unit_vymgp_76", ta = "_trend_vymgp_81", ra = "_trendUp_vymgp_85", aa = "_trendDown_vymgp_90", oa = "_arrowUp_vymgp_95", la = "_arrowDown_vymgp_105", Te = {
700
708
  gridContainer: Zr,
@@ -728,7 +736,7 @@ const be = (i) => {
728
736
  unitStyle: v,
729
737
  trendStyle: S,
730
738
  trendUpStyle: w,
731
- trendDownStyle: k
739
+ trendDownStyle: x
732
740
  }) => /* @__PURE__ */ l(
733
741
  "div",
734
742
  {
@@ -738,41 +746,41 @@ const be = (i) => {
738
746
  gap: `${a}px`,
739
747
  ...e
740
748
  },
741
- children: i.map((L) => /* @__PURE__ */ M("div", { className: Te.gridItem, style: t, children: [
742
- /* @__PURE__ */ l("div", { className: Te.cardHeader, style: s, children: L.title }),
749
+ children: i.map((k) => /* @__PURE__ */ M("div", { className: Te.gridItem, style: t, children: [
750
+ /* @__PURE__ */ l("div", { className: Te.cardHeader, style: s, children: k.title }),
743
751
  /* @__PURE__ */ M("div", { className: Te.cardBody, style: u, children: [
744
752
  /* @__PURE__ */ l("div", { className: Te.iconWrapper, style: h, children: /* @__PURE__ */ l(
745
753
  "img",
746
754
  {
747
- src: L.icon,
748
- alt: L.title,
755
+ src: k.icon,
756
+ alt: k.title,
749
757
  className: Te.icon,
750
758
  style: { width: `${r}px`, height: `${r}px`, ...m }
751
759
  }
752
760
  ) }),
753
761
  /* @__PURE__ */ M("div", { className: Te.value, style: { fontSize: `${n}px`, ...y }, children: [
754
- L.value,
755
- /* @__PURE__ */ l("span", { className: Te.unit, style: v, children: L.unit })
762
+ k.value,
763
+ /* @__PURE__ */ l("span", { className: Te.unit, style: v, children: k.unit })
756
764
  ] }),
757
- o && L.trend !== void 0 && /* @__PURE__ */ M("div", { className: Te.trend, style: S, children: [
765
+ o && k.trend !== void 0 && /* @__PURE__ */ M("div", { className: Te.trend, style: S, children: [
758
766
  c,
759
767
  /* @__PURE__ */ M(
760
768
  "span",
761
769
  {
762
- className: L.trend >= 0 ? Te.trendUp : Te.trendDown,
763
- style: L.trend >= 0 ? w : k,
770
+ className: k.trend >= 0 ? Te.trendUp : Te.trendDown,
771
+ style: k.trend >= 0 ? w : x,
764
772
  children: [
765
- L.trend >= 0 ? "+" : "",
766
- L.trend,
773
+ k.trend >= 0 ? "+" : "",
774
+ k.trend,
767
775
  "%",
768
776
  " ",
769
- /* @__PURE__ */ l("span", { className: L.trend >= 0 ? Te.arrowUp : Te.arrowDown })
777
+ /* @__PURE__ */ l("span", { className: k.trend >= 0 ? Te.arrowUp : Te.arrowDown })
770
778
  ]
771
779
  }
772
780
  )
773
781
  ] })
774
782
  ] })
775
- ] }, L.id))
783
+ ] }, k.id))
776
784
  }
777
785
  ), sa = "_container_16kne_1", ca = "_topLine_16kne_12", na = "_svgContainer_16kne_22", da = "_svg_16kne_22", ia = "_pathTransition_16kne_30", ha = "_ballContainer_16kne_33", pa = "_ball_16kne_33", ua = "_textContainer_16kne_51", ma = "_valueText_16kne_63", ya = "_labelText_16kne_69", Ve = {
778
786
  container: sa,
@@ -803,15 +811,15 @@ const be = (i) => {
803
811
  borderColor: v = "rgba(255,255,255,0.1)",
804
812
  style: S,
805
813
  topLineStyle: w,
806
- svgContainerStyle: k,
807
- svgStyle: L,
808
- ballContainerStyle: d,
809
- ballStyle: p,
810
- textContainerStyle: x,
814
+ svgContainerStyle: x,
815
+ svgStyle: k,
816
+ ballContainerStyle: p,
817
+ ballStyle: d,
818
+ textContainerStyle: L,
811
819
  valueTextStyle: _,
812
820
  labelTextStyle: T
813
821
  }) => {
814
- const z = Math.min(Math.max(i, 0), 100), $ = 100, F = 100, I = Math.PI * n, W = I * (1 - z / 100), N = E(() => `gauge-gradient-${Math.random().toString(36).substr(2, 9)}`, []);
822
+ const $ = Math.min(Math.max(i, 0), 100), z = 100, F = 100, I = Math.PI * n, W = I * (1 - $ / 100), N = E(() => `gauge-gradient-${Math.random().toString(36).substr(2, 9)}`, []);
815
823
  return /* @__PURE__ */ M(
816
824
  "div",
817
825
  {
@@ -836,8 +844,8 @@ const be = (i) => {
836
844
  }
837
845
  }
838
846
  ),
839
- /* @__PURE__ */ M("div", { className: Ve.svgContainer, style: k, children: [
840
- /* @__PURE__ */ M("svg", { width: "100%", height: "100%", viewBox: "0 0 200 110", className: Ve.svg, style: L, children: [
847
+ /* @__PURE__ */ M("div", { className: Ve.svgContainer, style: x, children: [
848
+ /* @__PURE__ */ M("svg", { width: "100%", height: "100%", viewBox: "0 0 200 110", className: Ve.svg, style: k, children: [
841
849
  /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ M("linearGradient", { id: N, x1: "0%", y1: "0%", x2: "100%", y2: "0%", children: [
842
850
  /* @__PURE__ */ l("stop", { offset: "0%", stopColor: "rgba(255,255,255,0.1)" }),
843
851
  /* @__PURE__ */ l("stop", { offset: "100%", stopColor: o })
@@ -845,7 +853,7 @@ const be = (i) => {
845
853
  /* @__PURE__ */ l(
846
854
  "path",
847
855
  {
848
- d: `M ${$ - n} ${F} A ${n} ${n} 0 0 1 ${$ + n} ${F}`,
856
+ d: `M ${z - n} ${F} A ${n} ${n} 0 0 1 ${z + n} ${F}`,
849
857
  fill: "none",
850
858
  stroke: t,
851
859
  strokeWidth: e,
@@ -855,7 +863,7 @@ const be = (i) => {
855
863
  /* @__PURE__ */ l(
856
864
  "path",
857
865
  {
858
- d: `M ${$ - n} ${F} A ${n} ${n} 0 0 1 ${$ + n} ${F}`,
866
+ d: `M ${z - n} ${F} A ${n} ${n} 0 0 1 ${z + n} ${F}`,
859
867
  fill: "none",
860
868
  stroke: `url(#${N})`,
861
869
  strokeWidth: e,
@@ -872,28 +880,28 @@ const be = (i) => {
872
880
  className: Ve.ballContainer,
873
881
  style: {
874
882
  // 初始状态:小球在左边 (180度)。我们让容器从 0度开始转,0度时小球在左边。
875
- transform: `rotate(${z / 100 * 180}deg)`,
876
- ...d
883
+ transform: `rotate(${$ / 100 * 180}deg)`,
884
+ ...p
877
885
  },
878
886
  children: /* @__PURE__ */ l(
879
887
  "div",
880
888
  {
881
889
  className: Ve.ball,
882
890
  style: {
883
- left: `${$ - n}px`,
891
+ left: `${z - n}px`,
884
892
  top: `${F}px`,
885
893
  width: `${s}px`,
886
894
  height: `${s}px`,
887
895
  boxShadow: `0 0 10px ${o}, 0 0 20px ${o}`,
888
896
  // 发光效果
889
- ...p
897
+ ...d
890
898
  }
891
899
  }
892
900
  )
893
901
  }
894
902
  ),
895
- /* @__PURE__ */ M("div", { className: Ve.textContainer, style: x, children: [
896
- /* @__PURE__ */ l("div", { className: Ve.valueText, style: { fontSize: u, ..._ }, children: z.toFixed(0) }),
903
+ /* @__PURE__ */ M("div", { className: Ve.textContainer, style: L, children: [
904
+ /* @__PURE__ */ l("div", { className: Ve.valueText, style: { fontSize: u, ..._ }, children: $.toFixed(0) }),
897
905
  /* @__PURE__ */ M("div", { className: Ve.labelText, style: T, children: [
898
906
  /* @__PURE__ */ l("span", { style: { fontSize: h }, children: b }),
899
907
  /* @__PURE__ */ l("span", { style: { fontSize: m, marginLeft: "4px" }, children: a })
@@ -1003,7 +1011,7 @@ const be = (i) => {
1003
1011
  centerConfig: r
1004
1012
  }) => {
1005
1013
  const n = Ae(null), [e, t] = ze(null), [s, u] = ze(/* @__PURE__ */ new Set()), h = (r == null ? void 0 : r.show) ?? !0, m = E(() => {
1006
- const d = (c == null ? void 0 : c.pieSeries) ?? {}, p = (c == null ? void 0 : c.outerRingSeries) ?? {}, x = Kt(d.itemStyle) ? d.itemStyle : {}, _ = Kt(p.itemStyle) ? p.itemStyle : {}, T = {
1014
+ const p = (c == null ? void 0 : c.pieSeries) ?? {}, d = (c == null ? void 0 : c.outerRingSeries) ?? {}, L = Kt(p.itemStyle) ? p.itemStyle : {}, _ = Kt(d.itemStyle) ? d.itemStyle : {}, T = {
1007
1015
  backgroundColor: "transparent",
1008
1016
  legend: { show: !1 },
1009
1017
  series: [
@@ -1012,20 +1020,20 @@ const be = (i) => {
1012
1020
  radius: ["58%", "75%"],
1013
1021
  center: ["50%", "50%"],
1014
1022
  padAngle: 2,
1015
- ...d,
1023
+ ...p,
1016
1024
  itemStyle: {
1017
1025
  borderRadius: 2,
1018
1026
  borderWidth: 4,
1019
- ...x
1027
+ ...L
1020
1028
  },
1021
1029
  label: { show: !1 },
1022
1030
  labelLine: { show: !1 },
1023
- data: i.map((z, $) => ({
1024
- name: z.name,
1025
- value: s.has($) ? 0 : z.value,
1031
+ data: i.map(($, z) => ({
1032
+ name: $.name,
1033
+ value: s.has(z) ? 0 : $.value,
1026
1034
  itemStyle: {
1027
- color: z.color,
1028
- opacity: s.has($) ? 0 : 1
1035
+ color: $.color,
1036
+ opacity: s.has(z) ? 0 : 1
1029
1037
  }
1030
1038
  })),
1031
1039
  emphasis: {
@@ -1039,7 +1047,7 @@ const be = (i) => {
1039
1047
  radius: ["83%", "85%"],
1040
1048
  center: ["50%", "50%"],
1041
1049
  silent: !0,
1042
- ...p,
1050
+ ...d,
1043
1051
  label: { show: !1 },
1044
1052
  labelLine: { show: !1 },
1045
1053
  itemStyle: {
@@ -1055,60 +1063,60 @@ const be = (i) => {
1055
1063
  ...T,
1056
1064
  ...c.option
1057
1065
  } : T;
1058
- }, [c, i, s]), y = (d) => {
1059
- var x;
1060
- if (s.has(d)) return;
1061
- t(d);
1062
- const p = (x = n.current) == null ? void 0 : x.getEchartsInstance();
1063
- p == null || p.dispatchAction({
1066
+ }, [c, i, s]), y = (p) => {
1067
+ var L;
1068
+ if (s.has(p)) return;
1069
+ t(p);
1070
+ const d = (L = n.current) == null ? void 0 : L.getEchartsInstance();
1071
+ d == null || d.dispatchAction({
1064
1072
  type: "highlight",
1065
1073
  seriesIndex: 0,
1066
- dataIndex: d
1074
+ dataIndex: p
1067
1075
  });
1068
1076
  }, v = () => {
1069
- var p;
1077
+ var d;
1070
1078
  t(null);
1071
- const d = (p = n.current) == null ? void 0 : p.getEchartsInstance();
1072
- d == null || d.dispatchAction({
1079
+ const p = (d = n.current) == null ? void 0 : d.getEchartsInstance();
1080
+ p == null || p.dispatchAction({
1073
1081
  type: "downplay",
1074
1082
  seriesIndex: 0
1075
1083
  });
1076
- }, S = (d) => {
1077
- u((p) => {
1078
- const x = new Set(p);
1079
- return x.has(d) ? x.delete(d) : x.add(d), x;
1084
+ }, S = (p) => {
1085
+ u((d) => {
1086
+ const L = new Set(d);
1087
+ return L.has(p) ? L.delete(p) : L.add(p), L;
1080
1088
  });
1081
1089
  }, w = E(
1082
1090
  () => ({
1083
- mouseover: (d) => {
1084
- d.seriesIndex !== 0 || d.dataIndex === void 0 || t(d.dataIndex);
1091
+ mouseover: (p) => {
1092
+ p.seriesIndex !== 0 || p.dataIndex === void 0 || t(p.dataIndex);
1085
1093
  },
1086
1094
  mouseout: () => {
1087
1095
  t(null);
1088
1096
  },
1089
- click: (d) => {
1090
- d.seriesIndex !== 0 || d.dataIndex === void 0 || S(d.dataIndex);
1097
+ click: (p) => {
1098
+ p.seriesIndex !== 0 || p.dataIndex === void 0 || S(p.dataIndex);
1091
1099
  }
1092
1100
  }),
1093
1101
  []
1094
- ), k = (d, p) => {
1095
- const x = e === p, _ = s.has(p);
1102
+ ), x = (p, d) => {
1103
+ const L = e === d, _ = s.has(d);
1096
1104
  return {
1097
- item: d,
1098
- index: p,
1099
- active: x,
1105
+ item: p,
1106
+ index: d,
1107
+ active: L,
1100
1108
  hidden: _,
1101
- dimmed: e !== null && !x && !_
1109
+ dimmed: e !== null && !L && !_
1102
1110
  };
1103
- }, L = (d) => Ee(
1111
+ }, k = (p) => Ee(
1104
1112
  Fe.legendItem,
1105
1113
  a == null ? void 0 : a.legendItem,
1106
- d.active && Fe.legendItemActive,
1107
- d.active && (a == null ? void 0 : a.legendItemActive),
1108
- d.hidden && Fe.legendItemHidden,
1109
- d.hidden && (a == null ? void 0 : a.legendItemHidden),
1110
- d.dimmed && Fe.legendItemDimmed,
1111
- d.dimmed && (a == null ? void 0 : a.legendItemDimmed)
1114
+ p.active && Fe.legendItemActive,
1115
+ p.active && (a == null ? void 0 : a.legendItemActive),
1116
+ p.hidden && Fe.legendItemHidden,
1117
+ p.hidden && (a == null ? void 0 : a.legendItemHidden),
1118
+ p.dimmed && Fe.legendItemDimmed,
1119
+ p.dimmed && (a == null ? void 0 : a.legendItemDimmed)
1112
1120
  );
1113
1121
  return /* @__PURE__ */ M(
1114
1122
  "div",
@@ -1180,20 +1188,20 @@ const be = (i) => {
1180
1188
  flexDirection: "column",
1181
1189
  marginTop: 15
1182
1190
  },
1183
- children: i.map((d, p) => {
1184
- const x = k(d, p);
1191
+ children: i.map((p, d) => {
1192
+ const L = x(p, d);
1185
1193
  return /* @__PURE__ */ M(
1186
1194
  "div",
1187
1195
  {
1188
1196
  role: "button",
1189
1197
  tabIndex: 0,
1190
- className: L(x),
1191
- style: Lt(o == null ? void 0 : o.legendItem, x),
1192
- onMouseEnter: () => y(p),
1198
+ className: k(L),
1199
+ style: Lt(o == null ? void 0 : o.legendItem, L),
1200
+ onMouseEnter: () => y(d),
1193
1201
  onMouseLeave: v,
1194
- onClick: () => S(p),
1202
+ onClick: () => S(d),
1195
1203
  onKeyDown: (_) => {
1196
- (_.key === "Enter" || _.key === " ") && S(p);
1204
+ (_.key === "Enter" || _.key === " ") && S(d);
1197
1205
  },
1198
1206
  children: [
1199
1207
  /* @__PURE__ */ l(
@@ -1201,8 +1209,8 @@ const be = (i) => {
1201
1209
  {
1202
1210
  className: Ee(Fe.legendDot, a == null ? void 0 : a.legendDot),
1203
1211
  style: {
1204
- "--inspection-pie-color": d.color,
1205
- ...Lt(o == null ? void 0 : o.legendDot, x)
1212
+ "--inspection-pie-color": p.color,
1213
+ ...Lt(o == null ? void 0 : o.legendDot, L)
1206
1214
  }
1207
1215
  }
1208
1216
  ),
@@ -1210,18 +1218,18 @@ const be = (i) => {
1210
1218
  "span",
1211
1219
  {
1212
1220
  className: Ee(Fe.legendName, a == null ? void 0 : a.legendName),
1213
- style: Lt(o == null ? void 0 : o.legendName, x),
1214
- title: d.name,
1215
- children: d.name
1221
+ style: Lt(o == null ? void 0 : o.legendName, L),
1222
+ title: p.name,
1223
+ children: p.name
1216
1224
  }
1217
1225
  ),
1218
1226
  /* @__PURE__ */ M(
1219
1227
  "span",
1220
1228
  {
1221
1229
  className: Ee(Fe.legendValue, a == null ? void 0 : a.legendValue),
1222
- style: Lt(o == null ? void 0 : o.legendValue, x),
1230
+ style: Lt(o == null ? void 0 : o.legendValue, L),
1223
1231
  children: [
1224
- d.value,
1232
+ p.value,
1225
1233
  b
1226
1234
  ]
1227
1235
  }
@@ -1230,13 +1238,13 @@ const be = (i) => {
1230
1238
  "span",
1231
1239
  {
1232
1240
  className: Ee(Fe.legendPercent, a == null ? void 0 : a.legendPercent),
1233
- style: Lt(o == null ? void 0 : o.legendPercent, x),
1234
- children: d.pct
1241
+ style: Lt(o == null ? void 0 : o.legendPercent, L),
1242
+ children: p.pct
1235
1243
  }
1236
1244
  )
1237
1245
  ]
1238
1246
  },
1239
- d.name
1247
+ p.name
1240
1248
  );
1241
1249
  })
1242
1250
  }
@@ -1273,7 +1281,7 @@ const be = (i) => {
1273
1281
  highlightStyle: S,
1274
1282
  textStyle: w
1275
1283
  }) => {
1276
- const k = Math.min(Math.max(i, 0), 100), L = s !== void 0 ? s : 200 - k;
1284
+ const x = Math.min(Math.max(i, 0), 100), k = s !== void 0 ? s : 200 - x;
1277
1285
  return /* @__PURE__ */ M(
1278
1286
  "div",
1279
1287
  {
@@ -1295,10 +1303,10 @@ const be = (i) => {
1295
1303
  "div",
1296
1304
  {
1297
1305
  className: `${rt["liquid-wave"]} ${rt.back}`,
1298
- style: { top: `${L}%`, ...y }
1306
+ style: { top: `${k}%`, ...y }
1299
1307
  }
1300
1308
  ),
1301
- /* @__PURE__ */ l("div", { className: rt["liquid-wave"], style: { top: `${L}%`, ...m } }),
1309
+ /* @__PURE__ */ l("div", { className: rt["liquid-wave"], style: { top: `${k}%`, ...m } }),
1302
1310
  /* @__PURE__ */ l("div", { className: rt["gauge-glass"], style: v }),
1303
1311
  /* @__PURE__ */ l("div", { className: rt["gauge-highlight"], style: S })
1304
1312
  ] }),
@@ -1308,7 +1316,7 @@ const be = (i) => {
1308
1316
  className: rt["gauge-text"],
1309
1317
  style: { fontSize: c || o * 0.25, ...w },
1310
1318
  children: [
1311
- k,
1319
+ x,
1312
1320
  "%"
1313
1321
  ]
1314
1322
  }
@@ -1343,22 +1351,22 @@ const be = (i) => {
1343
1351
  valueWrapperStyle: v,
1344
1352
  valueStyle: S,
1345
1353
  unitStyle: w,
1346
- peakSvgStyle: k,
1347
- bottomLabelStyle: L,
1348
- baseHeight: d = 55,
1349
- maxHeightRange: p = 45
1354
+ peakSvgStyle: x,
1355
+ bottomLabelStyle: k,
1356
+ baseHeight: p = 55,
1357
+ maxHeightRange: d = 45
1350
1358
  }) => {
1351
- const x = E(() => `peak-gradient-${Math.random().toString(36).substr(2, 9)}`, []), _ = E(() => {
1359
+ const L = E(() => `peak-gradient-${Math.random().toString(36).substr(2, 9)}`, []), _ = E(() => {
1352
1360
  let T = 0;
1353
1361
  if (typeof r == "number")
1354
1362
  T = Math.min(Math.max(r / 100, 0), 1);
1355
1363
  else {
1356
- const $ = typeof o == "number" ? o : parseFloat(String(o)) || 0;
1357
- T = Math.min(Math.max($ / c, 0), 1);
1364
+ const z = typeof o == "number" ? o : parseFloat(String(o)) || 0;
1365
+ T = Math.min(Math.max(z / c, 0), 1);
1358
1366
  }
1359
- const z = d - p * T;
1360
- return `M0 60 L0 ${d} Q 30 ${d}, 50 ${z} Q 70 ${d}, 100 ${d} L 100 60 Z`;
1361
- }, [o, c, r, d, p]);
1367
+ const $ = p - d * T;
1368
+ return `M0 60 L0 ${p} Q 30 ${p}, 50 ${$} Q 70 ${p}, 100 ${p} L 100 60 Z`;
1369
+ }, [o, c, r, p, d]);
1362
1370
  return /* @__PURE__ */ M(
1363
1371
  "div",
1364
1372
  {
@@ -1368,7 +1376,7 @@ const be = (i) => {
1368
1376
  "--peak-card-border-color": `color-mix(in srgb, ${i}, transparent 50%)`,
1369
1377
  "--peak-card-bg-color": `color-mix(in srgb, ${i}, transparent 90%)`,
1370
1378
  "--peak-card-shadow-color": `color-mix(in srgb, ${i}, transparent 40%)`,
1371
- "--peak-gradient-url": `url(#${x})`,
1379
+ "--peak-gradient-url": `url(#${L})`,
1372
1380
  ...h
1373
1381
  },
1374
1382
  children: [
@@ -1384,9 +1392,9 @@ const be = (i) => {
1384
1392
  className: at.peakSvg,
1385
1393
  viewBox: "0 0 100 60",
1386
1394
  preserveAspectRatio: "none",
1387
- style: k,
1395
+ style: x,
1388
1396
  children: [
1389
- /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ M("linearGradient", { id: x, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [
1397
+ /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ M("linearGradient", { id: L, x1: "0%", y1: "0%", x2: "0%", y2: "100%", children: [
1390
1398
  /* @__PURE__ */ l("stop", { offset: "0%", stopColor: i, stopOpacity: "0.6" }),
1391
1399
  /* @__PURE__ */ l("stop", { offset: "100%", stopColor: i, stopOpacity: "0" })
1392
1400
  ] }) }),
@@ -1395,7 +1403,7 @@ const be = (i) => {
1395
1403
  {
1396
1404
  d: _,
1397
1405
  stroke: i,
1398
- fill: `url(#${x})`,
1406
+ fill: `url(#${L})`,
1399
1407
  strokeWidth: "2",
1400
1408
  vectorEffect: "non-scaling-stroke",
1401
1409
  style: { transition: "all 0.5s ease-out" }
@@ -1409,7 +1417,7 @@ const be = (i) => {
1409
1417
  "div",
1410
1418
  {
1411
1419
  className: at.bottomLabel,
1412
- style: { fontSize: u, ...L },
1420
+ style: { fontSize: u, ...k },
1413
1421
  children: a
1414
1422
  }
1415
1423
  )
@@ -1453,19 +1461,19 @@ const be = (i) => {
1453
1461
  areaGradients: h = {}
1454
1462
  }) => {
1455
1463
  const m = lr(() => {
1456
- const y = Array.from({ length: 24 }, (z, $) => `${$.toString().padStart(2, "0")}:00`), v = (z) => {
1457
- for (const [$, F] of Object.entries(b))
1464
+ const y = Array.from({ length: 24 }, ($, z) => `${z.toString().padStart(2, "0")}:00`), v = ($) => {
1465
+ for (const [z, F] of Object.entries(b))
1458
1466
  for (const [I, W] of F.timeRanges)
1459
- if (z >= I && z < W)
1460
- return $;
1467
+ if ($ >= I && $ < W)
1468
+ return z;
1461
1469
  return Object.keys(b)[0] || "";
1462
- }, S = i ? y.map((z) => {
1463
- const $ = i.find((F) => F.time === z);
1464
- return $ ? $.value : null;
1465
- }) : y.map((z, $) => $ < 6 ? +(60 + Math.random() * 20).toFixed(1) : $ < 8 ? +(100 + ($ - 6) * 20 + Math.random() * 15).toFixed(1) : $ < 10 ? +(150 + Math.random() * 30).toFixed(1) : $ < 17 ? +(110 + Math.random() * 20).toFixed(1) : $ < 21 ? +(130 + Math.random() * 25).toFixed(1) : +(80 - ($ - 21) * 5 + Math.random() * 15).toFixed(1)), w = (z) => S.map(($, F) => {
1470
+ }, S = i ? y.map(($) => {
1471
+ const z = i.find((F) => F.time === $);
1472
+ return z ? z.value : null;
1473
+ }) : y.map(($, z) => z < 6 ? +(60 + Math.random() * 20).toFixed(1) : z < 8 ? +(100 + (z - 6) * 20 + Math.random() * 15).toFixed(1) : z < 10 ? +(150 + Math.random() * 30).toFixed(1) : z < 17 ? +(110 + Math.random() * 20).toFixed(1) : z < 21 ? +(130 + Math.random() * 25).toFixed(1) : +(80 - (z - 21) * 5 + Math.random() * 15).toFixed(1)), w = ($) => S.map((z, F) => {
1466
1474
  const I = v(F), W = F > 0 ? v(F - 1) : I;
1467
- return I === z || W === z && I !== z ? $ : null;
1468
- }), k = Math.max(...S.filter((z) => z != null)), d = (Math.ceil(k / 50) * 50 + 50) / 4, p = Array.isArray(e) ? e[0] : e, x = (p == null ? void 0 : p.interval) ?? d, _ = Array.isArray(c) ? c[0] : c, T = (_ == null ? void 0 : _.show) ?? !0;
1475
+ return I === $ || W === $ && I !== $ ? z : null;
1476
+ }), x = Math.max(...S.filter(($) => $ != null)), p = (Math.ceil(x / 50) * 50 + 50) / 4, d = Array.isArray(e) ? e[0] : e, L = (d == null ? void 0 : d.interval) ?? p, _ = Array.isArray(c) ? c[0] : c, T = (_ == null ? void 0 : _.show) ?? !0;
1469
1477
  return {
1470
1478
  animation: s,
1471
1479
  grid: {
@@ -1477,10 +1485,10 @@ const be = (i) => {
1477
1485
  ...o
1478
1486
  },
1479
1487
  legend: T ? {
1480
- data: Object.values(b).map((z) => ({
1481
- name: z.name,
1482
- itemStyle: { color: z.color },
1483
- lineStyle: { color: z.color, width: 2 }
1488
+ data: Object.values(b).map(($) => ({
1489
+ name: $.name,
1490
+ itemStyle: { color: $.color },
1491
+ lineStyle: { color: $.color, width: 2 }
1484
1492
  })),
1485
1493
  top: "5%",
1486
1494
  right: "5%",
@@ -1501,9 +1509,9 @@ const be = (i) => {
1501
1509
  color: "#fff",
1502
1510
  fontSize: 12
1503
1511
  },
1504
- formatter: (z) => {
1505
- const $ = y.indexOf(z[0].axisValue), F = v($), I = b[F].color, W = b[F].name, N = z.map((P) => P.value).find((P) => P != null);
1506
- return N == null ? "" : `<span style="color:'#fff';font-size:11px">${z[0].axisValue}</span><br/><span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${I};margin-right:5px;vertical-align:middle;"></span><b style="color:${I}">${W}</b>: <b>${N} ${u}</b>`;
1512
+ formatter: ($) => {
1513
+ const z = y.indexOf($[0].axisValue), F = v(z), I = b[F].color, W = b[F].name, N = $.map((P) => P.value).find((P) => P != null);
1514
+ return N == null ? "" : `<span style="color:'#fff';font-size:11px">${$[0].axisValue}</span><br/><span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${I};margin-right:5px;vertical-align:middle;"></span><b style="color:${I}">${W}</b>: <b>${N} ${u}</b>`;
1507
1515
  },
1508
1516
  ...r
1509
1517
  },
@@ -1532,7 +1540,7 @@ const be = (i) => {
1532
1540
  },
1533
1541
  yAxis: {
1534
1542
  type: "value",
1535
- interval: x,
1543
+ interval: L,
1536
1544
  axisLine: {
1537
1545
  show: !1
1538
1546
  },
@@ -1548,25 +1556,25 @@ const be = (i) => {
1548
1556
  },
1549
1557
  ...e
1550
1558
  },
1551
- series: Object.entries(b).map(([z, $], F) => {
1552
- const I = h == null ? void 0 : h[z], W = I ? {
1559
+ series: Object.entries(b).map(([$, z], F) => {
1560
+ const I = h == null ? void 0 : h[$], W = I ? {
1553
1561
  color: new le.graphic.LinearGradient(0, 0, 0, 1, [
1554
1562
  { offset: 0, color: I.from },
1555
1563
  { offset: 1, color: I.to }
1556
1564
  ])
1557
1565
  } : {
1558
- color: $.color,
1566
+ color: z.color,
1559
1567
  opacity: 0.07
1560
1568
  };
1561
1569
  return {
1562
- name: $.name,
1570
+ name: z.name,
1563
1571
  type: "line",
1564
- data: w(z),
1572
+ data: w($),
1565
1573
  connectNulls: !1,
1566
1574
  smooth: !0,
1567
1575
  symbol: "none",
1568
1576
  lineStyle: {
1569
- color: $.color,
1577
+ color: z.color,
1570
1578
  width: 2.5,
1571
1579
  ...(t == null ? void 0 : t.lineStyle) || {}
1572
1580
  },
@@ -1699,7 +1707,7 @@ function ft(i, b) {
1699
1707
  };
1700
1708
  }
1701
1709
  function ro(i, b) {
1702
- const a = [], o = [], c = i.reduce((H, G) => H + G.val, 0), r = (1 - b.innerRatio) / (1 + b.innerRatio), n = b.sliceHeightConfig || {}, e = n.baseHeight ?? 10, t = n.step ?? 3, s = b.baseConfig || {}, u = s.baseR1 ?? 2.8, h = s.baseH1Min ?? -1.8, m = s.baseH1Max ?? -0.5, y = s.baseR2 ?? 2.5, v = s.baseH2Min ?? -1.8, S = s.baseH2Max ?? 0, w = s.ringRadius ?? 2.2, k = s.ringTubeRadius ?? 0.02, L = s.ringWaveHeight ?? 0.06, d = s.ringCenterZ ?? 4.8, p = s.bottomSideColor ?? "#0B1638", x = s.bottomTopColor ?? "#102246", _ = s.topSideColor ?? "#163065", T = s.topTopColor ?? "#1B3B7A", z = s.ringColor ?? "#00D1FF", $ = b.guideLineConfig || {}, F = $.rStart ?? 1.2, I = $.rTurn ?? 2.2, W = $.riseZ ?? 2.5, N = $.endOffset ?? 0.8, P = $.lineWidth ?? 1, B = $.lineColor ?? "#FFFFFF", O = $.lineOpacity ?? 1, R = b.labelConfig || {}, re = R.nameColor ?? "#4CA4E6", de = R.nameFontSize ?? 14, ie = R.percentColor ?? "#FFFFFF", J = R.percentFontSize ?? 12, ve = b.defaultItemColor ?? "#0000FF";
1710
+ const a = [], o = [], c = i.reduce((H, G) => H + G.val, 0), r = (1 - b.innerRatio) / (1 + b.innerRatio), n = b.sliceHeightConfig || {}, e = n.baseHeight ?? 10, t = n.step ?? 3, s = b.baseConfig || {}, u = s.baseR1 ?? 2.8, h = s.baseH1Min ?? -1.8, m = s.baseH1Max ?? -0.5, y = s.baseR2 ?? 2.5, v = s.baseH2Min ?? -1.8, S = s.baseH2Max ?? 0, w = s.ringRadius ?? 2.2, x = s.ringTubeRadius ?? 0.02, k = s.ringWaveHeight ?? 0.06, p = s.ringCenterZ ?? 4.8, d = s.bottomSideColor ?? "#0B1638", L = s.bottomTopColor ?? "#102246", _ = s.topSideColor ?? "#163065", T = s.topTopColor ?? "#1B3B7A", $ = s.ringColor ?? "#00D1FF", z = b.guideLineConfig || {}, F = z.rStart ?? 1.2, I = z.rTurn ?? 2.2, W = z.riseZ ?? 2.5, N = z.endOffset ?? 0.8, P = z.lineWidth ?? 1, B = z.lineColor ?? "#FFFFFF", O = z.lineOpacity ?? 1, R = b.labelConfig || {}, re = R.nameColor ?? "#4CA4E6", de = R.nameFontSize ?? 14, ie = R.percentColor ?? "#FFFFFF", J = R.percentFontSize ?? 12, ve = b.defaultItemColor ?? "#0000FF";
1703
1711
  let U = 0;
1704
1712
  return i.forEach((H, G) => {
1705
1713
  var _e;
@@ -1825,7 +1833,7 @@ function ro(i, b) {
1825
1833
  type: "surface",
1826
1834
  parametric: !0,
1827
1835
  wireframe: { show: !1 },
1828
- itemStyle: { color: p, opacity: 0.9 },
1836
+ itemStyle: { color: d, opacity: 0.9 },
1829
1837
  parametricEquation: Jt(u, h, m),
1830
1838
  silent: !0
1831
1839
  },
@@ -1834,7 +1842,7 @@ function ro(i, b) {
1834
1842
  type: "surface",
1835
1843
  parametric: !0,
1836
1844
  wireframe: { show: !1 },
1837
- itemStyle: { color: x, opacity: 0.9 },
1845
+ itemStyle: { color: L, opacity: 0.9 },
1838
1846
  parametricEquation: ft(u, m),
1839
1847
  silent: !0
1840
1848
  }
@@ -1863,7 +1871,7 @@ function ro(i, b) {
1863
1871
  parametric: !0,
1864
1872
  wireframe: { show: !1 },
1865
1873
  itemStyle: {
1866
- color: z,
1874
+ color: $,
1867
1875
  opacity: 1
1868
1876
  },
1869
1877
  shading: "color",
@@ -1871,13 +1879,13 @@ function ro(i, b) {
1871
1879
  u: { min: 0, max: Math.PI * 2, step: Math.PI / 60 },
1872
1880
  v: { min: 0, max: Math.PI * 2, step: Math.PI / 40 },
1873
1881
  x(H, G) {
1874
- return (w + k * Math.cos(G)) * Math.cos(H);
1882
+ return (w + x * Math.cos(G)) * Math.cos(H);
1875
1883
  },
1876
1884
  y(H, G) {
1877
- return (w + k * Math.cos(G)) * Math.sin(H);
1885
+ return (w + x * Math.cos(G)) * Math.sin(H);
1878
1886
  },
1879
1887
  z(H, G) {
1880
- return L * Math.sin(G) + d;
1888
+ return k * Math.sin(G) + p;
1881
1889
  }
1882
1890
  },
1883
1891
  silent: !0
@@ -1938,11 +1946,11 @@ const ao = [
1938
1946
  min: -5,
1939
1947
  max: 5,
1940
1948
  ...(a == null ? void 0 : a.yAxis3D) || {}
1941
- }, k = {
1949
+ }, x = {
1942
1950
  min: -5,
1943
1951
  max: 8,
1944
1952
  ...(a == null ? void 0 : a.zAxis3D) || {}
1945
- }, L = {
1953
+ }, k = {
1946
1954
  boxHeight: 20,
1947
1955
  viewControl: {
1948
1956
  distance: 70,
@@ -1972,16 +1980,16 @@ const ao = [
1972
1980
  enable: !1
1973
1981
  }
1974
1982
  }
1975
- }, d = {
1983
+ }, p = {
1976
1984
  show: !1,
1977
- ...L,
1985
+ ...k,
1978
1986
  ...o,
1979
1987
  viewControl: {
1980
- ...L.viewControl,
1988
+ ...k.viewControl,
1981
1989
  ...(o == null ? void 0 : o.viewControl) || {}
1982
1990
  },
1983
1991
  postEffect: {
1984
- ...L.postEffect,
1992
+ ...k.postEffect,
1985
1993
  ...(o == null ? void 0 : o.postEffect) || {}
1986
1994
  }
1987
1995
  };
@@ -1989,8 +1997,8 @@ const ao = [
1989
1997
  tooltip: { show: !1, ...t || {} },
1990
1998
  xAxis3D: S,
1991
1999
  yAxis3D: w,
1992
- zAxis3D: k,
1993
- grid3D: d,
2000
+ zAxis3D: x,
2001
+ grid3D: p,
1994
2002
  series: ro(i, {
1995
2003
  innerRatio: b,
1996
2004
  baseConfig: c,
@@ -2047,10 +2055,10 @@ const ao = [
2047
2055
  showTrack: h = !1,
2048
2056
  layoutConfig: m
2049
2057
  }) => {
2050
- const y = Ae(null), v = Ae(null), S = Ae(void 0), w = Ae([]), k = Ae([]), L = Ae(null), [d, p] = ze([]), [x, _] = ze([]), [T, z] = ze(null), [$, F] = ze({
2058
+ const y = Ae(null), v = Ae(null), S = Ae(void 0), w = Ae([]), x = Ae([]), k = Ae(null), [p, d] = ze([]), [L, _] = ze([]), [T, $] = ze(null), [z, F] = ze({
2051
2059
  ...gt,
2052
2060
  ...m
2053
- }), I = n ? $ : { ...gt, ...m }, W = (U) => (H) => F((G) => ({ ...G, [U]: H })), N = E(
2061
+ }), I = n ? z : { ...gt, ...m }, W = (U) => (H) => F((G) => ({ ...G, [U]: H })), N = E(
2054
2062
  () => a || [
2055
2063
  { name: "一车间", rank: "TOP1", value: 162 },
2056
2064
  { name: "二车间", rank: "TOP2", value: 250 },
@@ -2085,40 +2093,40 @@ const ao = [
2085
2093
  const ut = q - 1 - ue, st = _e + (ut + 0.5) * Z, Be = Z - Je, et = P[ue % P.length];
2086
2094
  h && (D.save(), D.strokeStyle = Re, D.lineWidth = Be, D.lineCap = "round", D.beginPath(), D.arc(Le, ke, st, Qe(oe), Qe(me), !0), D.stroke(), D.restore());
2087
2095
  const ct = U[ue] / B * we * 2.37, tt = oe - ct, Ge = new Path2D();
2088
- Ge.arc(Le, ke, st, Qe(oe), Qe(tt), !0), D.save(), D.strokeStyle = et, D.lineWidth = L.current === ue ? Be + 2 : Be, D.lineCap = "round", D.globalAlpha = L.current === null || L.current === ue ? 1 : 0.2, L.current === ue && (D.shadowColor = et, D.shadowBlur = 10), D.stroke(Ge), D.restore(), pt.push({ arcPath: Ge, arcWidth: Math.max(Be + 10, 12) });
2096
+ Ge.arc(Le, ke, st, Qe(oe), Qe(tt), !0), D.save(), D.strokeStyle = et, D.lineWidth = k.current === ue ? Be + 2 : Be, D.lineCap = "round", D.globalAlpha = k.current === null || k.current === ue ? 1 : 0.2, k.current === ue && (D.shadowColor = et, D.shadowBlur = 10), D.stroke(Ge), D.restore(), pt.push({ arcPath: Ge, arcWidth: Math.max(Be + 10, 12) });
2089
2097
  });
2090
2098
  const $t = ke + _e * Math.sin(Qe(oe)) - pe * ce, Ft = ke + xe * Math.sin(Qe(oe)) + pe * ce;
2091
2099
  D.save(), D.strokeStyle = "#ffffff", D.lineWidth = 1, D.setLineDash([]), D.beginPath(), D.moveTo(Ce, $t), D.lineTo(Ce, Ft), D.stroke(), D.restore();
2092
2100
  const wt = [];
2093
2101
  N.forEach((Mt, ue) => {
2094
2102
  const ut = q - 1 - ue, st = _e + (ut + 0.5) * Z, Be = P[ue % P.length], et = st + ge, ct = Le + et * Math.cos(Qe(oe)), tt = ke + et * Math.sin(Qe(oe)), Ge = ot + ue * (He + ae * ce) + He / 2, _t = lt + ue * Ie, Ze = new Path2D();
2095
- Ze.moveTo(Math.max(ct, Ce), tt), Ze.lineTo(_t, tt), Ze.lineTo(_t, Ge), Ze.lineTo(ee - 6, Ge), D.save(), D.beginPath(), D.rect(Ce, 0, X, Q), D.clip(), D.strokeStyle = Be, D.lineWidth = L.current === ue ? 2.5 : 1.5, D.setLineDash([3, 4]), D.globalAlpha = L.current === null || L.current === ue ? 0.9 : 0.18, L.current === ue && (D.shadowColor = Be, D.shadowBlur = 8), D.stroke(Ze), D.restore(), D.save(), D.beginPath(), D.rect(Ce, 0, X, Q), D.clip(), D.fillStyle = Be, D.globalAlpha = L.current === null || L.current === ue ? 1 : 0.2, D.beginPath(), D.arc(ct, tt, 3, 0, Math.PI * 2), D.fill(), D.restore(), wt.push({ x: ee, y: Ge, color: Be }), pt[ue].connectorPath = Ze;
2096
- }), k.current = pt, _(wt);
2103
+ Ze.moveTo(Math.max(ct, Ce), tt), Ze.lineTo(_t, tt), Ze.lineTo(_t, Ge), Ze.lineTo(ee - 6, Ge), D.save(), D.beginPath(), D.rect(Ce, 0, X, Q), D.clip(), D.strokeStyle = Be, D.lineWidth = k.current === ue ? 2.5 : 1.5, D.setLineDash([3, 4]), D.globalAlpha = k.current === null || k.current === ue ? 0.9 : 0.18, k.current === ue && (D.shadowColor = Be, D.shadowBlur = 8), D.stroke(Ze), D.restore(), D.save(), D.beginPath(), D.rect(Ce, 0, X, Q), D.clip(), D.fillStyle = Be, D.globalAlpha = k.current === null || k.current === ue ? 1 : 0.2, D.beginPath(), D.arc(ct, tt, 3, 0, Math.PI * 2), D.fill(), D.restore(), wt.push({ x: ee, y: Ge, color: Be }), pt[ue].connectorPath = Ze;
2104
+ }), x.current = pt, _(wt);
2097
2105
  },
2098
2106
  [N, P, B, s, u, h]
2099
2107
  );
2100
2108
  kt(() => {
2101
2109
  w.current.length > 0 && O(w.current, I);
2102
- }, [$]), kt(() => {
2110
+ }, [z]), kt(() => {
2103
2111
  w.current.length === 0 && (w.current = N.map(() => 0));
2104
2112
  const U = N.map((X) => X.value), H = [...w.current], G = Date.now(), Y = 800, D = () => {
2105
2113
  const X = Date.now() - G, Q = Math.min(X / Y, 1), f = 1 - Math.pow(1 - Q, 3), g = H.map((Se, he) => Se + (U[he] - Se) * f);
2106
- w.current = g, p([...g]), O(g, I), Q < 1 && (S.current = requestAnimationFrame(D));
2114
+ w.current = g, d([...g]), O(g, I), Q < 1 && (S.current = requestAnimationFrame(D));
2107
2115
  };
2108
2116
  return D(), () => {
2109
2117
  S.current && cancelAnimationFrame(S.current);
2110
2118
  };
2111
2119
  }, [N, O]);
2112
2120
  const R = (t == null ? void 0 : t.rank) || 13, re = (t == null ? void 0 : t.name) || 13, de = (t == null ? void 0 : t.value) || 13, ie = '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', J = (U) => {
2113
- L.current !== U && (L.current = U, z(U), w.current.length > 0 && O(w.current, I));
2121
+ k.current !== U && (k.current = U, $(U), w.current.length > 0 && O(w.current, I));
2114
2122
  }, ve = (U) => {
2115
2123
  const H = y.current, G = H == null ? void 0 : H.getContext("2d");
2116
2124
  if (!H || !G) return;
2117
2125
  const Y = H.getBoundingClientRect(), D = (U.clientX - Y.left) * H.clientWidth / Y.width, X = (U.clientY - Y.top) * H.clientHeight / Y.height;
2118
2126
  let Q = null;
2119
2127
  G.save(), G.setTransform(1, 0, 0, 1, 0, 0), G.setLineDash([]);
2120
- for (let f = k.current.length - 1; f >= 0; f -= 1) {
2121
- const g = k.current[f];
2128
+ for (let f = x.current.length - 1; f >= 0; f -= 1) {
2129
+ const g = x.current[f];
2122
2130
  G.lineWidth = g.arcWidth;
2123
2131
  const Se = G.isPointInStroke(g.arcPath, D, X);
2124
2132
  G.lineWidth = 10;
@@ -2159,9 +2167,9 @@ const ao = [
2159
2167
  }
2160
2168
  ),
2161
2169
  N.map((U, H) => {
2162
- const G = x[H];
2170
+ const G = L[H];
2163
2171
  if (!G) return null;
2164
- const Y = `${Math.round(d[H] ?? 0)} ${o}`;
2172
+ const Y = `${Math.round(p[H] ?? 0)} ${o}`;
2165
2173
  return /* @__PURE__ */ M(
2166
2174
  "div",
2167
2175
  {
@@ -2239,7 +2247,7 @@ const ao = [
2239
2247
  xt,
2240
2248
  {
2241
2249
  label: "主干偏移",
2242
- value: $.trunkOff,
2250
+ value: z.trunkOff,
2243
2251
  min: 0,
2244
2252
  max: 120,
2245
2253
  onChange: W("trunkOff")
@@ -2249,7 +2257,7 @@ const ao = [
2249
2257
  xt,
2250
2258
  {
2251
2259
  label: "错开间距",
2252
- value: $.spread,
2260
+ value: z.spread,
2253
2261
  min: -20,
2254
2262
  max: 20,
2255
2263
  onChange: W("spread")
@@ -2259,7 +2267,7 @@ const ao = [
2259
2267
  xt,
2260
2268
  {
2261
2269
  label: "R偏移",
2262
- value: $.rOff,
2270
+ value: z.rOff,
2263
2271
  min: -20,
2264
2272
  max: 20,
2265
2273
  onChange: W("rOff")
@@ -2269,7 +2277,7 @@ const ao = [
2269
2277
  xt,
2270
2278
  {
2271
2279
  label: "legend间距",
2272
- value: $.legGap,
2280
+ value: z.legGap,
2273
2281
  min: 12,
2274
2282
  max: 36,
2275
2283
  onChange: W("legGap")
@@ -2279,7 +2287,7 @@ const ao = [
2279
2287
  xt,
2280
2288
  {
2281
2289
  label: "参考线偏移",
2282
- value: $.refLineOffset,
2290
+ value: z.refLineOffset,
2283
2291
  min: 0,
2284
2292
  max: 120,
2285
2293
  onChange: W("refLineOffset")
@@ -2421,16 +2429,16 @@ const Us = ({
2421
2429
  const m = rr().replace(/:/g, ""), { layers: y, totalHeight: v, pyramidRadius: S } = E(
2422
2430
  () => co(i, b),
2423
2431
  [i, b]
2424
- ), w = r || {}, k = Ct(w.overlayTopPercent, 24), L = Math.max(
2425
- k + 1,
2432
+ ), w = r || {}, x = Ct(w.overlayTopPercent, 24), k = Math.max(
2433
+ x + 1,
2426
2434
  Ct(w.overlayBottomPercent, 72)
2427
- ), d = E(() => {
2435
+ ), p = E(() => {
2428
2436
  const j = Math.max(v, 1);
2429
2437
  return y.map((V) => ({
2430
2438
  ...V,
2431
- top: `${L - V.midZ / j * (L - k)}%`
2439
+ top: `${k - V.midZ / j * (k - x)}%`
2432
2440
  }));
2433
- }, [y, L, k, v]), p = c || {}, x = St(p.startX, "27%"), _ = St(p.endX, "46%"), T = io(p.startX, p.endX, 0.68, "38.92%"), z = no(p.endX, "46%"), $ = p.lineColor ?? "#FFFFFF", F = p.lineWidth ?? 1, I = p.lineOpacity ?? 0.6, W = p.lineType ?? "dashed", N = w.midNameColor ?? "#fff", P = w.midNameFontSize ?? 8, B = w.rightLabelText ?? "电损量", O = w.showRightDeviceId ?? !0, R = w.showRightPercent ?? !0, re = w.rightLabelColor ?? "#fff", de = w.rightLabelFontSize ?? 10, ie = w.rightPercentColor ?? "#00D9E1", J = w.rightPercentFontSize ?? 10, ve = w.rightValueColor ?? "#fff", U = w.rightValueFontSize ?? 10, H = w.rightUnitColor ?? "#fff", G = w.rightUnitFontSize ?? 10, Y = w.rightDeviceIdColor ?? "#00D9E1", D = w.rightDeviceIdFontSize ?? 8, X = w.rightBlockBgColor ?? "rgba(0, 50, 100, 0.6)", Q = w.rightBlockBorderColor ?? "#00D9E1", f = St(w.rightBlockMinWidth, "32px"), g = St(w.rightBlockHeight, "22px"), Se = St(w.rightBlockPadding, "0 8px"), he = Dt(
2441
+ }, [y, k, x, v]), d = c || {}, L = St(d.startX, "27%"), _ = St(d.endX, "46%"), T = io(d.startX, d.endX, 0.68, "38.92%"), $ = no(d.endX, "46%"), z = d.lineColor ?? "#FFFFFF", F = d.lineWidth ?? 1, I = d.lineOpacity ?? 0.6, W = d.lineType ?? "dashed", N = w.midNameColor ?? "#fff", P = w.midNameFontSize ?? 8, B = w.rightLabelText ?? "电损量", O = w.showRightDeviceId ?? !0, R = w.showRightPercent ?? !0, re = w.rightLabelColor ?? "#fff", de = w.rightLabelFontSize ?? 10, ie = w.rightPercentColor ?? "#00D9E1", J = w.rightPercentFontSize ?? 10, ve = w.rightValueColor ?? "#fff", U = w.rightValueFontSize ?? 10, H = w.rightUnitColor ?? "#fff", G = w.rightUnitFontSize ?? 10, Y = w.rightDeviceIdColor ?? "#00D9E1", D = w.rightDeviceIdFontSize ?? 8, X = w.rightBlockBgColor ?? "rgba(0, 50, 100, 0.6)", Q = w.rightBlockBorderColor ?? "#00D9E1", f = St(w.rightBlockMinWidth, "32px"), g = St(w.rightBlockHeight, "22px"), Se = St(w.rightBlockPadding, "0 8px"), he = Dt(
2434
2442
  (j) => {
2435
2443
  const V = y[j];
2436
2444
  V && (h == null || h(V, j));
@@ -2675,7 +2683,7 @@ const Us = ({
2675
2683
  height: "100%",
2676
2684
  style: { position: "absolute", inset: 0, pointerEvents: "none", left: 20 },
2677
2685
  children: [
2678
- /* @__PURE__ */ l("defs", { children: d.map((j, V) => /* @__PURE__ */ l(
2686
+ /* @__PURE__ */ l("defs", { children: p.map((j, V) => /* @__PURE__ */ l(
2679
2687
  "marker",
2680
2688
  {
2681
2689
  id: `${m}-arrow-${V}`,
@@ -2689,14 +2697,14 @@ const Us = ({
2689
2697
  },
2690
2698
  `marker-${j.name}-${V}`
2691
2699
  )) }),
2692
- d.map((j, V) => /* @__PURE__ */ l(
2700
+ p.map((j, V) => /* @__PURE__ */ l(
2693
2701
  "line",
2694
2702
  {
2695
- x1: x,
2703
+ x1: L,
2696
2704
  y1: j.top,
2697
2705
  x2: _,
2698
2706
  y2: j.top,
2699
- stroke: $,
2707
+ stroke: z,
2700
2708
  strokeWidth: F,
2701
2709
  strokeOpacity: I,
2702
2710
  strokeDasharray: W === "dashed" ? "5 5" : void 0,
@@ -2707,7 +2715,7 @@ const Us = ({
2707
2715
  ]
2708
2716
  }
2709
2717
  ),
2710
- d.map((j, V) => /* @__PURE__ */ M(tr.Fragment, { children: [
2718
+ p.map((j, V) => /* @__PURE__ */ M(tr.Fragment, { children: [
2711
2719
  /* @__PURE__ */ l(
2712
2720
  "div",
2713
2721
  {
@@ -2743,7 +2751,7 @@ const Us = ({
2743
2751
  },
2744
2752
  style: {
2745
2753
  position: "absolute",
2746
- left: z,
2754
+ left: $,
2747
2755
  top: j.top,
2748
2756
  transform: "translateY(-50%)",
2749
2757
  minWidth: 0,
@@ -2821,13 +2829,13 @@ const Us = ({
2821
2829
  strokeLinecap: S = "round",
2822
2830
  animationDuration: w = "1s"
2823
2831
  } = e, {
2824
- valueColor: k = "#58C7D1",
2825
- labelColor: L = "rgba(255, 255, 255, 0.9)",
2826
- valueFontSize: d = Math.round(22 * h),
2827
- valueFontWeight: p = "bold",
2828
- labelFontSize: x = Math.round(14 * h),
2832
+ valueColor: x = "#58C7D1",
2833
+ labelColor: k = "rgba(255, 255, 255, 0.9)",
2834
+ valueFontSize: p = Math.round(22 * h),
2835
+ valueFontWeight: d = "bold",
2836
+ labelFontSize: L = Math.round(14 * h),
2829
2837
  labelFontWeight: _ = "normal"
2830
- } = t, { decimalPlaces: T = 1, suffix: z = "%", formatter: $ } = s, F = typeof i == "string" ? parseFloat(i) || 0 : i, I = (a - v) / 2 - 5, W = 2 * Math.PI * I, N = W - F / 100 * W, P = a / 2, B = a / 2, O = a + 20, R = $ ? $(F) : `${F.toFixed(T)}${z}`;
2838
+ } = t, { decimalPlaces: T = 1, suffix: $ = "%", formatter: z } = s, F = typeof i == "string" ? parseFloat(i) || 0 : i, I = (a - v) / 2 - 5, W = 2 * Math.PI * I, N = W - F / 100 * W, P = a / 2, B = a / 2, O = a + 20, R = z ? z(F) : `${F.toFixed(T)}${$}`;
2831
2839
  return /* @__PURE__ */ l("div", { className: `${zt.ringProgress} ${c || ""}`, style: r, children: /* @__PURE__ */ M("svg", { className: zt.ringSvg, viewBox: `0 0 ${a} ${O}`, style: n, children: [
2832
2840
  /* @__PURE__ */ l(
2833
2841
  "circle",
@@ -2874,9 +2882,9 @@ const Us = ({
2874
2882
  x: P,
2875
2883
  y: B + 5,
2876
2884
  textAnchor: "middle",
2877
- fill: k,
2878
- fontSize: d,
2879
- fontWeight: p,
2885
+ fill: x,
2886
+ fontSize: p,
2887
+ fontWeight: d,
2880
2888
  className: zt.ringValue,
2881
2889
  children: R
2882
2890
  }
@@ -2887,8 +2895,8 @@ const Us = ({
2887
2895
  x: P,
2888
2896
  y: a + Math.round(8 * h),
2889
2897
  textAnchor: "middle",
2890
- fill: L,
2891
- fontSize: x,
2898
+ fill: k,
2899
+ fontSize: L,
2892
2900
  fontWeight: _,
2893
2901
  className: zt.ringText,
2894
2902
  children: b
@@ -2918,24 +2926,24 @@ const Us = ({
2918
2926
  backgroundColor: m,
2919
2927
  borderRadius: y = "6px",
2920
2928
  style: v
2921
- } = a, { value: S, background: w, border: k } = o, {
2922
- valueFontSize: L = "22px",
2923
- valueFontWeight: d = "bold",
2924
- labelFontSize: p = "12px",
2925
- labelColor: x = "#fff",
2929
+ } = a, { value: S, background: w, border: x } = o, {
2930
+ valueFontSize: k = "22px",
2931
+ valueFontWeight: p = "bold",
2932
+ labelFontSize: d = "12px",
2933
+ labelColor: L = "#fff",
2926
2934
  valueStyle: _,
2927
2935
  labelStyle: T,
2928
- containerStyle: z
2929
- } = c, { padding: $ = "12px 15px", gap: F = "12px", borderRadius: I = "4px" } = r;
2936
+ containerStyle: $
2937
+ } = c, { padding: z = "12px 15px", gap: F = "12px", borderRadius: I = "4px" } = r;
2930
2938
  return /* @__PURE__ */ M(
2931
2939
  "div",
2932
2940
  {
2933
2941
  className: Wt.statCard,
2934
2942
  style: {
2935
2943
  background: w,
2936
- border: k,
2944
+ border: x,
2937
2945
  borderRadius: I,
2938
- padding: $,
2946
+ padding: z,
2939
2947
  gap: F,
2940
2948
  ...n
2941
2949
  },
@@ -2955,14 +2963,14 @@ const Us = ({
2955
2963
  children: t ? /* @__PURE__ */ l("img", { className: Wt.iconImage, src: t, alt: b }) : e
2956
2964
  }
2957
2965
  ),
2958
- /* @__PURE__ */ M("div", { className: Wt.textContainer, style: z, children: [
2966
+ /* @__PURE__ */ M("div", { className: Wt.textContainer, style: $, children: [
2959
2967
  /* @__PURE__ */ l(
2960
2968
  "div",
2961
2969
  {
2962
2970
  style: {
2963
- fontSize: L,
2971
+ fontSize: k,
2964
2972
  color: S,
2965
- fontWeight: d,
2973
+ fontWeight: p,
2966
2974
  ..._
2967
2975
  },
2968
2976
  children: i
@@ -2972,8 +2980,8 @@ const Us = ({
2972
2980
  "div",
2973
2981
  {
2974
2982
  style: {
2975
- fontSize: p,
2976
- color: x,
2983
+ fontSize: d,
2984
+ color: L,
2977
2985
  ...T
2978
2986
  },
2979
2987
  children: b
@@ -3018,36 +3026,36 @@ const Us = ({
3018
3026
  labelSize: S = "12px",
3019
3027
  trendSize: w = "12px"
3020
3028
  } = c, {
3021
- direction: k = "horizontal",
3022
- gap: L = "8px",
3023
- padding: d = "15px 20px",
3024
- align: p = "center"
3029
+ direction: x = "horizontal",
3030
+ gap: k = "8px",
3031
+ padding: p = "15px 20px",
3032
+ align: d = "center"
3025
3033
  } = r, {
3026
- show: x = !0,
3034
+ show: L = !0,
3027
3035
  color: _,
3028
3036
  height: T = "60px",
3029
- width: z = "1px"
3030
- } = n, $ = {
3031
- flexDirection: k === "vertical" ? "column" : "row",
3032
- padding: d,
3037
+ width: $ = "1px"
3038
+ } = n, z = {
3039
+ flexDirection: x === "vertical" ? "column" : "row",
3040
+ padding: p,
3033
3041
  ...a
3034
3042
  }, F = {
3035
- width: k === "horizontal" ? z : "100%",
3036
- height: k === "horizontal" ? T : z,
3043
+ width: x === "horizontal" ? $ : "100%",
3044
+ height: x === "horizontal" ? T : $,
3037
3045
  background: _ || "linear-gradient(to bottom, transparent, rgba(0, 150, 255, 0.5), transparent)"
3038
3046
  }, I = {
3039
3047
  left: "flex-start",
3040
3048
  center: "center",
3041
3049
  right: "flex-end"
3042
3050
  };
3043
- return /* @__PURE__ */ l("div", { className: `${Pe.statsSection} ${b || ""}`, style: $, children: i.map((W, N) => /* @__PURE__ */ M(tr.Fragment, { children: [
3051
+ return /* @__PURE__ */ l("div", { className: `${Pe.statsSection} ${b || ""}`, style: z, children: i.map((W, N) => /* @__PURE__ */ M(tr.Fragment, { children: [
3044
3052
  e ? e(W, N) : /* @__PURE__ */ M(
3045
3053
  "div",
3046
3054
  {
3047
3055
  className: Pe.statItem,
3048
3056
  style: {
3049
- gap: L,
3050
- alignItems: I[p],
3057
+ gap: k,
3058
+ alignItems: I[d],
3051
3059
  cursor: W.onClick ? "pointer" : "default"
3052
3060
  },
3053
3061
  onClick: W.onClick,
@@ -3095,7 +3103,7 @@ const Us = ({
3095
3103
  ]
3096
3104
  }
3097
3105
  ),
3098
- x && N < i.length - 1 && /* @__PURE__ */ l("div", { className: Pe.statDivider, style: F })
3106
+ L && N < i.length - 1 && /* @__PURE__ */ l("div", { className: Pe.statDivider, style: F })
3099
3107
  ] }, N)) });
3100
3108
  }, No = "_statusItem_15op2_1", Po = "_statusIcon_15op2_8", Do = "_statusContent_15op2_14", Ao = "_statusText_15op2_17", Eo = "_progressTrack_15op2_32", Oo = "_progressFill_15op2_39", it = {
3101
3109
  statusItem: No,
@@ -3312,7 +3320,7 @@ const Us = ({
3312
3320
  legendConfig: S,
3313
3321
  tooltipConfig: w
3314
3322
  }) => {
3315
- const k = Ae(null), [L, d] = ze([]), p = E(
3323
+ const x = Ae(null), [k, p] = ze([]), d = E(
3316
3324
  () => ({
3317
3325
  valueFontSize: 32,
3318
3326
  valueFontWeight: "bold",
@@ -3326,7 +3334,7 @@ const Us = ({
3326
3334
  ...y
3327
3335
  }),
3328
3336
  [y]
3329
- ), x = E(
3337
+ ), L = E(
3330
3338
  () => ({
3331
3339
  outerRadius: ["75%", "85%"],
3332
3340
  innerRadius: ["55%", "65%"],
@@ -3361,10 +3369,10 @@ const Us = ({
3361
3369
  { value: 35, name: "标签六" }
3362
3370
  ],
3363
3371
  [s]
3364
- ), z = E(() => T.map((B, O) => ({
3372
+ ), $ = E(() => T.map((B, O) => ({
3365
3373
  ...B,
3366
3374
  color: m[O % m.length]
3367
- })), [T, m]), $ = E(() => z.filter((B) => !L.includes(B.name)), [z, L]), F = E(() => $.reduce((B, O) => B + O.value, 0), [$]), I = E(() => ({
3375
+ })), [T, m]), z = E(() => $.filter((B) => !k.includes(B.name)), [$, k]), F = E(() => z.reduce((B, O) => B + O.value, 0), [z]), I = E(() => ({
3368
3376
  backgroundColor: "transparent",
3369
3377
  tooltip: {
3370
3378
  show: !0,
@@ -3382,25 +3390,25 @@ const Us = ({
3382
3390
  title: {
3383
3391
  text: `{val|${F}}${h ? `{unit|${h}}` : ""}
3384
3392
  {name|${u}}`,
3385
- left: p.left,
3386
- top: p.top,
3393
+ left: d.left,
3394
+ top: d.top,
3387
3395
  textAlign: "center",
3388
3396
  textStyle: {
3389
3397
  rich: {
3390
3398
  val: {
3391
- fontSize: p.valueFontSize,
3392
- fontWeight: p.valueFontWeight,
3393
- color: p.valueColor,
3399
+ fontSize: d.valueFontSize,
3400
+ fontWeight: d.valueFontWeight,
3401
+ color: d.valueColor,
3394
3402
  padding: [0, 0, 5, 0]
3395
3403
  },
3396
3404
  unit: {
3397
- fontSize: p.unitFontSize,
3398
- color: p.unitColor,
3405
+ fontSize: d.unitFontSize,
3406
+ color: d.unitColor,
3399
3407
  padding: [0, 0, 5, 2]
3400
3408
  },
3401
3409
  name: {
3402
- fontSize: p.nameFontSize,
3403
- color: p.nameColor
3410
+ fontSize: d.nameFontSize,
3411
+ color: d.nameColor
3404
3412
  }
3405
3413
  }
3406
3414
  }
@@ -3410,15 +3418,15 @@ const Us = ({
3410
3418
  {
3411
3419
  name: "数据分布",
3412
3420
  type: "pie",
3413
- radius: x.outerRadius,
3414
- center: x.center,
3421
+ radius: L.outerRadius,
3422
+ center: L.center,
3415
3423
  avoidLabelOverlap: !1,
3416
- padAngle: x.padAngle,
3424
+ padAngle: L.padAngle,
3417
3425
  itemStyle: {
3418
3426
  borderRadius: 0
3419
3427
  },
3420
3428
  label: { show: !1 },
3421
- data: $.map((B) => ({
3429
+ data: z.map((B) => ({
3422
3430
  value: B.value,
3423
3431
  name: B.name,
3424
3432
  itemStyle: {
@@ -3429,19 +3437,19 @@ const Us = ({
3429
3437
  {
3430
3438
  name: "数据分布内圈",
3431
3439
  type: "pie",
3432
- radius: x.innerRadius,
3433
- center: x.center,
3440
+ radius: L.innerRadius,
3441
+ center: L.center,
3434
3442
  avoidLabelOverlap: !1,
3435
- padAngle: x.padAngle,
3443
+ padAngle: L.padAngle,
3436
3444
  itemStyle: {
3437
3445
  borderRadius: 0
3438
3446
  },
3439
3447
  label: { show: !1 },
3440
- data: $.map((B) => ({
3448
+ data: z.map((B) => ({
3441
3449
  value: B.value,
3442
3450
  name: B.name,
3443
3451
  itemStyle: {
3444
- color: x.innerRingColor
3452
+ color: L.innerRingColor
3445
3453
  },
3446
3454
  realColor: B.color
3447
3455
  }))
@@ -3452,26 +3460,26 @@ const Us = ({
3452
3460
  F,
3453
3461
  h,
3454
3462
  u,
3455
- p.left,
3456
- p.top,
3457
- p.valueFontSize,
3458
- p.valueFontWeight,
3459
- p.valueColor,
3460
- p.unitFontSize,
3461
- p.unitColor,
3462
- p.nameFontSize,
3463
- p.nameColor,
3464
- x.outerRadius,
3465
- x.center,
3466
- x.padAngle,
3467
- x.innerRadius,
3468
- x.innerRingColor,
3469
- $
3463
+ d.left,
3464
+ d.top,
3465
+ d.valueFontSize,
3466
+ d.valueFontWeight,
3467
+ d.valueColor,
3468
+ d.unitFontSize,
3469
+ d.unitColor,
3470
+ d.nameFontSize,
3471
+ d.nameColor,
3472
+ L.outerRadius,
3473
+ L.center,
3474
+ L.padAngle,
3475
+ L.innerRadius,
3476
+ L.innerRingColor,
3477
+ z
3470
3478
  ]), W = (B) => {
3471
- d((O) => O.includes(B) ? O.filter((R) => R !== B) : [...O, B]);
3479
+ p((O) => O.includes(B) ? O.filter((R) => R !== B) : [...O, B]);
3472
3480
  }, N = Dt((B, O) => {
3473
3481
  var re;
3474
- const R = (re = k.current) == null ? void 0 : re.getEchartsInstance();
3482
+ const R = (re = x.current) == null ? void 0 : re.getEchartsInstance();
3475
3483
  R && (R.dispatchAction({
3476
3484
  type: O ? "highlight" : "downplay",
3477
3485
  name: B
@@ -3485,7 +3493,7 @@ const Us = ({
3485
3493
  mouseover: (B) => {
3486
3494
  var O;
3487
3495
  if (B.componentType === "series" && B.name) {
3488
- const R = (O = k.current) == null ? void 0 : O.getEchartsInstance();
3496
+ const R = (O = x.current) == null ? void 0 : O.getEchartsInstance();
3489
3497
  R && R.dispatchAction({
3490
3498
  type: "highlight",
3491
3499
  name: B.name
@@ -3495,7 +3503,7 @@ const Us = ({
3495
3503
  mouseout: (B) => {
3496
3504
  var O;
3497
3505
  if (B.componentType === "series" && B.name) {
3498
- const R = (O = k.current) == null ? void 0 : O.getEchartsInstance();
3506
+ const R = (O = x.current) == null ? void 0 : O.getEchartsInstance();
3499
3507
  R && R.dispatchAction({
3500
3508
  type: "downplay",
3501
3509
  name: B.name
@@ -3509,7 +3517,7 @@ const Us = ({
3509
3517
  /* @__PURE__ */ l("div", { style: { flex: 1, height: "100%", ...b }, children: /* @__PURE__ */ l(
3510
3518
  K,
3511
3519
  {
3512
- ref: k,
3520
+ ref: x,
3513
3521
  option: I,
3514
3522
  style: { width: "100%", height: "100%", ...a },
3515
3523
  onEvents: P
@@ -3528,8 +3536,8 @@ const Us = ({
3528
3536
  paddingRight: _.paddingRight,
3529
3537
  ...o
3530
3538
  },
3531
- children: z.map((B, O) => {
3532
- const R = L.includes(B.name);
3539
+ children: $.map((B, O) => {
3540
+ const R = k.includes(B.name);
3533
3541
  return /* @__PURE__ */ M(
3534
3542
  "div",
3535
3543
  {
@@ -3822,7 +3830,7 @@ const Us = ({
3822
3830
  color: h.textColor
3823
3831
  },
3824
3832
  formatter: (S) => {
3825
- const w = Array.isArray(S) ? S.find((k) => k.seriesName === "value") : S;
3833
+ const w = Array.isArray(S) ? S.find((x) => x.seriesName === "value") : S;
3826
3834
  return w ? `${w.name}<br/>${w.marker} 数值: ${be(w.value)} ${c}` : "";
3827
3835
  }
3828
3836
  },
@@ -4001,7 +4009,7 @@ const Us = ({
4001
4009
  }
4002
4010
  }) => {
4003
4011
  const m = E(() => {
4004
- var S, w, k, L, d, p, x, _;
4012
+ var S, w, x, k, p, d, L, _;
4005
4013
  const v = [
4006
4014
  {
4007
4015
  nameColor: "#8c9fad",
@@ -4056,11 +4064,11 @@ const Us = ({
4056
4064
  },
4057
4065
  axisLabel: {
4058
4066
  ...v[0].axisLabel,
4059
- ...(k = u[0]) == null ? void 0 : k.axisLabel
4067
+ ...(x = u[0]) == null ? void 0 : x.axisLabel
4060
4068
  },
4061
4069
  axisTick: {
4062
4070
  ...v[0].axisTick,
4063
- ...(L = u[0]) == null ? void 0 : L.axisTick
4071
+ ...(k = u[0]) == null ? void 0 : k.axisTick
4064
4072
  }
4065
4073
  },
4066
4074
  {
@@ -4068,15 +4076,15 @@ const Us = ({
4068
4076
  ...u[1],
4069
4077
  axisLine: {
4070
4078
  ...v[1].axisLine,
4071
- ...(d = u[1]) == null ? void 0 : d.axisLine
4079
+ ...(p = u[1]) == null ? void 0 : p.axisLine
4072
4080
  },
4073
4081
  splitLine: {
4074
4082
  ...v[1].splitLine,
4075
- ...(p = u[1]) == null ? void 0 : p.splitLine
4083
+ ...(d = u[1]) == null ? void 0 : d.splitLine
4076
4084
  },
4077
4085
  axisLabel: {
4078
4086
  ...v[1].axisLabel,
4079
- ...(x = u[1]) == null ? void 0 : x.axisLabel
4087
+ ...(L = u[1]) == null ? void 0 : L.axisLabel
4080
4088
  },
4081
4089
  axisTick: {
4082
4090
  ...v[1].axisTick,
@@ -4085,7 +4093,7 @@ const Us = ({
4085
4093
  }
4086
4094
  ] : v;
4087
4095
  }, [u]), y = E(() => {
4088
- var v, S, w, k, L, d, p, x, _, T, z, $, F, I;
4096
+ var v, S, w, x, k, p, d, L, _, T, $, z, F, I;
4089
4097
  return {
4090
4098
  backgroundColor: "transparent",
4091
4099
  tooltip: {
@@ -4141,22 +4149,22 @@ const Us = ({
4141
4149
  padding: [0, 0, 0, -10]
4142
4150
  },
4143
4151
  axisLabel: (w = m[0]) == null ? void 0 : w.axisLabel,
4144
- splitLine: (k = m[0]) == null ? void 0 : k.splitLine,
4145
- axisLine: (L = m[0]) == null ? void 0 : L.axisLine,
4146
- axisTick: (d = m[0]) == null ? void 0 : d.axisTick
4152
+ splitLine: (x = m[0]) == null ? void 0 : x.splitLine,
4153
+ axisLine: (k = m[0]) == null ? void 0 : k.axisLine,
4154
+ axisTick: (p = m[0]) == null ? void 0 : p.axisTick
4147
4155
  },
4148
4156
  {
4149
4157
  type: "value",
4150
4158
  name: c[1],
4151
4159
  nameTextStyle: {
4152
- color: (p = m[1]) == null ? void 0 : p.nameColor,
4153
- fontSize: (x = m[1]) == null ? void 0 : x.nameFontSize,
4160
+ color: (d = m[1]) == null ? void 0 : d.nameColor,
4161
+ fontSize: (L = m[1]) == null ? void 0 : L.nameFontSize,
4154
4162
  padding: [0, 0, 0, 10]
4155
4163
  },
4156
4164
  axisLabel: (_ = m[1]) == null ? void 0 : _.axisLabel,
4157
4165
  splitLine: (T = m[1]) == null ? void 0 : T.splitLine,
4158
- axisLine: (z = m[1]) == null ? void 0 : z.axisLine,
4159
- axisTick: ($ = m[1]) == null ? void 0 : $.axisTick
4166
+ axisLine: ($ = m[1]) == null ? void 0 : $.axisLine,
4167
+ axisTick: (z = m[1]) == null ? void 0 : z.axisTick
4160
4168
  }
4161
4169
  ],
4162
4170
  series: [
@@ -4417,22 +4425,22 @@ const Us = ({
4417
4425
  splitLineColor: "#1F3453",
4418
4426
  fontSize: 14,
4419
4427
  ...t
4420
- }, k = {
4428
+ }, x = {
4421
4429
  left: "3%",
4422
4430
  right: "4%",
4423
4431
  bottom: "3%",
4424
4432
  containLabel: !0,
4425
4433
  ...m
4426
- }, L = {
4434
+ }, k = {
4427
4435
  show: !0,
4428
4436
  top: 10,
4429
4437
  textStyle: { color: "#fff", ...h.textStyle },
4430
4438
  ...h
4431
- }, d = {
4439
+ }, p = {
4432
4440
  show: !0,
4433
4441
  ...y
4434
- }, p = (x, _) => {
4435
- const T = _.coord([_.value(0), _.value(1)]), z = T[0], $ = T[1], I = _.coord([_.value(0), 0])[1], W = u, N = W / 2, P = W / 3;
4442
+ }, d = (L, _) => {
4443
+ const T = _.coord([_.value(0), _.value(1)]), $ = T[0], z = T[1], I = _.coord([_.value(0), 0])[1], W = u, N = W / 2, P = W / 3;
4436
4444
  return {
4437
4445
  type: "group",
4438
4446
  children: [
@@ -4441,13 +4449,13 @@ const Us = ({
4441
4449
  type: "polygon",
4442
4450
  shape: {
4443
4451
  points: [
4444
- [z - N, I],
4452
+ [$ - N, I],
4445
4453
  // 左下
4446
- [z, I + P],
4454
+ [$, I + P],
4447
4455
  // 中下
4448
- [z, $ + P],
4456
+ [$, z + P],
4449
4457
  // 中上
4450
- [z - N, $]
4458
+ [$ - N, z]
4451
4459
  // 左上
4452
4460
  ]
4453
4461
  },
@@ -4465,13 +4473,13 @@ const Us = ({
4465
4473
  type: "polygon",
4466
4474
  shape: {
4467
4475
  points: [
4468
- [z, I + P],
4476
+ [$, I + P],
4469
4477
  // 中下
4470
- [z + N, I],
4478
+ [$ + N, I],
4471
4479
  // 右下
4472
- [z + N, $],
4480
+ [$ + N, z],
4473
4481
  // 右上
4474
- [z, $ + P]
4482
+ [$, z + P]
4475
4483
  // 中上
4476
4484
  ]
4477
4485
  },
@@ -4489,13 +4497,13 @@ const Us = ({
4489
4497
  type: "polygon",
4490
4498
  shape: {
4491
4499
  points: [
4492
- [z - N, $],
4500
+ [$ - N, z],
4493
4501
  // 左
4494
- [z, $ + P],
4502
+ [$, z + P],
4495
4503
  // 下
4496
- [z + N, $],
4504
+ [$ + N, z],
4497
4505
  // 右
4498
- [z, $ - P]
4506
+ [$, z - P]
4499
4507
  // 上
4500
4508
  ]
4501
4509
  },
@@ -4510,27 +4518,27 @@ const Us = ({
4510
4518
  };
4511
4519
  return {
4512
4520
  tooltip: {
4513
- show: d.show,
4521
+ show: p.show,
4514
4522
  trigger: "axis",
4515
4523
  axisPointer: {
4516
4524
  type: "shadow"
4517
4525
  },
4518
- formatter: d.formatter || ((x) => {
4519
- if (!Array.isArray(x))
4526
+ formatter: p.formatter || ((L) => {
4527
+ if (!Array.isArray(L))
4520
4528
  return "";
4521
- let _ = `${x[0].name}`;
4522
- return x.forEach((T) => {
4529
+ let _ = `${L[0].name}`;
4530
+ return L.forEach((T) => {
4523
4531
  _ += `<br/>${T.marker}${T.seriesName}: ${be(T.value)}${r}`;
4524
4532
  }), _;
4525
4533
  })
4526
4534
  },
4527
4535
  legend: {
4528
- show: L.show,
4536
+ show: k.show,
4529
4537
  data: s,
4530
- textStyle: L.textStyle,
4531
- top: L.top
4538
+ textStyle: k.textStyle,
4539
+ top: k.top
4532
4540
  },
4533
- grid: k,
4541
+ grid: x,
4534
4542
  xAxis: {
4535
4543
  type: "category",
4536
4544
  data: a,
@@ -4577,7 +4585,7 @@ const Us = ({
4577
4585
  {
4578
4586
  name: s[0],
4579
4587
  type: "custom",
4580
- renderItem: p,
4588
+ renderItem: d,
4581
4589
  itemStyle: {
4582
4590
  color: S.top
4583
4591
  // 使用顶部颜色作为图例颜色
@@ -4656,8 +4664,8 @@ const Us = ({
4656
4664
  }) => {
4657
4665
  const h = E(() => {
4658
4666
  const m = a.series.map((y, v) => {
4659
- const S = Math.max(...y.data), w = y.color || c[v % c.length], k = y.areaGradient || r[v % r.length], L = y.data.map((d) => d === S ? {
4660
- value: d,
4667
+ const S = Math.max(...y.data), w = y.color || c[v % c.length], x = y.areaGradient || r[v % r.length], k = y.data.map((p) => p === S ? {
4668
+ value: p,
4661
4669
  label: {
4662
4670
  show: !0,
4663
4671
  position: "top",
@@ -4675,7 +4683,7 @@ const Us = ({
4675
4683
  borderWidth: 2,
4676
4684
  color: "#fff"
4677
4685
  }
4678
- } : { value: d });
4686
+ } : { value: p });
4679
4687
  return {
4680
4688
  name: y.name,
4681
4689
  type: "line",
@@ -4696,11 +4704,11 @@ const Us = ({
4696
4704
  },
4697
4705
  areaStyle: {
4698
4706
  color: new le.graphic.LinearGradient(0, 0, 0, 1, [
4699
- { offset: 0, color: k.from },
4700
- { offset: 1, color: k.to }
4707
+ { offset: 0, color: x.from },
4708
+ { offset: 1, color: x.to }
4701
4709
  ])
4702
4710
  },
4703
- data: L
4711
+ data: k
4704
4712
  };
4705
4713
  });
4706
4714
  return {
@@ -4792,8 +4800,8 @@ const Us = ({
4792
4800
  }) => {
4793
4801
  const u = E(() => {
4794
4802
  const h = a.series.map((m, y) => {
4795
- const v = Math.max(...m.data), S = m.color || c[y % c.length], w = m.data.map((k) => k === v ? {
4796
- value: k,
4803
+ const v = Math.max(...m.data), S = m.color || c[y % c.length], w = m.data.map((x) => x === v ? {
4804
+ value: x,
4797
4805
  label: {
4798
4806
  show: !0,
4799
4807
  position: "top",
@@ -4802,7 +4810,7 @@ const Us = ({
4802
4810
  fontWeight: (e == null ? void 0 : e.fontWeight) || "bold",
4803
4811
  formatter: (e == null ? void 0 : e.formatter) || (o ? `{c}${o}` : "{c}")
4804
4812
  }
4805
- } : { value: k });
4813
+ } : { value: x });
4806
4814
  return {
4807
4815
  name: m.name,
4808
4816
  type: "line",
@@ -4903,7 +4911,7 @@ const Us = ({
4903
4911
  { value: 15, name: "数据指标3" },
4904
4912
  { value: 15, name: "数据指标4" },
4905
4913
  { value: 15, name: "数据指标5" }
4906
- ], w = S.reduce((F, I) => F + I.value, 0), k = r || ["#2E7BFD", "#1D4E89", "#00E4FF", "#FFAB00", "#FF3D00"], L = {
4914
+ ], w = S.reduce((F, I) => F + I.value, 0), x = r || ["#2E7BFD", "#1D4E89", "#00E4FF", "#FFAB00", "#FF3D00"], k = {
4907
4915
  text: "{val|100%}{arrow|↓}",
4908
4916
  fontSize: 32,
4909
4917
  color: "#fff",
@@ -4913,7 +4921,7 @@ const Us = ({
4913
4921
  left: "29%",
4914
4922
  top: "center",
4915
4923
  ...n
4916
- }, d = {
4924
+ }, p = {
4917
4925
  show: !0,
4918
4926
  right: "10%",
4919
4927
  top: "middle",
@@ -4941,7 +4949,7 @@ const Us = ({
4941
4949
  }
4942
4950
  },
4943
4951
  ...e
4944
- }, p = {
4952
+ }, d = {
4945
4953
  center: ["30%", "50%"],
4946
4954
  radius: ["50%", "60%"],
4947
4955
  backgroundRadius: ["70%", "75%"],
@@ -4949,7 +4957,7 @@ const Us = ({
4949
4957
  padAngle: 5,
4950
4958
  centerRadius: "40%",
4951
4959
  ...t
4952
- }, x = {
4960
+ }, L = {
4953
4961
  color: "#06234B",
4954
4962
  ...s
4955
4963
  }, _ = {
@@ -4964,37 +4972,37 @@ const Us = ({
4964
4972
  shadowBlur: 5,
4965
4973
  gradientOpacity: 0.3,
4966
4974
  ...h
4967
- }, z = {
4975
+ }, $ = {
4968
4976
  show: !0,
4969
4977
  // 默认不显示,因为原始代码没有tooltip
4970
4978
  ...m
4971
- }, $ = a;
4979
+ }, z = a;
4972
4980
  return {
4973
4981
  backgroundColor: "transparent",
4974
4982
  tooltip: {
4975
- show: z.show,
4983
+ show: $.show,
4976
4984
  trigger: "item",
4977
- formatter: z.formatter || ((F) => F.seriesType !== "pie" || F.name === "分布" ? "" : `${F.marker}${F.name}: ${be(F.value)}${c} (${F.percent}%)`)
4985
+ formatter: $.formatter || ((F) => F.seriesType !== "pie" || F.name === "分布" ? "" : `${F.marker}${F.name}: ${be(F.value)}${c} (${F.percent}%)`)
4978
4986
  },
4979
4987
  // 如果打算显示图片,则只显示标题文本(尽管现在默认显示图片)
4980
4988
  // 如果使用 graphic 显示图片,我们将隐藏标题
4981
4989
  title: {
4982
- text: L.text,
4983
- left: L.left,
4984
- top: L.top,
4990
+ text: k.text,
4991
+ left: k.left,
4992
+ top: k.top,
4985
4993
  textAlign: "center",
4986
4994
  z: 15,
4987
4995
  textStyle: {
4988
4996
  rich: {
4989
4997
  val: {
4990
- fontSize: L.fontSize,
4991
- fontWeight: L.fontWeight,
4992
- color: L.color,
4998
+ fontSize: k.fontSize,
4999
+ fontWeight: k.fontWeight,
5000
+ color: k.color,
4993
5001
  padding: [0, 5, 0, 0]
4994
5002
  },
4995
5003
  arrow: {
4996
- fontSize: L.arrowFontSize,
4997
- color: L.arrowColor,
5004
+ fontSize: k.arrowFontSize,
5005
+ color: k.arrowColor,
4998
5006
  fontWeight: "bold"
4999
5007
  }
5000
5008
  }
@@ -5002,40 +5010,40 @@ const Us = ({
5002
5010
  },
5003
5011
  graphic: [],
5004
5012
  legend: {
5005
- show: d.show,
5013
+ show: p.show,
5006
5014
  orient: "vertical",
5007
- right: d.right,
5008
- top: d.top,
5009
- itemGap: d.itemGap,
5010
- itemWidth: d.itemWidth,
5011
- itemHeight: d.itemHeight,
5015
+ right: p.right,
5016
+ top: p.top,
5017
+ itemGap: p.itemGap,
5018
+ itemWidth: p.itemWidth,
5019
+ itemHeight: p.itemHeight,
5012
5020
  icon: "rect",
5013
- tooltip: d.tooltip,
5021
+ tooltip: p.tooltip,
5014
5022
  data: S.map((F, I) => ({
5015
5023
  name: F.name,
5016
5024
  itemStyle: {
5017
- color: k[I % k.length]
5025
+ color: x[I % x.length]
5018
5026
  // 强制使用纯色
5019
5027
  }
5020
5028
  })),
5021
5029
  textStyle: {
5022
- color: d.textStyle.color,
5023
- fontSize: d.textStyle.fontSize,
5030
+ color: p.textStyle.color,
5031
+ fontSize: p.textStyle.fontSize,
5024
5032
  rich: {
5025
5033
  name: {
5026
- color: d.textStyle.nameColor,
5027
- fontSize: d.textStyle.nameFontSize,
5028
- padding: d.textStyle.namePadding,
5029
- width: d.textStyle.nameWidth
5034
+ color: p.textStyle.nameColor,
5035
+ fontSize: p.textStyle.nameFontSize,
5036
+ padding: p.textStyle.namePadding,
5037
+ width: p.textStyle.nameWidth
5030
5038
  },
5031
5039
  val: {
5032
- color: d.textStyle.valueColor,
5033
- fontSize: d.textStyle.valueFontSize,
5040
+ color: p.textStyle.valueColor,
5041
+ fontSize: p.textStyle.valueFontSize,
5034
5042
  fontWeight: "500"
5035
5043
  }
5036
5044
  }
5037
5045
  },
5038
- formatter: d.formatter || ((F) => {
5046
+ formatter: p.formatter || ((F) => {
5039
5047
  const I = S.find((W) => W.name === F);
5040
5048
  return `{name|数据指标} {val|${be(I == null ? void 0 : I.value)}${c}}`;
5041
5049
  })
@@ -5044,8 +5052,8 @@ const Us = ({
5044
5052
  // 添加背景轨道圆环
5045
5053
  {
5046
5054
  type: "pie",
5047
- radius: p.backgroundRadius,
5048
- center: p.center,
5055
+ radius: d.backgroundRadius,
5056
+ center: d.center,
5049
5057
  silent: !0,
5050
5058
  z: 0,
5051
5059
  label: { show: !1 },
@@ -5053,7 +5061,7 @@ const Us = ({
5053
5061
  {
5054
5062
  value: 1,
5055
5063
  itemStyle: {
5056
- color: x.color
5064
+ color: L.color
5057
5065
  // 深色背景
5058
5066
  }
5059
5067
  }
@@ -5064,7 +5072,7 @@ const Us = ({
5064
5072
  type: "custom",
5065
5073
  coordinateSystem: "none",
5066
5074
  renderItem: (F, I) => {
5067
- const W = I.getWidth(), N = I.getHeight(), P = (de, ie) => typeof de == "string" && de.endsWith("%") ? parseFloat(de) / 100 * ie : de, B = P(p.center[0], W), O = P(p.center[1], N), re = Math.min(W, N) / 2 * _.radiusFactor;
5075
+ const W = I.getWidth(), N = I.getHeight(), P = (de, ie) => typeof de == "string" && de.endsWith("%") ? parseFloat(de) / 100 * ie : de, B = P(d.center[0], W), O = P(d.center[1], N), re = Math.min(W, N) / 2 * _.radiusFactor;
5068
5076
  return {
5069
5077
  type: "group",
5070
5078
  x: B,
@@ -5131,11 +5139,11 @@ const Us = ({
5131
5139
  type: "custom",
5132
5140
  coordinateSystem: "none",
5133
5141
  renderItem: (F, I) => {
5134
- const W = I.getWidth(), N = I.getHeight(), P = (re, de) => typeof re == "string" && re.endsWith("%") ? parseFloat(re) / 100 * de : re, B = P(p.center[0], W), O = P(p.center[1], N), R = p.imgSize;
5142
+ const W = I.getWidth(), N = I.getHeight(), P = (re, de) => typeof re == "string" && re.endsWith("%") ? parseFloat(re) / 100 * de : re, B = P(d.center[0], W), O = P(d.center[1], N), R = d.imgSize;
5135
5143
  return {
5136
5144
  type: "image",
5137
5145
  style: {
5138
- image: $,
5146
+ image: z,
5139
5147
  x: B - R / 2,
5140
5148
  y: O - R / 2,
5141
5149
  width: R,
@@ -5152,8 +5160,8 @@ const Us = ({
5152
5160
  ] : [
5153
5161
  {
5154
5162
  type: "pie",
5155
- radius: ["0%", p.centerRadius],
5156
- center: p.center,
5163
+ radius: ["0%", d.centerRadius],
5164
+ center: d.center,
5157
5165
  silent: !0,
5158
5166
  itemStyle: {
5159
5167
  color: {
@@ -5173,8 +5181,8 @@ const Us = ({
5173
5181
  },
5174
5182
  {
5175
5183
  type: "gauge",
5176
- radius: p.centerRadius,
5177
- center: p.center,
5184
+ radius: d.centerRadius,
5185
+ center: d.center,
5178
5186
  startAngle: 90,
5179
5187
  endAngle: -269.9,
5180
5188
  splitNumber: 1,
@@ -5195,10 +5203,10 @@ const Us = ({
5195
5203
  {
5196
5204
  name: "分布",
5197
5205
  type: "pie",
5198
- radius: p.radius,
5199
- center: p.center,
5206
+ radius: d.radius,
5207
+ center: d.center,
5200
5208
  avoidLabelOverlap: !1,
5201
- padAngle: p.padAngle,
5209
+ padAngle: d.padAngle,
5202
5210
  // 使用 padAngle 创建间隔
5203
5211
  itemStyle: {
5204
5212
  borderRadius: 0
@@ -5210,7 +5218,7 @@ const Us = ({
5210
5218
  show: !1
5211
5219
  },
5212
5220
  data: S.map((F, I) => {
5213
- const W = k[I % k.length];
5221
+ const W = x[I % x.length];
5214
5222
  return {
5215
5223
  ...F,
5216
5224
  itemStyle: {
@@ -5450,25 +5458,25 @@ const Us = ({
5450
5458
  var y, v, S, w;
5451
5459
  let h = c.index;
5452
5460
  if (h === void 0) {
5453
- let k = -1 / 0;
5454
- o.forEach((L, d) => {
5455
- L.value > k && (k = L.value, h = d);
5461
+ let x = -1 / 0;
5462
+ o.forEach((k, p) => {
5463
+ k.value > x && (x = k.value, h = p);
5456
5464
  });
5457
5465
  }
5458
- const m = o.map((k, L) => L === h ? {
5459
- ...k,
5466
+ const m = o.map((x, k) => k === h ? {
5467
+ ...x,
5460
5468
  itemStyle: {
5461
- ...k.itemStyle,
5469
+ ...x.itemStyle,
5462
5470
  ...c.itemStyle
5463
5471
  }
5464
- } : k);
5472
+ } : x);
5465
5473
  return {
5466
5474
  backgroundColor: "transparent",
5467
5475
  title: r,
5468
5476
  tooltip: s,
5469
5477
  grid: n,
5470
5478
  xAxis: {
5471
- data: m.map((k) => k.name),
5479
+ data: m.map((x) => x.name),
5472
5480
  axisTick: { show: !1 },
5473
5481
  axisLine: (y = e.xAxis) == null ? void 0 : y.axisLine,
5474
5482
  axisLabel: (v = e.xAxis) == null ? void 0 : v.axisLabel
@@ -5512,11 +5520,11 @@ const Us = ({
5512
5520
  titleConfig: S
5513
5521
  }) => {
5514
5522
  const w = E(() => {
5515
- const L = { ...{
5523
+ const k = { ...{
5516
5524
  barTop: "#00eaff",
5517
5525
  barBottomFrom: "rgba(0, 234, 255, 0.8)",
5518
5526
  barBottomTo: "rgba(0, 40, 100, 0.2)"
5519
- }, ...c }, d = (m == null ? void 0 : m.width) ?? 30, p = (s == null ? void 0 : s.roundTo) ?? 1e3, x = (s == null ? void 0 : s.autoRound) ?? !0, _ = Math.max(...a.values), T = (s == null ? void 0 : s.min) ?? 0, z = (s == null ? void 0 : s.max) ?? (x ? Math.ceil(_ / p) * p : _);
5527
+ }, ...c }, p = (m == null ? void 0 : m.width) ?? 30, d = (s == null ? void 0 : s.roundTo) ?? 1e3, L = (s == null ? void 0 : s.autoRound) ?? !0, _ = Math.max(...a.values), T = (s == null ? void 0 : s.min) ?? 0, $ = (s == null ? void 0 : s.max) ?? (L ? Math.ceil(_ / d) * d : _);
5520
5528
  return {
5521
5529
  backgroundColor: "transparent",
5522
5530
  title: S,
@@ -5532,8 +5540,8 @@ const Us = ({
5532
5540
  tooltip: {
5533
5541
  trigger: "axis",
5534
5542
  axisPointer: { type: "shadow", ...h },
5535
- formatter: (u == null ? void 0 : u.formatter) || (($) => {
5536
- const F = $.find((I) => I.seriesName === "body");
5543
+ formatter: (u == null ? void 0 : u.formatter) || ((z) => {
5544
+ const F = z.find((I) => I.seriesName === "body");
5537
5545
  return F ? `${F.name}<br/>${F.marker} 数值: ${be(F.value)} ${o}` : "";
5538
5546
  }),
5539
5547
  ...u
@@ -5561,7 +5569,7 @@ const Us = ({
5561
5569
  show: (v == null ? void 0 : v.left) ?? !0,
5562
5570
  type: "value",
5563
5571
  min: T,
5564
- max: z,
5572
+ max: $,
5565
5573
  name: o,
5566
5574
  nameTextStyle: {
5567
5575
  color: (e == null ? void 0 : e.labelColor) ?? (r == null ? void 0 : r.yAxisLabelColor) ?? "#fff",
@@ -5586,7 +5594,7 @@ const Us = ({
5586
5594
  color: (e == null ? void 0 : e.labelColor) ?? (r == null ? void 0 : r.yAxisLabelColor) ?? "#fff",
5587
5595
  fontSize: (e == null ? void 0 : e.labelFontSize) ?? 14,
5588
5596
  margin: (e == null ? void 0 : e.labelMargin) ?? 12,
5589
- formatter: ($) => e != null && e.formatter ? e.formatter($) : $.toLocaleString()
5597
+ formatter: (z) => e != null && e.formatter ? e.formatter(z) : z.toLocaleString()
5590
5598
  }
5591
5599
  },
5592
5600
  {
@@ -5594,7 +5602,7 @@ const Us = ({
5594
5602
  type: "value",
5595
5603
  position: "right",
5596
5604
  min: T,
5597
- max: z,
5605
+ max: $,
5598
5606
  name: o,
5599
5607
  nameTextStyle: {
5600
5608
  color: (t == null ? void 0 : t.labelColor) ?? (r == null ? void 0 : r.yAxisLabelColor) ?? "#fff",
@@ -5616,7 +5624,7 @@ const Us = ({
5616
5624
  color: (t == null ? void 0 : t.labelColor) ?? (r == null ? void 0 : r.yAxisLabelColor) ?? "#fff",
5617
5625
  fontSize: (t == null ? void 0 : t.labelFontSize) ?? 14,
5618
5626
  margin: (t == null ? void 0 : t.labelMargin) ?? 12,
5619
- formatter: ($) => t != null && t.formatter ? t.formatter($) : $.toLocaleString()
5627
+ formatter: (z) => t != null && t.formatter ? t.formatter(z) : z.toLocaleString()
5620
5628
  }
5621
5629
  }
5622
5630
  ],
@@ -5625,11 +5633,11 @@ const Us = ({
5625
5633
  {
5626
5634
  name: "body",
5627
5635
  type: "bar",
5628
- barWidth: d,
5636
+ barWidth: p,
5629
5637
  itemStyle: {
5630
5638
  color: new le.graphic.LinearGradient(0, 0, 0, 1, [
5631
- { offset: 0, color: L.barBottomFrom },
5632
- { offset: 1, color: L.barBottomTo }
5639
+ { offset: 0, color: k.barBottomFrom },
5640
+ { offset: 1, color: k.barBottomTo }
5633
5641
  ])
5634
5642
  },
5635
5643
  data: a.values
@@ -5640,12 +5648,12 @@ const Us = ({
5640
5648
  type: "pictorialBar",
5641
5649
  symbol: "diamond",
5642
5650
  symbolPosition: "end",
5643
- symbolSize: (y == null ? void 0 : y.symbolSize) ?? [d, d * 0.5],
5651
+ symbolSize: (y == null ? void 0 : y.symbolSize) ?? [p, p * 0.5],
5644
5652
  symbolOffset: (y == null ? void 0 : y.symbolOffset) ?? [0, "-50%"],
5645
5653
  itemStyle: {
5646
- color: (y == null ? void 0 : y.color) ?? L.barTop,
5654
+ color: (y == null ? void 0 : y.color) ?? k.barTop,
5647
5655
  borderWidth: 0,
5648
- shadowColor: (y == null ? void 0 : y.color) ?? L.barTop,
5656
+ shadowColor: (y == null ? void 0 : y.color) ?? k.barTop,
5649
5657
  shadowBlur: (y == null ? void 0 : y.shadowBlur) ?? 5
5650
5658
  },
5651
5659
  data: a.values
@@ -5900,7 +5908,7 @@ const Us = ({
5900
5908
  border: `1px solid ${y.iconBorder}`,
5901
5909
  filter: y.filter,
5902
5910
  ...s
5903
- }, k = {
5911
+ }, x = {
5904
5912
  gap: "8px",
5905
5913
  labelWidth: "80px",
5906
5914
  labelColor: y.labelColor,
@@ -6018,31 +6026,31 @@ const Us = ({
6018
6026
  flex: 1,
6019
6027
  display: "flex",
6020
6028
  flexDirection: "column",
6021
- gap: k.gap,
6022
- ...k.style
6029
+ gap: x.gap,
6030
+ ...x.style
6023
6031
  },
6024
- children: r.map((L, d) => /* @__PURE__ */ M(
6032
+ children: r.map((k, p) => /* @__PURE__ */ M(
6025
6033
  "div",
6026
6034
  {
6027
6035
  style: {
6028
6036
  display: "flex",
6029
- fontSize: k.fontSize,
6030
- lineHeight: k.lineHeight,
6031
- ...k.itemStyle
6037
+ fontSize: x.fontSize,
6038
+ lineHeight: x.lineHeight,
6039
+ ...x.itemStyle
6032
6040
  },
6033
6041
  children: [
6034
6042
  /* @__PURE__ */ M(
6035
6043
  "span",
6036
6044
  {
6037
6045
  style: {
6038
- color: k.labelColor,
6039
- width: k.labelWidth,
6046
+ color: x.labelColor,
6047
+ width: x.labelWidth,
6040
6048
  textAlign: "right",
6041
6049
  marginRight: "10px",
6042
- ...k.labelStyle
6050
+ ...x.labelStyle
6043
6051
  },
6044
6052
  children: [
6045
- L.label,
6053
+ k.label,
6046
6054
  ":"
6047
6055
  ]
6048
6056
  }
@@ -6051,15 +6059,15 @@ const Us = ({
6051
6059
  "span",
6052
6060
  {
6053
6061
  style: {
6054
- color: k.valueColor,
6055
- ...k.valueStyle
6062
+ color: x.valueColor,
6063
+ ...x.valueStyle
6056
6064
  },
6057
- children: L.value
6065
+ children: k.value
6058
6066
  }
6059
6067
  )
6060
6068
  ]
6061
6069
  },
6062
- d
6070
+ p
6063
6071
  ))
6064
6072
  }
6065
6073
  )
@@ -6319,14 +6327,14 @@ const Us = ({
6319
6327
  backgroundConfig: e,
6320
6328
  bottomLineConfig: t
6321
6329
  }) => {
6322
- var k, L, d;
6330
+ var x, k, p;
6323
6331
  const s = o || [
6324
6332
  { label: "本月", value: "month" },
6325
6333
  { label: "本年", value: "year" }
6326
6334
  ], [u, h] = ze(
6327
6335
  c || (s.length > 0 ? s[0].value : "")
6328
- ), m = (p) => {
6329
- h(p), r && r(p);
6336
+ ), m = (d) => {
6337
+ h(d), r && r(d);
6330
6338
  }, y = (a == null ? void 0 : a.text) || "可视化数据", v = e == null ? void 0 : e.image, S = t == null ? void 0 : t.color, w = (t == null ? void 0 : t.show) !== !1 && !v;
6331
6339
  return /* @__PURE__ */ M(
6332
6340
  "div",
@@ -6348,14 +6356,14 @@ const Us = ({
6348
6356
  // 如果未定义,使用 CSS 中的默认渐变
6349
6357
  ...t == null ? void 0 : t.style
6350
6358
  },
6351
- children: ((k = t == null ? void 0 : t.decorationDots) == null ? void 0 : k.show) !== !1 && /* @__PURE__ */ l(
6359
+ children: ((x = t == null ? void 0 : t.decorationDots) == null ? void 0 : x.show) !== !1 && /* @__PURE__ */ l(
6352
6360
  "div",
6353
6361
  {
6354
6362
  className: Xe.decorationDots,
6355
6363
  style: {
6356
- ...(L = t == null ? void 0 : t.decorationDots) == null ? void 0 : L.style
6364
+ ...(k = t == null ? void 0 : t.decorationDots) == null ? void 0 : k.style
6357
6365
  },
6358
- children: [...Array(((d = t == null ? void 0 : t.decorationDots) == null ? void 0 : d.count) || 5)].map((p, x) => /* @__PURE__ */ l("div", { className: Xe.dot }, x))
6366
+ children: [...Array(((p = t == null ? void 0 : t.decorationDots) == null ? void 0 : p.count) || 5)].map((d, L) => /* @__PURE__ */ l("div", { className: Xe.dot }, L))
6359
6367
  }
6360
6368
  )
6361
6369
  }
@@ -6388,20 +6396,20 @@ const Us = ({
6388
6396
  style: {
6389
6397
  ...n == null ? void 0 : n.containerStyle
6390
6398
  },
6391
- children: s.map((p) => {
6392
- const x = u === p.value;
6399
+ children: s.map((d) => {
6400
+ const L = u === d.value;
6393
6401
  return /* @__PURE__ */ M(
6394
6402
  "div",
6395
6403
  {
6396
- onClick: () => m(p.value),
6397
- className: `${Xe.tabItem} ${x ? Xe.active : ""}`,
6404
+ onClick: () => m(d.value),
6405
+ className: `${Xe.tabItem} ${L ? Xe.active : ""}`,
6398
6406
  style: {
6399
6407
  ...n == null ? void 0 : n.itemStyle,
6400
- ...x ? n == null ? void 0 : n.activeItemStyle : n == null ? void 0 : n.inactiveItemStyle
6408
+ ...L ? n == null ? void 0 : n.activeItemStyle : n == null ? void 0 : n.inactiveItemStyle
6401
6409
  },
6402
6410
  children: [
6403
- p.label,
6404
- x && /* @__PURE__ */ l(
6411
+ d.label,
6412
+ L && /* @__PURE__ */ l(
6405
6413
  "div",
6406
6414
  {
6407
6415
  className: Xe.activeLine,
@@ -6412,7 +6420,7 @@ const Us = ({
6412
6420
  )
6413
6421
  ]
6414
6422
  },
6415
- p.value
6423
+ d.value
6416
6424
  );
6417
6425
  })
6418
6426
  }
@@ -6464,23 +6472,23 @@ const Us = ({
6464
6472
  legendConfig: u,
6465
6473
  customLegend: h
6466
6474
  }) => {
6467
- const m = Ae(null), y = (d, p) => d.reduce(
6468
- (x, _) => (x[_.name] = (p == null ? void 0 : p[_.name]) ?? !0, x),
6475
+ const m = Ae(null), y = (p, d) => p.reduce(
6476
+ (L, _) => (L[_.name] = (d == null ? void 0 : d[_.name]) ?? !0, L),
6469
6477
  {}
6470
6478
  ), [v, S] = ze(
6471
6479
  () => y(a.series)
6472
6480
  );
6473
6481
  kt(() => {
6474
- S((d) => {
6475
- const p = y(a.series, d), x = Object.keys(d), _ = Object.keys(p);
6476
- return x.length === _.length && _.every((z) => d[z] === p[z]) ? d : p;
6482
+ S((p) => {
6483
+ const d = y(a.series, p), L = Object.keys(p), _ = Object.keys(d);
6484
+ return L.length === _.length && _.every(($) => p[$] === d[$]) ? p : d;
6477
6485
  });
6478
6486
  }, [a.series]);
6479
6487
  const w = E(() => {
6480
- var z, $;
6481
- const d = !!r, p = (F) => a.series.some(
6482
- (I, W) => (d ? (I.yAxisIndex ?? W) === F : F === 0) && v[I.name] !== !1
6483
- ), x = p(0), _ = d && p(1), T = a.series.map((F, I) => {
6488
+ var $, z;
6489
+ const p = !!r, d = (F) => a.series.some(
6490
+ (I, W) => (p ? (I.yAxisIndex ?? W) === F : F === 0) && v[I.name] !== !1
6491
+ ), L = d(0), _ = p && d(1), T = a.series.map((F, I) => {
6484
6492
  const W = F.color || (I === 0 ? "rgba(0, 121, 233, 1)" : "rgba(103, 242, 252, 1)"), N = o[I % o.length], P = {
6485
6493
  name: F.name,
6486
6494
  type: "line",
@@ -6501,7 +6509,7 @@ const Us = ({
6501
6509
  data: F.values,
6502
6510
  z: 3
6503
6511
  };
6504
- return d ? {
6512
+ return p ? {
6505
6513
  ...P,
6506
6514
  yAxisIndex: F.yAxisIndex ?? I
6507
6515
  } : P;
@@ -6519,8 +6527,8 @@ const Us = ({
6519
6527
  selectedMode: (u == null ? void 0 : u.selectedMode) ?? !0,
6520
6528
  selected: v,
6521
6529
  textStyle: {
6522
- color: ((z = u == null ? void 0 : u.textStyle) == null ? void 0 : z.color) ?? "rgba(255,255,255,0.8)",
6523
- fontSize: (($ = u == null ? void 0 : u.textStyle) == null ? void 0 : $.fontSize) ?? 12
6530
+ color: (($ = u == null ? void 0 : u.textStyle) == null ? void 0 : $.color) ?? "rgba(255,255,255,0.8)",
6531
+ fontSize: ((z = u == null ? void 0 : u.textStyle) == null ? void 0 : z.fontSize) ?? 12
6524
6532
  },
6525
6533
  data: a.series.map((F, I) => ({
6526
6534
  name: F.name,
@@ -6544,7 +6552,7 @@ const Us = ({
6544
6552
  var N;
6545
6553
  const I = ((N = F[0]) == null ? void 0 : N.axisValueLabel) ?? "", W = F.map((P) => {
6546
6554
  var R;
6547
- const B = ((R = a.series[P.seriesIndex]) == null ? void 0 : R.yAxisIndex) ?? P.seriesIndex, O = d && B === 1 ? r : c;
6555
+ const B = ((R = a.series[P.seriesIndex]) == null ? void 0 : R.yAxisIndex) ?? P.seriesIndex, O = p && B === 1 ? r : c;
6548
6556
  return `${P.marker} ${P.seriesName}: ${be(P.data)}${O ?? ""}`;
6549
6557
  }).join("<br/>");
6550
6558
  return `${I}<br/>${W}`;
@@ -6567,11 +6575,11 @@ const Us = ({
6567
6575
  },
6568
6576
  axisTick: { show: !1 }
6569
6577
  },
6570
- yAxis: d ? [
6578
+ yAxis: p ? [
6571
6579
  // 左侧 Y 轴
6572
6580
  {
6573
6581
  type: "value",
6574
- show: x,
6582
+ show: L,
6575
6583
  name: c,
6576
6584
  position: "left",
6577
6585
  scale: !0,
@@ -6625,7 +6633,7 @@ const Us = ({
6625
6633
  }
6626
6634
  ] : {
6627
6635
  type: "value",
6628
- show: x,
6636
+ show: L,
6629
6637
  name: c,
6630
6638
  scale: !0,
6631
6639
  // 自适应刻度,不强制从 0 开始
@@ -6665,43 +6673,43 @@ const Us = ({
6665
6673
  u,
6666
6674
  h,
6667
6675
  v
6668
- ]), k = E(() => {
6676
+ ]), x = E(() => {
6669
6677
  if (typeof h != "function") return h;
6670
- const d = (p, x) => p.color || (x === 0 ? "#3bbcff" : "#39d1a1");
6678
+ const p = (d, L) => d.color || (L === 0 ? "#3bbcff" : "#39d1a1");
6671
6679
  return h({
6672
6680
  selected: v,
6673
- series: a.series.map((p, x) => ({
6674
- ...p,
6675
- color: d(p, x),
6676
- selected: v[p.name] ?? !0
6681
+ series: a.series.map((d, L) => ({
6682
+ ...d,
6683
+ color: p(d, L),
6684
+ selected: v[d.name] ?? !0
6677
6685
  })),
6678
- toggleLegend: (p) => {
6679
- S((x) => {
6680
- const _ = !(x[p] ?? !0);
6686
+ toggleLegend: (d) => {
6687
+ S((L) => {
6688
+ const _ = !(L[d] ?? !0);
6681
6689
  return {
6682
- ...x,
6683
- [p]: _
6690
+ ...L,
6691
+ [d]: _
6684
6692
  };
6685
6693
  });
6686
6694
  }
6687
6695
  });
6688
- }, [h, a.series, v]), L = E(
6696
+ }, [h, a.series, v]), k = E(
6689
6697
  () => ({
6690
- legendselectchanged: (d) => {
6691
- S(d.selected);
6698
+ legendselectchanged: (p) => {
6699
+ S(p.selected);
6692
6700
  }
6693
6701
  }),
6694
6702
  []
6695
6703
  );
6696
6704
  return /* @__PURE__ */ M("div", { style: { width: "100%", height: "100%", ...i }, children: [
6697
- k,
6705
+ x,
6698
6706
  /* @__PURE__ */ l(
6699
6707
  K,
6700
6708
  {
6701
6709
  ref: m,
6702
6710
  option: w,
6703
6711
  style: { width: "100%", height: "100%", ...b },
6704
- onEvents: L
6712
+ onEvents: k
6705
6713
  }
6706
6714
  )
6707
6715
  ] });
@@ -6967,17 +6975,17 @@ const Us = ({
6967
6975
  () => c || ["#33FF99", "#00FFCC", "#3399FF", "#007AFF"],
6968
6976
  [c]
6969
6977
  ), w = E(() => {
6970
- var $, F, I, W, N;
6971
- const k = {
6978
+ var z, F, I, W, N;
6979
+ const x = {
6972
6980
  max: 133.33,
6973
6981
  startAngle: 225,
6974
6982
  clockwise: !0,
6975
6983
  ...t
6976
- }, L = {
6984
+ }, k = {
6977
6985
  radius: ["28%", "100%"],
6978
6986
  center: ["38%", "50%"],
6979
6987
  ...s
6980
- }, d = {
6988
+ }, p = {
6981
6989
  show: !1,
6982
6990
  position: "outside",
6983
6991
  formatter: "{c}%",
@@ -6986,7 +6994,7 @@ const Us = ({
6986
6994
  fontWeight: "bold",
6987
6995
  distance: 5,
6988
6996
  ...u
6989
- }, p = {
6997
+ }, d = {
6990
6998
  show: !0,
6991
6999
  orient: "vertical",
6992
7000
  right: "5%",
@@ -6996,12 +7004,12 @@ const Us = ({
6996
7004
  itemWidth: 12,
6997
7005
  itemHeight: 12,
6998
7006
  ...h
6999
- }, x = {
7007
+ }, L = {
7000
7008
  color: "#AAB2BD",
7001
7009
  fontSize: 16,
7002
7010
  width: 80,
7003
7011
  padding: [0, 0, 0, 5],
7004
- ...(F = ($ = h == null ? void 0 : h.textStyle) == null ? void 0 : $.rich) == null ? void 0 : F.name
7012
+ ...(F = (z = h == null ? void 0 : h.textStyle) == null ? void 0 : z.rich) == null ? void 0 : F.name
7005
7013
  }, _ = {
7006
7014
  color: "#fff",
7007
7015
  fontSize: 20,
@@ -7010,7 +7018,7 @@ const Us = ({
7010
7018
  }, T = {
7011
7019
  ...h == null ? void 0 : h.textStyle,
7012
7020
  rich: {
7013
- name: x,
7021
+ name: L,
7014
7022
  value: _,
7015
7023
  ...(N = h == null ? void 0 : h.textStyle) == null ? void 0 : N.rich
7016
7024
  }
@@ -7023,7 +7031,7 @@ const Us = ({
7023
7031
  ...m
7024
7032
  },
7025
7033
  angleAxis: {
7026
- ...k,
7034
+ ...x,
7027
7035
  axisLine: { show: !1 },
7028
7036
  axisTick: { show: !1 },
7029
7037
  axisLabel: { show: !1 },
@@ -7038,7 +7046,7 @@ const Us = ({
7038
7046
  axisLabel: { show: !1 },
7039
7047
  splitLine: { show: !1 }
7040
7048
  },
7041
- polar: L,
7049
+ polar: k,
7042
7050
  series: [
7043
7051
  // =========================
7044
7052
  // 背景轨道
@@ -7073,11 +7081,11 @@ const Us = ({
7073
7081
  color: S[B % S.length],
7074
7082
  borderRadius: 999
7075
7083
  },
7076
- label: d
7084
+ label: p
7077
7085
  }))
7078
7086
  ],
7079
7087
  legend: {
7080
- ...p,
7088
+ ...d,
7081
7089
  data: [...v].reverse().map((P) => {
7082
7090
  const B = v.indexOf(P);
7083
7091
  return {
@@ -7627,11 +7635,11 @@ const Us = ({
7627
7635
  const y = {
7628
7636
  xAxis: ["1月", "2月", "3月", "4月", "5月", "6月"],
7629
7637
  value: [310, 180, 340, 210, 320, 240]
7630
- }, v = u != null && u.xAxis && u.xAxis.length > 0 ? u.xAxis : y.xAxis, S = u != null && u.value && u.value.length > 0 ? u.value : y.value, w = S.length > 0 ? Math.max(...S) : 0, L = S.length > 0 ? S.map(() => w) : [400, 400, 400, 400, 400, 400], d = h ?? 15, p = (m == null ? void 0 : m.background) || "rgba(255,255,255,0.05)", x = (m == null ? void 0 : m.gradientFrom) || "#97c8ff", _ = (m == null ? void 0 : m.gradientTo) || "#2f69f8", z = t ? ((F) => {
7638
+ }, v = u != null && u.xAxis && u.xAxis.length > 0 ? u.xAxis : y.xAxis, S = u != null && u.value && u.value.length > 0 ? u.value : y.value, w = S.length > 0 ? Math.max(...S) : 0, k = S.length > 0 ? S.map(() => w) : [400, 400, 400, 400, 400, 400], p = h ?? 15, d = (m == null ? void 0 : m.background) || "rgba(255,255,255,0.05)", L = (m == null ? void 0 : m.gradientFrom) || "#97c8ff", _ = (m == null ? void 0 : m.gradientTo) || "#2f69f8", $ = t ? ((F) => {
7631
7639
  if (!F || F.length === 0) return {};
7632
7640
  const I = Math.min(...F), W = Math.max(...F), N = W - I || W || 1, B = Math.pow(10, Math.floor(Math.log10(N))) / 2, O = I >= 0 ? 0 : Math.floor(I / B) * B, R = Math.ceil(W * 1.05 / B) * B;
7633
7641
  return { min: O, max: R };
7634
- })(S) : {}, $ = {
7642
+ })(S) : {}, z = {
7635
7643
  backgroundColor: "transparent",
7636
7644
  title: {
7637
7645
  text: a || "针对2023年半年的统计",
@@ -7693,8 +7701,8 @@ const Us = ({
7693
7701
  },
7694
7702
  yAxis: {
7695
7703
  type: "value",
7696
- ...t && z.min !== void 0 ? { min: z.min } : {},
7697
- ...t && z.max !== void 0 ? { max: z.max } : {},
7704
+ ...t && $.min !== void 0 ? { min: $.min } : {},
7705
+ ...t && $.max !== void 0 ? { max: $.max } : {},
7698
7706
  splitLine: {
7699
7707
  lineStyle: {
7700
7708
  type: "dashed",
@@ -7714,10 +7722,10 @@ const Us = ({
7714
7722
  {
7715
7723
  name: "Background",
7716
7724
  type: "bar",
7717
- barWidth: d,
7718
- data: L,
7725
+ barWidth: p,
7726
+ data: k,
7719
7727
  itemStyle: {
7720
- color: p
7728
+ color: d
7721
7729
  },
7722
7730
  tooltip: {
7723
7731
  show: !1
@@ -7729,11 +7737,11 @@ const Us = ({
7729
7737
  {
7730
7738
  name: "Value",
7731
7739
  type: "bar",
7732
- barWidth: d,
7740
+ barWidth: p,
7733
7741
  data: S,
7734
7742
  itemStyle: {
7735
7743
  color: new le.graphic.LinearGradient(0, 0, 0, 1, [
7736
- { offset: 0, color: x },
7744
+ { offset: 0, color: L },
7737
7745
  { offset: 1, color: _ }
7738
7746
  ])
7739
7747
  },
@@ -7741,7 +7749,7 @@ const Us = ({
7741
7749
  }
7742
7750
  ]
7743
7751
  };
7744
- return /* @__PURE__ */ l("div", { style: { width: "100%", height: "100%", ...i }, children: /* @__PURE__ */ l(K, { option: $, style: { height: "100%", width: "100%", ...b } }) });
7752
+ return /* @__PURE__ */ l("div", { style: { width: "100%", height: "100%", ...i }, children: /* @__PURE__ */ l(K, { option: z, style: { height: "100%", width: "100%", ...b } }) });
7745
7753
  }, Ql = "_container_15fyb_1", Jl = "_background_15fyb_8", fl = "_decoration_15fyb_18", gl = "_decoration1_15fyb_25", Cl = "_decoration2_15fyb_29", es = "_textContainer_15fyb_32", ts = "_title_15fyb_37", rs = "_subTitle_15fyb_45", Ye = {
7746
7754
  container: Ql,
7747
7755
  background: Jl,
@@ -7849,8 +7857,8 @@ const Us = ({
7849
7857
  const s = a.series.flatMap((u, h) => {
7850
7858
  const m = c[h % c.length], y = (v, S) => {
7851
7859
  if (v.startsWith("#") && v.length === 7) {
7852
- const w = parseInt(v.slice(1, 3), 16), k = parseInt(v.slice(3, 5), 16), L = parseInt(v.slice(5, 7), 16);
7853
- return `rgba(${w}, ${k}, ${L}, ${S})`;
7860
+ const w = parseInt(v.slice(1, 3), 16), x = parseInt(v.slice(3, 5), 16), k = parseInt(v.slice(5, 7), 16);
7861
+ return `rgba(${w}, ${x}, ${k}, ${S})`;
7854
7862
  }
7855
7863
  return v;
7856
7864
  };
@@ -8031,13 +8039,13 @@ const Us = ({
8031
8039
  endAngle: S = -269.9
8032
8040
  } = r, {
8033
8041
  show: w = !0,
8034
- right: k = "10%",
8035
- top: L = "center",
8036
- textStyle: d = {},
8037
- itemWidth: p = 8,
8038
- itemHeight: x = 8,
8042
+ right: x = "10%",
8043
+ top: k = "center",
8044
+ textStyle: p = {},
8045
+ itemWidth: d = 8,
8046
+ itemHeight: L = 8,
8039
8047
  itemGap: _ = 20
8040
- } = n, T = e.show ?? !!e.src, z = e.src, $ = e.size || 85, F = E(() => {
8048
+ } = n, T = e.show ?? !!e.src, $ = e.src, z = e.size || 85, F = E(() => {
8041
8049
  const I = [];
8042
8050
  return o.forEach((W, N) => {
8043
8051
  const P = `${h - N * m}%`;
@@ -8085,7 +8093,7 @@ const Us = ({
8085
8093
  detail: { show: !1 },
8086
8094
  data: [{ value: W.value }],
8087
8095
  z: 10
8088
- }), T && z ? N === 0 && I.push({
8096
+ }), T && $ ? N === 0 && I.push({
8089
8097
  type: "custom",
8090
8098
  coordinateSystem: "none",
8091
8099
  renderItem: (B, O) => {
@@ -8093,11 +8101,11 @@ const Us = ({
8093
8101
  return {
8094
8102
  type: "image",
8095
8103
  style: {
8096
- image: z,
8097
- x: ie - $ / 2,
8098
- y: J - $ / 2,
8099
- width: $,
8100
- height: $
8104
+ image: $,
8105
+ x: ie - z / 2,
8106
+ y: J - z / 2,
8107
+ width: z,
8108
+ height: z
8101
8109
  }
8102
8110
  };
8103
8111
  },
@@ -8156,11 +8164,11 @@ const Us = ({
8156
8164
  legend: {
8157
8165
  show: w,
8158
8166
  orient: "vertical",
8159
- right: k,
8160
- top: L,
8167
+ right: x,
8168
+ top: k,
8161
8169
  icon: "circle",
8162
- itemWidth: p,
8163
- itemHeight: x,
8170
+ itemWidth: d,
8171
+ itemHeight: L,
8164
8172
  itemGap: _,
8165
8173
  textStyle: {
8166
8174
  color: "#fff",
@@ -8179,7 +8187,7 @@ const Us = ({
8179
8187
  fontSize: 14
8180
8188
  }
8181
8189
  },
8182
- ...d
8190
+ ...p
8183
8191
  },
8184
8192
  data: o.map((W, N) => ({
8185
8193
  name: `data_${N}`,
@@ -8198,12 +8206,12 @@ const Us = ({
8198
8206
  }, [
8199
8207
  o,
8200
8208
  w,
8209
+ x,
8201
8210
  k,
8211
+ d,
8202
8212
  L,
8203
- p,
8204
- x,
8205
8213
  _,
8206
- d,
8214
+ p,
8207
8215
  h,
8208
8216
  m,
8209
8217
  s,
@@ -8212,8 +8220,8 @@ const Us = ({
8212
8220
  y,
8213
8221
  t,
8214
8222
  T,
8215
- z,
8216
8223
  $,
8224
+ z,
8217
8225
  u
8218
8226
  ]);
8219
8227
  return /* @__PURE__ */ l(
@@ -8240,16 +8248,16 @@ const Us = ({
8240
8248
  progressConfig: n = {},
8241
8249
  outerConfig: e = {}
8242
8250
  }) => {
8243
- const { color: t = "#00f2fe", value: s, name: u, startColor: h = "#00f2fe", endColor: m = "#4facfe" } = a, y = o.width ?? "200px", v = o.height ?? "200px", S = o.center ?? ["50%", "50%"], w = c.fontSize ?? 30, k = c.fontWeight ?? "bold", L = c.color ?? t, d = r.fontSize ?? 16, p = r.color ?? "#fff", x = r.marginTop ?? "10px", _ = n.radius ?? "70%", T = n.innerRadius ?? "0%", z = n.width ?? 15, $ = n.trackOpacity ?? 0.5, F = e.show ?? !0, I = e.radius ?? "84%", W = e.splitNumber ?? 20, N = e.tickWidth ?? 4, P = e.tickLength ?? 15, B = e.tickColor ?? "#fff", O = e.lineOpacity ?? 0.3, R = E(
8251
+ const { color: t = "#00f2fe", value: s, name: u, startColor: h = "#00f2fe", endColor: m = "#4facfe" } = a, y = o.width ?? "200px", v = o.height ?? "200px", S = o.center ?? ["50%", "50%"], w = c.fontSize ?? 30, x = c.fontWeight ?? "bold", k = c.color ?? t, p = r.fontSize ?? 16, d = r.color ?? "#fff", L = r.marginTop ?? "10px", _ = n.radius ?? "70%", T = n.innerRadius ?? "0%", $ = n.width ?? 15, z = n.trackOpacity ?? 0.5, F = e.show ?? !0, I = e.radius ?? "84%", W = e.splitNumber ?? 20, N = e.tickWidth ?? 4, P = e.tickLength ?? 15, B = e.tickColor ?? "#fff", O = e.lineOpacity ?? 0.3, R = E(
8244
8252
  () => ({
8245
8253
  title: {
8246
8254
  text: `${s}%`,
8247
8255
  left: "center",
8248
8256
  top: "center",
8249
8257
  textStyle: {
8250
- color: L,
8258
+ color: k,
8251
8259
  fontSize: w,
8252
- fontWeight: k
8260
+ fontWeight: x
8253
8261
  }
8254
8262
  },
8255
8263
  series: [
@@ -8285,7 +8293,7 @@ const Us = ({
8285
8293
  lineStyle: {
8286
8294
  color: [[1, t]],
8287
8295
  width: 1,
8288
- opacity: $
8296
+ opacity: z
8289
8297
  }
8290
8298
  },
8291
8299
  splitLine: { show: !1 },
@@ -8309,7 +8317,7 @@ const Us = ({
8309
8317
  },
8310
8318
  progress: {
8311
8319
  show: !0,
8312
- width: z,
8320
+ width: $,
8313
8321
  itemStyle: {
8314
8322
  color: new le.graphic.LinearGradient(0, 0, 1, 1, [
8315
8323
  { offset: 0, color: h },
@@ -8381,15 +8389,15 @@ const Us = ({
8381
8389
  }),
8382
8390
  [
8383
8391
  s,
8384
- L,
8385
- w,
8386
8392
  k,
8393
+ w,
8394
+ x,
8387
8395
  T,
8388
8396
  _,
8389
8397
  S,
8390
8398
  t,
8391
- $,
8392
8399
  z,
8400
+ $,
8393
8401
  h,
8394
8402
  m,
8395
8403
  F,
@@ -8417,9 +8425,9 @@ const Us = ({
8417
8425
  "div",
8418
8426
  {
8419
8427
  style: {
8420
- marginTop: x,
8421
- color: p,
8422
- fontSize: d
8428
+ marginTop: L,
8429
+ color: d,
8430
+ fontSize: p
8423
8431
  },
8424
8432
  children: u
8425
8433
  }
@@ -8447,16 +8455,16 @@ const Us = ({
8447
8455
  centerImage: v,
8448
8456
  color: S = "#00f2fe",
8449
8457
  data: w,
8450
- colors: k = ["#FFFFFF", "#FFD700", "#00FA9A", "#1E90FF", "#00FFFF"],
8451
- unit: L,
8452
- titleConfig: d,
8453
- legendConfig: p,
8454
- pieConfig: x,
8458
+ colors: x = ["#FFFFFF", "#FFD700", "#00FA9A", "#1E90FF", "#00FFFF"],
8459
+ unit: k,
8460
+ titleConfig: p,
8461
+ legendConfig: d,
8462
+ pieConfig: L,
8455
8463
  centerConfig: _,
8456
8464
  seriesConfig: T
8457
8465
  }) => {
8458
8466
  var Le, ke, q, Z, Je, He, fe, ot, lt, ee, Ie, ge, Ce, pt, $t, Ft, wt, Mt, ue, ut, st, Be, et, ct, tt, Ge, _t, Ze, At, Et;
8459
- const z = Ae(null), $ = Ae(null), F = sr($), [I, W] = ze(0), N = E(() => {
8467
+ const $ = Ae(null), z = Ae(null), F = sr(z), [I, W] = ze(0), N = E(() => {
8460
8468
  const A = w || [
8461
8469
  { value: 2e3, name: "统计一" },
8462
8470
  { value: 960, name: "统计二" },
@@ -8466,31 +8474,31 @@ const Us = ({
8466
8474
  ], te = A.reduce(($e, ye) => $e + ye.value, 0);
8467
8475
  return A.map(($e, ye) => ({
8468
8476
  ...$e,
8469
- color: $e.color || k[ye % k.length],
8477
+ color: $e.color || x[ye % x.length],
8470
8478
  percent: `${te > 0 ? ($e.value / te * 100).toFixed(0) : 0}%`
8471
8479
  }));
8472
- }, [w, k]), [P, B] = ze({}), [O, R] = ze();
8480
+ }, [w, x]), [P, B] = ze({}), [O, R] = ze();
8473
8481
  kt(() => {
8474
8482
  const A = {};
8475
8483
  N.forEach((te) => {
8476
8484
  A[te.name] = !0;
8477
8485
  }), B(A);
8478
8486
  }, [N]);
8479
- const re = E(() => N.reduce((A, te) => P[te.name] ? A + te.value : A, 0), [N, P]), de = (_ == null ? void 0 : _.image) || v || "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png", ie = (_ == null ? void 0 : _.imageSize) || 135, J = (x == null ? void 0 : x.center) || ["50%", "50%"], ve = ((Le = x == null ? void 0 : x.radius) == null ? void 0 : Le.outer) || ["74%", "88%"], U = ((ke = x == null ? void 0 : x.radius) == null ? void 0 : ke.inner) || ["58%", "68%"], H = ((q = x == null ? void 0 : x.radius) == null ? void 0 : q.halo) || ["50%", "90%"], G = (_ == null ? void 0 : _.radius) || "50%", Y = {
8480
- textAlign: (d == null ? void 0 : d.textAlign) || "center",
8481
- textVerticalAlign: (d == null ? void 0 : d.textVerticalAlign) || "middle",
8482
- z: (d == null ? void 0 : d.z) ?? 11,
8487
+ const re = E(() => N.reduce((A, te) => P[te.name] ? A + te.value : A, 0), [N, P]), de = (_ == null ? void 0 : _.image) || v || "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png", ie = (_ == null ? void 0 : _.imageSize) || 135, J = (L == null ? void 0 : L.center) || ["50%", "50%"], ve = ((Le = L == null ? void 0 : L.radius) == null ? void 0 : Le.outer) || ["74%", "88%"], U = ((ke = L == null ? void 0 : L.radius) == null ? void 0 : ke.inner) || ["58%", "68%"], H = ((q = L == null ? void 0 : L.radius) == null ? void 0 : q.halo) || ["50%", "90%"], G = (_ == null ? void 0 : _.radius) || "50%", Y = {
8488
+ textAlign: (p == null ? void 0 : p.textAlign) || "center",
8489
+ textVerticalAlign: (p == null ? void 0 : p.textVerticalAlign) || "middle",
8490
+ z: (p == null ? void 0 : p.z) ?? 11,
8483
8491
  valueStyle: {
8484
- color: ((Z = d == null ? void 0 : d.textStyle) == null ? void 0 : Z.color) || "#fff",
8485
- fontSize: ((Je = d == null ? void 0 : d.textStyle) == null ? void 0 : Je.fontSize) || 32,
8486
- fontWeight: ((He = d == null ? void 0 : d.textStyle) == null ? void 0 : He.fontWeight) || "bold",
8487
- lineHeight: ((fe = d == null ? void 0 : d.textStyle) == null ? void 0 : fe.lineHeight) || 40,
8488
- align: ((ot = d == null ? void 0 : d.textStyle) == null ? void 0 : ot.align) || "center"
8492
+ color: ((Z = p == null ? void 0 : p.textStyle) == null ? void 0 : Z.color) || "#fff",
8493
+ fontSize: ((Je = p == null ? void 0 : p.textStyle) == null ? void 0 : Je.fontSize) || 32,
8494
+ fontWeight: ((He = p == null ? void 0 : p.textStyle) == null ? void 0 : He.fontWeight) || "bold",
8495
+ lineHeight: ((fe = p == null ? void 0 : p.textStyle) == null ? void 0 : fe.lineHeight) || 40,
8496
+ align: ((ot = p == null ? void 0 : p.textStyle) == null ? void 0 : ot.align) || "center"
8489
8497
  },
8490
8498
  labelStyle: {
8491
- color: ((lt = d == null ? void 0 : d.labelStyle) == null ? void 0 : lt.color) || "#fff",
8492
- fontSize: ((ee = d == null ? void 0 : d.labelStyle) == null ? void 0 : ee.fontSize) || 14,
8493
- align: ((Ie = d == null ? void 0 : d.labelStyle) == null ? void 0 : Ie.align) || "center"
8499
+ color: ((lt = p == null ? void 0 : p.labelStyle) == null ? void 0 : lt.color) || "#fff",
8500
+ fontSize: ((ee = p == null ? void 0 : p.labelStyle) == null ? void 0 : ee.fontSize) || 14,
8501
+ align: ((Ie = p == null ? void 0 : p.labelStyle) == null ? void 0 : Ie.align) || "center"
8494
8502
  }
8495
8503
  }, D = {
8496
8504
  silent: ((ge = T == null ? void 0 : T.halo) == null ? void 0 : ge.silent) ?? !0,
@@ -8526,18 +8534,18 @@ const Us = ({
8526
8534
  lineOpacity: ((Et = _ == null ? void 0 : _.gauge) == null ? void 0 : Et.lineOpacity) ?? 0.5
8527
8535
  }, Se = E(() => ({
8528
8536
  legend: {
8529
- show: (p == null ? void 0 : p.show) ?? !1,
8537
+ show: (d == null ? void 0 : d.show) ?? !1,
8530
8538
  data: N.map((A) => A.name),
8531
8539
  selected: P
8532
8540
  },
8533
- title: d != null && d.text ? {
8541
+ title: p != null && p.text ? {
8534
8542
  left: J[0],
8535
8543
  top: J[1],
8536
8544
  textAlign: Y.textAlign,
8537
8545
  textVerticalAlign: Y.textVerticalAlign,
8538
8546
  z: Y.z,
8539
- text: `{value|${(d == null ? void 0 : d.text) || re.toLocaleString()}}
8540
- {label|${(d == null ? void 0 : d.label) || "三季度"}}`,
8547
+ text: `{value|${(p == null ? void 0 : p.text) || re.toLocaleString()}}
8548
+ {label|${(p == null ? void 0 : p.label) || "三季度"}}`,
8541
8549
  textStyle: {
8542
8550
  rich: {
8543
8551
  value: {
@@ -8546,13 +8554,13 @@ const Us = ({
8546
8554
  fontWeight: Y.valueStyle.fontWeight,
8547
8555
  lineHeight: Y.valueStyle.lineHeight,
8548
8556
  align: Y.valueStyle.align,
8549
- ...d == null ? void 0 : d.textStyle
8557
+ ...p == null ? void 0 : p.textStyle
8550
8558
  },
8551
8559
  label: {
8552
8560
  color: Y.labelStyle.color,
8553
8561
  fontSize: Y.labelStyle.fontSize,
8554
8562
  align: Y.labelStyle.align,
8555
- ...d == null ? void 0 : d.labelStyle
8563
+ ...p == null ? void 0 : p.labelStyle
8556
8564
  }
8557
8565
  }
8558
8566
  }
@@ -8578,7 +8586,7 @@ const Us = ({
8578
8586
  radius: ve,
8579
8587
  center: J,
8580
8588
  avoidLabelOverlap: X.avoidLabelOverlap,
8581
- padAngle: (x == null ? void 0 : x.padAngle) ?? 5,
8589
+ padAngle: (L == null ? void 0 : L.padAngle) ?? 5,
8582
8590
  itemStyle: {
8583
8591
  borderRadius: X.borderRadius
8584
8592
  },
@@ -8610,7 +8618,7 @@ const Us = ({
8610
8618
  radius: U,
8611
8619
  center: J,
8612
8620
  avoidLabelOverlap: X.avoidLabelOverlap,
8613
- padAngle: (x == null ? void 0 : x.padAngle) ?? 5,
8621
+ padAngle: (L == null ? void 0 : L.padAngle) ?? 5,
8614
8622
  itemStyle: {
8615
8623
  borderRadius: X.borderRadius,
8616
8624
  opacity: X.innerOpacity
@@ -8699,7 +8707,7 @@ const Us = ({
8699
8707
  }), [
8700
8708
  N,
8701
8709
  P,
8702
- d,
8710
+ p,
8703
8711
  re,
8704
8712
  de,
8705
8713
  ie,
@@ -8708,9 +8716,9 @@ const Us = ({
8708
8716
  U,
8709
8717
  H,
8710
8718
  G,
8711
- x == null ? void 0 : x.padAngle,
8719
+ L == null ? void 0 : L.padAngle,
8712
8720
  S,
8713
- p == null ? void 0 : p.show,
8721
+ d == null ? void 0 : d.show,
8714
8722
  Y,
8715
8723
  D,
8716
8724
  X,
@@ -8723,24 +8731,24 @@ const Us = ({
8723
8731
  [A]: !te[A]
8724
8732
  }));
8725
8733
  }, Me = (A) => {
8726
- P[A] && (R(A), z.current && z.current.getEchartsInstance().dispatchAction({
8734
+ P[A] && (R(A), $.current && $.current.getEchartsInstance().dispatchAction({
8727
8735
  type: "highlight",
8728
8736
  name: A
8729
8737
  }));
8730
8738
  }, Re = (A) => {
8731
- R(void 0), z.current && z.current.getEchartsInstance().dispatchAction({
8739
+ R(void 0), $.current && $.current.getEchartsInstance().dispatchAction({
8732
8740
  type: "downplay",
8733
8741
  name: A
8734
8742
  });
8735
8743
  }, Ue = {
8736
8744
  mouseover: (A) => {
8737
- A.seriesType === "pie" && A.name && z.current && (R(A.name), z.current.getEchartsInstance().dispatchAction({
8745
+ A.seriesType === "pie" && A.name && $.current && (R(A.name), $.current.getEchartsInstance().dispatchAction({
8738
8746
  type: "highlight",
8739
8747
  name: A.name
8740
8748
  }));
8741
8749
  },
8742
8750
  mouseout: (A) => {
8743
- A.seriesType === "pie" && A.name && z.current && (R(void 0), z.current.getEchartsInstance().dispatchAction({
8751
+ A.seriesType === "pie" && A.name && $.current && (R(void 0), $.current.getEchartsInstance().dispatchAction({
8744
8752
  type: "downplay",
8745
8753
  name: A.name
8746
8754
  }));
@@ -8748,7 +8756,7 @@ const Us = ({
8748
8756
  click: (A) => {
8749
8757
  A.seriesType !== "pie" || !A.name || he(A.name);
8750
8758
  }
8751
- }, j = (p == null ? void 0 : p.columns) || 2, V = (p == null ? void 0 : p.width) || 220, se = (p == null ? void 0 : p.gap) || { column: 20, row: 20 }, ae = p == null ? void 0 : p.virtual, C = !!(ae != null && ae.enabled && j === 1 && (p == null ? void 0 : p.type) === "simple"), pe = (ae == null ? void 0 : ae.itemHeight) ?? 46, oe = (ae == null ? void 0 : ae.overscan) ?? 3, me = E(() => {
8759
+ }, j = (d == null ? void 0 : d.columns) || 2, V = (d == null ? void 0 : d.width) || 220, se = (d == null ? void 0 : d.gap) || { column: 20, row: 20 }, ae = d == null ? void 0 : d.virtual, C = !!(ae != null && ae.enabled && j === 1 && (d == null ? void 0 : d.type) === "simple"), pe = (ae == null ? void 0 : ae.itemHeight) ?? 46, oe = (ae == null ? void 0 : ae.overscan) ?? 3, me = E(() => {
8752
8760
  if (!C)
8753
8761
  return {
8754
8762
  start: 0,
@@ -8792,7 +8800,7 @@ const Us = ({
8792
8800
  onClick: () => he(A.name),
8793
8801
  onMouseEnter: () => Me(A.name),
8794
8802
  onMouseLeave: () => Re(A.name),
8795
- children: (p == null ? void 0 : p.type) === "simple" ? (
8803
+ children: (d == null ? void 0 : d.type) === "simple" ? (
8796
8804
  // 简单横向布局
8797
8805
  /* @__PURE__ */ M(
8798
8806
  "div",
@@ -8803,7 +8811,7 @@ const Us = ({
8803
8811
  gap: 14,
8804
8812
  height: 38,
8805
8813
  padding: "0 16px",
8806
- fontSize: `${((Ot = p == null ? void 0 : p.textStyle) == null ? void 0 : Ot.fontSize) || 14}px`,
8814
+ fontSize: `${((Ot = d == null ? void 0 : d.textStyle) == null ? void 0 : Ot.fontSize) || 14}px`,
8807
8815
  fontWeight: 700,
8808
8816
  color: "#eaf6ff",
8809
8817
  cursor: "pointer",
@@ -8818,8 +8826,8 @@ const Us = ({
8818
8826
  "div",
8819
8827
  {
8820
8828
  style: {
8821
- width: `${(p == null ? void 0 : p.itemWidth) || 16}px`,
8822
- height: `${(p == null ? void 0 : p.itemHeight) || 16}px`,
8829
+ width: `${(d == null ? void 0 : d.itemWidth) || 16}px`,
8830
+ height: `${(d == null ? void 0 : d.itemHeight) || 16}px`,
8823
8831
  background: "rgba(5, 38, 86, 0.9)",
8824
8832
  border: `2px solid ${qe}`,
8825
8833
  borderRadius: "50%",
@@ -8834,8 +8842,8 @@ const Us = ({
8834
8842
  "span",
8835
8843
  {
8836
8844
  style: {
8837
- color: ye ? ((Rt = p == null ? void 0 : p.textStyle) == null ? void 0 : Rt.color) || "#fff" : "#aaa",
8838
- fontSize: `${((Ht = p == null ? void 0 : p.textStyle) == null ? void 0 : Ht.fontSize) || 14}px`,
8845
+ color: ye ? ((Rt = d == null ? void 0 : d.textStyle) == null ? void 0 : Rt.color) || "#fff" : "#aaa",
8846
+ fontSize: `${((Ht = d == null ? void 0 : d.textStyle) == null ? void 0 : Ht.fontSize) || 14}px`,
8839
8847
  fontWeight: 700,
8840
8848
  transition: "color 0.3s",
8841
8849
  whiteSpace: "nowrap",
@@ -8849,8 +8857,8 @@ const Us = ({
8849
8857
  "span",
8850
8858
  {
8851
8859
  style: {
8852
- color: ye ? ((Gt = p == null ? void 0 : p.textStyle) == null ? void 0 : Gt.color) || "#fff" : "#aaa",
8853
- fontSize: `${((qt = p == null ? void 0 : p.textStyle) == null ? void 0 : qt.fontSize) || 14}px`,
8860
+ color: ye ? ((Gt = d == null ? void 0 : d.textStyle) == null ? void 0 : Gt.color) || "#fff" : "#aaa",
8861
+ fontSize: `${((qt = d == null ? void 0 : d.textStyle) == null ? void 0 : qt.fontSize) || 14}px`,
8854
8862
  fontWeight: 700,
8855
8863
  transition: "color 0.3s",
8856
8864
  marginLeft: "auto",
@@ -8858,7 +8866,7 @@ const Us = ({
8858
8866
  },
8859
8867
  children: [
8860
8868
  A.value,
8861
- L
8869
+ k
8862
8870
  ]
8863
8871
  }
8864
8872
  )
@@ -8882,8 +8890,8 @@ const Us = ({
8882
8890
  "div",
8883
8891
  {
8884
8892
  style: {
8885
- width: `${(p == null ? void 0 : p.itemWidth) || 12}px`,
8886
- height: `${(p == null ? void 0 : p.itemHeight) || 12}px`,
8893
+ width: `${(d == null ? void 0 : d.itemWidth) || 12}px`,
8894
+ height: `${(d == null ? void 0 : d.itemHeight) || 12}px`,
8887
8895
  backgroundColor: qe,
8888
8896
  marginRight: "8px",
8889
8897
  boxShadow: nt && ye ? `0 0 8px ${qe}` : "none",
@@ -8896,8 +8904,8 @@ const Us = ({
8896
8904
  "span",
8897
8905
  {
8898
8906
  style: {
8899
- color: ye ? ((Vt = p == null ? void 0 : p.textStyle) == null ? void 0 : Vt.color) || "#fff" : "#aaa",
8900
- fontSize: `${((Xt = p == null ? void 0 : p.textStyle) == null ? void 0 : Xt.fontSize) || 14}px`,
8907
+ color: ye ? ((Vt = d == null ? void 0 : d.textStyle) == null ? void 0 : Vt.color) || "#fff" : "#aaa",
8908
+ fontSize: `${((Xt = d == null ? void 0 : d.textStyle) == null ? void 0 : Xt.fontSize) || 14}px`,
8901
8909
  transition: "color 0.3s",
8902
8910
  ...s
8903
8911
  },
@@ -8941,8 +8949,8 @@ const Us = ({
8941
8949
  "span",
8942
8950
  {
8943
8951
  style: {
8944
- color: ((jt = p == null ? void 0 : p.textStyle) == null ? void 0 : jt.color) || "#fff",
8945
- fontSize: `${((Yt = p == null ? void 0 : p.textStyle) == null ? void 0 : Yt.fontSize) || 14}px`,
8952
+ color: ((jt = d == null ? void 0 : d.textStyle) == null ? void 0 : jt.color) || "#fff",
8953
+ fontSize: `${((Yt = d == null ? void 0 : d.textStyle) == null ? void 0 : Yt.fontSize) || 14}px`,
8946
8954
  marginLeft: "15px",
8947
8955
  lineHeight: "1",
8948
8956
  ...m
@@ -8962,7 +8970,7 @@ const Us = ({
8962
8970
  ),
8963
8971
  " ",
8964
8972
  A.value,
8965
- L
8973
+ k
8966
8974
  ]
8967
8975
  }
8968
8976
  )
@@ -8989,7 +8997,7 @@ const Us = ({
8989
8997
  /* @__PURE__ */ l("div", { style: { flex: 1, height: "100%", ...c }, children: /* @__PURE__ */ l(
8990
8998
  K,
8991
8999
  {
8992
- ref: z,
9000
+ ref: $,
8993
9001
  option: Se,
8994
9002
  style: { width: "100%", height: "100%", ...a },
8995
9003
  opts: { renderer: o },
@@ -8999,7 +9007,7 @@ const Us = ({
8999
9007
  /* @__PURE__ */ l(
9000
9008
  "div",
9001
9009
  {
9002
- ref: $,
9010
+ ref: z,
9003
9011
  className: os.customScrollbar,
9004
9012
  onScroll: C ? xe : void 0,
9005
9013
  style: {
@@ -9039,34 +9047,34 @@ const Us = ({
9039
9047
  tooltipConfig: t,
9040
9048
  yAxisConfig: s
9041
9049
  }) => {
9042
- var L, d;
9050
+ var k, p;
9043
9051
  const h = o || {
9044
9052
  categories: ["1月", "2月", "3月", "4月", "5月"],
9045
9053
  series: [
9046
9054
  { name: "系列1", data: [42, 33, 28, 36, 36] },
9047
9055
  { name: "系列2", data: [11, 20, 25, 17, 17] }
9048
9056
  ]
9049
- }, m = ((L = h.series[0]) == null ? void 0 : L.name) || "系列1", y = ((d = h.series[1]) == null ? void 0 : d.name) || "系列2", [v, S] = ze({
9057
+ }, m = ((k = h.series[0]) == null ? void 0 : k.name) || "系列1", y = ((p = h.series[1]) == null ? void 0 : p.name) || "系列2", [v, S] = ze({
9050
9058
  [m]: !0,
9051
9059
  [y]: !0
9052
9060
  });
9053
9061
  kt(() => {
9054
- S((p) => ({
9055
- ...p,
9056
- [m]: p[m] !== !1,
9057
- [y]: p[y] !== !1
9062
+ S((d) => ({
9063
+ ...d,
9064
+ [m]: d[m] !== !1,
9065
+ [y]: d[y] !== !1
9058
9066
  }));
9059
9067
  }, [m, y]);
9060
9068
  const w = E(
9061
9069
  () => ({
9062
- legendselectchanged: (p) => {
9063
- S(p.selected);
9070
+ legendselectchanged: (d) => {
9071
+ S(d.selected);
9064
9072
  }
9065
9073
  }),
9066
9074
  []
9067
- ), k = E(() => {
9075
+ ), x = E(() => {
9068
9076
  var I, W, N;
9069
- const p = h.categories, x = ((I = h.series[0]) == null ? void 0 : I.data) || [], _ = ((W = h.series[1]) == null ? void 0 : W.data) || [], T = x.map((P, B) => (v[m] !== !1 ? P : 0) + (_[B] || 0)), z = 20, $ = {
9077
+ const d = h.categories, L = ((I = h.series[0]) == null ? void 0 : I.data) || [], _ = ((W = h.series[1]) == null ? void 0 : W.data) || [], T = L.map((P, B) => (v[m] !== !1 ? P : 0) + (_[B] || 0)), $ = 20, z = {
9070
9078
  series1: {
9071
9079
  body: {
9072
9080
  type: "linear",
@@ -9108,8 +9116,8 @@ const Us = ({
9108
9116
  // 底部与系列1顶部一致
9109
9117
  }
9110
9118
  }, F = {
9111
- series1: { ...$.series1, ...r == null ? void 0 : r.series1 },
9112
- series2: { ...$.series2, ...r == null ? void 0 : r.series2 }
9119
+ series1: { ...z.series1, ...r == null ? void 0 : r.series1 },
9120
+ series2: { ...z.series2, ...r == null ? void 0 : r.series2 }
9113
9121
  };
9114
9122
  return {
9115
9123
  backgroundColor: "transparent",
@@ -9149,7 +9157,7 @@ const Us = ({
9149
9157
  },
9150
9158
  xAxis: {
9151
9159
  type: "category",
9152
- data: p,
9160
+ data: d,
9153
9161
  axisLine: {
9154
9162
  show: !0,
9155
9163
  lineStyle: {
@@ -9194,17 +9202,17 @@ const Us = ({
9194
9202
  name: m,
9195
9203
  type: "bar",
9196
9204
  stack: "total",
9197
- barWidth: z,
9205
+ barWidth: $,
9198
9206
  itemStyle: {
9199
9207
  color: F.series1.body
9200
9208
  },
9201
- data: x
9209
+ data: L
9202
9210
  },
9203
9211
  {
9204
9212
  name: y,
9205
9213
  type: "bar",
9206
9214
  stack: "total",
9207
- barWidth: z,
9215
+ barWidth: $,
9208
9216
  itemStyle: {
9209
9217
  color: F.series2.body
9210
9218
  },
@@ -9216,14 +9224,14 @@ const Us = ({
9216
9224
  name: m,
9217
9225
  type: "pictorialBar",
9218
9226
  symbol: "diamond",
9219
- symbolSize: [z, 10],
9227
+ symbolSize: [$, 10],
9220
9228
  symbolOffset: [0, "50%"],
9221
9229
  // 向下偏移一半高度
9222
9230
  z: 12,
9223
9231
  itemStyle: {
9224
9232
  color: F.series1.bottom
9225
9233
  },
9226
- data: x.map(() => 1),
9234
+ data: L.map(() => 1),
9227
9235
  // 在底部渲染
9228
9236
  tooltip: { show: !1 },
9229
9237
  emphasis: { scale: !1 },
@@ -9234,7 +9242,7 @@ const Us = ({
9234
9242
  name: m,
9235
9243
  type: "pictorialBar",
9236
9244
  symbol: "diamond",
9237
- symbolSize: [z, 10],
9245
+ symbolSize: [$, 10],
9238
9246
  symbolOffset: [0, "-50%"],
9239
9247
  // 向上偏移一半,盖在系列1顶部
9240
9248
  symbolPosition: "end",
@@ -9244,7 +9252,7 @@ const Us = ({
9244
9252
  borderColor: "#0055FF",
9245
9253
  borderWidth: 1
9246
9254
  },
9247
- data: x,
9255
+ data: L,
9248
9256
  tooltip: { show: !1 },
9249
9257
  emphasis: { scale: !1 },
9250
9258
  silent: !0
@@ -9254,7 +9262,7 @@ const Us = ({
9254
9262
  name: y,
9255
9263
  type: "pictorialBar",
9256
9264
  symbol: "diamond",
9257
- symbolSize: [z, 10],
9265
+ symbolSize: [$, 10],
9258
9266
  symbolOffset: [0, "-50%"],
9259
9267
  // 向上偏移,盖在柱子顶端
9260
9268
  symbolPosition: "end",
@@ -9285,7 +9293,7 @@ const Us = ({
9285
9293
  return /* @__PURE__ */ l("div", { className: i, style: { width: "100%", height: "100%", ...b }, children: /* @__PURE__ */ l(
9286
9294
  K,
9287
9295
  {
9288
- option: k,
9296
+ option: x,
9289
9297
  style: { width: "100%", height: "100%", ...a },
9290
9298
  onEvents: w
9291
9299
  }
@@ -9351,11 +9359,11 @@ const Us = ({
9351
9359
  infoStyle: v,
9352
9360
  headerStyle: S,
9353
9361
  labelStyle: w,
9354
- valueStyle: k,
9355
- progressBarStyle: L,
9356
- blockStyle: d
9362
+ valueStyle: x,
9363
+ progressBarStyle: k,
9364
+ blockStyle: p
9357
9365
  }) => {
9358
- const p = Math.max(0, Math.min(100, o ?? a)), x = Math.round(p / 100 * e), _ = c ? c(a) : `${a.toFixed(1)}%`, T = () => r ? typeof r == "string" ? /* @__PURE__ */ l("img", { src: r, alt: "icon", style: { width: "100%", height: "100%", objectFit: "contain" } }) : r : /* @__PURE__ */ l(ws, {});
9366
+ const d = Math.max(0, Math.min(100, o ?? a)), L = Math.round(d / 100 * e), _ = c ? c(a) : `${a.toFixed(1)}%`, T = () => r ? typeof r == "string" ? /* @__PURE__ */ l("img", { src: r, alt: "icon", style: { width: "100%", height: "100%", objectFit: "contain" } }) : r : /* @__PURE__ */ l(ws, {});
9359
9367
  return /* @__PURE__ */ M(
9360
9368
  "div",
9361
9369
  {
@@ -9471,24 +9479,24 @@ const Us = ({
9471
9479
  /* @__PURE__ */ M("div", { className: Oe.info, style: v, children: [
9472
9480
  /* @__PURE__ */ M("div", { className: Oe.header, style: S, children: [
9473
9481
  /* @__PURE__ */ l("span", { className: Oe.label, style: w, children: b }),
9474
- /* @__PURE__ */ l("span", { className: Oe.value, style: k, children: _ })
9482
+ /* @__PURE__ */ l("span", { className: Oe.value, style: x, children: _ })
9475
9483
  ] }),
9476
9484
  /* @__PURE__ */ l(
9477
9485
  "div",
9478
9486
  {
9479
9487
  className: Oe.progressBar,
9480
9488
  style: {
9481
- ...L,
9489
+ ...k,
9482
9490
  "--total-blocks": e,
9483
9491
  "--gap-count": e - 1
9484
9492
  },
9485
- children: Array.from({ length: e }).map((z, $) => /* @__PURE__ */ l(
9493
+ children: Array.from({ length: e }).map(($, z) => /* @__PURE__ */ l(
9486
9494
  "div",
9487
9495
  {
9488
- className: We(Oe.block, { [Oe.active]: $ < x }),
9489
- style: d
9496
+ className: We(Oe.block, { [Oe.active]: z < L }),
9497
+ style: p
9490
9498
  },
9491
- $
9499
+ z
9492
9500
  ))
9493
9501
  }
9494
9502
  )