@jackuait/blok 0.10.5 → 0.10.7

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 (311) hide show
  1. package/dist/blok.mjs +2 -2
  2. package/dist/chunks/_basePickBy--UeZi0iS.mjs +166 -0
  3. package/dist/chunks/_baseUniq-C977U_l-.mjs +682 -0
  4. package/dist/chunks/{arc-D-pL2Ftf.mjs → arc-Woh6y3jm.mjs} +2 -2
  5. package/dist/chunks/architecture-YZFGNWBL-aVO23UKm.mjs +3 -0
  6. package/dist/chunks/{architectureDiagram-Q4EWVU46-DS7mqjL2.mjs → architectureDiagram-Q4EWVU46-GTqLmLqg.mjs} +115 -115
  7. package/dist/chunks/{blockDiagram-DXYQGD6D-BTtcn4NG.mjs → blockDiagram-DXYQGD6D-CML01I1L.mjs} +681 -866
  8. package/dist/chunks/{blok-DSP5zC_s.mjs → blok-oWXfRfnM.mjs} +610 -566
  9. package/dist/chunks/{c4Diagram-AHTNJAMY-Y4Dcwcoo.mjs → c4Diagram-AHTNJAMY-C29OuYjO.mjs} +239 -239
  10. package/dist/chunks/{channel-Cln-eWE0.mjs → channel-Zp_OyvEW.mjs} +1 -1
  11. package/dist/chunks/{chunk-2KRD3SAO-DkM7qh-k.mjs → chunk-2KRD3SAO-mVfUZfox.mjs} +1 -1
  12. package/dist/chunks/{chunk-336JU56O-B17AtzlK.mjs → chunk-336JU56O-mJNxs0cr.mjs} +18 -18
  13. package/dist/chunks/{chunk-426QAEUC-D6UAVUog.mjs → chunk-426QAEUC-TajZlyP-.mjs} +2 -2
  14. package/dist/chunks/{chunk-4BX2VUAB-CgIkjF7Z.mjs → chunk-4BX2VUAB-CsopMMb6.mjs} +1 -1
  15. package/dist/chunks/{chunk-4TB4RGXK-BUP4eON3.mjs → chunk-4TB4RGXK-DC963IrJ.mjs} +129 -129
  16. package/dist/chunks/{chunk-55IACEB6-zZ-IgaSt.mjs → chunk-55IACEB6-yyL3mncJ.mjs} +1 -1
  17. package/dist/chunks/{chunk-5FUZZQ4R-DsZnJYxM.mjs → chunk-5FUZZQ4R-Dr4NE8rh.mjs} +663 -663
  18. package/dist/chunks/chunk-5PVQY5BW-BP7ENjg7.mjs +1122 -0
  19. package/dist/chunks/{chunk-67CJDMHE-m0UKdcSH.mjs → chunk-67CJDMHE-Dbl-PjEf.mjs} +1 -1
  20. package/dist/chunks/{chunk-7N4EOEYR-DKNajFZd.mjs → chunk-7N4EOEYR-p-g3cKuX.mjs} +1 -1
  21. package/dist/chunks/{chunk-AA7GKIK3-BeLhNzKa.mjs → chunk-AA7GKIK3-Dt0Kr5Va.mjs} +1 -1
  22. package/dist/chunks/{chunk-BSJP7CBP-CJExmx8a.mjs → chunk-BSJP7CBP-DGU2WHwh.mjs} +1 -1
  23. package/dist/chunks/{chunk-CIAEETIT-CTikoJ19.mjs → chunk-CIAEETIT-BQ4crY5r.mjs} +1 -1
  24. package/dist/chunks/{chunk-EDXVE4YY-DjInnnwb.mjs → chunk-EDXVE4YY-B9_aGwkV.mjs} +2 -2
  25. package/dist/chunks/{chunk-ENJZ2VHE-CIl5FRDA.mjs → chunk-ENJZ2VHE-23pY8ft5.mjs} +243 -243
  26. package/dist/chunks/{chunk-FMBD7UC4-DjV0W7UE.mjs → chunk-FMBD7UC4-D_RQlBGX.mjs} +1 -1
  27. package/dist/chunks/{chunk-FOC6F5B3-LmHCCWYY.mjs → chunk-FOC6F5B3-CJfr-iwx.mjs} +1 -1
  28. package/dist/chunks/{chunk-ICPOFSXX-BHZIN46A.mjs → chunk-ICPOFSXX-BOvOTlG6.mjs} +2 -2
  29. package/dist/chunks/{chunk-K5T4RW27-BPZ6fFnW.mjs → chunk-K5T4RW27-CHSI0vpp.mjs} +572 -570
  30. package/dist/chunks/{chunk-KGLVRYIC-S1OQdW76.mjs → chunk-KGLVRYIC-ngXT4XVA.mjs} +1 -1
  31. package/dist/chunks/{chunk-LIHQZDEY-CjtyJlI6.mjs → chunk-LIHQZDEY-CnP7bym1.mjs} +1 -1
  32. package/dist/chunks/{chunk-ORNJ4GCN-CdO0hAge.mjs → chunk-ORNJ4GCN-BPaghT45.mjs} +1 -1
  33. package/dist/chunks/{chunk-OYMX7WX6-ApX8eV4o.mjs → chunk-OYMX7WX6-CKjTvqTg.mjs} +172 -172
  34. package/dist/chunks/{chunk-QZHKN3VN-BGFuA6-k.mjs → chunk-QZHKN3VN-uW1N2UWF.mjs} +1 -1
  35. package/dist/chunks/{chunk-U2HBQHQK-B88ZUOTL.mjs → chunk-U2HBQHQK-DiQOEtQH.mjs} +65 -65
  36. package/dist/chunks/{chunk-X2U36JSP-1VS5TyCr.mjs → chunk-X2U36JSP-Cznp5Jm-.mjs} +2 -2
  37. package/dist/chunks/{chunk-XPW4576I-BMupdrvo.mjs → chunk-XPW4576I-W5t_agZI.mjs} +1 -1
  38. package/dist/chunks/{chunk-YZCP3GAM-BQ7eEsm2.mjs → chunk-YZCP3GAM-BV02tG_z.mjs} +3 -3
  39. package/dist/chunks/{chunk-ZZ45TVLE-D1xks9zd.mjs → chunk-ZZ45TVLE-D28EyJ6R.mjs} +7 -7
  40. package/dist/chunks/classDiagram-6PBFFD2Q-DXsClapu.mjs +30 -0
  41. package/dist/chunks/classDiagram-v2-HSJHXN6E-B6TlQ_PM.mjs +30 -0
  42. package/dist/chunks/{clone-Ckjt1LtE.mjs → clone-CUNvBGto.mjs} +1 -1
  43. package/dist/chunks/{constants-B0Tns0mh.mjs → constants-BQ1-lyZI.mjs} +4 -2
  44. package/dist/chunks/{cose-bilkent-S5V4N54A-Bpcs2jA_.mjs → cose-bilkent-S5V4N54A-D-Xgf_Xn.mjs} +2 -2
  45. package/dist/chunks/{cpp-BdjvAny0.mjs → cpp-DaTV1RSp.mjs} +2 -2
  46. package/dist/chunks/{dagre-KV5264BT-DUD9ikgN.mjs → dagre-KV5264BT-BB3SAlfA.mjs} +15 -15
  47. package/dist/chunks/{dagre-CGNbYTKq.mjs → dagre-dysBn-m8.mjs} +499 -552
  48. package/dist/chunks/diagram-5BDNPKRD-B1410bPG.mjs +112 -0
  49. package/dist/chunks/{diagram-G4DWMVQ6-CuS0-h95.mjs → diagram-G4DWMVQ6-CdhBBETB.mjs} +82 -82
  50. package/dist/chunks/{diagram-MMDJMWI5-C-AEApYz.mjs → diagram-MMDJMWI5-B3HWfHe1.mjs} +48 -48
  51. package/dist/chunks/{diagram-TYMM5635-CiwAJVMq.mjs → diagram-TYMM5635-D0JzRYCN.mjs} +51 -51
  52. package/dist/chunks/{erDiagram-SMLLAGMA-DeH5yck2.mjs → erDiagram-SMLLAGMA-DfIG0QBk.mjs} +142 -142
  53. package/dist/chunks/{flowDiagram-DWJPFMVM-Cr6dwmQ5.mjs → flowDiagram-DWJPFMVM-BOL8JsQX.mjs} +176 -176
  54. package/dist/chunks/{ganttDiagram-T4ZO3ILL-K-divBg_.mjs → ganttDiagram-T4ZO3ILL-CiUr_YRw.mjs} +230 -230
  55. package/dist/chunks/gitGraph-7Q5UKJZL-B3aq166w.mjs +3 -0
  56. package/dist/chunks/{gitGraphDiagram-UUTBAWPF-UytPZv72.mjs → gitGraphDiagram-UUTBAWPF-CtNkTTWO.mjs} +218 -218
  57. package/dist/chunks/{graphlib-Cye9EPNq.mjs → graphlib-BXNPwKuI.mjs} +48 -46
  58. package/dist/chunks/{graphql-BSnqmqgO.mjs → graphql-DNumR9m-.mjs} +2 -2
  59. package/dist/chunks/{html-BLNeZvnp.mjs → html-CanPsi1Y.mjs} +2 -2
  60. package/dist/chunks/{i18next-loader-D_v0EmDP.mjs → i18next-loader-CIXsptng.mjs} +1 -1
  61. package/dist/chunks/info-OMHHGYJF-SX91-Wub.mjs +3 -0
  62. package/dist/chunks/{infoDiagram-42DDH7IO-DuYnDbF3.mjs → infoDiagram-42DDH7IO-CD7nVBvi.mjs} +14 -14
  63. package/dist/chunks/isArrayLikeObject-DzUNFfIK.mjs +578 -0
  64. package/dist/chunks/isEmpty-D8B0aRsG.mjs +35 -0
  65. package/dist/chunks/{ishikawaDiagram-UXIWVN3A-CHc59dLn.mjs → ishikawaDiagram-UXIWVN3A-BOaC9qJs.mjs} +81 -81
  66. package/dist/chunks/{journeyDiagram-VCZTEJTY-CD25C4_n.mjs → journeyDiagram-VCZTEJTY-DKf55ZdJ.mjs} +6 -6
  67. package/dist/chunks/{kanban-definition-6JOO6SKY-CTCT6N_p.mjs → kanban-definition-6JOO6SKY-D2CrAXqB.mjs} +11 -11
  68. package/dist/chunks/{latex-24n3TcOR.mjs → latex-DY1HNB4U.mjs} +1 -1
  69. package/dist/chunks/line-CuvDsrkE.mjs +34 -0
  70. package/dist/chunks/{linear-BRCpMvtr.mjs → linear-JRIqMpGQ.mjs} +3 -3
  71. package/dist/chunks/{lua-DV0fuZWx.mjs → lua-COOfzihE.mjs} +1 -1
  72. package/dist/chunks/{mermaid-parser.core-CA3DKkuk.mjs → mermaid-parser.core-BhpZC2lA.mjs} +10 -10
  73. package/dist/chunks/mermaid.core-C40gcVfv.mjs +977 -0
  74. package/dist/chunks/{micromark-extension-math-BbkUb36G.mjs → micromark-extension-math-D-s54WWf.mjs} +1 -1
  75. package/dist/chunks/{mindmap-definition-QFDTVHPH-hNnyBkEP.mjs → mindmap-definition-QFDTVHPH-C-0fwUUS.mjs} +13 -13
  76. package/dist/chunks/{ordinal-B-kolV-i.mjs → ordinal-fyJMP-lj.mjs} +1 -1
  77. package/dist/chunks/packet-4T2RLAQJ-suhU85JN.mjs +3 -0
  78. package/dist/chunks/{php-DmXKyPwJ.mjs → php-DA-SOiqC.mjs} +6 -6
  79. package/dist/chunks/pie-ZZUOXDRM-DF5e16CP.mjs +3 -0
  80. package/dist/chunks/pieDiagram-DEJITSTG-BPyqheXv.mjs +179 -0
  81. package/dist/chunks/{quadrantDiagram-34T5L4WZ-CQ5fGYI5.mjs → quadrantDiagram-34T5L4WZ-kOZ1zIXB.mjs} +4 -4
  82. package/dist/chunks/radar-PYXPWWZC-DgzodpRv.mjs +3 -0
  83. package/dist/chunks/{requirementDiagram-MS252O5E-DjWKB42c.mjs → requirementDiagram-MS252O5E-C8Zkq6Lq.mjs} +64 -64
  84. package/dist/chunks/{ruby-DdOo03Kg.mjs → ruby-HDUjp8gK.mjs} +11 -11
  85. package/dist/chunks/{sankeyDiagram-XADWPNL6-BIN2evSB.mjs → sankeyDiagram-XADWPNL6-B0FhkAL9.mjs} +3 -3
  86. package/dist/chunks/{sequenceDiagram-FGHM5R23-CQz2lMoS.mjs → sequenceDiagram-FGHM5R23-Dv2H5Lbc.mjs} +447 -447
  87. package/dist/chunks/stateDiagram-FHFEXIEX-D1vcO7H_.mjs +218 -0
  88. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-AoHzFiaI.mjs +28 -0
  89. package/dist/chunks/{timeline-definition-GMOUNBTQ-CzvQ7Lav.mjs → timeline-definition-GMOUNBTQ-DJmJ0TPa.mjs} +195 -195
  90. package/dist/chunks/{tools-KZmhOKEo.mjs → tools-MuBQQyZ-.mjs} +102 -100
  91. package/dist/chunks/treeView-SZITEDCU-C1mc9PWf.mjs +3 -0
  92. package/dist/chunks/treemap-W4RFUUIX-ClV9Slyp.mjs +3 -0
  93. package/dist/chunks/{vennDiagram-DHZGUBPP-B0DmLQqe.mjs → vennDiagram-DHZGUBPP-Dx1rMP24.mjs} +76 -76
  94. package/dist/chunks/wardley-RL74JXVD-Dj7t7jHR.mjs +3 -0
  95. package/dist/chunks/{wardleyDiagram-NUSXRM2D-CzoKesUw.mjs → wardleyDiagram-NUSXRM2D-Dnm6lvMn.mjs} +15 -15
  96. package/dist/chunks/{xml-g8kXXALs.mjs → xml-Dq1lpp8G.mjs} +1 -1
  97. package/dist/chunks/{xychartDiagram-5P7HB3ND-CixwR8r2.mjs → xychartDiagram-5P7HB3ND-C9wFc2e9.mjs} +120 -120
  98. package/dist/full.mjs +3 -3
  99. package/dist/markdown.mjs +1 -1
  100. package/dist/react.mjs +2 -2
  101. package/dist/tools.mjs +2 -2
  102. package/dist/vendor.LICENSE.txt +64 -64
  103. package/package.json +3 -2
  104. package/src/components/block/index.ts +2 -2
  105. package/src/components/block-tunes/block-tune-delete.ts +1 -0
  106. package/src/components/modules/blockEvents/composers/markdownShortcuts.ts +105 -2
  107. package/src/components/modules/blockEvents/constants.ts +24 -0
  108. package/src/components/modules/blockManager/blockManager.ts +1 -1
  109. package/src/components/modules/blockManager/types.ts +1 -1
  110. package/src/components/modules/themeManager.ts +13 -3
  111. package/src/components/modules/toolbar/blockSettings.ts +89 -11
  112. package/src/components/modules/yjs/document-store.ts +1 -1
  113. package/src/components/modules/yjs/index.ts +1 -1
  114. package/src/components/utils/popover/popover-abstract.ts +9 -0
  115. package/src/tools/code/index.ts +1 -0
  116. package/src/tools/quote/index.ts +1 -0
  117. package/types/configs/blok-config.d.ts +13 -3
  118. package/types/configs/index.d.ts +1 -0
  119. package/types/configs/user-info.d.ts +14 -0
  120. package/types/data-formats/output-data.d.ts +2 -2
  121. package/types/index.d.ts +1 -0
  122. package/dist/chunks/_basePickBy-DISiGhsr.mjs +0 -410
  123. package/dist/chunks/_baseUniq-gAuHRtRF.mjs +0 -1045
  124. package/dist/chunks/_getTag-Aj56Wgor.mjs +0 -26
  125. package/dist/chunks/architecture-YZFGNWBL-CuqTb_ae.mjs +0 -3
  126. package/dist/chunks/chunk-5PVQY5BW-CORl9dnu.mjs +0 -1692
  127. package/dist/chunks/classDiagram-6PBFFD2Q-C59BZJxp.mjs +0 -30
  128. package/dist/chunks/classDiagram-v2-HSJHXN6E-7a0qeMsE.mjs +0 -30
  129. package/dist/chunks/diagram-5BDNPKRD-CZGfTYEe.mjs +0 -112
  130. package/dist/chunks/gitGraph-7Q5UKJZL-Dl-vQzrq.mjs +0 -3
  131. package/dist/chunks/info-OMHHGYJF-BOejJvJR.mjs +0 -3
  132. package/dist/chunks/line-Dct5pMmw.mjs +0 -34
  133. package/dist/chunks/mermaid.core-CA8nc1sZ.mjs +0 -989
  134. package/dist/chunks/packet-4T2RLAQJ-B5ZMgwzZ.mjs +0 -3
  135. package/dist/chunks/pie-ZZUOXDRM-B9l6y0XJ.mjs +0 -3
  136. package/dist/chunks/pieDiagram-DEJITSTG-Gw-fsc6U.mjs +0 -179
  137. package/dist/chunks/radar-PYXPWWZC-D5kYmUaB.mjs +0 -3
  138. package/dist/chunks/stateDiagram-FHFEXIEX-BIBFsF65.mjs +0 -218
  139. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-BZUmAVw7.mjs +0 -28
  140. package/dist/chunks/treeView-SZITEDCU-BNtnNxpI.mjs +0 -3
  141. package/dist/chunks/treemap-W4RFUUIX-DYENULz2.mjs +0 -3
  142. package/dist/chunks/wardley-RL74JXVD-ByNHVBTb.mjs +0 -3
  143. /package/dist/chunks/{am-BxlkYGsI.mjs → am-Bbd7cTHS.mjs} +0 -0
  144. /package/dist/chunks/{ar-9vlpr9V8.mjs → ar-Bo71sCQE.mjs} +0 -0
  145. /package/dist/chunks/{array-BsrkCVSZ.mjs → array-DbiMs_0t.mjs} +0 -0
  146. /package/dist/chunks/{az-ON63W_FP.mjs → az-BnNrO_xK.mjs} +0 -0
  147. /package/dist/chunks/{bg-CtXWTP5w.mjs → bg-CMd2n-OG.mjs} +0 -0
  148. /package/dist/chunks/{bn-BERvhXM4.mjs → bn-B3lorfXA.mjs} +0 -0
  149. /package/dist/chunks/{bs-CBg8NVPG.mjs → bs-_zM8QBsA.mjs} +0 -0
  150. /package/dist/chunks/{c-C6JXJf5K.mjs → c-DmKJe6GM.mjs} +0 -0
  151. /package/dist/chunks/{core-Bm6DWt7D.mjs → core-C942GvJO.mjs} +0 -0
  152. /package/dist/chunks/{cs-DeQddxS7.mjs → cs-nodpmLBf.mjs} +0 -0
  153. /package/dist/chunks/{csharp-YHxeHpeH.mjs → csharp-Drv96dbi.mjs} +0 -0
  154. /package/dist/chunks/{css-DdLevFaX.mjs → css-82tNAoU6.mjs} +0 -0
  155. /package/dist/chunks/{cytoscape.esm-BvD8wo00.mjs → cytoscape.esm-DSb9a7HE.mjs} +0 -0
  156. /package/dist/chunks/{da-DyTo-ec_.mjs → da-DwzgQcXQ.mjs} +0 -0
  157. /package/dist/chunks/{dart-DrPWqfcC.mjs → dart-DE9j8McI.mjs} +0 -0
  158. /package/dist/chunks/{de-Cu7545m1.mjs → de-BvWPiNt6.mjs} +0 -0
  159. /package/dist/chunks/{defaultLocale-ChuSeAxU.mjs → defaultLocale-yTyMJ3IT.mjs} +0 -0
  160. /package/dist/chunks/{dist-Ctq-pyfb.mjs → dist-X14EnMrO.mjs} +0 -0
  161. /package/dist/chunks/{dockerfile-C68ALcaN.mjs → dockerfile-D9DFksUy.mjs} +0 -0
  162. /package/dist/chunks/{el-oiubLRBq.mjs → el-B_D7wUrZ.mjs} +0 -0
  163. /package/dist/chunks/{engine-javascript-CJpnSvzf.mjs → engine-javascript-Dd6ViPCH.mjs} +0 -0
  164. /package/dist/chunks/{es-DZUC6Klv.mjs → es-Bn_ZFyW9.mjs} +0 -0
  165. /package/dist/chunks/{et-CDeklAog.mjs → et-CUcULjoh.mjs} +0 -0
  166. /package/dist/chunks/{fa-Cafp7_Li.mjs → fa-BRhCTsOy.mjs} +0 -0
  167. /package/dist/chunks/{fi-BD_V_aVW.mjs → fi-BEvyU9n6.mjs} +0 -0
  168. /package/dist/chunks/{fil-Crsfbtx4.mjs → fil-Dlp1_W2B.mjs} +0 -0
  169. /package/dist/chunks/{fr-BGGc04Zv.mjs → fr-DJBeOAx1.mjs} +0 -0
  170. /package/dist/chunks/{go-Fm5N96DN.mjs → go-jyWjtO8q.mjs} +0 -0
  171. /package/dist/chunks/{gu-Vg_BgCTp.mjs → gu-0hWvx16l.mjs} +0 -0
  172. /package/dist/chunks/{he-DTY9chlZ.mjs → he-CYe88qXp.mjs} +0 -0
  173. /package/dist/chunks/{hi-DChMXk0x.mjs → hi-DuLkkPWn.mjs} +0 -0
  174. /package/dist/chunks/{hr-BWVgNU8k.mjs → hr-BwCB1IMW.mjs} +0 -0
  175. /package/dist/chunks/{hu-B37awHXA.mjs → hu-C2dLyTeX.mjs} +0 -0
  176. /package/dist/chunks/{hy-DGC_GDHh.mjs → hy-DXKoDpv9.mjs} +0 -0
  177. /package/dist/chunks/{i18next-CXx5niYF.mjs → i18next-CLUkHqmV.mjs} +0 -0
  178. /package/dist/chunks/{id-V7cw6La2.mjs → id-D4chLuW_.mjs} +0 -0
  179. /package/dist/chunks/{init-C6T-mugb.mjs → init-BlLeEogJ.mjs} +0 -0
  180. /package/dist/chunks/{it-DrTGP8Rn.mjs → it-Hto3G26t.mjs} +0 -0
  181. /package/dist/chunks/{ja-DS4pbJEG.mjs → ja-UxHm_PPZ.mjs} +0 -0
  182. /package/dist/chunks/{java-83DWBpzu.mjs → java-Dhv78FEb.mjs} +0 -0
  183. /package/dist/chunks/{javascript-CBgeF1Xx.mjs → javascript-DilE9EuZ.mjs} +0 -0
  184. /package/dist/chunks/{json-BI17y-1H.mjs → json-LUtHrtDA.mjs} +0 -0
  185. /package/dist/chunks/{ka-BueyosRh.mjs → ka-BnjXwPUq.mjs} +0 -0
  186. /package/dist/chunks/{katex-CmTPfM0f.mjs → katex-B8jUB5Cv.mjs} +0 -0
  187. /package/dist/chunks/{km-B0K891yW.mjs → km-exgzZBIE.mjs} +0 -0
  188. /package/dist/chunks/{kn-BQ__skg8.mjs → kn-DjjUg8aO.mjs} +0 -0
  189. /package/dist/chunks/{ko-BuPxi_7e.mjs → ko-Cu0YUSV6.mjs} +0 -0
  190. /package/dist/chunks/{kotlin-DjnvsrfO.mjs → kotlin-DFLPXbOQ.mjs} +0 -0
  191. /package/dist/chunks/{ku-nQjwPRw2.mjs → ku-D-IxJ0fx.mjs} +0 -0
  192. /package/dist/chunks/{lo-K5NVFoq1.mjs → lo-BcwjJBcv.mjs} +0 -0
  193. /package/dist/chunks/{lt-D3xD6Eb2.mjs → lt-Bt05MFPC.mjs} +0 -0
  194. /package/dist/chunks/{lv-DH13mzZj.mjs → lv-B01TmEFW.mjs} +0 -0
  195. /package/dist/chunks/{markdown-BqQYT45f.mjs → markdown-C6pnqcPd.mjs} +0 -0
  196. /package/dist/chunks/{mdast-util-math-BlK2Zu-1.mjs → mdast-util-math-D56mMxhB.mjs} +0 -0
  197. /package/dist/chunks/{mermaid-vF0cEnZ0.mjs → mermaid-BKA834jS.mjs} +0 -0
  198. /package/dist/chunks/{messages-Buwm8xrX2.mjs → messages--G2XLc8E.mjs} +0 -0
  199. /package/dist/chunks/{messages-DKjUcEfs.mjs → messages-3kHDtQLN.mjs} +0 -0
  200. /package/dist/chunks/{messages-f-YBthdd2.mjs → messages-4Y8dL_1j2.mjs} +0 -0
  201. /package/dist/chunks/{messages--tSqMtkx2.mjs → messages-9Nx7kteY2.mjs} +0 -0
  202. /package/dist/chunks/{messages-B5ZVSxG4.mjs → messages-B29Wm2zT.mjs} +0 -0
  203. /package/dist/chunks/{messages-CDtmVcBc.mjs → messages-B9mzGzZ_.mjs} +0 -0
  204. /package/dist/chunks/{messages-B9PUHq4t.mjs → messages-BCfsOOlp.mjs} +0 -0
  205. /package/dist/chunks/{messages-adEATsLK.mjs → messages-BJTwY1tq.mjs} +0 -0
  206. /package/dist/chunks/{messages-DqGv-lj6.mjs → messages-BK6AwU6C.mjs} +0 -0
  207. /package/dist/chunks/{messages-DGYjioKM.mjs → messages-BPxMr5HC.mjs} +0 -0
  208. /package/dist/chunks/{messages-DKZHsfXy2.mjs → messages-BS9zk4mI2.mjs} +0 -0
  209. /package/dist/chunks/{messages-CEWKcK-Q.mjs → messages-BSXBVdsp.mjs} +0 -0
  210. /package/dist/chunks/{messages-gNK1EolD.mjs → messages-BSyO1EWC.mjs} +0 -0
  211. /package/dist/chunks/{messages-DggaAu362.mjs → messages-BUQTXTew2.mjs} +0 -0
  212. /package/dist/chunks/{messages-Bg8uBETk2.mjs → messages-Bhn5V9FQ2.mjs} +0 -0
  213. /package/dist/chunks/{messages-bteFpBer.mjs → messages-Bi629xgG.mjs} +0 -0
  214. /package/dist/chunks/{messages-Dle6Hv30.mjs → messages-BimpUMRx.mjs} +0 -0
  215. /package/dist/chunks/{messages-Bedied602.mjs → messages-BkaUIuz-2.mjs} +0 -0
  216. /package/dist/chunks/{messages-DIUegdwv2.mjs → messages-BmC2yhsC2.mjs} +0 -0
  217. /package/dist/chunks/{messages-Blg1X6YL.mjs → messages-Bo7Cbk_O.mjs} +0 -0
  218. /package/dist/chunks/{messages-CdWS0hvw.mjs → messages-Bq7fo8X0.mjs} +0 -0
  219. /package/dist/chunks/{messages-3w1e16T2.mjs → messages-BsqBho4T.mjs} +0 -0
  220. /package/dist/chunks/{messages-BqKIunt0.mjs → messages-C7E8C3-S.mjs} +0 -0
  221. /package/dist/chunks/{messages-JRjsu_bC.mjs → messages-C9QhLDA2.mjs} +0 -0
  222. /package/dist/chunks/{messages-D5lY22F4.mjs → messages-C9UIaF6N.mjs} +0 -0
  223. /package/dist/chunks/{messages-BmDMK9Dg.mjs → messages-CAX3qQi0.mjs} +0 -0
  224. /package/dist/chunks/{messages-CrCalcxK.mjs → messages-CEJtxBxU.mjs} +0 -0
  225. /package/dist/chunks/{messages-D5NWb-B9.mjs → messages-CF0SW1zy.mjs} +0 -0
  226. /package/dist/chunks/{messages--X-ZzYSb.mjs → messages-CIre8L_r.mjs} +0 -0
  227. /package/dist/chunks/{messages-DalLfJNC.mjs → messages-CJ8IkF1P.mjs} +0 -0
  228. /package/dist/chunks/{messages-b8XGiuAa2.mjs → messages-CKP6aUXN2.mjs} +0 -0
  229. /package/dist/chunks/{messages-DlTG06-j.mjs → messages-CMMq-u7e.mjs} +0 -0
  230. /package/dist/chunks/{messages-ByHXyVi6.mjs → messages-CR5irc8q.mjs} +0 -0
  231. /package/dist/chunks/{messages-IjEU7XAq.mjs → messages-CRH0RWBs.mjs} +0 -0
  232. /package/dist/chunks/{messages-DpnhbDoK2.mjs → messages-CWm_2RvD2.mjs} +0 -0
  233. /package/dist/chunks/{messages-cR48x2Aq2.mjs → messages-CY76MvbX2.mjs} +0 -0
  234. /package/dist/chunks/{messages-Dk-d3mmM.mjs → messages-CpLq4ZZg.mjs} +0 -0
  235. /package/dist/chunks/{messages-C9HPruJj2.mjs → messages-CrpOkt8c2.mjs} +0 -0
  236. /package/dist/chunks/{messages-CmGixnBb2.mjs → messages-D3fu2FHB2.mjs} +0 -0
  237. /package/dist/chunks/{messages-CXjSY5Fy.mjs → messages-D6_I0L06.mjs} +0 -0
  238. /package/dist/chunks/{messages-DgoJDjHm.mjs → messages-DHzT8CZv.mjs} +0 -0
  239. /package/dist/chunks/{messages-BmDw1fZF2.mjs → messages-DIVQmVS92.mjs} +0 -0
  240. /package/dist/chunks/{messages-DSMFg80t.mjs → messages-DJYT0upW.mjs} +0 -0
  241. /package/dist/chunks/{messages-DIH2U0ZD.mjs → messages-DPcc6xp-.mjs} +0 -0
  242. /package/dist/chunks/{messages-D3wlt9eE.mjs → messages-Dass0QsQ.mjs} +0 -0
  243. /package/dist/chunks/{messages-vqR3RAU4.mjs → messages-DcUYfD6m.mjs} +0 -0
  244. /package/dist/chunks/{messages-BAxCMQgm.mjs → messages-DfLcy0CY.mjs} +0 -0
  245. /package/dist/chunks/{messages-Cic0Y1z6.mjs → messages-DhoZXmg_.mjs} +0 -0
  246. /package/dist/chunks/{messages-DslnYTHU2.mjs → messages-DiQkvwE32.mjs} +0 -0
  247. /package/dist/chunks/{messages-BvoElEE_.mjs → messages-DmvWmURo.mjs} +0 -0
  248. /package/dist/chunks/{messages-DOPK-Xif2.mjs → messages-Dobxrshu2.mjs} +0 -0
  249. /package/dist/chunks/{messages-BKeL1zk-2.mjs → messages-DsMIxm6I2.mjs} +0 -0
  250. /package/dist/chunks/{messages-BHUQs6402.mjs → messages-DtssWM8x2.mjs} +0 -0
  251. /package/dist/chunks/{messages-BIXCvkbG.mjs → messages-E1tsNNG5.mjs} +0 -0
  252. /package/dist/chunks/{messages-BDhWRN6Y.mjs → messages-PFfYbqlm.mjs} +0 -0
  253. /package/dist/chunks/{messages-DT6eM0I22.mjs → messages-bIzBNzdr2.mjs} +0 -0
  254. /package/dist/chunks/{messages-W2zpf0Mu2.mjs → messages-dGYum7sj2.mjs} +0 -0
  255. /package/dist/chunks/{messages-B5BaA6AV.mjs → messages-kKXlI5xZ.mjs} +0 -0
  256. /package/dist/chunks/{messages-BGpx2ecP2.mjs → messages-mo5OrbVj2.mjs} +0 -0
  257. /package/dist/chunks/{messages-DZTQIS9F.mjs → messages-nAdoEqRi.mjs} +0 -0
  258. /package/dist/chunks/{messages-wSX_4fK1.mjs → messages-rNLuCrAb.mjs} +0 -0
  259. /package/dist/chunks/{messages-PkO_43Eb.mjs → messages-v26RM5PC.mjs} +0 -0
  260. /package/dist/chunks/{messages-fUpUvsRN.mjs → messages-x0kzc2oy.mjs} +0 -0
  261. /package/dist/chunks/{messages-DoD9yWMu2.mjs → messages-x6y6csd52.mjs} +0 -0
  262. /package/dist/chunks/{messages-DhgEjOjw2.mjs → messages-x_eMclsl2.mjs} +0 -0
  263. /package/dist/chunks/{messages-BszGK0ox.mjs → messages-z5pham9o.mjs} +0 -0
  264. /package/dist/chunks/{messages-CRLvJfNU2.mjs → messages-zcqQ8x232.mjs} +0 -0
  265. /package/dist/chunks/{mk-Bb48BcDA.mjs → mk-DlZNyDhn.mjs} +0 -0
  266. /package/dist/chunks/{ml-BHPEj1kD.mjs → ml-CizMIOxl.mjs} +0 -0
  267. /package/dist/chunks/{mn-BNGzpdI6.mjs → mn-B_pDvxok.mjs} +0 -0
  268. /package/dist/chunks/{mr-D5PgU-cH.mjs → mr-D8D_7YmW.mjs} +0 -0
  269. /package/dist/chunks/{ms-DPkxqKz5.mjs → ms-CM93I8ec.mjs} +0 -0
  270. /package/dist/chunks/{my-DZGcyfxy.mjs → my-BGnGdDAV.mjs} +0 -0
  271. /package/dist/chunks/{ne-BU_Wh4Wv.mjs → ne-C6ZmmqhH.mjs} +0 -0
  272. /package/dist/chunks/{nl-DtAPk1mK.mjs → nl-UGFOU80W.mjs} +0 -0
  273. /package/dist/chunks/{no-CdW3n3BY.mjs → no-as-DKhC4.mjs} +0 -0
  274. /package/dist/chunks/{notifier-CuvTt9pe.mjs → notifier-PpnFhM0m.mjs} +0 -0
  275. /package/dist/chunks/{one-light-DmNO_Y4X.mjs → one-light-Di_o5Kb7.mjs} +0 -0
  276. /package/dist/chunks/{pa-BacCHz87.mjs → pa-DiOAveAI.mjs} +0 -0
  277. /package/dist/chunks/{path-rIMjg_tH.mjs → path-7pA19U_d.mjs} +0 -0
  278. /package/dist/chunks/{pl-8zBJbmhZ.mjs → pl-DXk8ye3B.mjs} +0 -0
  279. /package/dist/chunks/{ps-c6nGXD-W.mjs → ps-CuxilZ3F.mjs} +0 -0
  280. /package/dist/chunks/{pt-B5yR8Qhr.mjs → pt-DsT6E77q.mjs} +0 -0
  281. /package/dist/chunks/{python-DfwfY9t5.mjs → python-DYiHKGPV.mjs} +0 -0
  282. /package/dist/chunks/{r-BD2D7qEW.mjs → r-BZ4pC-Uz.mjs} +0 -0
  283. /package/dist/chunks/{ro-Nscylsqb.mjs → ro-CcAQOL-B.mjs} +0 -0
  284. /package/dist/chunks/{rough.esm-cmMIcj7N.mjs → rough.esm-BPA_YwbP.mjs} +0 -0
  285. /package/dist/chunks/{ru-DxERQkVJ.mjs → ru-hD41D0Fd.mjs} +0 -0
  286. /package/dist/chunks/{rust-DEDueB5R.mjs → rust-Db_HEGL5.mjs} +0 -0
  287. /package/dist/chunks/{scala-CsjqvxE4.mjs → scala-B1kK21mu.mjs} +0 -0
  288. /package/dist/chunks/{sd-5z-QY3q9.mjs → sd-Biu7f00A.mjs} +0 -0
  289. /package/dist/chunks/{shellscript-Bh5zEpnQ.mjs → shellscript-BBh7AxMC.mjs} +0 -0
  290. /package/dist/chunks/{si-DTL0mzrx.mjs → si-Bhto6prC.mjs} +0 -0
  291. /package/dist/chunks/{sk-DrGczTvY.mjs → sk-Ce7J4sHX.mjs} +0 -0
  292. /package/dist/chunks/{sl-D8nJjig4.mjs → sl-Fz7idR9w.mjs} +0 -0
  293. /package/dist/chunks/{sq-C74Hm3YL.mjs → sq-CnLb3bAQ.mjs} +0 -0
  294. /package/dist/chunks/{sql-D9CrOi1i.mjs → sql-DHkazX4B.mjs} +0 -0
  295. /package/dist/chunks/{sr-DAwB05Gj.mjs → sr-Bc5JbF-b.mjs} +0 -0
  296. /package/dist/chunks/{src-DVJl6f6s.mjs → src-B3rrEIze.mjs} +0 -0
  297. /package/dist/chunks/{sv-BkHBsN4y.mjs → sv-B86P2LyK.mjs} +0 -0
  298. /package/dist/chunks/{sw-BBQLTq_z.mjs → sw-CnQXriTg.mjs} +0 -0
  299. /package/dist/chunks/{swift-Dpyt0s2c.mjs → swift-DZdprfb-.mjs} +0 -0
  300. /package/dist/chunks/{ta-DRRzdKky.mjs → ta-CG4BbxjE.mjs} +0 -0
  301. /package/dist/chunks/{te-CedXLsKM.mjs → te-CkE35V1X.mjs} +0 -0
  302. /package/dist/chunks/{th-DDOlGA0W.mjs → th-BCtkHu3E.mjs} +0 -0
  303. /package/dist/chunks/{tr-ClgvwOlL.mjs → tr-D5Cexvko.mjs} +0 -0
  304. /package/dist/chunks/{typescript-DO5cd4m8.mjs → typescript-DhtGMhWX.mjs} +0 -0
  305. /package/dist/chunks/{ug-bXxwiinM.mjs → ug-Bt9xMT4p.mjs} +0 -0
  306. /package/dist/chunks/{uk-Dp46o_VT.mjs → uk-D1g7UV0v.mjs} +0 -0
  307. /package/dist/chunks/{ur-MfEEhdFq.mjs → ur-B69faQh_.mjs} +0 -0
  308. /package/dist/chunks/{vi-bt-3LPGO.mjs → vi--gW42cZG.mjs} +0 -0
  309. /package/dist/chunks/{vitesse-dark-CcorSKT2.mjs → vitesse-dark-B5oAIYZ5.mjs} +0 -0
  310. /package/dist/chunks/{yaml-CrNNZyLb.mjs → yaml-T4MCc8o4.mjs} +0 -0
  311. /package/dist/chunks/{zh-Dgyb5Ly8.mjs → zh-DgQ6P8Lu.mjs} +0 -0
