@stocksharp/diagram 0.4.0 → 0.5.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.
- package/README.md +42 -0
- package/dist/esm/canvas-renderer.js +91 -16
- package/dist/esm/canvas-renderer.js.map +1 -1
- package/dist/esm/diagram/context-menu.js +272 -0
- package/dist/esm/diagram/context-menu.js.map +1 -0
- package/dist/esm/diagram/stocksharp-diagram.js +83 -5
- package/dist/esm/diagram/stocksharp-diagram.js.map +1 -1
- package/dist/esm/draw-surface.js +2 -0
- package/dist/esm/draw-surface.js.map +1 -0
- package/dist/esm/i18n.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/svg-surface.js +341 -0
- package/dist/esm/svg-surface.js.map +1 -0
- package/dist/ssdiagram.js +879 -164
- package/dist/ssdiagram.js.map +4 -4
- package/dist/types/canvas-renderer.d.ts +12 -0
- package/dist/types/canvas-renderer.d.ts.map +1 -1
- package/dist/types/diagram/api.d.ts +36 -2
- package/dist/types/diagram/api.d.ts.map +1 -1
- package/dist/types/diagram/context-menu.d.ts +31 -0
- package/dist/types/diagram/context-menu.d.ts.map +1 -0
- package/dist/types/diagram/stocksharp-diagram.d.ts +11 -5
- package/dist/types/diagram/stocksharp-diagram.d.ts.map +1 -1
- package/dist/types/draw-surface.d.ts +52 -0
- package/dist/types/draw-surface.d.ts.map +1 -0
- package/dist/types/i18n.d.ts +4 -0
- package/dist/types/i18n.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/svg-surface.d.ts +74 -0
- package/dist/types/svg-surface.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/canvas-renderer.ts +103 -16
- package/src/diagram/api.ts +46 -2
- package/src/diagram/context-menu.ts +298 -0
- package/src/diagram/stocksharp-diagram.ts +93 -6
- package/src/draw-surface.ts +61 -0
- package/src/i18n.ts +7 -0
- package/src/index.ts +8 -0
- package/src/svg-surface.ts +430 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
const IDENTITY = [1, 0, 0, 1, 0, 0];
|
|
2
|
+
function multiply(m, n) {
|
|
3
|
+
return [
|
|
4
|
+
m[0] * n[0] + m[2] * n[1],
|
|
5
|
+
m[1] * n[0] + m[3] * n[1],
|
|
6
|
+
m[0] * n[2] + m[2] * n[3],
|
|
7
|
+
m[1] * n[2] + m[3] * n[3],
|
|
8
|
+
m[0] * n[4] + m[2] * n[5] + m[4],
|
|
9
|
+
m[1] * n[4] + m[3] * n[5] + m[5],
|
|
10
|
+
];
|
|
11
|
+
}
|
|
12
|
+
function isIdentity(m) {
|
|
13
|
+
return m[0] === 1 && m[1] === 0 && m[2] === 0 && m[3] === 1 && m[4] === 0 && m[5] === 0;
|
|
14
|
+
}
|
|
15
|
+
/** Trims float noise: coordinates carry three decimals, which is finer than any renderer needs. */
|
|
16
|
+
function n(value) {
|
|
17
|
+
if (!Number.isFinite(value))
|
|
18
|
+
return '0';
|
|
19
|
+
return (Math.round(value * 1000) / 1000).toString();
|
|
20
|
+
}
|
|
21
|
+
function escapeXml(value) {
|
|
22
|
+
return value
|
|
23
|
+
.replace(/&/g, '&')
|
|
24
|
+
.replace(/</g, '<')
|
|
25
|
+
.replace(/>/g, '>')
|
|
26
|
+
.replace(/"/g, '"');
|
|
27
|
+
}
|
|
28
|
+
const ANCHOR = {
|
|
29
|
+
left: 'start', start: 'start',
|
|
30
|
+
center: 'middle',
|
|
31
|
+
right: 'end', end: 'end',
|
|
32
|
+
};
|
|
33
|
+
// dominant-baseline rather than alignment-baseline: it is the one browsers and renderers agree on
|
|
34
|
+
// for <text>, and these four are the values the renderer actually sets.
|
|
35
|
+
const BASELINE = {
|
|
36
|
+
top: 'text-before-edge',
|
|
37
|
+
hanging: 'hanging',
|
|
38
|
+
middle: 'central',
|
|
39
|
+
alphabetic: 'alphabetic',
|
|
40
|
+
ideographic: 'ideographic',
|
|
41
|
+
bottom: 'text-after-edge',
|
|
42
|
+
};
|
|
43
|
+
export class SvgSurface {
|
|
44
|
+
constructor(options) {
|
|
45
|
+
this.body = [];
|
|
46
|
+
this.defs = [];
|
|
47
|
+
this.stack = [];
|
|
48
|
+
this.state = {
|
|
49
|
+
fillStyle: '#000000',
|
|
50
|
+
strokeStyle: '#000000',
|
|
51
|
+
lineWidth: 1,
|
|
52
|
+
lineJoin: 'miter',
|
|
53
|
+
lineCap: 'butt',
|
|
54
|
+
globalAlpha: 1,
|
|
55
|
+
font: '10px sans-serif',
|
|
56
|
+
textAlign: 'start',
|
|
57
|
+
textBaseline: 'alphabetic',
|
|
58
|
+
dash: [],
|
|
59
|
+
matrix: IDENTITY,
|
|
60
|
+
clipId: null,
|
|
61
|
+
};
|
|
62
|
+
/** Path being built by moveTo/lineTo/arc/arcTo, in the units the caller passes. */
|
|
63
|
+
this.path = [];
|
|
64
|
+
this.cursor = null;
|
|
65
|
+
this.subpathStart = null;
|
|
66
|
+
this.clipSeq = 0;
|
|
67
|
+
this.width = options.width;
|
|
68
|
+
this.height = options.height;
|
|
69
|
+
this.background = options.background;
|
|
70
|
+
this.metrics = options.metrics ?? null;
|
|
71
|
+
}
|
|
72
|
+
// ===== state =========================================================
|
|
73
|
+
get fillStyle() { return this.state.fillStyle; }
|
|
74
|
+
set fillStyle(value) {
|
|
75
|
+
// Gradients and patterns are canvas objects with no serialisable form here. The renderer
|
|
76
|
+
// uses plain colours; anything else is left as the previous colour rather than guessed at.
|
|
77
|
+
if (typeof value === 'string')
|
|
78
|
+
this.state.fillStyle = value;
|
|
79
|
+
}
|
|
80
|
+
get strokeStyle() { return this.state.strokeStyle; }
|
|
81
|
+
set strokeStyle(value) {
|
|
82
|
+
if (typeof value === 'string')
|
|
83
|
+
this.state.strokeStyle = value;
|
|
84
|
+
}
|
|
85
|
+
get lineWidth() { return this.state.lineWidth; }
|
|
86
|
+
set lineWidth(value) { this.state.lineWidth = value; }
|
|
87
|
+
get lineJoin() { return this.state.lineJoin; }
|
|
88
|
+
set lineJoin(value) { this.state.lineJoin = value; }
|
|
89
|
+
get lineCap() { return this.state.lineCap; }
|
|
90
|
+
set lineCap(value) { this.state.lineCap = value; }
|
|
91
|
+
get globalAlpha() { return this.state.globalAlpha; }
|
|
92
|
+
set globalAlpha(value) { this.state.globalAlpha = value; }
|
|
93
|
+
get font() { return this.state.font; }
|
|
94
|
+
set font(value) {
|
|
95
|
+
this.state.font = value;
|
|
96
|
+
if (this.metrics !== null)
|
|
97
|
+
this.metrics.font = value;
|
|
98
|
+
}
|
|
99
|
+
get textAlign() { return this.state.textAlign; }
|
|
100
|
+
set textAlign(value) { this.state.textAlign = value; }
|
|
101
|
+
get textBaseline() { return this.state.textBaseline; }
|
|
102
|
+
set textBaseline(value) { this.state.textBaseline = value; }
|
|
103
|
+
save() {
|
|
104
|
+
this.stack.push({ ...this.state, dash: [...this.state.dash], matrix: [...this.state.matrix] });
|
|
105
|
+
}
|
|
106
|
+
restore() {
|
|
107
|
+
const previous = this.stack.pop();
|
|
108
|
+
if (previous !== undefined)
|
|
109
|
+
this.state = previous;
|
|
110
|
+
}
|
|
111
|
+
setLineDash(segments) {
|
|
112
|
+
this.state.dash = [...segments];
|
|
113
|
+
}
|
|
114
|
+
// ===== transform =====================================================
|
|
115
|
+
setTransform(a, b, c, d, e, f) {
|
|
116
|
+
this.state.matrix = [a, b, c, d, e, f];
|
|
117
|
+
}
|
|
118
|
+
translate(x, y) {
|
|
119
|
+
this.state.matrix = multiply(this.state.matrix, [1, 0, 0, 1, x, y]);
|
|
120
|
+
}
|
|
121
|
+
rotate(angle) {
|
|
122
|
+
const cos = Math.cos(angle);
|
|
123
|
+
const sin = Math.sin(angle);
|
|
124
|
+
this.state.matrix = multiply(this.state.matrix, [cos, sin, -sin, cos, 0, 0]);
|
|
125
|
+
}
|
|
126
|
+
// ===== paths =========================================================
|
|
127
|
+
beginPath() {
|
|
128
|
+
this.path = [];
|
|
129
|
+
this.cursor = null;
|
|
130
|
+
this.subpathStart = null;
|
|
131
|
+
}
|
|
132
|
+
closePath() {
|
|
133
|
+
if (this.cursor === null)
|
|
134
|
+
return;
|
|
135
|
+
this.path.push('Z');
|
|
136
|
+
if (this.subpathStart !== null)
|
|
137
|
+
this.cursor = [...this.subpathStart];
|
|
138
|
+
}
|
|
139
|
+
moveTo(x, y) {
|
|
140
|
+
this.path.push(`M${n(x)} ${n(y)}`);
|
|
141
|
+
this.cursor = [x, y];
|
|
142
|
+
this.subpathStart = [x, y];
|
|
143
|
+
}
|
|
144
|
+
lineTo(x, y) {
|
|
145
|
+
if (this.cursor === null) {
|
|
146
|
+
this.moveTo(x, y);
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
this.path.push(`L${n(x)} ${n(y)}`);
|
|
150
|
+
this.cursor = [x, y];
|
|
151
|
+
}
|
|
152
|
+
arc(cx, cy, r, start, end, ccw = false) {
|
|
153
|
+
const sx = cx + r * Math.cos(start);
|
|
154
|
+
const sy = cy + r * Math.sin(start);
|
|
155
|
+
// Canvas joins an open subpath to the arc's first point with a straight line.
|
|
156
|
+
if (this.cursor === null)
|
|
157
|
+
this.moveTo(sx, sy);
|
|
158
|
+
else
|
|
159
|
+
this.lineTo(sx, sy);
|
|
160
|
+
let delta = end - start;
|
|
161
|
+
if (ccw) {
|
|
162
|
+
while (delta > 0)
|
|
163
|
+
delta -= Math.PI * 2;
|
|
164
|
+
if (delta <= -Math.PI * 2)
|
|
165
|
+
delta = -Math.PI * 2;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
while (delta < 0)
|
|
169
|
+
delta += Math.PI * 2;
|
|
170
|
+
if (delta >= Math.PI * 2)
|
|
171
|
+
delta = Math.PI * 2;
|
|
172
|
+
}
|
|
173
|
+
const sweep = ccw ? 0 : 1;
|
|
174
|
+
// A single SVG arc cannot end where it began, so a full turn is drawn as two halves.
|
|
175
|
+
if (Math.abs(delta) >= Math.PI * 2 - 1e-9) {
|
|
176
|
+
const mid = start + delta / 2;
|
|
177
|
+
const mx = cx + r * Math.cos(mid);
|
|
178
|
+
const my = cy + r * Math.sin(mid);
|
|
179
|
+
this.path.push(`A${n(r)} ${n(r)} 0 0 ${sweep} ${n(mx)} ${n(my)}`);
|
|
180
|
+
this.path.push(`A${n(r)} ${n(r)} 0 0 ${sweep} ${n(sx)} ${n(sy)}`);
|
|
181
|
+
this.cursor = [sx, sy];
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const ex = cx + r * Math.cos(start + delta);
|
|
185
|
+
const ey = cy + r * Math.sin(start + delta);
|
|
186
|
+
const large = Math.abs(delta) > Math.PI ? 1 : 0;
|
|
187
|
+
this.path.push(`A${n(r)} ${n(r)} 0 ${large} ${sweep} ${n(ex)} ${n(ey)}`);
|
|
188
|
+
this.cursor = [ex, ey];
|
|
189
|
+
}
|
|
190
|
+
arcTo(x1, y1, x2, y2, r) {
|
|
191
|
+
if (this.cursor === null) {
|
|
192
|
+
this.moveTo(x1, y1);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const [x0, y0] = this.cursor;
|
|
196
|
+
// Canvas degenerates to a straight line when there is no corner to round.
|
|
197
|
+
const a = [x0 - x1, y0 - y1];
|
|
198
|
+
const b = [x2 - x1, y2 - y1];
|
|
199
|
+
const la = Math.hypot(a[0], a[1]);
|
|
200
|
+
const lb = Math.hypot(b[0], b[1]);
|
|
201
|
+
if (la === 0 || lb === 0 || r === 0) {
|
|
202
|
+
this.lineTo(x1, y1);
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
const ua = [a[0] / la, a[1] / la];
|
|
206
|
+
const ub = [b[0] / lb, b[1] / lb];
|
|
207
|
+
const cross = ua[0] * ub[1] - ua[1] * ub[0];
|
|
208
|
+
if (Math.abs(cross) < 1e-9) {
|
|
209
|
+
this.lineTo(x1, y1);
|
|
210
|
+
return;
|
|
211
|
+
} // collinear
|
|
212
|
+
const angle = Math.acos(Math.max(-1, Math.min(1, ua[0] * ub[0] + ua[1] * ub[1])));
|
|
213
|
+
const tangent = r / Math.tan(angle / 2);
|
|
214
|
+
// The corner cannot swallow more than the shorter arm.
|
|
215
|
+
const t = Math.min(tangent, la, lb);
|
|
216
|
+
const radius = t * Math.tan(angle / 2);
|
|
217
|
+
const t1 = [x1 + ua[0] * t, y1 + ua[1] * t];
|
|
218
|
+
const t2 = [x1 + ub[0] * t, y1 + ub[1] * t];
|
|
219
|
+
this.lineTo(t1[0], t1[1]);
|
|
220
|
+
// Turning left in screen coordinates (y down) is a counter-clockwise sweep.
|
|
221
|
+
const sweep = cross < 0 ? 1 : 0;
|
|
222
|
+
this.path.push(`A${n(radius)} ${n(radius)} 0 0 ${sweep} ${n(t2[0])} ${n(t2[1])}`);
|
|
223
|
+
this.cursor = [t2[0], t2[1]];
|
|
224
|
+
}
|
|
225
|
+
fill() {
|
|
226
|
+
if (this.path.length === 0)
|
|
227
|
+
return;
|
|
228
|
+
this.emit(`<path d="${this.path.join(' ')}" ${this.fillAttrs()}/>`);
|
|
229
|
+
}
|
|
230
|
+
stroke() {
|
|
231
|
+
if (this.path.length === 0)
|
|
232
|
+
return;
|
|
233
|
+
this.emit(`<path d="${this.path.join(' ')}" fill="none" ${this.strokeAttrs()}/>`);
|
|
234
|
+
}
|
|
235
|
+
clip() {
|
|
236
|
+
if (this.path.length === 0)
|
|
237
|
+
return;
|
|
238
|
+
const id = `clip${++this.clipSeq}`;
|
|
239
|
+
this.defs.push(`<clipPath id="${id}"><path d="${this.path.join(' ')}"/></clipPath>`);
|
|
240
|
+
this.state.clipId = id;
|
|
241
|
+
}
|
|
242
|
+
// ===== rectangles ====================================================
|
|
243
|
+
clearRect(x, y, w, h) {
|
|
244
|
+
// Nothing to clear in a document that is built up rather than painted over: SVG has no
|
|
245
|
+
// eraser, and the first thing written is the background anyway.
|
|
246
|
+
void x;
|
|
247
|
+
void y;
|
|
248
|
+
void w;
|
|
249
|
+
void h;
|
|
250
|
+
}
|
|
251
|
+
fillRect(x, y, w, h) {
|
|
252
|
+
this.emit(`<rect x="${n(x)}" y="${n(y)}" width="${n(w)}" height="${n(h)}" ${this.fillAttrs()}/>`);
|
|
253
|
+
}
|
|
254
|
+
strokeRect(x, y, w, h) {
|
|
255
|
+
this.emit(`<rect x="${n(x)}" y="${n(y)}" width="${n(w)}" height="${n(h)}" fill="none" ${this.strokeAttrs()}/>`);
|
|
256
|
+
}
|
|
257
|
+
// ===== text ==========================================================
|
|
258
|
+
fillText(text, x, y) {
|
|
259
|
+
if (text === '')
|
|
260
|
+
return;
|
|
261
|
+
const anchor = ANCHOR[this.state.textAlign] ?? 'start';
|
|
262
|
+
const baseline = BASELINE[this.state.textBaseline] ?? 'alphabetic';
|
|
263
|
+
// The canvas font string is CSS font shorthand, so it transfers verbatim -- no parsing, and
|
|
264
|
+
// no chance of losing the weight or the fallback list on the way.
|
|
265
|
+
this.emit(`<text x="${n(x)}" y="${n(y)}" style="font:${escapeXml(this.state.font)}" ` +
|
|
266
|
+
`text-anchor="${anchor}" dominant-baseline="${baseline}" ${this.fillAttrs()}>` +
|
|
267
|
+
`${escapeXml(text)}</text>`);
|
|
268
|
+
}
|
|
269
|
+
measureText(text) {
|
|
270
|
+
if (this.metrics !== null)
|
|
271
|
+
return { width: this.metrics.measureText(text).width };
|
|
272
|
+
// Without a context to ask, a rough advance keeps layout sane rather than collapsing to
|
|
273
|
+
// zero and stacking every label at one point.
|
|
274
|
+
const size = parseFloat(this.state.font) || 10;
|
|
275
|
+
return { width: text.length * size * 0.55 };
|
|
276
|
+
}
|
|
277
|
+
// ===== images ========================================================
|
|
278
|
+
drawImage(image, dx, dy, dw, dh) {
|
|
279
|
+
const href = this.imageHref(image);
|
|
280
|
+
if (href === null)
|
|
281
|
+
return;
|
|
282
|
+
this.emit(`<image x="${n(dx)}" y="${n(dy)}" width="${n(dw)}" height="${n(dh)}" href="${escapeXml(href)}"${this.commonAttrs()}/>`);
|
|
283
|
+
}
|
|
284
|
+
imageHref(image) {
|
|
285
|
+
try {
|
|
286
|
+
if (typeof HTMLCanvasElement !== 'undefined' && image instanceof HTMLCanvasElement)
|
|
287
|
+
return image.toDataURL();
|
|
288
|
+
if (typeof HTMLImageElement !== 'undefined' && image instanceof HTMLImageElement)
|
|
289
|
+
return image.src;
|
|
290
|
+
}
|
|
291
|
+
catch {
|
|
292
|
+
// A canvas tainted by a cross-origin draw refuses toDataURL. Dropping the image beats
|
|
293
|
+
// failing the whole export for one picture.
|
|
294
|
+
return null;
|
|
295
|
+
}
|
|
296
|
+
return null;
|
|
297
|
+
}
|
|
298
|
+
// ===== output ========================================================
|
|
299
|
+
/** The finished document. Safe to call more than once; it does not consume the recording. */
|
|
300
|
+
toSvg() {
|
|
301
|
+
const background = this.background === undefined
|
|
302
|
+
? ''
|
|
303
|
+
: `<rect width="100%" height="100%" fill="${escapeXml(this.background)}"/>`;
|
|
304
|
+
const defs = this.defs.length === 0 ? '' : `<defs>${this.defs.join('')}</defs>`;
|
|
305
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${n(this.width)}" height="${n(this.height)}" ` +
|
|
306
|
+
`viewBox="0 0 ${n(this.width)} ${n(this.height)}">` +
|
|
307
|
+
`${defs}${background}${this.body.join('')}</svg>`;
|
|
308
|
+
}
|
|
309
|
+
// ===== internals =====================================================
|
|
310
|
+
emit(element) {
|
|
311
|
+
this.body.push(element);
|
|
312
|
+
}
|
|
313
|
+
commonAttrs() {
|
|
314
|
+
const parts = [];
|
|
315
|
+
if (!isIdentity(this.state.matrix)) {
|
|
316
|
+
parts.push(` transform="matrix(${this.state.matrix.map(n).join(' ')})"`);
|
|
317
|
+
}
|
|
318
|
+
if (this.state.globalAlpha !== 1)
|
|
319
|
+
parts.push(` opacity="${n(this.state.globalAlpha)}"`);
|
|
320
|
+
if (this.state.clipId !== null)
|
|
321
|
+
parts.push(` clip-path="url(#${this.state.clipId})"`);
|
|
322
|
+
return parts.join('');
|
|
323
|
+
}
|
|
324
|
+
fillAttrs() {
|
|
325
|
+
return `fill="${escapeXml(this.state.fillStyle)}"${this.commonAttrs()}`;
|
|
326
|
+
}
|
|
327
|
+
strokeAttrs() {
|
|
328
|
+
const parts = [
|
|
329
|
+
`stroke="${escapeXml(this.state.strokeStyle)}"`,
|
|
330
|
+
`stroke-width="${n(this.state.lineWidth)}"`,
|
|
331
|
+
];
|
|
332
|
+
if (this.state.lineJoin !== 'miter')
|
|
333
|
+
parts.push(`stroke-linejoin="${this.state.lineJoin}"`);
|
|
334
|
+
if (this.state.lineCap !== 'butt')
|
|
335
|
+
parts.push(`stroke-linecap="${this.state.lineCap}"`);
|
|
336
|
+
if (this.state.dash.length > 0)
|
|
337
|
+
parts.push(`stroke-dasharray="${this.state.dash.map(n).join(' ')}"`);
|
|
338
|
+
return parts.join(' ') + this.commonAttrs();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
//# sourceMappingURL=svg-surface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svg-surface.js","sourceRoot":"","sources":["../../src/svg-surface.ts"],"names":[],"mappings":"AAoBA,MAAM,QAAQ,GAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAE5C,SAAS,QAAQ,CAAC,CAAS,EAAE,CAAS;IAClC,OAAO;QACH,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CA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