@sme.up/ketchup2 2.7.0 → 2.8.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/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  11. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  12. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  16. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  17. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  18. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  19. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  21. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  22. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  28. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  31. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  32. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  33. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  34. package/dist/channel-BvUly9jN.cjs +1 -0
  35. package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
  36. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  37. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  38. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  39. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  40. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  41. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  42. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  43. package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  44. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  45. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  46. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  47. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  48. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
  49. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  50. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  51. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  52. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  53. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  54. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  55. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  56. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  57. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  58. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  59. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  60. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  61. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  62. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  63. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  64. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  65. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  66. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  67. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  68. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  69. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  70. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  71. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  72. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  73. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  74. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
  75. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  76. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  77. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  78. package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
  79. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
  80. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  81. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  82. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  83. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  84. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  85. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  86. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  87. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  88. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  89. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  90. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  91. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  92. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  93. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  94. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  95. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  96. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  97. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  98. package/dist/components/data-table/data-table-types.d.ts +52 -1
  99. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table.d.ts.map +1 -1
  101. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  102. package/dist/components/data-table/header/header-types.d.ts +7 -1
  103. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  104. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  105. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  106. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  107. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  108. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  110. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  111. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  112. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  113. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  114. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  115. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  116. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  117. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
  118. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  119. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  120. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  121. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  122. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  123. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  124. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  125. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  126. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  127. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  128. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  129. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  130. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  131. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  132. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  133. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  134. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  135. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  136. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  137. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  138. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  139. package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
  140. package/dist/dist-DrOEvFlx.cjs +1 -0
  141. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  142. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  143. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  144. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  145. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  146. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  147. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  148. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  150. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  151. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  152. package/dist/functional-components/row/row-types.d.ts +5 -0
  153. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  154. package/dist/functional-components/row/row.d.ts.map +1 -1
  155. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  156. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  157. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  158. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  159. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  160. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  161. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  162. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  163. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
  164. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  165. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  166. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  167. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  168. package/dist/index.d.ts +4 -1
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  171. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  172. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  173. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  174. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  175. package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  176. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  177. package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  178. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  179. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  180. package/dist/katex-DUe6VLjC.cjs +257 -0
  181. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  182. package/dist/ketchup2.cjs.js +156 -154
  183. package/dist/ketchup2.css +1 -1
  184. package/dist/ketchup2.es.js +31759 -29656
  185. package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
  186. package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
  187. package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
  188. package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
  189. package/dist/locale/en/translation.json.d.ts +16 -0
  190. package/dist/locale/it/translation.json.d.ts +16 -0
  191. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  192. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  193. package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  194. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  195. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  196. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  197. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  198. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  199. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  200. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  201. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  202. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  203. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  204. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  205. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  206. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  207. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  208. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  209. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  210. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  211. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  212. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  213. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  214. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  215. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  216. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  217. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  218. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  219. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  220. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  221. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  222. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  223. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  224. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  225. package/dist/src-B16ML7oM.cjs +1 -0
  226. package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
  227. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  228. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  229. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  230. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  231. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  232. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  233. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  234. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  235. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  236. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  237. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  238. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  239. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  240. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  241. package/dist/types/translation.d.ts +17 -1
  242. package/dist/types/translation.d.ts.map +1 -1
  243. package/dist/utils/data-structures.d.ts +2 -1
  244. package/dist/utils/data-structures.d.ts.map +1 -1
  245. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  246. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  247. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  248. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  249. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  250. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  251. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  252. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  253. package/package.json +5 -2
  254. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  255. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  256. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  257. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  258. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  259. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  260. package/dist/channel-DJpMBAs-.cjs +0 -1
  261. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  262. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  263. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  264. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  265. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  266. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  267. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  268. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  269. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  270. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  271. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  272. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  273. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  274. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  275. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  276. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  277. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  278. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  279. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  280. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  281. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  282. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  283. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  284. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  285. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  286. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  287. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  288. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  289. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  291. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  292. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  293. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  294. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  295. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  296. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  297. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  298. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  299. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  300. package/dist/dist-D8RD2QWc.cjs +0 -1
  301. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  302. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  303. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  304. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  305. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  306. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  307. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  308. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  309. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  310. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  311. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  312. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  313. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  314. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  315. package/dist/katex-CkiTumqg.cjs +0 -257
  316. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  317. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  318. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  319. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  320. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  321. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  322. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  323. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  324. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  325. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  326. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  327. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  328. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  329. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  330. package/dist/src-DEmZ9bFr.cjs +0 -1
  331. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  332. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  333. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  334. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  335. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  336. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  337. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  338. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  339. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  340. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  341. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  342. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  343. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  344. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,228 +1,102 @@
