@toimc/markdown 0.0.1 → 0.0.2

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 (237) hide show
  1. package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
  2. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  3. package/dist/components/LatexBlock.vue.d.ts.map +1 -0
  4. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  5. package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
  6. package/dist/composables/useMarkdownIt.d.ts.map +1 -1
  7. package/dist/index.cjs +62 -59
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.mjs +4536 -4331
  11. package/dist/markdown.css +1 -1
  12. package/dist/utils/formula-guard.d.ts +13 -0
  13. package/dist/utils/formula-guard.d.ts.map +1 -0
  14. package/dist/utils/split-lines.d.ts +10 -0
  15. package/dist/utils/split-lines.d.ts.map +1 -0
  16. package/package.json +6 -3
  17. package/dist/CodeBlock.test.d.ts +0 -2
  18. package/dist/CodeBlock.test.d.ts.map +0 -1
  19. package/dist/CodeBlock.vue.d.ts.map +0 -1
  20. package/dist/LatexBlock.test.d.ts +0 -2
  21. package/dist/LatexBlock.test.d.ts.map +0 -1
  22. package/dist/LatexBlock.vue.d.ts.map +0 -1
  23. package/dist/MarkdownRenderer.test.d.ts +0 -2
  24. package/dist/MarkdownRenderer.test.d.ts.map +0 -1
  25. package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
  26. package/dist/MermaidBlock.test.d.ts +0 -2
  27. package/dist/MermaidBlock.test.d.ts.map +0 -1
  28. package/dist/MermaidBlock.vue.d.ts.map +0 -1
  29. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
  30. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
  31. package/dist/arc-CFxpoaLu.js +0 -82
  32. package/dist/arc-Dh2Zrypi.cjs +0 -1
  33. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
  34. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
  35. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
  36. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
  37. package/dist/array-CApNbSU9.js +0 -6
  38. package/dist/array-DZSRzHA_.cjs +0 -1
  39. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
  40. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
  41. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
  42. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
  43. package/dist/channel-CNZiSge7.cjs +0 -1
  44. package/dist/channel-CqlbSsMQ.js +0 -5
  45. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
  46. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
  47. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  48. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
  49. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
  50. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
  51. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
  52. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
  53. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
  54. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  55. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
  56. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
  57. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
  58. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  59. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
  60. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
  61. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
  62. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
  63. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
  64. package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
  65. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
  66. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
  67. package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
  68. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  69. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
  70. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
  71. package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
  72. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
  73. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
  74. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
  75. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
  76. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
  77. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
  78. package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
  79. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
  80. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
  81. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
  82. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
  83. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
  84. package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
  85. package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
  86. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
  87. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  88. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
  89. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
  90. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
  91. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
  92. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
  93. package/dist/composables/useHighlighter.test.d.ts +0 -2
  94. package/dist/composables/useHighlighter.test.d.ts.map +0 -1
  95. package/dist/composables/useMarkdownIt.test.d.ts +0 -2
  96. package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
  97. package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
  98. package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
  99. package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
  100. package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
  101. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
  102. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
  103. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
  104. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
  105. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
  106. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
  107. package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
  108. package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
  109. package/dist/dagre-DarAkhy1.cjs +0 -1
  110. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
  111. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
  112. package/dist/dagre-x4cMb6gU.js +0 -1699
  113. package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
  114. package/dist/defaultLocale-yzzuPw6P.js +0 -198
  115. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
  116. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
  117. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
  118. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
  119. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
  120. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
  121. package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
  122. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
  123. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
  124. package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
  125. package/dist/dist-BP2me-br.js +0 -59
  126. package/dist/dist-Dwv2VYAL.cjs +0 -1
  127. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
  128. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
  129. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
  130. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
  131. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
  132. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
  133. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
  134. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
  135. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
  136. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
  137. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
  138. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
  139. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
  140. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
  141. package/dist/graphlib-BaETKKSa.cjs +0 -1
  142. package/dist/graphlib-DoD0LnUK.js +0 -1267
  143. package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
  144. package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
  145. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
  146. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
  147. package/dist/init-BJdqMO10.cjs +0 -1
  148. package/dist/init-sjaVZO3f.js +0 -13
  149. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
  150. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
  151. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
  152. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
  153. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
  154. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
  155. package/dist/katex-BfeHGk4M.js +0 -21977
  156. package/dist/katex-CEF6MvLx.cjs +0 -257
  157. package/dist/line-8EHPtDZA.cjs +0 -1
  158. package/dist/line-BifI9Y7j.js +0 -34
  159. package/dist/linear-Nt9BuHfn.cjs +0 -1
  160. package/dist/linear-l8AD1ib_.js +0 -288
  161. package/dist/map-CCpPjiU9.cjs +0 -1
  162. package/dist/map-DUk1uXZC.js +0 -241
  163. package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
  164. package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
  165. package/dist/mermaid.core-C05C5gh_.cjs +0 -41
  166. package/dist/mermaid.core-CxM-VhZd.js +0 -2297
  167. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
  168. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
  169. package/dist/ordinal-Bm_chml2.cjs +0 -1
  170. package/dist/ordinal-CNQzPcrr.js +0 -65
  171. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
  172. package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
  173. package/dist/path-DIS6ck99.cjs +0 -1
  174. package/dist/path-DVvH25eQ.js +0 -84
  175. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
  176. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
  177. package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
  178. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
  179. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
  180. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
  181. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
  182. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
  183. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
  184. package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
  185. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
  186. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
  187. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
  188. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
  189. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
  190. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
  191. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
  192. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
  193. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
  194. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
  195. package/dist/renderers/tokensToHtml.test.d.ts +0 -2
  196. package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
  197. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
  198. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
  199. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
  200. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  201. package/dist/rough.esm-B2w_aYoc.js +0 -1361
  202. package/dist/rough.esm-ChRLLRha.cjs +0 -1
  203. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
  204. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
  205. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
  206. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
  207. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
  208. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
  209. package/dist/src-C7bjHtAI.js +0 -2139
  210. package/dist/src-D9o9TOtH.cjs +0 -1
  211. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
  212. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
  213. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
  214. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
  215. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
  216. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
  217. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
  218. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
  219. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
  220. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
  221. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
  222. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
  223. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
  224. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
  225. package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
  226. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
  227. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
  228. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
  229. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
  230. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
  231. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
  232. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
  233. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
  234. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
  235. /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
  236. /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
  237. /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