@@ -1,21 +1,21 @@
1
1
  import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
- import "./chunk-K5T4RW27-BPZ6fFnW.mjs";
3
- import "./chunk-7N4EOEYR-DKNajFZd.mjs";
4
- import "./chunk-67CJDMHE-m0UKdcSH.mjs";
5
- import "./chunk-KGLVRYIC-S1OQdW76.mjs";
6
- import "./chunk-FOC6F5B3-LmHCCWYY.mjs";
7
- import "./chunk-AA7GKIK3-BeLhNzKa.mjs";
8
- import "./chunk-2KRD3SAO-DkM7qh-k.mjs";
9
- import "./chunk-ORNJ4GCN-CdO0hAge.mjs";
10
- import "./chunk-LIHQZDEY-CjtyJlI6.mjs";
11
- import "./chunk-CIAEETIT-CTikoJ19.mjs";
12
- import { g as t, h as n, p as r } from "./src-DVJl6f6s.mjs";
13
- import { B as i, C as a, V as o, W as s, _ as c, a as l, b as u, d, q as f, s as p, v as m, y as h } from "./chunk-ICPOFSXX-BHZIN46A.mjs";
14
- import "./dist-Ctq-pyfb.mjs";
15
- import { h as g, p as _, r as v } from "./chunk-5PVQY5BW-CORl9dnu.mjs";
16
- import { t as y } from "./chunk-4BX2VUAB-CgIkjF7Z.mjs";
17
- import { t as b } from "./mermaid-parser.core-CA3DKkuk.mjs";
18
- import { t as x } from "./chunk-QZHKN3VN-BGFuA6-k.mjs";
2
+ import "./chunk-K5T4RW27-CHSI0vpp.mjs";
3
+ import { h as t, p as n, r } from "./chunk-5PVQY5BW-BP7ENjg7.mjs";
4
+ import "./chunk-7N4EOEYR-p-g3cKuX.mjs";
5
+ import "./chunk-67CJDMHE-Dbl-PjEf.mjs";
6
+ import "./chunk-KGLVRYIC-ngXT4XVA.mjs";
7
+ import "./chunk-FOC6F5B3-CJfr-iwx.mjs";
8
+ import "./chunk-AA7GKIK3-Dt0Kr5Va.mjs";
9
+ import "./chunk-2KRD3SAO-mVfUZfox.mjs";
10
+ import "./chunk-ORNJ4GCN-BPaghT45.mjs";
11
+ import "./chunk-LIHQZDEY-CnP7bym1.mjs";
12
+ import "./chunk-CIAEETIT-BQ4crY5r.mjs";
13
+ import { g as i, h as a, p as o } from "./src-B3rrEIze.mjs";
14
+ import { B as s, C as c, V as l, W as u, _ as d, a as f, b as p, d as m, q as h, s as g, v as _, y as v } from "./chunk-ICPOFSXX-BOvOTlG6.mjs";
15
+ import "./dist-X14EnMrO.mjs";
16
+ import { t as y } from "./chunk-4BX2VUAB-CsopMMb6.mjs";
17
+ import { t as b } from "./mermaid-parser.core-BhpZC2lA.mjs";
18
+ import { t as x } from "./chunk-QZHKN3VN-uW1N2UWF.mjs";
19
19
  //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.mjs
