@aiquants/markdown 1.0.0 → 1.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 (250) hide show
  1. package/dist/{_basePickBy-04GnQke_.js → _basePickBy-8ZVQR4at.js} +3 -3
  2. package/dist/{_basePickBy-04GnQke_.js.map → _basePickBy-8ZVQR4at.js.map} +1 -1
  3. package/dist/{_basePickBy-C0jAglN_.cjs → _basePickBy-DcQr--f_.cjs} +2 -2
  4. package/dist/{_basePickBy-C0jAglN_.cjs.map → _basePickBy-DcQr--f_.cjs.map} +1 -1
  5. package/dist/{_baseUniq-BZ5WWvVK.js → _baseUniq-DTEW5USl.js} +2 -2
  6. package/dist/{_baseUniq-BZ5WWvVK.js.map → _baseUniq-DTEW5USl.js.map} +1 -1
  7. package/dist/{_baseUniq-BjA9pK7X.cjs → _baseUniq-DdSrD7dW.cjs} +2 -2
  8. package/dist/{_baseUniq-BjA9pK7X.cjs.map → _baseUniq-DdSrD7dW.cjs.map} +1 -1
  9. package/dist/{arc-ByLTsZgy.cjs → arc-BZ9IHkf1.cjs} +2 -2
  10. package/dist/{arc-ByLTsZgy.cjs.map → arc-BZ9IHkf1.cjs.map} +1 -1
  11. package/dist/{arc-DWDFjrJ_.js → arc-CRrBZlD1.js} +2 -2
  12. package/dist/{arc-DWDFjrJ_.js.map → arc-CRrBZlD1.js.map} +1 -1
  13. package/dist/{architecture-U656AL7Q-DToLBKEx.cjs → architecture-U656AL7Q-BeeOj0zp.cjs} +2 -2
  14. package/dist/architecture-U656AL7Q-BeeOj0zp.cjs.map +1 -0
  15. package/dist/architecture-U656AL7Q-BuTxRYTx.js +6 -0
  16. package/dist/architecture-U656AL7Q-BuTxRYTx.js.map +1 -0
  17. package/dist/{architectureDiagram-VXUJARFQ-DuZjUO_R.cjs → architectureDiagram-VXUJARFQ-2qRXaI0N.cjs} +2 -2
  18. package/dist/{architectureDiagram-VXUJARFQ-DuZjUO_R.cjs.map → architectureDiagram-VXUJARFQ-2qRXaI0N.cjs.map} +1 -1
  19. package/dist/{architectureDiagram-VXUJARFQ-Bm0arDxa.js → architectureDiagram-VXUJARFQ-ZwG-0mOF.js} +4 -4
  20. package/dist/{architectureDiagram-VXUJARFQ-Bm0arDxa.js.map → architectureDiagram-VXUJARFQ-ZwG-0mOF.js.map} +1 -1
  21. package/dist/{blockDiagram-VD42YOAC-CfJ_1jzr.cjs → blockDiagram-VD42YOAC-BKs8sXBo.cjs} +2 -2
  22. package/dist/{blockDiagram-VD42YOAC-CfJ_1jzr.cjs.map → blockDiagram-VD42YOAC-BKs8sXBo.cjs.map} +1 -1
  23. package/dist/{blockDiagram-VD42YOAC-DQT2We-L.js → blockDiagram-VD42YOAC-Foes59Yj.js} +6 -6
  24. package/dist/{blockDiagram-VD42YOAC-DQT2We-L.js.map → blockDiagram-VD42YOAC-Foes59Yj.js.map} +1 -1
  25. package/dist/{c4Diagram-YG6GDRKO-Dd9G4Y1j.cjs → c4Diagram-YG6GDRKO-CvmMzj_2.cjs} +2 -2
  26. package/dist/{c4Diagram-YG6GDRKO-Dd9G4Y1j.cjs.map → c4Diagram-YG6GDRKO-CvmMzj_2.cjs.map} +1 -1
  27. package/dist/{c4Diagram-YG6GDRKO-DIgtwPMv.js → c4Diagram-YG6GDRKO-DqJ845yy.js} +3 -3
  28. package/dist/{c4Diagram-YG6GDRKO-DIgtwPMv.js.map → c4Diagram-YG6GDRKO-DqJ845yy.js.map} +1 -1
  29. package/dist/channel-CZUWBPHC.js +6 -0
  30. package/dist/{channel-DQ83BeqG.js.map → channel-CZUWBPHC.js.map} +1 -1
  31. package/dist/channel-DMwHUsJ3.cjs +2 -0
  32. package/dist/{channel-3-Jo1Sot.cjs.map → channel-DMwHUsJ3.cjs.map} +1 -1
  33. package/dist/{chunk-4BX2VUAB-hLO5NXRn.cjs → chunk-4BX2VUAB-8fXr-fDY.cjs} +2 -2
  34. package/dist/{chunk-4BX2VUAB-hLO5NXRn.cjs.map → chunk-4BX2VUAB-8fXr-fDY.cjs.map} +1 -1
  35. package/dist/{chunk-4BX2VUAB-DWzkOiNo.js → chunk-4BX2VUAB-CiLmSOO-.js} +2 -2
  36. package/dist/{chunk-4BX2VUAB-DWzkOiNo.js.map → chunk-4BX2VUAB-CiLmSOO-.js.map} +1 -1
  37. package/dist/{chunk-55IACEB6-BzQ5Q8lZ.js → chunk-55IACEB6-Ccw6gA_2.js} +2 -2
  38. package/dist/{chunk-55IACEB6-BzQ5Q8lZ.js.map → chunk-55IACEB6-Ccw6gA_2.js.map} +1 -1
  39. package/dist/{chunk-55IACEB6-BUXjIuBL.cjs → chunk-55IACEB6-b6ot0Gr6.cjs} +2 -2
  40. package/dist/{chunk-55IACEB6-BUXjIuBL.cjs.map → chunk-55IACEB6-b6ot0Gr6.cjs.map} +1 -1
  41. package/dist/{chunk-B4BG7PRW-DjqsY_5A.js → chunk-B4BG7PRW-4UDJ7J-w.js} +5 -5
  42. package/dist/{chunk-B4BG7PRW-DjqsY_5A.js.map → chunk-B4BG7PRW-4UDJ7J-w.js.map} +1 -1
  43. package/dist/{chunk-B4BG7PRW-5e-KK-w0.cjs → chunk-B4BG7PRW-DTGfJqrl.cjs} +2 -2
  44. package/dist/{chunk-B4BG7PRW-5e-KK-w0.cjs.map → chunk-B4BG7PRW-DTGfJqrl.cjs.map} +1 -1
  45. package/dist/{chunk-DI55MBZ5-MZ-3hpZE.js → chunk-DI55MBZ5-C1D-_cIx.js} +4 -4
  46. package/dist/{chunk-DI55MBZ5-MZ-3hpZE.js.map → chunk-DI55MBZ5-C1D-_cIx.js.map} +1 -1
  47. package/dist/{chunk-DI55MBZ5-PIas4OJg.cjs → chunk-DI55MBZ5-j_0mzcCu.cjs} +2 -2
  48. package/dist/{chunk-DI55MBZ5-PIas4OJg.cjs.map → chunk-DI55MBZ5-j_0mzcCu.cjs.map} +1 -1
  49. package/dist/{chunk-FMBD7UC4-CoWwgFvy.js → chunk-FMBD7UC4-DDFymI4-.js} +2 -2
  50. package/dist/{chunk-FMBD7UC4-CoWwgFvy.js.map → chunk-FMBD7UC4-DDFymI4-.js.map} +1 -1
  51. package/dist/{chunk-FMBD7UC4-BVHfbT1D.cjs → chunk-FMBD7UC4-FN2Slkyp.cjs} +2 -2
  52. package/dist/{chunk-FMBD7UC4-BVHfbT1D.cjs.map → chunk-FMBD7UC4-FN2Slkyp.cjs.map} +1 -1
  53. package/dist/{chunk-QN33PNHL-B9kRgygc.cjs → chunk-QN33PNHL-DeEX_af9.cjs} +2 -2
  54. package/dist/{chunk-QN33PNHL-B9kRgygc.cjs.map → chunk-QN33PNHL-DeEX_af9.cjs.map} +1 -1
  55. package/dist/{chunk-QN33PNHL-Do0HY4Uu.js → chunk-QN33PNHL-Doxk7RiZ.js} +2 -2
  56. package/dist/{chunk-QN33PNHL-Do0HY4Uu.js.map → chunk-QN33PNHL-Doxk7RiZ.js.map} +1 -1
  57. package/dist/{chunk-QZHKN3VN-BwYzfaGh.cjs → chunk-QZHKN3VN-B_Ef_NDD.cjs} +2 -2
  58. package/dist/{chunk-QZHKN3VN-BwYzfaGh.cjs.map → chunk-QZHKN3VN-B_Ef_NDD.cjs.map} +1 -1
  59. package/dist/{chunk-QZHKN3VN-B2ZmJE65.js → chunk-QZHKN3VN-DlQBAf7W.js} +2 -2
  60. package/dist/{chunk-QZHKN3VN-B2ZmJE65.js.map → chunk-QZHKN3VN-DlQBAf7W.js.map} +1 -1
  61. package/dist/{chunk-TZMSLE5B-BUgf2aWM.js → chunk-TZMSLE5B-DR2CkdAX.js} +2 -2
  62. package/dist/{chunk-TZMSLE5B-BUgf2aWM.js.map → chunk-TZMSLE5B-DR2CkdAX.js.map} +1 -1
  63. package/dist/{chunk-TZMSLE5B-e-n_6nlU.cjs → chunk-TZMSLE5B-_4m7KjD2.cjs} +2 -2
  64. package/dist/{chunk-TZMSLE5B-e-n_6nlU.cjs.map → chunk-TZMSLE5B-_4m7KjD2.cjs.map} +1 -1
  65. package/dist/{classDiagram-2ON5EDUG-BgV5OA0w.js → classDiagram-2ON5EDUG-B7P0v98v.js} +3 -3
  66. package/dist/{classDiagram-2ON5EDUG-BgV5OA0w.js.map → classDiagram-2ON5EDUG-B7P0v98v.js.map} +1 -1
  67. package/dist/{classDiagram-2ON5EDUG-KBie2ksA.cjs → classDiagram-2ON5EDUG-QE72REOp.cjs} +2 -2
  68. package/dist/{classDiagram-2ON5EDUG-KBie2ksA.cjs.map → classDiagram-2ON5EDUG-QE72REOp.cjs.map} +1 -1
  69. package/dist/{classDiagram-v2-WZHVMYZB-BgV5OA0w.js → classDiagram-v2-WZHVMYZB-B7P0v98v.js} +3 -3
  70. package/dist/{classDiagram-v2-WZHVMYZB-BgV5OA0w.js.map → classDiagram-v2-WZHVMYZB-B7P0v98v.js.map} +1 -1
  71. package/dist/{classDiagram-v2-WZHVMYZB-KBie2ksA.cjs → classDiagram-v2-WZHVMYZB-QE72REOp.cjs} +2 -2
  72. package/dist/{classDiagram-v2-WZHVMYZB-KBie2ksA.cjs.map → classDiagram-v2-WZHVMYZB-QE72REOp.cjs.map} +1 -1
  73. package/dist/clone-CypYUaSx.js +9 -0
  74. package/dist/{clone-DxCpL3Os.js.map → clone-CypYUaSx.js.map} +1 -1
  75. package/dist/clone-pTD9SGAz.cjs +2 -0
  76. package/dist/{clone-BDLBEqVv.cjs.map → clone-pTD9SGAz.cjs.map} +1 -1
  77. package/dist/{cose-bilkent-S5V4N54A-BAOCmcEN.cjs → cose-bilkent-S5V4N54A-DZdGNGor.cjs} +2 -2
  78. package/dist/{cose-bilkent-S5V4N54A-BAOCmcEN.cjs.map → cose-bilkent-S5V4N54A-DZdGNGor.cjs.map} +1 -1
  79. package/dist/{cose-bilkent-S5V4N54A-CNFUyzBh.js → cose-bilkent-S5V4N54A-iC7GD6A3.js} +2 -2
  80. package/dist/{cose-bilkent-S5V4N54A-CNFUyzBh.js.map → cose-bilkent-S5V4N54A-iC7GD6A3.js.map} +1 -1
  81. package/dist/{dagre-6UL2VRFP-CfUXlXw9.js → dagre-6UL2VRFP-Cvm76DJ6.js} +7 -7
  82. package/dist/{dagre-6UL2VRFP-CfUXlXw9.js.map → dagre-6UL2VRFP-Cvm76DJ6.js.map} +1 -1
  83. package/dist/{dagre-6UL2VRFP-CrI0-S-k.cjs → dagre-6UL2VRFP-d9cPNWE3.cjs} +2 -2
  84. package/dist/{dagre-6UL2VRFP-CrI0-S-k.cjs.map → dagre-6UL2VRFP-d9cPNWE3.cjs.map} +1 -1
  85. package/dist/{diagram-PSM6KHXK-DC-bot6v.cjs → diagram-PSM6KHXK-CuHoYjMD.cjs} +2 -2
  86. package/dist/{diagram-PSM6KHXK-DC-bot6v.cjs.map → diagram-PSM6KHXK-CuHoYjMD.cjs.map} +1 -1
  87. package/dist/{diagram-PSM6KHXK-BLhOn5lO.js → diagram-PSM6KHXK-DKrSYl6i.js} +5 -5
  88. package/dist/{diagram-PSM6KHXK-BLhOn5lO.js.map → diagram-PSM6KHXK-DKrSYl6i.js.map} +1 -1
  89. package/dist/{diagram-QEK2KX5R-D9dO051b.js → diagram-QEK2KX5R-BUo50R8I.js} +4 -4
  90. package/dist/{diagram-QEK2KX5R-D9dO051b.js.map → diagram-QEK2KX5R-BUo50R8I.js.map} +1 -1
  91. package/dist/{diagram-QEK2KX5R-BrcqrpTe.cjs → diagram-QEK2KX5R-DcTj-ttn.cjs} +2 -2
  92. package/dist/{diagram-QEK2KX5R-BrcqrpTe.cjs.map → diagram-QEK2KX5R-DcTj-ttn.cjs.map} +1 -1
  93. package/dist/{diagram-S2PKOQOG-C0YukAKD.cjs → diagram-S2PKOQOG-BP0U0_Av.cjs} +2 -2
  94. package/dist/{diagram-S2PKOQOG-C0YukAKD.cjs.map → diagram-S2PKOQOG-BP0U0_Av.cjs.map} +1 -1
  95. package/dist/{diagram-S2PKOQOG-ODanNoJX.js → diagram-S2PKOQOG-bgZ0Jnvt.js} +4 -4
  96. package/dist/{diagram-S2PKOQOG-ODanNoJX.js.map → diagram-S2PKOQOG-bgZ0Jnvt.js.map} +1 -1
  97. package/dist/{erDiagram-Q2GNP2WA-D7zr9bf-.js → erDiagram-Q2GNP2WA-ChwCwTrQ.js} +5 -5
  98. package/dist/{erDiagram-Q2GNP2WA-D7zr9bf-.js.map → erDiagram-Q2GNP2WA-ChwCwTrQ.js.map} +1 -1
  99. package/dist/{erDiagram-Q2GNP2WA-Cc7kEa6h.cjs → erDiagram-Q2GNP2WA-_tWKx0Z4.cjs} +2 -2
  100. package/dist/{erDiagram-Q2GNP2WA-Cc7kEa6h.cjs.map → erDiagram-Q2GNP2WA-_tWKx0Z4.cjs.map} +1 -1
  101. package/dist/{flowDiagram-NV44I4VS-tQF6znAM.cjs → flowDiagram-NV44I4VS-999rF0XB.cjs} +2 -2
  102. package/dist/{flowDiagram-NV44I4VS-tQF6znAM.cjs.map → flowDiagram-NV44I4VS-999rF0XB.cjs.map} +1 -1
  103. package/dist/{flowDiagram-NV44I4VS-DJzqiccx.js → flowDiagram-NV44I4VS-aW6LJ144.js} +6 -6
  104. package/dist/{flowDiagram-NV44I4VS-DJzqiccx.js.map → flowDiagram-NV44I4VS-aW6LJ144.js.map} +1 -1
  105. package/dist/ganttDiagram-JELNMOA3-BmKyUd_T.cjs +268 -0
  106. package/dist/ganttDiagram-JELNMOA3-BmKyUd_T.cjs.map +1 -0
  107. package/dist/ganttDiagram-JELNMOA3-CZ0ET7N9.js +2671 -0
  108. package/dist/ganttDiagram-JELNMOA3-CZ0ET7N9.js.map +1 -0
  109. package/dist/{gitGraph-F6HP7TQM-Be7YM6Ta.cjs → gitGraph-F6HP7TQM-CBJWfDH0.cjs} +2 -2
  110. package/dist/gitGraph-F6HP7TQM-CBJWfDH0.cjs.map +1 -0
  111. package/dist/gitGraph-F6HP7TQM-CDRA9uY0.js +6 -0
  112. package/dist/gitGraph-F6HP7TQM-CDRA9uY0.js.map +1 -0
  113. package/dist/{gitGraphDiagram-NY62KEGX-D4RClzDm.cjs → gitGraphDiagram-NY62KEGX-Dtlgpe2B.cjs} +2 -2
  114. package/dist/{gitGraphDiagram-NY62KEGX-D4RClzDm.cjs.map → gitGraphDiagram-NY62KEGX-Dtlgpe2B.cjs.map} +1 -1
  115. package/dist/{gitGraphDiagram-NY62KEGX-SiGjgNRp.js → gitGraphDiagram-NY62KEGX-MzDcxdQH.js} +5 -5
  116. package/dist/{gitGraphDiagram-NY62KEGX-SiGjgNRp.js.map → gitGraphDiagram-NY62KEGX-MzDcxdQH.js.map} +1 -1
  117. package/dist/{graph-sqx2p9Mb.js → graph-BSdEx5d8.js} +3 -3
  118. package/dist/{graph-sqx2p9Mb.js.map → graph-BSdEx5d8.js.map} +1 -1
  119. package/dist/{graph-CT8-tmOp.cjs → graph-VHP2A4jf.cjs} +2 -2
  120. package/dist/{graph-CT8-tmOp.cjs.map → graph-VHP2A4jf.cjs.map} +1 -1
  121. package/dist/{index-_MyBzwXy.cjs → index-CDNAr-Y-.cjs} +50 -50
  122. package/dist/index-CDNAr-Y-.cjs.map +1 -0
  123. package/dist/{index-DkepMgWe.js → index-D1i3900c.js} +2769 -2765
  124. package/dist/index-D1i3900c.js.map +1 -0
  125. package/dist/index.cjs +1 -1
  126. package/dist/index.js +1 -1
  127. package/dist/info-NVLQJR56-1oh4zTnw.js +6 -0
  128. package/dist/info-NVLQJR56-1oh4zTnw.js.map +1 -0
  129. package/dist/{info-NVLQJR56-D2AL47Ny.cjs → info-NVLQJR56-CGsVqChD.cjs} +2 -2
  130. package/dist/info-NVLQJR56-CGsVqChD.cjs.map +1 -0
  131. package/dist/{infoDiagram-ER5ION4S-DHfKmtKU.js → infoDiagram-WHAUD3N6-BGO6o0QN.js} +3 -3
  132. package/dist/{infoDiagram-ER5ION4S-DHfKmtKU.js.map → infoDiagram-WHAUD3N6-BGO6o0QN.js.map} +1 -1
  133. package/dist/{infoDiagram-ER5ION4S-BS3JBUVR.cjs → infoDiagram-WHAUD3N6-DHJe0ABF.cjs} +2 -2
  134. package/dist/{infoDiagram-ER5ION4S-BS3JBUVR.cjs.map → infoDiagram-WHAUD3N6-DHJe0ABF.cjs.map} +1 -1
  135. package/dist/{journeyDiagram-XKPGCS4Q-BYK8fGT7.js → journeyDiagram-XKPGCS4Q-Dykem2up.js} +5 -5
  136. package/dist/{journeyDiagram-XKPGCS4Q-BYK8fGT7.js.map → journeyDiagram-XKPGCS4Q-Dykem2up.js.map} +1 -1
  137. package/dist/{journeyDiagram-XKPGCS4Q-Ci7sdcCr.cjs → journeyDiagram-XKPGCS4Q-rrrvBuxP.cjs} +2 -2
  138. package/dist/{journeyDiagram-XKPGCS4Q-Ci7sdcCr.cjs.map → journeyDiagram-XKPGCS4Q-rrrvBuxP.cjs.map} +1 -1
  139. package/dist/{kanban-definition-3W4ZIXB7-3oTHh0Id.cjs → kanban-definition-3W4ZIXB7-1HIUjiHX.cjs} +2 -2
  140. package/dist/{kanban-definition-3W4ZIXB7-3oTHh0Id.cjs.map → kanban-definition-3W4ZIXB7-1HIUjiHX.cjs.map} +1 -1
  141. package/dist/{kanban-definition-3W4ZIXB7-u_aU8rqb.js → kanban-definition-3W4ZIXB7-CY1ILLKf.js} +3 -3
  142. package/dist/{kanban-definition-3W4ZIXB7-u_aU8rqb.js.map → kanban-definition-3W4ZIXB7-CY1ILLKf.js.map} +1 -1
  143. package/dist/{layout-meBRK2hf.cjs → layout-BzgKiltF.cjs} +2 -2
  144. package/dist/{layout-meBRK2hf.cjs.map → layout-BzgKiltF.cjs.map} +1 -1
  145. package/dist/{layout-DIfKuzZ5.js → layout-KNT4Bt-T.js} +5 -5
  146. package/dist/{layout-DIfKuzZ5.js.map → layout-KNT4Bt-T.js.map} +1 -1
  147. package/dist/{linear-DY8iLdyU.cjs → linear-BxiaT9kg.cjs} +2 -2
  148. package/dist/{linear-DY8iLdyU.cjs.map → linear-BxiaT9kg.cjs.map} +1 -1
  149. package/dist/{linear-CUoX9Rht.js → linear-r28SDID0.js} +2 -2
  150. package/dist/{linear-CUoX9Rht.js.map → linear-r28SDID0.js.map} +1 -1
  151. package/dist/markdown.css +1 -1
  152. package/dist/{mermaid-parser.core-Bs_kClBB.js → mermaid-parser.core-CofrPPw9.js} +12 -12
  153. package/dist/{mermaid-parser.core-Bs_kClBB.js.map → mermaid-parser.core-CofrPPw9.js.map} +1 -1
  154. package/dist/{mermaid-parser.core-DCMSVPFz.cjs → mermaid-parser.core-WYvsWtG5.cjs} +3 -3
  155. package/dist/{mermaid-parser.core-DCMSVPFz.cjs.map → mermaid-parser.core-WYvsWtG5.cjs.map} +1 -1
  156. package/dist/{mindmap-definition-VGOIOE7T-CRYDFM3C.js → mindmap-definition-VGOIOE7T-CpafhFAg.js} +4 -4
  157. package/dist/{mindmap-definition-VGOIOE7T-CRYDFM3C.js.map → mindmap-definition-VGOIOE7T-CpafhFAg.js.map} +1 -1
  158. package/dist/{mindmap-definition-VGOIOE7T-DHhcFKO0.cjs → mindmap-definition-VGOIOE7T-ynSZRs_m.cjs} +2 -2
  159. package/dist/{mindmap-definition-VGOIOE7T-DHhcFKO0.cjs.map → mindmap-definition-VGOIOE7T-ynSZRs_m.cjs.map} +1 -1
  160. package/dist/{packet-BFZMPI3H-CDfircDL.cjs → packet-BFZMPI3H-CnxRou_9.cjs} +2 -2
  161. package/dist/packet-BFZMPI3H-CnxRou_9.cjs.map +1 -0
  162. package/dist/packet-BFZMPI3H-CpHu93Jg.js +6 -0
  163. package/dist/packet-BFZMPI3H-CpHu93Jg.js.map +1 -0
  164. package/dist/pie-7BOR55EZ-CdlfY2-0.js +6 -0
  165. package/dist/pie-7BOR55EZ-CdlfY2-0.js.map +1 -0
  166. package/dist/{pie-7BOR55EZ-CrShZ8iV.cjs → pie-7BOR55EZ-Clw6pCKf.cjs} +2 -2
  167. package/dist/pie-7BOR55EZ-Clw6pCKf.cjs.map +1 -0
  168. package/dist/{pieDiagram-ADFJNKIX-to63Nn4z.cjs → pieDiagram-ADFJNKIX-CaJRJZUK.cjs} +2 -2
  169. package/dist/{pieDiagram-ADFJNKIX-to63Nn4z.cjs.map → pieDiagram-ADFJNKIX-CaJRJZUK.cjs.map} +1 -1
  170. package/dist/{pieDiagram-ADFJNKIX-COZfS40R.js → pieDiagram-ADFJNKIX-CtasstMQ.js} +5 -5
  171. package/dist/{pieDiagram-ADFJNKIX-COZfS40R.js.map → pieDiagram-ADFJNKIX-CtasstMQ.js.map} +1 -1
  172. package/dist/{quadrantDiagram-AYHSOK5B-DARt1qTH.cjs → quadrantDiagram-AYHSOK5B-CRXJH0g_.cjs} +2 -2
  173. package/dist/{quadrantDiagram-AYHSOK5B-DARt1qTH.cjs.map → quadrantDiagram-AYHSOK5B-CRXJH0g_.cjs.map} +1 -1
  174. package/dist/{quadrantDiagram-AYHSOK5B-CHQWgMBk.js → quadrantDiagram-AYHSOK5B-DG4j7UFn.js} +3 -3
  175. package/dist/{quadrantDiagram-AYHSOK5B-CHQWgMBk.js.map → quadrantDiagram-AYHSOK5B-DG4j7UFn.js.map} +1 -1
  176. package/dist/radar-NHE76QYJ-BXzAM1iQ.js +6 -0
  177. package/dist/radar-NHE76QYJ-BXzAM1iQ.js.map +1 -0
  178. package/dist/{radar-NHE76QYJ-BR5kEM7_.cjs → radar-NHE76QYJ-DaTNX8eu.cjs} +2 -2
  179. package/dist/radar-NHE76QYJ-DaTNX8eu.cjs.map +1 -0
  180. package/dist/{requirementDiagram-UZGBJVZJ-CE7eIabg.cjs → requirementDiagram-UZGBJVZJ-NoUX-yz3.cjs} +2 -2
  181. package/dist/{requirementDiagram-UZGBJVZJ-CE7eIabg.cjs.map → requirementDiagram-UZGBJVZJ-NoUX-yz3.cjs.map} +1 -1
  182. package/dist/{requirementDiagram-UZGBJVZJ-wdmLIs2z.js → requirementDiagram-UZGBJVZJ-PLMJ7mxs.js} +4 -4
  183. package/dist/{requirementDiagram-UZGBJVZJ-wdmLIs2z.js.map → requirementDiagram-UZGBJVZJ-PLMJ7mxs.js.map} +1 -1
  184. package/dist/{sankeyDiagram-TZEHDZUN-DiywGIaI.cjs → sankeyDiagram-TZEHDZUN-BT_GAU1w.cjs} +2 -2
  185. package/dist/{sankeyDiagram-TZEHDZUN-DiywGIaI.cjs.map → sankeyDiagram-TZEHDZUN-BT_GAU1w.cjs.map} +1 -1
  186. package/dist/{sankeyDiagram-TZEHDZUN-DJArAx2_.js → sankeyDiagram-TZEHDZUN-D5vD1tBI.js} +2 -2
  187. package/dist/{sankeyDiagram-TZEHDZUN-DJArAx2_.js.map → sankeyDiagram-TZEHDZUN-D5vD1tBI.js.map} +1 -1
  188. package/dist/{sequenceDiagram-WL72ISMW-B2Ddfy-d.cjs → sequenceDiagram-WL72ISMW-B7RuS7XI.cjs} +2 -2
  189. package/dist/{sequenceDiagram-WL72ISMW-B2Ddfy-d.cjs.map → sequenceDiagram-WL72ISMW-B7RuS7XI.cjs.map} +1 -1
  190. package/dist/{sequenceDiagram-WL72ISMW-s1szpcl0.js → sequenceDiagram-WL72ISMW-Dnmy7D1o.js} +4 -4
  191. package/dist/{sequenceDiagram-WL72ISMW-s1szpcl0.js.map → sequenceDiagram-WL72ISMW-Dnmy7D1o.js.map} +1 -1
  192. package/dist/src/components/mdastNodes/BlockLinkNode.d.ts.map +1 -1
  193. package/dist/src/components/mdastNodes/RichLinkCard.d.ts.map +1 -1
  194. package/dist/src/components/plugins/DifyIFramePlugin.d.ts.map +1 -1
  195. package/dist/src/index.d.ts.map +1 -1
  196. package/dist/src/plugins/remark-block-link-metadata.d.ts +2 -2
  197. package/dist/{stateDiagram-FKZM4ZOC-BkyPvq8P.js → stateDiagram-FKZM4ZOC-FHIlDuG9.js} +5 -5
  198. package/dist/{stateDiagram-FKZM4ZOC-BkyPvq8P.js.map → stateDiagram-FKZM4ZOC-FHIlDuG9.js.map} +1 -1
  199. package/dist/{stateDiagram-FKZM4ZOC-Cm5ZJa2w.cjs → stateDiagram-FKZM4ZOC-QoBd6ApK.cjs} +2 -2
  200. package/dist/{stateDiagram-FKZM4ZOC-Cm5ZJa2w.cjs.map → stateDiagram-FKZM4ZOC-QoBd6ApK.cjs.map} +1 -1
  201. package/dist/{stateDiagram-v2-4FDKWEC3-DPRVAiCl.js → stateDiagram-v2-4FDKWEC3-BbaCce_B.js} +3 -3
  202. package/dist/{stateDiagram-v2-4FDKWEC3-DPRVAiCl.js.map → stateDiagram-v2-4FDKWEC3-BbaCce_B.js.map} +1 -1
  203. package/dist/{stateDiagram-v2-4FDKWEC3-ChB-DdXT.cjs → stateDiagram-v2-4FDKWEC3-Bxp3qlOU.cjs} +2 -2
  204. package/dist/{stateDiagram-v2-4FDKWEC3-ChB-DdXT.cjs.map → stateDiagram-v2-4FDKWEC3-Bxp3qlOU.cjs.map} +1 -1
  205. package/dist/styles/markdown.css +2 -0
  206. package/dist/{timeline-definition-IT6M3QCI-CwWQiOun.cjs → timeline-definition-IT6M3QCI-B7EClyIh.cjs} +2 -2
  207. package/dist/{timeline-definition-IT6M3QCI-CwWQiOun.cjs.map → timeline-definition-IT6M3QCI-B7EClyIh.cjs.map} +1 -1
  208. package/dist/{timeline-definition-IT6M3QCI-BygAQiEH.js → timeline-definition-IT6M3QCI-CV0CnVck.js} +3 -3
  209. package/dist/{timeline-definition-IT6M3QCI-BygAQiEH.js.map → timeline-definition-IT6M3QCI-CV0CnVck.js.map} +1 -1
  210. package/dist/treemap-KMMF4GRG-BNw5u-4U.js +6 -0
  211. package/dist/treemap-KMMF4GRG-BNw5u-4U.js.map +1 -0
  212. package/dist/{treemap-KMMF4GRG-DlZN8q5m.cjs → treemap-KMMF4GRG-C8-XmIeZ.cjs} +2 -2
  213. package/dist/treemap-KMMF4GRG-C8-XmIeZ.cjs.map +1 -0
  214. package/dist/vite.config.d.ts.map +1 -1
  215. package/dist/{xychartDiagram-PRI3JC2R-f54qvAdw.cjs → xychartDiagram-PRI3JC2R-BdWEoEpy.cjs} +2 -2
  216. package/dist/{xychartDiagram-PRI3JC2R-f54qvAdw.cjs.map → xychartDiagram-PRI3JC2R-BdWEoEpy.cjs.map} +1 -1
  217. package/dist/{xychartDiagram-PRI3JC2R-DqvSg-fm.js → xychartDiagram-PRI3JC2R-LiD69dcU.js} +3 -3
  218. package/dist/{xychartDiagram-PRI3JC2R-DqvSg-fm.js.map → xychartDiagram-PRI3JC2R-LiD69dcU.js.map} +1 -1
  219. package/package.json +29 -27
  220. package/dist/architecture-U656AL7Q-BEdpdAzh.js +0 -6
  221. package/dist/architecture-U656AL7Q-BEdpdAzh.js.map +0 -1
  222. package/dist/architecture-U656AL7Q-DToLBKEx.cjs.map +0 -1
  223. package/dist/channel-3-Jo1Sot.cjs +0 -2
  224. package/dist/channel-DQ83BeqG.js +0 -6
  225. package/dist/clone-BDLBEqVv.cjs +0 -2
  226. package/dist/clone-DxCpL3Os.js +0 -9
  227. package/dist/ganttDiagram-LVOFAZNH-B3ktWPhN.cjs +0 -268
  228. package/dist/ganttDiagram-LVOFAZNH-B3ktWPhN.cjs.map +0 -1
  229. package/dist/ganttDiagram-LVOFAZNH-_yZMp32x.js +0 -2506
  230. package/dist/ganttDiagram-LVOFAZNH-_yZMp32x.js.map +0 -1
  231. package/dist/gitGraph-F6HP7TQM-Be7YM6Ta.cjs.map +0 -1
  232. package/dist/gitGraph-F6HP7TQM-DqOg8Z31.js +0 -6
  233. package/dist/gitGraph-F6HP7TQM-DqOg8Z31.js.map +0 -1
  234. package/dist/index-DkepMgWe.js.map +0 -1
  235. package/dist/index-_MyBzwXy.cjs.map +0 -1
  236. package/dist/info-NVLQJR56-Cy5iSF_Y.js +0 -6
  237. package/dist/info-NVLQJR56-Cy5iSF_Y.js.map +0 -1
  238. package/dist/info-NVLQJR56-D2AL47Ny.cjs.map +0 -1
  239. package/dist/packet-BFZMPI3H-CDfircDL.cjs.map +0 -1
  240. package/dist/packet-BFZMPI3H-COweq4F3.js +0 -6
  241. package/dist/packet-BFZMPI3H-COweq4F3.js.map +0 -1
  242. package/dist/pie-7BOR55EZ-69ppsm_e.js +0 -6
  243. package/dist/pie-7BOR55EZ-69ppsm_e.js.map +0 -1
  244. package/dist/pie-7BOR55EZ-CrShZ8iV.cjs.map +0 -1
  245. package/dist/radar-NHE76QYJ-BR5kEM7_.cjs.map +0 -1
  246. package/dist/radar-NHE76QYJ-BzWucqH8.js +0 -6
  247. package/dist/radar-NHE76QYJ-BzWucqH8.js.map +0 -1
  248. package/dist/treemap-KMMF4GRG-CtVBUNvs.js +0 -6
  249. package/dist/treemap-KMMF4GRG-CtVBUNvs.js.map +0 -1
  250. package/dist/treemap-KMMF4GRG-DlZN8q5m.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DCMSVPFz.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
