@aura-react-comp/charts 0.2.0 → 0.4.0

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.
Files changed (98) hide show
  1. package/esm/charts/area-chart/index.d.ts +2 -2
  2. package/esm/charts/area-chart/index.js +28 -23
  3. package/esm/charts/bar-chart/index.d.ts +1 -1
  4. package/esm/charts/bar-chart/index.js +18 -21
  5. package/esm/charts/candlestick-chart/index.d.ts +2 -2
  6. package/esm/charts/candlestick-chart/index.js +243 -180
  7. package/esm/charts/combo-chart/index.d.ts +1 -1
  8. package/esm/charts/combo-chart/index.js +9 -20
  9. package/esm/charts/funnel-chart/index.d.ts +2 -2
  10. package/esm/charts/funnel-chart/index.js +134 -108
  11. package/esm/charts/gauge-chart/index.d.ts +1 -1
  12. package/esm/charts/gauge-chart/index.js +103 -105
  13. package/esm/charts/graph-chart/index.d.ts +3 -3
  14. package/esm/charts/graph-chart/index.js +155 -114
  15. package/esm/charts/heatmap-chart/index.d.ts +2 -2
  16. package/esm/charts/heatmap-chart/index.js +180 -135
  17. package/esm/charts/line-chart/index.d.ts +2 -2
  18. package/esm/charts/line-chart/index.js +29 -24
  19. package/esm/charts/pie-chart/index.d.ts +2 -2
  20. package/esm/charts/pie-chart/index.d.ts.map +1 -1
  21. package/esm/charts/pie-chart/index.js +199 -139
  22. package/esm/charts/radar-chart/index.d.ts +2 -2
  23. package/esm/charts/radar-chart/index.d.ts.map +1 -1
  24. package/esm/charts/radar-chart/index.js +155 -128
  25. package/esm/charts/ring-progress/index.d.ts +1 -1
  26. package/esm/charts/ring-progress/index.js +82 -82
  27. package/esm/charts/sankey-chart/index.d.ts +3 -3
  28. package/esm/charts/sankey-chart/index.js +172 -141
  29. package/esm/charts/scatter-chart/index.d.ts +3 -3
  30. package/esm/charts/scatter-chart/index.d.ts.map +1 -1
  31. package/esm/charts/scatter-chart/index.js +226 -159
  32. package/esm/charts/sparkline/index.d.ts +1 -1
  33. package/esm/charts/sparkline/index.js +82 -66
  34. package/esm/charts/tree-chart/index.d.ts +3 -3
  35. package/esm/charts/tree-chart/index.js +129 -102
  36. package/esm/charts/treemap-chart/index.d.ts +3 -3
  37. package/esm/charts/treemap-chart/index.js +163 -141
  38. package/esm/charts/waterfall-chart/index.d.ts +2 -2
  39. package/esm/charts/waterfall-chart/index.js +166 -121
  40. package/esm/components/Legend.d.ts +5 -4
  41. package/esm/components/Legend.d.ts.map +1 -1
  42. package/esm/components/Legend.js +80 -48
  43. package/esm/components/Tooltip.d.ts +2 -2
  44. package/esm/components/Tooltip.js +63 -71
  45. package/esm/components/chart/index.d.ts +5 -2
  46. package/esm/components/chart/index.d.ts.map +1 -1
  47. package/esm/components/chart/index.js +81 -102
  48. package/esm/components/chart.less +13 -0
  49. package/esm/core/animation.js +32 -43
  50. package/esm/core/export.d.ts +34 -0
  51. package/esm/core/export.d.ts.map +1 -0
  52. package/esm/core/export.js +390 -0
  53. package/esm/core/force.js +23 -45
  54. package/esm/core/format.js +49 -52
  55. package/esm/core/hierarchy.d.ts +1 -1
  56. package/esm/core/hierarchy.js +61 -92
  57. package/esm/core/layout.d.ts +1 -1
  58. package/esm/core/layout.js +33 -50
  59. package/esm/core/sampling.js +31 -53
  60. package/esm/core/sankey.js +36 -55
  61. package/esm/core/scale.js +73 -86
  62. package/esm/core/shape.js +102 -133
  63. package/esm/core/sync.d.ts +41 -0
  64. package/esm/core/sync.d.ts.map +1 -0
  65. package/esm/core/sync.js +120 -0
  66. package/esm/hooks/useChartExport.d.ts +19 -0
  67. package/esm/hooks/useChartExport.d.ts.map +1 -0
  68. package/esm/hooks/useChartExport.js +35 -0
  69. package/esm/hooks/useChartTheme.d.ts +6 -5
  70. package/esm/hooks/useChartTheme.d.ts.map +1 -1
  71. package/esm/hooks/useChartTheme.js +18 -18
  72. package/esm/hooks/useChartTransition.d.ts +1 -1
  73. package/esm/hooks/useChartTransition.js +59 -73
  74. package/esm/hooks/useElementSize.js +20 -28
  75. package/esm/hooks/usePlotPointer.d.ts +23 -0
  76. package/esm/hooks/usePlotPointer.d.ts.map +1 -0
  77. package/esm/hooks/usePlotPointer.js +94 -0
  78. package/esm/index.d.ts +56 -50
  79. package/esm/index.d.ts.map +1 -1
  80. package/esm/index.js +137 -47
  81. package/esm/internal/CartesianChart.d.ts +1 -1
  82. package/esm/internal/CartesianChart.d.ts.map +1 -1
  83. package/esm/internal/CartesianChart.js +667 -485
  84. package/esm/internal/model.d.ts +2 -2
  85. package/esm/internal/model.js +45 -60
  86. package/esm/scene/canvas.d.ts +1 -1
  87. package/esm/scene/canvas.js +101 -107
  88. package/esm/scene/svg.d.ts +1 -1
  89. package/esm/scene/svg.js +107 -99
  90. package/esm/scene/types.js +9 -15
  91. package/esm/style.css +10 -0
  92. package/esm/theme/index.d.ts +2 -2
  93. package/esm/theme/index.d.ts.map +1 -1
  94. package/esm/theme/index.js +145 -170
  95. package/esm/types.d.ts +7 -3
  96. package/esm/types.d.ts.map +1 -1
  97. package/esm/types.js +1 -1
  98. package/package.json +2 -2
