@aiquants/markdown 11.1.0 → 11.2.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 (122) hide show
  1. package/README.md +18 -9
  2. package/dist/{abnfDiagram-VRR7QNED-C4Jxgx13.js → abnfDiagram-VRR7QNED-BKDymcgU.js} +3 -3
  3. package/dist/{abnfDiagram-VRR7QNED-WjiOMH07.cjs → abnfDiagram-VRR7QNED-BrysG8di.cjs} +1 -1
  4. package/dist/{arc-BASi8Hqx.cjs → arc-BB8-GmvF.cjs} +1 -1
  5. package/dist/{arc-C7CH7xqM.js → arc-HSlzHLN5.js} +1 -1
  6. package/dist/{architectureDiagram-ZJ3FMSHR-ClwidIel.js → architectureDiagram-ZJ3FMSHR-Cw5TsOQY.js} +2 -2
  7. package/dist/{architectureDiagram-ZJ3FMSHR-QlFmKjZ2.cjs → architectureDiagram-ZJ3FMSHR-DUr8yu65.cjs} +1 -1
  8. package/dist/{blockDiagram-677ZJIJ3-B5QDrNQV.cjs → blockDiagram-677ZJIJ3-3fEMZifU.cjs} +1 -1
  9. package/dist/{blockDiagram-677ZJIJ3-BUrX_zhT.js → blockDiagram-677ZJIJ3-B4QKTXoS.js} +3 -3
  10. package/dist/{c4Diagram-LMCZKHZV-B2hi-Wi5.js → c4Diagram-LMCZKHZV-BF-7sSPW.js} +2 -2
  11. package/dist/{c4Diagram-LMCZKHZV-DYZO523e.cjs → c4Diagram-LMCZKHZV-Cr3HwHd7.cjs} +1 -1
  12. package/dist/{channel-Cr1ANV4j.js → channel-0qa8ce6Q.js} +1 -1
  13. package/dist/{channel-Cg3Vm619.cjs → channel-CHciNRIB.cjs} +1 -1
  14. package/dist/{chunk-2Q5K7J3B-ZmtWeAKF.cjs → chunk-2Q5K7J3B-3IUhxfJe.cjs} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-Bxo9slkI.js → chunk-2Q5K7J3B-BhPb31Ds.js} +1 -1
  16. package/dist/{chunk-32BRIVSS-YISd1c8J.js → chunk-32BRIVSS-BGg_X4L2.js} +1 -1
  17. package/dist/{chunk-32BRIVSS-8tw0VC1F.cjs → chunk-32BRIVSS-D5djvojF.cjs} +1 -1
  18. package/dist/{chunk-5VM5RSS4-g88YAKYU.cjs → chunk-5VM5RSS4-BZ3BilMv.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-CqNTCifm.js → chunk-5VM5RSS4-BiHk_ZMt.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-DP6g1uoN.cjs → chunk-EX3LRPZG-C-ow5sUu.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-WwLq86XG.js → chunk-EX3LRPZG-C5kdwLBO.js} +4 -4
  22. package/dist/{chunk-JWPE2WC7-COh8RdRz.js → chunk-JWPE2WC7-DdePg2tx.js} +1 -1
  23. package/dist/{chunk-JWPE2WC7-Bqw3GN0H.cjs → chunk-JWPE2WC7-e5NtU9tE.cjs} +1 -1
  24. package/dist/{chunk-MOJQB5TN-BVAWgplu.cjs → chunk-MOJQB5TN-BLSnD3t7.cjs} +1 -1
  25. package/dist/{chunk-MOJQB5TN-C1dao40o.js → chunk-MOJQB5TN-Dbd1TEnx.js} +1 -1
  26. package/dist/{chunk-PUDLZKDR-Cmc1XT5M.js → chunk-PUDLZKDR-BsiVpD8V.js} +6 -6
  27. package/dist/{chunk-PUDLZKDR-CC_D9ix1.cjs → chunk-PUDLZKDR-hGJNph5n.cjs} +1 -1
  28. package/dist/{chunk-RYQCIY6F-CjUwK4va.js → chunk-RYQCIY6F-BUXnC2bE.js} +1 -1
  29. package/dist/{chunk-RYQCIY6F-C19BL3Ws.cjs → chunk-RYQCIY6F-DX34sli0.cjs} +1 -1
  30. package/dist/{chunk-V7JOEXUC-CypP8KXk.js → chunk-V7JOEXUC-BQueT2fh.js} +5 -5
  31. package/dist/{chunk-V7JOEXUC-iaB-PSjI.cjs → chunk-V7JOEXUC-CWk-EdL4.cjs} +1 -1
  32. package/dist/{chunk-VR4S4FIN-CVdDLZPH.cjs → chunk-VR4S4FIN-6fMMVlwy.cjs} +1 -1
  33. package/dist/{chunk-VR4S4FIN-CC2Up04Z.js → chunk-VR4S4FIN-DI4PTMge.js} +1 -1
  34. package/dist/{chunk-XXDRQBXY-D7hud77X.js → chunk-XXDRQBXY-0FVYkVuP.js} +1 -1
  35. package/dist/{chunk-XXDRQBXY-V6DQOxAN.cjs → chunk-XXDRQBXY-DcL_rCNu.cjs} +1 -1
  36. package/dist/{classDiagram-OUVF2IWQ-BFfnrPra.cjs → classDiagram-OUVF2IWQ-CEZdsWvZ.cjs} +1 -1
  37. package/dist/{classDiagram-v2-EOCWNBFH-CgyfPPk6.js → classDiagram-OUVF2IWQ-DRGfIZdE.js} +2 -2
  38. package/dist/{classDiagram-v2-EOCWNBFH-BFfnrPra.cjs → classDiagram-v2-EOCWNBFH-CEZdsWvZ.cjs} +1 -1
  39. package/dist/{classDiagram-OUVF2IWQ-CgyfPPk6.js → classDiagram-v2-EOCWNBFH-DRGfIZdE.js} +2 -2
  40. package/dist/components/spreadsheetModel.d.ts +2 -0
  41. package/dist/converter.wasm +0 -0
  42. package/dist/{cose-bilkent-JH36ORCC-DmxSHNLU.js → cose-bilkent-JH36ORCC-3kBRwN8L.js} +1 -1
  43. package/dist/{cose-bilkent-JH36ORCC-BQZprRVI.cjs → cose-bilkent-JH36ORCC-DjBFwUgZ.cjs} +1 -1
  44. package/dist/{cynefinDiagram-TSTJHNR4-KM35ULZr.cjs → cynefinDiagram-TSTJHNR4-CHqP9wNf.cjs} +1 -1
  45. package/dist/{cynefinDiagram-TSTJHNR4-ku5HNgfN.js → cynefinDiagram-TSTJHNR4-COFBfMTD.js} +2 -2
  46. package/dist/{dagre-VKFMJZFB-57k1u_99.js → dagre-VKFMJZFB-BiBZp1UZ.js} +2 -2
  47. package/dist/{dagre-VKFMJZFB-BmFsAJzi.cjs → dagre-VKFMJZFB-CfOPJOfT.cjs} +1 -1
  48. package/dist/{diagram-FQU43EPY-Bn7xPHj7.cjs → diagram-FQU43EPY-BWf-0ZaX.cjs} +1 -1
  49. package/dist/{diagram-FQU43EPY-0ev8XAoD.js → diagram-FQU43EPY-DE88GkFP.js} +2 -2
  50. package/dist/{diagram-G47NLZAW-RPdbjZwZ.js → diagram-G47NLZAW-AGqBg4BW.js} +3 -3
  51. package/dist/{diagram-G47NLZAW-CjGc3D2u.cjs → diagram-G47NLZAW-BmGTMih1.cjs} +1 -1
  52. package/dist/{diagram-NH7WQ7WH-CnZ4iL7c.js → diagram-NH7WQ7WH-C_OQJCoz.js} +2 -2
  53. package/dist/{diagram-NH7WQ7WH-lHSM_pTi.cjs → diagram-NH7WQ7WH-avUTm6At.cjs} +1 -1
  54. package/dist/{diagram-OA4YK3LP-RtsRdjQV.js → diagram-OA4YK3LP-BcG8oYQH.js} +3 -3
  55. package/dist/{diagram-OA4YK3LP-BcKaPsNW.cjs → diagram-OA4YK3LP-v4R9pnOp.cjs} +1 -1
  56. package/dist/{diagram-WEI45ONY-eVEUMERO.js → diagram-WEI45ONY-B3f9-St7.js} +2 -2
  57. package/dist/{diagram-WEI45ONY-Cm0jKyLw.cjs → diagram-WEI45ONY-DMANh2pW.cjs} +1 -1
  58. package/dist/{ebnfDiagram-CCIWWBDH-BlAQU47p.js → ebnfDiagram-CCIWWBDH-DHMH95Qm.js} +3 -3
  59. package/dist/{ebnfDiagram-CCIWWBDH-CcHTkkm8.cjs → ebnfDiagram-CCIWWBDH-DViSMuU5.cjs} +1 -1
  60. package/dist/{erDiagram-Q63AITRT-Cz_PKpWU.js → erDiagram-Q63AITRT-DrY-YSX7.js} +4 -4
  61. package/dist/{erDiagram-Q63AITRT-Dv27IAYm.cjs → erDiagram-Q63AITRT-HV9x1ciI.cjs} +1 -1
  62. package/dist/{extractHeadings-OhPxZ04C.js → extractHeadings-Boz4pTVy.js} +4665 -4633
  63. package/dist/{extractHeadings-BMNm4Zss.cjs → extractHeadings-UK9m7d29.cjs} +63 -63
  64. package/dist/flowDiagram-23GEKE2U-Cw3lE3iu.cjs +1 -0
  65. package/dist/flowDiagram-23GEKE2U-DeQftLq7.js +7 -0
  66. package/dist/{ganttDiagram-NO4QXBWP-DtwVRaBN.js → ganttDiagram-NO4QXBWP-BrcUlnJH.js} +2 -2
  67. package/dist/{ganttDiagram-NO4QXBWP-CbbUbAi1.cjs → ganttDiagram-NO4QXBWP-XbcZyqEG.cjs} +1 -1
  68. package/dist/{gitGraphDiagram-IHSO6WYX-BHOaT-JP.cjs → gitGraphDiagram-IHSO6WYX-DDgZkg3G.cjs} +1 -1
  69. package/dist/{gitGraphDiagram-IHSO6WYX-BiUZZefR.js → gitGraphDiagram-IHSO6WYX-Dqk3F0Su.js} +3 -3
  70. package/dist/index.cjs +1 -1
  71. package/dist/index.client.cjs +1 -1
  72. package/dist/index.client.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/{infoDiagram-FWYZ7A6U-DsF_dahQ.cjs → infoDiagram-FWYZ7A6U-DM1S6-Hc.cjs} +1 -1
  75. package/dist/{infoDiagram-FWYZ7A6U-DI2c0joH.js → infoDiagram-FWYZ7A6U-a32XjwX5.js} +1 -1
  76. package/dist/{ishikawaDiagram-FXEZZL3T-CaDgpvd5.cjs → ishikawaDiagram-FXEZZL3T-CHzSqzMH.cjs} +1 -1
  77. package/dist/{ishikawaDiagram-FXEZZL3T-0U9dSh7F.js → ishikawaDiagram-FXEZZL3T-DWsA1PP7.js} +1 -1
  78. package/dist/{journeyDiagram-5HDEW3XC-5qIvxqpC.cjs → journeyDiagram-5HDEW3XC-Cis5Fa71.cjs} +1 -1
  79. package/dist/{journeyDiagram-5HDEW3XC-Y9ABNCEY.js → journeyDiagram-5HDEW3XC-CkVTUCEp.js} +4 -4
  80. package/dist/{kanban-definition-HUTT4EX6-DTsrmMh8.js → kanban-definition-HUTT4EX6-B30ORUDT.js} +2 -2
  81. package/dist/{kanban-definition-HUTT4EX6-DDy8tXpk.cjs → kanban-definition-HUTT4EX6-DcANcb4G.cjs} +1 -1
  82. package/dist/{linear-CYNosLx1.cjs → linear-CAd-44F2.cjs} +1 -1
  83. package/dist/{linear-B7M8-_qH.js → linear-uw6vQWir.js} +1 -1
  84. package/dist/{mindmap-definition-LN4V7U3C-AQHTbAWm.cjs → mindmap-definition-LN4V7U3C-CP0bNnn-.cjs} +1 -1
  85. package/dist/{mindmap-definition-LN4V7U3C-CNXzfo0L.js → mindmap-definition-LN4V7U3C-D-yIE9Kv.js} +3 -3
  86. package/dist/{pegDiagram-2B236MQR-CNgWrgv-.js → pegDiagram-2B236MQR-BOdy4HUA.js} +3 -3
  87. package/dist/{pegDiagram-2B236MQR-D0SEAIrf.cjs → pegDiagram-2B236MQR-Brh5cxKw.cjs} +1 -1
  88. package/dist/{pieDiagram-ENE6RG2P-DzbrqPW4.js → pieDiagram-ENE6RG2P-1cY-R9MG.js} +3 -3
  89. package/dist/{pieDiagram-ENE6RG2P-BlmNu0Kw.cjs → pieDiagram-ENE6RG2P-CEaHvWUM.cjs} +1 -1
  90. package/dist/{quadrantDiagram-ABIIQ3AL-BXPkUo_7.cjs → quadrantDiagram-ABIIQ3AL-C5CTuaUm.cjs} +1 -1
  91. package/dist/{quadrantDiagram-ABIIQ3AL-_XC0L6LA.js → quadrantDiagram-ABIIQ3AL-CbZZ5GEh.js} +2 -2
  92. package/dist/{railroadDiagram-RFXS5EU6-EyrFshDZ.cjs → railroadDiagram-RFXS5EU6-C6-tc-QZ.cjs} +1 -1
  93. package/dist/{railroadDiagram-RFXS5EU6-CfXmkCxt.js → railroadDiagram-RFXS5EU6-DThY6dTL.js} +3 -3
  94. package/dist/{requirementDiagram-TGXJPOKE-DKjGDx3E.js → requirementDiagram-TGXJPOKE-BwtXYJtb.js} +3 -3
  95. package/dist/{requirementDiagram-TGXJPOKE-KjSczfMx.cjs → requirementDiagram-TGXJPOKE-h_ZfNqUh.cjs} +1 -1
  96. package/dist/{sankeyDiagram-HTMAVEWB-6JC0mA8g.cjs → sankeyDiagram-HTMAVEWB-DalNC8XY.cjs} +1 -1
  97. package/dist/{sankeyDiagram-HTMAVEWB-R3EgjVk3.js → sankeyDiagram-HTMAVEWB-DkwdXFCH.js} +1 -1
  98. package/dist/{sequenceDiagram-DBY2YBRQ-jllfFbkK.cjs → sequenceDiagram-DBY2YBRQ-BE2rVf2w.cjs} +1 -1
  99. package/dist/{sequenceDiagram-DBY2YBRQ-BeK8wcJ4.js → sequenceDiagram-DBY2YBRQ-CZHBSmBp.js} +3 -3
  100. package/dist/{sizeCapture-X5ZJPWSS-QkZ2crvh.cjs → sizeCapture-X5ZJPWSS-CiSkHK1v.cjs} +1 -1
  101. package/dist/{sizeCapture-X5ZJPWSS-C9QakD3W.js → sizeCapture-X5ZJPWSS-o-wx7oGH.js} +1 -1
  102. package/dist/{stateDiagram-2N3HPSRC-DXh1e2K8.js → stateDiagram-2N3HPSRC-C2yZajhM.js} +2 -2
  103. package/dist/{stateDiagram-2N3HPSRC-CoHLlhZX.cjs → stateDiagram-2N3HPSRC-Cts12p59.cjs} +1 -1
  104. package/dist/{stateDiagram-v2-6OUMAXLB-B0KQB01K.cjs → stateDiagram-v2-6OUMAXLB-B8p1-c97.cjs} +1 -1
  105. package/dist/{stateDiagram-v2-6OUMAXLB-D6Dlbs-H.js → stateDiagram-v2-6OUMAXLB-VE-c3q_l.js} +2 -2
  106. package/dist/styles/markdown.css +1 -1
  107. package/dist/styles/markdown.standalone.css +1 -1
  108. package/dist/{swimlanes-5IMT3BWC-D-D1lzxE.cjs → swimlanes-5IMT3BWC-DeNuvXGa.cjs} +1 -1
  109. package/dist/{swimlanes-5IMT3BWC-BaTEG5rQ.js → swimlanes-5IMT3BWC-TTTBHYYv.js} +3 -3
  110. package/dist/{swimlanesDiagram-G3AALYLV-C6p-5K6G.js → swimlanesDiagram-G3AALYLV-Buup5yvb.js} +2 -2
  111. package/dist/{swimlanesDiagram-G3AALYLV-DSssDQXF.cjs → swimlanesDiagram-G3AALYLV-Bxz106Lt.cjs} +1 -1
  112. package/dist/{timeline-definition-FHXFAJF6-Bq5nzkkn.js → timeline-definition-FHXFAJF6-C_zjmLAX.js} +2 -2
  113. package/dist/{timeline-definition-FHXFAJF6-DtewJvNV.cjs → timeline-definition-FHXFAJF6-c15QQTDf.cjs} +1 -1
  114. package/dist/{vennDiagram-L72KCM5P-g-vN7N0T.cjs → vennDiagram-L72KCM5P-CjX3W2Ne.cjs} +1 -1
  115. package/dist/{vennDiagram-L72KCM5P-5QsbfRVK.js → vennDiagram-L72KCM5P-DNLnBVJ_.js} +1 -1
  116. package/dist/{wardleyDiagram-EHGQE667-Dk_QVzpo.js → wardleyDiagram-EHGQE667-CjE65uje.js} +2 -2
  117. package/dist/{wardleyDiagram-EHGQE667-B78Ehxdt.cjs → wardleyDiagram-EHGQE667-UlY3HJxP.cjs} +1 -1
  118. package/dist/{xychartDiagram-FW5EYKEG-DwiqWfUA.cjs → xychartDiagram-FW5EYKEG-DDVfULUl.cjs} +1 -1
  119. package/dist/{xychartDiagram-FW5EYKEG-CwpcSS8_.js → xychartDiagram-FW5EYKEG-DziQHnEA.js} +2 -2
  120. package/package.json +7 -7
  121. package/dist/flowDiagram-23GEKE2U-BoCXOrea.js +0 -7
  122. package/dist/flowDiagram-23GEKE2U-Dsludo9a.cjs +0 -1