2
- //# sourceMappingURL=gitGraph-F6HP7TQM-Be7YM6Ta.cjs.map
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-WYvsWtG5.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
2
+ //# sourceMappingURL=gitGraph-F6HP7TQM-CBJWfDH0.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitGraph-F6HP7TQM-CBJWfDH0.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { G as a, f as G } from "./mermaid-parser.core-CofrPPw9.js";
2
+ export {
3
+ a as GitGraphModule,
4
+ G as createGitGraphServices
5
+ };
6
+ //# sourceMappingURL=gitGraph-F6HP7TQM-CDRA9uY0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gitGraph-F6HP7TQM-CDRA9uY0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-hLO5NXRn.cjs"),j=require("./chunk-QZHKN3VN-BwYzfaGh.cjs"),s=require("./index-_MyBzwXy.cjs"),K=require("./mermaid-parser.core-DCMSVPFz.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-8fXr-fDY.cjs"),j=require("./chunk-QZHKN3VN-B_Ef_NDD.cjs"),s=require("./index-CDNAr-Y-.cjs"),K=require("./mermaid-parser.core-WYvsWtG5.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
2
2
  ${o-a/2-w/2},${y+v}
3
3
  ${o-a/2-w/2},${y-v}
4
4
  ${n.posWithOffset-a/2-w},${y-d-v}
@@ -63,4 +63,4 @@
63
63
  fill: ${t.textColor};
64
64
  }
65
65
  `,"getStyles"),De=He,Ne={parser:ue,db:z,renderer:Pe,styles:De};exports.diagram=Ne;
66
- //# sourceMappingURL=gitGraphDiagram-NY62KEGX-D4RClzDm.cjs.map
66
+ //# sourceMappingURL=gitGraphDiagram-NY62KEGX-Dtlgpe2B.cjs.map