@motionscript/code 0.0.0-stage → 0.1.0-alpha.10

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 (105) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +49 -0
  4. package/README.md +174 -3
  5. package/dist/browser/THIRD_PARTY_LICENSES.txt +431 -0
  6. package/dist/browser/chunks/chunk-HET2RCSD.js +2 -0
  7. package/dist/browser/chunks/chunk-HET2RCSD.js.map +7 -0
  8. package/dist/browser/chunks/chunk-SYZUZB3M.js +2 -0
  9. package/dist/browser/chunks/chunk-SYZUZB3M.js.map +7 -0
  10. package/dist/browser/chunks/dist-3F5TQHM6.js +2 -0
  11. package/dist/browser/chunks/dist-3F5TQHM6.js.map +7 -0
  12. package/dist/browser/chunks/dist-3SIR23P4.js +2 -0
  13. package/dist/browser/chunks/dist-3SIR23P4.js.map +7 -0
  14. package/dist/browser/chunks/dist-AQRNACF3.js +2 -0
  15. package/dist/browser/chunks/dist-AQRNACF3.js.map +7 -0
  16. package/dist/browser/chunks/dist-B46VH2YP.js +2 -0
  17. package/dist/browser/chunks/dist-B46VH2YP.js.map +7 -0
  18. package/dist/browser/chunks/dist-FH6BHJ6A.js +7 -0
  19. package/dist/browser/chunks/dist-FH6BHJ6A.js.map +7 -0
  20. package/dist/browser/chunks/dist-FQDUBZKU.js +2 -0
  21. package/dist/browser/chunks/dist-FQDUBZKU.js.map +7 -0
  22. package/dist/browser/chunks/dist-GPNEVCJI.js +2 -0
  23. package/dist/browser/chunks/dist-GPNEVCJI.js.map +7 -0
  24. package/dist/browser/chunks/dist-LRSXSDHT.js +2 -0
  25. package/dist/browser/chunks/dist-LRSXSDHT.js.map +7 -0
  26. package/dist/browser/chunks/dist-N4CNBNHL.js +2 -0
  27. package/dist/browser/chunks/dist-N4CNBNHL.js.map +7 -0
  28. package/dist/browser/chunks/dist-OXJDTPQ6.js +2 -0
  29. package/dist/browser/chunks/dist-OXJDTPQ6.js.map +7 -0
  30. package/dist/browser/chunks/dist-SH7H4MRK.js +2 -0
  31. package/dist/browser/chunks/dist-SH7H4MRK.js.map +7 -0
  32. package/dist/browser/chunks/dist-UG3NTKWL.js +2 -0
  33. package/dist/browser/chunks/dist-UG3NTKWL.js.map +7 -0
  34. package/dist/browser/chunks/dist-W5ZXIMV7.js +2 -0
  35. package/dist/browser/chunks/dist-W5ZXIMV7.js.map +7 -0
  36. package/dist/browser/index.js +11 -0
  37. package/dist/browser/index.js.map +7 -0
  38. package/dist/browser/manifest.json +93 -0
  39. package/dist/code-range.d.ts +75 -0
  40. package/dist/code-range.d.ts.map +1 -0
  41. package/dist/code-range.js +132 -0
  42. package/dist/code-range.js.map +1 -0
  43. package/dist/diff.d.ts +56 -0
  44. package/dist/diff.d.ts.map +1 -0
  45. package/dist/diff.js +311 -0
  46. package/dist/diff.js.map +1 -0
  47. package/dist/engine.d.ts +15 -0
  48. package/dist/engine.d.ts.map +1 -0
  49. package/dist/engine.js +17 -0
  50. package/dist/engine.js.map +1 -0
  51. package/dist/highlight.d.ts +51 -0
  52. package/dist/highlight.d.ts.map +1 -0
  53. package/dist/highlight.js +277 -0
  54. package/dist/highlight.js.map +1 -0
  55. package/dist/index.d.ts +4 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +4 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/layout.d.ts +77 -0
  60. package/dist/layout.d.ts.map +1 -0
  61. package/dist/layout.js +74 -0
  62. package/dist/layout.js.map +1 -0
  63. package/dist/measure-cache.d.ts +38 -0
  64. package/dist/measure-cache.d.ts.map +1 -0
  65. package/dist/measure-cache.js +0 -0
  66. package/dist/measure-cache.js.map +1 -0
  67. package/dist/node.d.ts +287 -0
  68. package/dist/node.d.ts.map +1 -0
  69. package/dist/node.js +667 -0
  70. package/dist/node.js.map +1 -0
  71. package/dist/nodes.d.ts +15 -0
  72. package/dist/nodes.d.ts.map +1 -0
  73. package/dist/nodes.js +16 -0
  74. package/dist/nodes.js.map +1 -0
  75. package/dist/render.d.ts +35 -0
  76. package/dist/render.d.ts.map +1 -0
  77. package/dist/render.js +282 -0
  78. package/dist/render.js.map +1 -0
  79. package/dist/style.d.ts +88 -0
  80. package/dist/style.d.ts.map +1 -0
  81. package/dist/style.js +207 -0
  82. package/dist/style.js.map +1 -0
  83. package/dist/tokens.d.ts +24 -0
  84. package/dist/tokens.d.ts.map +1 -0
  85. package/dist/tokens.js +54 -0
  86. package/dist/tokens.js.map +1 -0
  87. package/dist/transitions.d.ts +133 -0
  88. package/dist/transitions.d.ts.map +1 -0
  89. package/dist/transitions.js +85 -0
  90. package/dist/transitions.js.map +1 -0
  91. package/package.json +85 -3
  92. package/registry.json +6 -0
  93. package/src/code-range.ts +165 -0
  94. package/src/diff.ts +351 -0
  95. package/src/engine.ts +21 -0
  96. package/src/highlight.ts +340 -0
  97. package/src/index.ts +3 -0
  98. package/src/layout.ts +157 -0
  99. package/src/measure-cache.ts +0 -0
  100. package/src/node.ts +854 -0
  101. package/src/nodes.ts +16 -0
  102. package/src/render.ts +315 -0
  103. package/src/style.ts +255 -0
  104. package/src/tokens.ts +79 -0
  105. package/src/transitions.ts +204 -0
