@usememos/editor 0.0.0-stage → 26.10.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 (52) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +246 -2
  3. package/dist/base.css +218 -0
  4. package/dist/entities.dom.js +14 -0
  5. package/dist/entities.dom.js.map +7 -0
  6. package/dist/entities.js +17 -0
  7. package/dist/entities.js.map +7 -0
  8. package/dist/index.js +7304 -0
  9. package/dist/index.js.map +7 -0
  10. package/dist/react.js +143 -0
  11. package/dist/react.js.map +7 -0
  12. package/dist/style.css +592 -0
  13. package/dist/theme.css +214 -0
  14. package/dist/types/clipboard/fromHtml.d.ts +2 -0
  15. package/dist/types/clipboard/toHtml.d.ts +4 -0
  16. package/dist/types/commands.d.ts +168 -0
  17. package/dist/types/decorations.d.ts +40 -0
  18. package/dist/types/editor.d.ts +408 -0
  19. package/dist/types/extension.d.ts +70 -0
  20. package/dist/types/extensions/fileHandler.d.ts +28 -0
  21. package/dist/types/extensions/footnotes.d.ts +2 -0
  22. package/dist/types/extensions/keymap.d.ts +2 -0
  23. package/dist/types/extensions/math.d.ts +15 -0
  24. package/dist/types/extensions/suggestion.d.ts +51 -0
  25. package/dist/types/extensions/tags.d.ts +34 -0
  26. package/dist/types/extensions/textDecorator.d.ts +17 -0
  27. package/dist/types/history.d.ts +17 -0
  28. package/dist/types/index.d.ts +23 -0
  29. package/dist/types/keymap.d.ts +12 -0
  30. package/dist/types/labels.d.ts +41 -0
  31. package/dist/types/markdown/ast.d.ts +129 -0
  32. package/dist/types/markdown/autolink.d.ts +21 -0
  33. package/dist/types/markdown/blocks.d.ts +4 -0
  34. package/dist/types/markdown/entities.d.ts +2 -0
  35. package/dist/types/markdown/entities.dom.d.ts +2 -0
  36. package/dist/types/markdown/html.d.ts +2 -0
  37. package/dist/types/markdown/inline.d.ts +35 -0
  38. package/dist/types/markdown/lower.d.ts +9 -0
  39. package/dist/types/markdown/options.d.ts +75 -0
  40. package/dist/types/markdown/parse.d.ts +4 -0
  41. package/dist/types/markdown/serialize.d.ts +24 -0
  42. package/dist/types/markdown/source.d.ts +30 -0
  43. package/dist/types/model.d.ts +205 -0
  44. package/dist/types/react/index.d.ts +47 -0
  45. package/dist/types/theme.d.ts +87 -0
  46. package/dist/types/ui/handle.d.ts +16 -0
  47. package/dist/types/ui/popup.d.ts +58 -0
  48. package/dist/types/ui/toolbar.d.ts +28 -0
  49. package/dist/types/view/dom.d.ts +85 -0
  50. package/dist/types/view/reveal.d.ts +12 -0
  51. package/dist/types/widgets.d.ts +26 -0
  52. package/package.json +58 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Memos
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,247 @@
1
- # Temporary Holding Version
1
+ # @usememos/editor
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A block editor for standard Markdown, for React or any web app.
4
+
5
+ - Markdown in, Markdown out: CommonMark plus GFM tables, task lists, strikethrough and autolinks. Blocks you did not edit are saved byte for byte.
6
+ - Block editing: slash menu, a formatting toolbar, Markdown shortcuts, and a block handle on tables and code blocks.
7
+ - One package, `@usememos/editor`, with zero runtime dependencies. It works without a framework, and `@usememos/editor/react` is a thin React wrapper.
8
+
9
+ Status: v0 in development, not published yet. [docs/syntax.md](docs/syntax.md) specifies the Markdown it reads and writes, and [docs/architecture.md](docs/architecture.md) explains how it works.
10
+
11
+ ## Use it
12
+
13
+ React:
14
+
15
+ ```tsx
16
+ import { MarkdownEditor } from '@usememos/editor/react';
17
+ import '@usememos/editor/style.css';
18
+
19
+ function CommentBox() {
20
+ const [markdown, setMarkdown] = useState('');
21
+ return <MarkdownEditor value={markdown} onChange={setMarkdown} placeholder="Leave a comment…" onSubmit={post} />;
22
+ }
23
+ ```
24
+
25
+ Without a framework:
26
+
27
+ ```ts
28
+ import { Editor } from '@usememos/editor';
29
+ import '@usememos/editor/style.css';
30
+
31
+ const editor = new Editor({
32
+ element: document.querySelector('#editor')!,
33
+ content: '# Hello',
34
+ onChange: (markdown) => save(markdown),
35
+ });
36
+ ```
37
+
38
+ ### Options
39
+
40
+ The same names work in `new Editor(options)` and as React props, except that React takes `value` instead of `content`.
41
+
42
+ | Option | Type | Behavior |
43
+ | --- | --- | --- |
44
+ | `element` | `HTMLElement` | Core only. The editor renders into it. |
45
+ | `content` | `string` | Core only. Initial Markdown. |
46
+ | `value` | `string` | React only. The editor updates only when `value` differs from the last Markdown it emitted. |
47
+ | `defaultValue` | `string` | React only. Initial Markdown for uncontrolled use. |
48
+ | `markdown` | `{ breaks?, setext?, autolinks? }` | Markdown dialect. `breaks: true` reads a single newline as a line break and saves line breaks as plain newlines (as GitHub comments do). `setext: false` turns off setext headings, so `Title`⏎`---` is a paragraph and a divider. `autolinks: false` turns off GFM autolink literals, so a bare `https://…`, `www.…` or e-mail address stays text. See [docs/syntax.md](docs/syntax.md). |
49
+ | `extensions` | `Extension[]` | Adds syntax and behavior. Built in: `math()` (`$…$` and `$$` blocks), `footnotes()` (`[^1]` and `[^1]: …`), `tags()` (`#tag`) and `mentions()` (`@name`). Extension syntax is saved verbatim, and shown as source unless the extension renders it (see `views`). |
50
+ | `placeholder` | `string` | Shown when the document is empty. |
51
+ | `editable` | `boolean` | Default `true`. With `false`, no editing, and links open on click. |
52
+ | `autofocus` | `boolean \| 'start' \| 'end'` | Focuses the editor on creation, with the caret at the start or the end. |
53
+ | `attributes` | `Record<string, string>` | Attributes for the editable root, such as `autocorrect`, `autocapitalize` or `aria-label`. |
54
+ | `resolveImageSrc` | `(src) => string` | The URL to display for an image. The saved Markdown keeps the original `src`. |
55
+ | `toolbar` | `boolean` | Shows the formatting toolbar on selection. Default `true`. |
56
+ | `slashMenu` | `false \| string[]` | Built-in slash menu items to show, in order, or `false` for none: `text`, `heading1`, `heading2`, `heading3`, `bulletList`, `numberedList`, `todoList`, `quote`, `code`, `table`, `divider`. |
57
+ | `labels` | `Partial<Labels>` | Overrides UI strings, for localization. See `src/labels.ts`. |
58
+ | `onChange` | `(markdown: string) => void` | Called after document changes, at most once per animation frame. |
59
+ | `onSubmit` | `(markdown: string) => void` | Called on Mod+Enter or Ctrl+Enter with the current Markdown, for comment boxes and chat inputs. |
60
+ | `onFocus`, `onBlur` | `() => void` | Focus events. |
61
+
62
+ For note-style Markdown, as in the playground, use `markdown: { breaks: true, setext: false }` and `extensions: [math(), footnotes(), tags(), mentions()]`.
63
+
64
+ `editor.setOptions({ placeholder, editable, attributes, resolveImageSrc })` changes those options while the editor runs. The other options are fixed for the editor's lifetime.
65
+
66
+ In React, `placeholder`, `editable`, `attributes` and `resolveImageSrc` update live. A change to the names in `extensions` recreates the editor and keeps its Markdown, so an inline array is fine. Other props are read on mount; change the component's `key` to apply new values. A `ref` gives the core `Editor` instance. A `value` that arrives while an input method (IME) is composing text is applied when the composition ends.
67
+
68
+ For apps that manage the editor instance themselves, `useEditor(options, deps)` creates one and `<EditorContent editor={editor} />` shows it:
69
+
70
+ ```tsx
71
+ import { EditorContent, useEditor } from '@usememos/editor/react';
72
+
73
+ function Composer() {
74
+ const editor = useEditor({ content: '', extensions: [math()], onSubmit: send });
75
+ return <EditorContent editor={editor} />;
76
+ }
77
+ ```
78
+
79
+ ### API
80
+
81
+ | Member | What it does |
82
+ | --- | --- |
83
+ | `getMarkdown()` | The document as Markdown. |
84
+ | `setMarkdown(markdown, { history? })` | Replaces the document. `history: 'clear'` (default) clears undo history; `'keep'` makes the replacement one undo step. Does not emit `change`. |
85
+ | `isEmpty` | True when the document holds only empty paragraphs. |
86
+ | `state` | The document and selection, immutable. |
87
+ | `commands.*` | Edits. Each applies one change, records one undo step, and returns `true` if it did something: `toggleBold`, `toggleItalic`, `toggleStrike`, `toggleCode`, `setParagraph`, `toggleHeading({ level })`, `toggleBulletList`, `toggleOrderedList`, `toggleTaskList`, `toggleBlockquote`, `toggleCodeBlock({ language? })`, `setLink({ href })`, `unsetLink`, `insertText(text, { range? })`, `insertMarkdown(markdown, options?)`, `insertTable({ rows?, cols? })`, `insertDivider`, `indent`, `outdent`, `undo`, `redo`, `selectAll`, `selectBlocks`, `focus(position?)`, `blur`. `selectBlocks` selects the blocks the selection touches as whole blocks, as Escape does; it returns `false` when read-only. |
88
+ | `run(fn)` | Applies a custom command: a function from state to a new state, or `null`. The pure commands are exported as `commands` from the package. |
89
+ | `isActive(name, attrs?)` | `bold`, `italic`, `strike`, `code`, `link`, or the type of the block with the caret: `paragraph`, `heading`, `bulletList`, `orderedList`, `taskList`, `blockquote`, `codeBlock`, `table`, `divider`, `raw`. `attrs` narrows it, for example `isActive('heading', { level: 2 })`. |
90
+ | `getAttributes(name)` | `href` of a link, `level` of a heading, `language` of a code block, `checked` of a task, `syntax` of a raw block. |
91
+ | `selectedBlocks` | The blocks of a block selection, in document order, or an empty array when the selection is text. |
92
+ | `getSelection()`, `setSelection(selection)` | Read or move the selection. `setSelection` also takes a `SelectionJSON`, and clamps one that does not fit the document. |
93
+ | `selectionToJSON()` | The selection as JSON-safe data (block index and offset). It still fits after reloading the same Markdown, so an app can store the caret and restore it. |
94
+ | `on(event, handler)` | Subscribes; returns an unsubscribe function. Events: `change` (at most once per frame), `selectionChange`, `focus`, `blur`, `submit`. |
95
+ | `addWidget({ at, render })` | Shows app UI after the block that contains `at` (a position or `'end'`), such as an upload placeholder. Returns a widget with `update(render?)`, `remove()` and `isRemoved`. A widget is never saved and is not part of undo history. It moves with its block; if the block is deleted, it moves to the nearest remaining block. `insertMarkdown(md, { at: widget })` inserts after the widget's block. |
96
+ | `positionAtPoint(x, y)` | The document position at a viewport point, or `null`. |
97
+ | `hasFocus()`, `focus()`, `blur()`, `isEditable`, `setOptions(options)`, `destroy()` | |
98
+
99
+ `insertMarkdown(markdown, { at, block, select })`: `at` is `'selection'` (default; replaces the selection, like a paste), `'end'`, a position, or a widget; the last three replace nothing. A single paragraph is inserted inline unless `block: true`, which inserts it as its own block and splits the block at the target. `select: 'keep'` keeps the current selection instead of moving the caret after the inserted content.
100
+
101
+ ### Extensions
102
+
103
+ An extension is a plain object. All fields except `name` are optional.
104
+
105
+ ```ts
106
+ const tags: Extension = {
107
+ name: 'tags',
108
+ keymap: { 'Mod-Shift-t': ({ editor }) => editor.commands.insertText('#') },
109
+ decorations: ({ text, excluded }) => [{ from: 0, to: 1, class: 'first-letter' }],
110
+ handlePaste: ({ editor, event }) => false, // true stops the editor's own paste handling
111
+ handleDrop: ({ editor, event, position }) => false, // position: where the drop landed, or null
112
+ onCreate: ({ editor }) => () => {}, // the returned function runs on destroy
113
+ };
114
+ ```
115
+
116
+ `decorations` returns CSS classes for ranges of a block's text, for highlighting such as `#tags` and `@mentions`. It runs for each paragraph, heading, list item, quote and table cell, only when that block changes, and is never saved. `textDecorator({ pattern | scan, class })` builds one from a regular expression or a scanner function and skips matches inside inline code, links, images and tokens:
117
+
118
+ ```ts
119
+ textDecorator({ pattern: /\bTODO\b/, class: 'todo' })
120
+ ```
121
+
122
+ `tags()` and `mentions()` highlight `#tag` and `@name` (classes `mbe-tag` and `mbe-mention`), keep `\#` and `\@` as written so an escaped trigger survives edits, and take a `suggestion` for autocomplete. Tags and mentions stay plain text and are saved exactly as typed. `scan` replaces the default grammar (`scanTags`, `scanMentions`); see [docs/syntax.md](docs/syntax.md#tags-and-mentions):
123
+
124
+ ```ts
125
+ tags({
126
+ class: 'tag',
127
+ suggestion: {
128
+ items: async ({ query }) => (await loadTags()).filter((t) => t.startsWith(query)).map((t) => ({ id: t, label: `#${t}` })),
129
+ command: ({ editor, range, item }) => editor.commands.insertText(`#${item.id} `, { range }),
130
+ },
131
+ });
132
+ ```
133
+
134
+ `suggestion({ char, items, command })` opens a menu when `char` is typed at the start of a line or after a space. `items({ query })` returns the items for the text typed after it, and may be async. `command({ editor, range, item })` applies the pick; `range` covers the trigger and the query. The slash menu is built on the same code. Suggestions do not open inside table cells.
135
+
136
+ ```ts
137
+ suggestion({
138
+ char: '#',
139
+ items: async ({ query }) => (await loadTags()).filter((t) => t.startsWith(query)).map((t) => ({ id: t, label: `#${t}` })),
140
+ command: ({ editor, range, item }) => editor.commands.insertText(`#${item.id} `, { range }),
141
+ });
142
+ ```
143
+
144
+ Other options: `allowSpaces` (the query may contain single spaces), `allowAnywhere` (open inside a word too), `maxLength` (default 30), `emptyLabel` (show this instead of hiding when nothing matches), `className`.
145
+
146
+ `fileHandler({ accept, onPaste, onDrop })` receives pasted and dropped files. `accept` takes MIME types or patterns such as `image/*`. `onPaste` runs only when the clipboard has no plain text, so text copied together with an image still pastes as text. `onDrop` gets the document position of the drop. Dropped text without files is inserted where it lands.
147
+
148
+ `keymap` uses ProseMirror key names: `Mod-` (Cmd on macOS, Ctrl elsewhere), `Ctrl-`, `Alt-`, `Shift-`, `Meta-`, then a key such as `b`, `7`, `Enter` or `Escape`. A handler returns `true` to stop later bindings and the browser default. Bindings in earlier extensions run first. The default bindings are the `defaultKeymap()` extension, added last; pass your own extension named `defaultKeymap` to replace it.
149
+
150
+ `markdown` adds syntax; see `math()`, `footnotes()`, [docs/syntax.md](docs/syntax.md) and [docs/architecture.md](docs/architecture.md).
151
+
152
+ `views` shows a syntax rendered instead of as source, keyed by syntax name. While editing, a token shows its source when the caret touches it, and a raw block when the selection is in it; clicking either does the same. Read-only always shows the rendered view. `math()` uses this when given a render function; the core has no math renderer of its own, so pass one such as KaTeX:
153
+
154
+ ```ts
155
+ import katex from 'katex';
156
+ import 'katex/dist/katex.min.css';
157
+
158
+ math({ render: (tex, element, options) => katex.render(tex, element, { ...options, throwOnError: false }) });
159
+ ```
160
+
161
+ ### Theming
162
+
163
+ `style.css` is two stylesheets: `base.css` holds the layout the editor needs and all spacing between blocks, and `theme.css` the default look. The default look is quiet and compact, like a rendered Markdown view: a 16px body with 24px lines, 8px between blocks, headings close to the body size, muted quotes and list markers, code blocks on a light panel with no border, and tables as a light grid with a shaded header row. Editing and read-only look the same; only the cursor on links and checkboxes changes. It has no border or background of its own, so it fits inside your own card, comment box or chat input.
164
+
165
+ Every color, font and size in `theme.css` is a CSS custom property (`--mbe-text`, `--mbe-accent`, `--mbe-font`, …). Set them with the `theme` option's tokens, with a color set for light and one for dark; colors you leave out keep the defaults:
166
+
167
+ ```ts
168
+ new Editor({
169
+ element,
170
+ theme: {
171
+ tokens: {
172
+ light: { text: '#1f2328', muted: '#6e7781', accent: '#0969da' },
173
+ dark: { text: '#e6edf3', accent: '#58a6ff' },
174
+ font: 'Inter, sans-serif',
175
+ radius: 6,
176
+ },
177
+ colorScheme: 'auto',
178
+ },
179
+ });
180
+ ```
181
+
182
+ Colors are `text`, `muted`, `background`, `accent`, `link`, `codeBackground`, `border`, `popupBackground`, `popupBorder`, `hover` and `danger`; the other tokens are `font`, `mono`, `fontSize`, `lineHeight`, `radius` and `blockGap` (numbers are pixels). Values can be any CSS, such as `var(--primary)`, so the editor can follow your app's own variables. Menus, the toolbar and the link popover take the same tokens.
183
+
184
+ `colorScheme` picks light or dark: `auto` (the default) follows `prefers-color-scheme`, or `data-theme="light"` or `data-theme="dark"` on the editor or an ancestor; `light` and `dark` force one; `inherit` follows the page's `color-scheme`, for apps that switch it themselves. Switching tokens or the scheme with `setOptions({ theme })` re-renders nothing.
185
+
186
+ The `theme` option's `classes` add your own classes to rendered elements, next to the editor's `mbe-*` classes, so the editor can share classes with the rest of your app:
187
+
188
+ ```ts
189
+ new Editor({
190
+ element,
191
+ theme: {
192
+ classes: {
193
+ paragraph: 'leading-6',
194
+ heading: { 1: 'text-2xl/8 font-semibold', 2: 'text-xl/7 font-semibold' },
195
+ blockquote: 'border-s-3 ps-3 text-muted-foreground',
196
+ code: 'font-mono bg-muted rounded-md px-1',
197
+ link: 'text-primary underline underline-offset-2',
198
+ token: { math: 'text-primary' },
199
+ },
200
+ },
201
+ });
202
+ ```
203
+
204
+ Keys use the names of `isActive`: `paragraph`, `heading` (by level), `blockquote`, `bulletList`, `orderedList` and `taskList` (each list item; blocks are flat, so there is no list element), `codeBlock`, `table`, `divider` (the `<hr>`), `raw`, `image`, `bold`, `italic`, `strike`, `code`, `link`, and `token` (inline tokens of an extension syntax, by name). Extensions can add classes too; the editor's own `theme` wins for the same key. `setOptions({ theme })` changes them while the editor runs.
205
+
206
+ To style the editor entirely with your own classes, import `@usememos/editor/base.css` instead of `style.css`. Spacing between blocks stays in `base.css`, and its rules are more specific than a single class, so margins in your classes do not change it.
207
+
208
+ ## Keyboard
209
+
210
+ | Keys | Action |
211
+ | --- | --- |
212
+ | `/` | Slash menu |
213
+ | Mod+B, Mod+I, Mod+E | Bold, italic, inline code |
214
+ | Mod+Shift+X, Mod+Shift+S | Strikethrough |
215
+ | Mod+K | Link |
216
+ | Mod+Alt+0, Mod+Alt+1–3 | Paragraph, heading 1–3 |
217
+ | Mod+Alt+C | Code block |
218
+ | Mod+Shift+7, 8, 9 | Numbered, bullet, task list |
219
+ | Mod+/ | Block menu, in a table or code block |
220
+ | Mod+Z, Mod+Shift+Z (Ctrl+Y) | Undo, redo |
221
+ | Shift+Enter | Line break inside a block |
222
+ | Tab, Shift+Tab | Indent and outdent list items; next and previous table cell |
223
+ | Mod+Shift+V | Paste as plain text |
224
+ | Mod+Enter, Ctrl+Enter | `submit` |
225
+ | Escape | Close a menu or the toolbar; otherwise select the block with the caret (or every block a text selection crosses); in a block selection, leave the editor |
226
+
227
+ With blocks selected: ArrowUp and ArrowDown select the block above or below, Shift extends the selection, Mod+A selects every block, Backspace and Delete delete them, Mod+C, Mod+X and paste copy, cut and replace them as whole blocks, Mod+D duplicates them, and the block type keys, Tab and the mark keys apply to all of them. Enter, ArrowLeft and ArrowRight go back to editing text. Typing does nothing. See [Block selection](docs/architecture.md#block-selection).
228
+
229
+ Markdown shortcuts at the start of a line: `#`–`######`, `-`, `*`, `+`, `1.`, `[ ]`, `[x]`, `>`, ` ``` `, `---`. Inline: `**bold**`, `*italic*`, `_italic_`, `` `code` ``, `~~strike~~`.
230
+
231
+ ## What saving changes
232
+
233
+ Blocks you did not edit are saved exactly as they were loaded, byte for byte, including the blank lines between them. `getMarkdown()` right after loading returns the input unchanged.
234
+
235
+ Blocks you edited, and new blocks, are written in a normalized style: `*` for italic, `**` for bold, `-` for bullets, ATX headings, fenced code, tight lists, renumbered ordered lists, and inline links instead of reference links. Soft line breaks become spaces, unless `markdown.breaks` is on. Structure the editor cannot edit as blocks (a list inside a quote, a code block or second paragraph inside a list item, lists nested more than five levels) is kept as a raw block: the original Markdown, shown and edited as source, saved verbatim. Math and footnote blocks from the extensions are raw blocks too.
236
+
237
+ ## Develop
238
+
239
+ ```sh
240
+ npm install
241
+ npm run dev # playground: note composer at /, React at /react.html
242
+ npm test # unit, spec and round-trip tests (vitest)
243
+ npm run test:e2e # browser tests (Playwright, Chromium)
244
+ npm run test:perf # timing gates, run alone
245
+ npm run typecheck
246
+ npm run build # the published files, in packages/editor/dist
247
+ ```
package/dist/base.css ADDED
@@ -0,0 +1,218 @@
1
+ /*
2
+ * Layout the editor needs to work, and all spacing between blocks.
3
+ * No colors or fonts: theme.css adds the default look. style.css imports
4
+ * both; import this file alone to style the editor entirely with your own
5
+ * CSS or theme classes (see the `theme` option).
6
+ *
7
+ * Block spacing lives here so classes added by a theme cannot change it:
8
+ * these rules are more specific than a single utility class.
9
+ * All selectors are scoped under .mbe-root (the editable area) and
10
+ * .mbe-ui (menus, toolbar and handle, which live in document.body).
11
+ */
12
+ .mbe-root,
13
+ .mbe-ui {
14
+ --mbe-block-gap: 8px;
15
+ --mbe-indent-size: 24px;
16
+ }
17
+
18
+ /* Document ---------------------------------------------------------------- */
19
+
20
+ .mbe-root {
21
+ outline: none;
22
+ white-space: pre-wrap;
23
+ overflow-wrap: anywhere;
24
+ caret-color: currentColor;
25
+ position: relative;
26
+ }
27
+
28
+ /* Block rhythm: every block has the gap above and below, and adjacent
29
+ margins collapse, so blocks sit one gap apart and a block with larger
30
+ margins (a heading, a divider) wins. No sibling selectors: in Chrome they
31
+ make every edit restyle and re-lay out all blocks after the edited one. */
32
+ .mbe-root > .mbe-block {
33
+ margin: var(--mbe-block-gap) 0;
34
+ position: relative;
35
+ }
36
+ /* Block selection: whole blocks are highlighted and the caret is hidden.
37
+ The shadow pads the highlight without moving any text. */
38
+ .mbe-root.mbe-block-selecting { caret-color: transparent; }
39
+ .mbe-root > .mbe-block.mbe-block-selected {
40
+ background: color-mix(in srgb, Highlight 22%, transparent);
41
+ box-shadow: 0 0 0 3px color-mix(in srgb, Highlight 22%, transparent);
42
+ border-radius: 2px;
43
+ }
44
+ /* Long documents: blocks of a loaded document skip layout and paint off screen.
45
+ See BlockRenderer.render for why only those. */
46
+ .mbe-root > .mbe-lazy {
47
+ content-visibility: auto;
48
+ contain-intrinsic-size: auto 24px;
49
+ }
50
+
51
+ /* Headings: more room above than below. */
52
+ .mbe-root > :is(h1, h2).mbe-block { margin-top: 20px; }
53
+ .mbe-root > h3.mbe-block { margin-top: 20px; margin-bottom: 6px; }
54
+ .mbe-root > :is(h4, h5, h6).mbe-block { margin-top: 16px; margin-bottom: 4px; }
55
+
56
+ /* Quote: the renderer marks a quote block that follows another (see
57
+ updateNeighborMarks). The negative margin cancels the gap, and padding
58
+ keeps a border unbroken, so consecutive quote blocks read as one quote. */
59
+ .mbe-root > blockquote[data-quote-joined] { margin-top: calc(-1 * var(--mbe-block-gap)); padding-top: var(--mbe-block-gap); }
60
+
61
+ /* Lists: items sit close together; the list as a whole gets the block gap.
62
+ The renderer marks the first item of each list with data-list-start
63
+ (see updateNeighborMarks). Item margins of 2px collapse with a neighbor's
64
+ gap, so only the gap shows at either end of a list. */
65
+ .mbe-root > .mbe-list-item {
66
+ display: flex;
67
+ align-items: flex-start;
68
+ margin: 2px 0;
69
+ }
70
+ .mbe-root > .mbe-list-item[data-list-start] { margin-top: var(--mbe-block-gap); }
71
+ /* Attribute rules instead of an inline custom property, so list items share computed styles. */
72
+ .mbe-root > .mbe-list-item[data-indent='1'] { padding-inline-start: var(--mbe-indent-size); }
73
+ .mbe-root > .mbe-list-item[data-indent='2'] { padding-inline-start: calc(2 * var(--mbe-indent-size)); }
74
+ .mbe-root > .mbe-list-item[data-indent='3'] { padding-inline-start: calc(3 * var(--mbe-indent-size)); }
75
+ .mbe-root > .mbe-list-item[data-indent='4'] { padding-inline-start: calc(4 * var(--mbe-indent-size)); }
76
+ .mbe-root > .mbe-list-item[data-indent='5'] { padding-inline-start: calc(5 * var(--mbe-indent-size)); }
77
+ .mbe-root .mbe-marker {
78
+ flex: none;
79
+ box-sizing: border-box;
80
+ width: var(--mbe-indent-size);
81
+ padding-inline-end: 6px;
82
+ text-align: end;
83
+ user-select: none;
84
+ font-variant-numeric: tabular-nums;
85
+ }
86
+ .mbe-root .mbe-list-item[data-list-type='bullet'] > .mbe-marker::before { content: '•'; }
87
+ .mbe-root .mbe-list-item[data-list-type='task'] > .mbe-marker { width: auto; padding-inline-end: 8px; display: flex; }
88
+ .mbe-root .mbe-list-item > .mbe-content { flex: 1; min-width: 0; }
89
+ .mbe-root .mbe-checkbox {
90
+ box-sizing: border-box;
91
+ width: 16px;
92
+ height: 16px;
93
+ margin: 4px 0 0;
94
+ cursor: pointer;
95
+ }
96
+ .mbe-root.mbe-readonly .mbe-checkbox { cursor: default; }
97
+
98
+ /* Links: the text cursor while editing, so clicking places the caret. */
99
+ .mbe-root a.mbe-link { cursor: text; }
100
+ .mbe-root.mbe-readonly a.mbe-link { cursor: pointer; }
101
+ .mbe-root .mbe-image { max-width: 100%; height: auto; margin: 8px 0; vertical-align: bottom; }
102
+
103
+ /* Code */
104
+ .mbe-root .mbe-code-bar { display: flex; align-items: center; }
105
+ .mbe-root .mbe-code-lang {
106
+ font: inherit;
107
+ color: inherit;
108
+ background: transparent;
109
+ border: none;
110
+ outline: none;
111
+ padding: 0;
112
+ width: 12em;
113
+ }
114
+ .mbe-root > .mbe-code pre,
115
+ .mbe-root > pre.mbe-raw { white-space: pre-wrap; tab-size: 2; }
116
+ .mbe-root > .mbe-code pre { margin: 0; }
117
+ .mbe-root > .mbe-code pre code { display: block; }
118
+
119
+ /* Rendered views (see Extension.views): a token or raw block shown rendered,
120
+ such as math. Clicking one, or moving the caret onto it, shows its source. */
121
+ .mbe-root > .mbe-view-block { overflow-x: auto; overflow-y: hidden; }
122
+ /* A renderer's own block margins (KaTeX's display math has 1em) would add to the block gap. */
123
+ .mbe-root > .mbe-view-block > * { margin-block: 0; }
124
+
125
+ /* Divider: the padding gives the line a larger click target. */
126
+ .mbe-root > .mbe-divider.mbe-block { margin: 16px 0; padding: 4px 0; cursor: default; }
127
+ .mbe-root > .mbe-divider hr { margin: 0; }
128
+
129
+ /* Table */
130
+ .mbe-root > .mbe-table { overflow-x: auto; }
131
+ /* Columns fit their content and wrap at the editor's width; wider tables scroll. */
132
+ .mbe-root > .mbe-table table { border-collapse: separate; border-spacing: 0; }
133
+ .mbe-root > .mbe-table th,
134
+ .mbe-root > .mbe-table td {
135
+ padding: 4px 8px;
136
+ min-width: 4em;
137
+ vertical-align: top;
138
+ text-align: left;
139
+ outline: none;
140
+ }
141
+
142
+ /* Nothing above the first block or below the last, whatever their type. */
143
+ .mbe-root > .mbe-block:first-child { margin-top: 0; }
144
+ .mbe-root > .mbe-block:last-child { margin-bottom: 0; }
145
+
146
+ /* Placeholders and hints. When both apply, the slash hint wins over the placeholder. */
147
+ .mbe-root .mbe-empty-content { position: relative; }
148
+ .mbe-root > .mbe-paragraph.mbe-empty:only-child::before,
149
+ .mbe-root > .mbe-paragraph.mbe-empty.mbe-show-hint::before,
150
+ .mbe-root > .mbe-empty[data-hint]:is(h1, h2, h3, h4, h5, h6, blockquote)::before,
151
+ .mbe-root > .mbe-list-item.mbe-empty[data-hint] > .mbe-content::before {
152
+ opacity: 0.5;
153
+ pointer-events: none;
154
+ position: absolute;
155
+ }
156
+ .mbe-root > .mbe-paragraph.mbe-empty:only-child::before { content: var(--mbe-placeholder, ''); }
157
+ .mbe-root > .mbe-paragraph.mbe-empty.mbe-show-hint::before { content: var(--mbe-slash-hint, ''); }
158
+ .mbe-root > .mbe-empty[data-hint]:is(h1, h2, h3, h4, h5, h6, blockquote)::before,
159
+ .mbe-root > .mbe-list-item.mbe-empty[data-hint] > .mbe-content::before { content: attr(data-hint); }
160
+
161
+ /* Widgets: app UI between blocks, such as an upload placeholder. Not editable text. */
162
+ .mbe-root > .mbe-widget { cursor: default; user-select: none; -webkit-user-select: none; white-space: normal; }
163
+
164
+ /* Floating UI -------------------------------------------------------------
165
+ System colors keep menus readable when theme.css is not loaded. */
166
+
167
+ .mbe-ui { z-index: 1000; }
168
+ .mbe-ui[hidden] { display: none !important; }
169
+ .mbe-menu,
170
+ .mbe-toolbar,
171
+ .mbe-link-popover {
172
+ position: fixed;
173
+ background: Canvas;
174
+ color: CanvasText;
175
+ border: 1px solid GrayText;
176
+ }
177
+ .mbe-menu { min-width: 200px; max-height: 320px; overflow-y: auto; padding: 4px; }
178
+ .mbe-menu-title { padding: 6px 8px 4px; }
179
+ .mbe-menu-item { display: flex; align-items: center; gap: 8px; padding: 4px 8px; cursor: pointer; user-select: none; }
180
+ .mbe-menu-item.mbe-highlighted { background: Highlight; color: HighlightText; }
181
+ .mbe-menu-icon {
182
+ flex: none;
183
+ width: 22px;
184
+ height: 22px;
185
+ display: inline-flex;
186
+ align-items: center;
187
+ justify-content: center;
188
+ }
189
+ .mbe-menu-icon:empty { display: none; }
190
+ .mbe-menu-label { flex: 1; }
191
+ .mbe-menu-empty { padding: 6px 8px; }
192
+
193
+ .mbe-toolbar { display: flex; align-items: center; gap: 2px; padding: 3px; }
194
+ .mbe-tool {
195
+ font: inherit;
196
+ color: inherit;
197
+ background: none;
198
+ border: none;
199
+ padding: 4px 8px;
200
+ min-width: 28px;
201
+ cursor: pointer;
202
+ }
203
+ .mbe-tool.mbe-active { background: Highlight; color: HighlightText; }
204
+ .mbe-tool-sep { width: 1px; align-self: stretch; margin: 3px 2px; background: GrayText; }
205
+
206
+ .mbe-link-popover { display: flex; gap: 4px; padding: 4px; }
207
+ .mbe-link-input { font: inherit; color: inherit; width: 260px; padding: 5px 8px; }
208
+
209
+ .mbe-handle {
210
+ position: fixed;
211
+ width: 20px;
212
+ height: 22px;
213
+ padding: 0;
214
+ border: none;
215
+ background: none;
216
+ color: inherit;
217
+ cursor: pointer;
218
+ }
@@ -0,0 +1,14 @@
1
+ let decoder = null;
2
+ function lookupEntity(name) {
3
+ if (!/^[A-Za-z][A-Za-z0-9]{0,31}$/.test(name)) return void 0;
4
+ decoder ??= document.createElement("textarea");
5
+ const source = `&${name};`;
6
+ decoder.innerHTML = source;
7
+ const text = decoder.value;
8
+ if (text === source || text.endsWith(";") && name !== "semi") return void 0;
9
+ return text;
10
+ }
11
+ export {
12
+ lookupEntity
13
+ };
14
+ //# sourceMappingURL=entities.dom.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/markdown/entities.dom.ts"],
4
+ "sourcesContent": ["// Named character references in browsers. The browser's own HTML parser\n// already knows the full WHATWG list, so this saves shipping the table\n// (about 11 KB gzipped). Node and other environments without a DOM get\n// entities.ts instead, through the \"#entities\" import in package.json.\n\nlet decoder: HTMLTextAreaElement | null = null;\n\n/** The replacement text for a named entity (without \"&\" and \";\"), or undefined. */\nexport function lookupEntity(name: string): string | undefined {\n if (!/^[A-Za-z][A-Za-z0-9]{0,31}$/.test(name)) return undefined;\n // Text inside <textarea> is parsed as RCDATA: entities are decoded and no elements are created.\n decoder ??= document.createElement('textarea');\n const source = `&${name};`;\n decoder.innerHTML = source;\n const text = decoder.value;\n // Unknown names stay as written. A legacy name without \";\" that is a prefix\n // (\"&notit;\" decodes as \"\u00ACit;\") leaves the rest of the name and the \";\"\n // behind; only \"&semi;\" really decodes to text ending in \";\".\n if (text === source || (text.endsWith(';') && name !== 'semi')) return undefined;\n return text;\n}\n"],
5
+ "mappings": "AAKA,IAAI,UAAsC;AAGnC,SAAS,aAAa,MAAkC;AAC7D,MAAI,CAAC,8BAA8B,KAAK,IAAI,EAAG,QAAO;AAEtD,cAAY,SAAS,cAAc,UAAU;AAC7C,QAAM,SAAS,IAAI,IAAI;AACvB,UAAQ,YAAY;AACpB,QAAM,OAAO,QAAQ;AAIrB,MAAI,SAAS,UAAW,KAAK,SAAS,GAAG,KAAK,SAAS,OAAS,QAAO;AACvE,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ const DATA = "AElig:c6;AMP:26;Aacute:c1;Abreve:102;Acirc:c2;Acy:410;Afr:1d504;Agrave:c0;Alpha:391;Amacr:100;And:2a53;Aogon:104;Aopf:1d538;ApplyFunction:2061;Aring:c5;Ascr:1d49c;Assign:2254;Atilde:c3;Auml:c4;Backslash:2216;Barv:2ae7;Barwed:2306;Bcy:411;Because:2235;Bernoullis:212c;Beta:392;Bfr:1d505;Bopf:1d539;Breve:2d8;Bscr:212c;Bumpeq:224e;CHcy:427;COPY:a9;Cacute:106;Cap:22d2;CapitalDifferentialD:2145;Cayleys:212d;Ccaron:10c;Ccedil:c7;Ccirc:108;Cconint:2230;Cdot:10a;Cedilla:b8;CenterDot:b7;Cfr:212d;Chi:3a7;CircleDot:2299;CircleMinus:2296;CirclePlus:2295;CircleTimes:2297;ClockwiseContourIntegral:2232;CloseCurlyDoubleQuote:201d;CloseCurlyQuote:2019;Colon:2237;Colone:2a74;Congruent:2261;Conint:222f;ContourIntegral:222e;Copf:2102;Coproduct:2210;CounterClockwiseContourIntegral:2233;Cross:2a2f;Cscr:1d49e;Cup:22d3;CupCap:224d;DD:2145;DDotrahd:2911;DJcy:402;DScy:405;DZcy:40f;Dagger:2021;Darr:21a1;Dashv:2ae4;Dcaron:10e;Dcy:414;Del:2207;Delta:394;Dfr:1d507;DiacriticalAcute:b4;DiacriticalDot:2d9;DiacriticalDoubleAcute:2dd;DiacriticalGrave:60;DiacriticalTilde:2dc;Diamond:22c4;DifferentialD:2146;Dopf:1d53b;Dot:a8;DotDot:20dc;DotEqual:2250;DoubleContourIntegral:222f;DoubleDot:a8;DoubleDownArrow:21d3;DoubleLeftArrow:21d0;DoubleLeftRightArrow:21d4;DoubleLeftTee:2ae4;DoubleLongLeftArrow:27f8;DoubleLongLeftRightArrow:27fa;DoubleLongRightArrow:27f9;DoubleRightArrow:21d2;DoubleRightTee:22a8;DoubleUpArrow:21d1;DoubleUpDownArrow:21d5;DoubleVerticalBar:2225;DownArrow:2193;DownArrowBar:2913;DownArrowUpArrow:21f5;DownBreve:311;DownLeftRightVector:2950;DownLeftTeeVector:295e;DownLeftVector:21bd;DownLeftVectorBar:2956;DownRightTeeVector:295f;DownRightVector:21c1;DownRightVectorBar:2957;DownTee:22a4;DownTeeArrow:21a7;Downarrow:21d3;Dscr:1d49f;Dstrok:110;ENG:14a;ETH:d0;Eacute:c9;Ecaron:11a;Ecirc:ca;Ecy:42d;Edot:116;Efr:1d508;Egrave:c8;Element:2208;Emacr:112;EmptySmallSquare:25fb;EmptyVerySmallSquare:25ab;Eogon:118;Eopf:1d53c;Epsilon:395;Equal:2a75;EqualTilde:2242;Equilibrium:21cc;Escr:2130;Esim:2a73;Eta:397;Euml:cb;Exists:2203;ExponentialE:2147;Fcy:424;Ffr:1d509;FilledSmallSquare:25fc;FilledVerySmallSquare:25aa;Fopf:1d53d;ForAll:2200;Fouriertrf:2131;Fscr:2131;GJcy:403;GT:3e;Gamma:393;Gammad:3dc;Gbreve:11e;Gcedil:122;Gcirc:11c;Gcy:413;Gdot:120;Gfr:1d50a;Gg:22d9;Gopf:1d53e;GreaterEqual:2265;GreaterEqualLess:22db;GreaterFullEqual:2267;GreaterGreater:2aa2;GreaterLess:2277;GreaterSlantEqual:2a7e;GreaterTilde:2273;Gscr:1d4a2;Gt:226b;HARDcy:42a;Hacek:2c7;Hat:5e;Hcirc:124;Hfr:210c;HilbertSpace:210b;Hopf:210d;HorizontalLine:2500;Hscr:210b;Hstrok:126;HumpDownHump:224e;HumpEqual:224f;IEcy:415;IJlig:132;IOcy:401;Iacute:cd;Icirc:ce;Icy:418;Idot:130;Ifr:2111;Igrave:cc;Im:2111;Imacr:12a;ImaginaryI:2148;Implies:21d2;Int:222c;Integral:222b;Intersection:22c2;InvisibleComma:2063;InvisibleTimes:2062;Iogon:12e;Iopf:1d540;Iota:399;Iscr:2110;Itilde:128;Iukcy:406;Iuml:cf;Jcirc:134;Jcy:419;Jfr:1d50d;Jopf:1d541;Jscr:1d4a5;Jsercy:408;Jukcy:404;KHcy:425;KJcy:40c;Kappa:39a;Kcedil:136;Kcy:41a;Kfr:1d50e;Kopf:1d542;Kscr:1d4a6;LJcy:409;LT:3c;Lacute:139;Lambda:39b;Lang:27ea;Laplacetrf:2112;Larr:219e;Lcaron:13d;Lcedil:13b;Lcy:41b;LeftAngleBracket:27e8;LeftArrow:2190;LeftArrowBar:21e4;LeftArrowRightArrow:21c6;LeftCeiling:2308;LeftDoubleBracket:27e6;LeftDownTeeVector:2961;LeftDownVector:21c3;LeftDownVectorBar:2959;LeftFloor:230a;LeftRightArrow:2194;LeftRightVector:294e;LeftTee:22a3;LeftTeeArrow:21a4;LeftTeeVector:295a;LeftTriangle:22b2;LeftTriangleBar:29cf;LeftTriangleEqual:22b4;LeftUpDownVector:2951;LeftUpTeeVector:2960;LeftUpVector:21bf;LeftUpVectorBar:2958;LeftVector:21bc;LeftVectorBar:2952;Leftarrow:21d0;Leftrightarrow:21d4;LessEqualGreater:22da;LessFullEqual:2266;LessGreater:2276;LessLess:2aa1;LessSlantEqual:2a7d;LessTilde:2272;Lfr:1d50f;Ll:22d8;Lleftarrow:21da;Lmidot:13f;LongLeftArrow:27f5;LongLeftRightArrow:27f7;LongRightArrow:27f6;Longleftarrow:27f8;Longleftrightarrow:27fa;Longrightarrow:27f9;Lopf:1d543;LowerLeftArrow:2199;LowerRightArrow:2198;Lscr:2112;Lsh:21b0;Lstrok:141;Lt:226a;Map:2905;Mcy:41c;MediumSpace:205f;Mellintrf:2133;Mfr:1d510;MinusPlus:2213;Mopf:1d544;Mscr:2133;Mu:39c;NJcy:40a;Nacute:143;Ncaron:147;Ncedil:145;Ncy:41d;NegativeMediumSpace:200b;NegativeThickSpace:200b;NegativeThinSpace:200b;NegativeVeryThinSpace:200b;NestedGreaterGreater:226b;NestedLessLess:226a;NewLine:a;Nfr:1d511;NoBreak:2060;NonBreakingSpace:a0;Nopf:2115;Not:2aec;NotCongruent:2262;NotCupCap:226d;NotDoubleVerticalBar:2226;NotElement:2209;NotEqual:2260;NotEqualTilde:2242.338;NotExists:2204;NotGreater:226f;NotGreaterEqual:2271;NotGreaterFullEqual:2267.338;NotGreaterGreater:226b.338;NotGreaterLess:2279;NotGreaterSlantEqual:2a7e.338;NotGreaterTilde:2275;NotHumpDownHump:224e.338;NotHumpEqual:224f.338;NotLeftTriangle:22ea;NotLeftTriangleBar:29cf.338;NotLeftTriangleEqual:22ec;NotLess:226e;NotLessEqual:2270;NotLessGreater:2278;NotLessLess:226a.338;NotLessSlantEqual:2a7d.338;NotLessTilde:2274;NotNestedGreaterGreater:2aa2.338;NotNestedLessLess:2aa1.338;NotPrecedes:2280;NotPrecedesEqual:2aaf.338;NotPrecedesSlantEqual:22e0;NotReverseElement:220c;NotRightTriangle:22eb;NotRightTriangleBar:29d0.338;NotRightTriangleEqual:22ed;NotSquareSubset:228f.338;NotSquareSubsetEqual:22e2;NotSquareSuperset:2290.338;NotSquareSupersetEqual:22e3;NotSubset:2282.20d2;NotSubsetEqual:2288;NotSucceeds:2281;NotSucceedsEqual:2ab0.338;NotSucceedsSlantEqual:22e1;NotSucceedsTilde:227f.338;NotSuperset:2283.20d2;NotSupersetEqual:2289;NotTilde:2241;NotTildeEqual:2244;NotTildeFullEqual:2247;NotTildeTilde:2249;NotVerticalBar:2224;Nscr:1d4a9;Ntilde:d1;Nu:39d;OElig:152;Oacute:d3;Ocirc:d4;Ocy:41e;Odblac:150;Ofr:1d512;Ograve:d2;Omacr:14c;Omega:3a9;Omicron:39f;Oopf:1d546;OpenCurlyDoubleQuote:201c;OpenCurlyQuote:2018;Or:2a54;Oscr:1d4aa;Oslash:d8;Otilde:d5;Otimes:2a37;Ouml:d6;OverBar:203e;OverBrace:23de;OverBracket:23b4;OverParenthesis:23dc;PartialD:2202;Pcy:41f;Pfr:1d513;Phi:3a6;Pi:3a0;PlusMinus:b1;Poincareplane:210c;Popf:2119;Pr:2abb;Precedes:227a;PrecedesEqual:2aaf;PrecedesSlantEqual:227c;PrecedesTilde:227e;Prime:2033;Product:220f;Proportion:2237;Proportional:221d;Pscr:1d4ab;Psi:3a8;QUOT:22;Qfr:1d514;Qopf:211a;Qscr:1d4ac;RBarr:2910;REG:ae;Racute:154;Rang:27eb;Rarr:21a0;Rarrtl:2916;Rcaron:158;Rcedil:156;Rcy:420;Re:211c;ReverseElement:220b;ReverseEquilibrium:21cb;ReverseUpEquilibrium:296f;Rfr:211c;Rho:3a1;RightAngleBracket:27e9;RightArrow:2192;RightArrowBar:21e5;RightArrowLeftArrow:21c4;RightCeiling:2309;RightDoubleBracket:27e7;RightDownTeeVector:295d;RightDownVector:21c2;RightDownVectorBar:2955;RightFloor:230b;RightTee:22a2;RightTeeArrow:21a6;RightTeeVector:295b;RightTriangle:22b3;RightTriangleBar:29d0;RightTriangleEqual:22b5;RightUpDownVector:294f;RightUpTeeVector:295c;RightUpVector:21be;RightUpVectorBar:2954;RightVector:21c0;RightVectorBar:2953;Rightarrow:21d2;Ropf:211d;RoundImplies:2970;Rrightarrow:21db;Rscr:211b;Rsh:21b1;RuleDelayed:29f4;SHCHcy:429;SHcy:428;SOFTcy:42c;Sacute:15a;Sc:2abc;Scaron:160;Scedil:15e;Scirc:15c;Scy:421;Sfr:1d516;ShortDownArrow:2193;ShortLeftArrow:2190;ShortRightArrow:2192;ShortUpArrow:2191;Sigma:3a3;SmallCircle:2218;Sopf:1d54a;Sqrt:221a;Square:25a1;SquareIntersection:2293;SquareSubset:228f;SquareSubsetEqual:2291;SquareSuperset:2290;SquareSupersetEqual:2292;SquareUnion:2294;Sscr:1d4ae;Star:22c6;Sub:22d0;Subset:22d0;SubsetEqual:2286;Succeeds:227b;SucceedsEqual:2ab0;SucceedsSlantEqual:227d;SucceedsTilde:227f;SuchThat:220b;Sum:2211;Sup:22d1;Superset:2283;SupersetEqual:2287;Supset:22d1;THORN:de;TRADE:2122;TSHcy:40b;TScy:426;Tab:9;Tau:3a4;Tcaron:164;Tcedil:162;Tcy:422;Tfr:1d517;Therefore:2234;Theta:398;ThickSpace:205f.200a;ThinSpace:2009;Tilde:223c;TildeEqual:2243;TildeFullEqual:2245;TildeTilde:2248;Topf:1d54b;TripleDot:20db;Tscr:1d4af;Tstrok:166;Uacute:da;Uarr:219f;Uarrocir:2949;Ubrcy:40e;Ubreve:16c;Ucirc:db;Ucy:423;Udblac:170;Ufr:1d518;Ugrave:d9;Umacr:16a;UnderBar:5f;UnderBrace:23df;UnderBracket:23b5;UnderParenthesis:23dd;Union:22c3;UnionPlus:228e;Uogon:172;Uopf:1d54c;UpArrow:2191;UpArrowBar:2912;UpArrowDownArrow:21c5;UpDownArrow:2195;UpEquilibrium:296e;UpTee:22a5;UpTeeArrow:21a5;Uparrow:21d1;Updownarrow:21d5;UpperLeftArrow:2196;UpperRightArrow:2197;Upsi:3d2;Upsilon:3a5;Uring:16e;Uscr:1d4b0;Utilde:168;Uuml:dc;VDash:22ab;Vbar:2aeb;Vcy:412;Vdash:22a9;Vdashl:2ae6;Vee:22c1;Verbar:2016;Vert:2016;VerticalBar:2223;VerticalLine:7c;VerticalSeparator:2758;VerticalTilde:2240;VeryThinSpace:200a;Vfr:1d519;Vopf:1d54d;Vscr:1d4b1;Vvdash:22aa;Wcirc:174;Wedge:22c0;Wfr:1d51a;Wopf:1d54e;Wscr:1d4b2;Xfr:1d51b;Xi:39e;Xopf:1d54f;Xscr:1d4b3;YAcy:42f;YIcy:407;YUcy:42e;Yacute:dd;Ycirc:176;Ycy:42b;Yfr:1d51c;Yopf:1d550;Yscr:1d4b4;Yuml:178;ZHcy:416;Zacute:179;Zcaron:17d;Zcy:417;Zdot:17b;ZeroWidthSpace:200b;Zeta:396;Zfr:2128;Zopf:2124;Zscr:1d4b5;aacute:e1;abreve:103;ac:223e;acE:223e.333;acd:223f;acirc:e2;acute:b4;acy:430;aelig:e6;af:2061;afr:1d51e;agrave:e0;alefsym:2135;aleph:2135;alpha:3b1;amacr:101;amalg:2a3f;amp:26;and:2227;andand:2a55;andd:2a5c;andslope:2a58;andv:2a5a;ang:2220;ange:29a4;angle:2220;angmsd:2221;angmsdaa:29a8;angmsdab:29a9;angmsdac:29aa;angmsdad:29ab;angmsdae:29ac;angmsdaf:29ad;angmsdag:29ae;angmsdah:29af;angrt:221f;angrtvb:22be;angrtvbd:299d;angsph:2222;angst:c5;angzarr:237c;aogon:105;aopf:1d552;ap:2248;apE:2a70;apacir:2a6f;ape:224a;apid:224b;apos:27;approx:2248;approxeq:224a;aring:e5;ascr:1d4b6;ast:2a;asymp:2248;asympeq:224d;atilde:e3;auml:e4;awconint:2233;awint:2a11;bNot:2aed;backcong:224c;backepsilon:3f6;backprime:2035;backsim:223d;backsimeq:22cd;barvee:22bd;barwed:2305;barwedge:2305;bbrk:23b5;bbrktbrk:23b6;bcong:224c;bcy:431;bdquo:201e;becaus:2235;because:2235;bemptyv:29b0;bepsi:3f6;bernou:212c;beta:3b2;beth:2136;between:226c;bfr:1d51f;bigcap:22c2;bigcirc:25ef;bigcup:22c3;bigodot:2a00;bigoplus:2a01;bigotimes:2a02;bigsqcup:2a06;bigstar:2605;bigtriangledown:25bd;bigtriangleup:25b3;biguplus:2a04;bigvee:22c1;bigwedge:22c0;bkarow:290d;blacklozenge:29eb;blacksquare:25aa;blacktriangle:25b4;blacktriangledown:25be;blacktriangleleft:25c2;blacktriangleright:25b8;blank:2423;blk12:2592;blk14:2591;blk34:2593;block:2588;bne:3d.20e5;bnequiv:2261.20e5;bnot:2310;bopf:1d553;bot:22a5;bottom:22a5;bowtie:22c8;boxDL:2557;boxDR:2554;boxDl:2556;boxDr:2553;boxH:2550;boxHD:2566;boxHU:2569;boxHd:2564;boxHu:2567;boxUL:255d;boxUR:255a;boxUl:255c;boxUr:2559;boxV:2551;boxVH:256c;boxVL:2563;boxVR:2560;boxVh:256b;boxVl:2562;boxVr:255f;boxbox:29c9;boxdL:2555;boxdR:2552;boxdl:2510;boxdr:250c;boxh:2500;boxhD:2565;boxhU:2568;boxhd:252c;boxhu:2534;boxminus:229f;boxplus:229e;boxtimes:22a0;boxuL:255b;boxuR:2558;boxul:2518;boxur:2514;boxv:2502;boxvH:256a;boxvL:2561;boxvR:255e;boxvh:253c;boxvl:2524;boxvr:251c;bprime:2035;breve:2d8;brvbar:a6;bscr:1d4b7;bsemi:204f;bsim:223d;bsime:22cd;bsol:5c;bsolb:29c5;bsolhsub:27c8;bull:2022;bullet:2022;bump:224e;bumpE:2aae;bumpe:224f;bumpeq:224f;cacute:107;cap:2229;capand:2a44;capbrcup:2a49;capcap:2a4b;capcup:2a47;capdot:2a40;caps:2229.fe00;caret:2041;caron:2c7;ccaps:2a4d;ccaron:10d;ccedil:e7;ccirc:109;ccups:2a4c;ccupssm:2a50;cdot:10b;cedil:b8;cemptyv:29b2;cent:a2;centerdot:b7;cfr:1d520;chcy:447;check:2713;checkmark:2713;chi:3c7;cir:25cb;cirE:29c3;circ:2c6;circeq:2257;circlearrowleft:21ba;circlearrowright:21bb;circledR:ae;circledS:24c8;circledast:229b;circledcirc:229a;circleddash:229d;cire:2257;cirfnint:2a10;cirmid:2aef;cirscir:29c2;clubs:2663;clubsuit:2663;colon:3a;colone:2254;coloneq:2254;comma:2c;commat:40;comp:2201;compfn:2218;complement:2201;complexes:2102;cong:2245;congdot:2a6d;conint:222e;copf:1d554;coprod:2210;copy:a9;copysr:2117;crarr:21b5;cross:2717;cscr:1d4b8;csub:2acf;csube:2ad1;csup:2ad0;csupe:2ad2;ctdot:22ef;cudarrl:2938;cudarrr:2935;cuepr:22de;cuesc:22df;cularr:21b6;cularrp:293d;cup:222a;cupbrcap:2a48;cupcap:2a46;cupcup:2a4a;cupdot:228d;cupor:2a45;cups:222a.fe00;curarr:21b7;curarrm:293c;curlyeqprec:22de;curlyeqsucc:22df;curlyvee:22ce;curlywedge:22cf;curren:a4;curvearrowleft:21b6;curvearrowright:21b7;cuvee:22ce;cuwed:22cf;cwconint:2232;cwint:2231;cylcty:232d;dArr:21d3;dHar:2965;dagger:2020;daleth:2138;darr:2193;dash:2010;dashv:22a3;dbkarow:290f;dblac:2dd;dcaron:10f;dcy:434;dd:2146;ddagger:2021;ddarr:21ca;ddotseq:2a77;deg:b0;delta:3b4;demptyv:29b1;dfisht:297f;dfr:1d521;dharl:21c3;dharr:21c2;diam:22c4;diamond:22c4;diamondsuit:2666;diams:2666;die:a8;digamma:3dd;disin:22f2;div:f7;divide:f7;divideontimes:22c7;divonx:22c7;djcy:452;dlcorn:231e;dlcrop:230d;dollar:24;dopf:1d555;dot:2d9;doteq:2250;doteqdot:2251;dotminus:2238;dotplus:2214;dotsquare:22a1;doublebarwedge:2306;downarrow:2193;downdownarrows:21ca;downharpoonleft:21c3;downharpoonright:21c2;drbkarow:2910;drcorn:231f;drcrop:230c;dscr:1d4b9;dscy:455;dsol:29f6;dstrok:111;dtdot:22f1;dtri:25bf;dtrif:25be;duarr:21f5;duhar:296f;dwangle:29a6;dzcy:45f;dzigrarr:27ff;eDDot:2a77;eDot:2251;eacute:e9;easter:2a6e;ecaron:11b;ecir:2256;ecirc:ea;ecolon:2255;ecy:44d;edot:117;ee:2147;efDot:2252;efr:1d522;eg:2a9a;egrave:e8;egs:2a96;egsdot:2a98;el:2a99;elinters:23e7;ell:2113;els:2a95;elsdot:2a97;emacr:113;empty:2205;emptyset:2205;emptyv:2205;emsp:2003;emsp13:2004;emsp14:2005;eng:14b;ensp:2002;eogon:119;eopf:1d556;epar:22d5;eparsl:29e3;eplus:2a71;epsi:3b5;epsilon:3b5;epsiv:3f5;eqcirc:2256;eqcolon:2255;eqsim:2242;eqslantgtr:2a96;eqslantless:2a95;equals:3d;equest:225f;equiv:2261;equivDD:2a78;eqvparsl:29e5;erDot:2253;erarr:2971;escr:212f;esdot:2250;esim:2242;eta:3b7;eth:f0;euml:eb;euro:20ac;excl:21;exist:2203;expectation:2130;exponentiale:2147;fallingdotseq:2252;fcy:444;female:2640;ffilig:fb03;fflig:fb00;ffllig:fb04;ffr:1d523;filig:fb01;fjlig:66.6a;flat:266d;fllig:fb02;fltns:25b1;fnof:192;fopf:1d557;forall:2200;fork:22d4;forkv:2ad9;fpartint:2a0d;frac12:bd;frac13:2153;frac14:bc;frac15:2155;frac16:2159;frac18:215b;frac23:2154;frac25:2156;frac34:be;frac35:2157;frac38:215c;frac45:2158;frac56:215a;frac58:215d;frac78:215e;frasl:2044;frown:2322;fscr:1d4bb;gE:2267;gEl:2a8c;gacute:1f5;gamma:3b3;gammad:3dd;gap:2a86;gbreve:11f;gcirc:11d;gcy:433;gdot:121;ge:2265;gel:22db;geq:2265;geqq:2267;geqslant:2a7e;ges:2a7e;gescc:2aa9;gesdot:2a80;gesdoto:2a82;gesdotol:2a84;gesl:22db.fe00;gesles:2a94;gfr:1d524;gg:226b;ggg:22d9;gimel:2137;gjcy:453;gl:2277;glE:2a92;gla:2aa5;glj:2aa4;gnE:2269;gnap:2a8a;gnapprox:2a8a;gne:2a88;gneq:2a88;gneqq:2269;gnsim:22e7;gopf:1d558;grave:60;gscr:210a;gsim:2273;gsime:2a8e;gsiml:2a90;gt:3e;gtcc:2aa7;gtcir:2a7a;gtdot:22d7;gtlPar:2995;gtquest:2a7c;gtrapprox:2a86;gtrarr:2978;gtrdot:22d7;gtreqless:22db;gtreqqless:2a8c;gtrless:2277;gtrsim:2273;gvertneqq:2269.fe00;gvnE:2269.fe00;hArr:21d4;hairsp:200a;half:bd;hamilt:210b;hardcy:44a;harr:2194;harrcir:2948;harrw:21ad;hbar:210f;hcirc:125;hearts:2665;heartsuit:2665;hellip:2026;hercon:22b9;hfr:1d525;hksearow:2925;hkswarow:2926;hoarr:21ff;homtht:223b;hookleftarrow:21a9;hookrightarrow:21aa;hopf:1d559;horbar:2015;hscr:1d4bd;hslash:210f;hstrok:127;hybull:2043;hyphen:2010;iacute:ed;ic:2063;icirc:ee;icy:438;iecy:435;iexcl:a1;iff:21d4;ifr:1d526;igrave:ec;ii:2148;iiiint:2a0c;iiint:222d;iinfin:29dc;iiota:2129;ijlig:133;imacr:12b;image:2111;imagline:2110;imagpart:2111;imath:131;imof:22b7;imped:1b5;in:2208;incare:2105;infin:221e;infintie:29dd;inodot:131;int:222b;intcal:22ba;integers:2124;intercal:22ba;intlarhk:2a17;intprod:2a3c;iocy:451;iogon:12f;iopf:1d55a;iota:3b9;iprod:2a3c;iquest:bf;iscr:1d4be;isin:2208;isinE:22f9;isindot:22f5;isins:22f4;isinsv:22f3;isinv:2208;it:2062;itilde:129;iukcy:456;iuml:ef;jcirc:135;jcy:439;jfr:1d527;jmath:237;jopf:1d55b;jscr:1d4bf;jsercy:458;jukcy:454;kappa:3ba;kappav:3f0;kcedil:137;kcy:43a;kfr:1d528;kgreen:138;khcy:445;kjcy:45c;kopf:1d55c;kscr:1d4c0;lAarr:21da;lArr:21d0;lAtail:291b;lBarr:290e;lE:2266;lEg:2a8b;lHar:2962;lacute:13a;laemptyv:29b4;lagran:2112;lambda:3bb;lang:27e8;langd:2991;langle:27e8;lap:2a85;laquo:ab;larr:2190;larrb:21e4;larrbfs:291f;larrfs:291d;larrhk:21a9;larrlp:21ab;larrpl:2939;larrsim:2973;larrtl:21a2;lat:2aab;latail:2919;late:2aad;lates:2aad.fe00;lbarr:290c;lbbrk:2772;lbrace:7b;lbrack:5b;lbrke:298b;lbrksld:298f;lbrkslu:298d;lcaron:13e;lcedil:13c;lceil:2308;lcub:7b;lcy:43b;ldca:2936;ldquo:201c;ldquor:201e;ldrdhar:2967;ldrushar:294b;ldsh:21b2;le:2264;leftarrow:2190;leftarrowtail:21a2;leftharpoondown:21bd;leftharpoonup:21bc;leftleftarrows:21c7;leftrightarrow:2194;leftrightarrows:21c6;leftrightharpoons:21cb;leftrightsquigarrow:21ad;leftthreetimes:22cb;leg:22da;leq:2264;leqq:2266;leqslant:2a7d;les:2a7d;lescc:2aa8;lesdot:2a7f;lesdoto:2a81;lesdotor:2a83;lesg:22da.fe00;lesges:2a93;lessapprox:2a85;lessdot:22d6;lesseqgtr:22da;lesseqqgtr:2a8b;lessgtr:2276;lesssim:2272;lfisht:297c;lfloor:230a;lfr:1d529;lg:2276;lgE:2a91;lhard:21bd;lharu:21bc;lharul:296a;lhblk:2584;ljcy:459;ll:226a;llarr:21c7;llcorner:231e;llhard:296b;lltri:25fa;lmidot:140;lmoust:23b0;lmoustache:23b0;lnE:2268;lnap:2a89;lnapprox:2a89;lne:2a87;lneq:2a87;lneqq:2268;lnsim:22e6;loang:27ec;loarr:21fd;lobrk:27e6;longleftarrow:27f5;longleftrightarrow:27f7;longmapsto:27fc;longrightarrow:27f6;looparrowleft:21ab;looparrowright:21ac;lopar:2985;lopf:1d55d;loplus:2a2d;lotimes:2a34;lowast:2217;lowbar:5f;loz:25ca;lozenge:25ca;lozf:29eb;lpar:28;lparlt:2993;lrarr:21c6;lrcorner:231f;lrhar:21cb;lrhard:296d;lrm:200e;lrtri:22bf;lsaquo:2039;lscr:1d4c1;lsh:21b0;lsim:2272;lsime:2a8d;lsimg:2a8f;lsqb:5b;lsquo:2018;lsquor:201a;lstrok:142;lt:3c;ltcc:2aa6;ltcir:2a79;ltdot:22d6;lthree:22cb;ltimes:22c9;ltlarr:2976;ltquest:2a7b;ltrPar:2996;ltri:25c3;ltrie:22b4;ltrif:25c2;lurdshar:294a;luruhar:2966;lvertneqq:2268.fe00;lvnE:2268.fe00;mDDot:223a;macr:af;male:2642;malt:2720;maltese:2720;map:21a6;mapsto:21a6;mapstodown:21a7;mapstoleft:21a4;mapstoup:21a5;marker:25ae;mcomma:2a29;mcy:43c;mdash:2014;measuredangle:2221;mfr:1d52a;mho:2127;micro:b5;mid:2223;midast:2a;midcir:2af0;middot:b7;minus:2212;minusb:229f;minusd:2238;minusdu:2a2a;mlcp:2adb;mldr:2026;mnplus:2213;models:22a7;mopf:1d55e;mp:2213;mscr:1d4c2;mstpos:223e;mu:3bc;multimap:22b8;mumap:22b8;nGg:22d9.338;nGt:226b.20d2;nGtv:226b.338;nLeftarrow:21cd;nLeftrightarrow:21ce;nLl:22d8.338;nLt:226a.20d2;nLtv:226a.338;nRightarrow:21cf;nVDash:22af;nVdash:22ae;nabla:2207;nacute:144;nang:2220.20d2;nap:2249;napE:2a70.338;napid:224b.338;napos:149;napprox:2249;natur:266e;natural:266e;naturals:2115;nbsp:a0;nbump:224e.338;nbumpe:224f.338;ncap:2a43;ncaron:148;ncedil:146;ncong:2247;ncongdot:2a6d.338;ncup:2a42;ncy:43d;ndash:2013;ne:2260;neArr:21d7;nearhk:2924;nearr:2197;nearrow:2197;nedot:2250.338;nequiv:2262;nesear:2928;nesim:2242.338;nexist:2204;nexists:2204;nfr:1d52b;ngE:2267.338;nge:2271;ngeq:2271;ngeqq:2267.338;ngeqslant:2a7e.338;nges:2a7e.338;ngsim:2275;ngt:226f;ngtr:226f;nhArr:21ce;nharr:21ae;nhpar:2af2;ni:220b;nis:22fc;nisd:22fa;niv:220b;njcy:45a;nlArr:21cd;nlE:2266.338;nlarr:219a;nldr:2025;nle:2270;nleftarrow:219a;nleftrightarrow:21ae;nleq:2270;nleqq:2266.338;nleqslant:2a7d.338;nles:2a7d.338;nless:226e;nlsim:2274;nlt:226e;nltri:22ea;nltrie:22ec;nmid:2224;nopf:1d55f;not:ac;notin:2209;notinE:22f9.338;notindot:22f5.338;notinva:2209;notinvb:22f7;notinvc:22f6;notni:220c;notniva:220c;notnivb:22fe;notnivc:22fd;npar:2226;nparallel:2226;nparsl:2afd.20e5;npart:2202.338;npolint:2a14;npr:2280;nprcue:22e0;npre:2aaf.338;nprec:2280;npreceq:2aaf.338;nrArr:21cf;nrarr:219b;nrarrc:2933.338;nrarrw:219d.338;nrightarrow:219b;nrtri:22eb;nrtrie:22ed;nsc:2281;nsccue:22e1;nsce:2ab0.338;nscr:1d4c3;nshortmid:2224;nshortparallel:2226;nsim:2241;nsime:2244;nsimeq:2244;nsmid:2224;nspar:2226;nsqsube:22e2;nsqsupe:22e3;nsub:2284;nsubE:2ac5.338;nsube:2288;nsubset:2282.20d2;nsubseteq:2288;nsubseteqq:2ac5.338;nsucc:2281;nsucceq:2ab0.338;nsup:2285;nsupE:2ac6.338;nsupe:2289;nsupset:2283.20d2;nsupseteq:2289;nsupseteqq:2ac6.338;ntgl:2279;ntilde:f1;ntlg:2278;ntriangleleft:22ea;ntrianglelefteq:22ec;ntriangleright:22eb;ntrianglerighteq:22ed;nu:3bd;num:23;numero:2116;numsp:2007;nvDash:22ad;nvHarr:2904;nvap:224d.20d2;nvdash:22ac;nvge:2265.20d2;nvgt:3e.20d2;nvinfin:29de;nvlArr:2902;nvle:2264.20d2;nvlt:3c.20d2;nvltrie:22b4.20d2;nvrArr:2903;nvrtrie:22b5.20d2;nvsim:223c.20d2;nwArr:21d6;nwarhk:2923;nwarr:2196;nwarrow:2196;nwnear:2927;oS:24c8;oacute:f3;oast:229b;ocir:229a;ocirc:f4;ocy:43e;odash:229d;odblac:151;odiv:2a38;odot:2299;odsold:29bc;oelig:153;ofcir:29bf;ofr:1d52c;ogon:2db;ograve:f2;ogt:29c1;ohbar:29b5;ohm:3a9;oint:222e;olarr:21ba;olcir:29be;olcross:29bb;oline:203e;olt:29c0;omacr:14d;omega:3c9;omicron:3bf;omid:29b6;ominus:2296;oopf:1d560;opar:29b7;operp:29b9;oplus:2295;or:2228;orarr:21bb;ord:2a5d;order:2134;orderof:2134;ordf:aa;ordm:ba;origof:22b6;oror:2a56;orslope:2a57;orv:2a5b;oscr:2134;oslash:f8;osol:2298;otilde:f5;otimes:2297;otimesas:2a36;ouml:f6;ovbar:233d;par:2225;para:b6;parallel:2225;parsim:2af3;parsl:2afd;part:2202;pcy:43f;percnt:25;period:2e;permil:2030;perp:22a5;pertenk:2031;pfr:1d52d;phi:3c6;phiv:3d5;phmmat:2133;phone:260e;pi:3c0;pitchfork:22d4;piv:3d6;planck:210f;planckh:210e;plankv:210f;plus:2b;plusacir:2a23;plusb:229e;pluscir:2a22;plusdo:2214;plusdu:2a25;pluse:2a72;plusmn:b1;plussim:2a26;plustwo:2a27;pm:b1;pointint:2a15;popf:1d561;pound:a3;pr:227a;prE:2ab3;prap:2ab7;prcue:227c;pre:2aaf;prec:227a;precapprox:2ab7;preccurlyeq:227c;preceq:2aaf;precnapprox:2ab9;precneqq:2ab5;precnsim:22e8;precsim:227e;prime:2032;primes:2119;prnE:2ab5;prnap:2ab9;prnsim:22e8;prod:220f;profalar:232e;profline:2312;profsurf:2313;prop:221d;propto:221d;prsim:227e;prurel:22b0;pscr:1d4c5;psi:3c8;puncsp:2008;qfr:1d52e;qint:2a0c;qopf:1d562;qprime:2057;qscr:1d4c6;quaternions:210d;quatint:2a16;quest:3f;questeq:225f;quot:22;rAarr:21db;rArr:21d2;rAtail:291c;rBarr:290f;rHar:2964;race:223d.331;racute:155;radic:221a;raemptyv:29b3;rang:27e9;rangd:2992;range:29a5;rangle:27e9;raquo:bb;rarr:2192;rarrap:2975;rarrb:21e5;rarrbfs:2920;rarrc:2933;rarrfs:291e;rarrhk:21aa;rarrlp:21ac;rarrpl:2945;rarrsim:2974;rarrtl:21a3;rarrw:219d;ratail:291a;ratio:2236;rationals:211a;rbarr:290d;rbbrk:2773;rbrace:7d;rbrack:5d;rbrke:298c;rbrksld:298e;rbrkslu:2990;rcaron:159;rcedil:157;rceil:2309;rcub:7d;rcy:440;rdca:2937;rdldhar:2969;rdquo:201d;rdquor:201d;rdsh:21b3;real:211c;realine:211b;realpart:211c;reals:211d;rect:25ad;reg:ae;rfisht:297d;rfloor:230b;rfr:1d52f;rhard:21c1;rharu:21c0;rharul:296c;rho:3c1;rhov:3f1;rightarrow:2192;rightarrowtail:21a3;rightharpoondown:21c1;rightharpoonup:21c0;rightleftarrows:21c4;rightleftharpoons:21cc;rightrightarrows:21c9;rightsquigarrow:219d;rightthreetimes:22cc;ring:2da;risingdotseq:2253;rlarr:21c4;rlhar:21cc;rlm:200f;rmoust:23b1;rmoustache:23b1;rnmid:2aee;roang:27ed;roarr:21fe;robrk:27e7;ropar:2986;ropf:1d563;roplus:2a2e;rotimes:2a35;rpar:29;rpargt:2994;rppolint:2a12;rrarr:21c9;rsaquo:203a;rscr:1d4c7;rsh:21b1;rsqb:5d;rsquo:2019;rsquor:2019;rthree:22cc;rtimes:22ca;rtri:25b9;rtrie:22b5;rtrif:25b8;rtriltri:29ce;ruluhar:2968;rx:211e;sacute:15b;sbquo:201a;sc:227b;scE:2ab4;scap:2ab8;scaron:161;sccue:227d;sce:2ab0;scedil:15f;scirc:15d;scnE:2ab6;scnap:2aba;scnsim:22e9;scpolint:2a13;scsim:227f;scy:441;sdot:22c5;sdotb:22a1;sdote:2a66;seArr:21d8;searhk:2925;searr:2198;searrow:2198;sect:a7;semi:3b;seswar:2929;setminus:2216;setmn:2216;sext:2736;sfr:1d530;sfrown:2322;sharp:266f;shchcy:449;shcy:448;shortmid:2223;shortparallel:2225;shy:ad;sigma:3c3;sigmaf:3c2;sigmav:3c2;sim:223c;simdot:2a6a;sime:2243;simeq:2243;simg:2a9e;simgE:2aa0;siml:2a9d;simlE:2a9f;simne:2246;simplus:2a24;simrarr:2972;slarr:2190;smallsetminus:2216;smashp:2a33;smeparsl:29e4;smid:2223;smile:2323;smt:2aaa;smte:2aac;smtes:2aac.fe00;softcy:44c;sol:2f;solb:29c4;solbar:233f;sopf:1d564;spades:2660;spadesuit:2660;spar:2225;sqcap:2293;sqcaps:2293.fe00;sqcup:2294;sqcups:2294.fe00;sqsub:228f;sqsube:2291;sqsubset:228f;sqsubseteq:2291;sqsup:2290;sqsupe:2292;sqsupset:2290;sqsupseteq:2292;squ:25a1;square:25a1;squarf:25aa;squf:25aa;srarr:2192;sscr:1d4c8;ssetmn:2216;ssmile:2323;sstarf:22c6;star:2606;starf:2605;straightepsilon:3f5;straightphi:3d5;strns:af;sub:2282;subE:2ac5;subdot:2abd;sube:2286;subedot:2ac3;submult:2ac1;subnE:2acb;subne:228a;subplus:2abf;subrarr:2979;subset:2282;subseteq:2286;subseteqq:2ac5;subsetneq:228a;subsetneqq:2acb;subsim:2ac7;subsub:2ad5;subsup:2ad3;succ:227b;succapprox:2ab8;succcurlyeq:227d;succeq:2ab0;succnapprox:2aba;succneqq:2ab6;succnsim:22e9;succsim:227f;sum:2211;sung:266a;sup:2283;sup1:b9;sup2:b2;sup3:b3;supE:2ac6;supdot:2abe;supdsub:2ad8;supe:2287;supedot:2ac4;suphsol:27c9;suphsub:2ad7;suplarr:297b;supmult:2ac2;supnE:2acc;supne:228b;supplus:2ac0;supset:2283;supseteq:2287;supseteqq:2ac6;supsetneq:228b;supsetneqq:2acc;supsim:2ac8;supsub:2ad4;supsup:2ad6;swArr:21d9;swarhk:2926;swarr:2199;swarrow:2199;swnwar:292a;szlig:df;target:2316;tau:3c4;tbrk:23b4;tcaron:165;tcedil:163;tcy:442;tdot:20db;telrec:2315;tfr:1d531;there4:2234;therefore:2234;theta:3b8;thetasym:3d1;thetav:3d1;thickapprox:2248;thicksim:223c;thinsp:2009;thkap:2248;thksim:223c;thorn:fe;tilde:2dc;times:d7;timesb:22a0;timesbar:2a31;timesd:2a30;tint:222d;toea:2928;top:22a4;topbot:2336;topcir:2af1;topf:1d565;topfork:2ada;tosa:2929;tprime:2034;trade:2122;triangle:25b5;triangledown:25bf;triangleleft:25c3;trianglelefteq:22b4;triangleq:225c;triangleright:25b9;trianglerighteq:22b5;tridot:25ec;trie:225c;triminus:2a3a;triplus:2a39;trisb:29cd;tritime:2a3b;trpezium:23e2;tscr:1d4c9;tscy:446;tshcy:45b;tstrok:167;twixt:226c;twoheadleftarrow:219e;twoheadrightarrow:21a0;uArr:21d1;uHar:2963;uacute:fa;uarr:2191;ubrcy:45e;ubreve:16d;ucirc:fb;ucy:443;udarr:21c5;udblac:171;udhar:296e;ufisht:297e;ufr:1d532;ugrave:f9;uharl:21bf;uharr:21be;uhblk:2580;ulcorn:231c;ulcorner:231c;ulcrop:230f;ultri:25f8;umacr:16b;uml:a8;uogon:173;uopf:1d566;uparrow:2191;updownarrow:2195;upharpoonleft:21bf;upharpoonright:21be;uplus:228e;upsi:3c5;upsih:3d2;upsilon:3c5;upuparrows:21c8;urcorn:231d;urcorner:231d;urcrop:230e;uring:16f;urtri:25f9;uscr:1d4ca;utdot:22f0;utilde:169;utri:25b5;utrif:25b4;uuarr:21c8;uuml:fc;uwangle:29a7;vArr:21d5;vBar:2ae8;vBarv:2ae9;vDash:22a8;vangrt:299c;varepsilon:3f5;varkappa:3f0;varnothing:2205;varphi:3d5;varpi:3d6;varpropto:221d;varr:2195;varrho:3f1;varsigma:3c2;varsubsetneq:228a.fe00;varsubsetneqq:2acb.fe00;varsupsetneq:228b.fe00;varsupsetneqq:2acc.fe00;vartheta:3d1;vartriangleleft:22b2;vartriangleright:22b3;vcy:432;vdash:22a2;vee:2228;veebar:22bb;veeeq:225a;vellip:22ee;verbar:7c;vert:7c;vfr:1d533;vltri:22b2;vnsub:2282.20d2;vnsup:2283.20d2;vopf:1d567;vprop:221d;vrtri:22b3;vscr:1d4cb;vsubnE:2acb.fe00;vsubne:228a.fe00;vsupnE:2acc.fe00;vsupne:228b.fe00;vzigzag:299a;wcirc:175;wedbar:2a5f;wedge:2227;wedgeq:2259;weierp:2118;wfr:1d534;wopf:1d568;wp:2118;wr:2240;wreath:2240;wscr:1d4cc;xcap:22c2;xcirc:25ef;xcup:22c3;xdtri:25bd;xfr:1d535;xhArr:27fa;xharr:27f7;xi:3be;xlArr:27f8;xlarr:27f5;xmap:27fc;xnis:22fb;xodot:2a00;xopf:1d569;xoplus:2a01;xotime:2a02;xrArr:27f9;xrarr:27f6;xscr:1d4cd;xsqcup:2a06;xuplus:2a04;xutri:25b3;xvee:22c1;xwedge:22c0;yacute:fd;yacy:44f;ycirc:177;ycy:44b;yen:a5;yfr:1d536;yicy:457;yopf:1d56a;yscr:1d4ce;yucy:44e;yuml:ff;zacute:17a;zcaron:17e;zcy:437;zdot:17c;zeetrf:2128;zeta:3b6;zfr:1d537;zhcy:436;zigrarr:21dd;zopf:1d56b;zscr:1d4cf;zwj:200d;zwnj:200c";
2
+ let table = null;
3
+ function lookupEntity(name) {
4
+ if (!table) {
5
+ table = /* @__PURE__ */ new Map();
6
+ for (const entry of DATA.split(";")) {
7
+ const colon = entry.indexOf(":");
8
+ const codes = entry.slice(colon + 1).split(".").map((h) => parseInt(h, 16));
9
+ table.set(entry.slice(0, colon), String.fromCodePoint(...codes));
10
+ }
11
+ }
12
+ return table.get(name);
13
+ }
14
+ export {
15
+ lookupEntity
16
+ };
17
+ //# sourceMappingURL=entities.js.map