package/dist/markdown.css CHANGED
@@ -1,2 +1,2 @@
1
- @layer ai-chat-components{.ai-chat-code-block{background:var(--ai-chat-color-code-bg,#1a1a1a);border:1px solid var(--ai-chat-color-border,#2e2e2e);border-radius:var(--ai-chat-radius-md,8px);margin:12px 0;position:relative;overflow:hidden}.ai-chat-code-block .ai-chat-code-block__header{letter-spacing:.5px;text-transform:uppercase;color:var(--ai-chat-color-text-muted,#9ca3af);background:var(--ai-chat-color-code-header-bg,#242427);border-bottom:1px solid var(--ai-chat-color-border,#2e2e2e);align-items:center;padding:6px 8px 6px 12px;font-size:12px;line-height:1;display:flex}.ai-chat-code-block .ai-chat-code-block__copy{width:24px;height:24px;color:var(--ai-chat-color-text-muted,#9ca3af);cursor:pointer;transition:background var(--ai-chat-duration-fast,.12s), color var(--ai-chat-duration-fast,.12s);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;margin-left:auto;padding:0;display:inline-flex}.ai-chat-code-block .ai-chat-code-block__copy:hover{background:var(--ai-chat-hover-neutral,#80808026);color:var(--ai-chat-color-text-primary,#fafafa)}.ai-chat-code-block .ai-chat-code-block__copy:focus-visible{outline:2px solid var(--ai-chat-color-accent,#6366f1);outline-offset:1px}.ai-chat-code-block .ai-chat-code-block__copy.is-copied{color:var(--ai-chat-color-accent,#6366f1)}.ai-chat-code-block .ai-chat-code-block__pre{font-family:var(--ai-chat-font-mono,"SF Mono", "Fira Code", "Consolas", monospace);color:var(--ai-chat-color-text-primary,#fafafa);background:0 0;border:none;border-radius:0;margin:0;padding:12px 16px;font-size:13px;line-height:1.6;overflow-x:auto}.ai-chat-code-block .ai-chat-code-block__code span{color:var(--shiki-dark,var(--shiki-light,inherit))}[data-theme=light] .ai-chat-code-block .ai-chat-code-block__code span{color:var(--shiki-light,var(--shiki-dark,inherit))}.ai-chat-mermaid{text-align:center;margin:12px 0}.ai-chat-mermaid__frame{border:none;width:100%;min-height:120px}.ai-chat-mermaid__loading,.ai-chat-mermaid__error{color:var(--ai-chat-color-text-secondary,#9ca3af);background:var(--ai-chat-color-code-bg,#f6f8fa);border-radius:8px;padding:16px}.ai-chat-latex{font-family:Cambria Math,Latin Modern Math,serif;font-style:italic}.ai-chat-latex--display{text-align:center;margin:12px 0;font-size:1.1em;display:block}}.ai-chat-markdown[data-v-a2de8291]{word-wrap:break-word;font-size:14px;line-height:1.7}.ai-chat-markdown[data-v-a2de8291] h1,.ai-chat-markdown[data-v-a2de8291] h2,.ai-chat-markdown[data-v-a2de8291] h3{margin:16px 0 8px}.ai-chat-markdown[data-v-a2de8291] pre{background:var(--ai-chat-color-code-bg,#1e1e2e);color:var(--ai-chat-code-color,#cdd6f4);border-radius:6px;margin:8px 0;padding:12px 16px;overflow-x:auto}.ai-chat-markdown[data-v-a2de8291] code{font-family:var(--ai-chat-font-mono,"Menlo", "Monaco", "Courier New", monospace);font-size:13px}.ai-chat-markdown[data-v-a2de8291] :not(pre)>code{background:var(--ai-chat-inline-code-bg,#f1f5f9);border-radius:4px;padding:2px 6px;font-size:.9em}.ai-chat-markdown[data-v-a2de8291] strong{font-weight:600}.ai-chat-markdown[data-v-a2de8291] p{margin:8px 0}.ai-chat-markdown[data-v-a2de8291] p:first-child{margin-top:0}.ai-chat-markdown[data-v-a2de8291] p:last-child{margin-bottom:0}.ai-chat-markdown[data-v-a2de8291] h1{font-size:1.5em;font-weight:600}.ai-chat-markdown[data-v-a2de8291] h2{font-size:1.3em;font-weight:600}.ai-chat-markdown[data-v-a2de8291] h3{font-size:1.12em;font-weight:600}.ai-chat-markdown[data-v-a2de8291] ul,.ai-chat-markdown[data-v-a2de8291] ol{margin:8px 0;padding-left:22px}.ai-chat-markdown[data-v-a2de8291] ul{list-style:outside}.ai-chat-markdown[data-v-a2de8291] ol{list-style:decimal}.ai-chat-markdown[data-v-a2de8291] li{margin:3px 0}.ai-chat-markdown[data-v-a2de8291] li::marker{color:var(--ai-chat-color-text-muted,#71717a)}.ai-chat-markdown[data-v-a2de8291] li>ul,.ai-chat-markdown[data-v-a2de8291] li>ol{margin:3px 0 0}.ai-chat-markdown[data-v-a2de8291] blockquote{border-left:3px solid var(--ai-chat-color-border,#2e2e2e);background:var(--ai-chat-hover-neutral,#80808014);color:var(--ai-chat-color-text-secondary,#a1a1aa);margin:10px 0;padding:4px 14px}.ai-chat-markdown[data-v-a2de8291] blockquote p{margin:4px 0}.ai-chat-markdown[data-v-a2de8291] table{border-collapse:collapse;width:100%;margin:10px 0;font-size:13px;display:block;overflow-x:auto}.ai-chat-markdown[data-v-a2de8291] th,.ai-chat-markdown[data-v-a2de8291] td{border:1px solid var(--ai-chat-color-border,#2e2e2e);text-align:left;white-space:normal;padding:8px 12px}.ai-chat-markdown[data-v-a2de8291] th{background:#8080801f;font-weight:600}.ai-chat-markdown[data-v-a2de8291] tr:nth-child(2n) td{background:#8080800f}.ai-chat-markdown[data-v-a2de8291] a{color:var(--ai-chat-color-accent,#6366f1);text-decoration:none}.ai-chat-markdown[data-v-a2de8291] a:hover{text-decoration:underline}
1
+ @layer ai-chat-components{.ai-chat-code-block{background:var(--ai-chat-color-code-bg,#1a1a1a);border:1px solid var(--ai-chat-color-border,#2e2e2e);border-radius:var(--ai-chat-radius-md,8px);margin:12px 0;position:relative;overflow:hidden}.ai-chat-code-block .ai-chat-code-block__header{letter-spacing:.5px;text-transform:uppercase;color:var(--ai-chat-color-text-muted,#9ca3af);background:var(--ai-chat-color-code-header-bg,#242427);border-bottom:1px solid var(--ai-chat-color-border,#2e2e2e);align-items:center;padding:6px 8px 6px 12px;font-size:12px;line-height:1;display:flex}.ai-chat-code-block .ai-chat-code-block__copy{width:24px;height:24px;color:var(--ai-chat-color-text-muted,#9ca3af);cursor:pointer;transition:background var(--ai-chat-duration-fast,.12s), color var(--ai-chat-duration-fast,.12s);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;margin-left:auto;padding:0;display:inline-flex}.ai-chat-code-block .ai-chat-code-block__copy:hover{background:var(--ai-chat-hover-neutral,#80808026);color:var(--ai-chat-color-text-primary,#fafafa)}.ai-chat-code-block .ai-chat-code-block__copy:focus-visible{outline:2px solid var(--ai-chat-color-accent,#6366f1);outline-offset:1px}.ai-chat-code-block .ai-chat-code-block__copy.is-copied{color:var(--ai-chat-color-accent,#6366f1)}.ai-chat-code-block .ai-chat-code-block__pre{font-family:var(--ai-chat-font-mono,"SF Mono", "Fira Code", "Consolas", monospace);color:var(--ai-chat-color-text-primary,#fafafa);background:0 0;border:none;border-radius:0;margin:0;padding:12px 16px;font-size:13px;line-height:1.6;overflow-x:auto}.ai-chat-code-block .ai-chat-code-block__code span{color:var(--shiki-dark,var(--shiki-light,inherit))}[data-theme=light] .ai-chat-code-block .ai-chat-code-block__code span{color:var(--shiki-light,var(--shiki-dark,inherit))}.ai-chat-code-block .ai-chat-code-block__line{align-items:baseline;display:flex}.ai-chat-code-block .ai-chat-code-block__ln{text-align:right;-webkit-user-select:none;user-select:none;background:var(--ai-chat-color-code-bg,#1a1a1a);width:3ch;color:var(--ai-chat-color-text-muted,#9ca3af);flex:none;padding-right:16px;position:sticky;left:0}.ai-chat-code-block .ai-chat-code-block__lc{white-space:pre}.ai-chat-code-block .ai-chat-code-block__toggle-row{justify-content:center;padding:2px 0 6px;display:flex}.ai-chat-code-block .ai-chat-code-block__toggle{color:var(--ai-chat-color-text-muted,#9ca3af);cursor:pointer;transition:background var(--ai-chat-duration-fast,.12s), color var(--ai-chat-duration-fast,.12s);background:0 0;border:none;border-radius:999px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;line-height:1;display:inline-flex}.ai-chat-code-block .ai-chat-code-block__toggle:hover{background:var(--ai-chat-hover-neutral,#80808026);color:var(--ai-chat-color-text-primary,#fafafa)}.ai-chat-code-block .ai-chat-code-block__toggle:focus-visible{outline:2px solid var(--ai-chat-color-accent,#6366f1);outline-offset:1px}.ai-chat-code-block .ai-chat-code-block__toggle svg{transition:transform var(--ai-chat-duration-fast,.12s)}.ai-chat-code-block .ai-chat-code-block__toggle svg.is-open{transform:rotate(180deg)}.ai-chat-code-block.is-collapsed .ai-chat-code-block__pre{-webkit-mask-image:linear-gradient(#000 65%,#0000);mask-image:linear-gradient(#000 65%,#0000)}.ai-chat-mermaid{text-align:center;margin:12px 0}.ai-chat-mermaid__frame{border:none;width:100%;min-height:120px}.ai-chat-mermaid__loading,.ai-chat-mermaid__error{color:var(--ai-chat-color-text-secondary,#9ca3af);background:var(--ai-chat-color-code-bg,#f6f8fa);border-radius:8px;padding:16px}.ai-chat-latex{font-family:Cambria Math,Latin Modern Math,serif;font-style:italic}.ai-chat-latex--display{text-align:center;margin:12px 0;font-size:1.1em;display:block}}.ai-chat-markdown[data-v-6ddb13ef]{word-wrap:break-word;font-size:14px;line-height:1.7}.ai-chat-markdown.is-streaming[data-v-6ddb13ef]>:last-child:after{content:"";vertical-align:text-bottom;background:var(--ai-chat-color-accent,#6366f1);border-radius:1px;width:3px;height:.95em;margin-left:2px;animation:1.1s ease-in-out infinite ai-chat-caret-breathe-6ddb13ef;display:inline-block}@keyframes ai-chat-caret-breathe-6ddb13ef{0%,to{opacity:1}50%{opacity:.25}}.ai-chat-markdown[data-v-6ddb13ef] h1,.ai-chat-markdown[data-v-6ddb13ef] h2,.ai-chat-markdown[data-v-6ddb13ef] h3{margin:16px 0 8px}.ai-chat-markdown[data-v-6ddb13ef] pre{background:var(--ai-chat-color-code-bg,#1e1e2e);color:var(--ai-chat-code-color,#cdd6f4);border-radius:6px;margin:8px 0;padding:12px 16px;overflow-x:auto}.ai-chat-markdown[data-v-6ddb13ef] code{font-family:var(--ai-chat-font-mono,"Menlo", "Monaco", "Courier New", monospace);font-size:13px}.ai-chat-markdown[data-v-6ddb13ef] :not(pre)>code{background:var(--ai-chat-inline-code-bg,#f1f5f9);border-radius:4px;padding:2px 6px;font-size:.9em}.ai-chat-markdown[data-v-6ddb13ef] strong{font-weight:600}.ai-chat-markdown[data-v-6ddb13ef] p{margin:8px 0}.ai-chat-markdown[data-v-6ddb13ef] p:first-child{margin-top:0}.ai-chat-markdown[data-v-6ddb13ef] p:last-child{margin-bottom:0}.ai-chat-markdown[data-v-6ddb13ef] h1{font-size:1.5em;font-weight:600}.ai-chat-markdown[data-v-6ddb13ef] h2{font-size:1.3em;font-weight:600}.ai-chat-markdown[data-v-6ddb13ef] h3{font-size:1.12em;font-weight:600}.ai-chat-markdown[data-v-6ddb13ef] ul,.ai-chat-markdown[data-v-6ddb13ef] ol{margin:8px 0;padding-left:22px}.ai-chat-markdown[data-v-6ddb13ef] ul{list-style:outside}.ai-chat-markdown[data-v-6ddb13ef] ol{list-style:decimal}.ai-chat-markdown[data-v-6ddb13ef] li{margin:3px 0}.ai-chat-markdown[data-v-6ddb13ef] li::marker{color:var(--ai-chat-color-text-muted,#71717a)}.ai-chat-markdown[data-v-6ddb13ef] li>ul,.ai-chat-markdown[data-v-6ddb13ef] li>ol{margin:3px 0 0}.ai-chat-markdown[data-v-6ddb13ef] blockquote{border-left:3px solid var(--ai-chat-color-border,#2e2e2e);background:var(--ai-chat-hover-neutral,#80808014);color:var(--ai-chat-color-text-secondary,#a1a1aa);margin:10px 0;padding:4px 14px}.ai-chat-markdown[data-v-6ddb13ef] blockquote p{margin:4px 0}.ai-chat-markdown[data-v-6ddb13ef] table{border-collapse:collapse;width:100%;margin:10px 0;font-size:13px;display:block;overflow-x:auto}.ai-chat-markdown[data-v-6ddb13ef] th,.ai-chat-markdown[data-v-6ddb13ef] td{border:1px solid var(--ai-chat-color-border,#2e2e2e);text-align:left;white-space:normal;padding:8px 12px}.ai-chat-markdown[data-v-6ddb13ef] th{background:#8080801f;font-weight:600}.ai-chat-markdown[data-v-6ddb13ef] tr:nth-child(2n) td{background:#8080800f}.ai-chat-markdown[data-v-6ddb13ef] a{color:var(--ai-chat-color-accent,#6366f1);text-decoration:none}.ai-chat-markdown[data-v-6ddb13ef] a:hover{text-decoration:underline}
2
2
  /*$vite$:1*/
@@ -0,0 +1,13 @@
1
+ /**
2
+ * LLM 畸形公式预处理(markdown-it 渲染前):
3
+ * 1. 多行 $$ 块被段落吸收撕碎 → 重新聚合为前后空行隔离的完整块(math_block 整块消费)
4
+ * 2. 公式行下的 --- / === 被 Setext 误判为标题 → 块隔离后随公式体整块进入 math_block
5
+ * 3. 行内 $ 与货币金额误判 → 上下文启发式排除(数字紧邻 + CJK/行尾等货币边界,转义为 \$)
6
+ * 4. 未闭合 $$ 的容错(所在段落末尾补齐闭合符,保证渲染不吞后续正文)
7
+ *
8
+ * 纯函数零依赖。与 extractCompleteMarkdown 职责区分:那是流式完整性提取(截断未闭合尾巴),
9
+ * 这是公式容错;管线串联顺序 = extractCompleteMarkdown → guardMathBlocks → markdown-it。
10
+ * 代码 fence(```/~~~)内的内容一律不动;引用/列表上下文中的多行公式不做块隔离(交由行内规则)。
11
+ */
12
+ export declare function guardMathBlocks(md: string): string;
13
+ //# sourceMappingURL=formula-guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formula-guard.d.ts","sourceRoot":"","sources":["../../src/utils/formula-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA8JH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CA2GlD"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 高亮 HTML 按行拆分:跨多行的 token span 在行尾闭合、下一行重开,
3
+ * 保证每行是完整 HTML(行号渲染与折叠的前提)。纯函数。
4
+ *
5
+ * 算法源自 toimc-sub2api CodeWindow 的 splitHighlightedLines,并修正其
6
+ * 行首闭合标签未抵消跨行栈的问题(原实现行内 `</span>` 只 pop 本行新开
7
+ * 的栈,闭合的是上一行遗留 span 时会多补一个闭合标签)。
8
+ */
9
+ export declare function splitHighlightedLines(html: string): string[];
10
+ //# sourceMappingURL=split-lines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-lines.d.ts","sourceRoot":"","sources":["../../src/utils/split-lines.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAqB5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toimc/markdown",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -24,8 +24,8 @@
24
24
  "markdown-it-task-lists": "^2.1.1",
25
25
  "markdown-it-texmath": "^1.0.0",
26
26
  "shiki": "^4.4.3",
27
- "@toimc/core": "0.0.1",
28
- "@toimc/vue": "0.0.1"
27
+ "@toimc/core": "0.0.2",
28
+ "@toimc/vue": "0.0.2"
29
29
  },
30
30
  "optionalDependencies": {
31
31
  "mermaid": "^11.16.1"
@@ -44,6 +44,9 @@
44
44
  "vue": "^3.5.41",
45
45
  "vue-tsc": "^3.3.9"
46
46
  },
47
+ "sideEffects": [
48
+ "*.css"
49
+ ],
47
50
  "scripts": {
48
51
  "build": "vite build",
49
52
  "test": "vitest run"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=CodeBlock.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeBlock.test.d.ts","sourceRoot":"","sources":["../src/CodeBlock.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeBlock.vue.d.ts","sourceRoot":"","sources":["../src/CodeBlock.vue"],"names":[],"mappings":"AAyNA,KAAK,WAAW,GAAG;IACjB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uDAAuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AAkJF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=LatexBlock.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LatexBlock.test.d.ts","sourceRoot":"","sources":["../src/LatexBlock.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"LatexBlock.vue.d.ts","sourceRoot":"","sources":["../src/LatexBlock.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AA6DF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=MarkdownRenderer.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownRenderer.test.d.ts","sourceRoot":"","sources":["../src/MarkdownRenderer.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MarkdownRenderer.vue.d.ts","sourceRoot":"","sources":["../src/MarkdownRenderer.vue"],"names":[],"mappings":"AAoOA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;AA6HF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=MermaidBlock.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MermaidBlock.test.d.ts","sourceRoot":"","sources":["../src/MermaidBlock.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"MermaidBlock.vue.d.ts","sourceRoot":"","sources":["../src/MermaidBlock.vue"],"names":[],"mappings":"AAsGA,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AA4GpC,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +0,0 @@
1
- const e=require("./mermaid-parser.core-aXxW1VLR.cjs"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),n=require("./src-D9o9TOtH.cjs");require("./chunk-I66GZJ75-D8wVRUgw.cjs");const r=require("./chunk-6Q2QTUOP-UC-G8b3B.cjs"),i=require("./chunk-JWPE2WC7-Cs1kjq8S.cjs");require("./mermaid.core-C05C5gh_.cjs");var a=e.m().RailroadAbnf.parser.LangiumParser,o=t.n(e=>{let t=e.alternatives.map(s);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),s=t.n(e=>{let t=e.elements.map(l);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),c=t.n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),l=t.n(e=>{let t=u(e.primary);if(!e.repeat)return t;let{min:n,max:r}=c(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),u=t.n(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 Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),d=t.n(e=>({name:e.name,definition:o(e.definition)}),`transformRule`),f=t.n(e=>{i.t(e,r.t),e.title&&r.t.setTitle(e.title),e.rules.map(e=>r.t.addRule(d(e)))},`populateDb`),p={parser:{parse:t.n(t=>{r.t.clear(),n.m.debug(`[ABNF Parser] Starting Langium parse`);let i=a.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0)throw new e.t(i);let o=i.value;n.m.debug(`[ABNF Parser] Parsed rules:`,o.rules.length),f(o),n.m.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:r.t}},db:r.t,renderer:r.r,styles:r.n};exports.diagram=p;
@@ -1,89 +0,0 @@
1
- import { m as e, t } from "./mermaid-parser.core-BupC9XGF.js";
2
- import { n } from "./chunk-Y2CYZVJY-DO9UHHon.js";
3
- import { m as r } from "./src-C7bjHtAI.js";
4
- import "./chunk-I66GZJ75-xmbkwRyp.js";
5
- import { n as i, r as a, t as o } from "./chunk-6Q2QTUOP-C0P-wtth.js";
6
- import { t as s } from "./chunk-JWPE2WC7-B8JIODrM.js";
7
- import "./mermaid.core-CxM-VhZd.js";
8
- //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-N423BO3Z.mjs
9
- var c = e().RailroadAbnf.parser.LangiumParser, l = /* @__PURE__ */ n((e) => {
10
- let t = e.alternatives.map(u);
11
- return t.length === 1 ? t[0] : {
12
- type: "choice",
13
- alternatives: t
14
- };
15
- }, "transformAlternation"), u = /* @__PURE__ */ n((e) => {
16
- let t = e.elements.map(f);
17
- return t.length === 1 ? t[0] : {
18
- type: "sequence",
19
- elements: t
20
- };
21
- }, "transformConcatenation"), d = /* @__PURE__ */ n((e) => {
22
- if (e.includes("*")) {
23
- let [t, n] = e.split("*");
24
- return {
25
- min: t ? parseInt(t, 10) : 0,
26
- max: n ? parseInt(n, 10) : Infinity
27
- };
28
- }
29
- let t = parseInt(e, 10);
30
- return {
31
- min: t,
32
- max: t
33
- };
34
- }, "parseRepeat"), f = /* @__PURE__ */ n((e) => {
35
- let t = p(e.primary);
36
- if (!e.repeat) return t;
37
- let { min: n, max: r } = d(e.repeat);
38
- return n === 0 && r === 1 ? {
39
- type: "optional",
40
- element: t
41
- } : {
42
- type: "repetition",
43
- element: t,
44
- min: n,
45
- max: r
46
- };
47
- }, "transformElement"), p = /* @__PURE__ */ n((e) => {
48
- switch (e.$type) {
49
- case "AbnfStringLiteral": return {
50
- type: "terminal",
51
- value: e.value
52
- };
53
- case "AbnfNumVal": return {
54
- type: "terminal",
55
- value: e.value
56
- };
57
- case "AbnfRuleName": return {
58
- type: "nonterminal",
59
- name: e.name
60
- };
61
- case "AbnfGroup": return l(e.element);
62
- case "AbnfOptionalGroup": return {
63
- type: "optional",
64
- element: l(e.element)
65
- };
66
- default: throw Error(`Unsupported ABNF primary node: ${e.$type}`);
67
- }
68
- }, "transformPrimary"), m = /* @__PURE__ */ n((e) => ({
69
- name: e.name,
70
- definition: l(e.definition)
71
- }), "transformRule"), h = /* @__PURE__ */ n((e) => {
72
- s(e, o), e.title && o.setTitle(e.title), e.rules.map((e) => o.addRule(m(e)));
73
- }, "populateDb"), g = {
74
- parser: {
75
- parse: /* @__PURE__ */ n((e) => {
76
- o.clear(), r.debug("[ABNF Parser] Starting Langium parse");
77
- let n = c.parse(e);
78
- if (n.lexerErrors.length > 0 || n.parserErrors.length > 0) throw new t(n);
79
- let i = n.value;
80
- r.debug("[ABNF Parser] Parsed rules:", i.rules.length), h(i), r.debug("[ABNF Parser] Parse complete");
81
- }, "parse"),
82
- parser: { yy: o }
83
- },
84
- db: o,
85
- renderer: a,
86
- styles: i
87
- };
88
- //#endregion
89
- export { g as diagram };
@@ -1,82 +0,0 @@
1
- import { n as e, t } from "./path-DVvH25eQ.js";
2
- import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, u as p } from "./dist-BP2me-br.js";
3
- //#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.js
4
- function m(e) {
5
- return e.innerRadius;
6
- }
7
- function h(e) {
8
- return e.outerRadius;
9
- }
10
- function g(e) {
11
- return e.startAngle;
12
- }
13
- function _(e) {
14
- return e.endAngle;
15
- }
16
- function v(e) {
17
- return e && e.padAngle;
18
- }
19
- function y(e, t, n, r, i, a, o, s) {
20
- var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
21
- if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
22
- }
23
- function b(e, t, n, r, i, a, o) {
24
- var c = e - n, l = t - r, u = (o ? a : -a) / d(c * c + l * l), f = u * l, p = -u * c, m = e + f, h = t + p, g = n + f, _ = r + p, v = (m + g) / 2, y = (h + _) / 2, b = g - m, x = _ - h, S = b * b + x * x, C = i - a, w = m * _ - g * h, T = (x < 0 ? -1 : 1) * d(s(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - v, j = D - y, M = O - v, N = k - y;
25
- return A * A + j * j > M * M + N * N && (E = O, D = k), {
26
- cx: E,
27
- cy: D,
28
- x01: -f,
29
- y01: -p,
30
- x11: E * (i / C - 1),
31
- y11: D * (i / C - 1)
32
- };
33
- }
34
- function x() {
35
- var s = m, x = h, S = e(0), C = null, w = g, T = _, E = v, D = null, O = t(k);
36
- function k() {
37
- var e, t, m = +s.apply(this, arguments), h = +x.apply(this, arguments), g = w.apply(this, arguments) - r, _ = T.apply(this, arguments) - r, v = l(_ - g), k = _ > g;
38
- if (D ||= e = O(), h < m && (t = h, h = m, m = t), !(h > 1e-12)) D.moveTo(0, 0);
39
- else if (v > c - 1e-12) D.moveTo(h * u(g), h * a(g)), D.arc(0, 0, h, g, _, !k), m > 1e-12 && (D.moveTo(m * u(_), m * a(_)), D.arc(0, 0, m, _, g, k));
40
- else {
41
- var A = g, j = _, M = g, N = _, P = v, F = v, I = E.apply(this, arguments) / 2, L = I > 1e-12 && (C ? +C.apply(this, arguments) : d(m * m + h * h)), R = p(l(h - m) / 2, +S.apply(this, arguments)), z = R, B = R, V, H;
42
- if (L > 1e-12) {
43
- var U = o(L / m * a(I)), W = o(L / h * a(I));
44
- (P -= U * 2) > 1e-12 ? (U *= k ? 1 : -1, M += U, N -= U) : (P = 0, M = N = (g + _) / 2), (F -= W * 2) > 1e-12 ? (W *= k ? 1 : -1, A += W, j -= W) : (F = 0, A = j = (g + _) / 2);
45
- }
46
- var G = h * u(A), K = h * a(A), q = m * u(N), J = m * a(N);
47
- if (R > 1e-12) {
48
- var Y = h * u(j), X = h * a(j), Z = m * u(M), Q = m * a(M), $;
49
- if (v < i) {
50
- if ($ = y(G, K, Z, Q, Y, X, q, J)) {
51
- var ee = G - $[0], te = K - $[1], ne = Y - $[0], re = X - $[1], ie = 1 / a(f((ee * ne + te * re) / (d(ee * ee + te * te) * d(ne * ne + re * re))) / 2), ae = d($[0] * $[0] + $[1] * $[1]);
52
- z = p(R, (m - ae) / (ie - 1)), B = p(R, (h - ae) / (ie + 1));
53
- } else z = B = 0;
54
- }
55
- }
56
- F > 1e-12 ? B > 1e-12 ? (V = b(Z, Q, G, K, h, B, k), H = b(Y, X, q, J, h, B, k), D.moveTo(V.cx + V.x01, V.cy + V.y01), B < R ? D.arc(V.cx, V.cy, B, n(V.y01, V.x01), n(H.y01, H.x01), !k) : (D.arc(V.cx, V.cy, B, n(V.y01, V.x01), n(V.y11, V.x11), !k), D.arc(0, 0, h, n(V.cy + V.y11, V.cx + V.x11), n(H.cy + H.y11, H.cx + H.x11), !k), D.arc(H.cx, H.cy, B, n(H.y11, H.x11), n(H.y01, H.x01), !k))) : (D.moveTo(G, K), D.arc(0, 0, h, A, j, !k)) : D.moveTo(G, K), !(m > 1e-12) || !(P > 1e-12) ? D.lineTo(q, J) : z > 1e-12 ? (V = b(q, J, Y, X, m, -z, k), H = b(G, K, Z, Q, m, -z, k), D.lineTo(V.cx + V.x01, V.cy + V.y01), z < R ? D.arc(V.cx, V.cy, z, n(V.y01, V.x01), n(H.y01, H.x01), !k) : (D.arc(V.cx, V.cy, z, n(V.y01, V.x01), n(V.y11, V.x11), !k), D.arc(0, 0, m, n(V.cy + V.y11, V.cx + V.x11), n(H.cy + H.y11, H.cx + H.x11), k), D.arc(H.cx, H.cy, z, n(H.y11, H.x11), n(H.y01, H.x01), !k))) : D.arc(0, 0, m, N, M, k);
57
- }
58
- if (D.closePath(), e) return D = null, e + "" || null;
59
- }
60
- return k.centroid = function() {
61
- var e = (+s.apply(this, arguments) + +x.apply(this, arguments)) / 2, t = (+w.apply(this, arguments) + +T.apply(this, arguments)) / 2 - i / 2;
62
- return [u(t) * e, a(t) * e];
63
- }, k.innerRadius = function(t) {
64
- return arguments.length ? (s = typeof t == "function" ? t : e(+t), k) : s;
65
- }, k.outerRadius = function(t) {
66
- return arguments.length ? (x = typeof t == "function" ? t : e(+t), k) : x;
67
- }, k.cornerRadius = function(t) {
68
- return arguments.length ? (S = typeof t == "function" ? t : e(+t), k) : S;
69
- }, k.padRadius = function(t) {
70
- return arguments.length ? (C = t == null ? null : typeof t == "function" ? t : e(+t), k) : C;
71
- }, k.startAngle = function(t) {
72
- return arguments.length ? (w = typeof t == "function" ? t : e(+t), k) : w;
73
- }, k.endAngle = function(t) {
74
- return arguments.length ? (T = typeof t == "function" ? t : e(+t), k) : T;
75
- }, k.padAngle = function(t) {
76
- return arguments.length ? (E = typeof t == "function" ? t : e(+t), k) : E;
77
- }, k.context = function(e) {
78
- return arguments.length ? (D = e ?? null, k) : D;
79
- }, k;
80
- }
81
- //#endregion
82
- export { x as t };
@@ -1 +0,0 @@
1
- const e=require("./path-DIS6ck99.cjs"),t=require("./dist-Dwv2VYAL.cjs");function n(e){return e.innerRadius}function r(e){return e.outerRadius}function i(e){return e.startAngle}function a(e){return e.endAngle}function o(e){return e&&e.padAngle}function s(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function c(e,n,r,i,a,o,s){var c=e-r,l=n-i,u=(s?o:-o)/t.p(c*c+l*l),d=u*l,f=-u*c,p=e+d,m=n+f,h=r+d,g=i+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=a-o,C=p*g-h*m,w=(b<0?-1:1)*t.p(t.l(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(a/S-1),y11:E*(a/S-1)}}function l(){var l=n,u=r,d=e.n(0),f=null,p=i,m=a,h=o,g=null,_=e.t(v);function v(){var e,n,r=+l.apply(this,arguments),i=+u.apply(this,arguments),a=p.apply(this,arguments)-t.c,o=m.apply(this,arguments)-t.c,v=t.n(o-a),y=o>a;if(g||=e=_(),i<r&&(n=i,i=r,r=n),!(i>1e-12))g.moveTo(0,0);else if(v>t.m-1e-12)g.moveTo(i*t.o(a),i*t.f(a)),g.arc(0,0,i,a,o,!y),r>1e-12&&(g.moveTo(r*t.o(o),r*t.f(o)),g.arc(0,0,r,o,a,y));else{var b=a,x=o,S=a,C=o,w=v,T=v,E=h.apply(this,arguments)/2,D=E>1e-12&&(f?+f.apply(this,arguments):t.p(r*r+i*i)),O=t.u(t.n(i-r)/2,+d.apply(this,arguments)),k=O,A=O,j,M;if(D>1e-12){var N=t.i(D/r*t.f(E)),P=t.i(D/i*t.f(E));(w-=N*2)>1e-12?(N*=y?1:-1,S+=N,C-=N):(w=0,S=C=(a+o)/2),(T-=P*2)>1e-12?(P*=y?1:-1,b+=P,x-=P):(T=0,b=x=(a+o)/2)}var F=i*t.o(b),I=i*t.f(b),L=r*t.o(C),R=r*t.f(C);if(O>1e-12){var z=i*t.o(x),B=i*t.f(x),V=r*t.o(S),H=r*t.f(S),U;if(v<t.d){if(U=s(F,I,V,H,z,B,L,R)){var W=F-U[0],G=I-U[1],K=z-U[0],q=B-U[1],J=1/t.f(t.r((W*K+G*q)/(t.p(W*W+G*G)*t.p(K*K+q*q)))/2),Y=t.p(U[0]*U[0]+U[1]*U[1]);k=t.u(O,(r-Y)/(J-1)),A=t.u(O,(i-Y)/(J+1))}else k=A=0}}T>1e-12?A>1e-12?(j=c(V,H,F,I,i,A,y),M=c(z,B,L,R,i,A,y),g.moveTo(j.cx+j.x01,j.cy+j.y01),A<O?g.arc(j.cx,j.cy,A,t.a(j.y01,j.x01),t.a(M.y01,M.x01),!y):(g.arc(j.cx,j.cy,A,t.a(j.y01,j.x01),t.a(j.y11,j.x11),!y),g.arc(0,0,i,t.a(j.cy+j.y11,j.cx+j.x11),t.a(M.cy+M.y11,M.cx+M.x11),!y),g.arc(M.cx,M.cy,A,t.a(M.y11,M.x11),t.a(M.y01,M.x01),!y))):(g.moveTo(F,I),g.arc(0,0,i,b,x,!y)):g.moveTo(F,I),!(r>1e-12)||!(w>1e-12)?g.lineTo(L,R):k>1e-12?(j=c(L,R,z,B,r,-k,y),M=c(F,I,V,H,r,-k,y),g.lineTo(j.cx+j.x01,j.cy+j.y01),k<O?g.arc(j.cx,j.cy,k,t.a(j.y01,j.x01),t.a(M.y01,M.x01),!y):(g.arc(j.cx,j.cy,k,t.a(j.y01,j.x01),t.a(j.y11,j.x11),!y),g.arc(0,0,r,t.a(j.cy+j.y11,j.cx+j.x11),t.a(M.cy+M.y11,M.cx+M.x11),y),g.arc(M.cx,M.cy,k,t.a(M.y11,M.x11),t.a(M.y01,M.x01),!y))):g.arc(0,0,r,C,S,y)}if(g.closePath(),e)return g=null,e+``||null}return v.centroid=function(){var e=(+l.apply(this,arguments)+ +u.apply(this,arguments))/2,n=(+p.apply(this,arguments)+ +m.apply(this,arguments))/2-t.d/2;return[t.o(n)*e,t.f(n)*e]},v.innerRadius=function(t){return arguments.length?(l=typeof t==`function`?t:e.n(+t),v):l},v.outerRadius=function(t){return arguments.length?(u=typeof t==`function`?t:e.n(+t),v):u},v.cornerRadius=function(t){return arguments.length?(d=typeof t==`function`?t:e.n(+t),v):d},v.padRadius=function(t){return arguments.length?(f=t==null?null:typeof t==`function`?t:e.n(+t),v):f},v.startAngle=function(t){return arguments.length?(p=typeof t==`function`?t:e.n(+t),v):p},v.endAngle=function(t){return arguments.length?(m=typeof t==`function`?t:e.n(+t),v):m},v.padAngle=function(t){return arguments.length?(h=typeof t==`function`?t:e.n(+t),v):h},v.context=function(e){return arguments.length?(g=e??null,v):g},v}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
@@ -1 +0,0 @@
1
- require("./chunk-KEIR6QF5-rUKzMPy0.cjs");const e=require("./mermaid-parser.core-aXxW1VLR.cjs");exports.createArchitectureServices=e.M;
@@ -1,3 +0,0 @@
1
- import "./chunk-KEIR6QF5-RwFi50en.js";
2
- import { M as e } from "./mermaid-parser.core-BupC9XGF.js";
3
- export { e as createArchitectureServices };