@pi-outpost/embed 0.15.0 → 0.16.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 (344) hide show
  1. package/dist/PdfViewer-BEdoeHbS.cjs +1 -0
  2. package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
  3. package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
  4. package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
  5. package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
  6. package/dist/arc-Dh2Zrypi.cjs +1 -0
  7. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
  8. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
  9. package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
  10. package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
  11. package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
  12. package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
  13. package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
  14. package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
  15. package/dist/c-AHDGPWiJ.cjs +1 -0
  16. package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
  17. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
  18. package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
  19. package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
  20. package/dist/channel-DcrLLvcO.cjs +1 -0
  21. package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
  22. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
  23. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
  24. package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
  25. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
  26. package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
  27. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
  28. package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
  29. package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
  30. package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
  31. package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
  32. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
  33. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
  34. package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
  35. package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
  36. package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
  37. package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
  38. package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
  39. package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
  40. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
  41. package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
  42. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
  43. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
  44. package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
  45. package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
  46. package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
  47. package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
  48. package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
  49. package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
  50. package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
  51. package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
  52. package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
  53. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
  54. package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
  55. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
  56. package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
  57. package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
  58. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
  59. package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
  60. package/dist/core-BrupIPpc.cjs +3 -0
  61. package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
  62. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
  63. package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
  64. package/dist/cpp-DpAsh4uT.cjs +1 -0
  65. package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
  66. package/dist/csharp-TOr_W-v9.cjs +1 -0
  67. package/dist/css-4wogsuks.cjs +1 -0
  68. package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
  69. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
  70. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
  71. package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
  72. package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
  73. package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
  74. package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
  75. package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
  76. package/dist/dagre-EEW2OxRU.cjs +1 -0
  77. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
  78. package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
  79. package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
  80. package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
  81. package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
  82. package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
  83. package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
  84. package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
  85. package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
  86. package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
  87. package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
  88. package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
  89. package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
  90. package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
  91. package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
  92. package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
  93. package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
  94. package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
  95. package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
  96. package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
  97. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
  98. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
  99. package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
  100. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
  101. package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
  102. package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
  103. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
  104. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
  105. package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
  106. package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
  107. package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
  108. package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
  109. package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
  110. package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
  111. package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
  112. package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
  113. package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
  114. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
  115. package/dist/init-BJdqMO10.cjs +1 -0
  116. package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
  117. package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
  118. package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
  119. package/dist/java-DFBMvIUR.cjs +1 -0
  120. package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
  121. package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
  122. package/dist/javascript-Gn0piXHk.cjs +1 -0
  123. package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
  124. package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
  125. package/dist/json-DOqjN5nI.js +42 -0
  126. package/dist/json-LMrXTXZM.cjs +1 -0
  127. package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
  128. package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
  129. package/dist/katex-CEF6MvLx.cjs +257 -0
  130. package/dist/katex-ohtLbxXc.js +21977 -0
  131. package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
  132. package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
  133. package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
  134. package/dist/linear-Nt9BuHfn.cjs +1 -0
  135. package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
  136. package/dist/markdown-CTkHoGys.cjs +1 -0
  137. package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
  138. package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
  139. package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
  140. package/dist/mermaid.core-BIqYA7q2.js +3012 -0
  141. package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
  142. package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
  143. package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
  144. package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
  145. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
  146. package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
  147. package/dist/path-DIS6ck99.cjs +1 -0
  148. package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
  149. package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
  150. package/dist/pdf-cYqATYeW.cjs +54 -0
  151. package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
  152. package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
  153. package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
  154. package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
  155. package/dist/pi-outpost-embed.cjs +47 -47
  156. package/dist/pi-outpost-embed.js +3750 -3717
  157. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
  158. package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
  159. package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
  160. package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
  161. package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
  162. package/dist/python-CrsffQw-.cjs +1 -0
  163. package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
  164. package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
  165. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
  166. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
  167. package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
  168. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
  169. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
  170. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
  171. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
  172. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
  173. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
  174. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
  175. package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
  176. package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
  177. package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
  178. package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
  179. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  180. package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
  181. package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
  182. package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
  183. package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
  184. package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
  185. package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
  186. package/dist/rust-D39kF6re.cjs +1 -0
  187. package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
  188. package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
  189. package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
  190. package/dist/scss-t-vKjRr4.cjs +1 -0
  191. package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
  192. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
  193. package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
  194. package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
  195. package/dist/src-D9o9TOtH.cjs +1 -0
  196. package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
  197. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
  198. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
  199. package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
  200. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
  201. package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
  202. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
  203. package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
  204. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
  205. package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
  206. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
  207. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
  208. package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
  209. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
  210. package/dist/typescript-BarIi8q9.cjs +1 -0
  211. package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
  212. package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
  213. package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
  214. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
  215. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
  216. package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
  217. package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
  218. package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
  219. package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
  220. package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
  221. package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
  222. package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
  223. package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
  224. package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
  225. package/dist/yaml-DZS9gzaB.cjs +1 -0
  226. package/package.json +2 -2
  227. package/dist/PdfViewer-BBmVq73v.cjs +0 -1
  228. package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
  229. package/dist/arc-DcUn9_NX.cjs +0 -1
  230. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
  231. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
  232. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
  233. package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
  234. package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
  235. package/dist/c-4QgYfi8K.cjs +0 -1
  236. package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
  237. package/dist/channel-DoxF0tZj.cjs +0 -1
  238. package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
  239. package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
  240. package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
  241. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
  242. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  243. package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
  244. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
  245. package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
  246. package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
  247. package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
  248. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
  249. package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
  250. package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
  251. package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
  252. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
  253. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
  254. package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
  255. package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
  256. package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
  257. package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
  258. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
  259. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
  260. package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
  261. package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
  262. package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
  263. package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
  264. package/dist/core-2nR1zkKb.cjs +0 -3
  265. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
  266. package/dist/cpp-BUtp-HE2.cjs +0 -1
  267. package/dist/csharp-BJu4kEpt.cjs +0 -1
  268. package/dist/css-DeFr0lev.cjs +0 -1
  269. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
  270. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
  271. package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
  272. package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
  273. package/dist/dagre-BBlCxSvR.cjs +0 -1
  274. package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
  275. package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
  276. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  277. package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
  278. package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
  279. package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
  280. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
  281. package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
  282. package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
  283. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
  284. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
  285. package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
  286. package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
  287. package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
  288. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
  289. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
  290. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
  291. package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
  292. package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
  293. package/dist/init-07zIhv_j.cjs +0 -1
  294. package/dist/java-CUN_usaq.cjs +0 -1
  295. package/dist/javascript-UZXSyUuu.cjs +0 -1
  296. package/dist/json-Cp01TR_B.js +0 -36
  297. package/dist/json-usH_MUzR.cjs +0 -1
  298. package/dist/linear-Cl2-QuPP.cjs +0 -1
  299. package/dist/map-CwPlMWPw.cjs +0 -1
  300. package/dist/map-DU12fF3s.js +0 -241
  301. package/dist/markdown-qeo95R0i.cjs +0 -1
  302. package/dist/mermaid.core-BIq27e0A.js +0 -1068
  303. package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
  304. package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
  305. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
  306. package/dist/path-Kklx0M1v.cjs +0 -1
  307. package/dist/pdf-aU0TN69t.cjs +0 -54
  308. package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
  309. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
  310. package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
  311. package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
  312. package/dist/python-BYJzTRkK.cjs +0 -1
  313. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
  314. package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
  315. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
  316. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
  317. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
  318. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
  319. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
  320. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
  321. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
  322. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
  323. package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
  324. package/dist/rust-ghVvEWhm.cjs +0 -1
  325. package/dist/scss-CKxh5HRg.cjs +0 -1
  326. package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
  327. package/dist/src-CR--T_NF.cjs +0 -1
  328. package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
  329. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
  330. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
  331. package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
  332. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
  333. package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
  334. package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
  335. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
  336. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
  337. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
  338. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
  339. package/dist/typescript-clWeqIBY.cjs +0 -1
  340. package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
  341. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
  342. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
  343. package/dist/yaml-bAgWofBg.cjs +0 -1
  344. /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
