@aiquants/markdown 5.0.0 → 6.1.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 (179) hide show
  1. package/README.md +176 -14
  2. package/dist/{abnfDiagram-VRR7QNED-DeHJ63Vu.js → abnfDiagram-VRR7QNED-0ow9i3L-.js} +3 -3
  3. package/dist/{abnfDiagram-VRR7QNED-CfVjEUzG.cjs → abnfDiagram-VRR7QNED-DRNsVB-u.cjs} +1 -1
  4. package/dist/{arc-XFFLkHkK.cjs → arc-BWR9_qMf.cjs} +1 -1
  5. package/dist/arc-Bh12k776.js +83 -0
  6. package/dist/{architectureDiagram-ZJ3FMSHR-CQ1m3MUB.js → architectureDiagram-ZJ3FMSHR-CsFXQcxx.js} +123 -123
  7. package/dist/{architectureDiagram-ZJ3FMSHR-7xJ6YYGu.cjs → architectureDiagram-ZJ3FMSHR-DtrqDlxV.cjs} +1 -1
  8. package/dist/{blockDiagram-677ZJIJ3-CJOFqwiW.cjs → blockDiagram-677ZJIJ3-CoZEeE0C.cjs} +1 -1
  9. package/dist/{blockDiagram-677ZJIJ3-BPC3se0e.js → blockDiagram-677ZJIJ3-CqQ43viF.js} +166 -166
  10. package/dist/{c4Diagram-LMCZKHZV-D8ytYGhR.cjs → c4Diagram-LMCZKHZV-DGA2gxp-.cjs} +1 -1
  11. package/dist/{c4Diagram-LMCZKHZV-BEIrp4t6.js → c4Diagram-LMCZKHZV-QPgNg4El.js} +2 -2
  12. package/dist/{channel-CJQcZr8o.cjs → channel-Jkgg7NV4.cjs} +1 -1
  13. package/dist/channel-PnA15jK3.js +5 -0
  14. package/dist/{chunk-2Q5K7J3B-BbMQR3Sm.cjs → chunk-2Q5K7J3B-1iQ5h7FK.cjs} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-l8ly7Yjr.js → chunk-2Q5K7J3B-DOWfHP5s.js} +1 -1
  16. package/dist/{chunk-32BRIVSS-BhQJBlVw.js → chunk-32BRIVSS-94iTIA-u.js} +1 -1
  17. package/dist/{chunk-32BRIVSS-BwDfmprN.cjs → chunk-32BRIVSS-XUAL4SUU.cjs} +1 -1
  18. package/dist/{chunk-5VM5RSS4-CqDQlS7v.cjs → chunk-5VM5RSS4-CKgpuXOS.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-Bfis-x7E.js → chunk-5VM5RSS4-OANQKmQE.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-DUTbzwDM.js → chunk-EX3LRPZG-BQDQ1MdS.js} +50 -50
  21. package/dist/{chunk-EX3LRPZG-9aDULZwJ.cjs → chunk-EX3LRPZG-BrRRbskW.cjs} +1 -1
  22. package/dist/{chunk-JWPE2WC7-5cM5nFf6.cjs → chunk-JWPE2WC7-Bz9dXsLZ.cjs} +1 -1
  23. package/dist/{chunk-JWPE2WC7-DpcSSOP5.js → chunk-JWPE2WC7-Djg6Qi23.js} +1 -1
  24. package/dist/{chunk-MOJQB5TN-D_h6bolU.js → chunk-MOJQB5TN-1pZNp2Wl.js} +9 -9
  25. package/dist/{chunk-MOJQB5TN-Cw864mUL.cjs → chunk-MOJQB5TN-DUk2Jy4_.cjs} +1 -1
  26. package/dist/{chunk-PUDLZKDR-yLvT3c9x.cjs → chunk-PUDLZKDR-CVedetzB.cjs} +1 -1
  27. package/dist/{chunk-PUDLZKDR-B0wZjmzv.js → chunk-PUDLZKDR-G5JYyEiR.js} +22 -22
  28. package/dist/{chunk-RYQCIY6F-DTKYsCgk.js → chunk-RYQCIY6F-Crmt36sO.js} +6 -6
  29. package/dist/{chunk-RYQCIY6F-hj9dRWMT.cjs → chunk-RYQCIY6F-D0y50t5B.cjs} +1 -1
  30. package/dist/{chunk-V7JOEXUC-COa9uddv.js → chunk-V7JOEXUC-BNo-X7NC.js} +5 -5
  31. package/dist/{chunk-V7JOEXUC-DIQ8n1AN.cjs → chunk-V7JOEXUC-DXSQM1ea.cjs} +1 -1
  32. package/dist/{chunk-VR4S4FIN-B72PxPVm.js → chunk-VR4S4FIN-BGGITgpQ.js} +3 -3
  33. package/dist/{chunk-VR4S4FIN-Cy-2mZJB.cjs → chunk-VR4S4FIN-Bc567umS.cjs} +1 -1
  34. package/dist/{chunk-XXDRQBXY-DmoUE7-y.cjs → chunk-XXDRQBXY-DOuLpiJ4.cjs} +1 -1
  35. package/dist/{chunk-XXDRQBXY-D2Sgptl-.js → chunk-XXDRQBXY-Drnpl-KK.js} +1 -1
  36. package/dist/{classDiagram-v2-EOCWNBFH-Dah4_VL7.js → classDiagram-OUVF2IWQ-Cneye7qT.js} +2 -2
  37. package/dist/{classDiagram-OUVF2IWQ-GjsCEuKI.cjs → classDiagram-OUVF2IWQ-mmjBEYmN.cjs} +1 -1
  38. package/dist/{classDiagram-OUVF2IWQ-Dah4_VL7.js → classDiagram-v2-EOCWNBFH-Cneye7qT.js} +2 -2
  39. package/dist/{classDiagram-v2-EOCWNBFH-GjsCEuKI.cjs → classDiagram-v2-EOCWNBFH-mmjBEYmN.cjs} +1 -1
  40. package/dist/components/MarkdownRenderer.d.ts +5 -2
  41. package/dist/components/MarkdownViewer.d.ts +3 -2
  42. package/dist/components/NodesRenderer.d.ts +1 -5
  43. package/dist/components/embeds/ClientFrame.d.ts +13 -0
  44. package/dist/components/embeds/LinkCard.d.ts +20 -0
  45. package/dist/components/embeds/ProviderEmbed.d.ts +11 -0
  46. package/dist/components/embeds/embedLabels.d.ts +12 -0
  47. package/dist/components/embeds/frameMessages.d.ts +7 -0
  48. package/dist/components/embeds/markdownEmbeds.d.ts +2 -0
  49. package/dist/components/embeds/requestQueue.d.ts +16 -0
  50. package/dist/components/embeds.d.ts +0 -8
  51. package/dist/components/htmlSanitizer.d.ts +4 -0
  52. package/dist/components/mdastNodes/HTMLBlockContainerNode.d.ts +1 -2
  53. package/dist/components/rawHtml.d.ts +6 -3
  54. package/dist/components/viewerLabels.d.ts +3 -1
  55. package/dist/{cose-bilkent-JH36ORCC-Pi0l3C5o.js → cose-bilkent-JH36ORCC-BQWfGE1G.js} +1 -1
  56. package/dist/{cose-bilkent-JH36ORCC-Vi9pHFwc.cjs → cose-bilkent-JH36ORCC-BaEdcRlX.cjs} +1 -1
  57. package/dist/css/zenn-content.css +0 -40
  58. package/dist/{cynefinDiagram-TSTJHNR4-CIh03JTU.js → cynefinDiagram-TSTJHNR4-CTDDSUz7.js} +47 -47
  59. package/dist/{cynefinDiagram-TSTJHNR4-BQ2k9Z6b.cjs → cynefinDiagram-TSTJHNR4-DPQl09kC.cjs} +1 -1
  60. package/dist/{dagre-VKFMJZFB-cINcPwV3.js → dagre-VKFMJZFB-BMRdJgZy.js} +27 -27
  61. package/dist/{dagre-VKFMJZFB-DI2wSrAy.cjs → dagre-VKFMJZFB-DZ4E-Szs.cjs} +1 -1
  62. package/dist/{diagram-FQU43EPY-BonrBTG_.js → diagram-FQU43EPY-CmEpNw5i.js} +42 -42
  63. package/dist/{diagram-FQU43EPY-B6iUH2l5.cjs → diagram-FQU43EPY-mK9YHIy1.cjs} +1 -1
  64. package/dist/{diagram-G47NLZAW-CY6mWS2R.cjs → diagram-G47NLZAW-BX8Lj_uD.cjs} +1 -1
  65. package/dist/{diagram-G47NLZAW-5N876QQA.js → diagram-G47NLZAW-eJRQFjAg.js} +83 -83
  66. package/dist/{diagram-NH7WQ7WH-x3SaRfd6.cjs → diagram-NH7WQ7WH-3r1_3TrC.cjs} +1 -1
  67. package/dist/{diagram-NH7WQ7WH-LFuTbHxY.js → diagram-NH7WQ7WH-BOOj_4-N.js} +18 -18
  68. package/dist/{diagram-OA4YK3LP-B9mVw8cB.cjs → diagram-OA4YK3LP-CkDJzLOy.cjs} +1 -1
  69. package/dist/{diagram-OA4YK3LP-Cinpbl0B.js → diagram-OA4YK3LP-DnDIHtcW.js} +61 -61
  70. package/dist/{diagram-WEI45ONY-HPCHpafe.js → diagram-WEI45ONY-BHpuPTt-.js} +21 -21
  71. package/dist/{diagram-WEI45ONY-BRYVUhRr.cjs → diagram-WEI45ONY-BpCCo_Ty.cjs} +1 -1
  72. package/dist/{ebnfDiagram-CCIWWBDH-oLOdtH39.js → ebnfDiagram-CCIWWBDH-BDLB-AVF.js} +5 -5
  73. package/dist/{ebnfDiagram-CCIWWBDH-DhFlIi0a.cjs → ebnfDiagram-CCIWWBDH-CfdalXdM.cjs} +1 -1
  74. package/dist/embeds/frames.d.ts +4 -0
  75. package/dist/embeds/linkCards.d.ts +48 -0
  76. package/dist/embeds/placeholder.d.ts +15 -0
  77. package/dist/embeds/providers.d.ts +73 -0
  78. package/dist/embeds/testing.cjs +1 -0
  79. package/dist/embeds/testing.d.ts +7 -0
  80. package/dist/embeds/testing.js +67 -0
  81. package/dist/embeds.cjs +1 -0
  82. package/dist/embeds.d.ts +4 -0
  83. package/dist/embeds.js +73 -0
  84. package/dist/{erDiagram-Q63AITRT-DCCFR1Ai.cjs → erDiagram-Q63AITRT-CviOyQsx.cjs} +1 -1
  85. package/dist/{erDiagram-Q63AITRT-CCtzpK78.js → erDiagram-Q63AITRT-DZlcgZfp.js} +9 -9
  86. package/dist/{extractHeadings-CGJexznE.js → extractHeadings-CtiYkq2z.js} +5482 -5431
  87. package/dist/extractHeadings-D1A8WzVy.cjs +311 -0
  88. package/dist/flowDiagram-23GEKE2U-C_FW0q38.js +7 -0
  89. package/dist/flowDiagram-23GEKE2U-Cb0U58EU.cjs +1 -0
  90. package/dist/{ganttDiagram-NO4QXBWP-C9RPyo4r.cjs → ganttDiagram-NO4QXBWP-CJa-hKPU.cjs} +1 -1
  91. package/dist/{ganttDiagram-NO4QXBWP-Dfi3nINO.js → ganttDiagram-NO4QXBWP-DO0HAbYg.js} +69 -69
  92. package/dist/{gitGraphDiagram-IHSO6WYX-CjAqPhww.js → gitGraphDiagram-IHSO6WYX-CXStgPQs.js} +38 -38
  93. package/dist/{gitGraphDiagram-IHSO6WYX-mT3NNT7T.cjs → gitGraphDiagram-IHSO6WYX-CXcPHbkt.cjs} +1 -1
  94. package/dist/index.cjs +1 -1
  95. package/dist/index.client.cjs +1 -1
  96. package/dist/index.client.d.ts +1 -10
  97. package/dist/index.client.js +41 -49
  98. package/dist/index.js +41 -49
  99. package/dist/index.server.cjs +1 -1
  100. package/dist/index.server.d.ts +1 -2
  101. package/dist/index.server.js +593 -191
  102. package/dist/{infoDiagram-FWYZ7A6U-0Co9BitR.cjs → infoDiagram-FWYZ7A6U-BByoHihL.cjs} +1 -1
  103. package/dist/{infoDiagram-FWYZ7A6U-BXWQ9Vy4.js → infoDiagram-FWYZ7A6U-K0__ySEG.js} +1 -1
  104. package/dist/{ishikawaDiagram-FXEZZL3T-CZp5P1WE.js → ishikawaDiagram-FXEZZL3T-C8QlwQP1.js} +35 -35
  105. package/dist/{ishikawaDiagram-FXEZZL3T-BKqUBw1i.cjs → ishikawaDiagram-FXEZZL3T-DZOMdeTI.cjs} +1 -1
  106. package/dist/{journeyDiagram-5HDEW3XC-DYVTgOOE.js → journeyDiagram-5HDEW3XC-CZ9PFNNN.js} +39 -39
  107. package/dist/{journeyDiagram-5HDEW3XC-CeumPQ1I.cjs → journeyDiagram-5HDEW3XC-RvC77rKo.cjs} +1 -1
  108. package/dist/{kanban-definition-HUTT4EX6-Cg5KnsE9.cjs → kanban-definition-HUTT4EX6-BL1jihGl.cjs} +1 -1
  109. package/dist/{kanban-definition-HUTT4EX6-CnleRy80.js → kanban-definition-HUTT4EX6-Q12F4vHx.js} +123 -123
  110. package/dist/{linear-Cf8i6Rsk.js → linear-LWjATjog.js} +32 -32
  111. package/dist/{linear-qqwu6T0F.cjs → linear-lDvPoqlB.cjs} +1 -1
  112. package/dist/linkCardServer/addressGuard.server.d.ts +25 -0
  113. package/dist/linkCardServer/htmlEncoding.server.d.ts +6 -0
  114. package/dist/linkCardServer/linkCardHandler.server.d.ts +7 -0
  115. package/dist/linkCardServer/metadataCache.server.d.ts +5 -0
  116. package/dist/linkCardServer/pageFetch.server.d.ts +37 -0
  117. package/dist/linkCardServer/pageMetadata.server.d.ts +11 -0
  118. package/dist/linkCards-1JxY8wdm.js +48 -0
  119. package/dist/linkCards-Bjd_vW39.cjs +1 -0
  120. package/dist/markdown.css +1 -1
  121. package/dist/{mindmap-definition-LN4V7U3C-lBin9VOm.js → mindmap-definition-LN4V7U3C-CM1XvwJX.js} +33 -33
  122. package/dist/{mindmap-definition-LN4V7U3C-DfFWeFph.cjs → mindmap-definition-LN4V7U3C-TVYKONRm.cjs} +1 -1
  123. package/dist/{pegDiagram-2B236MQR-BiD21lOj.js → pegDiagram-2B236MQR-Dlrnikqd.js} +5 -5
  124. package/dist/{pegDiagram-2B236MQR-Cf1f-3yi.cjs → pegDiagram-2B236MQR-a9Up0ERY.cjs} +1 -1
  125. package/dist/{pieDiagram-ENE6RG2P-jwhVsZgX.cjs → pieDiagram-ENE6RG2P-ClakmSma.cjs} +1 -1
  126. package/dist/{pieDiagram-ENE6RG2P-BqZb6gaV.js → pieDiagram-ENE6RG2P-WYrEJp8U.js} +58 -58
  127. package/dist/providers-Bxr2Wb-j.cjs +1 -0
  128. package/dist/providers-Drq7MT_K.js +209 -0
  129. package/dist/{quadrantDiagram-ABIIQ3AL-CNe9fRLO.js → quadrantDiagram-ABIIQ3AL-BkgMVDaX.js} +48 -48
  130. package/dist/{quadrantDiagram-ABIIQ3AL-sO_sIA7b.cjs → quadrantDiagram-ABIIQ3AL-Cb01YcqR.cjs} +1 -1
  131. package/dist/{railroadDiagram-RFXS5EU6-Dkc8k3e9.cjs → railroadDiagram-RFXS5EU6-Bob4WSMz.cjs} +1 -1
  132. package/dist/{railroadDiagram-RFXS5EU6-53YTkJrs.js → railroadDiagram-RFXS5EU6-RfCtZGUR.js} +3 -3
  133. package/dist/{requirementDiagram-TGXJPOKE-C0GMlJO4.cjs → requirementDiagram-TGXJPOKE-BP5h9mCj.cjs} +1 -1
  134. package/dist/{requirementDiagram-TGXJPOKE-D8Gz7jzA.js → requirementDiagram-TGXJPOKE-C1yJPMp1.js} +3 -3
  135. package/dist/{sankeyDiagram-HTMAVEWB-CEC0GaCg.js → sankeyDiagram-HTMAVEWB-D5G9Dcmr.js} +67 -67
  136. package/dist/{sankeyDiagram-HTMAVEWB-Bw9J2Ay2.cjs → sankeyDiagram-HTMAVEWB-shq9WK4t.cjs} +1 -1
  137. package/dist/{sequenceDiagram-DBY2YBRQ-CKb4m3I0.js → sequenceDiagram-DBY2YBRQ-8EJMQxiB.js} +47 -47
  138. package/dist/{sequenceDiagram-DBY2YBRQ-BuqPCreB.cjs → sequenceDiagram-DBY2YBRQ-BRxcK5-5.cjs} +1 -1
  139. package/dist/{simple-logger-DZxBpX7v.cjs → simple-logger-9yf7ypyB.cjs} +1 -1
  140. package/dist/{simple-logger-i94ikRyH.js → simple-logger-DwH1YQvq.js} +3 -1
  141. package/dist/{sizeCapture-X5ZJPWSS-Dm3rsxXw.cjs → sizeCapture-X5ZJPWSS-BtBRJO2R.cjs} +1 -1
  142. package/dist/{sizeCapture-X5ZJPWSS-CotnTNAA.js → sizeCapture-X5ZJPWSS-DJG85IuR.js} +1 -1
  143. package/dist/{stateDiagram-2N3HPSRC-GWEIP-C9.js → stateDiagram-2N3HPSRC-CAd-NU-f.js} +22 -22
  144. package/dist/{stateDiagram-2N3HPSRC-5Y-OlePe.cjs → stateDiagram-2N3HPSRC-Czgkv_ey.cjs} +1 -1
  145. package/dist/{stateDiagram-v2-6OUMAXLB-v77D3Qyf.cjs → stateDiagram-v2-6OUMAXLB-BNP5Lx0Y.cjs} +1 -1
  146. package/dist/{stateDiagram-v2-6OUMAXLB-BZFV8swJ.js → stateDiagram-v2-6OUMAXLB-x_Zps-d5.js} +2 -2
  147. package/dist/styles/markdown.css +1 -1
  148. package/dist/{swimlanes-5IMT3BWC-B1hLl8Ph.cjs → swimlanes-5IMT3BWC-CfdkDd3q.cjs} +1 -1
  149. package/dist/{swimlanes-5IMT3BWC-DujAOwAt.js → swimlanes-5IMT3BWC-D8brzzxb.js} +313 -313
  150. package/dist/{swimlanesDiagram-G3AALYLV-B-5z3jDg.js → swimlanesDiagram-G3AALYLV-Bc9-lR2e.js} +2 -2
  151. package/dist/{swimlanesDiagram-G3AALYLV-Cklgsxbg.cjs → swimlanesDiagram-G3AALYLV-dvJpSdGV.cjs} +1 -1
  152. package/dist/{timeline-definition-FHXFAJF6-B2m-aQLI.cjs → timeline-definition-FHXFAJF6-BSqACati.cjs} +1 -1
  153. package/dist/{timeline-definition-FHXFAJF6-Fmzt_lvR.js → timeline-definition-FHXFAJF6-CKW3NJOF.js} +34 -34
  154. package/dist/utils/simple-logger.d.ts +1 -0
  155. package/dist/{vennDiagram-L72KCM5P-rL7UDYbl.cjs → vennDiagram-L72KCM5P-ChKxsFyJ.cjs} +1 -1
  156. package/dist/{vennDiagram-L72KCM5P-zIXK42Cx.js → vennDiagram-L72KCM5P-vPmq984y.js} +92 -92
  157. package/dist/{wardleyDiagram-EHGQE667-pTeeZ0uM.js → wardleyDiagram-EHGQE667-CwN9zwBX.js} +11 -11
  158. package/dist/{wardleyDiagram-EHGQE667-CNLieFen.cjs → wardleyDiagram-EHGQE667-CxzlR7km.cjs} +1 -1
  159. package/dist/{xychartDiagram-FW5EYKEG-B6UdSSVZ.js → xychartDiagram-FW5EYKEG-DBSKTLuc.js} +37 -37
  160. package/dist/{xychartDiagram-FW5EYKEG-CD5ik4HK.cjs → xychartDiagram-FW5EYKEG-wJqYRInm.cjs} +1 -1
  161. package/package.json +25 -9
  162. package/dist/arc-DH6k2JIR.js +0 -83
  163. package/dist/channel-DoH_tsOQ.js +0 -5
  164. package/dist/components/mdastNodes/BlockLinkNode.d.ts +0 -5
  165. package/dist/components/mdastNodes/RichLinkCard.d.ts +0 -8
  166. package/dist/components/mdastNodes/TwitterEmbedNode.d.ts +0 -25
  167. package/dist/components/mdastNodes/YouTubeEmbedNode.d.ts +0 -6
  168. package/dist/extractHeadings-lDHB2sBb.cjs +0 -310
  169. package/dist/flowDiagram-23GEKE2U-ORytlvmX.js +0 -7
  170. package/dist/flowDiagram-23GEKE2U-h2WZTCCn.cjs +0 -1
  171. package/dist/plugins/createIntentTweetLink.d.ts +0 -10
  172. package/dist/plugins/extractYouTubeVideoId.d.ts +0 -5
  173. package/dist/plugins/fetchSiteMetadata.d.ts +0 -9
  174. package/dist/plugins/remark-auto-heading-id.d.ts +0 -2
  175. package/dist/plugins/remark-block-link-metadata.d.ts +0 -23
  176. package/dist/plugins/remark-block-link.d.ts +0 -12
  177. package/dist/plugins/remark-twitter-embed.d.ts +0 -20
  178. package/dist/plugins/remark-youtube-embed.d.ts +0 -14
  179. package/dist/utils/getFaviconUrl.d.ts +0 -1