package/README.md CHANGED
@@ -492,8 +492,8 @@ A block rendered without such a sheet shows plain inherited text: the components
492
492
 
493
493
  Give `MarkdownViewer` or `MarkdownRenderer` a reader of image sources (`imageSource`, a `MarkdownImageSourceReader`),
494
494
  and every storage SVG image that stands alone in its paragraph shows its source a press away: a toolbar above the image
495
- whose **Source** toggle swaps the image for the text of its file, as written, and back. Without a reader every image
496
- renders as written.
495
+ whose **Source** toggle swaps the image for the text of its file, as written, and back, and whose **Copy** puts that
496
+ text on the clipboard. Without a reader every image renders as written.
497
497
 
498
498
  - **Which images**: a paragraph whose only child (besides white space) is an `img` that, as the allow list keeps it,
499
499
  carries a `data-asset-src` ending in `.svg` (any ASCII letter case), a `src`, and no `data-asset-exists="false"`, in a
@@ -513,12 +513,19 @@ renders as written.
513
513
  or the block goes away. Until the answer it shows a loading line; then the text in a `<pre>` that wraps (a one-line
514
514
  SVG never runs out sideways), never interprets it, takes the focus (the keyboard scrolls it) and is capped at the
515
515
  viewport height less 2 × 44 px (`--aqmd-viewport-cap`, as the diagram and table boxes are) with its own scrolling. A