@@ -1,10 +1,105 @@
1
- import { n as e } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
2
- import { m as t, p as n } from "./src-DJ4x3y2O.js";
3
- import { A as r, F as i, b as a, s as o, z as s } from "./chunk-I66GZJ75-DexfhZwA.js";
4
- import { a as c } from "./chunk-NSK5VX7P-DPxIxDdV.js";
5
- import { n as l, t as u } from "./chunk-4I5QYGJK-JZmvuONC.js";
6
- //#region ../node_modules/marked/lib/marked.esm.js
7
- function d() {
1
+ import { r as e, t } from "./rolldown-runtime-B0aSnxlc.js";
2
+ import { n } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
3
+ import { m as r, p as i } from "./src-BMMAFeC3.js";
4
+ import { A as a, F as o, b as s, s as c, z as l } from "./chunk-DU6HZSFF-CaHy-FdL.js";
5
+ import { a as u } from "./chunk-75Z2AOVW-Eg_bFxBJ.js";
6
+ import { n as d, t as f } from "./chunk-PWAF6VOD-j4sFqhOF.js";
7
+ //#region ../node_modules/fastdom/fastdom.js
8
+ var p = /* @__PURE__ */ t(((e, t) => {
9
+ (function(e) {
10
+ var n = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.msRequestAnimationFrame || function(e) {
11
+ return setTimeout(e, 16);
12
+ };
13
+ function r() {
14
+ var t = this;
15
+ t.reads = [], t.writes = [], t.raf = n.bind(e);
16
+ }
17
+ r.prototype = {
18
+ constructor: r,
19
+ runTasks: function(e) {
20
+ for (var t; t = e.shift();) t();
21
+ },
22
+ measure: function(e, t) {
23
+ var n = t ? e.bind(t) : e;
24
+ return this.reads.push(n), i(this), n;
25
+ },
26
+ mutate: function(e, t) {
27
+ var n = t ? e.bind(t) : e;
28
+ return this.writes.push(n), i(this), n;
29
+ },
30
+ clear: function(e) {
31
+ return o(this.reads, e) || o(this.writes, e);
32
+ },
33
+ extend: function(e) {
34
+ if (typeof e != "object") throw Error("expected object");
35
+ var t = Object.create(this);
36
+ return s(t, e), t.fastdom = this, t.initialize && t.initialize(), t;
37
+ },
38
+ catch: null
39
+ };
40
+ function i(e) {
41
+ e.scheduled || (e.scheduled = !0, e.raf(a.bind(null, e)));
42
+ }
43
+ function a(e) {
44
+ var t = e.writes, n = e.reads, r;
45
+ try {
46
+ n.length, e.runTasks(n), t.length, e.runTasks(t);
47
+ } catch (e) {
48
+ r = e;
49
+ }
50
+ if (e.scheduled = !1, (n.length || t.length) && i(e), r) {
51
+ if (r.message, e.catch) e.catch(r);
52
+ else throw r;
53
+ }
54
+ }
55
+ function o(e, t) {
56
+ var n = e.indexOf(t);
57
+ return !!~n && !!e.splice(n, 1);
58
+ }
59
+ function s(e, t) {
60
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
61
+ }
62
+ var c = e.fastdom = e.fastdom || new r();
63
+ typeof define == "function" ? define(function() {
64
+ return c;
65
+ }) : typeof t == "object" && (t.exports = c);
66
+ })(typeof window < "u" ? window : e === void 0 ? globalThis : e);
67
+ })), m = /* @__PURE__ */ t(((e, t) => {
68
+ (function() {
69
+ var e = {
70
+ initialize: function() {
71
+ this._tasks = /* @__PURE__ */ new Map();
72
+ },
73
+ mutate: function(e, t) {
74
+ return n(this, "mutate", e, t);
75
+ },
76
+ measure: function(e, t) {
77
+ return n(this, "measure", e, t);
78
+ },
79
+ clear: function(e) {
80
+ var t = this._tasks, n = t.get(e);
81
+ this.fastdom.clear(n), t.delete(e);
82
+ }
83
+ };
84
+ function n(e, t, n, r) {
85
+ var i = e._tasks, a = e.fastdom, o, s = new Promise(function(e, c) {
86
+ o = a[t](function() {
87
+ i.delete(s);
88
+ try {
89
+ e(r ? n.call(r) : n());
90
+ } catch (e) {
91
+ c(e);
92
+ }
93
+ }, r);
94
+ });
95
+ return i.set(s, o), s;
96
+ }
97
+ (typeof define)[0] == "f" ? define(function() {
98
+ return e;
99
+ }) : (typeof t)[0] == "o" ? t.exports = e : window.fastdomPromised = e;
100
+ })();
101
+ })), h = /* @__PURE__ */ e(p(), 1), ee = /* @__PURE__ */ e(m(), 1);
102
+ function g() {
8
103
  return {
9
104
  async: !1,
10
105
  breaks: !1,
@@ -18,28 +113,28 @@ function d() {
18
113
  walkTokens: null
19
114
  };
20
115
  }
21
- var f = d();
22
- function p(e) {
23
- f = e;
116
+ var _ = g();
117
+ function te(e) {
118
+ _ = e;
24
119
  }
25
- var m = { exec: () => null };
26
- function h(e, t = "") {
120
+ var v = { exec: () => null };
121
+ function y(e, t = "") {
27
122
  let n = typeof e == "string" ? e : e.source, r = {
28
123
  replace: (e, t) => {
29
124
  let i = typeof t == "string" ? t : t.source;
30
- return i = i.replace(_.caret, "$1"), n = n.replace(e, i), r;
125
+ return i = i.replace(b.caret, "$1"), n = n.replace(e, i), r;
31
126
  },
32
127
  getRegex: () => new RegExp(n, t)
33
128
  };
34
129
  return r;
35
130
  }
36
- var g = (() => {
131
+ var ne = (() => {
37
132
  try {
38
133
  return !0;
39
134
  } catch {
40
135
  return !1;
41
136
  }
42
- })(), _ = {
137
+ })(), b = {
43
138
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
44
139
  outputLinkReplace: /\\([\[\]])/g,
45
140
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -96,111 +191,113 @@ var g = (() => {
96
191
  fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
97
192
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
98
193
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
99
- }, ee = /^(?:[ \t]*(?:\n|$))+/, te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ne = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, v = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, re = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, y = /(?:[*+-]|\d{1,9}[.)])/, ie = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ae = h(ie).replace(/bull/g, y).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), oe = h(ie).replace(/bull/g, y).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), b = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, se = /^[^\n]+/, x = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ce = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", x).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), le = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, y).getRegex(), S = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", C = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ue = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", C).replace("tag", S).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), de = h(b).replace("hr", v).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", S).getRegex(), w = {
100
- blockquote: h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", de).getRegex(),
101
- code: te,
102
- def: ce,
103
- fences: ne,
104
- heading: re,
105
- hr: v,
106
- html: ue,
107
- lheading: ae,
108
- list: le,
109
- newline: ee,
110
- paragraph: de,
111
- table: m,
112
- text: se
113
- }, fe = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", v).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", S).getRegex(), pe = {
114
- ...w,
115
- lheading: oe,
116
- table: fe,
117
- paragraph: h(b).replace("hr", v).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", fe).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", S).getRegex()
118
- }, me = {
119
- ...w,
120
- html: h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", C).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
194
+ }, re = /^(?:[ \t]*(?:\n|$))+/, ie = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ae = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, x = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, S = /(?:[*+-]|\d{1,9}[.)])/, se = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ce = y(se).replace(/bull/g, S).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), le = y(se).replace(/bull/g, S).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), C = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ue = /^[^\n]+/, w = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, de = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", w).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), fe = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, S).getRegex(), T = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", E = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, pe = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", E).replace("tag", T).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), me = y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), D = {
195
+ blockquote: y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", me).getRegex(),
196
+ code: ie,
197
+ def: de,
198
+ fences: ae,
199
+ heading: oe,
200
+ hr: x,
201
+ html: pe,
202
+ lheading: ce,
203
+ list: fe,
204
+ newline: re,
205
+ paragraph: me,
206
+ table: v,
207
+ text: ue
208
+ }, he = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex(), ge = {
209
+ ...D,
210
+ lheading: le,
211
+ table: he,
212
+ paragraph: y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", he).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", T).getRegex()
213
+ }, _e = {
214
+ ...D,
215
+ html: y("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", E).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
121
216
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
122
217
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
123
- fences: m,
218
+ fences: v,
124
219
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
125
- paragraph: h(b).replace("hr", v).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ae).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
126
- }, he = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ge = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, _e = /^( {2,}|\\)\n(?!\s*$)/, ve = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, T = /[\p{P}\p{S}]/u, E = /[\s\p{P}\p{S}]/u, ye = /[^\s\p{P}\p{S}]/u, be = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, E).getRegex(), xe = /(?!~)[\p{P}\p{S}]/u, Se = /(?!~)[\s\p{P}\p{S}]/u, Ce = /(?:[^\s\p{P}\p{S}]|~)/u, we = h(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", g ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), D = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Te = h(D, "u").replace(/punct/g, T).getRegex(), Ee = h(D, "u").replace(/punct/g, xe).getRegex(), O = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", De = h(O, "gu").replace(/notPunctSpace/g, ye).replace(/punctSpace/g, E).replace(/punct/g, T).getRegex(), Oe = h(O, "gu").replace(/notPunctSpace/g, Ce).replace(/punctSpace/g, Se).replace(/punct/g, xe).getRegex(), ke = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ye).replace(/punctSpace/g, E).replace(/punct/g, T).getRegex(), Ae = h(/\\(punct)/, "gu").replace(/punct/g, T).getRegex(), je = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Me = h(C).replace("(?:-->|$)", "-->").getRegex(), Ne = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Me).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), k = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Pe = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", k).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), A = h(/^!?\[(label)\]\[(ref)\]/).replace("label", k).replace("ref", x).getRegex(), j = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", x).getRegex(), Fe = h("reflink|nolink(?!\\()", "g").replace("reflink", A).replace("nolink", j).getRegex(), Ie = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, M = {
127
- _backpedal: m,
128
- anyPunctuation: Ae,
129
- autolink: je,
130
- blockSkip: we,
131
- br: _e,
132
- code: ge,
133
- del: m,
134
- emStrongLDelim: Te,
135
- emStrongRDelimAst: De,
136
- emStrongRDelimUnd: ke,
137
- escape: he,
138
- link: Pe,
139
- nolink: j,
140
- punctuation: be,
141
- reflink: A,
142
- reflinkSearch: Fe,
143
- tag: Ne,
144
- text: ve,
145
- url: m
146
- }, Le = {
147
- ...M,
148
- link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", k).getRegex(),
149
- reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", k).getRegex()
150
- }, N = {
151
- ...M,
152
- emStrongRDelimAst: Oe,
153
- emStrongLDelim: Ee,
154
- url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ie).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
220
+ paragraph: y(C).replace("hr", x).replace("heading", " *#{1,6} *[^\n]").replace("lheading", ce).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
221
+ }, ve = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ye = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, be = /^( {2,}|\\)\n(?!\s*$)/, xe = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, O = /[\p{P}\p{S}]/u, k = /[\s\p{P}\p{S}]/u, Se = /[^\s\p{P}\p{S}]/u, Ce = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, k).getRegex(), we = /(?!~)[\p{P}\p{S}]/u, Te = /(?!~)[\s\p{P}\p{S}]/u, Ee = /(?:[^\s\p{P}\p{S}]|~)/u, De = y(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", ne ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Oe = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ke = y(Oe, "u").replace(/punct/g, O).getRegex(), Ae = y(Oe, "u").replace(/punct/g, we).getRegex(), je = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Me = y(je, "gu").replace(/notPunctSpace/g, Se).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Ne = y(je, "gu").replace(/notPunctSpace/g, Ee).replace(/punctSpace/g, Te).replace(/punct/g, we).getRegex(), Pe = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Se).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Fe = y(/\\(punct)/, "gu").replace(/punct/g, O).getRegex(), Ie = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Le = y(E).replace("(?:-->|$)", "-->").getRegex(), Re = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Le).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), A = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ze = y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", A).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Be = y(/^!?\[(label)\]\[(ref)\]/).replace("label", A).replace("ref", w).getRegex(), Ve = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", w).getRegex(), He = y("reflink|nolink(?!\\()", "g").replace("reflink", Be).replace("nolink", Ve).getRegex(), Ue = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, j = {
222
+ _backpedal: v,
223
+ anyPunctuation: Fe,
224
+ autolink: Ie,
225
+ blockSkip: De,
226
+ br: be,
227
+ code: ye,
228
+ del: v,
229
+ emStrongLDelim: ke,
230
+ emStrongRDelimAst: Me,
231
+ emStrongRDelimUnd: Pe,
232
+ escape: ve,
233
+ link: ze,
234
+ nolink: Ve,
235
+ punctuation: Ce,
236
+ reflink: Be,
237
+ reflinkSearch: He,
238
+ tag: Re,
239
+ text: xe,
240
+ url: v
241
+ }, We = {
242
+ ...j,
243
+ link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", A).getRegex(),
244
+ reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", A).getRegex()
245
+ }, M = {
246
+ ...j,
247
+ emStrongRDelimAst: Ne,
248
+ emStrongLDelim: Ae,
249
+ url: y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ue).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
155
250
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
156
251
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
157
- text: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ie).getRegex()
158
- }, Re = {
159
- ...N,
160
- br: h(_e).replace("{2,}", "*").getRegex(),
161
- text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
252
+ text: y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ue).getRegex()
253
+ }, Ge = {
254
+ ...M,
255
+ br: y(be).replace("{2,}", "*").getRegex(),
256
+ text: y(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
257
+ }, N = {
258
+ normal: D,
259
+ gfm: ge,
260
+ pedantic: _e
162
261
  }, P = {
163
- normal: w,
164
- gfm: pe,
165
- pedantic: me
166
- }, F = {
167
- normal: M,
168
- gfm: N,
169
- breaks: Re,
170
- pedantic: Le
171
- }, ze = {
262
+ normal: j,
263
+ gfm: M,
264
+ breaks: Ge,
265
+ pedantic: We
266
+ }, Ke = {
172
267
  "&": "&amp;",
173
268
  "<": "&lt;",
174
269
  ">": "&gt;",
175
270
  "\"": "&quot;",
176
271
  "'": "&#39;"
177
- }, Be = (e) => ze[e];
178
- function I(e, t) {
272
+ }, qe = (e) => Ke[e];
273
+ function F(e, t) {
179
274
  if (t) {
180
- if (_.escapeTest.test(e)) return e.replace(_.escapeReplace, Be);
181
- } else if (_.escapeTestNoEncode.test(e)) return e.replace(_.escapeReplaceNoEncode, Be);
275
+ if (b.escapeTest.test(e)) return e.replace(b.escapeReplace, qe);
276
+ } else if (b.escapeTestNoEncode.test(e)) return e.replace(b.escapeReplaceNoEncode, qe);
182
277
  return e;
183
278
  }
