@mark1russell7/layout-contract 0.3.5 → 0.3.7
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 +2 -2
- package/build/index.d.ts +2 -2
- package/build/index.js +24 -1
- package/build/index.js.map +1 -1
- package/build/{measures-WwacWhot.d.ts → measures-C-Tuv8GU.d.ts} +9 -2
- package/build/measures-C-Tuv8GU.d.ts.map +1 -0
- package/build/text.d.ts +46 -2
- package/build/text.d.ts.map +1 -1
- package/build/text.js +105 -21
- package/build/text.js.map +1 -1
- package/package.json +5 -4
- package/src/geometry.ts +27 -0
- package/src/text.ts +144 -20
- package/build/measures-WwacWhot.d.ts.map +0 -1
package/src/text.ts
CHANGED
|
@@ -168,6 +168,95 @@ export function graphemesOf(text: string): string[] {
|
|
|
168
168
|
return Array.from(text);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
/** The digits, as a value for `createTextCharset`. */
|
|
172
|
+
export const DIGITS = "0123456789";
|
|
173
|
+
|
|
174
|
+
/** The printable characters of ASCII with the space, as a value for `createTextCharset`. */
|
|
175
|
+
export const PRINTABLE_ASCII = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
|
|
176
|
+
|
|
177
|
+
/** The scripts of a member of a character set. The characters of other scripts can join or change their shape, so their advances do not add. */
|
|
178
|
+
const SIMPLE_SCRIPT = /^[\p{Script=Common}\p{Script=Latin}\p{Script=Greek}\p{Script=Cyrillic}\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]$/u;
|
|
179
|
+
|
|
180
|
+
/** The characters that are not plain advances: marks, control and format characters, emoji parts, and each white space but the space. */
|
|
181
|
+
const NOT_AN_ADVANCE = /[\p{M}\p{C}\p{Extended_Pictographic}\p{Emoji_Modifier}\p{Regional_Indicator}]|[^\S ]/u;
|
|
182
|
+
|
|
183
|
+
/** The largest count of fonts in the memo of a character set for one measurer. */
|
|
184
|
+
const CHARSET_FONTS = 64;
|
|
185
|
+
|
|
186
|
+
/** The options of `createTextCharset`. */
|
|
187
|
+
export interface TextCharsetOptions {
|
|
188
|
+
/**
|
|
189
|
+
* The largest width that two neighbor characters add to the sum of their advances, as a share of the largest advance. The default is 0.
|
|
190
|
+
* A kerning pair that is narrower adds no width. Give a value for a font with kerning pairs or ligatures that are wider.
|
|
191
|
+
*/
|
|
192
|
+
readonly pairMargin?: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** A declared character set. A caller asks for it with `createTextCharset`. It is frozen, so `createTextLayoutCache` can use its identity as a key. */
|
|
196
|
+
export interface TextCharset {
|
|
197
|
+
readonly characters: string;
|
|
198
|
+
/** This function tells if each code point of the text is a member of the set. */
|
|
199
|
+
covers(text: string): boolean;
|
|
200
|
+
/**
|
|
201
|
+
* This function gives the bound of one UTF-16 code unit of a member in the font, in units of 1/`TEXT_UNITS` pixel.
|
|
202
|
+
* It measures each member once for a measurer with `generation`, and again after a `reset`. It measures on each call for a different measurer.
|
|
203
|
+
* It gives `undefined` when a member has no positive finite advance: that is a gap in the font.
|
|
204
|
+
*/
|
|
205
|
+
unit(font: string, measurer: TextMeasurer): number | undefined;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* This function gives a declared character set. A member is one code point with a plain advance.
|
|
210
|
+
* A tab, a line break, a soft hyphen, a zero-width character, a combining mark, an emoji part or a bidirectional control gives a `RangeError`.
|
|
211
|
+
* A letter of a script that joins or changes its shape, for example Arabic or Devanagari, also gives a `RangeError`. A label with this letter gets a measure.
|
|
212
|
+
*/
|
|
213
|
+
export function createTextCharset(characters: string, options: TextCharsetOptions = {}): TextCharset {
|
|
214
|
+
const pairMargin = options.pairMargin ?? 0;
|
|
215
|
+
if (!(Number.isFinite(pairMargin) && pairMargin >= 0)) throw new RangeError(`createTextCharset: pairMargin is a finite number of 0 or more, not ${pairMargin}.`);
|
|
216
|
+
const members = new Set(characters);
|
|
217
|
+
if (members.size === 0) throw new RangeError("createTextCharset: the set has no character.");
|
|
218
|
+
for (const c of members) {
|
|
219
|
+
if (NOT_AN_ADVANCE.test(c) || !SIMPLE_SCRIPT.test(c)) throw new RangeError(`createTextCharset: U+${c.codePointAt(0)!.toString(16).toUpperCase()} is not a plain advance.`);
|
|
220
|
+
}
|
|
221
|
+
/** This function gives the bound of one character. The added unit holds the rounding of each advance, so a sum of rounded segments stays under the bound. */
|
|
222
|
+
const scan = (font: string, measurer: TextMeasurer): number | undefined => {
|
|
223
|
+
let largest = 0;
|
|
224
|
+
for (const c of members) {
|
|
225
|
+
const units = measurer.advance(c, font);
|
|
226
|
+
if (!(Number.isFinite(units) && units > 0)) return undefined;
|
|
227
|
+
largest = Math.max(largest, units);
|
|
228
|
+
}
|
|
229
|
+
return Math.ceil((largest + 1) * (1 + pairMargin));
|
|
230
|
+
};
|
|
231
|
+
const memo = new WeakMap<TextMeasurer, Map<string, { readonly generation: number; readonly unit: number | undefined }>>();
|
|
232
|
+
return Object.freeze({
|
|
233
|
+
characters,
|
|
234
|
+
covers(text: string): boolean {
|
|
235
|
+
for (const c of text) if (!members.has(c)) return false;
|
|
236
|
+
return true;
|
|
237
|
+
},
|
|
238
|
+
unit(font: string, measurer: TextMeasurer): number | undefined {
|
|
239
|
+
const generation = measurer.generation?.();
|
|
240
|
+
// A measurer without `generation` does not tell of a change of its advances, so a memo can keep a low bound.
|
|
241
|
+
if (generation === undefined) return scan(font, measurer);
|
|
242
|
+
let fonts = memo.get(measurer);
|
|
243
|
+
if (fonts === undefined) {
|
|
244
|
+
fonts = new Map();
|
|
245
|
+
memo.set(measurer, fonts);
|
|
246
|
+
}
|
|
247
|
+
const known = fonts.get(font);
|
|
248
|
+
if (known?.generation === generation) return known.unit;
|
|
249
|
+
const unit = scan(font, measurer);
|
|
250
|
+
if (fonts.size >= CHARSET_FONTS) fonts.delete(fonts.keys().next().value!);
|
|
251
|
+
fonts.set(font, { generation, unit });
|
|
252
|
+
return unit;
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/** The source of the width of a label. The option `sizing` of `layoutText` tells each value. */
|
|
258
|
+
export type TextSizing = "exact" | "bound-first" | "bound";
|
|
259
|
+
|
|
171
260
|
/** The options of `layoutText`. All lengths are in pixels. */
|
|
172
261
|
export interface TextLayoutOptions {
|
|
173
262
|
readonly font: string;
|
|
@@ -198,6 +287,14 @@ export interface TextLayoutOptions {
|
|
|
198
287
|
* makes the lines more equal. `balanced` keeps the greedy line count with the least width.
|
|
199
288
|
*/
|
|
200
289
|
readonly breaker?: "greedy" | "total-fit" | "balanced";
|
|
290
|
+
/**
|
|
291
|
+
* The source of the width of a label. `exact` (the default) measures each label.
|
|
292
|
+
* `bound-first` keeps a label of `charset` on one line with no measure when its bound fits. It measures each other label.
|
|
293
|
+
* `bound` sizes each label of `charset` from its bound, also when the label wraps. A label that has a character out of `charset` gets a measure in all modes.
|
|
294
|
+
*/
|
|
295
|
+
readonly sizing?: TextSizing;
|
|
296
|
+
/** The declared character set of `sizing`. `bound-first` and `bound` need it, and `exact` does not read it. */
|
|
297
|
+
readonly charset?: TextCharset;
|
|
201
298
|
}
|
|
202
299
|
|
|
203
300
|
/** The layout of a text: its lines and its box. */
|
|
@@ -213,12 +310,19 @@ export interface TextLayout {
|
|
|
213
310
|
readonly wrapWidth?: number;
|
|
214
311
|
/** `true` when `maxChars` or `maxLines` cut the text. */
|
|
215
312
|
readonly truncated: boolean;
|
|
313
|
+
/** `true` when the widths and the box come from the bound of a character set. Each width is then at or above the measured width. A measured layout does not have this field. */
|
|
314
|
+
readonly bounded?: true;
|
|
216
315
|
}
|
|
217
316
|
|
|
218
317
|
/** A forced break: a penalty with no text, no width and the cost `-Infinity`. */
|
|
219
318
|
const FORCED: Penalty = { type: "penalty", text: "", width: 0, cost: -Infinity, flagged: false };
|
|
220
319
|
|
|
221
320
|
/** This function gives the box of a part of a word. */
|
|
321
|
+
/** This function gives the units of a segment: the bound for one character times the length, or a measure when there is no bound. */
|
|
322
|
+
function advanceOf(segment: string, font: string, measurer: TextMeasurer, bound: number | undefined): number {
|
|
323
|
+
return bound === undefined ? measurer.advance(segment, font) : segment.length * bound;
|
|
324
|
+
}
|
|
325
|
+
|
|
222
326
|
function boxOf(part: { readonly text: string; readonly width: number }): Box {
|
|
223
327
|
return { type: "box", text: part.text, width: part.width };
|
|
224
328
|
}
|
|
@@ -235,6 +339,8 @@ interface Line {
|
|
|
235
339
|
* The breaker comes from `@mark1russell7/typeset`. The default is greedy, as a browser with `white-space: normal`.
|
|
236
340
|
* It collapses each run of white space to one space, and a line does not count its last space.
|
|
237
341
|
* The width of a word is the sum of the advances of its segments. `docs/TEXT.md` gives the rules and the error of this sum.
|
|
342
|
+
*
|
|
343
|
+
* The option `sizing` replaces a measure with the bound of a declared character set. A caller that does not set it gets each measured result.
|
|
238
344
|
*/
|
|
239
345
|
export function layoutText(text: string, options: TextLayoutOptions): TextLayout {
|
|
240
346
|
const { font, measurer, lineHeight } = options;
|
|
@@ -245,6 +351,10 @@ export function layoutText(text: string, options: TextLayoutOptions): TextLayout
|
|
|
245
351
|
const name = options.breaker ?? "greedy";
|
|
246
352
|
if (!Object.hasOwn(breakers, name)) throw new RangeError(`layoutText: breaker is "greedy", "total-fit" or "balanced", not ${String(name)}.`);
|
|
247
353
|
const breaker = breakers[name];
|
|
354
|
+
const sizing = options.sizing ?? "exact";
|
|
355
|
+
if (sizing !== "exact" && sizing !== "bound-first" && sizing !== "bound") throw new RangeError(`layoutText: sizing is "exact", "bound-first" or "bound", not ${String(sizing)}.`);
|
|
356
|
+
const charset = sizing === "exact" ? undefined : options.charset;
|
|
357
|
+
if (sizing !== "exact" && charset === undefined) throw new RangeError(`layoutText: sizing "${sizing}" needs a charset from createTextCharset.`);
|
|
248
358
|
let truncated = false;
|
|
249
359
|
|
|
250
360
|
let source = text;
|
|
@@ -258,8 +368,24 @@ export function layoutText(text: string, options: TextLayoutOptions): TextLayout
|
|
|
258
368
|
}
|
|
259
369
|
|
|
260
370
|
const words = wordsOf(source);
|
|
261
|
-
const
|
|
262
|
-
const
|
|
371
|
+
const maxWidth = options.maxWidth ?? (options.wrapWidth === undefined ? Infinity : options.wrapWidth + padding);
|
|
372
|
+
const oneLine = (natural: number, bounded: boolean): TextLayout => {
|
|
373
|
+
const one = words.map((w) => w.text).join(" ");
|
|
374
|
+
const px = natural / TEXT_UNITS;
|
|
375
|
+
const box = Math.min(maxWidth, Math.max(options.minWidth ?? 0, px + padding));
|
|
376
|
+
const layout: TextLayout = { lines: [one], widths: [px], lineCount: 1, width: box, height: lineHeight, truncated };
|
|
377
|
+
return bounded ? { ...layout, bounded } : layout;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
// The raw text, not its words: the check sees a tab or a line break before they collapse.
|
|
381
|
+
const unit = charset?.covers(source) === true ? charset.unit(font, measurer) : undefined;
|
|
382
|
+
if (sizing === "bound-first" && unit !== undefined) {
|
|
383
|
+
const natural = words.reduce((s, w) => s + w.text.length, Math.max(0, words.length - 1)) * unit;
|
|
384
|
+
if (options.wrapWidth === undefined || natural / TEXT_UNITS + padding <= maxWidth) return oneLine(natural, true);
|
|
385
|
+
}
|
|
386
|
+
const bound = sizing === "bound" ? unit : undefined;
|
|
387
|
+
const space = advanceOf(" ", font, measurer, bound);
|
|
388
|
+
const width = (w: Word): number => w.parts.reduce((s, p) => s + advanceOf(p, font, measurer, bound), 0);
|
|
263
389
|
const lineUnits = (line: string): number => {
|
|
264
390
|
const ws = wordsOf(line);
|
|
265
391
|
return ws.reduce((s, w) => s + width(w), 0) + space * Math.max(0, ws.length - 1);
|
|
@@ -267,14 +393,8 @@ export function layoutText(text: string, options: TextLayoutOptions): TextLayout
|
|
|
267
393
|
const widths = words.map(width);
|
|
268
394
|
const natural = widths.reduce((s, w) => s + w, 0) + space * Math.max(0, words.length - 1);
|
|
269
395
|
|
|
270
|
-
const maxWidth = options.maxWidth ?? (options.wrapWidth === undefined ? Infinity : options.wrapWidth + padding);
|
|
271
396
|
const fits = natural / TEXT_UNITS + padding <= maxWidth;
|
|
272
|
-
if (options.wrapWidth === undefined || fits)
|
|
273
|
-
const one = words.map((w) => w.text).join(" ");
|
|
274
|
-
const px = natural / TEXT_UNITS;
|
|
275
|
-
const box = Math.min(maxWidth, Math.max(options.minWidth ?? 0, px + padding));
|
|
276
|
-
return { lines: [one], widths: [px], lineCount: 1, width: box, height: lineHeight, truncated };
|
|
277
|
-
}
|
|
397
|
+
if (options.wrapWidth === undefined || fits) return oneLine(natural, bound !== undefined);
|
|
278
398
|
|
|
279
399
|
const limit = Math.round(options.wrapWidth * TEXT_UNITS);
|
|
280
400
|
// The items of the breaker: a box for each word, and glue of one space between two words.
|
|
@@ -284,7 +404,7 @@ export function layoutText(text: string, options: TextLayoutOptions): TextLayout
|
|
|
284
404
|
if (items.length > 0) items.push(FORCED);
|
|
285
405
|
let cur: { text: string; width: number } | undefined;
|
|
286
406
|
for (const g of graphemesOf(word.text)) {
|
|
287
|
-
const w =
|
|
407
|
+
const w = advanceOf(g, font, measurer, bound);
|
|
288
408
|
if (cur !== undefined && cur.width + w > limit) {
|
|
289
409
|
items.push(boxOf(cur), FORCED);
|
|
290
410
|
cur = undefined;
|
|
@@ -322,7 +442,7 @@ export function layoutText(text: string, options: TextLayoutOptions): TextLayout
|
|
|
322
442
|
truncated = true;
|
|
323
443
|
}
|
|
324
444
|
|
|
325
|
-
|
|
445
|
+
const layout: TextLayout = {
|
|
326
446
|
lines: lines.map((l) => l.text),
|
|
327
447
|
widths: lines.map((l) => l.units / TEXT_UNITS),
|
|
328
448
|
lineCount: lines.length,
|
|
@@ -331,6 +451,7 @@ export function layoutText(text: string, options: TextLayoutOptions): TextLayout
|
|
|
331
451
|
wrapWidth: options.wrapWidth,
|
|
332
452
|
truncated,
|
|
333
453
|
};
|
|
454
|
+
return bound === undefined ? layout : { ...layout, bounded: true };
|
|
334
455
|
}
|
|
335
456
|
|
|
336
457
|
/** The counts of a `TextLayoutCache`. `calls` is the count of the `layoutText` calls, and `size` is the count of the entries. */
|
|
@@ -368,7 +489,7 @@ function numberKey(value: number | undefined): string {
|
|
|
368
489
|
*/
|
|
369
490
|
function optionsKey(o: TextLayoutOptions): string {
|
|
370
491
|
const numbers = `${numberKey(o.lineHeight)},${numberKey(o.wrapWidth)},${numberKey(o.maxLines)},${numberKey(o.maxChars)},${numberKey(o.padding)},${numberKey(o.minWidth)},${numberKey(o.maxWidth)}`;
|
|
371
|
-
return `${numbers},${(o.wordBreak ?? "keep") === "keep"},${o.breaker},${o.font.length},${o.ellipsis?.length},${o.font}${o.ellipsis ?? ""}`;
|
|
492
|
+
return `${numbers},${(o.wordBreak ?? "keep") === "keep"},${o.breaker},${o.sizing ?? "exact"},${o.font.length},${o.ellipsis?.length},${o.font}${o.ellipsis ?? ""}`;
|
|
372
493
|
}
|
|
373
494
|
|
|
374
495
|
/** This function tells if two sets of options are the same. It uses `Object.is`, so 0 and -0 are different. It makes no string, so it is cheap on each hit. */
|
|
@@ -385,7 +506,9 @@ function sameOptions(a: TextLayoutOptions, b: TextLayoutOptions): boolean {
|
|
|
385
506
|
Object.is(a.maxWidth, b.maxWidth) &&
|
|
386
507
|
a.ellipsis === b.ellipsis &&
|
|
387
508
|
a.wordBreak === b.wordBreak &&
|
|
388
|
-
a.breaker === b.breaker
|
|
509
|
+
a.breaker === b.breaker &&
|
|
510
|
+
a.sizing === b.sizing &&
|
|
511
|
+
a.charset === b.charset
|
|
389
512
|
);
|
|
390
513
|
}
|
|
391
514
|
|
|
@@ -399,7 +522,7 @@ interface CurrentOptions {
|
|
|
399
522
|
}
|
|
400
523
|
|
|
401
524
|
/**
|
|
402
|
-
* This function gives a bounded cache of `layoutText` results, keyed by the text, the options and the
|
|
525
|
+
* This function gives a bounded cache of `layoutText` results, keyed by the text, the options, the measurer and the character set.
|
|
403
526
|
* A full cache removes one entry. It takes the set of options that a caller used least recently, and in it the text that a caller used least recently.
|
|
404
527
|
* The key holds the raw font string, because a host can give two spellings of a font two different advances.
|
|
405
528
|
* A measurer with `generation` starts a new set of keys after each `reset`. For a different measurer, start `reset` of the cache after a change of the advances.
|
|
@@ -409,25 +532,26 @@ export function createTextLayoutCache(options: TextLayoutCacheOptions = {}): Tex
|
|
|
409
532
|
if (!(Number.isInteger(max) && max >= 0)) throw new RangeError(`createTextLayoutCache: maxEntries is an integer of 0 or more, not ${max}.`);
|
|
410
533
|
// Each Map keeps the order of insertion, so its first key is the least recently used. A set of options is here only while it has an entry.
|
|
411
534
|
const groups = new Map<string, Map<string, TextLayout>>();
|
|
412
|
-
// A measurer
|
|
413
|
-
const ids = new WeakMap<
|
|
535
|
+
// A measurer and a character set are objects. Each gets a number here, so a key does not keep it alive.
|
|
536
|
+
const ids = new WeakMap<object, number>();
|
|
414
537
|
let nextId = 0;
|
|
415
538
|
let current: CurrentOptions | undefined;
|
|
416
539
|
let size = 0;
|
|
417
540
|
let requests = 0;
|
|
418
541
|
let hits = 0;
|
|
419
542
|
let calls = 0;
|
|
420
|
-
const idOf = (
|
|
421
|
-
let id = ids.get(
|
|
543
|
+
const idOf = (item: object): number => {
|
|
544
|
+
let id = ids.get(item);
|
|
422
545
|
if (id === undefined) {
|
|
423
546
|
id = nextId++;
|
|
424
|
-
ids.set(
|
|
547
|
+
ids.set(item, id);
|
|
425
548
|
}
|
|
426
549
|
return id;
|
|
427
550
|
};
|
|
428
551
|
/** This function finds the layouts of a set of options, and it makes that set the most recently used. */
|
|
429
552
|
const open = (layoutOptions: TextLayoutOptions, generation: number | undefined): CurrentOptions => {
|
|
430
|
-
const
|
|
553
|
+
const charset = layoutOptions.charset === undefined ? "" : idOf(layoutOptions.charset);
|
|
554
|
+
const key = `${idOf(layoutOptions.measurer)},${generation},${charset},${optionsKey(layoutOptions)}`;
|
|
431
555
|
const layouts = groups.get(key) ?? new Map<string, TextLayout>();
|
|
432
556
|
if (groups.delete(key)) groups.set(key, layouts);
|
|
433
557
|
return { options: { ...layoutOptions }, generation, key, layouts };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measures-WwacWhot.d.ts","names":[],"sources":["../src/geometry.ts","../src/corpus.ts","../src/input.ts","../src/shapes.ts","../src/measures.ts"],"mappings":";KACY;;cAGC,gBAAgB;UAEZ;WACN;WACA;;;UAIM;WACN;WACA;WACA;WACA;;;;;;UAOM;WACN;WACA;WACA;WACA;;;iBAIK,OAAO,MAAM,YAAY;;iBAKzB,YAAY,MAAM,OAAO;;UAKxB;WACN;WACA;WACA;WACA;;;;;;KAOC;WACG;WAAuB;WAAoB;WAAoB;WAAoB;;WAEnF;WACA;WACA;;WAEA;WAAyB;WAAqB;WAAqB;;WACnE;WAA0B;WAAqB;WAAqB;WAAqB;;;KAG5F,kBAAkB;;iBAGd,YAAY,QAAQ,qBAAqB;;iBAOzC,KAAK,MAAM,MAAM,QAAQ,qBAAqB;;iBAM9C,SAAS,QAAQ,SAAS;;;;;iBA4B1B,WAAW,QAAQ;;iBAyBnB,UAAU,QAAQ,QAAQ,YAAY,aAAa;;;;;iBAoBnD,UAAU,GAAG,MAAM,GAAG;WAAkB;WAAoB;;;UCpJ3D;;WAEN;;WAEA;;WAEA;;;UAIM;;WAEN;;WAEA;;WAEA,QAAQ,SAAS;;WAEjB,WAAW;;WAEX;;;;;;;;KASC;;;;KAGA,aAAa,SAAS;;cAGrB;;;;;;iBA4CG,SAAS,MAAM,YAAY,UAAU;;KAazC,SAAS,MAAM,OAAO;;;;;iBAMlB,eAAe,GAAG,QAAQ,SAAS,IAAI,UAAU,SAAS,IAAI,0BAA8B;;;;;iBAa5F,gBAAgB,mBAAmB;;;;;;;;;;;;;;;iBAuCnC,cAAc,GAC5B,QAAQ,SAAS,IACjB,UAAU,SAAS,IACnB,OAAO,eACP,yBACA,UAAS,OAAO,MAAM,yBACrB;;UAiEc;WACN;WACA;;;;;;iBAOK,aAAa,gBAAgB,iBAAiB;;cAKjD;;UAGI;WACN;WACA;;;UAIM;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