516
- source the host cut gets a note under it; a whole source adds **Copy** to the toolbar, which writes the text exactly
517
- as read and tells the outcome in the block's status line. A failure shows its text, with **Try again** when it may
518
- pass (the focus moves to the toggle as the button goes). The press keeps the focus on the toggle (`aria-pressed`); the
519
- choice is not kept, so the block opens on the image.
520
- - **Toolbar**: 44 × 44 px controls in a wrapping row that never covers the image, one tab stop whose controls the arrow
521
- keys, Home and End walk, and the palette and focus ring the Mermaid and spreadsheet toolbars share (`markdown.css`).
516
+ source the host cut gets a note under it. A failure shows its text, with **Try again** when it may pass (the focus
517
+ moves to the toggle as the button goes). The press keeps the focus on the toggle (`aria-pressed`); the choice is not
518
+ kept, so the block opens on the image.
519
+ - **Copying**: **Copy** shows while the image shows and while the whole source shows, and tells the outcome in the
520
+ block's status line. With the source shown it writes the text exactly as read. With the image shown it reads the file
521
+ through the reader and hands the clipboard that read as a `ClipboardItem` within the press, so a browser that only
522
+ writes during a press (Safari) takes it too; a file the host cut, or a read that fails, copies nothing and says it
523
+ could not copy, as does a browser without `ClipboardItem`. A source the host cut never offers Copy, so the clipboard
524
+ never gets part of a file. Leaving the block aborts the read.
525
+ - **Toolbar**: 44 × 44 px controls in a wrapping row at the inline end that never covers the image, Copy first and the
526
+ Source toggle at the row's end (so the toggle stays put whether Copy shows or not), one tab stop whose controls the
527
+ arrow keys, Home and End walk, and the palette and focus ring the Mermaid and spreadsheet toolbars share
528
+ (`markdown.css`).
522
529
  - **Layout**: the block replaces the paragraph with a `div` that holds the toolbar and, while the image shows, the