20
20
  var S = {
21
21
  NORMAL: 0,
@@ -23,7 +23,7 @@ var S = {
23
23
  HIGHLIGHT: 2,
24
24
  MERGE: 3,
25
25
  CHERRY_PICK: 4
26
- }, C = d.gitGraph, w = /* @__PURE__ */ n(() => v(e(e({}, C), h().gitGraph)), "getConfig"), T = new x(() => {
26
+ }, C = m.gitGraph, w = /* @__PURE__ */ a(() => r(e(e({}, C), v().gitGraph)), "getConfig"), T = new x(() => {
27
27
  let e = w(), t = e.mainBranchName, n = e.mainBranchOrder;
28
28
  return {
29
29
  mainBranchName: t,
@@ -41,9 +41,9 @@ var S = {
41
41
  };
42
42
  });
43
43
  function E() {
44
- return _({ length: 7 });
44
+ return n({ length: 7 });
45
45
  }
46
- n(E, "getID");
46
+ a(E, "getID");
47
47
  function D(e, t) {
48
48
  let n = /* @__PURE__ */ Object.create(null);
49
49
  return e.reduce((e, r) => {
@@ -51,129 +51,129 @@ function D(e, t) {
51
51
  return n[i] || (n[i] = !0, e.push(r)), e;
52
52
  }, []);
53
53
  }
54
- n(D, "uniqBy");
55
- var ee = /* @__PURE__ */ n(function(e) {
54
+ a(D, "uniqBy");
55
+ var ee = /* @__PURE__ */ a(function(e) {
56
56
  T.records.direction = e;
57
- }, "setDirection"), te = /* @__PURE__ */ n(function(e) {
58
- t.debug("options str", e), e = e == null ? void 0 : e.trim(), e = e || "{}";
57
+ }, "setDirection"), te = /* @__PURE__ */ a(function(e) {
58
+ i.debug("options str", e), e = e == null ? void 0 : e.trim(), e = e || "{}";
59
59
  try {
60
60
  T.records.options = JSON.parse(e);
61
61
  } catch (e) {
62
- t.error("error while parsing gitGraph options", e.message);
62
+ i.error("error while parsing gitGraph options", e.message);
63
63
  }
64
- }, "setOptions"), ne = /* @__PURE__ */ n(function() {
64
+ }, "setOptions"), ne = /* @__PURE__ */ a(function() {
65
65
  return T.records.options;
66
- }, "getOptions"), re = /* @__PURE__ */ n(function(e) {
67
- var n;
68
- let r = e.msg, i = e.id, a = e.type, o = e.tags;
69
- t.info("commit", r, i, a, o), t.debug("Entering commit:", r, i, a, o);
66
+ }, "getOptions"), re = /* @__PURE__ */ a(function(e) {
67
+ var t;
68
+ let n = e.msg, r = e.id, a = e.type, o = e.tags;
69
+ i.info("commit", n, r, a, o), i.debug("Entering commit:", n, r, a, o);
70
70
  let s = w();
71
- i = p.sanitizeText(i, s), r = p.sanitizeText(r, s), o = o == null ? void 0 : o.map((e) => p.sanitizeText(e, s));
71
+ r = g.sanitizeText(r, s), n = g.sanitizeText(n, s), o = o == null ? void 0 : o.map((e) => g.sanitizeText(e, s));
72
72
  let c = {
73
- id: i || T.records.seq + "-" + E(),
74
- message: r,
73
+ id: r || T.records.seq + "-" + E(),
74
+ message: n,
75
75
  seq: T.records.seq++,
76
76
  type: a == null ? S.NORMAL : a,
77
- tags: (n = o) == null ? [] : n,
77
+ tags: (t = o) == null ? [] : t,
78
78
  parents: T.records.head == null ? [] : [T.records.head.id],
79
79
  branch: T.records.currBranch
80
80
  };
81
- T.records.head = c, t.info("main branch", s.mainBranchName), T.records.commits.has(c.id) && t.warn(`Commit ID ${c.id} already exists`), T.records.commits.set(c.id, c), T.records.branches.set(T.records.currBranch, c.id), t.debug("in pushCommit " + c.id);
82
- }, "commit"), ie = /* @__PURE__ */ n(function(e) {
83
- let n = e.name, r = e.order;
84
- if (n = p.sanitizeText(n, w()), T.records.branches.has(n)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${n}")`);
85
- T.records.branches.set(n, T.records.head == null ? null : T.records.head.id), T.records.branchConfig.set(n, {
86
- name: n,
87
- order: r
88
- }), O(n), t.debug("in createBranch");
89
- }, "branch"), ae = /* @__PURE__ */ n((e) => {
90
- let n = e.branch, r = e.id, i = e.type, a = e.tags, o = w();
91
- n = p.sanitizeText(n, o), r && (r = p.sanitizeText(r, o));
92
- let s = T.records.branches.get(T.records.currBranch), c = T.records.branches.get(n), l = s ? T.records.commits.get(s) : void 0, u = c ? T.records.commits.get(c) : void 0;
93
- if (l && u && l.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
94
- if (T.records.currBranch === n) {
81
+ T.records.head = c, i.info("main branch", s.mainBranchName), T.records.commits.has(c.id) && i.warn(`Commit ID ${c.id} already exists`), T.records.commits.set(c.id, c), T.records.branches.set(T.records.currBranch, c.id), i.debug("in pushCommit " + c.id);
82
+ }, "commit"), ie = /* @__PURE__ */ a(function(e) {
83
+ let t = e.name, n = e.order;
84
+ if (t = g.sanitizeText(t, w()), T.records.branches.has(t)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);
85
+ T.records.branches.set(t, T.records.head == null ? null : T.records.head.id), T.records.branchConfig.set(t, {
86
+ name: t,
87
+ order: n
88
+ }), O(t), i.debug("in createBranch");
89
+ }, "branch"), ae = /* @__PURE__ */ a((e) => {
90
+ let t = e.branch, n = e.id, r = e.type, a = e.tags, o = w();
91
+ t = g.sanitizeText(t, o), n && (n = g.sanitizeText(n, o));
92
+ let s = T.records.branches.get(T.records.currBranch), c = T.records.branches.get(t), l = s ? T.records.commits.get(s) : void 0, u = c ? T.records.commits.get(c) : void 0;
93
+ if (l && u && l.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
94
+ if (T.records.currBranch === t) {
95
95
  let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
96
96
  throw e.hash = {
97
- text: `merge ${n}`,
98
- token: `merge ${n}`,
97
+ text: `merge ${t}`,
98
+ token: `merge ${t}`,
99
99
  expected: ["branch abc"]
100
100
  }, e;
101
101
  }
102
102
  if (l === void 0 || !l) {
103
103
  let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${T.records.currBranch})has no commits`);
104
104
  throw e.hash = {
105
- text: `merge ${n}`,
106
- token: `merge ${n}`,
105
+ text: `merge ${t}`,
106
+ token: `merge ${t}`,
107
107
  expected: ["commit"]
108
108
  }, e;
109
109
  }
110
- if (!T.records.branches.has(n)) {
111
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
110
+ if (!T.records.branches.has(t)) {
111
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
112
112
  throw e.hash = {
113
- text: `merge ${n}`,
114
- token: `merge ${n}`,
115
- expected: [`branch ${n}`]
113
+ text: `merge ${t}`,
114
+ token: `merge ${t}`,
115
+ expected: [`branch ${t}`]
116
116
  }, e;
117
117
  }
118
118
  if (u === void 0 || !u) {
119
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
119
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
120
120
  throw e.hash = {
121
- text: `merge ${n}`,
122
- token: `merge ${n}`,
121
+ text: `merge ${t}`,
122
+ token: `merge ${t}`,
123
123
  expected: ["\"commit\""]
124
124
  }, e;
125
125
  }
126
126
  if (l === u) {
127
127
  let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
128
128
  throw e.hash = {
129
- text: `merge ${n}`,
130
- token: `merge ${n}`,
129
+ text: `merge ${t}`,
130
+ token: `merge ${t}`,
131
131
  expected: ["branch abc"]
132
132
  }, e;
133
133
  }
134
- if (r && T.records.commits.has(r)) {
135
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
134
+ if (n && T.records.commits.has(n)) {
135
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
136
136
  throw e.hash = {
137
- text: `merge ${n} ${r} ${i} ${a == null ? void 0 : a.join(" ")}`,
138
- token: `merge ${n} ${r} ${i} ${a == null ? void 0 : a.join(" ")}`,
139
- expected: [`merge ${n} ${r}_UNIQUE ${i} ${a == null ? void 0 : a.join(" ")}`]
137
+ text: `merge ${t} ${n} ${r} ${a == null ? void 0 : a.join(" ")}`,
138
+ token: `merge ${t} ${n} ${r} ${a == null ? void 0 : a.join(" ")}`,
139
+ expected: [`merge ${t} ${n}_UNIQUE ${r} ${a == null ? void 0 : a.join(" ")}`]
140
140
  }, e;
141
141
  }
142
142
  let d = c || "", f = {
143
- id: r || `${T.records.seq}-${E()}`,
144
- message: `merged branch ${n} into ${T.records.currBranch}`,
143
+ id: n || `${T.records.seq}-${E()}`,
144
+ message: `merged branch ${t} into ${T.records.currBranch}`,
145
145
  seq: T.records.seq++,
146
146
  parents: T.records.head == null ? [] : [T.records.head.id, d],
147
147
  branch: T.records.currBranch,
148
148
  type: S.MERGE,
149
- customType: i,
150
- customId: !!r,
149
+ customType: r,
150
+ customId: !!n,
151
151
  tags: a == null ? [] : a
152
152
  };
153
- T.records.head = f, T.records.commits.set(f.id, f), T.records.branches.set(T.records.currBranch, f.id), t.debug(T.records.branches), t.debug("in mergeBranch");
154
- }, "merge"), oe = /* @__PURE__ */ n(function(e) {
155
- let n = e.id, r = e.targetId, i = e.tags, a = e.parent;
156
- t.debug("Entering cherryPick:", n, r, i);
153
+ T.records.head = f, T.records.commits.set(f.id, f), T.records.branches.set(T.records.currBranch, f.id), i.debug(T.records.branches), i.debug("in mergeBranch");
154
+ }, "merge"), oe = /* @__PURE__ */ a(function(e) {
155
+ let t = e.id, n = e.targetId, r = e.tags, a = e.parent;
156
+ i.debug("Entering cherryPick:", t, n, r);
157
157
  let o = w();
158
- if (n = p.sanitizeText(n, o), r = p.sanitizeText(r, o), i = i == null ? void 0 : i.map((e) => p.sanitizeText(e, o)), a = p.sanitizeText(a, o), !n || !T.records.commits.has(n)) {
158
+ if (t = g.sanitizeText(t, o), n = g.sanitizeText(n, o), r = r == null ? void 0 : r.map((e) => g.sanitizeText(e, o)), a = g.sanitizeText(a, o), !t || !T.records.commits.has(t)) {
159
159
  let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
160
160
  throw e.hash = {
161
- text: `cherryPick ${n} ${r}`,
162
- token: `cherryPick ${n} ${r}`,
161
+ text: `cherryPick ${t} ${n}`,
162
+ token: `cherryPick ${t} ${n}`,
163
163
  expected: ["cherry-pick abc"]
164
164
  }, e;
165
165
  }
166
- let s = T.records.commits.get(n);
166
+ let s = T.records.commits.get(t);
167
167
  if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
168
168
  if (a && !(Array.isArray(s.parents) && s.parents.includes(a))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
169
169
  let c = s.branch;
170
170
  if (s.type === S.MERGE && !a) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
171
- if (!r || !T.records.commits.has(r)) {
171
+ if (!n || !T.records.commits.has(n)) {
172
172
  if (c === T.records.currBranch) {
173
173
  let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
174
174
  throw e.hash = {
175
- text: `cherryPick ${n} ${r}`,
176
- token: `cherryPick ${n} ${r}`,
175
+ text: `cherryPick ${t} ${n}`,
176
+ token: `cherryPick ${t} ${n}`,
177
177
  expected: ["cherry-pick abc"]
178
178
  }, e;
179
179
  }
@@ -181,8 +181,8 @@ var ee = /* @__PURE__ */ n(function(e) {
181
181
  if (e === void 0 || !e) {
182
182
  let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${T.records.currBranch})has no commits`);
183
183
  throw e.hash = {
184
- text: `cherryPick ${n} ${r}`,
185
- token: `cherryPick ${n} ${r}`,
184
+ text: `cherryPick ${t} ${n}`,
185
+ token: `cherryPick ${t} ${n}`,
186
186
  expected: ["cherry-pick abc"]
187
187
  }, e;
188
188
  }
@@ -190,8 +190,8 @@ var ee = /* @__PURE__ */ n(function(e) {
190
190
  if (o === void 0 || !o) {
191
191
  let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${T.records.currBranch})has no commits`);
192
192
  throw e.hash = {
193
- text: `cherryPick ${n} ${r}`,
194
- token: `cherryPick ${n} ${r}`,
193
+ text: `cherryPick ${t} ${n}`,
194
+ token: `cherryPick ${t} ${n}`,
195
195
  expected: ["cherry-pick abc"]
196
196
  }, e;
197
197
  }
@@ -202,12 +202,12 @@ var ee = /* @__PURE__ */ n(function(e) {
202
202
  parents: T.records.head == null ? [] : [T.records.head.id, s.id],
203
203
  branch: T.records.currBranch,
204
204
  type: S.CHERRY_PICK,
205
- tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === S.MERGE ? `|parent:${a}` : ""}`]
205
+ tags: r ? r.filter(Boolean) : [`cherry-pick:${s.id}${s.type === S.MERGE ? `|parent:${a}` : ""}`]
206
206
  };
207
- T.records.head = l, T.records.commits.set(l.id, l), T.records.branches.set(T.records.currBranch, l.id), t.debug(T.records.branches), t.debug("in cherryPick");
207
+ T.records.head = l, T.records.commits.set(l.id, l), T.records.branches.set(T.records.currBranch, l.id), i.debug(T.records.branches), i.debug("in cherryPick");
208
208
  }
209
- }, "cherryPick"), O = /* @__PURE__ */ n(function(e) {
210
- if (e = p.sanitizeText(e, w()), T.records.branches.has(e)) {
209
+ }, "cherryPick"), O = /* @__PURE__ */ a(function(e) {
210
+ if (e = g.sanitizeText(e, w()), T.records.branches.has(e)) {
211
211
  T.records.currBranch = e;
212
212
  let n = T.records.branches.get(T.records.currBranch);
213
213
  if (n === void 0 || !n) T.records.head = null;
@@ -228,48 +228,48 @@ function k(e, t, n) {
228
228
  let r = e.indexOf(t);
229
229
  r === -1 ? e.push(n) : e.splice(r, 1, n);
230
230
  }
231
- n(k, "upsert");
231
+ a(k, "upsert");
232
232
  function A(e) {
233
- let n = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), r = "";
233
+ let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
234
234
  e.forEach(function(e) {
235
- e === n ? r += " *" : r += " |";
235
+ e === t ? n += " *" : n += " |";
236
236
  });
237
- let i = [
238
- r,
239
- n.id,
240
- n.seq
237
+ let r = [
238
+ n,
239
+ t.id,
240
+ t.seq
241
241
  ];
242
- for (let e in T.records.branches) T.records.branches.get(e) === n.id && i.push(e);
243
- if (t.debug(i.join(" ")), n.parents && n.parents.length == 2 && n.parents[0] && n.parents[1]) {
244
- let t = T.records.commits.get(n.parents[0]);
245
- k(e, n, t), n.parents[1] && e.push(T.records.commits.get(n.parents[1]));
246
- } else if (n.parents.length == 0) return;
247
- else if (n.parents[0]) {
248
- let t = T.records.commits.get(n.parents[0]);
249
- k(e, n, t);
242
+ for (let e in T.records.branches) T.records.branches.get(e) === t.id && r.push(e);
243
+ if (i.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
244
+ let n = T.records.commits.get(t.parents[0]);
245
+ k(e, t, n), t.parents[1] && e.push(T.records.commits.get(t.parents[1]));
246
+ } else if (t.parents.length == 0) return;
247
+ else if (t.parents[0]) {
248
+ let n = T.records.commits.get(t.parents[0]);
249
+ k(e, t, n);
250
250
  }
251
251
  e = D(e, (e) => e.id), A(e);
252
252
  }
253
- n(A, "prettyPrintCommitHistory");
254
- var se = /* @__PURE__ */ n(function() {
255
- t.debug(T.records.commits);
253
+ a(A, "prettyPrintCommitHistory");
254
+ var se = /* @__PURE__ */ a(function() {
255
+ i.debug(T.records.commits);
256
256
  let e = j()[0];
257
257
  A([e]);
258
- }, "prettyPrint"), ce = /* @__PURE__ */ n(function() {
259
- T.reset(), l();
260
- }, "clear"), le = /* @__PURE__ */ n(function() {
258
+ }, "prettyPrint"), ce = /* @__PURE__ */ a(function() {
259
+ T.reset(), f();
260
+ }, "clear"), le = /* @__PURE__ */ a(function() {
261
261
  return [...T.records.branchConfig.values()].map((t, n) => t.order !== null && t.order !== void 0 ? t : e(e({}, t), {}, { order: parseFloat(`0.${n}`) })).sort((e, t) => {
262
262
  var n, r;
263
263
  return ((n = e.order) == null ? 0 : n) - ((r = t.order) == null ? 0 : r);
264
264
  }).map(({ name: e }) => ({ name: e }));
265
- }, "getBranchesAsObjArray"), ue = /* @__PURE__ */ n(function() {
265
+ }, "getBranchesAsObjArray"), ue = /* @__PURE__ */ a(function() {
266
266
  return T.records.branches;
267
- }, "getBranches"), de = /* @__PURE__ */ n(function() {
267
+ }, "getBranches"), de = /* @__PURE__ */ a(function() {
268
268
  return T.records.commits;
269
- }, "getCommits"), j = /* @__PURE__ */ n(function() {
269
+ }, "getCommits"), j = /* @__PURE__ */ a(function() {
270
270
  let e = [...T.records.commits.values()];
271
271
  return e.forEach(function(e) {
272
- t.debug(e.id);
272
+ i.debug(e.id);
273
273
  }), e.sort((e, t) => e.seq - t.seq), e;
274
274
  }, "getCommitsArray"), M = {
275
275
  commitType: S,
@@ -288,34 +288,34 @@ var se = /* @__PURE__ */ n(function() {
288
288
  getBranches: ue,
289
289
  getCommits: de,
290
290
  getCommitsArray: j,
291
- getCurrentBranch: /* @__PURE__ */ n(function() {
291
+ getCurrentBranch: /* @__PURE__ */ a(function() {
292
292
  return T.records.currBranch;
293
293
  }, "getCurrentBranch"),
294
- getDirection: /* @__PURE__ */ n(function() {
294
+ getDirection: /* @__PURE__ */ a(function() {
295
295
  return T.records.direction;
296
296
  }, "getDirection"),
297
- getHead: /* @__PURE__ */ n(function() {
297
+ getHead: /* @__PURE__ */ a(function() {
298
298
  return T.records.head;
299
299
  }, "getHead"),
300
- setAccTitle: o,
301
- getAccTitle: m,
302
- getAccDescription: c,
303
- setAccDescription: i,
304
- setDiagramTitle: s,
305
- getDiagramTitle: a
306
- }, fe = /* @__PURE__ */ n((e, t) => {
300
+ setAccTitle: l,
301
+ getAccTitle: _,
302
+ getAccDescription: d,
303
+ setAccDescription: s,
304
+ setDiagramTitle: u,
305
+ getDiagramTitle: c
306
+ }, fe = /* @__PURE__ */ a((e, t) => {
307
307
  y(e, t), e.dir && t.setDirection(e.dir);
308
308
  for (let n of e.statements) pe(n, t);
309
- }, "populate"), pe = /* @__PURE__ */ n((e, r) => {
310
- let i = {
311
- Commit: /* @__PURE__ */ n((e) => r.commit(me(e)), "Commit"),
312
- Branch: /* @__PURE__ */ n((e) => r.branch(he(e)), "Branch"),
313
- Merge: /* @__PURE__ */ n((e) => r.merge(ge(e)), "Merge"),
314
- Checkout: /* @__PURE__ */ n((e) => r.checkout(_e(e)), "Checkout"),
315
- CherryPicking: /* @__PURE__ */ n((e) => r.cherryPick(ve(e)), "CherryPicking")
309
+ }, "populate"), pe = /* @__PURE__ */ a((e, t) => {
310
+ let n = {
311
+ Commit: /* @__PURE__ */ a((e) => t.commit(me(e)), "Commit"),
312
+ Branch: /* @__PURE__ */ a((e) => t.branch(he(e)), "Branch"),
313
+ Merge: /* @__PURE__ */ a((e) => t.merge(ge(e)), "Merge"),
314
+ Checkout: /* @__PURE__ */ a((e) => t.checkout(_e(e)), "Checkout"),
315
+ CherryPicking: /* @__PURE__ */ a((e) => t.cherryPick(ve(e)), "CherryPicking")
316
316
  }[e.$type];
317
- i ? i(e) : t.error(`Unknown statement type: ${e.$type}`);
318
- }, "parseStatement"), me = /* @__PURE__ */ n((e) => {
317
+ n ? n(e) : i.error(`Unknown statement type: ${e.$type}`);
318
+ }, "parseStatement"), me = /* @__PURE__ */ a((e) => {
319
319
  var t, n;
320
320
  return {
321
321
  id: e.id,
@@ -323,13 +323,13 @@ var se = /* @__PURE__ */ n(function() {
323
323
  type: e.type === void 0 ? S.NORMAL : S[e.type],
324
324
  tags: (n = e.tags) == null ? void 0 : n
325
325
  };
326
- }, "parseCommit"), he = /* @__PURE__ */ n((e) => {
326
+ }, "parseCommit"), he = /* @__PURE__ */ a((e) => {
327
327
  var t;
328
328
  return {
329
329
  name: e.name,
330
330
  order: (t = e.order) == null ? 0 : t
331
331
  };
332
- }, "parseBranch"), ge = /* @__PURE__ */ n((e) => {
332
+ }, "parseBranch"), ge = /* @__PURE__ */ a((e) => {
333
333
  var t, n;
334
334
  return {
335
335
  branch: e.branch,
@@ -337,7 +337,7 @@ var se = /* @__PURE__ */ n(function() {
337
337
  type: e.type === void 0 ? void 0 : S[e.type],
338
338
  tags: (n = e.tags) == null ? void 0 : n
339
339
  };
340
- }, "parseMerge"), _e = /* @__PURE__ */ n((e) => e.branch, "parseCheckout"), ve = /* @__PURE__ */ n((e) => {
340
+ }, "parseMerge"), _e = /* @__PURE__ */ a((e) => e.branch, "parseCheckout"), ve = /* @__PURE__ */ a((e) => {
341
341
  var t;
342
342
  return {
343
343
  id: e.id,
@@ -345,9 +345,9 @@ var se = /* @__PURE__ */ n(function() {
345
345
  tags: ((t = e.tags) == null ? void 0 : t.length) === 0 ? void 0 : e.tags,
346
346
  parent: e.parent
347
347
  };
348
- }, "parseCherryPicking"), ye = { parse: /* @__PURE__ */ n(async (e) => {
349
- let n = await b("gitGraph", e);
350
- t.debug(n), fe(n, M);
348
+ }, "parseCherryPicking"), ye = { parse: /* @__PURE__ */ a(async (e) => {
349
+ let t = await b("gitGraph", e);
350
+ i.debug(t), fe(t, M);
351
351
  }, "parse") }, N = 10, P = 40, F = 4, I = 2, L = 8, R = /* @__PURE__ */ new Set([
352
352
  "redux",
353
353
  "redux-dark",
@@ -358,28 +358,28 @@ var se = /* @__PURE__ */ n(function() {
358
358
  "redux-dark",
359
359
  "redux-dark-color",
360
360
  "neo-dark"
361
- ]), V = /* @__PURE__ */ n((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", xe = /* @__PURE__ */ n(() => {
361
+ ]), V = /* @__PURE__ */ a((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", xe = /* @__PURE__ */ a(() => {
362
362
  H.clear(), U.clear(), G.clear(), q = 0, K = [], J = "LR";
363
- }, "clear"), Y = /* @__PURE__ */ n((e) => {
363
+ }, "clear"), Y = /* @__PURE__ */ a((e) => {
364
364
  let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
365
365
  return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
366
366
  let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
367
367
  n.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), n.setAttribute("dy", "1em"), n.setAttribute("x", "0"), n.setAttribute("class", "row"), n.textContent = e.trim(), t.appendChild(n);
368
368
  }), t;
369
- }, "drawText"), X = /* @__PURE__ */ n((e) => {
370
- let t, r, i;
371
- return J === "BT" ? (r = /* @__PURE__ */ n((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ n((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
372
- var n, a;
373
- let o = J === "TB" || J == "BT" ? (n = U.get(e)) == null ? void 0 : n.y : (a = U.get(e)) == null ? void 0 : a.x;
374
- o !== void 0 && r(o, i) && (t = e, i = o);
369
+ }, "drawText"), X = /* @__PURE__ */ a((e) => {
370
+ let t, n, r;
371
+ return J === "BT" ? (n = /* @__PURE__ */ a((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ a((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
372
+ var i, a;
373
+ let o = J === "TB" || J == "BT" ? (i = U.get(e)) == null ? void 0 : i.y : (a = U.get(e)) == null ? void 0 : a.x;
374
+ o !== void 0 && n(o, r) && (t = e, r = o);
375
375
  }), t;
376
- }, "findClosestParent"), Se = /* @__PURE__ */ n((e) => {
376
+ }, "findClosestParent"), Se = /* @__PURE__ */ a((e) => {
377
377
  let t = "", n = Infinity;
378
378
  return e.forEach((e) => {
379
379
  let r = U.get(e).y;
380
380
  r <= n && (t = e, n = r);
381
381
  }), t || void 0;
382
- }, "findClosestParentBT"), Ce = /* @__PURE__ */ n((e, t, n) => {
382
+ }, "findClosestParentBT"), Ce = /* @__PURE__ */ a((e, t, n) => {
383
383
  let r = n, i = n, a = [];
384
384
  e.forEach((e) => {
385
385
  let n = t.get(e);
@@ -399,14 +399,14 @@ var se = /* @__PURE__ */ n(function() {
399
399
  });
400
400
  }
401
401
  });
402
- }, "setParallelBTPos"), we = /* @__PURE__ */ n((e) => {
402
+ }, "setParallelBTPos"), we = /* @__PURE__ */ a((e) => {
403
403
  var t;
404
404
  let n = X(e.parents.filter((e) => e !== null));
405
405
  if (!n) throw Error(`Closest parent not found for commit ${e.id}`);
406
406
  let r = (t = U.get(n)) == null ? void 0 : t.y;
407
407
  if (r === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
408
408
  return r;
409
- }, "findClosestParentPos"), Te = /* @__PURE__ */ n((e) => we(e) + P, "calculateCommitPosition"), Ee = /* @__PURE__ */ n((e, t) => {
409
+ }, "findClosestParentPos"), Te = /* @__PURE__ */ a((e) => we(e) + P, "calculateCommitPosition"), Ee = /* @__PURE__ */ a((e, t) => {
410
410
  let n = H.get(e.branch);
411
411
  if (!n) throw Error(`Branch not found for commit ${e.id}`);
412
412
  let r = n.pos, i = t + N;
@@ -417,7 +417,7 @@ var se = /* @__PURE__ */ n(function() {
417
417
  x: r,
418
418
  y: i
419
419
  };
420
- }, "setCommitPosition"), De = /* @__PURE__ */ n((e, t, n) => {
420
+ }, "setCommitPosition"), De = /* @__PURE__ */ a((e, t, n) => {
421
421
  let r = H.get(e.branch);
422
422
  if (!r) throw Error(`Branch not found for commit ${e.id}`);
423
423
  let i = t + n, a = r.pos;
@@ -425,8 +425,8 @@ var se = /* @__PURE__ */ n(function() {
425
425
  x: a,
426
426
  y: i
427
427
  });
428
- }, "setRootPosition"), Oe = /* @__PURE__ */ n((e, t, n, r, i, a) => {
429
- let { theme: o } = u(), s = R.has(o == null ? "" : o), c = B.has(o == null ? "" : o), l = be.has(o == null ? "" : o);
428
+ }, "setRootPosition"), Oe = /* @__PURE__ */ a((e, t, n, r, i, a) => {
429
+ let { theme: o } = p(), s = R.has(o == null ? "" : o), c = B.has(o == null ? "" : o), l = be.has(o == null ? "" : o);
430
430
  if (a === S.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (s ? 3 : 0)).attr("y", n.y - 10 + (s ? 3 : 0)).attr("width", s ? 14 : 20).attr("height", s ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${V(i, L, c)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (s ? 2 : 0)).attr("y", n.y - 6 + (s ? 2 : 0)).attr("width", s ? 8 : 12).attr("height", s ? 8 : 12).attr("class", `commit ${t.id} commit${V(i, L, c)} ${r}-inner`);
431
431
  else if (a === S.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", s ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
432
432
  else {
@@ -440,7 +440,7 @@ var se = /* @__PURE__ */ n(function() {
440
440
  a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${V(i, L, c)}`);
441
441
  }
442
442
  }
443
- }, "drawCommitBullet"), ke = /* @__PURE__ */ n((e, t, n, r, i) => {
443
+ }, "drawCommitBullet"), ke = /* @__PURE__ */ a((e, t, n, r, i) => {
444
444
  if (t.type !== S.CHERRY_PICK && (t.customId && t.type === S.MERGE || t.type !== S.MERGE) && i.showCommitLabel) {
445
445
  var a;
446
446
  let o = e.append("g"), s = o.insert("rect").attr("class", "commit-label-bkg"), c = o.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), l = (a = c.node()) == null ? void 0 : a.getBBox();
@@ -450,7 +450,7 @@ var se = /* @__PURE__ */ n(function() {
450
450
  o.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
451
451
  }
452
452
  }
453
- }, "drawCommitLabel"), Ae = /* @__PURE__ */ n((e, t, n, r) => {
453
+ }, "drawCommitLabel"), Ae = /* @__PURE__ */ a((e, t, n, r) => {
454
454
  if (t.tags.length > 0) {
455
455
  let a = 0, o = 0, s = 0, c = [];
456
456
  for (let r of t.tags.reverse()) {
@@ -484,7 +484,7 @@ var se = /* @__PURE__ */ n(function() {
484
484
  }
485
485
  }
486
486
  }
487
- }, "drawCommitTags"), je = /* @__PURE__ */ n((e) => {
487
+ }, "drawCommitTags"), je = /* @__PURE__ */ a((e) => {
488
488
  var t;
489
489
  switch ((t = e.customType) == null ? e.type : t) {
490
490
  case S.NORMAL: return "commit-normal";
@@ -494,7 +494,7 @@ var se = /* @__PURE__ */ n(function() {
494
494
  case S.CHERRY_PICK: return "commit-cherry-pick";
495
495
  default: return "commit-normal";
496
496
  }
497
- }, "getCommitClassType"), Me = /* @__PURE__ */ n((e, t, n, r) => {
497
+ }, "getCommitClassType"), Me = /* @__PURE__ */ a((e, t, n, r) => {
498
498
  let i = {
499
499
  x: 0,
500
500
  y: 0
@@ -516,79 +516,79 @@ var se = /* @__PURE__ */ n(function() {
516
516
  return ((s = r.get(e.id)) == null ? i : s).y - P;
517
517
  } else return 0;
518
518
  return 0;
519
- }, "calculatePosition"), Ne = /* @__PURE__ */ n((e, t, n) => {
519
+ }, "calculatePosition"), Ne = /* @__PURE__ */ a((e, t, n) => {
520
520
  var r, i, a;
521
521
  let o = J === "BT" && n ? t : t + N, s = (r = H.get(e.branch)) == null ? void 0 : r.pos, c = J === "TB" || J === "BT" ? (i = H.get(e.branch)) == null ? void 0 : i.pos : o;
522
522
  if (c === void 0 || s === void 0) throw Error(`Position were undefined for commit ${e.id}`);
523
- let l = R.has((a = u().theme) == null ? "" : a);
523
+ let l = R.has((a = p().theme) == null ? "" : a);
524
524
  return {
525
525
  x: c,
526
526
  y: J === "TB" || J === "BT" ? o : s + (l ? z / 2 + 1 : -2),
527
527
  posWithOffset: o
528
528
  };
529
- }, "getCommitPosition"), Z = /* @__PURE__ */ n((e, t, r, i) => {
530
- var a;
531
- let o = e.append("g").attr("class", "commit-bullets"), s = e.append("g").attr("class", "commit-labels"), c = J === "TB" || J === "BT" ? W : 0, l = [...t.keys()], u = (a = i.parallelCommits) == null ? !1 : a, d = /* @__PURE__ */ n((e, n) => {
529
+ }, "getCommitPosition"), Z = /* @__PURE__ */ a((e, t, n, r) => {
530
+ var i;
531
+ let o = e.append("g").attr("class", "commit-bullets"), s = e.append("g").attr("class", "commit-labels"), c = J === "TB" || J === "BT" ? W : 0, l = [...t.keys()], u = (i = r.parallelCommits) == null ? !1 : i, d = /* @__PURE__ */ a((e, n) => {
532
532
  var r, i;
533
533
  let a = (r = t.get(e)) == null ? void 0 : r.seq, o = (i = t.get(n)) == null ? void 0 : i.seq;
534
534
  return a !== void 0 && o !== void 0 ? a - o : 0;
535
535
  }, "sortKeys"), f = l.sort(d);
536
536
  J === "BT" && (u && Ce(f, t, c), f = f.reverse()), f.forEach((e) => {
537
- let n = t.get(e);
538
- if (!n) throw Error(`Commit not found for key ${e}`);
539
- u && (c = Me(n, J, c, U));
540
- let a = Ne(n, c, u);
541
- if (r) {
537
+ let i = t.get(e);
538
+ if (!i) throw Error(`Commit not found for key ${e}`);
539
+ u && (c = Me(i, J, c, U));
540
+ let a = Ne(i, c, u);
541
+ if (n) {
542
542
  var l, d, f;
543
- let e = je(n), t = (l = n.customType) == null ? n.type : l;
544
- Oe(o, n, a, e, (d = (f = H.get(n.branch)) == null ? void 0 : f.index) == null ? 0 : d, t), ke(s, n, a, c, i), Ae(s, n, a, c);
543
+ let e = je(i), t = (l = i.customType) == null ? i.type : l;
544
+ Oe(o, i, a, e, (d = (f = H.get(i.branch)) == null ? void 0 : f.index) == null ? 0 : d, t), ke(s, i, a, c, r), Ae(s, i, a, c);
545
545
  }
546
- J === "TB" || J === "BT" ? U.set(n.id, {
546
+ J === "TB" || J === "BT" ? U.set(i.id, {
547
547
  x: a.x,
548
548
  y: a.posWithOffset
549
- }) : U.set(n.id, {
549
+ }) : U.set(i.id, {
550
550
  x: a.posWithOffset,
551
551
  y: a.y
552
552
  }), c = J === "BT" && u ? c + P : c + P + N, c > q && (q = c);
553
553
  });
554
- }, "drawCommits"), Pe = /* @__PURE__ */ n((e, t, r, i, a) => {
555
- let o = (J === "TB" || J === "BT" ? r.x < i.x : r.y < i.y) ? t.branch : e.branch, s = /* @__PURE__ */ n((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ n((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
556
- return [...a.values()].some((e) => c(e) && s(e));
557
- }, "shouldRerouteArrow"), Q = /* @__PURE__ */ n((e, t, n = 0) => {
554
+ }, "drawCommits"), Pe = /* @__PURE__ */ a((e, t, n, r, i) => {
555
+ let o = (J === "TB" || J === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, s = /* @__PURE__ */ a((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ a((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
556
+ return [...i.values()].some((e) => c(e) && s(e));
557
+ }, "shouldRerouteArrow"), Q = /* @__PURE__ */ a((e, t, n = 0) => {
558
558
  let r = e + Math.abs(e - t) / 2;
559
559
  return n > 5 ? r : K.every((e) => Math.abs(e - r) >= 10) ? (K.push(r), r) : Q(e, t - Math.abs(e - t) / 5, n + 1);
560
- }, "findLane"), Fe = /* @__PURE__ */ n((e, t, n, r) => {
560
+ }, "findLane"), Fe = /* @__PURE__ */ a((e, t, n, r) => {
561
561
  var i;
562
- let { theme: a } = u(), o = B.has(a == null ? "" : a), s = U.get(t.id), c = U.get(n.id);
562
+ let { theme: a } = p(), o = B.has(a == null ? "" : a), s = U.get(t.id), c = U.get(n.id);
563
563
  if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
564
- let l = Pe(t, n, s, c, r), d = "", f = "", p = 0, m = 0, h = (i = H.get(n.branch)) == null ? void 0 : i.index;
564
+ let l = Pe(t, n, s, c, r), u = "", d = "", f = 0, m = 0, h = (i = H.get(n.branch)) == null ? void 0 : i.index;
565
565
  if (n.type === S.MERGE && t.id !== n.parents[0]) {
566
566
  var g;
567
567
  h = (g = H.get(t.branch)) == null ? void 0 : g.index;
568
568
  }
569
569
  let _;
570
570
  if (l) {
571
- d = "A 10 10, 0, 0, 0,", f = "A 10 10, 0, 0, 1,", p = 10, m = 10;
571
+ u = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, m = 10;
572
572
  let e = s.y < c.y ? Q(s.y, c.y) : Q(c.y, s.y), n = s.x < c.x ? Q(s.x, c.x) : Q(c.x, s.x);
573
- if (J === "TB") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - p} ${s.y} ${f} ${n} ${s.y + m} L ${n} ${c.y - p} ${d} ${n + m} ${c.y} L ${c.x} ${c.y}`;
573
+ if (J === "TB") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${d} ${n} ${s.y + m} L ${n} ${c.y - f} ${u} ${n + m} ${c.y} L ${c.x} ${c.y}`;
574
574
  else {
575
575
  var v;
576
- h = (v = H.get(t.branch)) == null ? void 0 : v.index, _ = `M ${s.x} ${s.y} L ${n + p} ${s.y} ${d} ${n} ${s.y + m} L ${n} ${c.y - p} ${f} ${n - m} ${c.y} L ${c.x} ${c.y}`;
576
+ h = (v = H.get(t.branch)) == null ? void 0 : v.index, _ = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${u} ${n} ${s.y + m} L ${n} ${c.y - f} ${d} ${n - m} ${c.y} L ${c.x} ${c.y}`;
577
577
  }
578
- else if (J === "BT") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - p} ${s.y} ${d} ${n} ${s.y - m} L ${n} ${c.y + p} ${f} ${n + m} ${c.y} L ${c.x} ${c.y}`;
578
+ else if (J === "BT") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${u} ${n} ${s.y - m} L ${n} ${c.y + f} ${d} ${n + m} ${c.y} L ${c.x} ${c.y}`;
579
579
  else {
580
580
  var y;
581
- h = (y = H.get(t.branch)) == null ? void 0 : y.index, _ = `M ${s.x} ${s.y} L ${n + p} ${s.y} ${f} ${n} ${s.y - m} L ${n} ${c.y + p} ${d} ${n - m} ${c.y} L ${c.x} ${c.y}`;
581
+ h = (y = H.get(t.branch)) == null ? void 0 : y.index, _ = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${d} ${n} ${s.y - m} L ${n} ${c.y + f} ${u} ${n - m} ${c.y} L ${c.x} ${c.y}`;
582
582
  }
583
- else if (s.y < c.y) _ = `M ${s.x} ${s.y} L ${s.x} ${e - p} ${d} ${s.x + m} ${e} L ${c.x - p} ${e} ${f} ${c.x} ${e + m} L ${c.x} ${c.y}`;
583
+ else if (s.y < c.y) _ = `M ${s.x} ${s.y} L ${s.x} ${e - f} ${u} ${s.x + m} ${e} L ${c.x - f} ${e} ${d} ${c.x} ${e + m} L ${c.x} ${c.y}`;
584
584
  else {
585
585
  var b;
586
- h = (b = H.get(t.branch)) == null ? void 0 : b.index, _ = `M ${s.x} ${s.y} L ${s.x} ${e + p} ${f} ${s.x + m} ${e} L ${c.x - p} ${e} ${d} ${c.x} ${e - m} L ${c.x} ${c.y}`;
586
+ h = (b = H.get(t.branch)) == null ? void 0 : b.index, _ = `M ${s.x} ${s.y} L ${s.x} ${e + f} ${d} ${s.x + m} ${e} L ${c.x - f} ${e} ${u} ${c.x} ${e - m} L ${c.x} ${c.y}`;
587
587
  }
588
- } else d = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", p = 20, m = 20, J === "TB" ? (s.x < c.x && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - p} ${d} ${s.x + m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${f} ${c.x} ${s.y + m} L ${c.x} ${c.y}`), s.x > c.x && (d = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", p = 20, m = 20, _ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - p} ${f} ${s.x - m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + p} ${s.y} ${d} ${c.x} ${s.y + m} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : J === "BT" ? (s.x < c.x && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + p} ${f} ${s.x + m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${d} ${c.x} ${s.y - m} L ${c.x} ${c.y}`), s.x > c.x && (d = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", p = 20, m = 20, _ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + p} ${d} ${s.x - m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + p} ${s.y} ${f} ${c.x} ${s.y - m} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${f} ${c.x} ${s.y + m} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - p} ${d} ${s.x + m} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${d} ${c.x} ${s.y - m} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + p} ${f} ${s.x + m} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
588
+ } else u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, m = 20, J === "TB" ? (s.x < c.x && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + m} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, m = 20, _ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${d} ${s.x - m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${u} ${c.x} ${s.y + m} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : J === "BT" ? (s.x < c.x && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - m} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, m = 20, _ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${u} ${s.x - m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${d} ${c.x} ${s.y - m} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + m} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + m} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - m} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + m} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
589
589
  if (_ === void 0) throw Error("Line definition not found");
590
590
  e.append("path").attr("d", _).attr("class", "arrow arrow" + V(h, L, o));
591
- }, "drawArrow"), Ie = /* @__PURE__ */ n((e, t) => {
591
+ }, "drawArrow"), Ie = /* @__PURE__ */ a((e, t) => {
592
592
  let n = e.append("g").attr("class", "commit-arrows");
593
593
  [...t.keys()].forEach((e) => {
594
594
  let r = t.get(e);
@@ -596,50 +596,50 @@ var se = /* @__PURE__ */ n(function() {
596
596
  Fe(n, t.get(e), r, t);
597
597
  });
598
598
  });
599
- }, "drawArrows"), Le = /* @__PURE__ */ n((e, t, n, r) => {
600
- let { look: i, theme: a, themeVariables: o } = u(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = R.has(a == null ? "" : a), d = B.has(a == null ? "" : a), f = e.append("g");
599
+ }, "drawArrows"), Le = /* @__PURE__ */ a((e, t, n, r) => {
600
+ let { look: i, theme: a, themeVariables: o } = p(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = R.has(a == null ? "" : a), u = B.has(a == null ? "" : a), d = e.append("g");
601
601
  t.forEach((e, t) => {
602
602
  var a;
603
- let o = V(t, l ? c : L, d), u = (a = H.get(e.name)) == null ? void 0 : a.pos;
604
- if (u === void 0) throw Error(`Position not found for branch ${e.name}`);
605
- let p = J === "TB" || J === "BT" ? u : l ? u + z / 2 + 1 : u - 2, m = f.append("line");
606
- m.attr("x1", 0), m.attr("y1", p), m.attr("x2", q), m.attr("y2", p), m.attr("class", "branch branch" + o), J === "TB" ? (m.attr("y1", W), m.attr("x1", u), m.attr("y2", q), m.attr("x2", u)) : J === "BT" && (m.attr("y1", q), m.attr("x1", u), m.attr("y2", W), m.attr("x2", u)), K.push(p);
607
- let h = e.name, g = Y(h), _ = f.insert("rect"), v = f.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + o);
603
+ let o = V(t, l ? c : L, u), f = (a = H.get(e.name)) == null ? void 0 : a.pos;
604
+ if (f === void 0) throw Error(`Position not found for branch ${e.name}`);
605
+ let p = J === "TB" || J === "BT" ? f : l ? f + z / 2 + 1 : f - 2, m = d.append("line");
606
+ m.attr("x1", 0), m.attr("y1", p), m.attr("x2", q), m.attr("y2", p), m.attr("class", "branch branch" + o), J === "TB" ? (m.attr("y1", W), m.attr("x1", f), m.attr("y2", q), m.attr("x2", f)) : J === "BT" && (m.attr("y1", q), m.attr("x1", f), m.attr("y2", W), m.attr("x2", f)), K.push(p);
607
+ let h = e.name, g = Y(h), _ = d.insert("rect"), v = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + o);
608
608
  v.node().appendChild(g);
609
609
  let y = g.getBBox(), b = l ? 0 : 4, x = l ? 16 : 0, S = l ? z : 0;
610
- i === "neo" && _.attr("data-look", "neo"), _.attr("class", "branchLabelBkg label" + o).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", b).attr("ry", b).attr("x", -y.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -y.height / 2 + 10).attr("width", y.width + 18 + x).attr("height", y.height + 4 + S), v.attr("transform", "translate(" + (-y.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + x / 2) + ", " + (p - y.height / 2 - 2) + ")"), J === "TB" ? (_.attr("x", u - y.width / 2 - 10).attr("y", 0), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", 0)"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${-S - 10})`), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", " + (-S * 2 + 7) + ")"))) : J === "BT" ? (_.attr("x", u - y.width / 2 - 10).attr("y", q), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", " + q + ")"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${S + 10})`), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", " + (q + S * 2 + 4) + ")"))) : _.attr("transform", "translate(-19, " + (p - 12 - S / 2) + ")");
610
+ i === "neo" && _.attr("data-look", "neo"), _.attr("class", "branchLabelBkg label" + o).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", b).attr("ry", b).attr("x", -y.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -y.height / 2 + 10).attr("width", y.width + 18 + x).attr("height", y.height + 4 + S), v.attr("transform", "translate(" + (-y.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + x / 2) + ", " + (p - y.height / 2 - 2) + ")"), J === "TB" ? (_.attr("x", f - y.width / 2 - 10).attr("y", 0), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", 0)"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${-S - 10})`), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", " + (-S * 2 + 7) + ")"))) : J === "BT" ? (_.attr("x", f - y.width / 2 - 10).attr("y", q), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", " + q + ")"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${S + 10})`), v.attr("transform", "translate(" + (f - y.width / 2 - 5) + ", " + (q + S * 2 + 4) + ")"))) : _.attr("transform", "translate(-19, " + (p - 12 - S / 2) + ")");
611
611
  });
612
- }, "drawBranches"), Re = /* @__PURE__ */ n(function(e, t, n, r, i) {
612
+ }, "drawBranches"), Re = /* @__PURE__ */ a(function(e, t, n, r, i) {
613
613
  return H.set(e, {
614
614
  pos: t,
615
615
  index: n
616
616
  }), t += 50 + (i ? 40 : 0) + (J === "TB" || J === "BT" ? r.width / 2 : 0), t;
617
- }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ n(function(e, n, i, a) {
618
- var o, s;
619
- xe(), t.debug("in gitgraph renderer", e + "\n", "id:", n, i);
620
- let c = a.db;
621
- if (!c.getConfig) {
622
- t.error("getConfig method is not available on db");
617
+ }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ a(function(e, n, r, a) {
618
+ var s, c;
619
+ xe(), i.debug("in gitgraph renderer", e + "\n", "id:", n, r);
620
+ let l = a.db;
621
+ if (!l.getConfig) {
622
+ i.error("getConfig method is not available on db");
623
623
  return;
624
624
  }
625
- let l = c.getConfig(), d = (o = l.rotateCommitLabel) == null ? !1 : o;
626
- G = c.getCommits();
627
- let p = c.getBranchesAsObjArray();
628
- J = c.getDirection();
629
- let m = r(`[id="${n}"]`), { look: h, theme: _, themeVariables: v } = u(), { useGradient: y, gradientStart: b, gradientStop: x, filterColor: S } = v;
625
+ let u = l.getConfig(), d = (s = u.rotateCommitLabel) == null ? !1 : s;
626
+ G = l.getCommits();
627
+ let f = l.getBranchesAsObjArray();
628
+ J = l.getDirection();
629
+ let m = o(`[id="${n}"]`), { look: g, theme: _, themeVariables: v } = p(), { useGradient: y, gradientStart: b, gradientStop: x, filterColor: S } = v;
630
630
  if (y) {
631
631
  let e = m.append("defs").append("linearGradient").attr("id", n + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
632
632
  e.append("stop").attr("offset", "0%").attr("stop-color", b).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", x).attr("stop-opacity", 1);
633
633
  }
634
- h === "neo" && R.has(_ == null ? "" : _) && m.append("defs").append("filter").attr("id", n + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", S);
634
+ g === "neo" && R.has(_ == null ? "" : _) && m.append("defs").append("filter").attr("id", n + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", S);
635
635
  let C = 0;
636
- p.forEach((e, t) => {
636
+ f.forEach((e, t) => {
637
637
  var n;
638
638
  let r = Y(e.name), i = m.append("g"), a = i.insert("g").attr("class", "branchLabel"), o = a.insert("g").attr("class", "label branch-label");
639
639
  (n = o.node()) == null || n.appendChild(r);
640
640
  let s = r.getBBox();
641
641
  C = Re(e.name, C, t, s, d), o.remove(), a.remove(), i.remove();
642
- }), Z(m, G, !1, l), l.showBranches && Le(m, p, l, n), Ie(m, G), Z(m, G, !0, l), g.insertTitle(m, "gitTitleText", (s = l.titleTopMargin) == null ? 0 : s, c.getDiagramTitle()), f(void 0, m, l.diagramPadding, l.useMaxWidth);
642
+ }), Z(m, G, !1, u), u.showBranches && Le(m, f, u, n), Ie(m, G), Z(m, G, !0, u), t.insertTitle(m, "gitTitleText", (c = u.titleTopMargin) == null ? 0 : c, l.getDiagramTitle()), h(void 0, m, u.diagramPadding, u.useMaxWidth);
643
643
  }, "draw") }, $ = 8, Be = /* @__PURE__ */ new Set([
644
644
  "redux",
645
645
  "redux-dark",
@@ -657,14 +657,14 @@ var se = /* @__PURE__ */ n(function() {
657
657
  "redux-dark-color",
658
658
  "neo",
659
659
  "neo-dark"
660
- ]), Ge = /* @__PURE__ */ n((e) => {
660
+ ]), Ge = /* @__PURE__ */ a((e) => {
661
661
  let { svgId: t } = e, n = "";
662
662
  if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
663
663
  .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
664
664
  `;
665
665
  return n;
666
- }, "genGitGraphGradient"), Ke = /* @__PURE__ */ n((e) => {
667
- let { theme: t, themeVariables: n } = h(), { borderColorArray: r } = n, i = Be.has(t);
666
+ }, "genGitGraphGradient"), Ke = /* @__PURE__ */ a((e) => {
667
+ let { theme: t, themeVariables: n } = v(), { borderColorArray: r } = n, i = Be.has(t);
668
668
  if (He.has(t)) {
669
669
  let t = "";
670
670
  for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
@@ -719,7 +719,7 @@ var se = /* @__PURE__ */ n(function() {
719
719
  `;
720
720
  return t;
721
721
  }
722
- }, "genColor"), qe = /* @__PURE__ */ n((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
722
+ }, "genColor"), qe = /* @__PURE__ */ a((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
723
723
  let n = t % $;
724
724
  return `
725
725
  .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
@@ -732,9 +732,9 @@ var se = /* @__PURE__ */ n(function() {
732
732
  parser: ye,
733
733
  db: M,
734
734
  renderer: ze,
735
- styles: /* @__PURE__ */ n((e) => {
735
+ styles: /* @__PURE__ */ a((e) => {
736
736
  var t;
737
- let { theme: n } = h(), r = We.has(n);
737
+ let { theme: n } = v(), r = We.has(n);
738
738
  return `
739
739
  .commit-id,
740
740
  .commit-msg,