@maily-to/render 0.2.3 → 2.0.0-beta.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.
package/dist/index.d.mts CHANGED
@@ -1,9 +1,13 @@
1
+ import { AnyMailyMark, AnyMailyNode, FontFamilyItem, FontProps, NodeThemeOptions } from "@maily-to/shared";
1
2
  import { HtmlProps } from "@react-email/components";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
- import { JSONContent, JSONContent as JSONContent$1 } from "@tiptap/core";
4
- import { RendererThemeOptions } from "@maily-to/shared";
5
-
6
- //#region src/meta.d.ts
3
+ import { JSONContent } from "@tiptap/core";
4
+ //#region src/lib/meta.d.ts
5
+ /**
6
+ * Descriptor for a single meta element to inject into the `<head>`.
7
+ * Supports the same shapes as Remix/React-Router's MetaDescriptor:
8
+ * charSet, title, name/content, property/content, httpEquiv/content,
9
+ * tagName ('meta' | 'link'), and a catch-all for arbitrary attrs.
10
+ */
7
11
  type MetaDescriptor = {
8
12
  charSet: 'utf-8';
9
13
  } | {
@@ -19,274 +23,174 @@ type MetaDescriptor = {
19
23
  content: string;
20
24
  } | {
21
25
  tagName: 'meta' | 'link';
22
- [attribute: string]: string;
26
+ [attr: string]: string;
23
27
  } | {
24
28
  [name: string]: string;
25
29
  };
26
- type MetaDescriptors = MetaDescriptor[];
27
30
  //#endregion
28
- //#region src/preheader.d.ts
29
- declare class Preheader {
30
- private readonly maily;
31
- constructor(maily: Maily);
32
- render(content: string | JSONContent$1): string;
33
- private renderNode;
34
- private doc;
35
- private paragraph;
36
- private text;
37
- private variable;
38
- }
39
- //# sourceMappingURL=preheader.d.ts.map
40
- //#endregion
41
- //#region src/maily.d.ts
42
- interface NodeOptions {
43
- parent?: JSONContent$1;
44
- prev?: JSONContent$1;
45
- next?: JSONContent$1;
46
- payloadValue?: PayloadValue;
47
- }
48
- interface MarkType {
49
- [key: string]: any;
50
- type: string;
51
- attrs?: Record<string, any> | undefined;
52
- }
53
- interface MailyConfig {
54
- /**
55
- * The preview text is the snippet of text that is pulled into the inbox
56
- * preview of an email client, usually right after the subject line.
57
- *
58
- * Default: `undefined`
59
- */
60
- preview?: string | JSONContent$1;
61
- /**
62
- * The theme object allows you to customize the colors and font sizes of the
63
- * rendered email.
64
- *
65
- * Default:
66
- * ```js
67
- * {
68
- * colors: {
69
- * heading: '#111827',
70
- * paragraph: '#374151',
71
- * horizontal: '#EAEAEA',
72
- * footer: '#64748B',
73
- * },
74
- * fontSize: {
75
- * paragraph: '15px',
76
- * footer: {
77
- * size: '14px',
78
- * lineHeight: '24px',
79
- * },
80
- * },
81
- * }
82
- * ```
83
- *
84
- * @example
85
- * ```js
86
- * const maily = new Maily(content, {
87
- * theme: {
88
- * colors: {
89
- * heading: '#111827',
90
- * },
91
- * fontSize: {
92
- * footer: {
93
- * size: '14px',
94
- * lineHeight: '24px',
95
- * },
96
- * },
97
- * },
98
- * });
99
- * ```
100
- */
101
- theme?: Partial<RendererThemeOptions>;
102
- }
103
- declare const DEFAULT_SECTION_BACKGROUND_COLOR = "#ffffff";
104
- declare const DEFAULT_SECTION_ALIGN = "left";
105
- declare const DEFAULT_SECTION_BORDER_WIDTH = 1;
106
- declare const DEFAULT_SECTION_BORDER_COLOR = "#000000";
107
- declare const DEFAULT_SECTION_MARGIN_TOP = 0;
108
- declare const DEFAULT_SECTION_MARGIN_RIGHT = 0;
109
- declare const DEFAULT_SECTION_MARGIN_BOTTOM = 0;
110
- declare const DEFAULT_SECTION_MARGIN_LEFT = 0;
111
- declare const DEFAULT_SECTION_PADDING_TOP = 5;
112
- declare const DEFAULT_SECTION_PADDING_RIGHT = 5;
113
- declare const DEFAULT_SECTION_PADDING_BOTTOM = 5;
114
- declare const DEFAULT_SECTION_PADDING_LEFT = 5;
115
- declare const DEFAULT_COLUMNS_WIDTH = "100%";
116
- declare const DEFAULT_COLUMNS_GAP = 8;
117
- declare const DEFAULT_COLUMN_BACKGROUND_COLOR = "transparent";
118
- declare const DEFAULT_COLUMN_BORDER_RADIUS = 0;
119
- declare const DEFAULT_COLUMN_BORDER_WIDTH = 0;
120
- declare const DEFAULT_COLUMN_BORDER_COLOR = "transparent";
121
- declare const DEFAULT_COLUMN_PADDING_TOP = 0;
122
- declare const DEFAULT_COLUMN_PADDING_RIGHT = 0;
123
- declare const DEFAULT_COLUMN_PADDING_BOTTOM = 0;
124
- declare const DEFAULT_COLUMN_PADDING_LEFT = 0;
125
- declare const DEFAULT_INLINE_IMAGE_HEIGHT = 20;
126
- declare const DEFAULT_INLINE_IMAGE_WIDTH = 20;
127
- declare const LINK_PROTOCOL_REGEX: RegExp;
128
- declare const DEFAULT_META_TAGS: MetaDescriptors;
129
- declare const DEFAULT_HTML_PROPS: HtmlProps;
130
- interface RenderOptions {
131
- /**
132
- * The options object allows you to customize the output of the rendered
133
- * email.
134
- * - `pretty` - If `true`, the output will be formatted with indentation and
135
- * line breaks.
136
- * - `plainText` - If `true`, the output will be plain text instead of HTML.
137
- * This is useful for testing purposes.
138
- *
139
- * Default: `pretty` - `false`, `plainText` - `false`
140
- */
141
- pretty?: boolean;
142
- plainText?: boolean;
143
- }
144
- type VariableFormatter = (options: {
145
- variable: string;
31
+ //#region src/config.d.ts
32
+ /**
33
+ * Custom formatter called when a variable has no value in `variables`.
34
+ * Return a placeholder string (e.g. `{{name}}` or `${name}`).
35
+ */
36
+ type VariableFormatter = (opts: {
146
37
  fallback?: string;
38
+ variable: string;
147
39
  }) => string;
148
- type VariableValues = Map<string, string>;
149
- type LinkValues = Map<string, string>;
150
- type PayloadValue = Record<string, any> | boolean;
151
- type PayloadValues = Map<string, PayloadValue>;
152
- declare class Maily {
153
- readonly preheader: Preheader;
154
- private readonly content;
155
- private config;
156
- private variableFormatter;
157
- private shouldReplaceVariableValues;
158
- private variableValues;
159
- private linkValues;
160
- private openTrackingPixel;
161
- private payloadValues;
162
- private marksOrder;
163
- private meta;
164
- private htmlProps;
165
- constructor(content?: JSONContent$1);
166
- setPreviewText(preview?: string | JSONContent$1): void;
167
- setTheme(theme: Partial<RendererThemeOptions>): void;
168
- setVariableFormatter(formatter: VariableFormatter): void;
169
- /**
170
- * `setVariableValue` will set the variable value.
171
- * It will also set `shouldReplaceVariableValues` to `true`.
172
- *
173
- * @param variable - The variable name
174
- * @param value - The variable value
175
- */
176
- setVariableValue(variable: string, value: string): void;
177
- /**
178
- * `setVariableValues` will set the variable values.
179
- * It will also set `shouldReplaceVariableValues` to `true`.
180
- *
181
- * @param values - The variable values
182
- *
183
- * @example
184
- * ```js
185
- * const maily = new Maily(content);
186
- * maily.setVariableValues({
187
- * name: 'John Doe',
188
- * email: 'john@doe.com',
189
- * });
190
- * ```
191
- */
192
- setVariableValues(values: Record<string, string>): void;
193
- setLinkValue(link: string, value: string): void;
194
- setLinkValues(values: Record<string, string>): void;
195
- setPayloadValue(key: string, value: PayloadValue): void;
196
- setPayloadValues(values: Record<string, PayloadValue>): void;
197
- /**
198
- * `setOpenTrackingPixel` will set the open tracking pixel.
199
- *
200
- * @param pixel - The open tracking pixel
201
- */
202
- setOpenTrackingPixel(pixel?: string): void;
40
+ /**
41
+ * Any value that can be stored in the unified `variables` map.
42
+ *
43
+ * - `string` — text substitution (variable nodes, link href overrides)
44
+ * - `number` — numeric comparisons in visibility rules
45
+ * - `boolean` — truthy/falsy visibility checks
46
+ * - `Record<string, unknown>` — nested object data
47
+ * - `VariableValue[]` — arrays iterated by repeat nodes
48
+ */
49
+ type VariableValue = Record<string, unknown> | VariableValue[] | boolean | number | string;
50
+ /**
51
+ * Public config passed to `render()`.
52
+ *
53
+ * Resolution priority (highest → lowest):
54
+ * 1. `item` — per-iteration data set by repeat nodes (via context)
55
+ * 2. `variables` — this map
56
+ * 3. `variableFormatter` — fallback that produces a placeholder string
57
+ */
58
+ type MailyConfig = {
59
+ fontFamilies?: FontFamilyItem[];
60
+ htmlProps?: HtmlProps;
61
+ meta?: MetaDescriptor[];
62
+ openTrackingPixel?: string;
63
+ preview?: JSONContent | string;
64
+ theme?: NodeThemeOptions;
65
+ variableFormatter?: VariableFormatter;
66
+ variables?: Record<string, VariableValue>;
67
+ };
68
+ type BuiltMailyConfig = {
69
+ fontFamilies: FontFamilyItem[];
70
+ htmlProps: HtmlProps;
71
+ meta: MetaDescriptor[];
72
+ openTrackingPixel?: string;
73
+ preview?: JSONContent | string;
74
+ variableFormatter: VariableFormatter;
75
+ variableValues: Map<string, VariableValue>;
76
+ };
77
+ declare function buildConfig(config?: MailyConfig): BuiltMailyConfig;
78
+ //#endregion
79
+ //#region src/context.d.ts
80
+ /**
81
+ * Typed variable keys available on every RenderContext.
82
+ *
83
+ * Extend via module augmentation to add custom keys:
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * declare module '@maily-to/render' {
88
+ * interface RenderVariableMap {
89
+ * item: Record<string, unknown>;
90
+ * }
91
+ * }
92
+ * ```
93
+ */
94
+ interface RenderVariableMap {
95
+ columnWidth: string;
96
+ item: Record<string, unknown>;
97
+ }
98
+ type BoxModel = {
99
+ totalWidth: number;
100
+ totalBorder: number;
101
+ totalPadding: number;
102
+ };
103
+ /**
104
+ * Render-time context threaded through every node renderer.
105
+ *
106
+ * State scoping:
107
+ * - `config` — immutable, shared by the entire tree.
108
+ * - `styles` — a shared collector that accumulates to the document root.
109
+ * Use `style()` from any depth; every context writes to the same set.
110
+ * - `fonts` — a shared collector of the fonts the document needs an
111
+ * `@font-face` rule for, keyed so each variant is registered once.
112
+ * - `vars` — cloned per `child()` call. A child inherits the parent's vars at
113
+ * creation time, but mutations in either direction are isolated.
114
+ * - `parent`, `siblingIndex`, `size` — local to each context instance.
115
+ */
116
+ interface RenderContext<Variables extends RenderVariableMap = RenderVariableMap> {
117
+ readonly parent: AnyMailyNode | undefined;
118
+ readonly siblingIndex: number;
119
+ readonly config: BuiltMailyConfig;
120
+ readonly size: Readonly<BoxModel>;
121
+ /** Content width after subtracting border and padding from `size.totalWidth`. */
122
+ readonly box: number;
123
+ /** Render a single node using the registered node renderers. */
124
+ render(node: AnyMailyNode): React.ReactNode;
125
+ /** Render all child nodes of a parent, creating a child context for each. */
126
+ children(parent: AnyMailyNode): React.ReactNode[];
203
127
  /**
204
- * `setShouldReplaceVariableValues` will determine whether to replace the
205
- * variable values or not. Otherwise, it will just return the formatted variable.
206
- *
207
- * Default: `false`
128
+ * Set a typed variable on this context.
129
+ * Only affects this context — child contexts created via `child()` get
130
+ * their own copy and won't see mutations made here after creation.
208
131
  */
209
- setShouldReplaceVariableValues(shouldReplace: boolean): void;
132
+ set<K extends keyof Variables>(key: K, value: Variables[K]): void;
133
+ /** Get a typed variable from this context. */
134
+ get<K extends keyof Variables>(key: K): Variables[K];
210
135
  /**
211
- * `setMetaTags` will add the meta tags.
212
- *
213
- * @param meta - The meta tags
136
+ * Access all variables as a readonly object. Creates a new object on
137
+ * each access — prefer `get()` for individual lookups.
214
138
  */
215
- setMetaTags(meta: MetaDescriptors): void;
139
+ readonly var: Readonly<Variables>;
140
+ /** Add a CSS rule to the shared document-level style collector. */
141
+ style(css: string): void;
142
+ /** Add a font to the shared document-level font collector. */
143
+ font(key: string, font: FontProps): void;
216
144
  /**
217
- * `setHtmlProps` will set the HTML props.
145
+ * Derive a child context for rendering a child node.
218
146
  *
219
- * @param props - The HTML props
147
+ * - `config` and `styles` are shared by reference.
148
+ * - `vars` are shallow-cloned so child `set()` calls don't affect the parent.
149
+ * - `parent`, `siblingIndex`, and `size` can be overridden; unset fields
150
+ * inherit from the current context.
220
151
  */
221
- setHtmlProps(props: HtmlProps): void;
222
- getAllLinks(): Set<string>;
223
- private isValidUrl;
224
- render(options?: RenderOptions): Promise<string>;
225
- /**
226
- * `children` will return the children of the content.
227
- * this is useful for rendering the content in a custom component.
228
- *
229
- * @returns The children of the content as JSX elements
230
- */
231
- children(): (react_jsx_runtime0.JSX.Element | null)[];
232
- /**
233
- * `markup` will render the JSON content into React Email markup.
234
- * and return the raw React Tree.
235
- */
236
- markup(): react_jsx_runtime0.JSX.Element;
237
- private getMarginOverrideConditions;
238
- private getMappedContent;
239
- private renderNode;
240
- private renderMark;
241
- private paragraph;
242
- private text;
243
- private bold;
244
- private italic;
245
- private underline;
246
- private strike;
247
- private textStyle;
248
- private link;
249
- private removeLinkProtocol;
250
- private variableUrlValue;
251
- private heading;
252
- private variable;
253
- getVariableValue(variable: string, fallback?: string, options?: NodeOptions): string;
254
- private horizontalRule;
255
- private orderedList;
256
- private bulletList;
257
- private listItem;
258
- private button;
259
- private spacer;
260
- private hardBreak;
261
- private logo;
262
- private image;
263
- private footer;
264
- private blockquote;
265
- private code;
266
- private linkCard;
267
- private section;
268
- private columns;
269
- private adjustColumnsContent;
270
- private column;
271
- private repeat;
272
- /**
273
- * @deprecated
274
- * This for node is an alias for the repeat node
275
- * we will remove this in the future
276
- * @param node
277
- * @param options
278
- * @returns JSX.Element
279
- */
280
- private for;
281
- private shouldShow;
282
- htmlCodeBlock(node: JSONContent$1, options?: NodeOptions): JSX.Element;
283
- private inlineImage;
152
+ child(opts: ChildContextOptions): RenderContext<Variables>;
153
+ readonly styles: ReadonlySet<string>;
154
+ readonly fonts: ReadonlyMap<string, FontProps>;
284
155
  }
156
+ type ChildContextOptions = {
157
+ parent?: AnyMailyNode;
158
+ siblingIndex?: number;
159
+ size?: Partial<BoxModel>;
160
+ };
161
+ type CreateRenderContextOptions = {
162
+ config: BuiltMailyConfig;
163
+ parent?: AnyMailyNode;
164
+ siblingIndex?: number;
165
+ size?: Partial<BoxModel>;
166
+ };
167
+ /**
168
+ * Creates the root RenderContext for a render pass. Node renderers
169
+ * derive child contexts via `ctx.child()` as they descend the tree.
170
+ */
171
+ declare function defineRenderContext<Variables extends RenderVariableMap = RenderVariableMap>(opts: CreateRenderContextOptions): RenderContext<Variables>;
172
+ //#endregion
173
+ //#region src/lib/link.d.ts
174
+ /**
175
+ * Extracts all valid URLs from link marks in a Maily document.
176
+ * Returns a deduplicated Set of href strings.
177
+ */
178
+ declare function links(json: JSONContent): Set<string>;
179
+ declare function getSafeHref(url: string | null | undefined): string | undefined;
180
+ //#endregion
181
+ //#region src/mark.d.ts
182
+ type MarkRenderer = (mark: AnyMailyMark, text: React.ReactNode, ctx: RenderContext) => React.ReactNode;
183
+ declare function marks(node: AnyMailyNode, ctx: RenderContext): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined;
184
+ //#endregion
185
+ //#region src/node.d.ts
186
+ type NodeRenderer = (node: AnyMailyNode, ctx: RenderContext) => React.ReactNode;
187
+ declare function dispatch(node: AnyMailyNode, ctx: RenderContext): React.ReactNode;
188
+ declare function children(parent: AnyMailyNode, ctx: RenderContext): React.ReactNode[];
285
189
  //#endregion
286
190
  //#region src/render.d.ts
287
- declare function render(content: JSONContent$1, config?: MailyConfig & RenderOptions): Promise<string>;
288
- //# sourceMappingURL=render.d.ts.map
289
-
191
+ declare function markup(json: AnyMailyNode, config?: MailyConfig): import("react").ReactNode;
192
+ declare function render(json: AnyMailyNode, config?: MailyConfig): Promise<string>;
193
+ declare function renderText(json: AnyMailyNode, config?: MailyConfig): Promise<string>;
290
194
  //#endregion
291
- export { DEFAULT_COLUMNS_GAP, DEFAULT_COLUMNS_WIDTH, DEFAULT_COLUMN_BACKGROUND_COLOR, DEFAULT_COLUMN_BORDER_COLOR, DEFAULT_COLUMN_BORDER_RADIUS, DEFAULT_COLUMN_BORDER_WIDTH, DEFAULT_COLUMN_PADDING_BOTTOM, DEFAULT_COLUMN_PADDING_LEFT, DEFAULT_COLUMN_PADDING_RIGHT, DEFAULT_COLUMN_PADDING_TOP, DEFAULT_HTML_PROPS, DEFAULT_INLINE_IMAGE_HEIGHT, DEFAULT_INLINE_IMAGE_WIDTH, DEFAULT_META_TAGS, DEFAULT_SECTION_ALIGN, DEFAULT_SECTION_BACKGROUND_COLOR, DEFAULT_SECTION_BORDER_COLOR, DEFAULT_SECTION_BORDER_WIDTH, DEFAULT_SECTION_MARGIN_BOTTOM, DEFAULT_SECTION_MARGIN_LEFT, DEFAULT_SECTION_MARGIN_RIGHT, DEFAULT_SECTION_MARGIN_TOP, DEFAULT_SECTION_PADDING_BOTTOM, DEFAULT_SECTION_PADDING_LEFT, DEFAULT_SECTION_PADDING_RIGHT, DEFAULT_SECTION_PADDING_TOP, JSONContent, LINK_PROTOCOL_REGEX, LinkValues, Maily, MailyConfig, MarkType, PayloadValue, PayloadValues, RenderOptions, VariableFormatter, VariableValues, render };
195
+ export { BoxModel, BuiltMailyConfig, ChildContextOptions, CreateRenderContextOptions, MailyConfig, MarkRenderer, type MetaDescriptor, NodeRenderer, RenderContext, RenderVariableMap, VariableFormatter, VariableValue, buildConfig, children, defineRenderContext, dispatch, getSafeHref, links, marks, markup, render, renderText };
292
196
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/meta.tsx","../src/preheader.ts","../src/maily.tsx","../src/render.ts"],"sourcesContent":[],"mappings":";;;;;;KAAY,cAAA;;;;;;EAAA,OAAA,EAAA,MAAA;AA2BZ,CAAA,GAAY;;;;ECxBC,SAAA,EAAA,MAAS;EAAA,OAAA,EAAA,MAAA;CAAA,GAAA;EACqB,OAEhB,EAAA,MAAA,GAAA,MAAA;EAAW,CAAA,SAAA,EAAA,MAAA,CAAA,EAAA,MAAA;;;;ACgC5B,KFXE,eAAA,GAAkB,cEWT,EAAA;;;cDnCR,SAAA;;qBACyB;2BAEX;EDNf,QAAA,UAAc;EA2Bd,QAAA,GAAA;;;;ACxBZ;;;;UCmCU,WAAA;EFtCE,MAAA,CAAA,EEuCD,aFvCe;EA2Bd,IAAA,CAAA,EEaH,aFbkB;SEclB;iBAEQ;;ADxCJ,UC2CI,QAAA,CD3CK;EAAA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAA,GAAA;EAAA,IACgB,EAAA,MAAA;EAAK,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BAAA,GAiTL,EAAA;AAgZ0D,cA/rBrD,mBA+rBqD,EA/rBlC,MA+rBkC;AA00B5C,cAvgDT,iBAugDS,EAvgDU,eAugDV;AAAuB,cA3+ChC,kBA2+CgC,EA3+CZ,SA2+CY;AAAc,UAj+C1C,aAAA,CAi+C8C;EAAO;;;;AChrDtE;;;;;;EAGU,MAAA,CAAA,EAAA,OAAA;;;KD2NE,iBAAA;;;;KAIA,cAAA,GAAiB;KACjB,UAAA,GAAa;KAEb,YAAA,GAAe;KACf,aAAA,GAAgB,YAAY;cAE3B,KAAA;sBACO;;;;;;;;;;;;wBAsBG;oCAIa;kBAIlB,QAAQ;kCAOQ;;;;;;;;;;;;;;;;;;;;;;;;4BAkCN;;wBAcJ;sCAMc;2BAQX,eAAe;;;;;;;;;;;;;;;;;;;oBA8BtB;;;;;;sBASE;iBAOT;;mBAuDA,gBACR;;;;;;;eAYK,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;YAwBF,kBAAA,CAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;kEAgZ0D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA00B5C,yBAAuB,cAAc,GAAA,CAAI;;;;;iBChrDzC,MAAA,UACX,wBACA,cAAc,gBACtB"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/lib/meta.tsx","../src/config.ts","../src/context.ts","../src/lib/link.ts","../src/mark.tsx","../src/node.tsx","../src/render.tsx"],"mappings":";;;;;;;;;;KAMY;EACN;;EACA;;EACA;EAAc;;EACd;EAAkB;;EAClB;EAAmB;;EACnB;GAA2B;;GAC1B;;;;;;;;KCCK,qBAAqB;EAC/B;EACA;;;;;;;;;;;KAYU,gBACR,0BACA;;;;;;;;;KAaQ;EACV,eAAe;EACf,YAAY;EACZ,OAAO;EACP;EACA,UAAU;EACV,QAAQ;EACR,oBAAoB;EACpB,YAAY,eAAe;;KAGjB;EACV,cAAc;EACd,WAAW;EACX,MAAM;EACN;EACA,UAAU;EACV,mBAAm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