package/dist/node.d.ts ADDED
@@ -0,0 +1,287 @@
1
+ import { type NodeOf, type NormalizedColor, type Color as _Color, type Node2D as _Node2D, type Node2DProps as _Node2DProps } from "@motionscript/sdk";
2
+ import { type CodeDiffStrategy, type CodePhaseStrategy, type CodeRange, type CodeTheme, type DimTransition, type IdLine, type RowBand, type RowsTransition, type StructuralTransition } from "./engine.js";
3
+ /**
4
+ * Which token became which across an edit, and when each part of it happens.
5
+ * Arguments of {@link defineCode}: a strategy is a function, which a prop would
6
+ * take for a binding, so it is part of the component's definition instead.
7
+ */
8
+ export interface CodeStrategies {
9
+ /** Decides which token became which across an edit. Defaults to `defaultCodeDiff`. */
10
+ diffStrategy?: CodeDiffStrategy;
11
+ /** Decides when (in normalized transition time) each part of an edit happens. Defaults to `defaultCodePhases`. */
12
+ phaseStrategy?: CodePhaseStrategy;
13
+ }
14
+ /** `code` part-way through a `to({ code })`: the source it leaves, the one it lands on, and how far along it is, eased. */
15
+ export interface CodeBlend {
16
+ readonly from: string;
17
+ readonly to: string;
18
+ readonly t: number;
19
+ }
20
+ /** What `code` holds: a source, or a {@link CodeBlend} while a `to({ code })` runs. */
21
+ export type CodeSource = string | CodeBlend;
22
+ /** A range argument: one range, several, or a chain that went through JSON as `{ list }`. */
23
+ export type CodeTarget = CodeRange | Iterable<CodeRange> | {
24
+ readonly list: CodeRange[];
25
+ };
26
+ /** What a structure was tokenized with: the grammar, the theme and whether the grammar had landed. */
27
+ export interface CodeTokenBasis {
28
+ readonly language: string;
29
+ readonly theme: CodeTheme;
30
+ readonly highlighted: boolean;
31
+ }
32
+ /** A listing a command left behind: its source, its tokens, and the basis they were made on. */
33
+ export interface CodeListing {
34
+ readonly source: string;
35
+ readonly lines: IdLine[];
36
+ readonly basis: CodeTokenBasis;
37
+ }
38
+ export interface CodeEditFrame {
39
+ readonly transition: StructuralTransition;
40
+ readonly progress: number;
41
+ }
42
+ /** The dim `highlight` leaves: what stays bright, what the rest dims to, and the cross-fade in flight. */
43
+ export interface CodeFocus {
44
+ readonly dim: number | null;
45
+ readonly ids: Set<number>;
46
+ readonly fade: DimTransition | null;
47
+ }
48
+ export interface CodeBanding {
49
+ readonly bands: RowBand[];
50
+ readonly fade: RowsTransition | null;
51
+ }
52
+ /**
53
+ * A `Code` whose edits are paired and timed by `strategies`. {@link Code} is
54
+ * the one with the defaults; a project wanting another hands its own to the
55
+ * engine in its place (the key is the same).
56
+ *
57
+ * A listing and nothing else: no paint slots, and no box behind the tokens. A
58
+ * listing set on a card is a `Code` inside a hugging `Rect`.
59
+ */
60
+ export declare function defineCode(strategies?: CodeStrategies): import("@motionscript/sdk").Component<"code", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
61
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
62
+ readonly language: "typescript";
63
+ readonly fontFamily: "Fira Mono";
64
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
65
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
66
+ readonly fontSize: 16;
67
+ readonly lineHeight: 1.6;
68
+ readonly letterSpacing: 1.1;
69
+ readonly showLineNumbers: false;
70
+ readonly lineNumberGap: 2;
71
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
72
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
73
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
74
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
75
+ }>, {
76
+ readonly append: {
77
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
78
+ };
79
+ readonly prepend: {
80
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
81
+ };
82
+ readonly insert: {
83
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
84
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
85
+ };
86
+ readonly remove: {
87
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
88
+ };
89
+ readonly replace: {
90
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
91
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
92
+ };
93
+ readonly highlight: {
94
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
95
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
96
+ };
97
+ readonly resetHighlight: unknown;
98
+ readonly highlightRows: {
99
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
100
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
101
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
102
+ };
103
+ readonly resetRowHighlight: unknown;
104
+ }, readonly [], _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
105
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
106
+ readonly language: "typescript";
107
+ readonly fontFamily: "Fira Mono";
108
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
109
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
110
+ readonly fontSize: 16;
111
+ readonly lineHeight: 1.6;
112
+ readonly letterSpacing: 1.1;
113
+ readonly showLineNumbers: false;
114
+ readonly lineNumberGap: 2;
115
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
116
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
117
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
118
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
119
+ }>, readonly [], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
120
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
121
+ readonly language: "typescript";
122
+ readonly fontFamily: "Fira Mono";
123
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
124
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
125
+ readonly fontSize: 16;
126
+ readonly lineHeight: 1.6;
127
+ readonly letterSpacing: 1.1;
128
+ readonly showLineNumbers: false;
129
+ readonly lineNumberGap: 2;
130
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
131
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
132
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
133
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
134
+ }>, {
135
+ readonly append: {
136
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
137
+ };
138
+ readonly prepend: {
139
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
140
+ };
141
+ readonly insert: {
142
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
143
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
144
+ };
145
+ readonly remove: {
146
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
147
+ };
148
+ readonly replace: {
149
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
150
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
151
+ };
152
+ readonly highlight: {
153
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
154
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
155
+ };
156
+ readonly resetHighlight: unknown;
157
+ readonly highlightRows: {
158
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
159
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
160
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
161
+ };
162
+ readonly resetRowHighlight: unknown;
163
+ }, _Node2D<_Node2DProps>>>>;
164
+ /**
165
+ * A syntax-highlighted listing whose edits animate token by token: each edit
166
+ * is diffed against what is on screen, so a token that survives travels to
167
+ * its new column and only what changed fades.
168
+ */
169
+ export declare const Code: import("@motionscript/sdk").Component<"code", import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
170
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
171
+ readonly language: "typescript";
172
+ readonly fontFamily: "Fira Mono";
173
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
174
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
175
+ readonly fontSize: 16;
176
+ readonly lineHeight: 1.6;
177
+ readonly letterSpacing: 1.1;
178
+ readonly showLineNumbers: false;
179
+ readonly lineNumberGap: 2;
180
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
181
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
182
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
183
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
184
+ }>, {
185
+ readonly append: {
186
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
187
+ };
188
+ readonly prepend: {
189
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
190
+ };
191
+ readonly insert: {
192
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
193
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
194
+ };
195
+ readonly remove: {
196
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
197
+ };
198
+ readonly replace: {
199
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
200
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
201
+ };
202
+ readonly highlight: {
203
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
204
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
205
+ };
206
+ readonly resetHighlight: unknown;
207
+ readonly highlightRows: {
208
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
209
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
210
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
211
+ };
212
+ readonly resetRowHighlight: unknown;
213
+ }, readonly [], _Node2D<_Node2DProps>, import("@motionscript/sdk").CallProps<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
214
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
215
+ readonly language: "typescript";
216
+ readonly fontFamily: "Fira Mono";
217
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
218
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
219
+ readonly fontSize: 16;
220
+ readonly lineHeight: 1.6;
221
+ readonly letterSpacing: 1.1;
222
+ readonly showLineNumbers: false;
223
+ readonly lineNumberGap: 2;
224
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
225
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
226
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
227
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
228
+ }>, readonly [], import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
229
+ readonly code: import("@motionscript/sdk").Type<string, CodeSource, false>;
230
+ readonly language: "typescript";
231
+ readonly fontFamily: "Fira Mono";
232
+ /** A built-in or registered theme name (e.g. `'github-dark'`), or a `CodeHighlightStyle` object. */
233
+ readonly theme: import("@motionscript/sdk").Type<CodeTheme, CodeTheme, false>;
234
+ readonly fontSize: 16;
235
+ readonly lineHeight: 1.6;
236
+ readonly letterSpacing: 1.1;
237
+ readonly showLineNumbers: false;
238
+ readonly lineNumberGap: 2;
239
+ readonly listing: import("@motionscript/sdk").Type<CodeListing | null, CodeListing | null, true>;
240
+ readonly edit: import("@motionscript/sdk").Type<CodeEditFrame | null, CodeEditFrame | null, true>;
241
+ readonly focus: import("@motionscript/sdk").Type<CodeFocus, CodeFocus, true>;
242
+ readonly banding: import("@motionscript/sdk").Type<CodeBanding, CodeBanding, true>;
243
+ }>, {
244
+ readonly append: {
245
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
246
+ };
247
+ readonly prepend: {
248
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
249
+ };
250
+ readonly insert: {
251
+ readonly position: import("@motionscript/sdk").Type<[number, number] | undefined, [number, number] | undefined, false>;
252
+ readonly code: import("@motionscript/sdk").Type<string, string, false>;
253
+ };
254
+ readonly remove: {
255
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
256
+ };
257
+ readonly replace: {
258
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
259
+ readonly replacement: import("@motionscript/sdk").Type<string, string, false>;
260
+ };
261
+ readonly highlight: {
262
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
263
+ readonly dim: import("@motionscript/sdk").Type<number, number, false>;
264
+ };
265
+ readonly resetHighlight: unknown;
266
+ readonly highlightRows: {
267
+ readonly target: import("@motionscript/sdk").Type<CodeTarget | undefined, CodeTarget | undefined, false>;
268
+ readonly color: import("@motionscript/sdk").Type<_Color, NormalizedColor, false>;
269
+ readonly radius: import("@motionscript/sdk").Type<number, number, false>;
270
+ };
271
+ readonly resetRowHighlight: unknown;
272
+ }, _Node2D<_Node2DProps>>>>;
273
+ export type Code = NodeOf<typeof Code>;
274
+ export type CodeProps = NonNullable<Parameters<typeof Code>[0]>;
275
+ /** What a listing shows now: its source, its token rows, and the edit in flight, if any. */
276
+ export declare function listingOf(code: Code): {
277
+ readonly source: string;
278
+ readonly lines: readonly IdLine[];
279
+ readonly edit: StructuralTransition | null;
280
+ };
281
+ /** Every range matching the literal `text` in `source`, in order and not overlapping. Multi-line matches are found too. */
282
+ export declare function findAllRanges(source: CodeSource, text: string): CodeRange[];
283
+ /** The `index`th range matching `text`, or `null`. */
284
+ export declare function findRangeAt(source: CodeSource, text: string, index: number): CodeRange | null;
285
+ /** The first range matching `text`, or `null`. */
286
+ export declare function findFirstRange(source: CodeSource, text: string): CodeRange | null;
287
+ //# sourceMappingURL=node.d.ts.map
@@ -0,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