@@ -1,17 +1,17 @@
1
- import { _ as o, $ as te, W as U, as as fe, aZ as ye, a_ as be, a$ as me, aI as _e, aq as K, a3 as G, af as ke, ag as Ee, aF as Se, aG as ce, aH as le } from "./extractHeadings-CGJexznE.js";
2
- import { g as Ne } from "./chunk-5VM5RSS4-Bfis-x7E.js";
1
+ import { _ as o, O as te, J as H, ak as fe, aR as ye, aS as be, aT as me, aA as ke, ai as K, V as F, a7 as _e, a8 as Ee, ax as Se, ay as ce, az as le } from "./extractHeadings-CtiYkq2z.js";
2
+ import { g as Ne } from "./chunk-5VM5RSS4-OANQKmQE.js";
3
3
  var $ = (function() {
4
- var e = /* @__PURE__ */ o(function(O, s, n, r) {
5
- for (n = n || {}, r = O.length; r--; n[O[r]] = s) ;
4
+ var e = /* @__PURE__ */ o(function(O, i, n, r) {
5
+ for (n = n || {}, r = O.length; r--; n[O[r]] = i) ;
6
6
  return n;
7
- }, "o"), h = [1, 4], p = [1, 13], i = [1, 12], d = [1, 15], _ = [1, 16], m = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], k = [6, 7, 11], j = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], T = {
7
+ }, "o"), h = [1, 4], p = [1, 13], s = [1, 12], d = [1, 15], k = [1, 16], m = [1, 20], l = [1, 19], D = [6, 7, 8], I = [1, 26], g = [1, 24], w = [1, 25], _ = [6, 7, 11], G = [1, 31], N = [6, 7, 11, 24], V = [1, 6, 13, 16, 17, 20, 23], f = [1, 35], A = [1, 36], L = [1, 6, 7, 11, 13, 16, 17, 20, 23], M = [1, 38], T = {
8
8
  trace: /* @__PURE__ */ o(function() {
9
9
  }, "trace"),
10
10
  yy: {},
11
11
  symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
12
12
  terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
13
13
  productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
14
- performAction: /* @__PURE__ */ o(function(s, n, r, a, u, t, M) {
14
+ performAction: /* @__PURE__ */ o(function(i, n, r, a, u, t, U) {
15
15
  var c = t.length - 1;
16
16
  switch (u) {
17
17
  case 6:
@@ -71,23 +71,23 @@ var $ = (function() {
71
71
  break;
72
72
  }
73
73
  }, "anonymous"),
74
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p, 12: 21, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(k, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: m, 23: l }), e(k, [2, 19]), e(k, [2, 21], { 15: 30, 24: j }), e(k, [2, 22]), e(k, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p, 12: 21, 13: i, 14: 14, 16: d, 17: _, 18: 17, 19: 18, 20: m, 23: l }, e(V, [2, 14], { 7: f, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(k, [2, 16], { 15: 37, 24: j }), e(k, [2, 17]), e(k, [2, 18]), e(k, [2, 20], { 24: H }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(k, [2, 15], { 24: H }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
74
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: h }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: h }, { 6: p, 7: [1, 10], 9: 9, 12: 11, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(D, [2, 3]), { 1: [2, 2] }, e(D, [2, 4]), e(D, [2, 5]), { 1: [2, 6], 6: p, 12: 21, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: p, 9: 22, 12: 11, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, { 6: I, 7: g, 10: 23, 11: w }, e(_, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: m, 23: l }), e(_, [2, 19]), e(_, [2, 21], { 15: 30, 24: G }), e(_, [2, 22]), e(_, [2, 23]), e(N, [2, 25]), e(N, [2, 26]), e(N, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: I, 7: g, 10: 34, 11: w }, { 1: [2, 7], 6: p, 12: 21, 13: s, 14: 14, 16: d, 17: k, 18: 17, 19: 18, 20: m, 23: l }, e(V, [2, 14], { 7: f, 11: A }), e(L, [2, 8]), e(L, [2, 9]), e(L, [2, 10]), e(_, [2, 16], { 15: 37, 24: G }), e(_, [2, 17]), e(_, [2, 18]), e(_, [2, 20], { 24: M }), e(N, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, e(V, [2, 13], { 7: f, 11: A }), e(L, [2, 11]), e(L, [2, 12]), e(_, [2, 15], { 24: M }), e(N, [2, 30]), { 22: [1, 41] }, e(N, [2, 27]), e(N, [2, 29])],
75
75
  defaultActions: { 2: [2, 1], 6: [2, 2] },
76
- parseError: /* @__PURE__ */ o(function(s, n) {
76
+ parseError: /* @__PURE__ */ o(function(i, n) {
77
77
  if (n.recoverable)
78
- this.trace(s);
78
+ this.trace(i);
79
79
  else {
80
- var r = new Error(s);
80
+ var r = new Error(i);
81
81
  throw r.hash = n, r;
82
82
  }
83
83
  }, "parseError"),
84
- parse: /* @__PURE__ */ o(function(s) {
85
- var n = this, r = [0], a = [], u = [null], t = [], M = this.table, c = "", W = 0, ie = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), b = Object.create(this.lexer), R = { yy: {} };
86
- for (var q in this.yy)
87
- Object.prototype.hasOwnProperty.call(this.yy, q) && (R.yy[q] = this.yy[q]);
88
- b.setInput(s, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
89
- var J = b.yylloc;
90
- t.push(J);
84
+ parse: /* @__PURE__ */ o(function(i) {
85
+ var n = this, r = [0], a = [], u = [null], t = [], U = this.table, c = "", W = 0, se = 0, ue = 2, re = 1, ge = t.slice.call(arguments, 1), b = Object.create(this.lexer), R = { yy: {} };
86
+ for (var J in this.yy)
87
+ Object.prototype.hasOwnProperty.call(this.yy, J) && (R.yy[J] = this.yy[J]);
88
+ b.setInput(i, R.yy), R.yy.lexer = b, R.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
89
+ var q = b.yylloc;
90
+ t.push(q);
91
91
  var de = b.options && b.options.ranges;
92
92
  typeof R.yy.parseError == "function" ? this.parseError = R.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
93
93
  function pe(S) {
@@ -99,19 +99,19 @@ var $ = (function() {
99
99
  return S = a.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = n.symbols_[S] || S), S;
100
100
  }
101
101
  o(ae, "lex");
102
- for (var E, P, x, Z, F = {}, z, C, oe, X; ; ) {
103
- if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = ae()), x = M[P] && M[P][E]), typeof x > "u" || !x.length || !x[0]) {
104
- var Q = "";
102
+ for (var E, P, x, Q, j = {}, z, C, oe, X; ; ) {
103
+ if (P = r[r.length - 1], this.defaultActions[P] ? x = this.defaultActions[P] : ((E === null || typeof E > "u") && (E = ae()), x = U[P] && U[P][E]), typeof x > "u" || !x.length || !x[0]) {
104
+ var Z = "";
105
105
  X = [];
106
- for (z in M[P])
106
+ for (z in U[P])
107
107
  this.terminals_[z] && z > ue && X.push("'" + this.terminals_[z] + "'");
108
- b.showPosition ? Q = "Parse error on line " + (W + 1) + `:
108
+ b.showPosition ? Z = "Parse error on line " + (W + 1) + `:
109
109
  ` + b.showPosition() + `
110
- Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "Parse error on line " + (W + 1) + ": Unexpected " + (E == re ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Q, {
110
+ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Z = "Parse error on line " + (W + 1) + ": Unexpected " + (E == re ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError(Z, {
111
111
  text: b.match,
112
112
  token: this.terminals_[E] || E,
113
113
  line: b.yylineno,
114
- loc: J,
114
+ loc: q,
115
115
  expected: X
116
116
  });
117
117
  }
@@ -119,28 +119,28 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
119
119
  throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + E);
120
120
  switch (x[0]) {
121
121
  case 1:
122
- r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, ie = b.yyleng, c = b.yytext, W = b.yylineno, J = b.yylloc;
122
+ r.push(E), u.push(b.yytext), t.push(b.yylloc), r.push(x[1]), E = null, se = b.yyleng, c = b.yytext, W = b.yylineno, q = b.yylloc;
123
123
  break;
124
124
  case 2:
125
- if (C = this.productions_[x[1]][1], F.$ = u[u.length - C], F._$ = {
125
+ if (C = this.productions_[x[1]][1], j.$ = u[u.length - C], j._$ = {
126
126
  first_line: t[t.length - (C || 1)].first_line,
127
127
  last_line: t[t.length - 1].last_line,
128
128
  first_column: t[t.length - (C || 1)].first_column,
129
129
  last_column: t[t.length - 1].last_column
130
- }, de && (F._$.range = [
130
+ }, de && (j._$.range = [
131
131
  t[t.length - (C || 1)].range[0],
132
132
  t[t.length - 1].range[1]
133
- ]), Z = this.performAction.apply(F, [
133
+ ]), Q = this.performAction.apply(j, [
134
134
  c,
135
- ie,
135
+ se,
136
136
  W,
137
137
  R.yy,
138
138
  x[1],
139
139
  u,
140
140
  t
141
- ].concat(ge)), typeof Z < "u")
142
- return Z;
143
- C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(F.$), t.push(F._$), oe = M[r[r.length - 2]][r[r.length - 1]], r.push(oe);
141
+ ].concat(ge)), typeof Q < "u")
142
+ return Q;
143
+ C && (r = r.slice(0, -1 * C * 2), u = u.slice(0, -1 * C), t = t.slice(0, -1 * C)), r.push(this.productions_[x[1]][0]), u.push(j.$), t.push(j._$), oe = U[r[r.length - 2]][r[r.length - 1]], r.push(oe);
144
144
  break;
145
145
  case 3:
146
146
  return !0;
@@ -158,8 +158,8 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
158
158
  throw new Error(n);
159
159
  }, "parseError"),
160
160
  // resets the lexer, sets new input
161
- setInput: /* @__PURE__ */ o(function(s, n) {
162
- return this.yy = n || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
161
+ setInput: /* @__PURE__ */ o(function(i, n) {
162
+ return this.yy = n || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
163
163
  first_line: 1,
164
164
  first_column: 0,
165
165
  last_line: 1,
@@ -168,15 +168,15 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
168
168
  }, "setInput"),
169
169
  // consumes and returns one char from the input
170
170
  input: /* @__PURE__ */ o(function() {
171
- var s = this._input[0];
172
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
173
- var n = s.match(/(?:\r\n?|\n).*/g);
174
- return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
171
+ var i = this._input[0];
172
+ this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
173
+ var n = i.match(/(?:\r\n?|\n).*/g);
174
+ return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
175
175
  }, "input"),
176
176
  // unshifts one char (or a string) into the input
177
- unput: /* @__PURE__ */ o(function(s) {
178
- var n = s.length, r = s.split(/(?:\r\n?|\n)/g);
179
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
177
+ unput: /* @__PURE__ */ o(function(i) {
178
+ var n = i.length, r = i.split(/(?:\r\n?|\n)/g);
179
+ this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
180
180
  var a = this.match.split(/(?:\r\n?|\n)/g);
181
181
  this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
182
182
  var u = this.yylloc.range;
@@ -205,27 +205,27 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
205
205
  return this;
206
206
  }, "reject"),
207
207
  // retain first n characters of the match
208
- less: /* @__PURE__ */ o(function(s) {
209
- this.unput(this.match.slice(s));
208
+ less: /* @__PURE__ */ o(function(i) {
209
+ this.unput(this.match.slice(i));
210
210
  }, "less"),
211
211
  // displays already matched input, i.e. for error messages
212
212
  pastInput: /* @__PURE__ */ o(function() {
213
- var s = this.matched.substr(0, this.matched.length - this.match.length);
214
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
213
+ var i = this.matched.substr(0, this.matched.length - this.match.length);
214
+ return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
215
215
  }, "pastInput"),
216
216
  // displays upcoming input, i.e. for error messages
217
217
  upcomingInput: /* @__PURE__ */ o(function() {
218
- var s = this.match;
219
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
218
+ var i = this.match;
219
+ return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
220
220
  }, "upcomingInput"),
221
221
  // displays the character position where the lexing error occurred, i.e. for error messages
222
222
  showPosition: /* @__PURE__ */ o(function() {
223
- var s = this.pastInput(), n = new Array(s.length + 1).join("-");
224
- return s + this.upcomingInput() + `
223
+ var i = this.pastInput(), n = new Array(i.length + 1).join("-");
224
+ return i + this.upcomingInput() + `
225
225
  ` + n + "^";
226
226
  }, "showPosition"),
227
227
  // test the lexed token: return FALSE when not a match, otherwise return token
228
- test_match: /* @__PURE__ */ o(function(s, n) {
228
+ test_match: /* @__PURE__ */ o(function(i, n) {
229
229
  var r, a, u;
230
230
  if (this.options.backtrack_lexer && (u = {
231
231
  yylineno: this.yylineno,
@@ -246,12 +246,12 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
246
246
  yy: this.yy,
247
247
  conditionStack: this.conditionStack.slice(0),
248
248
  done: this.done
249
- }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
249
+ }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), a = i[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
250
250
  first_line: this.yylloc.last_line,
251
251
  last_line: this.yylineno + 1,
252
252
  first_column: this.yylloc.last_column,
253
- last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
254
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
253
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
254
+ }, this.yytext += i[0], this.match += i[0], this.matches = i, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(i[0].length), this.matched += i[0], r = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
255
255
  return r;
256
256
  if (this._backtrack) {
257
257
  for (var t in u)
@@ -265,13 +265,13 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
265
265
  if (this.done)
266
266
  return this.EOF;
267
267
  this._input || (this.done = !0);
268
- var s, n, r, a;
268
+ var i, n, r, a;
269
269
  this._more || (this.yytext = "", this.match = "");
270
270
  for (var u = this._currentRules(), t = 0; t < u.length; t++)
271
271
  if (r = this._input.match(this.rules[u[t]]), r && (!n || r[0].length > n[0].length)) {
272
272
  if (n = r, a = t, this.options.backtrack_lexer) {
273
- if (s = this.test_match(r, u[t]), s !== !1)
274
- return s;
273
+ if (i = this.test_match(r, u[t]), i !== !1)
274
+ return i;
275
275
  if (this._backtrack) {
276
276
  n = !1;
277
277
  continue;
@@ -280,7 +280,7 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
280
280
  } else if (!this.options.flex)
281
281
  break;
282
282
  }
283
- return n ? (s = this.test_match(n, u[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
283
+ return n ? (i = this.test_match(n, u[a]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
284
284
  ` + this.showPosition(), {
285
285
  text: "",
286
286
  token: null,
@@ -430,39 +430,39 @@ Expecting ` + X.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Q = "
430
430
  return o(B, "Parser"), B.prototype = T, T.Parser = B, new B();
431
431
  })();
432
432
  $.parser = $;
433
- var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
434
- v = [], ne = [], ee = 0, se = {};
433
+ var xe = $, v = [], ne = [], ee = 0, ie = {}, ve = /* @__PURE__ */ o(() => {
434
+ v = [], ne = [], ee = 0, ie = {};
435
435
  }, "clear"), De = /* @__PURE__ */ o((e) => {
436
436
  if (v.length === 0)
437
437
  return null;
438
438
  const h = v[0].level;
439
439
  let p = null;
440
- for (let i = v.length - 1; i >= 0; i--)
441
- if (v[i].level === h && !p && (p = v[i]), v[i].level < h)
442
- throw new Error('Items without section detected, found section ("' + v[i].label + '")');
440
+ for (let s = v.length - 1; s >= 0; s--)
441
+ if (v[s].level === h && !p && (p = v[s]), v[s].level < h)
442
+ throw new Error('Items without section detected, found section ("' + v[s].label + '")');
443
443
  return e === p?.level ? null : p;
444
444
  }, "getSection"), he = /* @__PURE__ */ o(function() {
445
445
  return ne;
446
446
  }, "getSections"), Le = /* @__PURE__ */ o(function() {
447
- const e = [], h = [], p = he(), i = U();
447
+ const e = [], h = [], p = he(), s = H();
448
448
  for (const d of p) {
449
- const _ = {
449
+ const k = {
450
450
  id: d.id,
451
- label: G(d.label ?? "", i),
451
+ label: F(d.label ?? "", s),
452
452
  labelType: "markdown",
453
453
  isGroup: !0,
454
454
  ticket: d.ticket,
455
455
  shape: "kanbanSection",
456
456
  level: d.level,
457
- look: i.look
457
+ look: s.look
458
458
  };
459
- h.push(_);
459
+ h.push(k);
460
460
  const m = v.filter((l) => l.parentId === d.id);
461
461
  for (const l of m) {
462
462
  const D = {
463
463
  id: l.id,
464
464
  parentId: d.id,
465
- label: G(l.label ?? "", i),
465
+ label: F(l.label ?? "", s),
466
466
  labelType: "markdown",
467
467
  isGroup: !1,
468
468
  ticket: l?.ticket,
@@ -478,21 +478,21 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
478
478
  h.push(D);
479
479
  }
480
480
  }
481
- return { nodes: h, edges: e, other: {}, config: U() };
482
- }, "getData"), Oe = /* @__PURE__ */ o((e, h, p, i, d) => {
483
- const _ = U();
484
- let m = _.mindmap?.padding ?? K.mindmap.padding;
485
- switch (i) {
481
+ return { nodes: h, edges: e, other: {}, config: H() };
482
+ }, "getData"), Oe = /* @__PURE__ */ o((e, h, p, s, d) => {
483
+ const k = H();
484
+ let m = k.mindmap?.padding ?? K.mindmap.padding;
485
+ switch (s) {
486
486
  case y.ROUNDED_RECT:
487
487
  case y.RECT:
488
488
  case y.HEXAGON:
489
489
  m *= 2;
490
490
  }
491
491
  const l = {
492
- id: G(h, _) || "kbn" + ee++,
492
+ id: F(h, k) || "kbn" + ee++,
493
493
  level: e,
494
- label: G(p, _),
495
- width: _.mindmap?.maxNodeWidth ?? K.mindmap.maxNodeWidth,
494
+ label: F(p, k),
495
+ width: k.mindmap?.maxNodeWidth ?? K.mindmap.maxNodeWidth,
496
496
  padding: m,
497
497
  isGroup: !1
498
498
  };
@@ -503,7 +503,7 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
503
503
  ` : I = `{
504
504
  ` + d + `
505
505
  }`;
506
- const g = ke(I, { schema: Ee });
506
+ const g = _e(I, { schema: Ee });
507
507
  if (g.shape && (g.shape !== g.shape.toLowerCase() || g.shape.includes("_")))
508
508
  throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);
509
509
  g?.shape && g.shape === "kanbanItem" && (l.shape = g?.shape), g?.label && (l.label = g?.label), g?.icon && (l.icon = g?.icon.toString()), g?.assigned && (l.assigned = g?.assigned.toString()), g?.ticket && (l.ticket = g?.ticket.toString()), g?.priority && (l.priority = g?.priority);
@@ -537,12 +537,12 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
537
537
  return y.DEFAULT;
538
538
  }
539
539
  }, "getType"), Ce = /* @__PURE__ */ o((e, h) => {
540
- se[e] = h;
540
+ ie[e] = h;
541
541
  }, "setElementForId"), we = /* @__PURE__ */ o((e) => {
542
542
  if (!e)
543
543
  return;
544
- const h = U(), p = v[v.length - 1];
545
- e.icon && (p.icon = G(e.icon, h)), e.class && (p.cssClasses = G(e.class, h));
544
+ const h = H(), p = v[v.length - 1];
545
+ e.icon && (p.icon = F(e.icon, h)), e.class && (p.cssClasses = F(e.class, h));
546
546
  }, "decorateNode"), Ae = /* @__PURE__ */ o((e) => {
547
547
  switch (e) {
548
548
  case y.DEFAULT:
@@ -563,7 +563,7 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
563
563
  default:
564
564
  return "no-border";
565
565
  }
566
- }, "type2Str"), Te = /* @__PURE__ */ o(() => te, "getLogger"), Re = /* @__PURE__ */ o((e) => se[e], "getElementById"), Pe = {
566
+ }, "type2Str"), Te = /* @__PURE__ */ o(() => te, "getLogger"), Re = /* @__PURE__ */ o((e) => ie[e], "getElementById"), Pe = {
567
567
  clear: ve,
568
568
  addNode: Oe,
569
569
  getSections: he,
@@ -575,84 +575,84 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
575
575
  type2Str: Ae,
576
576
  getLogger: Te,
577
577
  getElementById: Re
578
- }, Ve = Pe, Be = /* @__PURE__ */ o(async (e, h, p, i) => {
578
+ }, Ve = Pe, Be = /* @__PURE__ */ o(async (e, h, p, s) => {
579
579
  te.debug(`Rendering kanban diagram
580
580
  ` + e);
581
- const _ = i.db.getData(), m = U();
581
+ const k = s.db.getData(), m = H();
582
582
  m.htmlLabels = !1;
583
583
  const l = fe(h);
584
- for (const f of _.nodes)
584
+ for (const f of k.nodes)
585
585
  f.domId = `${h}-${f.id}`;
586
586
  const D = l.append("g");
587
587
  D.attr("class", "sections");
588
588
  const I = l.append("g");
589
589
  I.attr("class", "items");
590
- const g = _.nodes.filter(
590
+ const g = k.nodes.filter(
591
591
  // TODO: TypeScript 5.5 will infer this predicate automatically
592
592
  (f) => f.isGroup
593
593
  );
594
594
  let w = 0;
595
- const k = 10, j = [];
595
+ const _ = 10, G = [];
596
596
  let N = 25;
597
597
  for (const f of g) {
598
598
  const A = m?.kanban?.sectionWidth || 200;
599
- w = w + 1, f.x = A * w + (w - 1) * k / 2, f.width = A, f.y = 0, f.height = A * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + w;
599
+ w = w + 1, f.x = A * w + (w - 1) * _ / 2, f.width = A, f.y = 0, f.height = A * 3, f.rx = 5, f.ry = 5, f.cssClasses = f.cssClasses + " section-" + w;
600
600
  const L = await ye(D, f);
601
- N = Math.max(N, L?.labelBBox?.height), j.push(L);
601
+ N = Math.max(N, L?.labelBBox?.height), G.push(L);
602
602
  }
603
603
  let V = 0;
604
604
  for (const f of g) {
605
- const A = j[V];
605
+ const A = G[V];
606
606
  V = V + 1;
607
- const L = m?.kanban?.sectionWidth || 200, H = -L * 3 / 2 + N;
608
- let T = H;
609
- const Y = _.nodes.filter((s) => s.parentId === f.id);
610
- for (const s of Y) {
611
- if (s.isGroup)
607
+ const L = m?.kanban?.sectionWidth || 200, M = -L * 3 / 2 + N;
608
+ let T = M;
609
+ const Y = k.nodes.filter((i) => i.parentId === f.id);
610
+ for (const i of Y) {
611
+ if (i.isGroup)
612
612
  throw new Error("Groups within groups are not allowed in Kanban diagrams");
613
- s.x = f.x, s.width = L - 1.5 * k;
614
- const r = (await be(I, s, { config: m })).node().getBBox();
615
- s.y = T + r.height / 2, await me(s), T = s.y + r.height / 2 + k / 2;
613
+ i.x = f.x, i.width = L - 1.5 * _;
614
+ const r = (await be(I, i, { config: m })).node().getBBox();
615
+ i.y = T + r.height / 2, await me(i), T = i.y + r.height / 2 + _ / 2;
616
616
  }
617
- const B = A.cluster.select("rect"), O = Math.max(T - H + 3 * k, 50) + (N - 25);
617
+ const B = A.cluster.select("rect"), O = Math.max(T - M + 3 * _, 50) + (N - 25);
618
618
  B.attr("height", O);
619
619
  }
620
- _e(
620
+ ke(
621
621
  void 0,
622
622
  l,
623
623
  m.mindmap?.padding ?? K.kanban.padding,
624
624
  m.mindmap?.useMaxWidth ?? K.kanban.useMaxWidth
625
625
  );
626
- }, "draw"), Fe = {
626
+ }, "draw"), je = {
627
627
  draw: Be
628
- }, Ge = /* @__PURE__ */ o((e) => {
628
+ }, Fe = /* @__PURE__ */ o((e) => {
629
629
  let h = "";
630
- for (let i = 0; i < e.THEME_COLOR_LIMIT; i++)
631
- e["lineColor" + i] = e["lineColor" + i] || e["cScaleInv" + i], Se(e["lineColor" + i]) ? e["lineColor" + i] = ce(e["lineColor" + i], 20) : e["lineColor" + i] = le(e["lineColor" + i], 20);
632
- const p = /* @__PURE__ */ o((i, d) => e.darkMode ? le(i, d) : ce(i, d), "adjuster");
633
- for (let i = 0; i < e.THEME_COLOR_LIMIT; i++) {
634
- const d = "" + (17 - 3 * i);
630
+ for (let s = 0; s < e.THEME_COLOR_LIMIT; s++)
631
+ e["lineColor" + s] = e["lineColor" + s] || e["cScaleInv" + s], Se(e["lineColor" + s]) ? e["lineColor" + s] = ce(e["lineColor" + s], 20) : e["lineColor" + s] = le(e["lineColor" + s], 20);
632
+ const p = /* @__PURE__ */ o((s, d) => e.darkMode ? le(s, d) : ce(s, d), "adjuster");
633
+ for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) {
634
+ const d = "" + (17 - 3 * s);
635
635
  h += `
636
- .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
637
- fill: ${p(e["cScale" + i], 10)};
638
- stroke: ${p(e["cScale" + i], 10)};
636
+ .section-${s - 1} rect, .section-${s - 1} path, .section-${s - 1} circle, .section-${s - 1} polygon, .section-${s - 1} path {
637
+ fill: ${p(e["cScale" + s], 10)};
638
+ stroke: ${p(e["cScale" + s], 10)};
639
639
 
640
640
  }
641
- .section-${i - 1} text {
642
- fill: ${e["cScaleLabel" + i]};
641
+ .section-${s - 1} text {
642
+ fill: ${e["cScaleLabel" + s]};
643
643
  }
644
- .node-icon-${i - 1} {
644
+ .node-icon-${s - 1} {
645
645
  font-size: 40px;
646
- color: ${e["cScaleLabel" + i]};
646
+ color: ${e["cScaleLabel" + s]};
647
647
  }
648
- .section-edge-${i - 1}{
649
- stroke: ${e["cScale" + i]};
648
+ .section-edge-${s - 1}{
649
+ stroke: ${e["cScale" + s]};
650
650
  }
651
- .edge-depth-${i - 1}{
651
+ .edge-depth-${s - 1}{
652
652
  stroke-width: ${d};
653
653
  }
654
- .section-${i - 1} line {
655
- stroke: ${e["cScaleInv" + i]} ;
654
+ .section-${s - 1} line {
655
+ stroke: ${e["cScaleInv" + s]} ;
656
656
  stroke-width: 3;
657
657
  }
658
658
 
@@ -681,11 +681,11 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
681
681
  `;
682
682
  }
683
683
  return h;
684
- }, "genSections"), je = /* @__PURE__ */ o((e) => `
684
+ }, "genSections"), Ge = /* @__PURE__ */ o((e) => `
685
685
  .edge {
686
686
  stroke-width: 3;
687
687
  }
688
- ${Ge(e)}
688
+ ${Fe(e)}
689
689
  .section-root rect, .section-root path, .section-root circle, .section-root polygon {
690
690
  fill: ${e.git0};
691
691
  }
@@ -713,11 +713,11 @@ var xe = $, v = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ o(() => {
713
713
  text-align: center;
714
714
  }
715
715
  ${Ne()}
716
- `, "getStyles"), He = je, We = {
716
+ `, "getStyles"), Me = Ge, We = {
717
717
  db: Ve,
718
- renderer: Fe,
718
+ renderer: je,
719
719
  parser: xe,
720
- styles: He
720
+ styles: Me
721
721
  };
722
722
  export {
723
723
  We as diagram