@@ -1,30 +1,30 @@
1
- import React, { useMemo, useState } from 'react';
2
- import { classNames, prefixCls } from '@aura-react-comp/shared';
1
+ 'use client';
2
+ // src/charts/sankey-chart/index.tsx
3
+ import { useMemo, useState } from "react";
4
+ import { classNames, prefixCls } from "@aura-react-comp/shared";
3
5
  import { SvgScene } from "../../scene/svg";
4
- import { formatNumber, formatPercent, estimateTextWidth } from "../../core/format";
6
+ import {
7
+ formatNumber,
8
+ formatPercent,
9
+ estimateTextWidth
10
+ } from "../../core/format";
5
11
  import { withAlpha } from "../../theme";
6
- import { layoutSankey } from "../../core/sankey";
12
+ import {
13
+ layoutSankey
14
+ } from "../../core/sankey";
7
15
  import { useChartTheme } from "../../hooks/useChartTheme";
8
16
  import { useElementSize } from "../../hooks/useElementSize";
9
17
  import { useChartTransition } from "../../hooks/useChartTransition";
10
18
  import { resolveAnimation, staggerProgress } from "../../core/animation";
11
19
  import { Tooltip } from "../../components/Tooltip";
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { jsxs as _jsxs } from "react/jsx-runtime";
14
- /**
15
- * 桑基图。
16
- *
17
- * 用带宽编码流量,用节点位置编码阶段,一眼能看出「东西从哪来、到哪去、路上漏了多少」。
18
- *
19
- * 与漏斗图的区别:漏斗只能表达单链路层层递减,桑基能表达分流与合流。
20
- */
21
- export function SankeyChart({
20
+ import { jsx, jsxs } from "react/jsx-runtime";
21
+ function SankeyChart({
22
22
  nodes: nodesProp,
23
23
  links = [],
24
24
  nodeWidth = 12,
25
25
  nodeGap = 10,
26
26
  showValue = true,
27
- width = '100%',
27
+ width = "100%",
28
28
  height = 360,
29
29
  theme: themeInput,
30
30
  palette,
@@ -33,79 +33,94 @@ export function SankeyChart({
33
33
  className,
34
34
  style,
35
35
  ariaLabel,
36
- emptyText = '暂无数据'
36
+ emptyText = "暂无数据"
37
37
  }) {
38
38
  const theme = useChartTheme(themeInput, palette);
39
- const {
40
- ref,
41
- size
42
- } = useElementSize();
39
+ const { ref, size } = useElementSize();
43
40
  const [activeLink, setActiveLink] = useState(null);
44
41
  const [activeNode, setActiveNode] = useState(null);
45
- const animKey = typeof animation === 'object' ? JSON.stringify(animation) : String(animation);
46
- const animConfig = useMemo(() => resolveAnimation(animation),
47
- // eslint-disable-next-line react-hooks/exhaustive-deps
48
- [animKey]);
49
-
50
- /** 只给 links 时,按出现顺序补出节点 */
42
+ const animKey = typeof animation === "object" ? JSON.stringify(animation) : String(animation);
43
+ const animConfig = useMemo(
44
+ () => resolveAnimation(animation),
45
+ // eslint-disable-next-line react-hooks/exhaustive-deps
46
+ [animKey]
47
+ );
51
48
  const nodes = useMemo(() => {
52
- if (nodesProp?.length) return nodesProp;
53
- const seen = new Set();
49
+ if (nodesProp == null ? void 0 : nodesProp.length)
50
+ return nodesProp;
51
+ const seen = /* @__PURE__ */ new Set();
54
52
  const derived = [];
55
53
  for (const link of links) {
56
54
  if (!seen.has(link.source)) {
57
55
  seen.add(link.source);
58
- derived.push({
59
- name: link.source
60
- });
56
+ derived.push({ name: link.source });
61
57
  }
62
58
  if (!seen.has(link.target)) {
63
59
  seen.add(link.target);
64
- derived.push({
65
- name: link.target
66
- });
60
+ derived.push({ name: link.target });
67
61
  }
68
62
  }
69
63
  return derived;
70
64
  }, [nodesProp, links]);
71
- const total = useMemo(() => links.reduce((sum, link) => sum + (link.value || 0), 0) || 1, [links]);
72
-
73
- // 左右各留出标签空间
65
+ const total = useMemo(
66
+ () => links.reduce((sum, link) => sum + (link.value || 0), 0) || 1,
67
+ [links]
68
+ );
74
69
  const labelSpace = 92;
75
- const layout = useMemo(() => layoutSankey(nodes, links, {
76
- x: labelSpace,
77
- y: 12,
78
- width: Math.max(0, size.width - labelSpace * 2),
79
- height: Math.max(0, size.height - 24)
80
- }, {
81
- nodeWidth,
82
- nodeGap,
83
- colorOf: (layer, index) => theme.palette[(layer * 2 + index) % theme.palette.length]
84
- }), [nodes, links, size.width, size.height, nodeWidth, nodeGap, theme.palette]);
85
- const valueMatrix = useMemo(() => [layout.links.map(link => Math.round(link.value))], [layout.links]);
70
+ const layout = useMemo(
71
+ () => layoutSankey(
72
+ nodes,
73
+ links,
74
+ {
75
+ x: labelSpace,
76
+ y: 12,
77
+ width: Math.max(0, size.width - labelSpace * 2),
78
+ height: Math.max(0, size.height - 24)
79
+ },
80
+ {
81
+ nodeWidth,
82
+ nodeGap,
83
+ colorOf: (layer, index) => theme.palette[(layer * 2 + index) % theme.palette.length]
84
+ }
85
+ ),
86
+ [nodes, links, size.width, size.height, nodeWidth, nodeGap, theme.palette]
87
+ );
88
+ const valueMatrix = useMemo(
89
+ () => [layout.links.map((link) => Math.round(link.value))],
90
+ [layout.links]
91
+ );
86
92
  const progress = useChartTransition(valueMatrix, animConfig).progress;
87
93
  const scene = useMemo(() => {
88
- if (!layout.nodes.length || size.width <= 0) return [];
89
- const nodes = [];
90
-
91
- // 链接先画,节点压在上面
94
+ if (!layout.nodes.length || size.width <= 0)
95
+ return [];
96
+ const nodes2 = [];
92
97
  layout.links.forEach((link, index) => {
93
- const local = staggerProgress(progress, link.source.layer, layout.layers, animConfig.stagger);
94
- const isActive = activeLink?.source.name === link.source.name && activeLink?.target.name === link.target.name && activeLink.value === link.value;
95
- nodes.push({
96
- kind: 'path',
98
+ const local = staggerProgress(
99
+ progress,
100
+ link.source.layer,
101
+ layout.layers,
102
+ animConfig.stagger
103
+ );
104
+ const isActive = (activeLink == null ? void 0 : activeLink.source.name) === link.source.name && (activeLink == null ? void 0 : activeLink.target.name) === link.target.name && activeLink.value === link.value;
105
+ nodes2.push({
106
+ kind: "path",
97
107
  key: `link-${index}`,
98
108
  d: link.d,
99
109
  fill: withAlpha(link.color, isActive ? 0.55 : 0.26),
100
110
  opacity: local,
101
- pointerEvents: 'none'
111
+ pointerEvents: "none"
102
112
  });
103
113
  });
104
114
  layout.nodes.forEach((node, index) => {
105
- const local = staggerProgress(progress, node.layer, layout.layers, animConfig.stagger);
115
+ const local = staggerProgress(
116
+ progress,
117
+ node.layer,
118
+ layout.layers,
119
+ animConfig.stagger
120
+ );
106
121
  const isActive = activeNode === node.name;
107
- nodes.push({
108
- kind: 'rect',
122
+ nodes2.push({
123
+ kind: "rect",
109
124
  key: `node-${node.name}`,
110
125
  x: node.x,
111
126
  y: node.y,
@@ -113,32 +128,28 @@ export function SankeyChart({
113
128
  height: Math.max(2, node.height * local),
114
129
  radius: 2,
115
130
  fill: node.color,
116
- stroke: isActive ? theme.text.primary : undefined,
131
+ stroke: isActive ? theme.text.primary : void 0,
117
132
  strokeWidth: isActive ? 2 : 0,
118
- pointerEvents: 'none'
133
+ pointerEvents: "none"
119
134
  });
120
-
121
- // 首尾两列标签放节点外侧,中间列放内侧;内侧会被色带压住,
122
- // 所以文字统一带白色光晕
123
135
  const isLastLayer = node.layer === layout.layers - 1;
124
136
  const onLeft = node.layer === 0 || isLastLayer;
125
137
  const labelX = onLeft ? node.x - 8 : node.x + node.width + 8;
126
138
  const maxLabelWidth = onLeft ? labelX - 4 : size.width - labelX - 4;
127
- if (maxLabelWidth < 24) return;
128
- const label = showValue && node.layer === layout.layers - 1 ? `${node.name} ${formatNumber(node.value, {
129
- compact: true
130
- })}` : node.name;
139
+ if (maxLabelWidth < 24)
140
+ return;
141
+ const label = showValue && node.layer === layout.layers - 1 ? `${node.name} ${formatNumber(node.value, { compact: true })}` : node.name;
131
142
  const text = estimateTextWidth(label, theme.font.size) > maxLabelWidth ? `${label.slice(0, Math.max(2, Math.floor(maxLabelWidth / theme.font.size)))}…` : label;
132
- nodes.push({
133
- kind: 'text',
143
+ nodes2.push({
144
+ kind: "text",
134
145
  key: `node-label-${node.name}-${index}`,
135
146
  x: labelX,
136
147
  y: node.y + node.height / 2,
137
148
  text,
138
149
  fill: isActive ? theme.text.primary : theme.text.secondary,
139
150
  fontSize: theme.font.size,
140
- anchor: onLeft ? 'end' : 'start',
141
- baseline: 'middle',
151
+ anchor: onLeft ? "end" : "start",
152
+ baseline: "middle",
142
153
  opacity: local,
143
154
  fontFamily: theme.font.family,
144
155
  // 光晕:文字压在色带上也读得清
@@ -146,16 +157,24 @@ export function SankeyChart({
146
157
  strokeWidth: 3
147
158
  });
148
159
  });
149
- return nodes;
150
- }, [layout, size.width, theme, progress, animConfig.stagger, activeLink, activeNode, showValue]);
160
+ return nodes2;
161
+ }, [
162
+ layout,
163
+ size.width,
164
+ theme,
165
+ progress,
166
+ animConfig.stagger,
167
+ activeLink,
168
+ activeNode,
169
+ showValue
170
+ ]);
151
171
  const linkFromPointer = (clientX, clientY) => {
152
172
  const element = ref.current;
153
- if (!element) return null;
173
+ if (!element)
174
+ return null;
154
175
  const rect = element.getBoundingClientRect();
155
176
  const x = clientX - rect.left;
156
177
  const y = clientY - rect.top;
157
-
158
- // 节点优先
159
178
  for (const node of layout.nodes) {
160
179
  if (x >= node.x - 2 && x <= node.x + node.width + 2 && y >= node.y && y <= node.y + node.height) {
161
180
  setActiveNode(node.name);
@@ -163,85 +182,97 @@ export function SankeyChart({
163
182
  }
164
183
  }
165
184
  setActiveNode(null);
166
-
167
- // 链接:按 x 在两端之间做线性插值,得到该处的带状区间
168
185
  for (const link of layout.links) {
169
186
  const x0 = link.source.x + link.source.width;
170
187
  const x1 = link.target.x;
171
- if (x < x0 || x > x1 || x1 <= x0) continue;
188
+ if (x < x0 || x > x1 || x1 <= x0)
189
+ continue;
172
190
  const ratio = (x - x0) / (x1 - x0);
173
191
  const top = link.sourceY + (link.targetY - link.sourceY) * ratio;
174
192
  const thickness = link.sourceThickness + (link.targetThickness - link.sourceThickness) * ratio;
175
- if (y >= top && y <= top + thickness) return link;
193
+ if (y >= top && y <= top + thickness)
194
+ return link;
176
195
  }
177
196
  return null;
178
197
  };
179
198
  const tooltipPayload = activeLink ? {
180
199
  label: `${activeLink.source.name} → ${activeLink.target.name}`,
181
200
  row: null,
182
- series: [{
183
- key: 'value',
184
- name: '流量',
185
- color: activeLink.color,
186
- value: activeLink.value,
187
- formatted: `${formatNumber(activeLink.value, {
188
- compact: true
189
- })}(${formatPercent(activeLink.value, total, 1)})`
190
- }]
201
+ series: [
202
+ {
203
+ key: "value",
204
+ name: "流量",
205
+ color: activeLink.color,
206
+ value: activeLink.value,
207
+ formatted: `${formatNumber(activeLink.value, { compact: true })}(${formatPercent(activeLink.value, total, 1)})`
208
+ }
209
+ ]
191
210
  } : activeNode ? (() => {
192
- const node = layout.nodes.find(item => item.name === activeNode);
193
- if (!node) return null;
211
+ const node = layout.nodes.find((item) => item.name === activeNode);
212
+ if (!node)
213
+ return null;
194
214
  return {
195
215
  label: node.name,
196
216
  row: null,
197
- series: [{
198
- key: 'value',
199
- name: '流量',
200
- color: node.color,
201
- value: node.value,
202
- formatted: formatNumber(node.value, {
203
- compact: true
204
- })
205
- }]
217
+ series: [
218
+ {
219
+ key: "value",
220
+ name: "流量",
221
+ color: node.color,
222
+ value: node.value,
223
+ formatted: formatNumber(node.value, { compact: true })
224
+ }
225
+ ]
206
226
  };
207
227
  })() : null;
208
228
  const autoAriaLabel = ariaLabel ?? `桑基图:${layout.nodes.length} 个节点,${layout.links.length} 条流向`;
209
- return /*#__PURE__*/_jsx("div", {
210
- className: classNames(prefixCls('chart'), className),
211
- style: {
212
- width,
213
- height,
214
- ...style
215
- },
216
- "data-aura-chart": "sankey",
217
- children: /*#__PURE__*/_jsxs("div", {
218
- ref: ref,
219
- className: prefixCls('chart__plot'),
220
- onPointerMove: event => {
221
- const link = linkFromPointer(event.clientX, event.clientY);
222
- setActiveLink(link);
223
- },
224
- onPointerLeave: () => {
225
- setActiveLink(null);
226
- setActiveNode(null);
227
- },
228
- children: [!layout.nodes.length || size.width === 0 ? /*#__PURE__*/_jsx("div", {
229
- className: prefixCls('chart__empty'),
230
- children: emptyText
231
- }) : /*#__PURE__*/_jsx(SvgScene, {
232
- nodes: scene,
233
- width: size.width,
234
- height: size.height,
235
- ariaLabel: autoAriaLabel
236
- }), /*#__PURE__*/_jsx(Tooltip, {
237
- payload: tooltipPayload,
238
- x: activeLink ? (activeLink.source.x + activeLink.target.x) / 2 : size.width / 2,
239
- y: 12,
240
- containerWidth: size.width,
241
- containerHeight: size.height,
242
- theme: theme,
243
- config: tooltip
244
- })]
245
- })
246
- });
247
- }
229
+ return /* @__PURE__ */ jsx(
230
+ "div",
231
+ {
232
+ className: classNames(prefixCls("chart"), className),
233
+ style: { width, height, ...style },
234
+ "data-aura-chart": "sankey",
235
+ children: /* @__PURE__ */ jsxs(
236
+ "div",
237
+ {
238
+ ref,
239
+ className: prefixCls("chart__plot"),
240
+ onPointerMove: (event) => {
241
+ const link = linkFromPointer(event.clientX, event.clientY);
242
+ setActiveLink(link);
243
+ },
244
+ onPointerLeave: () => {
245
+ setActiveLink(null);
246
+ setActiveNode(null);
247
+ },
248
+ children: [
249
+ !layout.nodes.length || size.width === 0 ? /* @__PURE__ */ jsx("div", { className: prefixCls("chart__empty"), children: emptyText }) : /* @__PURE__ */ jsx(
250
+ SvgScene,
251
+ {
252
+ nodes: scene,
253
+ width: size.width,
254
+ height: size.height,
255
+ ariaLabel: autoAriaLabel
256
+ }
257
+ ),
258
+ /* @__PURE__ */ jsx(
259
+ Tooltip,
260
+ {
261
+ payload: tooltipPayload,
262
+ x: activeLink ? (activeLink.source.x + activeLink.target.x) / 2 : size.width / 2,
263
+ y: 12,
264
+ containerWidth: size.width,
265
+ containerHeight: size.height,
266
+ theme,
267
+ config: tooltip
268
+ }
269
+ )
270
+ ]
271
+ }
272
+ )
273
+ }
274
+ );
275
+ }
276
+ export {
277
+ SankeyChart
278
+ };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { ChartDataRow, SeriesConfig } from '../../types';
3
- import { type ChartThemeInput } from '../../theme';
4
- import type { LegendConfig, TooltipConfig } from '../../types';
2
+ import type { ChartDataRow, SeriesConfig } from '../../types.js';
3
+ import { type ChartThemeInput } from '../../theme/index.js';
4
+ import type { LegendConfig, TooltipConfig } from '../../types.js';
5
5
  export interface ScatterChartProps {
6
6
  data?: ChartDataRow[];
7
7
  /** 数值型 x 字段 */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAO9E,OAAO,EAAW,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAO5D,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,6BAA6B,CAAC;AAErC,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,YAAY,EAAE,CAAC;IACtB,eAAe;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,O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