523
530
  original paragraph (so the image keeps the paragraph's spacing). The root carries the paragraph's `data-source-lines`;
524
531
  the paragraph inside it carries none.
@@ -610,7 +617,9 @@ Total 200 235
610
617
  the column-header band and the visible rows, both 24 px and scaled by the zoom, and the horizontal scroll bar
611
618
  (`@aiquants/spreadsheet/view`'s constants) — capped at the viewport's height less two 44 px bands, so the page can always
612
619
  be scrolled past it. `layout="fill"` lets a host that shows one table in a pane of its own (a file preview) give the
613
- block the pane's height: the toolbar and the notice keep their own height and the box takes the rest.
620
+ block the pane's height: the toolbar and the notice keep their own height and the box takes the rest, but never less
621
+ than three rows (all the rows of a shorter table) at the grid's zoom, capped the same way. In a pane shorter than that
622
+ the block grows past the pane, so a host that scrolls its pane reaches the whole table instead of a squeezed box.
614
623
  - **The plain table**: the server render and the hydrating render show a plain `<table>` in the box, drawn as the grid
615
624
  first shows it, so the page does not shift when the grid replaces it (a block that mounts after the grid has loaded draws
616
625
  the grid at once) and a reader without JavaScript still sees the data: the column letters (A to Z, more than the box shows
@@ -1,6 +1,6 @@
1
- import { g as p, r as u, d as a } from "./chunk-MOJQB5TN-C1dao40o.js";
2
- import { p as f } from "./chunk-JWPE2WC7-COh8RdRz.js";
3
- import { _ as n, U as o } from "./extractHeadings-OhPxZ04C.js";
1
+ import { g as p, r as u, d as a } from "./chunk-MOJQB5TN-Dbd1TEnx.js";
2
+ import { p as f } from "./chunk-JWPE2WC7-DdePg2tx.js";
3
+ import { _ as n, U as o } from "./extractHeadings-Boz4pTVy.js";
4
4
  import { M as c, b as d } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
5
5
  var v = d().RailroadAbnf.parser.LangiumParser, i = /* @__PURE__ */ n((e) => {
6
6
  const r = e.alternatives.map(g);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-BVAWgplu.cjs"),u=require("./chunk-JWPE2WC7-Bqw3GN0H.cjs"),n=require("./extractHeadings-BMNm4Zss.cjs"),i=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var p=i.createRailroadAbnfServices().RailroadAbnf.parser.LangiumParser,o=n.__name(e=>{const r=e.alternatives.map(c);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),c=n.__name(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),f=n.__name(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),d=n.__name(e=>{const r=b(e.primary);if(!e.repeat)return r;const{min:t,max:s}=f(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),b=n.__name(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return o(e.element);case"AbnfOptionalGroup":return{type:"optional",element:o(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),g=n.__name(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=n.__name(e=>{u.populateCommonDb(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(r=>a.db.addRule(g(r)))},"populateDb"),y={parse:n.__name(e=>{a.db.clear(),n.log.debug("[ABNF Parser] Starting Langium parse");const r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new i.MermaidParseError(r);const t=r.value;n.log.debug("[ABNF Parser] Parsed rules:",t.rules.length),v(t),n.log.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a.db}},_={parser:y,db:a.db,renderer:a.renderer,styles:a.getStyles};exports.diagram=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-BLSnD3t7.cjs"),u=require("./chunk-JWPE2WC7-e5NtU9tE.cjs"),n=require("./extractHeadings-UK9m7d29.cjs"),i=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var p=i.createRailroadAbnfServices().RailroadAbnf.parser.LangiumParser,o=n.__name(e=>{const r=e.alternatives.map(c);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),c=n.__name(e=>{const r=e.elements.map(d);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),f=n.__name(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),d=n.__name(e=>{const r=b(e.primary);if(!e.repeat)return r;const{min:t,max:s}=f(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),b=n.__name(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return o(e.element);case"AbnfOptionalGroup":return{type:"optional",element:o(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),g=n.__name(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),v=n.__name(e=>{u.populateCommonDb(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(r=>a.db.addRule(g(r)))},"populateDb"),y={parse:n.__name(e=>{a.db.clear(),n.log.debug("[ABNF Parser] Starting Langium parse");const r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new i.MermaidParseError(r);const t=r.value;n.log.debug("[ABNF Parser] Parsed rules:",t.rules.length),v(t),n.log.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a.db}},_={parser:y,db:a.db,renderer:a.renderer,styles:a.getStyles};exports.diagram=_;
@@ -1 +1 @@
1
- "use strict";const n=require("./extractHeadings-BMNm4Zss.cjs");function $(o){return o.innerRadius}function b(o){return o.outerRadius}function k(o){return o.startAngle}function _(o){return o.endAngle}function nn(o){return o&&o.padAngle}function en(o,x,D,P,h,v,S,s){var E=D-o,r=P-x,e=S-h,p=s-v,i=p*E-e*r;if(!(i*i<n.epsilon))return i=(e*(x-v)-p*(o-h))/i,[o+i*E,x+i*r]}function M(o,x,D,P,h,v,S){var s=o-D,E=x-P,r=(S?v:-v)/n.sqrt(s*s+E*E),e=r*E,p=-r*s,i=o+e,u=x+p,c=D+e,f=P+p,j=(i+c)/2,l=(u+f)/2,y=c-i,g=f-u,A=y*y+g*g,R=h-v,T=i*f-c*u,H=(g<0?-1:1)*n.sqrt(n.max(0,R*R*A-T*T)),I=(T*g-y*H)/A,O=(-T*y-g*H)/A,q=(T*g+y*H)/A,d=(-T*y+g*H)/A,m=I-j,a=O-l,t=q-j,z=d-l;return m*m+a*a>t*t+z*z&&(I=q,O=d),{cx:I,cy:O,x01:-e,y01:-p,x11:I*(h/R-1),y11:O*(h/R-1)}}function an(){var o=$,x=b,D=n.constant(0),P=null,h=k,v=_,S=nn,s=null,E=n.withPath(r);function r(){var e,p,i=+o.apply(this,arguments),u=+x.apply(this,arguments),c=h.apply(this,arguments)-n.halfPi,f=v.apply(this,arguments)-n.halfPi,j=n.abs(f-c),l=f>c;if(s||(s=e=E()),u<i&&(p=u,u=i,i=p),!(u>n.epsilon))s.moveTo(0,0);else if(j>n.tau-n.epsilon)s.moveTo(u*n.cos(c),u*n.sin(c)),s.arc(0,0,u,c,f,!l),i>n.epsilon&&(s.moveTo(i*n.cos(f),i*n.sin(f)),s.arc(0,0,i,f,c,l));else{var y=c,g=f,A=c,R=f,T=j,H=j,I=S.apply(this,arguments)/2,O=I>n.epsilon&&(P?+P.apply(this,arguments):n.sqrt(i*i+u*u)),q=n.min(n.abs(u-i)/2,+D.apply(this,arguments)),d=q,m=q,a,t;if(O>n.epsilon){var z=n.asin(O/i*n.sin(I)),F=n.asin(O/u*n.sin(I));(T-=z*2)>n.epsilon?(z*=l?1:-1,A+=z,R-=z):(T=0,A=R=(c+f)/2),(H-=F*2)>n.epsilon?(F*=l?1:-1,y+=F,g-=F):(H=0,y=g=(c+f)/2)}var B=u*n.cos(y),C=u*n.sin(y),G=i*n.cos(R),J=i*n.sin(R);if(q>n.epsilon){var K=u*n.cos(g),L=u*n.sin(g),N=i*n.cos(A),Q=i*n.sin(A),w;if(j<n.pi)if(w=en(B,C,N,Q,K,L,G,J)){var U=B-w[0],V=C-w[1],W=K-w[0],X=L-w[1],Y=1/n.sin(n.acos((U*W+V*X)/(n.sqrt(U*U+V*V)*n.sqrt(W*W+X*X)))/2),Z=n.sqrt(w[0]*w[0]+w[1]*w[1]);d=n.min(q,(i-Z)/(Y-1)),m=n.min(q,(u-Z)/(Y+1))}else d=m=0}H>n.epsilon?m>n.epsilon?(a=M(N,Q,B,C,u,m,l),t=M(K,L,G,J,u,m,l),s.moveTo(a.cx+a.x01,a.cy+a.y01),m<q?s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,u,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),!l),s.arc(t.cx,t.cy,m,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):(s.moveTo(B,C),s.arc(0,0,u,y,g,!l)):s.moveTo(B,C),!(i>n.epsilon)||!(T>n.epsilon)?s.lineTo(G,J):d>n.epsilon?(a=M(G,J,K,L,i,-d,l),t=M(B,C,N,Q,i,-d,l),s.lineTo(a.cx+a.x01,a.cy+a.y01),d<q?s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,i,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),l),s.arc(t.cx,t.cy,d,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):s.arc(0,0,i,R,A,l)}if(s.closePath(),e)return s=null,e+""||null}return r.centroid=function(){var e=(+o.apply(this,arguments)+ +x.apply(this,arguments))/2,p=(+h.apply(this,arguments)+ +v.apply(this,arguments))/2-n.pi/2;return[n.cos(p)*e,n.sin(p)*e]},r.innerRadius=function(e){return arguments.length?(o=typeof e=="function"?e:n.constant(+e),r):o},r.outerRadius=function(e){return arguments.length?(x=typeof e=="function"?e:n.constant(+e),r):x},r.cornerRadius=function(e){return arguments.length?(D=typeof e=="function"?e:n.constant(+e),r):D},r.padRadius=function(e){return arguments.length?(P=e==null?null:typeof e=="function"?e:n.constant(+e),r):P},r.startAngle=function(e){return arguments.length?(h=typeof e=="function"?e:n.constant(+e),r):h},r.endAngle=function(e){return arguments.length?(v=typeof e=="function"?e:n.constant(+e),r):v},r.padAngle=function(e){return arguments.length?(S=typeof e=="function"?e:n.constant(+e),r):S},r.context=function(e){return arguments.length?(s=e??null,r):s},r}exports.d3arc=an;
1
+ "use strict";const n=require("./extractHeadings-UK9m7d29.cjs");function $(o){return o.innerRadius}function b(o){return o.outerRadius}function k(o){return o.startAngle}function _(o){return o.endAngle}function nn(o){return o&&o.padAngle}function en(o,x,D,P,h,v,S,s){var E=D-o,r=P-x,e=S-h,p=s-v,i=p*E-e*r;if(!(i*i<n.epsilon))return i=(e*(x-v)-p*(o-h))/i,[o+i*E,x+i*r]}function M(o,x,D,P,h,v,S){var s=o-D,E=x-P,r=(S?v:-v)/n.sqrt(s*s+E*E),e=r*E,p=-r*s,i=o+e,u=x+p,c=D+e,f=P+p,j=(i+c)/2,l=(u+f)/2,y=c-i,g=f-u,A=y*y+g*g,R=h-v,T=i*f-c*u,H=(g<0?-1:1)*n.sqrt(n.max(0,R*R*A-T*T)),I=(T*g-y*H)/A,O=(-T*y-g*H)/A,q=(T*g+y*H)/A,d=(-T*y+g*H)/A,m=I-j,a=O-l,t=q-j,z=d-l;return m*m+a*a>t*t+z*z&&(I=q,O=d),{cx:I,cy:O,x01:-e,y01:-p,x11:I*(h/R-1),y11:O*(h/R-1)}}function an(){var o=$,x=b,D=n.constant(0),P=null,h=k,v=_,S=nn,s=null,E=n.withPath(r);function r(){var e,p,i=+o.apply(this,arguments),u=+x.apply(this,arguments),c=h.apply(this,arguments)-n.halfPi,f=v.apply(this,arguments)-n.halfPi,j=n.abs(f-c),l=f>c;if(s||(s=e=E()),u<i&&(p=u,u=i,i=p),!(u>n.epsilon))s.moveTo(0,0);else if(j>n.tau-n.epsilon)s.moveTo(u*n.cos(c),u*n.sin(c)),s.arc(0,0,u,c,f,!l),i>n.epsilon&&(s.moveTo(i*n.cos(f),i*n.sin(f)),s.arc(0,0,i,f,c,l));else{var y=c,g=f,A=c,R=f,T=j,H=j,I=S.apply(this,arguments)/2,O=I>n.epsilon&&(P?+P.apply(this,arguments):n.sqrt(i*i+u*u)),q=n.min(n.abs(u-i)/2,+D.apply(this,arguments)),d=q,m=q,a,t;if(O>n.epsilon){var z=n.asin(O/i*n.sin(I)),F=n.asin(O/u*n.sin(I));(T-=z*2)>n.epsilon?(z*=l?1:-1,A+=z,R-=z):(T=0,A=R=(c+f)/2),(H-=F*2)>n.epsilon?(F*=l?1:-1,y+=F,g-=F):(H=0,y=g=(c+f)/2)}var B=u*n.cos(y),C=u*n.sin(y),G=i*n.cos(R),J=i*n.sin(R);if(q>n.epsilon){var K=u*n.cos(g),L=u*n.sin(g),N=i*n.cos(A),Q=i*n.sin(A),w;if(j<n.pi)if(w=en(B,C,N,Q,K,L,G,J)){var U=B-w[0],V=C-w[1],W=K-w[0],X=L-w[1],Y=1/n.sin(n.acos((U*W+V*X)/(n.sqrt(U*U+V*V)*n.sqrt(W*W+X*X)))/2),Z=n.sqrt(w[0]*w[0]+w[1]*w[1]);d=n.min(q,(i-Z)/(Y-1)),m=n.min(q,(u-Z)/(Y+1))}else d=m=0}H>n.epsilon?m>n.epsilon?(a=M(N,Q,B,C,u,m,l),t=M(K,L,G,J,u,m,l),s.moveTo(a.cx+a.x01,a.cy+a.y01),m<q?s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,m,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,u,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),!l),s.arc(t.cx,t.cy,m,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):(s.moveTo(B,C),s.arc(0,0,u,y,g,!l)):s.moveTo(B,C),!(i>n.epsilon)||!(T>n.epsilon)?s.lineTo(G,J):d>n.epsilon?(a=M(G,J,K,L,i,-d,l),t=M(B,C,N,Q,i,-d,l),s.lineTo(a.cx+a.x01,a.cy+a.y01),d<q?s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(t.y01,t.x01),!l):(s.arc(a.cx,a.cy,d,n.atan2(a.y01,a.x01),n.atan2(a.y11,a.x11),!l),s.arc(0,0,i,n.atan2(a.cy+a.y11,a.cx+a.x11),n.atan2(t.cy+t.y11,t.cx+t.x11),l),s.arc(t.cx,t.cy,d,n.atan2(t.y11,t.x11),n.atan2(t.y01,t.x01),!l))):s.arc(0,0,i,R,A,l)}if(s.closePath(),e)return s=null,e+""||null}return r.centroid=function(){var e=(+o.apply(this,arguments)+ +x.apply(this,arguments))/2,p=(+h.apply(this,arguments)+ +v.apply(this,arguments))/2-n.pi/2;return[n.cos(p)*e,n.sin(p)*e]},r.innerRadius=function(e){return arguments.length?(o=typeof e=="function"?e:n.constant(+e),r):o},r.outerRadius=function(e){return arguments.length?(x=typeof e=="function"?e:n.constant(+e),r):x},r.cornerRadius=function(e){return arguments.length?(D=typeof e=="function"?e:n.constant(+e),r):D},r.padRadius=function(e){return arguments.length?(P=e==null?null:typeof e=="function"?e:n.constant(+e),r):P},r.startAngle=function(e){return arguments.length?(h=typeof e=="function"?e:n.constant(+e),r):h},r.endAngle=function(e){return arguments.length?(v=typeof e=="function"?e:n.constant(+e),r):v},r.padAngle=function(e){return arguments.length?(S=typeof e=="function"?e:n.constant(+e),r):S},r.context=function(e){return arguments.length?(s=e??null,r):s},r}exports.d3arc=an;
@@ -1,4 +1,4 @@
1
- import { aF as ln, aG as an, aH as y, aI as tn, aJ as M, aK as I, aL as _, aM as un, aN as rn, aO as j, aP as o, aQ as H, aR as sn, aS as on, aT as fn } from "./extractHeadings-OhPxZ04C.js";
1
+ import { aF as ln, aG as an, aH as y, aI as tn, aJ as M, aK as I, aL as _, aM as un, aN as rn, aO as j, aP as o, aQ as H, aR as sn, aS as on, aT as fn } from "./extractHeadings-Boz4pTVy.js";
2
2
  function cn(l) {
3
3
  return l.innerRadius;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { p as Ze } from "./chunk-JWPE2WC7-COh8RdRz.js";
2
- import { bN as qe, _ as gt, an as Qe, aD as Je, U as Fe, O as Ke, K as je, a8 as _e, a9 as tr, J as er, G as rr, ae as ir, ak as ar, ai as nr, al as or, Q as Ee, bG as Te, aZ as pe, Y as sr, R as hr, ad as lr, a_ as fr, bO as cr } from "./extractHeadings-OhPxZ04C.js";
1
+ import { p as Ze } from "./chunk-JWPE2WC7-DdePg2tx.js";
2
+ import { bN as qe, _ as gt, an as Qe, aD as Je, U as Fe, O as Ke, K as je, a8 as _e, a9 as tr, J as er, G as rr, ae as ir, ak as ar, ai as nr, al as or, Q as Ee, bG as Te, aZ as pe, Y as sr, R as hr, ad as lr, a_ as fr, bO as cr } from "./extractHeadings-Boz4pTVy.js";
3
3
  import { p as gr } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
4
4
  import { c as be } from "./cytoscape.esm-kVAWcYoG.js";
5
5
  var he = { exports: {} }, le = { exports: {} }, fe = { exports: {} }, ur = fe.exports, Oe;