@bytechain.cn/colamd 2.7.8-rc.2 → 2.7.11

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 (85) hide show
  1. package/README.md +6 -3
  2. package/README_CN.md +6 -3
  3. package/dist/main/chunks/docx-export.js +25 -12
  4. package/dist/main/chunks/math-export.js +3 -0
  5. package/dist/renderer/assets/{2DXBBFLN-BQWZeEOZ.js → 2DXBBFLN-BffjYiBQ.js} +4 -4
  6. package/dist/renderer/assets/{46IJ22JX-CR0BA3Ks.js → 46IJ22JX-Cqs6Q0nk.js} +5 -5
  7. package/dist/renderer/assets/{4TTDE5I4-BdBL5ywh.js → 4TTDE5I4-Di9dPHLj.js} +3 -3
  8. package/dist/renderer/assets/{4UF3HTLV-BYMrPeBv.js → 4UF3HTLV-8gLxIs2l.js} +4 -4
  9. package/dist/renderer/assets/{AAXQQPKT-CTS7qJK7.js → AAXQQPKT-FysWbA2A.js} +8 -8
  10. package/dist/renderer/assets/{AKE5O7KZ-pEeLbu6F.js → AKE5O7KZ-B3IOPa-c.js} +5 -5
  11. package/dist/renderer/assets/{BNMLP6AG-CbkwmI8G.js → BNMLP6AG-D0ug7dDI.js} +7 -7
  12. package/dist/renderer/assets/{DR6PKOQU-C6Iahoa3.js → DR6PKOQU-oitmLyhZ.js} +3 -3
  13. package/dist/renderer/assets/{E4RJ7UJB-D58gl0M0.js → E4RJ7UJB-B8xlSgyM.js} +6 -6
  14. package/dist/renderer/assets/{ELSXBIJH-DpS4enQ6.js → ELSXBIJH-6mTmrNHq.js} +1 -1
  15. package/dist/renderer/assets/{ERTIBQVS-DD8jjKTj.js → ERTIBQVS-Dd68dFC-.js} +4 -4
  16. package/dist/renderer/assets/{F653G4FO-DoDhFXEy.js → F653G4FO-Bu2Zxw-j.js} +8 -8
  17. package/dist/renderer/assets/{FKCDD66M-B0wYO26L.js → FKCDD66M-Ba7w0jUC.js} +1 -1
  18. package/dist/renderer/assets/{FP7KDXVC-B0LUknwq.js → FP7KDXVC-Do8T7Drp.js} +6 -6
  19. package/dist/renderer/assets/{FT5I3RHX-GdBjTcHf.js → FT5I3RHX-Cw6_nFK5.js} +7 -7
  20. package/dist/renderer/assets/{GY35JXOZ-Dg2P-i-d.js → GY35JXOZ-BgICGoQK.js} +4 -4
  21. package/dist/renderer/assets/{H5EEJPP2-C3d8qkta.js → H5EEJPP2-BhAIE8Iv.js} +9 -9
  22. package/dist/renderer/assets/{HWDLEDTA-Rm5NjB2N.js → HWDLEDTA-LoeArK7M.js} +1 -1
  23. package/dist/renderer/assets/{JZWSX6AR-qgXs8q-t.js → JZWSX6AR-D32ich7B.js} +2 -2
  24. package/dist/renderer/assets/{KQOEJWJY-mqwm7WG0.js → KQOEJWJY-BjdpuYRt.js} +1 -1
  25. package/dist/renderer/assets/{KS3BB3KE-ufj8X6Wa.js → KS3BB3KE-SuIaBOey.js} +5 -5
  26. package/dist/renderer/assets/{KXJRRZHI-C7vOZ5ie.js → KXJRRZHI-dzerQwX8.js} +3 -3
  27. package/dist/renderer/assets/{MFVI5XKI-DQ5z-nMh.js → MFVI5XKI-Ccq0m553.js} +1 -1
  28. package/dist/renderer/assets/{MWY2J62P-DUIamY6F.js → MWY2J62P-BoC73bt9.js} +5 -5
  29. package/dist/renderer/assets/{MXGNCBL2-DqeFe7Wj.js → MXGNCBL2-BZCuhQ_f.js} +5 -5
  30. package/dist/renderer/assets/{N6DAJLIZ-CvgcQPUI.js → N6DAJLIZ-D3lshlWR.js} +2 -2
  31. package/dist/renderer/assets/{NU5M23IW-DpTeCZq5.js → NU5M23IW-D8B7aP1M.js} +5 -5
  32. package/dist/renderer/assets/{NV4XNBIS-wuvA_U-J.js → NV4XNBIS-CG86dKnS.js} +7 -7
  33. package/dist/renderer/assets/{OGLU4SIR-CJL7p3WR.js → OGLU4SIR-D-dckdGc.js} +5 -5
  34. package/dist/renderer/assets/{OUNS5N76-CQVdszCS.js → OUNS5N76-BxpcyMgv.js} +6 -6
  35. package/dist/renderer/assets/{PU4ISKXV-Bcshpks1.js → PU4ISKXV-2blQCsO8.js} +5 -5
  36. package/dist/renderer/assets/{PUZGS23X-B8gmR_q3.js → PUZGS23X-pDG4u-84.js} +1 -1
  37. package/dist/renderer/assets/{Q3IYVLG5-B-qlhAM-.js → Q3IYVLG5-CzhiDBWC.js} +5 -5
  38. package/dist/renderer/assets/{QYHQDLKZ-EFOsxom5.js → QYHQDLKZ-CPbJy_Nw.js} +9 -9
  39. package/dist/renderer/assets/{RZSVICHU-B4a4ijU5.js → RZSVICHU-BBonevo2.js} +1 -1
  40. package/dist/renderer/assets/{UEXXS2NB-BYEZA17b.js → UEXXS2NB-D54VDoFS.js} +1 -1
  41. package/dist/renderer/assets/{UHTQJXKL-Dr2lF0X7.js → UHTQJXKL-XbjCRArY.js} +5 -5
  42. package/dist/renderer/assets/{URA2L2QI-CpWV8ZqC.js → URA2L2QI-DWXUka6_.js} +1 -1
  43. package/dist/renderer/assets/{UXCHDUKG-BhvBbCG9.js → UXCHDUKG-HEug3chN.js} +5 -5
  44. package/dist/renderer/assets/{VKNV3BUX-BYO3cWfq.js → VKNV3BUX-CgpUwi-P.js} +6 -6
  45. package/dist/renderer/assets/{VMV7XPHP-Cv3j51G-.js → VMV7XPHP-Bv6BQock.js} +1 -1
  46. package/dist/renderer/assets/{WEVWDWVA-Bk5T2zs5.js → WEVWDWVA-Cl6MdVFH.js} +1 -1
  47. package/dist/renderer/assets/{XRRJ35LF-BmKX-UhN.js → XRRJ35LF-DA5B5ZaK.js} +4 -4
  48. package/dist/renderer/assets/{YFKBLVVN-BsN6JCME.js → YFKBLVVN-CZTsSDev.js} +4 -4
  49. package/dist/renderer/assets/{YHRE5QGZ-BfqB5qTM.js → YHRE5QGZ-poL0u1Hk.js} +7 -7
  50. package/dist/renderer/assets/{ZF3OVT4B-71e7gqxT.js → ZF3OVT4B-Csajz0OL.js} +3 -3
  51. package/dist/renderer/assets/{index-DNjOyVpF.js → index-B2k43UK4.js} +1 -1
  52. package/dist/renderer/assets/{index-iM3KwPgz.js → index-B90RKaFh.js} +1 -1
  53. package/dist/renderer/assets/{index-bx07CRyn.css → index-BBpT3mZJ.css} +78 -24
  54. package/dist/renderer/assets/{index-D3xwJ3eb.js → index-BkfZmH8n.js} +1 -1
  55. package/dist/renderer/assets/{index-FbcCt5ge.js → index-C6upWLHM.js} +1 -1
  56. package/dist/renderer/assets/{index-BfRf6YNA.js → index-CDNRUOxY.js} +486 -165
  57. package/dist/renderer/assets/{index-CeRIIlMp.js → index-CSXoVyN0.js} +1 -1
  58. package/dist/renderer/assets/{index-Cz6s0BAO.js → index-CZLcUFAS.js} +1 -1
  59. package/dist/renderer/assets/{index-S_JLIQUn.js → index-D0-6r8OY.js} +1 -1
  60. package/dist/renderer/assets/{index-7XM2a0Z_.js → index-DHfl2nIi.js} +3 -3
  61. package/dist/renderer/assets/{index-KXmfqOLZ.js → index-DVUqWypj.js} +1 -1
  62. package/dist/renderer/assets/{index-VDcE-MZS.js → index-DrTzZcbo.js} +3 -3
  63. package/dist/renderer/assets/{index-DrX0ymyh.js → index-DtaUmWot.js} +1 -1
  64. package/dist/renderer/assets/{index-DXBizOwH.js → index-Duagl4VH.js} +1 -1
  65. package/dist/renderer/assets/{index-eE3MJT-Z.js → index-Dx_w36Cl.js} +1 -1
  66. package/dist/renderer/assets/{index-CcV4JcXV.js → index-IgLPrOn8.js} +3 -3
  67. package/dist/renderer/assets/{index-C-S_Yg_y.js → index-Lj__gZ6c.js} +1 -1
  68. package/dist/renderer/assets/{index-BkXNa75_.js → index-Mp0fGNKU.js} +1 -1
  69. package/dist/renderer/assets/{index-2bn6g3NY.js → index-OQWi5Igb.js} +1 -1
  70. package/dist/renderer/assets/{index-fPGCpVWp.js → index-OVUeW-Iw.js} +1 -1
  71. package/dist/renderer/assets/{index-DwT_NY9Q.js → index-eX6agtDo.js} +1 -1
  72. package/dist/renderer/assets/{index-CMEBb_j9.js → index-r0CaOFQM.js} +1 -1
  73. package/dist/renderer/assets/{index-BZI3MrwX.js → index-u6ZCoBKY.js} +1 -1
  74. package/dist/renderer/assets/{lazy-SjZiJQmj.js → lazy-DNVZaEmQ.js} +3 -3
  75. package/dist/renderer/assets/{web-raTBZuvw.js → web-BOPg29Xm.js} +2 -2
  76. package/dist/renderer/assets/{web-BSnrlb26.js → web-C5AimWCG.js} +1 -1
  77. package/dist/renderer/assets/{web-GpaN5nX1.js → web-nxbmgoyN.js} +1 -1
  78. package/dist/renderer/index.html +2 -2
  79. package/package.json +2 -1
  80. package/scripts/theme-verify-core.mjs +345 -345
  81. package/scripts/verify-themes-cli.mjs +95 -95
  82. package/themes/contract.json +128 -127
  83. package/themes/elegant.css +0 -1
  84. package/themes/sepia.css +0 -1
  85. package/themes/template.css +1 -1