1
- import { g as e, h as t, p as n } from "./src-DjDATEq3.js";
2
- import { A as r, F as i, b as a, s as o, z as s } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { a as c } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- //#region node_modules/@iconify/utils/lib/icon/defaults.js
5
- var l = Object.freeze({
6
- left: 0,
7
- top: 0,
8
- width: 16,
9
- height: 16
10
- }), u = Object.freeze({
11
- rotate: 0,
12
- vFlip: !1,
13
- hFlip: !1
14
- }), d = Object.freeze({
15
- ...l,
16
- ...u
17
- }), f = Object.freeze({
18
- ...d,
19
- body: "",
20
- hidden: !1
21
- }), p = Object.freeze({
22
- width: null,
23
- height: null
24
- }), m = Object.freeze({
25
- ...p,
26
- ...u
27
- }), h = (e, t, n, r = "") => {
28
- let i = e.split(":");
29
- if (e.slice(0, 1) === "@") {
30
- if (i.length < 2 || i.length > 3) return null;
31
- r = i.shift().slice(1);
32
- }
33
- if (i.length > 3 || !i.length) return null;
34
- if (i.length > 1) {
35
- let e = i.pop(), n = i.pop(), a = {
36
- provider: i.length > 0 ? i[0] : r,
37
- prefix: n,
38
- name: e
1
+ import { _ as e, m as t, p as n, y as r } from "./src-D-6ZfKf9.js";
2
+ import { A as i, F as a, b as o, s, z as c } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as l } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { a as u } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { n as d, t as f } from "./chunk-PWAF6VOD-CbmhQpgH.js";
6
+ //#region node_modules/fastdom/fastdom.js
7
+ var p = /* @__PURE__ */ e(((e, t) => {
8
+ (function(e) {
9
+ var n = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.msRequestAnimationFrame || function(e) {
10
+ return setTimeout(e, 16);
39
11
  };
40
- return t && !g(a) ? null : a;
41
- }
42
- let a = i[0], o = a.split("-");
43
- if (o.length > 1) {
44
- let e = {
45
- provider: r,
46
- prefix: o.shift(),
47
- name: o.join("-")
48
- };
49
- return t && !g(e) ? null : e;
50
- }
51
- if (n && r === "") {
52
- let e = {
53
- provider: r,
54
- prefix: "",
55
- name: a
12
+ function r() {
13
+ var t = this;
14
+ t.reads = [], t.writes = [], t.raf = n.bind(e);
15
+ }
16
+ r.prototype = {
17
+ constructor: r,
18
+ runTasks: function(e) {
19
+ for (var t; t = e.shift();) t();
20
+ },
21
+ measure: function(e, t) {
22
+ var n = t ? e.bind(t) : e;
23
+ return this.reads.push(n), i(this), n;
24
+ },
25
+ mutate: function(e, t) {
26
+ var n = t ? e.bind(t) : e;
27
+ return this.writes.push(n), i(this), n;
28
+ },
29
+ clear: function(e) {
30
+ return o(this.reads, e) || o(this.writes, e);
31
+ },
32
+ extend: function(e) {
33
+ if (typeof e != "object") throw Error("expected object");
34
+ var t = Object.create(this);
35
+ return s(t, e), t.fastdom = this, t.initialize && t.initialize(), t;
36
+ },
37
+ catch: null
56
38
  };
57
- return t && !g(e, n) ? null : e;
58
- }
59
- return null;
60
- }, g = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
61
- //#endregion
62
- //#region node_modules/@iconify/utils/lib/icon/transformations.js
63
- function ee(e, t) {
64
- let n = {};
65
- !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
66
- let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
67
- return r && (n.rotate = r), n;
68
- }
69
- //#endregion
70
- //#region node_modules/@iconify/utils/lib/icon/merge.js
71
- function te(e, t) {
72
- let n = ee(e, t);
73
- for (let r in f) r in u ? r in e && !(r in n) && (n[r] = u[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
74
- return n;
75
- }
76
- //#endregion
77
- //#region node_modules/@iconify/utils/lib/icon-set/tree.js
78
- function ne(e, t) {
79
- let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
80
- function a(e) {
81
- if (n[e]) return i[e] = [];
82
- if (!(e in i)) {
83
- i[e] = null;
84
- let t = r[e] && r[e].parent, n = t && a(t);
85
- n && (i[e] = [t].concat(n));
39
+ function i(e) {
40
+ e.scheduled || (e.scheduled = !0, e.raf(a.bind(null, e)));
86
41
  }
87
- return i[e];
88
- }
89
- return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
90
- }
91
- //#endregion
92
- //#region node_modules/@iconify/utils/lib/icon-set/get-icon.js
93
- function re(e, t, n) {
94
- let r = e.icons, i = e.aliases || Object.create(null), a = {};
95
- function o(e) {
96
- a = te(r[e] || i[e], a);
97
- }
98
- return o(t), n.forEach(o), te(e, a);
99
- }
100
- function ie(e, t) {
101
- if (e.icons[t]) return re(e, t, []);
102
- let n = ne(e, [t])[t];
103
- return n ? re(e, t, n) : null;
104
- }
105
- //#endregion
106
- //#region node_modules/@iconify/utils/lib/svg/size.js
107
- var ae = /(-?[0-9.]*[0-9]+[0-9.]*)/g, oe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
108
- function se(e, t, n) {
109
- if (t === 1) return e;
110
- if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
111
- if (typeof e != "string") return e;
112
- let r = e.split(ae);
113
- if (r === null || !r.length) return e;
114
- let i = [], a = r.shift(), o = oe.test(a);
115
- for (;;) {
116
- if (o) {
117
- let e = parseFloat(a);
118
- isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
119
- } else i.push(a);
120
- if (a = r.shift(), a === void 0) return i.join("");
121
- o = !o;
122
- }
123
- }
124
- //#endregion
125
- //#region node_modules/@iconify/utils/lib/svg/defs.js
126
- function ce(e, t = "defs") {
127
- let n = "", r = e.indexOf("<" + t);
128
- for (; r >= 0;) {
129
- let i = e.indexOf(">", r), a = e.indexOf("</" + t);
130
- if (i === -1 || a === -1) break;
131
- let o = e.indexOf(">", a);
132
- if (o === -1) break;
133
- n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
134
- }
135
- return {
136
- defs: n,
137
- content: e
138
- };
139
- }
140
- function le(e, t) {
141
- return e ? "<defs>" + e + "</defs>" + t : t;
142
- }
143
- function ue(e, t, n) {
144
- let r = ce(e);
145
- return le(r.defs, t + r.content + n);
146
- }
147
- //#endregion
148
- //#region node_modules/@iconify/utils/lib/svg/build.js
149
- var de = (e) => e === "unset" || e === "undefined" || e === "none";
150
- function fe(e, t) {
151
- let n = {
152
- ...d,
153
- ...e
154
- }, r = {
155
- ...m,
156
- ...t
157
- }, i = {
158
- left: n.left,
159
- top: n.top,
160
- width: n.width,
161
- height: n.height
162
- }, a = n.body;
163
- [n, r].forEach((e) => {
164
- let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
165
- n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
166
- let s;
167
- switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
168
- case 1:
169
- s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
170
- break;
171
- case 2:
172
- t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
173
- break;
174
- case 3:
175
- s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
176
- break;
42
+ function a(e) {
43
+ var t = e.writes, n = e.reads, r;
44
+ try {
45
+ n.length, e.runTasks(n), t.length, e.runTasks(t);
46
+ } catch (e) {
47
+ r = e;
48
+ }
49
+ if (e.scheduled = !1, (n.length || t.length) && i(e), r) if (r.message, e.catch) e.catch(r);
50
+ else throw r;
177
51
  }
178
- o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = ue(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
179
- });
180
- let o = r.width, s = r.height, c = i.width, l = i.height, u, f;
181
- o === null ? (f = s === null ? "1em" : s === "auto" ? l : s, u = se(f, c / l)) : (u = o === "auto" ? c : o, f = s === null ? se(u, l / c) : s === "auto" ? l : s);
182
- let p = {}, h = (e, t) => {
183
- de(t) || (p[e] = t.toString());
184
- };
185
- h("width", u), h("height", f);
186
- let g = [
187
- i.left,
188
- i.top,
189
- c,
190
- l
191
- ];
192
- return p.viewBox = g.join(" "), {
193
- attributes: p,
194
- viewBox: g,
195
- body: a
196
- };
197
- }
198
- //#endregion
199
- //#region node_modules/@iconify/utils/lib/svg/id.js
200
- var pe = /\sid="(\S+)"/g, me = /* @__PURE__ */ new Map();
201
- function he(e) {
202
- e = e.replace(/[0-9]+$/, "") || "a";
203
- let t = me.get(e) || 0;
204
- return me.set(e, t + 1), t ? `${e}${t}` : e;
205
- }
206
- function ge(e) {
207
- let t = [], n;
208
- for (; n = pe.exec(e);) t.push(n[1]);
209
- if (!t.length) return e;
210
- let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
211
- return t.forEach((t) => {
212
- let n = he(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
213
- e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
214
- }), e = e.replace(new RegExp(r, "g"), ""), e;
215
- }
216
- //#endregion
217
- //#region node_modules/@iconify/utils/lib/svg/html.js
218
- function _e(e, t) {
219
- let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
220
- for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
221
- return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
222
- }
223
- //#endregion
224
- //#region node_modules/marked/lib/marked.esm.js
225
- function _() {
52
+ function o(e, t) {
53
+ var n = e.indexOf(t);
54
+ return !!~n && !!e.splice(n, 1);
55
+ }
56
+ function s(e, t) {
57
+ for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
58
+ }
59
+ var c = e.fastdom = e.fastdom || new r();
60
+ typeof define == "function" ? define(function() {
61
+ return c;
62
+ }) : typeof t == "object" && (t.exports = c);
63
+ })(typeof window < "u" ? window : e === void 0 ? globalThis : e);
64
+ })), m = /* @__PURE__ */ e(((e, t) => {
65
+ (function() {
66
+ var e = {
67
+ initialize: function() {
68
+ this._tasks = /* @__PURE__ */ new Map();
69
+ },
70
+ mutate: function(e, t) {
71
+ return n(this, "mutate", e, t);
72
+ },
73
+ measure: function(e, t) {
74
+ return n(this, "measure", e, t);
75
+ },
76
+ clear: function(e) {
77
+ var t = this._tasks, n = t.get(e);
78
+ this.fastdom.clear(n), t.delete(e);
79
+ }
80
+ };
81
+ function n(e, t, n, r) {
82
+ var i = e._tasks, a = e.fastdom, o, s = new Promise(function(e, c) {
83
+ o = a[t](function() {
84
+ i.delete(s);
85
+ try {
86
+ e(r ? n.call(r) : n());
87
+ } catch (e) {
88
+ c(e);
89
+ }
90
+ }, r);
91
+ });
92
+ return i.set(s, o), s;
93
+ }
94
+ (typeof define)[0] == "f" ? define(function() {
95
+ return e;
96
+ }) : (typeof t)[0] == "o" ? t.exports = e : window.fastdomPromised = e;
97
+ })();
98
+ })), h = /* @__PURE__ */ r(p(), 1), ee = /* @__PURE__ */ r(m(), 1);
99
+ function g() {
226
100
  return {
227
101
  async: !1,
228
102
  breaks: !1,
@@ -236,22 +110,22 @@ function _() {
236
110
  walkTokens: null
237
111
  };
238
112
  }
239
- var v = _();
240
- function ve(e) {
241
- v = e;
113
+ var _ = g();
114
+ function te(e) {
115
+ _ = e;
242
116
  }
243
- var y = { exec: () => null };
244
- function b(e, t = "") {
117
+ var v = { exec: () => null };
118
+ function y(e, t = "") {
245
119
  let n = typeof e == "string" ? e : e.source, r = {
246
120
  replace: (e, t) => {
247
121
  let i = typeof t == "string" ? t : t.source;
248
- return i = i.replace(x.caret, "$1"), n = n.replace(e, i), r;
122
+ return i = i.replace(b.caret, "$1"), n = n.replace(e, i), r;
249
123
  },
250
124
  getRegex: () => new RegExp(n, t)
251
125
  };
252
126
  return r;
253
127
  }
254
- var x = {
128
+ var b = {
255
129
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
256
130
  outputLinkReplace: /\\([\[\]])/g,
257
131
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -308,111 +182,111 @@ var x = {
308
182
  fencesBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}(?:\`\`\`|~~~)`),
309
183
  headingBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}#`),
310
184
  htmlBeginRegex: (e) => RegExp(`^ {0,${Math.min(3, e - 1)}}<(?:[a-z].*>|!--)`, "i")
311
- }, ye = /^(?:[ \t]*(?:\n|$))+/, be = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, xe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, S = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Se = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, C = /(?:[*+-]|\d{1,9}[.)])/, Ce = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, we = b(Ce).replace(/bull/g, C).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(), Te = b(Ce).replace(/bull/g, C).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(), w = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ee = /^[^\n]+/, T = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, De = b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", T).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Oe = b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, C).getRegex(), E = "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", D = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ke = b("^ {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", D).replace("tag", E).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Ae = b(w).replace("hr", S).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", E).getRegex(), O = {
312
- blockquote: b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", Ae).getRegex(),
313
- code: be,
314
- def: De,
315
- fences: xe,
316
- heading: Se,
317
- hr: S,
318
- html: ke,
319
- lheading: we,
320
- list: Oe,
321
- newline: ye,
322
- paragraph: Ae,
323
- table: y,
324
- text: Ee
325
- }, je = b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", S).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", E).getRegex(), Me = {
326
- ...O,
327
- lheading: Te,
328
- table: je,
329
- paragraph: b(w).replace("hr", S).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", je).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", E).getRegex()
330
- }, Ne = {
331
- ...O,
332
- html: b("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", D).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(),
185
+ }, ne = /^(?:[ \t]*(?:\n|$))+/, re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ie = /^ {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+|$)/, ae = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, S = /(?:[*+-]|\d{1,9}[.)])/, oe = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, se = y(oe).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(), ce = y(oe).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]+)*)/, le = /^[^\n]+/, w = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, ue = y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", w).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), de = 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]*?(?:-->|$))/, fe = 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(), pe = 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 = {
186
+ blockquote: y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pe).getRegex(),
187
+ code: re,
188
+ def: ue,
189
+ fences: ie,
190
+ heading: ae,
191
+ hr: x,
192
+ html: fe,
193
+ lheading: se,
194
+ list: de,
195
+ newline: ne,
196
+ paragraph: pe,
197
+ table: v,
198
+ text: le
199
+ }, me = 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(), he = {
200
+ ...D,
201
+ lheading: ce,
202
+ table: me,
203
+ paragraph: y(C).replace("hr", x).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", me).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()
204
+ }, ge = {
205
+ ...D,
206
+ 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(),
333
207
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
334
208
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
335
- fences: y,
209
+ fences: v,
336
210
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
337
- paragraph: b(w).replace("hr", S).replace("heading", " *#{1,6} *[^\n]").replace("lheading", we).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
338
- }, Pe = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fe = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, Ie = /^( {2,}|\\)\n(?!\s*$)/, Le = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, k = /[\p{P}\p{S}]/u, A = /[\s\p{P}\p{S}]/u, Re = /[^\s\p{P}\p{S}]/u, ze = b(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, A).getRegex(), Be = /(?!~)[\p{P}\p{S}]/u, Ve = /(?!~)[\s\p{P}\p{S}]/u, He = /(?:[^\s\p{P}\p{S}]|~)/u, Ue = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, We = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ge = b(We, "u").replace(/punct/g, k).getRegex(), Ke = b(We, "u").replace(/punct/g, Be).getRegex(), qe = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Je = b(qe, "gu").replace(/notPunctSpace/g, Re).replace(/punctSpace/g, A).replace(/punct/g, k).getRegex(), Ye = b(qe, "gu").replace(/notPunctSpace/g, He).replace(/punctSpace/g, Ve).replace(/punct/g, Be).getRegex(), Xe = b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Re).replace(/punctSpace/g, A).replace(/punct/g, k).getRegex(), Ze = b(/\\(punct)/, "gu").replace(/punct/g, k).getRegex(), Qe = b(/^<(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(), $e = b(D).replace("(?:-->|$)", "-->").getRegex(), et = b("^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", $e).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), j = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, tt = b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", j).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), nt = b(/^!?\[(label)\]\[(ref)\]/).replace("label", j).replace("ref", T).getRegex(), rt = b(/^!?\[(ref)\](?:\[\])?/).replace("ref", T).getRegex(), M = {
339
- _backpedal: y,
340
- anyPunctuation: Ze,
341
- autolink: Qe,
342
- blockSkip: Ue,
343
- br: Ie,
344
- code: Fe,
345
- del: y,
346
- emStrongLDelim: Ge,
347
- emStrongRDelimAst: Je,
348
- emStrongRDelimUnd: Xe,
349
- escape: Pe,
350
- link: tt,
351
- nolink: rt,
352
- punctuation: ze,
353
- reflink: nt,
354
- reflinkSearch: b("reflink|nolink(?!\\()", "g").replace("reflink", nt).replace("nolink", rt).getRegex(),
355
- tag: et,
356
- text: Le,
357
- url: y
358
- }, it = {
359
- ...M,
360
- link: b(/^!?\[(label)\]\((.*?)\)/).replace("label", j).getRegex(),
361
- reflink: b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", j).getRegex()
362
- }, N = {
363
- ...M,
364
- emStrongRDelimAst: Ye,
365
- emStrongLDelim: Ke,
366
- url: b(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
211
+ paragraph: y(C).replace("hr", x).replace("heading", " *#{1,6} *[^\n]").replace("lheading", se).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
212
+ }, _e = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ve = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ye = /^( {2,}|\\)\n(?!\s*$)/, be = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, O = /[\p{P}\p{S}]/u, k = /[\s\p{P}\p{S}]/u, xe = /[^\s\p{P}\p{S}]/u, Se = y(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, k).getRegex(), Ce = /(?!~)[\p{P}\p{S}]/u, we = /(?!~)[\s\p{P}\p{S}]/u, Te = /(?:[^\s\p{P}\p{S}]|~)/u, Ee = /\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g, De = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Oe = y(De, "u").replace(/punct/g, O).getRegex(), ke = y(De, "u").replace(/punct/g, Ce).getRegex(), Ae = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", je = y(Ae, "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Me = y(Ae, "gu").replace(/notPunctSpace/g, Te).replace(/punctSpace/g, we).replace(/punct/g, Ce).getRegex(), Ne = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, xe).replace(/punctSpace/g, k).replace(/punct/g, O).getRegex(), Pe = y(/\\(punct)/, "gu").replace(/punct/g, O).getRegex(), Fe = 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(), Ie = y(E).replace("(?:-->|$)", "-->").getRegex(), Le = 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", Ie).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), A = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/, Re = y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", A).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ze = y(/^!?\[(label)\]\[(ref)\]/).replace("label", A).replace("ref", w).getRegex(), Be = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", w).getRegex(), j = {
213
+ _backpedal: v,
214
+ anyPunctuation: Pe,
215
+ autolink: Fe,
216
+ blockSkip: Ee,
217
+ br: ye,
218
+ code: ve,
219
+ del: v,
220
+ emStrongLDelim: Oe,
221
+ emStrongRDelimAst: je,
222
+ emStrongRDelimUnd: Ne,
223
+ escape: _e,
224
+ link: Re,
225
+ nolink: Be,
226
+ punctuation: Se,
227
+ reflink: ze,
228
+ reflinkSearch: y("reflink|nolink(?!\\()", "g").replace("reflink", ze).replace("nolink", Be).getRegex(),
229
+ tag: Le,
230
+ text: be,
231
+ url: v
232
+ }, Ve = {
233
+ ...j,
234
+ link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", A).getRegex(),
235
+ reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", A).getRegex()
236
+ }, M = {
237
+ ...j,
238
+ emStrongRDelimAst: Me,
239
+ emStrongLDelim: ke,
240
+ url: y(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
367
241
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
368
242
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
369
243
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
370
- }, at = {
371
- ...N,
372
- br: b(Ie).replace("{2,}", "*").getRegex(),
373
- text: b(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
244
+ }, He = {
245
+ ...M,
246
+ br: y(ye).replace("{2,}", "*").getRegex(),
247
+ text: y(M.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
248
+ }, N = {
249
+ normal: D,
250
+ gfm: he,
251
+ pedantic: ge
374
252
  }, P = {
375
- normal: O,
376
- gfm: Me,
377
- pedantic: Ne
378
- }, F = {
379
- normal: M,
380
- gfm: N,
381
- breaks: at,
382
- pedantic: it
383
- }, ot = {
253
+ normal: j,
254
+ gfm: M,
255
+ breaks: He,
256
+ pedantic: Ve
257
+ }, Ue = {
384
258
  "&": "&amp;",
385
259
  "<": "&lt;",
386
260
  ">": "&gt;",
387
261
  "\"": "&quot;",
388
262
  "'": "&#39;"
389
- }, st = (e) => ot[e];
390
- function I(e, t) {
263
+ }, We = (e) => Ue[e];
264
+ function F(e, t) {
391
265
  if (t) {
392
- if (x.escapeTest.test(e)) return e.replace(x.escapeReplace, st);
393
- } else if (x.escapeTestNoEncode.test(e)) return e.replace(x.escapeReplaceNoEncode, st);
266
+ if (b.escapeTest.test(e)) return e.replace(b.escapeReplace, We);
267
+ } else if (b.escapeTestNoEncode.test(e)) return e.replace(b.escapeReplaceNoEncode, We);
394
268
  return e;
395
269
  }
396
- function ct(e) {
270
+ function Ge(e) {
397
271
  try {
398
- e = encodeURI(e).replace(x.percentDecode, "%");
272
+ e = encodeURI(e).replace(b.percentDecode, "%");
399
273
  } catch {
400
274
  return null;
401
275
  }
402
276
  return e;
403
277
  }
404
- function lt(e, t) {
405
- let n = e.replace(x.findPipe, (e, t, n) => {
278
+ function Ke(e, t) {
279
+ let n = e.replace(b.findPipe, (e, t, n) => {
406
280
  let r = !1, i = t;
407
281
  for (; --i >= 0 && n[i] === "\\";) r = !r;
408
282
  return r ? "|" : " |";
409
- }).split(x.splitPipe), r = 0;
283
+ }).split(b.splitPipe), r = 0;
410
284
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
411
285
  else for (; n.length < t;) n.push("");
412
- for (; r < n.length; r++) n[r] = n[r].trim().replace(x.slashPipe, "|");
286
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(b.slashPipe, "|");
413
287
  return n;
414
288
  }
415
- function L(e, t, n) {
289
+ function I(e, t, n) {
416
290
  let r = e.length;
417
291
  if (r === 0) return "";
418
292
  let i = 0;
@@ -424,7 +298,7 @@ function L(e, t, n) {
424
298
  }
425
299
  return e.slice(0, r - i);
426
300
  }
427
- function ut(e, t) {
301
+ function qe(e, t) {
428
302
  if (e.indexOf(t[1]) === -1) return -1;
429
303
  let n = 0;
430
304
  for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
@@ -432,7 +306,7 @@ function ut(e, t) {
432
306
  else if (e[r] === t[1] && (n--, n < 0)) return r;
433
307
  return n > 0 ? -2 : -1;
434
308
  }
435
- function dt(e, t, n, r, i) {
309
+ function Je(e, t, n, r, i) {
436
310
  let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
437
311
  r.state.inLink = !0;
438
312
  let c = {
@@ -445,7 +319,7 @@ function dt(e, t, n, r, i) {
445
319
  };
446
320
  return r.state.inLink = !1, c;
447
321
  }
448
- function ft(e, t, n) {
322
+ function Ye(e, t, n) {
449
323
  let r = e.match(n.other.indentCodeCompensation);
450
324
  if (r === null) return t;
451
325
  let i = r[1];
@@ -456,12 +330,12 @@ function ft(e, t, n) {
456
330
  return r.length >= i.length ? e.slice(i.length) : e;
457
331
  }).join("\n");
458
332
  }
459
- var R = class {
333
+ var L = class {
460
334
  options;
461
335
  rules;
462
336
  lexer;
463
337
  constructor(e) {
464
- this.options = e || v;
338
+ this.options = e || _;
465
339
  }
466
340
  space(e) {
467
341
  let t = this.rules.block.newline.exec(e);
@@ -478,14 +352,14 @@ var R = class {
478
352
  type: "code",
479
353
  raw: t[0],
480
354
  codeBlockStyle: "indented",
481
- text: this.options.pedantic ? e : L(e, "\n")
355
+ text: this.options.pedantic ? e : I(e, "\n")
482
356
  };
483
357
  }
484
358
  }
485
359
  fences(e) {
486
360
  let t = this.rules.block.fences.exec(e);
487
361
  if (t) {
488
- let e = t[0], n = ft(e, t[3] || "", this.rules);
362
+ let e = t[0], n = Ye(e, t[3] || "", this.rules);
489
363
  return {
490
364
  type: "code",
491
365
  raw: e,
@@ -499,7 +373,7 @@ var R = class {
499
373
  if (t) {
500
374
  let e = t[2].trim();
501
375
  if (this.rules.other.endingHash.test(e)) {
502
- let t = L(e, "#");
376
+ let t = I(e, "#");
503
377
  (this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
504
378
  }
505
379
  return {
@@ -515,13 +389,13 @@ var R = class {
515
389
  let t = this.rules.block.hr.exec(e);
516
390
  if (t) return {
517
391
  type: "hr",
518
- raw: L(t[0], "\n")
392
+ raw: I(t[0], "\n")
519
393
  };
520
394
  }
521
395
  blockquote(e) {
522
396
  let t = this.rules.block.blockquote.exec(e);
523
397
  if (t) {
524
- let e = L(t[0], "\n").split("\n"), n = "", r = "", i = [];
398
+ let e = I(t[0], "\n").split("\n"), n = "", r = "", i = [];
525
399
  for (; e.length > 0;) {
526
400
  let t = !1, a = [], o;
527
401
  for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
@@ -635,7 +509,7 @@ ${c}` : c;
635
509
  table(e) {
636
510
  let t = this.rules.block.table.exec(e);
637
511
  if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
638
- let n = lt(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 = {
512
+ let n = Ke(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 = {
639
513
  type: "table",
640
514
  raw: t[0],
641
515
  header: [],
@@ -650,7 +524,7 @@ ${c}` : c;
650
524
  header: !0,
651
525
  align: a.align[e]
652
526
  });
653
- for (let e of i) a.rows.push(lt(e, a.header.length).map((e, t) => ({
527
+ for (let e of i) a.rows.push(Ke(e, a.header.length).map((e, t) => ({
654
528
  text: e,
655
529
  tokens: this.lexer.inline(e),
656
530
  header: !1,
@@ -715,10 +589,10 @@ ${c}` : c;
715
589
  let e = t[2].trim();
716
590
  if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
717
591
  if (!this.rules.other.endAngleBracket.test(e)) return;
718
- let t = L(e.slice(0, -1), "\\");
592
+ let t = I(e.slice(0, -1), "\\");
719
593
  if ((e.length - t.length) % 2 == 0) return;
720
594
  } else {
721
- let e = ut(t[2], "()");
595
+ let e = qe(t[2], "()");
722
596
  if (e === -2) return;
723
597
  if (e > -1) {
724
598
  let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
@@ -730,7 +604,7 @@ ${c}` : c;
730
604
  let e = this.rules.other.pedanticHrefTitle.exec(n);
731
605
  e && (n = e[1], r = e[3]);
732
606
  } else r = t[3] ? t[3].slice(1, -1) : "";
733
- 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)), dt(t, {
607
+ 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)), Je(t, {
734
608
  href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
735
609
  title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
736
610
  }, t[0], this.lexer, this.rules);
@@ -748,7 +622,7 @@ ${c}` : c;
748
622
  text: e
749
623
  };
750
624
  }
751
- return dt(n, e, n[0], this.lexer, this.rules);
625
+ return Je(n, e, n[0], this.lexer, this.rules);
752
626
  }
753
627
  }
754
628
  emStrong(e, t, n = "") {
@@ -867,29 +741,29 @@ ${c}` : c;
867
741
  };
868
742
  }
869
743
  }
870
- }, z = class e {
744
+ }, R = class e {
871
745
  tokens;
872
746
  options;
873
747
  state;
874
748
  tokenizer;
875
749
  inlineQueue;
876
750
  constructor(e) {
877
- this.tokens = [], this.tokens.links = Object.create(null), this.options = e || v, 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 = {
751
+ 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 = {
878
752
  inLink: !1,
879
753
  inRawBlock: !1,
880
754
  top: !0
881
755
  };
882
756
  let t = {
883
- other: x,
884
- block: P.normal,
885
- inline: F.normal
757
+ other: b,
758
+ block: N.normal,
759
+ inline: P.normal
886
760
  };
887
- 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;
761
+ this.options.pedantic ? (t.block = N.pedantic, t.inline = P.pedantic) : this.options.gfm && (t.block = N.gfm, this.options.breaks ? t.inline = P.breaks : t.inline = P.gfm), this.tokenizer.rules = t;
888
762
  }
889
763
  static get rules() {
890
764
  return {
891
- block: P,
892
- inline: F
765
+ block: N,
766
+ inline: P
893
767
  };
894
768
  }
895
769
  static lex(t, n) {
@@ -899,7 +773,7 @@ ${c}` : c;
899
773
  return new e(n).inlineTokens(t);
900
774
  }
901
775
  lex(e) {
902
- e = e.replace(x.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
776
+ e = e.replace(b.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
903
777
  for (let e = 0; e < this.inlineQueue.length; e++) {
904
778
  let t = this.inlineQueue[e];
905
779
  this.inlineTokens(t.src, t.tokens);
@@ -907,7 +781,7 @@ ${c}` : c;
907
781
  return this.inlineQueue = [], this.tokens;
908
782
  }
909
783
  blockTokens(e, t = [], n = !1) {
910
- for (this.options.pedantic && (e = e.replace(x.tabCharGlobal, " ").replace(x.spaceLine, "")); e;) {
784
+ for (this.options.pedantic && (e = e.replace(b.tabCharGlobal, " ").replace(b.spaceLine, "")); e;) {
911
785
  let r;
912
786
  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;
913
787
  if (r = this.tokenizer.space(e)) {
@@ -1076,18 +950,18 @@ ${c}` : c;
1076
950
  }
1077
951
  return t;
1078
952
  }
1079
- }, B = class {
953
+ }, z = class {
1080
954
  options;
1081
955
  parser;
1082
956
  constructor(e) {
1083
- this.options = e || v;
957
+ this.options = e || _;
1084
958
  }
1085
959
  space(e) {
1086
960
  return "";
1087
961
  }
1088
962
  code({ text: e, lang: t, escaped: n }) {
1089
- let r = (t || "").match(x.notSpaceStart)?.[0], i = e.replace(x.endingNewline, "") + "\n";
1090
- 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";
963
+ let r = (t || "").match(b.notSpaceStart)?.[0], i = e.replace(b.endingNewline, "") + "\n";
964
+ 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";
1091
965
  }
1092
966
  blockquote({ tokens: e }) {
1093
967
  return `<blockquote>
@@ -1120,7 +994,7 @@ ${this.parser.parse(e)}</blockquote>
1120
994
  let t = "";
1121
995
  if (e.task) {
1122
996
  let n = this.checkbox({ checked: !!e.checked });
1123
- 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({
997
+ 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({
1124
998
  type: "text",
1125
999
  raw: n + " ",
1126
1000
  text: n + " ",
@@ -1167,7 +1041,7 @@ ${e}</tr>
1167
1041
  return `<em>${this.parser.parseInline(e)}</em>`;
1168
1042
  }
1169
1043
  codespan({ text: e }) {
1170
- return `<code>${I(e, !0)}</code>`;
1044
+ return `<code>${F(e, !0)}</code>`;
1171
1045
  }
1172
1046
  br(e) {
1173
1047
  return "<br>";
@@ -1176,24 +1050,24 @@ ${e}</tr>
1176
1050
  return `<del>${this.parser.parseInline(e)}</del>`;
1177
1051
  }
1178
1052
  link({ href: e, title: t, tokens: n }) {
1179
- let r = this.parser.parseInline(n), i = ct(e);
1053
+ let r = this.parser.parseInline(n), i = Ge(e);
1180
1054
  if (i === null) return r;
1181
1055
  e = i;
1182
1056
  let a = "<a href=\"" + e + "\"";
1183
- return t && (a += " title=\"" + I(t) + "\""), a += ">" + r + "</a>", a;
1057
+ return t && (a += " title=\"" + F(t) + "\""), a += ">" + r + "</a>", a;
1184
1058
  }
1185
1059
  image({ href: e, title: t, text: n, tokens: r }) {
1186
1060
  r && (n = this.parser.parseInline(r, this.parser.textRenderer));
1187
- let i = ct(e);
1188
- if (i === null) return I(n);
1061
+ let i = Ge(e);
1062
+ if (i === null) return F(n);
1189
1063
  e = i;
1190
1064
  let a = `<img src="${e}" alt="${n}"`;
1191
- return t && (a += ` title="${I(t)}"`), a += ">", a;
1065
+ return t && (a += ` title="${F(t)}"`), a += ">", a;
1192
1066
  }
1193
1067
  text(e) {
1194
- return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : I(e.text);
1068
+ return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : F(e.text);
1195
1069
  }
1196
- }, V = class {
1070
+ }, B = class {
1197
1071
  strong({ text: e }) {
1198
1072
  return e;
1199
1073
  }
@@ -1221,12 +1095,12 @@ ${e}</tr>
1221
1095
  br() {
1222
1096
  return "";
1223
1097
  }
1224
- }, H = class e {
1098
+ }, V = class e {
1225
1099
  options;
1226
1100
  renderer;
1227
1101
  textRenderer;
1228
1102
  constructor(e) {
1229
- this.options = e || v, 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();
1103
+ 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();
1230
1104
  }
1231
1105
  static parse(t, n) {
1232
1106
  return new e(n).parse(t);
@@ -1377,11 +1251,11 @@ ${e}</tr>
1377
1251
  }
1378
1252
  return n;
1379
1253
  }
1380
- }, U = class {
1254
+ }, H = class {
1381
1255
  options;
1382
1256
  block;
1383
1257
  constructor(e) {
1384
- this.options = e || v;
1258
+ this.options = e || _;
1385
1259
  }
1386
1260
  static passThroughHooks = new Set([
1387
1261
  "preprocess",
@@ -1407,22 +1281,22 @@ ${e}</tr>
1407
1281
  return e;
1408
1282
  }
1409
1283
  provideLexer() {
1410
- return this.block ? z.lex : z.lexInline;
1284
+ return this.block ? R.lex : R.lexInline;
1411
1285
  }
1412
1286
  provideParser() {
1413
- return this.block ? H.parse : H.parseInline;
1287
+ return this.block ? V.parse : V.parseInline;
1414
1288
  }
1415
- }, W = new class {
1416
- defaults = _();
1289
+ }, U = new class {
1290
+ defaults = g();
1417
1291
  options = this.setOptions;
1418
1292
  parse = this.parseMarkdown(!0);
1419
1293
  parseInline = this.parseMarkdown(!1);
1420
- Parser = H;
1421
- Renderer = B;
1422
- TextRenderer = V;
1423
- Lexer = z;
1424
- Tokenizer = R;
1425
- Hooks = U;
1294
+ Parser = V;
1295
+ Renderer = z;
1296
+ TextRenderer = B;
1297
+ Lexer = R;
1298
+ Tokenizer = L;
1299
+ Hooks = H;
1426
1300
  constructor(...e) {
1427
1301
  this.use(...e);
1428
1302
  }
@@ -1473,7 +1347,7 @@ ${e}</tr>
1473
1347
  }
1474
1348
  "childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
1475
1349
  }), n.extensions = t), e.renderer) {
1476
- let t = this.defaults.renderer || new B(this.defaults);
1350
+ let t = this.defaults.renderer || new z(this.defaults);
1477
1351
  for (let n in e.renderer) {
1478
1352
  if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
1479
1353
  if (["options", "parser"].includes(n)) continue;
@@ -1486,7 +1360,7 @@ ${e}</tr>
1486
1360
  n.renderer = t;
1487
1361
  }
1488
1362
  if (e.tokenizer) {
1489
- let t = this.defaults.tokenizer || new R(this.defaults);
1363
+ let t = this.defaults.tokenizer || new L(this.defaults);
1490
1364
  for (let n in e.tokenizer) {
1491
1365
  if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
1492
1366
  if ([
@@ -1503,13 +1377,13 @@ ${e}</tr>
1503
1377
  n.tokenizer = t;
1504
1378
  }
1505
1379
  if (e.hooks) {
1506
- let t = this.defaults.hooks || new U();
1380
+ let t = this.defaults.hooks || new H();
1507
1381
  for (let n in e.hooks) {
1508
1382
  if (!(n in t)) throw Error(`hook '${n}' does not exist`);
1509
1383
  if (["options", "block"].includes(n)) continue;
1510
1384
  let r = n, i = e.hooks[r], a = t[r];
1511
- U.passThroughHooks.has(n) ? t[r] = (e) => {
1512
- if (this.defaults.async && U.passThroughHooksRespectAsync.has(n)) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
1385
+ H.passThroughHooks.has(n) ? t[r] = (e) => {
1386
+ if (this.defaults.async && H.passThroughHooksRespectAsync.has(n)) return Promise.resolve(i.call(t, e)).then((e) => a.call(t, e));
1513
1387
  let r = i.call(t, e);
1514
1388
  return a.call(t, r);
1515
1389
  } : t[r] = (...e) => {
@@ -1539,10 +1413,10 @@ ${e}</tr>
1539
1413
  }, this;
1540
1414
  }
1541
1415
  lexer(e, t) {
1542
- return z.lex(e, t ?? this.defaults);
1416
+ return R.lex(e, t ?? this.defaults);
1543
1417
  }
1544
1418
  parser(e, t) {
1545
- return H.parse(e, t ?? this.defaults);
1419
+ return V.parse(e, t ?? this.defaults);
1546
1420
  }
1547
1421
  parseMarkdown(e) {
1548
1422
  return (t, n) => {
@@ -1554,7 +1428,7 @@ ${e}</tr>
1554
1428
  if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
1555
1429
  if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
1556
1430
  i.hooks && (i.hooks.options = i, i.hooks.block = e);
1557
- let o = i.hooks ? i.hooks.provideLexer() : e ? z.lex : z.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? H.parse : H.parseInline;
1431
+ let o = i.hooks ? i.hooks.provideLexer() : e ? R.lex : R.lexInline, s = i.hooks ? i.hooks.provideParser() : e ? V.parse : V.parseInline;
1558
1432
  if (i.async) return Promise.resolve(i.hooks ? i.hooks.preprocess(t) : t).then((e) => o(e, i)).then((e) => i.hooks ? i.hooks.processAllTokens(e) : e).then((e) => i.walkTokens ? Promise.all(this.walkTokens(e, i.walkTokens)).then(() => e) : e).then((e) => s(e, i)).then((e) => i.hooks ? i.hooks.postprocess(e) : e).catch(a);
1559
1433
  try {
1560
1434
  i.hooks && (t = i.hooks.preprocess(t));
@@ -1570,7 +1444,7 @@ ${e}</tr>
1570
1444
  onError(e, t) {
1571
1445
  return (n) => {
1572
1446
  if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
1573
- let e = "<p>An error occurred:</p><pre>" + I(n.message + "", !0) + "</pre>";
1447
+ let e = "<p>An error occurred:</p><pre>" + F(n.message + "", !0) + "</pre>";
1574
1448
  return t ? Promise.resolve(e) : e;
1575
1449
  }
1576
1450
  if (t) return Promise.reject(n);
@@ -1578,19 +1452,19 @@ ${e}</tr>
1578
1452
  };
1579
1453
  }
1580
1454
  }();
1581
- function G(e, t) {
1582
- return W.parse(e, t);
1455
+ function W(e, t) {
1456
+ return U.parse(e, t);
1583
1457
  }
1584
- G.options = G.setOptions = function(e) {
1585
- return W.setOptions(e), G.defaults = W.defaults, ve(G.defaults), G;
1586
- }, G.getDefaults = _, G.defaults = v, G.use = function(...e) {
1587
- return W.use(...e), G.defaults = W.defaults, ve(G.defaults), G;
1588
- }, G.walkTokens = function(e, t) {
1589
- return W.walkTokens(e, t);
1590
- }, 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;
1458
+ W.options = W.setOptions = function(e) {
1459
+ return U.setOptions(e), W.defaults = U.defaults, te(W.defaults), W;
1460
+ }, W.getDefaults = g, W.defaults = _, W.use = function(...e) {
1461
+ return U.use(...e), W.defaults = U.defaults, te(W.defaults), W;
1462
+ }, W.walkTokens = function(e, t) {
1463
+ return U.walkTokens(e, t);
1464
+ }, 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;
1591
1465
  //#endregion
1592
1466
  //#region node_modules/ts-dedent/esm/index.js
1593
- function pt(e) {
1467
+ function Xe(e) {
1594
1468
  var t = [...arguments].slice(1), n = Array.from(typeof e == "string" ? [e] : e);
1595
1469
  n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
1596
1470
  var r = n.reduce(function(e, t) {
@@ -1615,119 +1489,203 @@ function pt(e) {
1615
1489
  }), a;
1616
1490
  }
1617
1491
  //#endregion
1618
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-O5CBEL6O.mjs
1619
- var mt = {
1620
- body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
1621
- height: 80,
1622
- width: 80
1623
- }, K = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map(), gt = /* @__PURE__ */ t((t) => {
1624
- for (let n of t) {
1625
- if (!n.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
1626
- if (e.debug("Registering icon pack:", n.name), "loader" in n) ht.set(n.name, n.loader);
1627
- else if ("icons" in n) K.set(n.name, n.icons);
1628
- else throw e.error("Invalid icon loader:", n), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
1629
- }
1630
- }, "registerIconPacks"), _t = /* @__PURE__ */ t(async (t, n) => {
1631
- let r = h(t, !0, n !== void 0);
1632
- if (!r) throw Error(`Invalid icon name: ${t}`);
1633
- let i = r.prefix || n;
1634
- if (!i) throw Error(`Icon name must contain a prefix: ${t}`);
1635
- let a = K.get(i);
1636
- if (!a) {
1637
- let t = ht.get(i);
1638
- if (!t) throw Error(`Icon set not found: ${r.prefix}`);
1492
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-GMAD6QVW.mjs
1493
+ var G = typeof performance < "u" && typeof performance.now == "function", K = /* @__PURE__ */ l(() => G ? performance.now() : 0, "now"), q = "🧜 ", Ze = "Mermaid render", Qe = "Mermaid", $e = {
1494
+ parse: "tertiary",
1495
+ prepare: "secondary",
1496
+ measure: "primary",
1497
+ layout: "primary-dark",
1498
+ layoutCore: "error",
1499
+ draw: "primary-light",
1500
+ paint: "secondary-dark",
1501
+ serialize: "tertiary-dark",
1502
+ render: "primary-light"
1503
+ };
1504
+ (class {
1505
+ constructor() {
1506
+ this.enabled = !1, this.autoPrint = !0, this.records = [], this.maxRecords = 200, this.roots = [], this.stack = [], this.buckets = {};
1507
+ }
1508
+ static {
1509
+ l(this, "Profiler");
1510
+ }
1511
+ enable() {
1512
+ return this.enabled = !0, this;
1513
+ }
1514
+ disable() {
1515
+ return this.enabled = !1, this;
1516
+ }
1517
+ start(e) {
1518
+ this.enabled && (this.roots = [], this.stack = [], this.buckets = {}, this.begin(e));
1519
+ }
1520
+ tickSync(e, t) {
1521
+ if (!this.enabled) return t();
1522
+ let n = K();
1639
1523
  try {
1640
- a = {
1641
- ...await t(),
1642
- prefix: i
1643
- }, K.set(i, a);
1644
- } catch (t) {
1645
- throw e.error(t), Error(`Failed to load icon set: ${r.prefix}`);
1524
+ return t();
1525
+ } finally {
1526
+ this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1646
1527
  }
1647
1528
  }
1648
- let o = ie(a, r.name);
1649
- if (!o) throw Error(`Icon not found: ${t}`);
1650
- return o;
1651
- }, "getRegisteredIconData"), vt = /* @__PURE__ */ t(async (e) => {
1652
- try {
1653
- return await _t(e), !0;
1654
- } catch {
1655
- return !1;
1529
+ async tick(e, t) {
1530
+ if (!this.enabled) return t();
1531
+ let n = K();
1532
+ try {
1533
+ return await t();
1534
+ } finally {
1535
+ this.buckets[e] = (this.buckets[e] ?? 0) + (K() - n);
1536
+ }
1656
1537
  }
1657
- }, "isIconAvailable"), yt = /* @__PURE__ */ t(async (t, n, r) => {
1658
- let i;
1659
- try {
1660
- i = await _t(t, n?.fallbackPrefix);
1661
- } catch (t) {
1662
- e.error(t), i = mt;
1663
- }
1664
- let o = fe(i, n);
1665
- return s(_e(ge(o.body), {
1666
- ...o.attributes,
1667
- ...r
1668
- }), a());
1669
- }, "getIconSVG");
1670
- function bt(e, { markdownAutoWrap: t }) {
1671
- return pt(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1538
+ stop() {
1539
+ if (!this.enabled) return;
1540
+ for (; this.stack.length > 0;) this.end();
1541
+ let e = this.roots.at(-1), t = this.runLabel ?? e?.name;
1542
+ return e && (this.records.push({
1543
+ label: t ?? e.name,
1544
+ tree: e,
1545
+ buckets: { ...this.buckets }
1546
+ }), 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;
1547
+ }
1548
+ begin(e) {
1549
+ if (!this.enabled) return;
1550
+ let t = {
1551
+ name: e,
1552
+ start: K(),
1553
+ duration: -1,
1554
+ children: []
1555
+ }, n = this.stack.at(-1);
1556
+ if (n ? n.children.push(t) : this.roots.push(t), this.stack.push(t), G && typeof performance.mark == "function") try {
1557
+ performance.mark(`${q}${e} \u25B6`);
1558
+ } catch {}
1559
+ }
1560
+ end() {
1561
+ if (!this.enabled) return;
1562
+ let e = this.stack.pop();
1563
+ if (!e) return;
1564
+ let t = K();
1565
+ if (e.duration = t - e.start, G && typeof performance.measure == "function") try {
1566
+ performance.measure(`${q}${e.name}`, {
1567
+ start: e.start,
1568
+ end: t,
1569
+ detail: { devtools: {
1570
+ dataType: "track-entry",
1571
+ track: Ze,
1572
+ trackGroup: Qe,
1573
+ color: $e[e.name] ?? "primary",
1574
+ tooltipText: `${e.name} \u2014 ${e.duration.toFixed(1)} ms`
1575
+ } }
1576
+ });
1577
+ } catch {}
1578
+ }
1579
+ async span(e, t) {
1580
+ if (!this.enabled) return t();
1581
+ this.begin(e);
1582
+ try {
1583
+ return await t();
1584
+ } finally {
1585
+ this.end();
1586
+ }
1587
+ }
1588
+ report() {
1589
+ return this.records.at(-1)?.tree ?? this.roots.at(-1);
1590
+ }
1591
+ clear() {
1592
+ this.records.length = 0, this.roots = [], this.stack = [], this.runLabel = void 0;
1593
+ }
1594
+ reset() {
1595
+ this.roots = [], this.stack = [];
1596
+ }
1597
+ printSummary(e = this.report(), t) {
1598
+ if (!e) return;
1599
+ let n = e.duration, r = t && t !== e.name ? `${e.name} [${t}]` : e.name, i = ["ms % phase"], a = /* @__PURE__ */ l((e, t) => {
1600
+ let r = " ".repeat(t), o = e.duration.toFixed(1).padStart(8), s = n > 0 ? `${(e.duration / n * 100).toFixed(0).padStart(3)}%` : " -";
1601
+ i.push(`${o} ${s} ${r}${e.name}`);
1602
+ for (let n of e.children) a(n, t + 1);
1603
+ if (e.children.length > 0) {
1604
+ let t = e.children.reduce((e, t) => e + t.duration, 0), n = e.duration - t;
1605
+ if (n > .5) {
1606
+ let e = n.toFixed(1).padStart(8);
1607
+ i.push(`${e} ${r} (self)`);
1608
+ }
1609
+ }
1610
+ }, "walk");
1611
+ a(e, 0);
1612
+ let o = Object.keys(this.buckets);
1613
+ if (o.length > 0) {
1614
+ i.push("—— buckets (summed) ——");
1615
+ for (let e of o) i.push(`${this.buckets[e].toFixed(1).padStart(8)} ${e}`);
1616
+ }
1617
+ console.log(`${q}mermaid render profile \xB7 ${r}
1618
+ ${i.join("\n")}`);
1619
+ }
1620
+ }), globalThis.injected ??= {
1621
+ includeLargeFeatures: !0,
1622
+ profiling: !1,
1623
+ version: "0.0.0"
1624
+ };
1625
+ var et = h.default.extend({ raf(e) {
1626
+ typeof queueMicrotask == "function" ? queueMicrotask(e) : setTimeout(e, 0);
1627
+ } }).extend(ee.default);
1628
+ function tt(e, { markdownAutoWrap: t }) {
1629
+ return Xe(e.replace(/<br\/>/g, "\n").replace(/\n{2,}/g, "\n"));
1672
1630
  }
1673
- t(bt, "preprocessMarkdown");
1674
- function xt(e) {
1631
+ l(tt, "preprocessMarkdown");
1632
+ function nt(e) {
1675
1633
  return e.split(/\\n|\n|<br\s*\/?>/gi).map((e) => e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((e) => ({
1676
1634
  content: e,
1677
1635
  type: "normal"
1678
1636
  })) ?? []);
1679
1637
  }
1680
- t(xt, "nonMarkdownToLines");
1681
- function St(e, n = {}) {
1682
- let r = bt(e, n), i = G.lexer(r), a = [[]], o = 0;
1683
- function s(e, t = "normal") {
1638
+ l(nt, "nonMarkdownToLines");
1639
+ function rt(e, t = {}) {
1640
+ let n = tt(e, t), r = W.lexer(n), i = [[]], a = 0;
1641
+ function o(e, t = "normal") {
1684
1642
  e.type === "text" ? e.text.split("\n").forEach((e, n) => {
1685
- n !== 0 && (o++, a.push([])), e.split(" ").forEach((e) => {
1686
- e = e.replace(/&#39;/g, "'"), e && a[o].push({
1643
+ n !== 0 && (a++, i.push([])), e.split(" ").forEach((e) => {
1644
+ e = e.replace(/&#39;/g, "'"), e && i[a].push({
1687
1645
  content: e,
1688
1646
  type: t
1689
1647
  });
1690
1648
  });
1691
1649
  }) : e.type === "strong" || e.type === "em" ? e.tokens.forEach((t) => {
1692
- s(t, e.type);
1693
- }) : e.type === "html" && a[o].push({
1650
+ o(t, e.type);
1651
+ }) : e.type === "html" && i[a].push({
1694
1652
  content: e.text,
1695
1653
  type: "normal"
1696
1654
  });
1697
1655
  }
1698
- return t(s, "processNode"), i.forEach((e) => {
1656
+ return l(o, "processNode"), r.forEach((e) => {
1699
1657
  e.type === "paragraph" ? e.tokens?.forEach((e) => {
1700
- s(e);
1701
- }) : e.type === "html" ? a[o].push({
1658
+ o(e);
1659
+ }) : e.type === "html" ? i[a].push({
1702
1660
  content: e.text,
1703
1661
  type: "normal"
1704
- }) : a[o].push({
1662
+ }) : i[a].push({
1705
1663
  content: e.raw,
1706
1664
  type: "normal"
1707
1665
  });
1708
- }), a;
1666
+ }), i;
1709
1667
  }
1710
- t(St, "markdownToLines");
1711
- function Ct(e) {
1668
+ l(rt, "markdownToLines");
1669
+ function it(e) {
1712
1670
  return e ? `<p>${e.replace(/\\n|\n/g, "<br />")}</p>` : "";
1713
1671
  }
1714
- t(Ct, "nonMarkdownToHTML");
1715
- function wt(n, { markdownAutoWrap: r } = {}) {
1716
- let i = G.lexer(n);
1717
- function a(t) {
1718
- return t.type === "text" ? r === !1 ? t.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : t.text.replace(/\n */g, "<br/>") : t.type === "strong" ? `<strong>${t.tokens?.map(a).join("")}</strong>` : t.type === "em" ? `<em>${t.tokens?.map(a).join("")}</em>` : t.type === "paragraph" ? `<p>${t.tokens?.map(a).join("")}</p>` : t.type === "space" ? "" : t.type === "html" ? `${t.text}` : t.type === "escape" ? t.text : (e.warn(`Unsupported markdown: ${t.type}`), t.raw);
1672
+ l(it, "nonMarkdownToHTML");
1673
+ function at(e, { markdownAutoWrap: n } = {}) {
1674
+ let r = W.lexer(e);
1675
+ function i(e) {
1676
+ return e.type === "text" ? n === !1 ? e.text.replace(/\n */g, "<br/>").replace(/ /g, "&nbsp;") : e.text.replace(/\n */g, "<br/>") : e.type === "strong" ? `<strong>${e.tokens?.map(i).join("")}</strong>` : e.type === "em" ? `<em>${e.tokens?.map(i).join("")}</em>` : e.type === "paragraph" ? `<p>${e.tokens?.map(i).join("")}</p>` : e.type === "space" ? "" : e.type === "html" ? `${e.text}` : e.type === "escape" ? e.text : (t.warn(`Unsupported markdown: ${e.type}`), e.raw);
1719
1677
  }
1720
- return t(a, "output"), i.map(a).join("");
1678
+ return l(i, "output"), r.map(i).join("");
1721
1679
  }
1722
- t(wt, "markdownToHTML");
1723
- function Tt(e) {
1680
+ l(at, "markdownToHTML");
1681
+ function ot(e) {
1724
1682
  return Intl.Segmenter ? [...new Intl.Segmenter().segment(e)].map((e) => e.segment) : [...e];
1725
1683
  }
1726
- t(Tt, "splitTextToChars");
1727
- function q(e, t) {
1728
- return J(e, [], Tt(t.content), t.type);
1684
+ l(ot, "splitTextToChars");
1685
+ function st(e, t) {
1686
+ return J(e, [], ot(t.content), t.type);
1729
1687
  }
1730
- t(q, "splitWordToFitWidth");
1688
+ l(st, "splitWordToFitWidth");
1731
1689
  function J(e, t, n, r) {
1732
1690
  if (n.length === 0) return [{
1733
1691
  content: t.join(""),
@@ -1748,12 +1706,12 @@ function J(e, t, n, r) {
1748
1706
  type: r
1749
1707
  }]);
1750
1708
  }
1751
- t(J, "splitWordToFitWidthRecursion");
1752
- function Et(e, t) {
1709
+ l(J, "splitWordToFitWidthRecursion");
1710
+ function ct(e, t) {
1753
1711
  if (e.some(({ content: e }) => e.includes("\n"))) throw Error("splitLineToFitWidth does not support newlines in the line");
1754
1712
  return Y(e, t);
1755
1713
  }
1756
- t(Et, "splitLineToFitWidth");
1714
+ l(ct, "splitLineToFitWidth");
1757
1715
  function Y(e, t, n = [], r = []) {
1758
1716
  if (e.length === 0) return r.length > 0 && n.push(r), n.length > 0 ? n : [];
1759
1717
  let i = "";
@@ -1768,39 +1726,37 @@ function Y(e, t, n = [], r = []) {
1768
1726
  }), o.push(a), t(o)) return Y(e, t, n, o);
1769
1727
  if (r.length > 0) n.push(r), e.unshift(a);
1770
1728
  else if (a.content) {
1771
- let [r, i] = q(t, a);
1729
+ let [r, i] = st(t, a);
1772
1730
  n.push([r]), i.content && e.unshift(i);
1773
1731
  }
1774
1732
  return Y(e, t, n);
1775
1733
  }
1776
- t(Y, "splitLineToFitWidthRecursion");
1734
+ l(Y, "splitLineToFitWidthRecursion");
1777
1735
  function X(e, t) {
1778
1736
  t && e.attr("style", t);
1779
1737
  }
1780
- t(X, "applyStyle");
1781
- var Dt = 16384;
1782
- async function Ot(e, t, n, c, l = !1, u = a()) {
1738
+ l(X, "applyStyle");
1739
+ var lt = 16384;
1740
+ async function ut(e, t, n, r, l = !1, u = o()) {
1783
1741
  let d = e.append("foreignObject");
1784
- d.attr("width", `${Math.min(10 * n, Dt)}px`), d.attr("height", `${Math.min(10 * n, Dt)}px`);
1785
- 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");
1786
- h.html(p), X(h, t.labelStyle), h.attr("class", `${m} ${c}`), 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"), l && f.attr("class", "labelBkg");
1787
- let g = f.node().getBoundingClientRect();
1788
- 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();
1742
+ d.attr("width", `${Math.min(10 * n, lt)}px`), d.attr("height", `${Math.min(10 * n, lt)}px`);
1743
+ let f = d.append("xhtml:div"), p = i(t.label) ? await a(t.label.replace(s.lineBreakRegex, "\n"), u) : c(t.label, u), m = t.isNode ? "nodeLabel" : "edgeLabel", h = f.append("span");
1744
+ 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"), l && f.attr("class", "labelBkg"), (await et.measure(() => f.node().getBoundingClientRect())).width === n && (f.style("display", "table"), f.style("white-space", "break-spaces"), f.style("width", n + "px")), d.node();
1789
1745
  }
1790
- t(Ot, "addHtmlSpan");
1746
+ l(ut, "addHtmlSpan");
1791
1747
  function Z(e, t, n, r = !1) {
1792
1748
  let i = e.append("tspan").attr("class", "text-outer-tspan").attr("x", 0).attr("y", t * n - .1 + "em").attr("dy", n + "em");
1793
1749
  return r && i.attr("text-anchor", "middle"), i;
1794
1750
  }
1795
- t(Z, "createTspan");
1796
- function kt(e, t, n) {
1751
+ l(Z, "createTspan");
1752
+ function dt(e, t, n) {
1797
1753
  let r = e.append("text"), i = Z(r, 1, t);
1798
1754
  $(i, n);
1799
1755
  let a = i.node().getComputedTextLength();
1800
1756
  return r.remove(), a;
1801
1757
  }
1802
- t(kt, "computeWidthOfText");
1803
- function At(e, t, n) {
1758
+ l(dt, "computeWidthOfText");
1759
+ function ft(e, t, n) {
1804
1760
  let r = e.append("text"), i = Z(r, 1, t);
1805
1761
  $(i, [{
1806
1762
  content: n,
@@ -1809,21 +1765,21 @@ function At(e, t, n) {
1809
1765
  let a = i.node()?.getBoundingClientRect();
1810
1766
  return a && r.remove(), a;
1811
1767
  }
1812
- t(At, "computeDimensionOfText");
1813
- function jt(e, n, r, i = !1, a = !1) {
1814
- 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");
1815
- a && l.attr("text-anchor", "middle");
1768
+ l(ft, "computeDimensionOfText");
1769
+ function pt(e, t, n, r = !1, i = !1) {
1770
+ let a = 1.1, o = t.append("g"), s = o.insert("rect").attr("class", "background").attr("style", "stroke: none"), c = o.append("text").attr("y", "-10.1");
1771
+ i && c.attr("text-anchor", "middle");
1816
1772
  let u = 0;
1817
- for (let n of r) {
1818
- let r = /* @__PURE__ */ t((t) => kt(s, o, t) <= e, "checkWidth"), i = r(n) ? [n] : Et(n, r);
1819
- for (let e of i) $(Z(l, u, o, a), e), u++;
1820
- }
1821
- if (i) {
1822
- let e = l.node().getBBox();
1823
- return c.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), s.node();
1824
- } else return l.node();
1773
+ for (let t of n) {
1774
+ let n = /* @__PURE__ */ l((t) => dt(o, a, t) <= e, "checkWidth"), r = n(t) ? [t] : ct(t, n);
1775
+ for (let e of r) $(Z(c, u, a, i), e), u++;
1776
+ }
1777
+ if (r) {
1778
+ let e = c.node().getBBox();
1779
+ return s.attr("x", e.x - 2).attr("y", e.y - 2).attr("width", e.width + 4).attr("height", e.height + 4), o.node();
1780
+ } else return c.node();
1825
1781
  }
1826
- t(jt, "createFormattedText");
1782
+ l(pt, "createFormattedText");
1827
1783
  function Q(e) {
1828
1784
  return e.replace(/&(amp|lt|gt);/g, (e, t) => {
1829
1785
  switch (t) {
@@ -1834,46 +1790,46 @@ function Q(e) {
1834
1790
  }
1835
1791
  });
1836
1792
  }
1837
- t(Q, "decodeHTMLEntities");
1793
+ l(Q, "decodeHTMLEntities");
1838
1794
  function $(e, t) {
1839
1795
  e.text(""), t.forEach((t, n) => {
1840
1796
  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");
1841
1797
  n === 0 ? r.text(Q(t.content)) : r.text(" " + Q(t.content));
1842
1798
  });
1843
1799
  }
1844
- t($, "updateTextContentAndStyles");
1845
- async function Mt(e, t = {}) {
1800
+ l($, "updateTextContentAndStyles");
1801
+ async function mt(e, t = {}) {
1846
1802
  let n = [];
1847
1803
  e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, (e, r, i) => (n.push((async () => {
1848
1804
  let n = `${r}:${i}`;
1849
- return await vt(n) ? await yt(n, void 0, { class: "label-icon" }) : `<i class='${s(e, t).replace(":", " ")}'></i>`;
1805
+ return await d(n) ? await f(n, void 0, { class: "label-icon" }) : `<i class='${c(e, t).replace(":", " ")}'></i>`;
1850
1806
  })()), e));
1851
1807
  let r = await Promise.all(n);
1852
1808
  return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g, () => r.shift() ?? "");
1853
1809
  }
1854
- t(Mt, "replaceIconSubstring");
1855
- var Nt = /* @__PURE__ */ t(async (t, i = "", { style: a = "", isTitle: o = !1, classes: s = "", useHtmlLabels: l = !0, markdown: u = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1856
- if (e.debug("XYZ createText", i, a, o, s, l, d, "addSvgBackground: ", p), l) {
1857
- let e = await Mt(c(u ? wt(i, m) : Ct(i)), m), n = i.replace(/\\\\/g, "\\");
1858
- return await Ot(t, {
1810
+ l(mt, "replaceIconSubstring");
1811
+ var ht = /* @__PURE__ */ l(async (e, r = "", { style: a = "", isTitle: o = !1, classes: s = "", useHtmlLabels: c = !0, markdown: l = !0, isNode: d = !0, width: f = 200, addSvgBackground: p = !1 } = {}, m) => {
1812
+ if (t.debug("XYZ createText", r, a, o, s, c, d, "addSvgBackground: ", p), c) {
1813
+ let t = await mt(u(l ? at(r, m) : it(r)), m), n = r.replace(/\\\\/g, "\\");
1814
+ return await ut(e, {
1859
1815
  isNode: d,
1860
- label: r(i) ? n : e,
1816
+ label: i(r) ? n : t,
1861
1817
  labelStyle: a.replace("fill:", "color:")
1862
1818
  }, f, s, p, m);
1863
1819
  } else {
1864
- let e = c(i.replace(/<br\s*\/?>/g, "<br/>")), r = jt(f, t, u ? St(e.replace("<br>", "<br/>"), m) : xt(e), i ? p : !1, !d);
1820
+ let t = u(r.replace(/<br\s*\/?>/g, "<br/>")), i = pt(f, e, l ? rt(t.replace("<br>", "<br/>"), m) : nt(t), r ? p : !1, !d);
1865
1821
  if (d) {
1866
1822
  /stroke:/.exec(a) && (a = a.replace("stroke:", "lineColor:"));
1867
1823
  let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1868
- n(r).attr("style", e);
1824
+ n(i).attr("style", e);
1869
1825
  } else {
1870
1826
  let e = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/background:/g, "fill:");
1871
- n(r).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1827
+ n(i).select("rect").attr("style", e.replace(/background:/g, "fill:"));
1872
1828
  let t = a.replace(/stroke:[^;]+;?/g, "").replace(/stroke-width:[^;]+;?/g, "").replace(/fill:[^;]+;?/g, "").replace(/color:/g, "fill:");
1873
- n(r).select("text").attr("style", t);
1829
+ n(i).select("text").attr("style", t);
1874
1830
  }
1875
- return o ? n(r).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(r).selectAll("tspan.text-outer-tspan").classed("row", !0), r;
1831
+ return o ? n(i).selectAll("tspan.text-outer-tspan").classed("title-row", !0) : n(i).selectAll("tspan.text-outer-tspan").classed("row", !0), i;
1876
1832
  }
1877
1833
  }, "createText");
1878
1834
  //#endregion
1879
- export { mt as a, gt as i, Nt as n, pt as o, yt as r, At as t };
1835
+ export { Xe as i, ht as n, et as r, ft as t };