184
- function Ve(e) {
279
+ function Je(e) {
185
280
  try {
186
- e = encodeURI(e).replace(_.percentDecode, "%");
281
+ e = encodeURI(e).replace(b.percentDecode, "%");
187
282
  } catch {
188
283
  return null;
189
284
  }
190
285
  return e;
191
286
  }
192
- function He(e, t) {
193
- let n = e.replace(_.findPipe, (e, t, n) => {
287
+ function Ye(e, t) {
288
+ let n = e.replace(b.findPipe, (e, t, n) => {
194
289
  let r = !1, i = t;
195
290
  for (; --i >= 0 && n[i] === "\\";) r = !r;
196
291
  return r ? "|" : " |";
197
- }).split(_.splitPipe), r = 0;
198
- if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
199
- else for (; n.length < t;) n.push("");
200
- for (; r < n.length; r++) n[r] = n[r].trim().replace(_.slashPipe, "|");
292
+ }).split(b.splitPipe), r = 0;
293
+ if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
294
+ if (n.length > t) n.splice(t);
295
+ else for (; n.length < t;) n.push("");
296
+ }
297
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(b.slashPipe, "|");
201
298
  return n;
202
299
  }
203
- function L(e, t, n) {
300
+ function I(e, t, n) {
204
301
  let r = e.length;
205
302
  if (r === 0) return "";
206
303
  let i = 0;
@@ -212,7 +309,7 @@ function L(e, t, n) {
212
309
  }
213
310
  return e.slice(0, r - i);
214
311
  }
215
- function Ue(e, t) {
312
+ function Xe(e, t) {
216
313
  if (e.indexOf(t[1]) === -1) return -1;
217
314
  let n = 0;
218
315
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -220,7 +317,7 @@ function Ue(e, t) {
220
317
  else if (e[r] === t[1] && (n--, n < 0)) return r;
221
318
  return n > 0 ? -2 : -1;
222
319
  }
223
- function We(e, t, n, r, i) {
320
+ function Ze(e, t, n, r, i) {
224
321
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
225
322
  r.state.inLink = !0;
226
323
  let c = {
@@ -233,7 +330,7 @@ function We(e, t, n, r, i) {
233
330
  };
234
331
  return r.state.inLink = !1, c;
235
332
  }
236
- function Ge(e, t, n) {
333
+ function Qe(e, t, n) {
237
334
  let r = e.match(n.other.indentCodeCompensation);
238
335
  if (r === null) return t;
239
336
  let i = r[1];
@@ -244,12 +341,12 @@ function Ge(e, t, n) {
244
341
  return r.length >= i.length ? e.slice(i.length) : e;
245
342
  }).join("\n");
246
343
  }
247
- var R = class {
344
+ var L = class {
248
345
  options;
249
346
  rules;
250
347
  lexer;
251
348
  constructor(e) {
252
- this.options = e || f;
349
+ this.options = e || _;
253
350
  }
254
351
  space(e) {
255
352
  let t = this.rules.block.newline.exec(e);
@@ -266,14 +363,14 @@ var R = class {
266
363
  type: "code",
267
364
  raw: t[0],
268
365
  codeBlockStyle: "indented",
269
- text: this.options.pedantic ? e : L(e, "\n")
366
+ text: this.options.pedantic ? e : I(e, "\n")
270
367
  };
271
368
  }
272
369
  }
273
370
  fences(e) {
274
371
  let t = this.rules.block.fences.exec(e);
275
372
  if (t) {
276
- let e = t[0], n = Ge(e, t[3] || "", this.rules);
373
+ let e = t[0], n = Qe(e, t[3] || "", this.rules);
277
374
  return {
278
375
  type: "code",
279
376
  raw: e,
@@ -287,7 +384,7 @@ var R = class {
287
384
  if (t) {
288
385
  let e = t[2].trim();
289
386
  if (this.rules.other.endingHash.test(e)) {
290
- let t = L(e, "#");
387
+ let t = I(e, "#");
291
388
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
292
389
  }
293
390
  return {
@@ -303,13 +400,13 @@ var R = class {
303
400
  let t = this.rules.block.hr.exec(e);
304
401
  if (t) return {
305
402
  type: "hr",
306
- raw: L(t[0], "\n")
403
+ raw: I(t[0], "\n")
307
404
  };
308
405
  }
309
406
  blockquote(e) {
310
407
  let t = this.rules.block.blockquote.exec(e);
311
408
  if (t) {
312
- let e = L(t[0], "\n").split("\n"), n = "", r = "", i = [];
409
+ let e = I(t[0], "\n").split("\n"), n = "", r = "", i = [];
313
410
  for (; e.length > 0;) {
314
411
  let t = !1, a = [], o;
315
412
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -328,7 +425,8 @@ ${c}` : c;
328
425
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.blockquote(a);
329
426
  i[i.length - 1] = o, n = n.substring(0, n.length - t.raw.length) + o.raw, r = r.substring(0, r.length - t.text.length) + o.text;
330
427
  break;
331
- } else if (u?.type === "list") {
428
+ }
429
+ if (u?.type === "list") {
332
430
  let t = u, a = t.raw + "\n" + e.join("\n"), o = this.list(a);
333
431
  i[i.length - 1] = o, n = n.substring(0, n.length - u.raw.length) + o.raw, r = r.substring(0, r.length - t.raw.length) + o.raw, e = a.substring(i.at(-1).raw.length).split("\n");
334
432
  continue;
@@ -423,7 +521,7 @@ ${c}` : c;
423
521
  table(e) {
424
522
  let t = this.rules.block.table.exec(e);
425
523
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
426
- let n = He(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
524
+ let n = Ye(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
427
525
  type: "table",
428
526
  raw: t[0],
429
527
  header: [],
@@ -438,7 +536,7 @@ ${c}` : c;
438
536
  header: !0,
439
537
  align: a.align[e]
440
538
  });
441
- for (let e of i) a.rows.push(He(e, a.header.length).map((e, t) => ({
539
+ for (let e of i) a.rows.push(Ye(e, a.header.length).map((e, t) => ({
442
540
  text: e,
443
541
  tokens: this.lexer.inline(e),
444
542
  header: !1,
@@ -503,10 +601,10 @@ ${c}` : c;
503
601
  let e = t[2].trim();
504
602
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
505
603
  if (!this.rules.other.endAngleBracket.test(e)) return;
506
- let t = L(e.slice(0, -1), "\\");
604
+ let t = I(e.slice(0, -1), "\\");
507
605
  if ((e.length - t.length) % 2 == 0) return;
508
606
  } else {
509
- let e = Ue(t[2], "()");
607
+ let e = Xe(t[2], "()");
510
608
  if (e === -2) return;
511
609
  if (e > -1) {
512
610
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -518,7 +616,7 @@ ${c}` : c;
518
616
  let e = this.rules.other.pedanticHrefTitle.exec(n);
519
617
  e && (n = e[1], r = e[3]);
520
618
  } else r = t[3] ? t[3].slice(1, -1) : "";
521
- return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), We(t, {
619
+ return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Ze(t, {
522
620
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
523
621
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
524
622
  }, t[0], this.lexer, this.rules);
@@ -536,7 +634,7 @@ ${c}` : c;
536
634
  text: e
537
635
  };
538
636
  }
539
- return We(n, e, n[0], this.lexer, this.rules);
637
+ return Ze(n, e, n[0], this.lexer, this.rules);
540
638
  }
541
639
  }
542
640
  emStrong(e, t, n = "") {
@@ -548,7 +646,8 @@ ${c}` : c;
548
646
  if (a = [...i].length, r[3] || r[4]) {
549
647
  o += a;
550
648
  continue;
551
- } else if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
649
+ }
650
+ if ((r[5] || r[6]) && n % 3 && !((n + a) % 3)) {
552
651
  s += a;
553
652
  continue;
554
653
  }
@@ -655,29 +754,29 @@ ${c}` : c;
655
754
  };
656
755
  }
657
756
  }
658
- }, z = class e {
757
+ }, R = class e {
659
758
  tokens;
660
759
  options;
661
760
  state;
662
761
  tokenizer;
663
762
  inlineQueue;
664
763
  constructor(e) {
665
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || f, this.options.tokenizer = this.options.tokenizer || new R(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
764
+ this.tokens = [], this.tokens.links = Object.create(null), this.options = e || _, this.options.tokenizer = this.options.tokenizer || new L(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
666
765
  inLink: !1,
667
766
  inRawBlock: !1,
668
767
  top: !0
669
768
  };
670
769
  let t = {
671
- other: _,
672
- block: P.normal,
673
- inline: F.normal
770
+ other: b,
771
+ block: N.normal,
772
+ inline: P.normal
674
773
  };
675
- this.options.pedantic ? (t.block = P.pedantic, t.inline = F.pedantic) : this.options.gfm && (t.block = P.gfm, this.options.breaks ? t.inline = F.breaks : t.inline = F.gfm), this.tokenizer.rules = t;
774
+ this.options.pedantic ? (t.block = N.pedantic, t.inline = P.pedantic) : this.options.gfm && (t.block = N.gfm, t.inline = this.options.breaks ? P.breaks : P.gfm), this.tokenizer.rules = t;
676
775
  }
677
776
  static get rules() {
678
777
  return {
679
- block: P,
680
- inline: F
778
+ block: N,
779
+ inline: P
681
780
  };
682
781
  }
683
782
  static lex(t, n) {
@@ -687,7 +786,7 @@ ${c}` : c;
687
786
  return new e(n).inlineTokens(t);
688
787
  }
689
788
  lex(e) {
690
- e = e.replace(_.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
789
+ e = e.replace(b.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
691
790
  for (let e = 0; e < this.inlineQueue.length; e++) {
692
791
  let t = this.inlineQueue[e];
693
792
  this.inlineTokens(t.src, t.tokens);
@@ -695,7 +794,7 @@ ${c}` : c;
695
794
  return this.inlineQueue = [], this.tokens;
696
795
  }
697
796
  blockTokens(e, t = [], n = !1) {
698
- for (this.options.pedantic && (e = e.replace(_.tabCharGlobal, " ").replace(_.spaceLine, "")); e;) {
797
+ for (this.options.pedantic && (e = e.replace(b.tabCharGlobal, " ").replace(b.spaceLine, "")); e;) {
699
798
  let r;
700
799
  if (this.options.extensions?.block?.some((n) => (r = n.call({ lexer: this }, e, t)) ? (e = e.substring(r.raw.length), t.push(r), !0) : !1)) continue;
701
800
  if (r = this.tokenizer.space(e)) {
@@ -753,10 +852,10 @@ ${c}` : c;
753
852
  }
754
853
  let i = e;
755
854
  if (this.options.extensions?.startBlock) {
756
- let t = Infinity, n = e.slice(1), r;
855
+ let t = 1 / 0, n = e.slice(1), r;
757
856
  this.options.extensions.startBlock.forEach((e) => {
758
857
  r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
759
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
858
+ }), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
760
859
  }
761
860
  if (this.state.top && (r = this.tokenizer.paragraph(i))) {
762
861
  let a = t.at(-1);
@@ -774,7 +873,8 @@ ${c}` : c;
774
873
  if (this.options.silent) {
775
874
  console.error(t);
776
875
  break;
777
- } else throw Error(t);
876
+ }
877
+ throw Error(t);
778
878
  }
779
879
  }
780
880
  return this.state.top = !0, t;
@@ -844,10 +944,10 @@ ${c}` : c;
844
944
  }
845
945
  let i = e;
846
946
  if (this.options.extensions?.startInline) {
847
- let t = Infinity, n = e.slice(1), r;
947
+ let t = 1 / 0, n = e.slice(1), r;
848
948
  this.options.extensions.startInline.forEach((e) => {
849
949
  r = e.call({ lexer: this }, n), typeof r == "number" && r >= 0 && (t = Math.min(t, r));
850
- }), t < Infinity && t >= 0 && (i = e.substring(0, t + 1));
950
+ }), t < 1 / 0 && t >= 0 && (i = e.substring(0, t + 1));
851
951
  }
852
952
  if (r = this.tokenizer.inlineText(i)) {
853
953
  e = e.substring(r.raw.length), r.raw.slice(-1) !== "_" && (o = r.raw.slice(-1)), a = !0;
@@ -860,23 +960,24 @@ ${c}` : c;
860
960
  if (this.options.silent) {
861
961
  console.error(t);
862
962
  break;
863
- } else throw Error(t);
963
+ }
964
+ throw Error(t);
864
965
  }
865
966
  }
866
967
  return t;
867
968
  }
868
- }, B = class {
969
+ }, z = class {
869
970
  options;
870
971
  parser;
871
972
  constructor(e) {
872
- this.options = e || f;
973
+ this.options = e || _;
873
974
  }
874
975
  space(e) {
875
976
  return "";
876
977
  }
877
978
  code({ text: e, lang: t, escaped: n }) {
878
- let r = (t || "").match(_.notSpaceStart)?.[0], i = e.replace(_.endingNewline, "") + "\n";
879
- return r ? "<pre><code class=\"language-" + I(r) + "\">" + (n ? i : I(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : I(i, !0)) + "</code></pre>\n";
979
+ let r = (t || "").match(b.notSpaceStart)?.[0], i = e.replace(b.endingNewline, "") + "\n";
980
+ return r ? "<pre><code class=\"language-" + F(r) + "\">" + (n ? i : F(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : F(i, !0)) + "</code></pre>\n";
880
981
  }
881
982
  blockquote({ tokens: e }) {
882
983
  return `<blockquote>
@@ -909,7 +1010,7 @@ ${this.parser.parse(e)}</blockquote>
909
1010
  let t = "";
910
1011
  if (e.task) {
911
1012
  let n = this.checkbox({ checked: !!e.checked });
912
- e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + I(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
1013
+ e.loose ? e.tokens[0]?.type === "paragraph" ? (e.tokens[0].text = n + " " + e.tokens[0].text, e.tokens[0].tokens && e.tokens[0].tokens.length > 0 && e.tokens[0].tokens[0].type === "text" && (e.tokens[0].tokens[0].text = n + " " + F(e.tokens[0].tokens[0].text), e.tokens[0].tokens[0].escaped = !0)) : e.tokens.unshift({
913
1014
  type: "text",
914
1015
  raw: n + " ",
915
1016
  text: n + " ",
@@ -956,7 +1057,7 @@ ${e}</tr>
956
1057
  return `<em>${this.parser.parseInline(e)}</em>`;
957
1058
  }
958
1059
  codespan({ text: e }) {
959
- return `<code>${I(e, !0)}</code>`;
1060
+ return `<code>${F(e, !0)}</code>`;
960
1061
  }
961
1062
  br(e) {
962
1063
  return "<br>";
@@ -965,24 +1066,24 @@ ${e}</tr>
965
1066
  return `<del>${this.parser.parseInline(e)}</del>`;
966
1067
  }
967
1068
  link({ href: e, title: t, tokens: n }) {
968
- let r = this.parser.parseInline(n), i = Ve(e);
1069
+ let r = this.parser.parseInline(n), i = Je(e);
969
1070
  if (i === null) return r;
970
1071
  e = i;
971
1072
  let a = "<a href=\"" + e + "\"";
972
- return t && (a += " title=\"" + I(t) + "\""), a += ">" + r + "</a>", a;
1073
+ return t && (a += " title=\"" + F(t) + "\""), a += ">" + r + "</a>", a;
973
1074
  }
974
1075
  image({ href: e, title: t, text: n, tokens: r }) {
975
1076
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
976
- let i = Ve(e);
977
- if (i === null) return I(n);
1077
+ let i = Je(e);
1078
+ if (i === null) return F(n);
978
1079
  e = i;
979
1080
  let a = `<img src="${e}" alt="${n}"`;
980
- return t && (a += ` title="${I(t)}"`), a += ">", a;
1081
+ return t && (a += ` title="${F(t)}"`), a += ">", a;
981
1082
  }
982
1083
  text(e) {
983
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : I(e.text);
1084
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : F(e.text);
984
1085
  }
985
- }, V = class {
1086
+ }, B = class {
986
1087
  strong({ text: e }) {
987
1088
  return e;
988
1089
  }
@@ -1010,12 +1111,12 @@ ${e}</tr>
1010
1111
  br() {
1011
1112
  return "";
1012
1113
  }
1013
- }, H = class e {
1114
+ }, V = class e {
1014
1115
  options;
1015
1116
  renderer;
1016
1117
  textRenderer;
1017
1118
  constructor(e) {
1018
- this.options = e || f, this.options.renderer = this.options.renderer || new B(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new V();
1119
+ this.options = e || _, this.options.renderer = this.options.renderer || new z(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new B();
1019
1120
  }
1020
1121
  static parse(t, n) {
1021
1122
  return new e(n).parse(t);
@@ -1081,7 +1182,7 @@ ${e}</tr>
1081
1182
  case "text": {
1082
1183
  let i = a, o = this.renderer.text(i);
1083
1184
  for (; r + 1 < e.length && e[r + 1].type === "text";) i = e[++r], o += "\n" + this.renderer.text(i);
1084
- t ? n += this.renderer.paragraph({
1185
+ n += t ? this.renderer.paragraph({
1085
1186
  type: "paragraph",
1086
1187
  raw: o,
1087
1188
  text: o,
@@ -1091,7 +1192,7 @@ ${e}</tr>
1091
1192
  text: o,
1092
1193
  escaped: !0
1093
1194
  }]
1094
- }) : n += o;
1195
+ }) : o;
1095
1196
  continue;
1096
1197
  }
1097
1198
  default: {
@@ -1166,11 +1267,11 @@ ${e}</tr>
1166
1267
  }
1167
1268
  return n;
1168
1269
  }
1169
- }, U = class {
1270
+ }, H = class {
1170
1271
  options;
1171
1272
  block;
1172
1273
  constructor(e) {
1173
- this.options = e || f;
1274
+ this.options = e || _;
1174
1275
  }
1175
1276
  static passThroughHooks = /* @__PURE__ */ new Set([
1176
1277
  "preprocess",
@@ -1196,22 +1297,22 @@ ${e}</tr>
1196
1297
  return e;
1197
1298
  }
1198
1299
  provideLexer() {
1199
- return this.block ? z.lex : z.lexInline;
1300
+ return this.block ? R.lex : R.lexInline;
1200
1301
  }
1201
1302
  provideParser() {
1202
- return this.block ? H.parse : H.parseInline;
1303
+ return this.block ? V.parse : V.parseInline;
1203
1304
  }
1204
- }, W = new class {
1205
- defaults = d();
1305
+ }, U = new class {
1306
+ defaults = g();
1206
1307
  options = this.setOptions;
1207
1308
  parse = this.parseMarkdown(!0);
1208
1309
  parseInline = this.parseMarkdown(!1);
1209
- Parser = H;
1210
- Renderer = B;
1211
- TextRenderer = V;
1212
- Lexer = z;
1213
- Tokenizer = R;
1214
- Hooks = U;
1310
+ Parser = V;
1311
+ Renderer = z;
1312
+ TextRenderer = B;
1313
+ Lexer = R;
1314
+ Tokenizer = L;
1315
+ Hooks = H;
1215
1316
  constructor(...e) {
1216
1317
  this.use(...e);
1217
1318
  }
@@ -1232,7 +1333,7 @@ ${e}</tr>
1232
1333
  default: {
1233
1334
  let e = r;
1234
1335
  this.defaults.extensions?.childTokens?.[e.type] ? this.defaults.extensions.childTokens[e.type].forEach((r) => {
1235
- let i = e[r].flat(Infinity);
1336
+ let i = e[r].flat(1 / 0);
1236
1337
  n = n.concat(this.walkTokens(i, t));
1237
1338
  }) : e.tokens && (n = n.concat(this.walkTokens(e.tokens, t)));
1238
1339
  }
@@ -1262,7 +1363,7 @@ ${e}</tr>
1262
1363
  }
1263
1364
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1264
1365
  }), n.extensions = t), e.renderer) {
1265
- let t = this.defaults.renderer || new B(this.defaults);
1366
+ let t = this.defaults.renderer || new z(this.defaults);
1266
1367
  for (let n in e.renderer) {
1267
1368
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1268
1369
  if (["options", "parser"].includes(n)) continue;
@@ -1275,7 +1376,7 @@ ${e}</tr>
1275
1376
  n.renderer = t;
1276
1377
  }
1277
1378
  if (e.tokenizer) {
1278
- let t = this.defaults.tokenizer || new R(this.defaults);
1379
+ let t = this.defaults.tokenizer || new L(this.defaults);
1279
1380
  for (let n in e.tokenizer) {
1280
1381
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1281
1382
  if ([
@@ -1292,19 +1393,19 @@ ${e}</tr>
1292
1393
  n.tokenizer = t;
1293
1394
  }
1294
1395
  if (e.hooks) {
1295
- let t = this.defaults.hooks || new U();
1396
+ let t = this.defaults.hooks || new H();
1296
1397
  for (let n in e.hooks) {
1297
1398
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1298
1399
  if (["options", "block"].includes(n)) continue;
1299
1400
  let r = n, i = e.hooks[r], a = t[r];
1300
- U.passThroughHooks.has(n) ? t[r] = (e) => {
1301
- if (this.defaults.async && U.passThroughHooksRespectAsync.has(n)) return (async () => {
1401
+ t[r] = H.passThroughHooks.has(n) ? (e) => {
1402
+ if (this.defaults.async && H.passThroughHooksRespectAsync.has(n)) return (async () => {
1302
1403
  let n = await i.call(t, e);
1303
1404
  return a.call(t, n);
1304
1405
  })();
1305
1406
  let r = i.call(t, e);
1306
1407
  return a.call(t, r);
1307
- } : t[r] = (...e) => {
1408
+ } : (...e) => {
1308
1409
  if (this.defaults.async) return (async () => {
1309
1410
  let n = await i.apply(t, e);
1310
1411
  return n === !1 && (n = await a.apply(t, e)), n;
@@ -1335,10 +1436,10 @@ ${e}</tr>
1335
1436
  }, this;
1336
1437
  }
1337
1438
  lexer(e, t) {
1338
- return z.lex(e, t ?? this.defaults);
1439
+ return R.lex(e, t ?? this.defaults);
1339
1440
  }
1340
1441
  parser(e, t) {
1341
- return H.parse(e, t ?? this.defaults);
1442
+ return V.parse(e, t ?? this.defaults);
1342
1443
  }
1343
1444
  parseMarkdown(e) {
1344
1445
  return (t, n) => {
@@ -1350,16 +1451,16 @@ ${e}</tr>
1350
1451
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1351
1452
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1352
1453
  if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
1353
- let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? z.lex : z.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1454
+ let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer() : e ? R.lex : R.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
1354
1455
  i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
1355
- let o = await (i.hooks ? await i.hooks.provideParser() : e ? H.parse : H.parseInline)(a, i);
1456
+ let o = await (i.hooks ? await i.hooks.provideParser() : e ? V.parse : V.parseInline)(a, i);
1356
1457
  return i.hooks ? await i.hooks.postprocess(o) : o;
1357
1458
  })().catch(a);
1358
1459
  try {
1359
1460
  i.hooks && (t = i.hooks.preprocess(t));
1360
- let n = (i.hooks ? i.hooks.provideLexer() : e ? z.lex : z.lexInline)(t, i);
1461
+ let n = (i.hooks ? i.hooks.provideLexer() : e ? R.lex : R.lexInline)(t, i);
1361
1462
  i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
1362
- let r = (i.hooks ? i.hooks.provideParser() : e ? H.parse : H.parseInline)(n, i);
1463
+ let r = (i.hooks ? i.hooks.provideParser() : e ? V.parse : V.parseInline)(n, i);
1363
1464
  return i.hooks && (r = i.hooks.postprocess(r)), r;
1364
1465
  } catch (e) {
1365
1466
  return a(e);
@@ -1369,7 +1470,7 @@ ${e}</tr>
1369
1470
  onError(e, t) {
1370
1471
  return (n) => {
1371
1472
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1372
- let e = "<p>An error occurred:</p><pre>" + I(n.message + "", !0) + "</pre>";
1473
+ let e = "<p>An error occurred:</p><pre>" + F(n.message + "", !0) + "</pre>";
1373
1474
  return t ? Promise.resolve(e) : e;
1374
1475
  }
1375
1476
  if (t) return Promise.reject(n);
@@ -1377,19 +1478,19 @@ ${e}</tr>
1377
1478
  };
1378
1479
  }
1379
1480
  }();
1380
- function G(e, t) {
1381
- return W.parse(e, t);
1481
+ function W(e, t) {
1482
+ return U.parse(e, t);
1382
1483
  }
1383
- G.options = G.setOptions = function(e) {
1384
- return W.setOptions(e), G.defaults = W.defaults, p(G.defaults), G;
1385
- }, G.getDefaults = d, G.defaults = f, G.use = function(...e) {
1386
- return W.use(...e), G.defaults = W.defaults, p(G.defaults), G;
1387
- }, G.walkTokens = function(e, t) {
1388
- return W.walkTokens(e, t);
1389
- }, G.parseInline = W.parseInline, G.Parser = H, G.parser = H.parse, G.Renderer = B, G.TextRenderer = V, G.Lexer = z, G.lexer = z.lex, G.Tokenizer = R, G.Hooks = U, G.parse = G, G.options, G.setOptions, G.use, G.walkTokens, G.parseInline, H.parse, z.lex;
1484
+ W.options = W.setOptions = function(e) {
1485
+ return U.setOptions(e), W.defaults = U.defaults, te(W.defaults), W;
1486
+ }, W.getDefaults = g, W.defaults = _, W.use = function(...e) {
1487
+ return U.use(...e), W.defaults = U.defaults, te(W.defaults), W;
1488
+ }, W.walkTokens = function(e, t) {
1489
+ return U.walkTokens(e, t);
1490
+ }, W.parseInline = U.parseInline, W.Parser = V, W.parser = V.parse, W.Renderer = z, W.TextRenderer = B, W.Lexer = R, W.lexer = R.lex, W.Tokenizer = L, W.Hooks = H, W.parse = W, W.options, W.setOptions, W.use, W.walkTokens, W.parseInline, V.parse, R.lex;
1390
1491
  //#endregion
1391
1492
  //#region ../node_modules/ts-dedent/esm/index.js
1392
- function Ke(e) {
1493
+ function $e(e) {
1393
1494
  var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
1394
1495
  n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
1395
1496
  var r = n.reduce(function(e, t) {
@@ -1415,20 +1516,155 @@ function Ke(e) {
1415
1516
  }), a;
1416
1517
  }
1417
1518
  //#endregion
1418
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.mjs
1419
- function qe(e, { markdownAutoWrap: t }) {
1420
- return Ke(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1519
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-GMAD6QVW.mjs
1520
+ var G = typeof performance < "u" && typeof performance.now == "function", K = /* @__PURE__ */ n(() => G ? performance.now() : 0, "now"), q = "🧜 ", et = "Mermaid render", tt = "Mermaid", nt = {
1521
+ parse: "tertiary",
1522
+ prepare: "secondary",
1523
+ measure: "primary",
1524
+ layout: "primary-dark",
1525
+ layoutCore: "error",
1526
+ draw: "primary-light",
1527
+ paint: "secondary-dark",
1528
+ serialize: "tertiary-dark",
1529
+ render: "primary-light"
1530
+ };
1531
+ (class {
1532
+ constructor() {
1533
+ this.enabled = !1, this.autoPrint = !0, this.records = [], this.maxRecords = 200, this.roots = [], this.stack = [], this.buckets = {};
1534
+ }
1535
+ static {
1536
+ n(this, "Profiler");
1537
+ }
1538
+ enable() {
1539
+ return this.enabled = !0, this;
1540
+ }
1541
+ disable() {
1542
+ return this.enabled = !1, this;
1543
+ }
1544
+ start(e) {
1545
+ this.enabled && (this.roots = [], this.stack = [], this.buckets = {}, this.begin(e));
1546
+ }
1547
+ tickSync(e, t) {
1548
+ if (!this.enabled) return t();
1549
+ let n = K();
1550
+ try {
1551
+ return t();
1552
+ } finally {
1553
+ this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1554
+ }
1555
+ }
1556
+ async tick(e, t) {
1557
+ if (!this.enabled) return t();
1558
+ let n = K();
1559
+ try {
1560
+ return await t();
1561
+ } finally {
1562
+ this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1563
+ }
1564
+ }
1565
+ stop() {
1566
+ if (!this.enabled) return;
1567
+ for (; this.stack.length > 0;) this.end();
1568
+ let e = this.roots.at(-1), t = this.runLabel ?? e?.name;
1569
+ return e && (this.records.push({
1570
+ label: t ?? e.name,
1571
+ tree: e,
1572
+ buckets: { ...this.buckets }
1573
+ }), this.records.length > this.maxRecords && this.records.splice(0, this.records.length - this.maxRecords), this.autoPrint && this.printSummary(e, t)), this.runLabel = void 0, e;
1574
+ }
1575
+ begin(e) {
1576
+ if (!this.enabled) return;
1577
+ let t = {
1578
+ name: e,
1579
+ start: K(),
1580
+ duration: -1,
1581
+ children: []
1582
+ }, n = this.stack.at(-1);
1583
+ if (n ? n.children.push(t) : this.roots.push(t), this.stack.push(t), G && typeof performance.mark == "function") try {
1584
+ performance.mark(`${q}${e} \u25B6`);
1585
+ } catch {}
1586
+ }
1587
+ end() {
1588
+ if (!this.enabled) return;
1589
+ let e = this.stack.pop();
1590
+ if (!e) return;
1591
+ let t = K();
1592
+ if (e.duration = t - e.start, G && typeof performance.measure == "function") try {
1593
+ performance.measure(`${q}${e.name}`, {
1594
+ start: e.start,
1595
+ end: t,
1596
+ detail: { devtools: {
1597
+ dataType: "track-entry",
1598
+ track: et,
1599
+ trackGroup: tt,
1600
+ color: nt[e.name] ?? "primary",
1601
+ tooltipText: `${e.name} \u2014 ${e.duration.toFixed(1)} ms`
1602
+ } }
1603
+ });
1604
+ } catch {}
1605
+ }
1606
+ async span(e, t) {
1607
+ if (!this.enabled) return t();
1608
+ this.begin(e);
1609
+ try {
1610
+ return await t();
1611
+ } finally {
1612
+ this.end();
1613
+ }
1614
+ }
1615
+ report() {
1616
+ return this.records.at(-1)?.tree ?? this.roots.at(-1);
1617
+ }
1618
+ clear() {
1619
+ this.records.length = 0, this.roots = [], this.stack = [], this.runLabel = void 0;
1620
+ }
1621
+ reset() {
1622
+ this.roots = [], this.stack = [];
1623
+ }
1624
+ printSummary(e = this.report(), t) {
1625
+ if (!e) return;
1626
+ let r = e.duration, i = t && t !== e.name ? `${e.name} [${t}]` : e.name, a = ["ms % phase"], o = /* @__PURE__ */ n((e, t) => {
1627
+ let n = " ".repeat(t), i = e.duration.toFixed(1).padStart(8), s = r > 0 ? `${(e.duration / r * 100).toFixed(0).padStart(3)}%` : " -";
1628
+ a.push(`${i} ${s} ${n}${e.name}`);
1629
+ for (let n of e.children) o(n, t + 1);
1630
+ if (e.children.length > 0) {
1631
+ let t = e.children.reduce((e, t) => e + t.duration, 0), r = e.duration - t;
1632
+ if (r > .5) {
1633
+ let e = r.toFixed(1).padStart(8);
1634
+ a.push(`${e} ${n} (self)`);
1635
+ }
1636
+ }
1637
+ }, "walk");
1638
+ o(e, 0);
1639
+ let s = Object.keys(this.buckets);
1640
+ if (s.length > 0) {
1641
+ a.push("—— buckets (summed) ——");
1642
+ for (let e of s) a.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
1643
+ }
1644
+ console.log(`${q}mermaid render profile \xB7 ${i}
1645
+ ${a.join("\n")}`);
1646
+ }
1647
+ }), globalThis.injected ??= {
1648
+ includeLargeFeatures: !0,
1649
+ profiling: !1,
1650
+ version: "0.0.0"
1651
+ };
1652
+ var rt = h.default.extend({ raf(e) {
1653
+ typeof queueMicrotask == "function" ? queueMicrotask(e) : setTimeout(e, 0);
1654
+ } }).extend(ee.default);
1655
+ function it(e, { markdownAutoWrap: t }) {
1656
+ return $e(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1421
1657
  }
1422
- e(qe, "preprocessMarkdown");
1423
- function Je(e) {
1658
+ n(it, "preprocessMarkdown");
1659
+ function at(e) {
1424
1660
  return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
1425
1661
  content: e,
1426
1662
  type: "normal"
1427
1663
  })) ?? []);
1428
1664
  }
1429
- e(Je, "nonMarkdownToLines");
1430
- function Ye(t, n = {}) {
1431
- let r = qe(t, n), i = G.lexer(r), a = [[]], o = 0;
1665
+ n(at, "nonMarkdownToLines");
1666
+ function ot(e, t = {}) {
1667
+ let r = it(e, t), i = W.lexer(r), a = [[]], o = 0;
1432
1668
  function s(e, t = "normal") {
1433
1669
  e.type === "text" ? e.text.split("\n").forEach((e, n) => {
1434
1670
  n !== 0 && (o++, a.push([])), e.split(" ").forEach((e) => {
@@ -1444,7 +1680,7 @@ function Ye(t, n = {}) {
1444
1680
  type: "normal"
1445
1681
  });
1446
1682
  }
1447
- return e(s, "processNode"), i.forEach((e) => {
1683
+ return n(s, "processNode"), i.forEach((e) => {
1448
1684
  e.type === "paragraph" ? e.tokens?.forEach((e) => {
1449
1685
  s(e);
1450
1686
  }) : e.type === "html" ? a[o].push({
@@ -1456,28 +1692,28 @@ function Ye(t, n = {}) {
1456
1692
  });
1457
1693
  }), a;
1458
1694
  }
1459
- e(Ye, "markdownToLines");
1460
- function Xe(e) {
1695
+ n(ot, "markdownToLines");
1696
+ function st(e) {
1461
1697
  return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
1462
1698
  }
1463
- e(Xe, "nonMarkdownToHTML");
1464
- function Ze(n, { markdownAutoWrap: r } = {}) {
1465
- let i = G.lexer(n);
1699
+ n(st, "nonMarkdownToHTML");
1700
+ function ct(e, { markdownAutoWrap: t } = {}) {
1701
+ let i = W.lexer(e);
1466
1702
  function a(e) {
1467
- return e.type === "text" ? r === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : e.text.replace(/\n */g, "<br/>") : e.type === "strong" ? `<strong>${e.tokens?.map(a).join("")}</strong>` : e.type === "em" ? `<em>${e.tokens?.map(a).join("")}</em>` : e.type === "paragraph" ? `<p>${e.tokens?.map(a).join("")}</p>` : e.type === "space" ? "" : e.type === "html" ? `${e.text}` : e.type === "escape" ? e.text : (t.warn(`Unsupported markdown: ${e.type}`), e.raw);
1703
+ return e.type === "text" ? t === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : e.text.replace(/\n */g, "<br/>") : e.type === "strong" ? `<strong>${e.tokens?.map(a).join("")}</strong>` : e.type === "em" ? `<em>${e.tokens?.map(a).join("")}</em>` : e.type === "paragraph" ? `<p>${e.tokens?.map(a).join("")}</p>` : e.type === "space" ? "" : e.type === "html" ? `${e.text}` : e.type === "escape" ? e.text : (r.warn(`Unsupported markdown: ${e.type}`), e.raw);
1468
1704
  }
1469
- return e(a, "output"), i.map(a).join("");
1705
+ return n(a, "output"), i.map(a).join("");
1470
1706
  }
1471
- e(Ze, "markdownToHTML");
1472
- function Qe(e) {
1707
+ n(ct, "markdownToHTML");
1708
+ function lt(e) {
1473
1709
  return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
1474
1710
  }
1475
- e(Qe, "splitTextToChars");
1476
- function $e(e, t) {
1477
- return K(e, [], Qe(t.content), t.type);
1711
+ n(lt, "splitTextToChars");
1712
+ function ut(e, t) {
1713
+ return J(e, [], lt(t.content), t.type);
1478
1714
  }
1479
- e($e, "splitWordToFitWidth");
1480
- function K(e, t, n, r) {
1715
+ n(ut, "splitWordToFitWidth");
1716
+ function J(e, t, n, r) {
1481
1717
  if (n.length === 0) return [{
1482
1718
  content: t.join(""),
1483
1719
  type: r
@@ -1489,7 +1725,7 @@ function K(e, t, n, r) {
1489
1725
  return e([{
1490
1726
  content: o.join(""),
1491
1727
  type: r
1492
- }]) ? K(e, o, a, r) : (t.length === 0 && i && (t.push(i), n.shift()), [{
1728
+ }]) ? J(e, o, a, r) : (t.length === 0 && i && (t.push(i), n.shift()), [{
1493
1729
  content: t.join(""),
1494
1730
  type: r
1495
1731
  }, {
@@ -1497,13 +1733,13 @@ function K(e, t, n, r) {
1497
1733
  type: r
1498
1734
  }]);
1499
1735
  }
1500
- e(K, "splitWordToFitWidthRecursion");
1501
- function et(e, t) {
1736
+ n(J, "splitWordToFitWidthRecursion");
1737
+ function dt(e, t) {
1502
1738
  if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
1503
- return q(e, t);
1739
+ return Y(e, t);
1504
1740
  }
1505
- e(et, "splitLineToFitWidth");
1506
- function q(e, t, n = [], r = []) {
1741
+ n(dt, "splitLineToFitWidth");
1742
+ function Y(e, t, n = [], r = []) {
1507
1743
  if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
1508
1744
  let i = "";
1509
1745
  e[0].content === " " && (i = " ", e.shift());
@@ -1514,66 +1750,65 @@ function q(e, t, n = [], r = []) {
1514
1750
  if (i !== "" && o.push({
1515
1751
  content: i,
1516
1752
  type: "normal"
1517
- }), o.push(a), t(o)) return q(e, t, n, o);
1753
+ }), o.push(a), t(o)) return Y(e, t, n, o);
1518
1754
  if (r.length > 0) n.push(r), e.unshift(a);
1519
1755
  else if (a.content) {
1520
- let [r, i] = $e(t, a);
1756
+ let [r, i] = ut(t, a);
1521
1757
  n.push([r]), i.content && e.unshift(i);
1522
1758
  }
1523
- return q(e, t, n);
1759
+ return Y(e, t, n);
1524
1760
  }
1525
- e(q, "splitLineToFitWidthRecursion");
1526
- function J(e, t) {
1761
+ n(Y, "splitLineToFitWidthRecursion");
1762
+ function X(e, t) {
1527
1763
  t && e.attr("style", t);
1528
1764
  }
1529
- e(J, "applyStyle");
1530
- var tt = 16384;
1531
- async function Y(e, t, n, c, l = !1, u = a()) {
1765
+ n(X, "applyStyle");
1766
+ var ft = 16384;
1767
+ async function pt(e, t, n, r, i = !1, u = s()) {
1532
1768
  let d = e.append("foreignObject");
1533
- d.attr("width", `${Math.min(10 * n, tt)}px`), d.attr("height", `${Math.min(10 * n, tt)}px`);
1534
- let f = d.append("xhtml:div"), p = r(t.label) ? await i(t.label.replace(o.lineBreakRegex, "\n"), u) : s(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
1535
- h.html(p), J(h, t.labelStyle), h.attr("class", `${m} ${c}`), J(f, t.labelStyle), f.style("display", "table-cell"), f.style("white-space", "nowrap"), f.style("line-height", "1.5"), n !== Infinity && (f.style("max-width", n + "px"), f.style("text-align", "center")), f.attr("xmlns", "http://www.w3.org/1999/xhtml"), l && f.attr("class", "labelBkg");
1536
- let g = f.node().getBoundingClientRect();
1537
- return g.width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px"), g = f.node().getBoundingClientRect()), d.node();
1769
+ d.attr("width", `${Math.min(10 * n, ft)}px`), d.attr("height", `${Math.min(10 * n, ft)}px`);
1770
+ let f = d.append("xhtml:div"), p = a(t.label) ? await o(t.label.replace(c.lineBreakRegex, "\n"), u) : l(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
1771
+ return h.html(p), X(h, t.labelStyle), h.attr("class", `${m} ${r}`), X(f, t.labelStyle), f.style("display", "table-cell"), f.style("white-space", "nowrap"), f.style("line-height", "1.5"), n !== Infinity && (f.style("max-width", n + "px"), f.style("text-align", "center")), f.attr("xmlns", "http://www.w3.org/1999/xhtml"), i && f.attr("class", "labelBkg"), (await rt.measure(() => f.node().getBoundingClientRect())).width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px")), d.node();
1538
1772
  }
1539
- e(Y, "addHtmlSpan");
1540
- function X(e, t, n, r = !1) {
1773
+ n(pt, "addHtmlSpan");
1774
+ function Z(e, t, n, r = !1) {
1541
1775
  let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
1542
1776
  return r && i.attr("text-anchor", "middle"), i;
1543
1777
  }
1544
- e(X, "createTspan");
1545
- function nt(e, t, n) {
1546
- let r = e.append("text"), i = X(r, 1, t);
1547
- Q(i, n);
1778
+ n(Z, "createTspan");
1779
+ function mt(e, t, n) {
1780
+ let r = e.append("text"), i = Z(r, 1, t);
1781
+ $(i, n);
1548
1782
  let a = i.node().getComputedTextLength();
1549
1783
  return r.remove(), a;
1550
1784
  }
1551
- e(nt, "computeWidthOfText");
1552
- function rt(e, t, n) {
1553
- let r = e.append("text"), i = X(r, 1, t);
1554
- Q(i, [{
1785
+ n(mt, "computeWidthOfText");
1786
+ function ht(e, t, n) {
1787
+ let r = e.append("text"), i = Z(r, 1, t);
1788
+ $(i, [{
1555
1789
  content: n,
1556
1790
  type: "normal"
1557
1791
  }]);
1558
1792
  let a = i.node()?.getBoundingClientRect();
1559
1793
  return a && r.remove(), a;
1560
1794
  }
1561
- e(rt, "computeDimensionOfText");
1562
- function it(t, n, r, i = !1, a = !1) {
1563
- let o = 1.1, s = n.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
1795
+ n(ht, "computeDimensionOfText");
1796
+ function gt(e, t, r, i = !1, a = !1) {
1797
+ let o = 1.1, s = t.append("g"), c = s.insert("rect").attr("class", "background").attr("style", "stroke: none"), l = s.append("text").attr("y", "-10.1");
1564
1798
  a && l.attr("text-anchor", "middle");
1565
1799
  let u = 0;
1566
- for (let n of r) {
1567
- let r = /* @__PURE__ */ e((e) => nt(s, o, e) <= t, "checkWidth"), i = r(n) ? [n] : et(n, r);
1568
- for (let e of i) Q(X(l, u, o, a), e), u++;
1800
+ for (let t of r) {
1801
+ let r = /* @__PURE__ */ n((t) => mt(s, o, t) <= e, "checkWidth"), i = r(t) ? [t] : dt(t, r);
1802
+ for (let e of i) $(Z(l, u, o, a), e), u++;
1569
1803
  }
1570
1804
  if (i) {
1571
1805
  let e = l.node().getBBox();
1572
1806
  return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
1573
- } else return l.node();
1807
+ }
1808
+ return l.node();
1574
1809
  }
1575
- e(it, "createFormattedText");
1576
- function Z(e) {
1810
+ n(gt, "createFormattedText");
1811
+ function Q(e) {
1577
1812
  return e.replace(/&(amp|lt|gt);/g, (e, t) => {
1578
1813
  switch (t) {
1579
1814
  case "amp": return "&";
@@ -1583,46 +1818,47 @@ function Z(e) {
1583
1818
  }
1584
1819
  });
1585
1820
  }
1586
- e(Z, "decodeHTMLEntities");
1587
- function Q(e, t) {
1821
+ n(Q, "decodeHTMLEntities");
1822
+ function $(e, t) {
1588
1823
  e.text(""), t.forEach((t, n) => {
1589
1824
  let r = e.append("tspan").attr("font-style", t.type === "em" ? "italic" : "normal").attr("class", "text-inner-tspan").attr("font-weight", t.type === "strong" ? "bold" : "normal");
1590
- n === 0 ? r.text(Z(t.content)) : r.text(" " + Z(t.content));
1825
+ n === 0 ? r.text(Q(t.content)) : r.text(" " + Q(t.content));
1591
1826
  });
1592
1827
  }
1593
- e(Q, "updateTextContentAndStyles");
1594
- async function $(e, t = {}) {
1828
+ n($, "updateTextContentAndStyles");
1829
+ async function _t(e, t = {}) {
1595
1830
  let n = [];
1596
1831
  e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
1597
1832
  let n = `${r}:${i}`;
1598
- return await l(n) ? await u(n, void 0, { class: "label-icon" }) : `<i class='${s(e, t).replace(":", " ")}'></i>`;
1833
+ return await d(n) ? await f(n, void 0, { class: "label-icon" }) : `<i class='${l(e, t).replace(":", " ")}'></i>`;
1599
1834
  })()), e));
1600
1835
  let r = await Promise.all(n);
1601
1836
  return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
1602
1837
  }
1603
- e($, "replaceIconSubstring");
1604
- var at = /* @__PURE__ */ e(async (e, i = "", { style: a = "", isTitle: o = !1, classes: s = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1605
- if (t.debug("XYZ createText", i, a, o, s, l, d, "addSvgBackground: ", p), l) {
1606
- let t = await $(c(u ? Ze(i, m) : Xe(i)), m), n = i.replace(/\\\\/g, "\\");
1607
- return await Y(e, {
1838
+ n(_t, "replaceIconSubstring");
1839
+ var vt = /* @__PURE__ */ n(async (e, t = "", { style: n = "", isTitle: o = !1, classes: s = "", useHtmlLabels: c = !0, markdown: l = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1840
+ if (r.debug("XYZ createText", t, n, o, s, c, d, "addSvgBackground: ", p), c) {
1841
+ let r = l ? ct(t, m) : st(t), i = await _t(u(r), m), o = t.replace(/\\\\/g, "\\");
1842
+ return await pt(e, {
1608
1843
  isNode: d,
1609
- label: r(i) ? n : t,
1610
- labelStyle: a.replace("fill:", "color:")
1844
+ label: a(t) ? o : i,
1845
+ labelStyle: n.replace("fill:", "color:")
1611
1846
  }, f, s, p, m);
1612
- } else {
1613
- let t = c(i.replace(/<br\s*\/?>/g, "<br/>")), r = it(f, e, u ? Ye(t.replace("<br>", "<br/>"), m) : Je(t), i ? p : !1, !d);
1847
+ }
1848
+ {
1849
+ let r = u(t.replace(/<br\s*\/?>/g, "<br/>")), a = gt(f, e, l ? ot(r.replace("<br>", "<br/>"), m) : at(r), t ? p : !1, !d);
1614
1850
  if (d) {
1615
- /stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
1616
- let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1617
- n(r).attr("style", e);
1851
+ /stroke:/.exec(n) && (n = n.replace("stroke:", "lineColor:"));
1852
+ let e = n.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1853
+ i(a).attr("style", e);
1618
1854
  } else {
1619
- let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1620
- n(r).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1621
- let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1622
- n(r).select("text").attr("style", t);
1855
+ let e = n.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1856
+ i(a).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1857
+ let t = n.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1858
+ i(a).select("text").attr("style", t);
1623
1859
  }
1624
- return o ? n(r).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(r).selectAll("tspan.text-outer-tspan").classed("row", !0), r;
1860
+ return o ? i(a).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : i(a).selectAll("tspan.text-outer-tspan").classed("row", !0), a;
1625
1861
  }
1626
1862
  }, "createText");
1627
1863
  //#endregion
1628
- export { at as n, Ke as r, rt as t };
1864
+ export { $e as i, vt as n, rt as r, ht as t };