package/README.md CHANGED
@@ -10,10 +10,10 @@ It offers true WYSIWYG editing, 12 built-in themes, rich-text copy, smart line b
10
10
 
11
11
  Whatever writes the file (an AI agent such as Claude Code or Codex, a script, or another editor), ColaMD shows the new content right away. No reopening, no manual refresh.
12
12
 
13
- **This repository (ColaMD-extend) is an extended fork of [marswaveai/ColaMD](https://github.com/marswaveai/colamd)**, currently based on upstream v2.7.7. Everything upstream offers is here; the fork ports its own features on top, see [Extend Features](#extend-features) and the [porting roadmap](#porting-roadmap-extend).
13
+ **This repository (ColaMD-extend) is an extended fork of [marswaveai/ColaMD](https://github.com/marswaveai/colamd)**, currently based on upstream v2.7.11. Everything upstream offers is here; the fork ports its own features on top, see [Extend Features](#extend-features) and the [porting roadmap](#porting-roadmap-extend).
14
14
 
15
15
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
16
- [![Upstream](https://img.shields.io/badge/upstream-v2.7.7-blue)](https://github.com/marswaveai/colamd)
16
+ [![Upstream](https://img.shields.io/badge/upstream-v2.7.11-blue)](https://github.com/marswaveai/colamd)
17
17
  [![GitHub release](https://img.shields.io/github/release/byteuser1977/ColaMD-extend.svg)](https://github.com/byteuser1977/ColaMD-extend/releases)
18
18
 
19
19
  [Download](#download) | [Features](#features)
@@ -95,6 +95,8 @@ ColaMD does not ask you to change your habits. It works well alongside Obsidian,
95
95
  | Windows | `.exe` |
96
96
  | Linux | `.AppImage` / `.deb` |
97
97
 
98
+ On macOS the community-maintained Homebrew cask follows each release: `brew install --cask colamd`.
99
+
98
100
  ## Roadmap
99
101
 
100
102
  ### Porting roadmap (Extend)
@@ -129,8 +131,9 @@ ColaMD will keep growing as a focused, free Markdown editor:
129
131
  - v2.0.1: Universal macOS build for Apple silicon and Intel Macs, plus custom-theme restoration, Mermaid render recovery, and Windows updater fixes
130
132
  - v2.0.2: Resizable file panel (180–420px, remembered) and an outline progress view that highlights the current heading and flashes the landing point after a jump
131
133
  - v2.3.0: Folders expand in place in the file list, one root and downward, so nested documents are one click away. Plus a round of shell tightening: the tab strip starts on the panel's edge line, resizing the panel lights up the divider itself, long names in the list appear as a hover label instead of scrolling past the icon, and the title-bar controls express state through weight instead of boxes
134
+ - v2.7.11: Typing feel and coordinate alignment from upstream v2.7.10 / v2.7.11 (`#` becomes a heading only after a space, Enter and Backspace hand off to CodeMirror's commands, list indents halved, clicking below a table no longer lands one row off, diagrams re-measure after they finish drawing), plus four export fixes from the extend fork: inline formulas no longer wrap in exported Word, Mermaid colors in the Word and HTML exports follow the theme, and PDF exports no longer carry the diagram zoom buttons
132
135
  - v2.7.0: The editor core is rewritten around a single rule: the editor holds the file's bytes, and rendering is a layer drawn on top of them. Characters you never touched can no longer change on save (table delimiter rows and `*`, `$`, `_` used to come back rewritten), long documents export whole instead of one screenful, and images, links, footnotes, inline HTML, Mermaid diagrams, code highlighting, copy buttons and list continuation are all back on the new core
133
- - v2.6.0: Mermaid diagrams are drawn into exported Word documents (rendered light, because Word is a white page), the reading column has three widths in View → Text Width (640 / 780 / 1080, honoured by source mode and by the HTML and PDF exports), unsaved work is copied to `~/.colamd/recovered` before it is discarded, and the tab close button answers a 24×24 target while staying 16×16 on screen
136
+ - v2.6.0: Mermaid diagrams are drawn into exported Word documents (light themes follow the theme's own colors; dark themes render light, because Word is a white page), the reading column has three widths in View → Text Width (640 / 780 / 1080, honoured by source mode and by the HTML and PDF exports), unsaved work is copied to `~/.colamd/recovered` before it is discarded, and the tab close button answers a 24×24 target while staying 16×16 on screen
134
137
  - v2.5.0: The document becomes a slideshow (View → Play Slideshow, ⌘⇧P): one `---` per page, full screen, starting at your caret, with the theme's typography, tables, formulas and diagrams on every slide. The same deck exports as a 16:9 PDF. Empty lines you type are written as blank lines instead of `<br />` tags, and a mixed `---`/`***` document keeps the rule marker it mostly uses
135
138
  - v2.4.4: YAML frontmatter survives a save byte for byte (opening a note and saving it used to rewrite the block into invalid YAML and overwrite the file), CRLF files stay CRLF, wide tables stop losing their last column in PDF exports, the find panel clears the window controls in the top row, a document opened from outside the app lands in the window you are looking at, and the file list can sit on either side from the View menu
136
139
  - v2.4.3: The Windows window buttons finally follow the theme. The colour handed to the system was a CSS Color 4 value it cannot parse, so the whole update was rejected and the buttons kept the colours from window creation (a light strip over a black row)
package/README_CN.md CHANGED
@@ -12,10 +12,10 @@ ColaMD 是一款开源、免费、优雅的 Markdown 编辑器,用于写作、
12
12
 
13
13
  无论是什么在写这个文件(Claude Code、Codex 这类 AI Agent,一个脚本,或另一个编辑器),ColaMD 都会立刻显示最新内容,不用重开文件,也不用手动刷新。
14
14
 
15
- **本仓库(ColaMD-extend)是 [marswaveai/ColaMD](https://github.com/marswaveai/colamd) 的扩展版**,当前基于上游 v2.7.7。上游的全部功能都在;扩展版在此之上陆续移植自有功能,见[扩展版功能](#扩展版功能)与[移植路线图](#移植路线图扩展版)。
15
+ **本仓库(ColaMD-extend)是 [marswaveai/ColaMD](https://github.com/marswaveai/colamd) 的扩展版**,当前基于上游 v2.7.11。上游的全部功能都在;扩展版在此之上陆续移植自有功能,见[扩展版功能](#扩展版功能)与[移植路线图](#移植路线图扩展版)。
16
16
 
17
17
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
18
- [![Upstream](https://img.shields.io/badge/upstream-v2.7.7-blue)](https://github.com/marswaveai/colamd)
18
+ [![Upstream](https://img.shields.io/badge/upstream-v2.7.11-blue)](https://github.com/marswaveai/colamd)
19
19
  [![GitHub release](https://img.shields.io/github/release/byteuser1977/ColaMD-extend.svg)](https://github.com/byteuser1977/ColaMD-extend/releases)
20
20
 
21
21
  [下载](#下载) | [功能](#功能)
@@ -119,6 +119,8 @@ ColaMD 不要求你改变现有习惯,也适合与 Obsidian、Typora、VS Code
119
119
  | Windows | `.exe` |
120
120
  | Linux | `.AppImage` / `.deb` |
121
121
 
122
+ macOS 上也可以用社区维护的 Homebrew Cask,它跟着每次发布更新:`brew install --cask colamd`。
123
+
122
124
  ## 路线图
123
125
 
124
126
  ### 移植路线图(扩展版)
@@ -170,8 +172,9 @@ ColaMD 会继续把「免费、优雅、专注」这件事做好:
170
172
  * v2.0.2: 文件面板可调宽(180–420px,记住选择),大纲新增阅读进度高亮与跳转落点闪烁反馈
171
173
 
172
174
  * v2.3.0:文件面板里的文件夹可以就地展开,一个树根向下看,嵌套的文档只差一次点击;同时把外壳收紧一圈,标签从面板的边界线开始,拖拽调宽亮起的是分割线本身,长文件名改由浮层说全名,标题栏按钮用深浅表达状态
175
+ * v2.7.11:上游 v2.7.10 / v2.7.11 的打字手感与坐标对齐(`#` 后跟空格才算标题、回车和退格交给 CodeMirror 官方命令、列表缩进收窄一半、表格下方点选不再偏一行、图异步画完重新量高度),加上 Extend 的四处导出修复:Word 行内公式不再折行、导出 Word/HTML 的图表配色跟随主题、PDF 不再带上图表的缩放按钮
173
176
  * v2.7.0:编辑器内核重写,只认一条规则:编辑器里存的是文件的字节,渲染只是叠在字节上面的一层。你没碰过的字符保存后不会再变(表格分隔行和 `*`、`$`、`_` 以前会被改写),长文档导出整篇而不是一屏,图片、链接、脚注、行内 HTML、Mermaid 图表、代码高亮与复制按钮、列表续行也都在新内核上补齐
174
- * v2.6.0:导出的 Word 里带上 Mermaid 图(按浅色画,因为 Word 是白纸),正文宽度多了三档(视图 → 正文宽度:640 / 780 / 1080,源码模式和 HTML、PDF 导出都跟着走),丢弃未保存内容之前先往 `~/.colamd/recovered` 留一份副本,标签关闭按钮可点的范围扩到 24×24(可见的还是 16×16)
177
+ * v2.6.0:导出的 Word 里带上 Mermaid 图(浅色主题跟随主题配色,深色主题按浅色画,因为 Word 是白纸),正文宽度多了三档(视图 → 正文宽度:640 / 780 / 1080,源码模式和 HTML、PDF 导出都跟着走),丢弃未保存内容之前先往 `~/.colamd/recovered` 留一份副本,标签关闭按钮可点的范围扩到 24×24(可见的还是 16×16)
175
178
  * v2.5.0:文档变成幻灯片(视图 → 放映幻灯片,⌘⇧P):一条 `---` 一页,全屏放映,从光标所在页开始,主题的字体、表格、公式和图表每一页都在;同一套分页还能导出成 16:9 的幻灯片 PDF。编辑时按出的空行存成 Markdown 本来的空行而不是 `<br />` 标签,`---` 与 `***` 混用的文件保存时保留多数派写法
176
179
  * v2.4.4:带 YAML frontmatter 的笔记保存后不再被改写(以前打开后直接保存就会把属性区重排成非法 YAML 并覆盖原文件),CRLF 的文件保存后还是 CRLF,导出 PDF 时宽表格不再丢掉最后一列,查找替换框不再被右上角的窗口按钮压住,从 Finder 打开的文件会落进你正在看的窗口,文件列表可以在视图菜单里换到左侧
177
180
  * v2.4.3:Windows 窗口按钮的颜色真正跟着主题——交给系统的颜色原本是它解析不了的写法,整次设置被拒,按钮一直停在开窗那一刻的颜色上(近黑的顶行上顶着一块浅灰)
@@ -22280,6 +22280,8 @@ var PageBreakBefore = class extends XmlComponent {
22280
22280
  }
22281
22281
  };
22282
22282
  var LineRuleType = {
22283
+ /** Line spacing is at least the specified value */
22284
+ AT_LEAST: "atLeast",
22283
22285
  /** Line spacing is automatically determined based on content */
22284
22286
  AUTO: "auto"
22285
22287
  };
@@ -29698,6 +29700,7 @@ function halfPoints(px) {
29698
29700
  function emTwips(px, em) {
29699
29701
  return Math.round(px * em * 15);
29700
29702
  }
29703
+ process.platform === "darwin" ? {} : process.platform === "win32" ? {} : {};
29701
29704
  function headingForDepth(depth) {
29702
29705
  const headings = [
29703
29706
  HeadingLevel.HEADING_1,
@@ -29949,13 +29952,16 @@ function codeParagraph(node2, context, extra = {}) {
29949
29952
  size: context.codeSizeHalf,
29950
29953
  color: context.style.codeBlockText
29951
29954
  }));
29952
- const codeLine = Math.max(240, Math.round(context.paragraphLine * 0.9));
29955
+ const codeLine = Math.round(context.style.bodySize * 0.875 * 1.6 * 15);
29953
29956
  const codePad = emTwips(context.style.bodySize, 1);
29954
29957
  return new Paragraph({
29955
29958
  // 引用里的代码块要保留自己的底色与行距,所以代码块的属性写在 extra 之后。
29956
29959
  ...extra,
29960
+ // 显式左对齐:不写的话继承默认样式,默认是两端对齐时每一行都会被拉满行宽
29961
+ // (上游 #202 的第 3 条)。
29962
+ alignment: AlignmentType.LEFT,
29957
29963
  shading: { fill: context.style.codeBlockBackground },
29958
- spacing: { before: codePad, after: codePad, line: codeLine, lineRule: LineRuleType.AUTO },
29964
+ spacing: { before: codePad, after: codePad, line: codeLine, lineRule: LineRuleType.AT_LEAST },
29959
29965
  children
29960
29966
  });
29961
29967
  }
@@ -30072,7 +30078,12 @@ function blockNodes(nodes, context, listDepth = 0) {
30072
30078
  const start = node2.start ?? 1;
30073
30079
  for (const item of node2.children ?? []) {
30074
30080
  const first = item.children?.find((child) => child.type === "paragraph");
30075
- const itemPad = emTwips(context.style.bodySize, 0.5);
30081
+ const itemSpacing = {
30082
+ before: 0,
30083
+ after: emTwips(context.style.bodySize, 0.3),
30084
+ line: context.paragraphLine,
30085
+ lineRule: LineRuleType.AT_LEAST
30086
+ };
30076
30087
  if (typeof item.checked === "boolean") {
30077
30088
  output.push(new Paragraph({
30078
30089
  children: [
@@ -30083,13 +30094,13 @@ function blockNodes(nodes, context, listDepth = 0) {
30083
30094
  ...inlineRuns(first?.children, context)
30084
30095
  ],
30085
30096
  indent: { left: 360 + listDepth * 360, hanging: 240 },
30086
- spacing: { after: itemPad }
30097
+ spacing: itemSpacing
30087
30098
  }));
30088
30099
  } else {
30089
30100
  output.push(new Paragraph({
30090
30101
  children: inlineRuns(first?.children, context),
30091
30102
  numbering: node2.ordered ? { reference: `ordered-${start}`, level: listDepth, instance: node2.instance ?? 0 } : { reference: "bullet", level: listDepth, instance: 0 },
30092
- spacing: { after: itemPad }
30103
+ spacing: itemSpacing
30093
30104
  }));
30094
30105
  }
30095
30106
  output.push(...blockNodes(item.children?.filter((child) => child !== first), context, listDepth + 1));
@@ -30129,8 +30140,7 @@ function documentStyles(context) {
30129
30140
  eastAsia: context.bodyFont,
30130
30141
  cs: context.bodyFont
30131
30142
  };
30132
- const headingLine = Math.round(context.paragraphLine * (1.35 / 1.75));
30133
- const footnoteLine = Math.round(context.paragraphLine * (1.4 / 1.75));
30143
+ const footnoteLine = Math.round(context.style.bodySize * 0.875 * 1.6 * 15);
30134
30144
  const bodyPadAfter = emTwips(context.style.bodySize, 0.75);
30135
30145
  const bodyPadBefore = Math.round(bodyPadAfter * 0.33);
30136
30146
  const heading2 = (level) => {
@@ -30144,8 +30154,8 @@ function documentStyles(context) {
30144
30154
  spacing: {
30145
30155
  before: emTwips(px, 1.4),
30146
30156
  after: emTwips(px, 0.6),
30147
- line: headingLine,
30148
- lineRule: LineRuleType.AUTO
30157
+ line: emTwips(px, 1.35),
30158
+ lineRule: LineRuleType.AT_LEAST
30149
30159
  }
30150
30160
  }
30151
30161
  };
@@ -30157,7 +30167,7 @@ function documentStyles(context) {
30157
30167
  paragraph: {
30158
30168
  spacing: {
30159
30169
  line: context.paragraphLine,
30160
- lineRule: LineRuleType.AUTO,
30170
+ lineRule: LineRuleType.AT_LEAST,
30161
30171
  before: bodyPadBefore,
30162
30172
  after: bodyPadAfter
30163
30173
  }
@@ -30172,7 +30182,7 @@ function documentStyles(context) {
30172
30182
  footnoteText: {
30173
30183
  run: { size: context.codeSizeHalf, color: context.style.secondaryText },
30174
30184
  paragraph: {
30175
- spacing: { after: 60, line: footnoteLine, lineRule: LineRuleType.AUTO }
30185
+ spacing: { after: 60, line: footnoteLine, lineRule: LineRuleType.AT_LEAST }
30176
30186
  }
30177
30187
  }
30178
30188
  }
@@ -30194,7 +30204,10 @@ async function markdownToDocx(input) {
30194
30204
  bodyFont: fontName(style.bodyFontStack, false),
30195
30205
  monoFont: fontName(style.monoFontStack, true),
30196
30206
  bodySizeHalf: halfPoints(style.bodySize),
30197
- paragraphLine: Math.round(style.lineHeight * 240),
30207
+ // 行距按编辑器 CSS 换算成绝对 twips(lineHeight × 字号 px,1px = 15 twips),
30208
+ // 全部配合 AT_LEAST 使用。AUTO 是「单倍行距的倍数」,会把字体自身的度量
30209
+ // (雅黑约 1.32em)再乘一遍,1.75 倍在 Word 里相当于编辑器的 2.1 倍以上。
30210
+ paragraphLine: Math.round(style.lineHeight * style.bodySize * 15),
30198
30211
  codeSizeHalf: halfPoints(style.bodySize * 0.875),
30199
30212
  footnoteIds,
30200
30213
  sourcePath: input.sourcePath,
@@ -6,6 +6,7 @@ const require$$2 = require("os");
6
6
  const require$$1$1 = require("path");
7
7
  const CAPTURE_TIMEOUT_MS = 2e4;
8
8
  const SETTLE_MS = 2e4;
9
+ const MEASURE_WIDTH = 2e3;
9
10
  function withTimeout(promise, ms, label) {
10
11
  return new Promise((resolve, reject) => {
11
12
  const timer = setTimeout(() => reject(new Error(`${label} 超过 ${ms}ms 没有返回`)), ms);
@@ -93,6 +94,8 @@ async function renderShots(items, styles, color, background) {
93
94
  const fixedWidth = typeof item.width === "number" && item.width > 0 ? Math.round(item.width) : null;
94
95
  const display = fixedWidth ? "block" : "inline-block";
95
96
  const widthValue = fixedWidth ? `${fixedWidth}px` : "auto";
97
+ const [, previousHeight] = win.getContentSize();
98
+ win.setContentSize(MEASURE_WIDTH, Math.max(200, previousHeight));
96
99
  const measured = await withTimeout(
97
100
  win.webContents.executeJavaScript(`(async () => {
98
101
  const stage = document.getElementById('stage')
@@ -1,8 +1,8 @@
1
1
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
2
- import { x as x$1, D, Y as Y$1, z as z$1, U as U$1, H as H$1, G, O, P } from "./VMV7XPHP-Cv3j51G-.js";
3
- import { a as _t, y, x as x$2, b, f as ft$1, $ as $t$1, p as pt$1, _ as _$1 } from "./RZSVICHU-B4a4ijU5.js";
4
- import { x, H, $ } from "./lazy-SjZiJQmj.js";
5
- import "./index-BfRf6YNA.js";
2
+ import { x as x$1, D, Y as Y$1, z as z$1, U as U$1, H as H$1, G, O, P } from "./VMV7XPHP-Bv6BQock.js";
3
+ import { a as _t, y, x as x$2, b, f as ft$1, $ as $t$1, p as pt$1, _ as _$1 } from "./RZSVICHU-BBonevo2.js";
4
+ import { x, H, $ } from "./lazy-DNVZaEmQ.js";
5
+ import "./index-CDNRUOxY.js";
6
6
  function Pe(e) {
7
7
  return e === 32 || e >= 9 && e <= 13 || e > 127 && /\s/.test(String.fromCharCode(e));
8
8
  }
@@ -1,9 +1,9 @@
1
- import { E, P, V } from "./URA2L2QI-CpWV8ZqC.js";
2
- import { x, L, e, i, H } from "./lazy-SjZiJQmj.js";
1
+ import { E, P, V } from "./URA2L2QI-DWXUka6_.js";
2
+ import { x, L, e, i, H } from "./lazy-DNVZaEmQ.js";
3
3
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
4
- import { D as Dn, S as Sn, w as wn } from "./HWDLEDTA-Rm5NjB2N.js";
5
- import { a as _t$1, h as ht$1, y, _, x as x$1, f as ft$1, $ as $t, g as gt$1 } from "./RZSVICHU-B4a4ijU5.js";
6
- import "./index-BfRf6YNA.js";
4
+ import { D as Dn, S as Sn, w as wn } from "./HWDLEDTA-LoeArK7M.js";
5
+ import { a as _t$1, h as ht$1, y, _, x as x$1, f as ft$1, $ as $t, g as gt$1 } from "./RZSVICHU-BBonevo2.js";
6
+ import "./index-CDNRUOxY.js";
7
7
  var ze = 1e5;
8
8
  function it(e2) {
9
9
  switch (e2) {
@@ -1,8 +1,8 @@
1
1
  import { s } from "./RVARI57O-DMrXgtoB.js";
2
- import { x, H, t, u, e, L, i } from "./lazy-SjZiJQmj.js";
2
+ import { x, H, t, u, e, L, i } from "./lazy-DNVZaEmQ.js";
3
3
  import { l } from "./DKTLEL5E-Dj3316cp.js";
4
- import { a as _t, x as x$1, m as mt, y, f as ft, $ as $t$1, b } from "./RZSVICHU-B4a4ijU5.js";
5
- import "./index-BfRf6YNA.js";
4
+ import { a as _t, x as x$1, m as mt, y, f as ft, $ as $t$1, b } from "./RZSVICHU-BBonevo2.js";
5
+ import "./index-CDNRUOxY.js";
6
6
  var $t = class {
7
7
  type = "xychart";
8
8
  title;
@@ -1,7 +1,7 @@
1
- import { x, D, M, $, v, V, W, G, O, P, U, z as z$1, Y, H as H$1 } from "./VMV7XPHP-Cv3j51G-.js";
2
- import { a as _t, f as ft, $ as $t } from "./RZSVICHU-B4a4ijU5.js";
3
- import { H } from "./lazy-SjZiJQmj.js";
4
- import "./index-BfRf6YNA.js";
1
+ import { x, D, M, $, v, V, W, G, O, P, U, z as z$1, Y, H as H$1 } from "./VMV7XPHP-Bv6BQock.js";
2
+ import { a as _t, f as ft, $ as $t } from "./RZSVICHU-BBonevo2.js";
3
+ import { H } from "./lazy-DNVZaEmQ.js";
4
+ import "./index-CDNRUOxY.js";
5
5
  function A(t, e) {
6
6
  return { type: "info", title: t.title || e, accTitle: t.accTitle ? t.accTitle.replace(/^\s+/g, "") : void 0, accDescr: t.accDescr ? t.accDescr.replace(/\n\s+/g, `
7
7
  `) : void 0 };
@@ -1,12 +1,12 @@
1
- import { c as c$1 } from "./MFVI5XKI-DQ5z-nMh.js";
2
- import { b as be$1, d as de, m as me$1 } from "./FKCDD66M-B0wYO26L.js";
3
- import { N, A } from "./JZWSX6AR-qgXs8q-t.js";
4
- import { R } from "./URA2L2QI-CpWV8ZqC.js";
5
- import { H, $, x as x$1, i, e, C, L } from "./lazy-SjZiJQmj.js";
1
+ import { c as c$1 } from "./MFVI5XKI-Ccq0m553.js";
2
+ import { b as be$1, d as de, m as me$1 } from "./FKCDD66M-Ba7w0jUC.js";
3
+ import { N, A } from "./JZWSX6AR-D32ich7B.js";
4
+ import { R } from "./URA2L2QI-DWXUka6_.js";
5
+ import { H, $, x as x$1, i, e, C, L } from "./lazy-DNVZaEmQ.js";
6
6
  import { m, c } from "./DKTLEL5E-Dj3316cp.js";
7
- import { F as Fn, D as Dn, S as Sn, v as vn, w as wn } from "./HWDLEDTA-Rm5NjB2N.js";
8
- import { a as _t, g as gt, x, f as ft, b, h as ht, y, $ as $t } from "./RZSVICHU-B4a4ijU5.js";
9
- import "./index-BfRf6YNA.js";
7
+ import { F as Fn, D as Dn, S as Sn, v as vn, w as wn } from "./HWDLEDTA-LoeArK7M.js";
8
+ import { a as _t, g as gt, x, f as ft, b, h as ht, y, $ as $t } from "./RZSVICHU-BBonevo2.js";
9
+ import "./index-CDNRUOxY.js";
10
10
  function Re(i2) {
11
11
  let n = "TB";
12
12
  for (let c2 of i2) typeof c2 != "string" && c2.stmt === "dir" && (n = c2.value);
@@ -1,8 +1,8 @@
1
- import { x as x$1, D, M, $, v, w, V, W, G, O, P, j, Y, z, U, H as H$1 } from "./VMV7XPHP-Cv3j51G-.js";
2
- import { D as Dn$1, w as wn$1 } from "./HWDLEDTA-Rm5NjB2N.js";
3
- import { a as _t, x, m as mt, f as ft, $ as $t, _, y } from "./RZSVICHU-B4a4ijU5.js";
4
- import { H } from "./lazy-SjZiJQmj.js";
5
- import "./index-BfRf6YNA.js";
1
+ import { x as x$1, D, M, $, v, w, V, W, G, O, P, j, Y, z, U, H as H$1 } from "./VMV7XPHP-Bv6BQock.js";
2
+ import { D as Dn$1, w as wn$1 } from "./HWDLEDTA-LoeArK7M.js";
3
+ import { a as _t, x, m as mt, f as ft, $ as $t, _, y } from "./RZSVICHU-BBonevo2.js";
4
+ import { H } from "./lazy-DNVZaEmQ.js";
5
+ import "./index-CDNRUOxY.js";
6
6
  var ke = class {
7
7
  domains = /* @__PURE__ */ new Map();
8
8
  transitions = [];
@@ -1,12 +1,12 @@
1
1
  import { c as c$1 } from "./G3MDBVQH-qZ3yfAIw.js";
2
- import { x, h } from "./ELSXBIJH-DpS4enQ6.js";
3
- import { b as be$1, d as de$1, m as me, p as pe$1 } from "./FKCDD66M-B0wYO26L.js";
4
- import { M, L, O } from "./JZWSX6AR-qgXs8q-t.js";
5
- import { H, $, e, L as L$1, i, t } from "./lazy-SjZiJQmj.js";
2
+ import { x, h } from "./ELSXBIJH-6mTmrNHq.js";
3
+ import { b as be$1, d as de$1, m as me, p as pe$1 } from "./FKCDD66M-Ba7w0jUC.js";
4
+ import { M, L, O } from "./JZWSX6AR-D32ich7B.js";
5
+ import { H, $, e, L as L$1, i, t } from "./lazy-DNVZaEmQ.js";
6
6
  import { m, c } from "./DKTLEL5E-Dj3316cp.js";
7
- import { F as Fn, S as Sn } from "./HWDLEDTA-Rm5NjB2N.js";
8
- import { a as _t$1, g as gt$1, h as ht$1, _, y, x as x$1, f as ft$1, b, $ as $t$1, Y, T, q } from "./RZSVICHU-B4a4ijU5.js";
9
- import "./index-BfRf6YNA.js";
7
+ import { F as Fn, S as Sn } from "./HWDLEDTA-LoeArK7M.js";
8
+ import { a as _t$1, g as gt$1, h as ht$1, _, y, x as x$1, f as ft$1, b, $ as $t$1, Y, T, q } from "./RZSVICHU-BBonevo2.js";
9
+ import "./index-CDNRUOxY.js";
10
10
  function At(s) {
11
11
  return s === "markdown" || s === "string" || s === "text" ? s : "markdown";
12
12
  }
@@ -1,7 +1,7 @@
1
- import { L, i, H, x as x$1 } from "./lazy-SjZiJQmj.js";
1
+ import { L, i, H, x as x$1 } from "./lazy-DNVZaEmQ.js";
2
2
  import { f, h } from "./DKTLEL5E-Dj3316cp.js";
3
- import { y, x, m as mt, b, a as _t, $ as $t, f as ft, g as gt } from "./RZSVICHU-B4a4ijU5.js";
4
- import "./index-BfRf6YNA.js";
3
+ import { y, x, m as mt, b, a as _t, $ as $t, f as ft, g as gt } from "./RZSVICHU-BBonevo2.js";
4
+ import "./index-CDNRUOxY.js";
5
5
  var B = class {
6
6
  type = "sankey";
7
7
  nodes = [];
@@ -1,10 +1,10 @@
1
- import { i } from "./PUZGS23X-B8gmR_q3.js";
1
+ import { i } from "./PUZGS23X-pDG4u-84.js";
2
2
  import { f } from "./DKTLEL5E-Dj3316cp.js";
3
- import { x as x$1, D, G, $, v, w, V as V$1, W, O, P, j, Y as Y$1, z, U } from "./VMV7XPHP-Cv3j51G-.js";
4
- import { w as wn, D as Dn } from "./HWDLEDTA-Rm5NjB2N.js";
5
- import { f as ft$1, x as x$3, _, y, a as _t$1, $ as $t$1, Y as Y$2, T, b, q } from "./RZSVICHU-B4a4ijU5.js";
6
- import { x as x$2, H } from "./lazy-SjZiJQmj.js";
7
- import "./index-BfRf6YNA.js";
3
+ import { x as x$1, D, G, $, v, w, V as V$1, W, O, P, j, Y as Y$1, z, U } from "./VMV7XPHP-Bv6BQock.js";
4
+ import { w as wn, D as Dn } from "./HWDLEDTA-LoeArK7M.js";
5
+ import { f as ft$1, x as x$3, _, y, a as _t$1, $ as $t$1, Y as Y$2, T, b, q } from "./RZSVICHU-BBonevo2.js";
6
+ import { x as x$2, H } from "./lazy-DNVZaEmQ.js";
7
+ import "./index-CDNRUOxY.js";
8
8
  var ae = class {
9
9
  nodes = /* @__PURE__ */ new Map();
10
10
  labels;
@@ -1,4 +1,4 @@
1
- import { f as ft, x as x$1 } from "./RZSVICHU-B4a4ijU5.js";
1
+ import { f as ft, x as x$1 } from "./RZSVICHU-BBonevo2.js";
2
2
  function x(e, t) {
3
3
  for (let n = 0; n < t.length; n += 3) {
4
4
  let o = Math.round(t[n + 1]), s = e.get(o);
@@ -1,8 +1,8 @@
1
1
  import { f, h } from "./DKTLEL5E-Dj3316cp.js";
2
- import { x, M, $, v, w as w$1, V, W, G, O, P, Y, z as z$1, U, D, H as H$1, j } from "./VMV7XPHP-Cv3j51G-.js";
3
- import { x as x$2, a as _t, y, f as ft, m as mt, $ as $t } from "./RZSVICHU-B4a4ijU5.js";
4
- import { x as x$1, H as H$2 } from "./lazy-SjZiJQmj.js";
5
- import "./index-BfRf6YNA.js";
2
+ import { x, M, $, v, w as w$1, V, W, G, O, P, Y, z as z$1, U, D, H as H$1, j } from "./VMV7XPHP-Bv6BQock.js";
3
+ import { x as x$2, a as _t, y, f as ft, m as mt, $ as $t } from "./RZSVICHU-BBonevo2.js";
4
+ import { x as x$1, H as H$2 } from "./lazy-DNVZaEmQ.js";
5
+ import "./index-CDNRUOxY.js";
6
6
  var Ie = 32;
7
7
  function De(t) {
8
8
  return new x$1(t, "semantic", { type: "radar" });
@@ -1,14 +1,14 @@
1
1
  import { i as i$1, a } from "./FTXIJQGB-BX14b7pN.js";
2
- import { q, x, H, $, e, L as L$1, i as i$2 } from "./lazy-SjZiJQmj.js";
2
+ import { q, x, H, $, e, L as L$1, i as i$2 } from "./lazy-DNVZaEmQ.js";
3
3
  import { h as h$1 } from "./7WLXJQOR-C8MM6Bra.js";
4
- import { x as x$1, h } from "./ELSXBIJH-DpS4enQ6.js";
5
- import { b as be, d as de, m as me$1, p as pe$1 } from "./FKCDD66M-B0wYO26L.js";
6
- import { A, M, L, O, N } from "./JZWSX6AR-qgXs8q-t.js";
7
- import { o, i, P, B, E } from "./URA2L2QI-CpWV8ZqC.js";
4
+ import { x as x$1, h } from "./ELSXBIJH-6mTmrNHq.js";
5
+ import { b as be, d as de, m as me$1, p as pe$1 } from "./FKCDD66M-Ba7w0jUC.js";
6
+ import { A, M, L, O, N } from "./JZWSX6AR-D32ich7B.js";
7
+ import { o, i, P, B, E } from "./URA2L2QI-DWXUka6_.js";
8
8
  import { m, c } from "./DKTLEL5E-Dj3316cp.js";
9
- import { F as Fn, w as wn, L as Ln, D as Dn, S as Sn$1 } from "./HWDLEDTA-Rm5NjB2N.js";
10
- import { g as gt, a as _t, h as ht, y, _, x as x$2, f as ft, m as mt, b, $ as $t$1 } from "./RZSVICHU-B4a4ijU5.js";
11
- import "./index-BfRf6YNA.js";
9
+ import { F as Fn, w as wn, L as Ln, D as Dn, S as Sn$1 } from "./HWDLEDTA-LoeArK7M.js";
10
+ import { g as gt, a as _t, h as ht, y, _, x as x$2, f as ft, m as mt, b, $ as $t$1 } from "./RZSVICHU-BBonevo2.js";
11
+ import "./index-CDNRUOxY.js";
12
12
  var Vt = /* @__PURE__ */ new Map([["task", "roundedRect"], ["tool", "subroutine"], ["input", "lean-right"], ["decision", "diamond"], ["refdoc", "lin-doc"], ["action", "hexagon"], ["round", "rect"]]), Bt = /* @__PURE__ */ new Set(["doc", "stadium", "terminal", "circle", "trapezoid", "inv_trapezoid", "inv-trapezoid", "doublecircle", "double-circle", "typeDeclaration", "procs", "lean_left", "lean-left", "in-out", "cylinder", "ellipse", "odd", "tag-rect", "tagged-rectangle", "delay", "half-rounded-rectangle", "lin-rect", "lined-rectangle", "win-pane", "window-pane", "curv-trap", "curved-trapezoid"]), Yt = /* @__PURE__ */ new Set(["roundedRect", "subroutine", "subprocess", "subproc", "framed-rectangle", "lean-right", "diamond", "lin-doc", "lined-document", "hexagon", "hex", "connector", "collapsedGroup"]), ge = "roundedRect";
13
13
  function pe(n) {
14
14
  return n && (Vt.get(n) ?? n);
@@ -1,4 +1,4 @@
1
- import { o as on, s as sn, I as In, g as gn, E as En } from "./HWDLEDTA-Rm5NjB2N.js";
1
+ import { o as on, s as sn, I as In, g as gn, E as En } from "./HWDLEDTA-LoeArK7M.js";
2
2
  function be(r) {
3
3
  return r === "BT" || r === "LR" || r === "RL" ? r : "TB";
4
4
  }
@@ -1,10 +1,10 @@
1
- import { g, s as s$1, a, A } from "./WEVWDWVA-Bk5T2zs5.js";
2
- import { s, T } from "./UEXXS2NB-BYEZA17b.js";
3
- import { x, H, i, e, L } from "./lazy-SjZiJQmj.js";
1
+ import { g, s as s$1, a, A } from "./WEVWDWVA-Cl6MdVFH.js";
2
+ import { s, T } from "./UEXXS2NB-D54VDoFS.js";
3
+ import { x, H, i, e, L } from "./lazy-DNVZaEmQ.js";
4
4
  import { c } from "./DKTLEL5E-Dj3316cp.js";
5
- import { D as Dn, a as St } from "./HWDLEDTA-Rm5NjB2N.js";
6
- import { x as x$1, f as ft, $ as $t, y, m as mt, _ } from "./RZSVICHU-B4a4ijU5.js";
7
- import "./index-BfRf6YNA.js";
5
+ import { D as Dn, a as St } from "./HWDLEDTA-LoeArK7M.js";
6
+ import { x as x$1, f as ft, $ as $t, y, m as mt, _ } from "./RZSVICHU-BBonevo2.js";
7
+ import "./index-CDNRUOxY.js";
8
8
  var Q = class {
9
9
  type = "timeline";
10
10
  title;
@@ -1,11 +1,11 @@
1
- import { i } from "./PUZGS23X-B8gmR_q3.js";
2
- import { k, A, H as H$2 } from "./KQOEJWJY-mqwm7WG0.js";
1
+ import { i } from "./PUZGS23X-pDG4u-84.js";
2
+ import { k, A, H as H$2 } from "./KQOEJWJY-BjdpuYRt.js";
3
3
  import { c } from "./DKTLEL5E-Dj3316cp.js";
4
- import { U, z, Y, x as x$1, D, $, v, G, O, P, H } from "./VMV7XPHP-Cv3j51G-.js";
5
- import { w as wn, D as Dn } from "./HWDLEDTA-Rm5NjB2N.js";
6
- import { a as _t, _ as _$1, y, x as x$2, f as ft$1, m as mt$1, $ as $t, b, p as pt } from "./RZSVICHU-B4a4ijU5.js";
7
- import { C, x, H as H$1, $ as $$1 } from "./lazy-SjZiJQmj.js";
8
- import "./index-BfRf6YNA.js";
4
+ import { U, z, Y, x as x$1, D, $, v, G, O, P, H } from "./VMV7XPHP-Bv6BQock.js";
5
+ import { w as wn, D as Dn } from "./HWDLEDTA-LoeArK7M.js";
6
+ import { a as _t, _ as _$1, y, x as x$2, f as ft$1, m as mt$1, $ as $t, b, p as pt } from "./RZSVICHU-BBonevo2.js";
7
+ import { C, x, H as H$1, $ as $$1 } from "./lazy-DNVZaEmQ.js";
8
+ import "./index-CDNRUOxY.js";
9
9
  var nt = /* @__PURE__ */ new Map([["ui", "ui"], ["pcr", "processor"], ["processor", "processor"], ["rmo", "readmodel"], ["readmodel", "readmodel"], ["cmd", "command"], ["command", "command"], ["evt", "event"], ["event", "event"]]), it = /* @__PURE__ */ new Map([["trigger", [0, "UI/Automation", "UI/A: "]], ["state", [100, "Command/Read Model", "C/RM: "]], ["stream", [200, "Events", "Stream: "]]]);
10
10
  function at(n) {
11
11
  return n === "ui" || n === "processor" ? "trigger" : n === "event" ? "stream" : "state";
@@ -1,9 +1,9 @@
1
1
  import { s } from "./5THPTBWS-2mBFupjU.js";
2
2
  import { l, h } from "./DKTLEL5E-Dj3316cp.js";
3
- import { x as x$1, D, M, $ as $$1, v, U, z, Y } from "./VMV7XPHP-Cv3j51G-.js";
4
- import { a as _t, g as gt, m as mt, y, _, x, b, h as ht, f as ft, $ as $t } from "./RZSVICHU-B4a4ijU5.js";
5
- import { H as H$1, $ } from "./lazy-SjZiJQmj.js";
6
- import "./index-BfRf6YNA.js";
3
+ import { x as x$1, D, M, $ as $$1, v, U, z, Y } from "./VMV7XPHP-Bv6BQock.js";
4
+ import { a as _t, g as gt, m as mt, y, _, x, b, h as ht, f as ft, $ as $t } from "./RZSVICHU-BBonevo2.js";
5
+ import { H as H$1, $ } from "./lazy-DNVZaEmQ.js";
6
+ import "./index-CDNRUOxY.js";
7
7
  function De(s2) {
8
8
  let t = [], n = [];
9
9
  for (let o of s2) {
@@ -1,14 +1,14 @@
1
- import { G as Gn, y as yt } from "./NV4XNBIS-wuvA_U-J.js";
2
- import { g as gn$1, E as En, o as on, s as sn } from "./HWDLEDTA-Rm5NjB2N.js";
3
- import { f as ft, x } from "./RZSVICHU-B4a4ijU5.js";
1
+ import { G as Gn, y as yt } from "./NV4XNBIS-CG86dKnS.js";
2
+ import { g as gn$1, E as En, o as on, s as sn } from "./HWDLEDTA-LoeArK7M.js";
3
+ import { f as ft, x } from "./RZSVICHU-BBonevo2.js";
4
4
  import "./FTXIJQGB-BX14b7pN.js";
5
- import "./lazy-SjZiJQmj.js";
6
- import "./index-BfRf6YNA.js";
5
+ import "./lazy-DNVZaEmQ.js";
6
+ import "./index-CDNRUOxY.js";
7
7
  import "./7WLXJQOR-C8MM6Bra.js";
8
- import "./ELSXBIJH-DpS4enQ6.js";
9
- import "./FKCDD66M-B0wYO26L.js";
10
- import "./JZWSX6AR-qgXs8q-t.js";
11
- import "./URA2L2QI-CpWV8ZqC.js";
8
+ import "./ELSXBIJH-6mTmrNHq.js";
9
+ import "./FKCDD66M-Ba7w0jUC.js";
10
+ import "./JZWSX6AR-D32ich7B.js";
11
+ import "./URA2L2QI-DWXUka6_.js";
12
12
  import "./DKTLEL5E-Dj3316cp.js";
13
13
  var Fn = 34, Rn = 24, Un = 8, Nn = 2e4, mn = 1e4, zt = 2e6, dn = 4, Cn = 3, pn = 8, Vt = 20, yn = 20, wn = 14, Tn = 3;
14
14
  function gn(a, w, x2, W, X = Rn) {
@@ -1,4 +1,4 @@
1
- import { x, y, f as ft } from "./RZSVICHU-B4a4ijU5.js";
1
+ import { x, y, f as ft } from "./RZSVICHU-BBonevo2.js";
2
2
  function gn(l, A, e = 0) {
3
3
  return { w: l, h: A, kind: e, pin: 0, span: 0, x: 0, y: 0, rank: 0 };
4
4
  }
@@ -1,5 +1,5 @@
1
- import { b } from "./RZSVICHU-B4a4ijU5.js";
2
- import { $ } from "./lazy-SjZiJQmj.js";
1
+ import { b } from "./RZSVICHU-BBonevo2.js";
2
+ import { $ } from "./lazy-DNVZaEmQ.js";
3
3
  var s = "about:blank", _ = /^([^\w]*)(javascript|data|vbscript)/im, m = /&#(\w+)(^\w|;)?/g, p = /&(newline|tab);/gi, d = /[\u0000-\u001F\u007F-\u009F -‍]/gim, C = /^.+(:|&colon;)/gim, g = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;
4
4
  function E(e) {
5
5
  try {
@@ -1,4 +1,4 @@
1
- import { Y, q, f as ft, T, b as b$1, x } from "./RZSVICHU-B4a4ijU5.js";
1
+ import { Y, q, f as ft, T, b as b$1, x } from "./RZSVICHU-BBonevo2.js";
2
2
  var b = /\s/;
3
3
  function H(n, g, d, a, f = 0) {
4
4
  let l = [];
@@ -1,9 +1,9 @@
1
- import { W, Y, X } from "./N6DAJLIZ-CvgcQPUI.js";
2
- import { P, V, E } from "./URA2L2QI-CpWV8ZqC.js";
1
+ import { W, Y, X } from "./N6DAJLIZ-D3lshlWR.js";
2
+ import { P, V, E } from "./URA2L2QI-DWXUka6_.js";
3
3
  import { c, h } from "./DKTLEL5E-Dj3316cp.js";
4
- import { a as _t, m as mt$1, x as x$1, h as ht$1, y, f as ft, $ as $t } from "./RZSVICHU-B4a4ijU5.js";
5
- import { x, H, W as W$1 } from "./lazy-SjZiJQmj.js";
6
- import "./index-BfRf6YNA.js";
4
+ import { a as _t, m as mt$1, x as x$1, h as ht$1, y, f as ft, $ as $t } from "./RZSVICHU-BBonevo2.js";
5
+ import { x, H, W as W$1 } from "./lazy-DNVZaEmQ.js";
6
+ import "./index-CDNRUOxY.js";
7
7
  var Bt = 11, nt = class {
8
8
  type = "mindmap";
9
9
  title;
@@ -1,6 +1,6 @@
1
- import { H, x as x$1, L, i, e, t, a as x$2 } from "./lazy-SjZiJQmj.js";
2
- import { a as _t, m as mt$1, y, x, f as ft, $ as $t, g as gt$1 } from "./RZSVICHU-B4a4ijU5.js";
3
- import "./index-BfRf6YNA.js";
1
+ import { H, x as x$1, L, i, e, t, a as x$2 } from "./lazy-DNVZaEmQ.js";
2
+ import { a as _t, m as mt$1, y, x, f as ft, $ as $t, g as gt$1 } from "./RZSVICHU-BBonevo2.js";
3
+ import "./index-CDNRUOxY.js";
4
4
  function $(c) {
5
5
  let e2 = c.trim();
6
6
  return e2.length >= 2 && e2.startsWith('"') && e2.endsWith('"') ? e2.slice(1, -1) : e2;
@@ -1,4 +1,4 @@
1
- import { a as _t, f as ft, x } from "./RZSVICHU-B4a4ijU5.js";
1
+ import { a as _t, f as ft, x } from "./RZSVICHU-BBonevo2.js";
2
2
  function c(u, s, f, i, e, l, o) {
3
3
  let t = _t(u, false, s, f, 4e3, 1);
4
4
  if (t.height === 0) return { width: e, height: l, content: o };
@@ -1,9 +1,9 @@
1
- import { q, x, L, e, i, t, H as H$1 } from "./lazy-SjZiJQmj.js";
2
- import { k } from "./KQOEJWJY-mqwm7WG0.js";
1
+ import { q, x, L, e, i, t, H as H$1 } from "./lazy-DNVZaEmQ.js";
2
+ import { k } from "./KQOEJWJY-BjdpuYRt.js";
3
3
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
4
- import { a as St$1, D as Dn$1 } from "./HWDLEDTA-Rm5NjB2N.js";
5
- import { x as x$1, g as gt, _, y, f as ft, $ as $t, a as _t, h as ht, b } from "./RZSVICHU-B4a4ijU5.js";
6
- import "./index-BfRf6YNA.js";
4
+ import { a as St$1, D as Dn$1 } from "./HWDLEDTA-LoeArK7M.js";
5
+ import { x as x$1, g as gt, _, y, f as ft, $ as $t, a as _t, h as ht, b } from "./RZSVICHU-BBonevo2.js";
6
+ import "./index-CDNRUOxY.js";
7
7
  var fn = "aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen transparent currentcolor inherit initial unset revert accentcolor accentcolortext activetext buttonborder buttonface buttontext canvas canvastext field fieldtext graytext highlight highlighttext linktext mark marktext selecteditem selecteditemtext visitedtext activeborder activecaption appworkspace background buttonhighlight buttonshadow captiontext inactiveborder inactivecaption inactivecaptiontext infobackground infotext menu menutext scrollbar threeddarkshadow threedface threedhighlight threedlightshadow threedshadow window windowframe windowtext", Vt, pn = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?(%|deg|grad|rad|turn)?$/i;
8
8
  function Kt(r) {
9
9
  if (r.toLowerCase() === "none") return 4;
@@ -1,9 +1,9 @@
1
- import { g, s, A } from "./WEVWDWVA-Bk5T2zs5.js";
2
- import { s as s$1, T } from "./UEXXS2NB-BYEZA17b.js";
3
- import { i, e, L as L$1, H } from "./lazy-SjZiJQmj.js";
1
+ import { g, s, A } from "./WEVWDWVA-Cl6MdVFH.js";
2
+ import { s as s$1, T } from "./UEXXS2NB-D54VDoFS.js";
3
+ import { i, e, L as L$1, H } from "./lazy-DNVZaEmQ.js";
4
4
  import { c } from "./DKTLEL5E-Dj3316cp.js";
5
- import { x, m as mt$1, y, _, f as ft, $ as $t } from "./RZSVICHU-B4a4ijU5.js";
6
- import "./index-BfRf6YNA.js";
5
+ import { x, m as mt$1, y, _, f as ft, $ as $t } from "./RZSVICHU-BBonevo2.js";
6
+ import "./index-CDNRUOxY.js";
7
7
  function ot(e2) {
8
8
  let n = /* @__PURE__ */ new Set();
9
9
  for (let r of e2) for (let c2 of r.people) n.add(c2);
@@ -1,5 +1,5 @@
1
- import { i, L } from "./lazy-SjZiJQmj.js";
2
- import { y as y$1, x as x$1 } from "./RZSVICHU-B4a4ijU5.js";
1
+ import { i, L } from "./lazy-DNVZaEmQ.js";
2
+ import { y as y$1, x as x$1 } from "./RZSVICHU-BBonevo2.js";
3
3
  var x = ["1", "INVALID", "SPACELINE", "NL", "EOF", "", "SPACELIST", "ICON", "CLASS", "NODE_DSTART", "NODE_ID", "NODE_DESCR", "NODE_DEND", "SHAPE_DATA"];
4
4
  function P(E, D) {
5
5
  return E === 5 ? D ? "KANBAN" : "MINDMAP" : x[E];