@foris/avocado-not-front 1.11.7-beta.4 → 1.12.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 (342) hide show
  1. package/dist/abap-Y8Dl9g_6-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW-vP6ak0IW.js +6 -0
  4. package/dist/andromeeda-BIpZ7gaU-BIpZ7gaU.js +4 -0
  5. package/dist/angular-html-DPB4Rf0C-1_1_4tyh.js +34 -0
  6. package/dist/angular-ts-CeqPwKaz-ohSx1G-R.js +24 -0
  7. package/dist/apache-BUjz-sD2-BUjz-sD2.js +6 -0
  8. package/dist/apex-oLhhs58q-oLhhs58q.js +6 -0
  9. package/dist/apl-Bfz1rp5e-DI6exAvT.js +17 -0
  10. package/dist/applescript-BPx7YFFu-BPx7YFFu.js +6 -0
  11. package/dist/ara-Z2fSOxSw-Z2fSOxSw.js +6 -0
  12. package/dist/arc-DHSZg76Q-C6o4oFmD.js +85 -0
  13. package/dist/architectureDiagram-VXUJARFQ-Cp8vugxX-9O3-degh.js +4672 -0
  14. package/dist/asciidoc-B-pCoB3G-B-pCoB3G.js +6 -0
  15. package/dist/asm-BTWLY5ym-BTWLY5ym.js +6 -0
  16. package/dist/astro-CFFExE8Q-D857V_mk.js +18 -0
  17. package/dist/aurora-x-BwoVEUWZ-BwoVEUWZ.js +4 -0
  18. package/dist/avocado-not-front.es.js +8 -2167
  19. package/dist/avocado-not-front.umd.js +4642 -3
  20. package/dist/awk-Fb0P9dkn-Fb0P9dkn.js +6 -0
  21. package/dist/ayu-dark-CxPZkpb2-CxPZkpb2.js +4 -0
  22. package/dist/ballerina-oZK-YekG-oZK-YekG.js +6 -0
  23. package/dist/bat-0FvbqU9S-0FvbqU9S.js +6 -0
  24. package/dist/beancount-DqJEb89h-DqJEb89h.js +6 -0
  25. package/dist/berry-DODBq_Ff-DODBq_Ff.js +6 -0
  26. package/dist/bibtex-EULQRLY5-EULQRLY5.js +6 -0
  27. package/dist/bicep-BorU73w0-BorU73w0.js +6 -0
  28. package/dist/blade-DRRSiTQz-DuQj1Sqy.js +21 -0
  29. package/dist/blockDiagram-VD42YOAC-B4cTulr6-CNlYtTjf.js +2407 -0
  30. package/dist/bsl-NkNNwerW-DeWv6DbE.js +8 -0
  31. package/dist/c-eeMepfLm-eeMepfLm.js +6 -0
  32. package/dist/c4Diagram-YG6GDRKO-B8--s8xx-CZw1PsLU.js +1585 -0
  33. package/dist/cadence-02UX7mW8-02UX7mW8.js +6 -0
  34. package/dist/cairo-DM6WF2e3-BLxuUSuB.js +8 -0
  35. package/dist/catppuccin-frappe-D3cH2rXe-D3cH2rXe.js +4 -0
  36. package/dist/catppuccin-latte-C0LRGUW4-C0LRGUW4.js +4 -0
  37. package/dist/catppuccin-macchiato-c5wQ11TT-c5wQ11TT.js +4 -0
  38. package/dist/catppuccin-mocha-WMD6Qvya-WMD6Qvya.js +4 -0
  39. package/dist/channel-Cqk_cOiy-72hMZ_v0.js +5 -0
  40. package/dist/chunk-4BX2VUAB-Cb-wAjVN-DlY_dtbp.js +9 -0
  41. package/dist/chunk-55IACEB6-QFXfbMHG-AnxyrPT-.js +8 -0
  42. package/dist/chunk-B4BG7PRW-CFs53zrP-DB12fnkn.js +1375 -0
  43. package/dist/chunk-DI55MBZ5-CKjAOeh7-D98MsfUL.js +1383 -0
  44. package/dist/chunk-FMBD7UC4-B29MtLTn-tjtGIWPm.js +19 -0
  45. package/dist/chunk-QN33PNHL-5bU-bM6A-vK9OZVa6.js +20 -0
  46. package/dist/chunk-QZHKN3VN-B_Q6cMrq-78n0e61s.js +15 -0
  47. package/dist/chunk-TZMSLE5B-DlULRafu-BlGLxuE_.js +64 -0
  48. package/dist/clarity-PKm5CwqM-PKm5CwqM.js +6 -0
  49. package/dist/classDiagram-2ON5EDUG-DJmXfcVi-CF8YlvOv.js +22 -0
  50. package/dist/classDiagram-v2-WZHVMYZB-DJmXfcVi-CF8YlvOv.js +22 -0
  51. package/dist/clojure-CXJfHrL3-CXJfHrL3.js +6 -0
  52. package/dist/cmake-BJz8BOTU-BJz8BOTU.js +6 -0
  53. package/dist/cobol-DYTFdEK1-1eoMdnt0.js +12 -0
  54. package/dist/code-block-QI2IAROF-C_F85uim-MNaL7yo9.js +2805 -0
  55. package/dist/codeowners-Bt9yU6NX-Bt9yU6NX.js +6 -0
  56. package/dist/codeql-DHkodjjI-DHkodjjI.js +6 -0
  57. package/dist/coffee-DGBR_nr_-Cu5d6u6p.js +8 -0
  58. package/dist/common-lisp-EVqT9Zhp-EVqT9Zhp.js +6 -0
  59. package/dist/coq-B0L9upzn-B0L9upzn.js +6 -0
  60. package/dist/cose-bilkent-S5V4N54A-N3jM_XQd-BbbJbKzj.js +2612 -0
  61. package/dist/cpp-ZFnOq6fV-CkUSzFY-.js +19 -0
  62. package/dist/crystal-CRJyc4G--B_7jzPPy.js +18 -0
  63. package/dist/csharp-C7yUs7-w-C7yUs7-w.js +6 -0
  64. package/dist/css-CECN5uSL-CECN5uSL.js +6 -0
  65. package/dist/csv-CmYOceLb-DlI6xKnA.js +6 -0
  66. package/dist/cue-ZzumE7IT-ZzumE7IT.js +6 -0
  67. package/dist/cypher-jpdmjtA6-jpdmjtA6.js +6 -0
  68. package/dist/cytoscape.esm-ClN43hhW-Dh4GqQxb.js +18836 -0
  69. package/dist/d-CBagWSwH-CBagWSwH.js +6 -0
  70. package/dist/dagre-6UL2VRFP-CJdrtgOu-CLaqjT6l.js +451 -0
  71. package/dist/dark-plus-pUHDTVV0-pUHDTVV0.js +4 -0
  72. package/dist/dart-6ObCrKr9-6ObCrKr9.js +6 -0
  73. package/dist/dax-CcDT-8dH-CcDT-8dH.js +6 -0
  74. package/dist/defaultLocale-DcQU6Vee-C62bXCQv.js +177 -0
  75. package/dist/desktop-B93p9R9O-B93p9R9O.js +6 -0
  76. package/dist/diagram-PSM6KHXK-DSaDqHvO-DVH1Sew6.js +544 -0
  77. package/dist/diagram-QEK2KX5R-BbxboH_--DYDmO4S1.js +224 -0
  78. package/dist/diagram-S2PKOQOG-DWsCb5He--yPVUK-A.js +146 -0
  79. package/dist/diff-BxzP2J8R-BxzP2J8R.js +6 -0
  80. package/dist/docker-CsHqm9tx-CsHqm9tx.js +6 -0
  81. package/dist/dotenv-BMjVjUL1-BMjVjUL1.js +6 -0
  82. package/dist/dracula-BtZx2Kac-BtZx2Kac.js +4 -0
  83. package/dist/dracula-soft-BKa-aqBv-BKa-aqBv.js +4 -0
  84. package/dist/dream-maker-PAx17jaB-PAx17jaB.js +6 -0
  85. package/dist/edge-B882-fmN-CXsL8OuZ.js +14 -0
  86. package/dist/elixir-DRzNHQCz-EnC5QsDh.js +10 -0
  87. package/dist/elm-DZPAA5Qn-BCPZo0aa.js +9 -0
  88. package/dist/emacs-lisp-Cfxdx5D--Cfxdx5D-.js +6 -0
  89. package/dist/erDiagram-Q2GNP2WA-Bl0uHx93-Cm6cgw10.js +844 -0
  90. package/dist/erb-DB1DqdBc-CnAEHkSC.js +27 -0
  91. package/dist/erlang-DNcDT8Hi-Cs3llSSi.js +8 -0
  92. package/dist/everforest-dark-DMCBqXCK-DMCBqXCK.js +4 -0
  93. package/dist/everforest-light-BbXl82Em-BbXl82Em.js +4 -0
  94. package/dist/fennel-N4WcXuKx-N4WcXuKx.js +6 -0
  95. package/dist/fish-BTDEUgqH-BTDEUgqH.js +6 -0
  96. package/dist/flowDiagram-NV44I4VS-Dq0mXT8f-BL0sk42H.js +1631 -0
  97. package/dist/fluent-BMXUxfv1-BMXUxfv1.js +6 -0
  98. package/dist/fortran-fixed-form-DUsA-VGo-CYX4aMfD.js +8 -0
  99. package/dist/fortran-free-form-DPIT_jbP-DPIT_jbP.js +6 -0
  100. package/dist/fsharp-CYOiIVNx-D3KYyprZ.js +8 -0
  101. package/dist/ganttDiagram-JELNMOA3-Dj1adndm-BODWVm5T.js +2702 -0
  102. package/dist/gdresource-BwtMIoBm-DVtwhfL2.js +10 -0
  103. package/dist/gdscript-BifyeYhI-BifyeYhI.js +6 -0
  104. package/dist/gdshader-Bk8fF6yr-Bk8fF6yr.js +6 -0
  105. package/dist/genie-DzUvd7U9-DzUvd7U9.js +6 -0
  106. package/dist/gherkin-DHRaV0YP-DHRaV0YP.js +6 -0
  107. package/dist/git-commit-Bd32YZ0K-D9qSjMiw.js +8 -0
  108. package/dist/git-rebase-ZWUFO_T4-uqUGWt5o.js +8 -0
  109. package/dist/gitGraphDiagram-NY62KEGX-DIFZugA1-BsIE257G.js +715 -0
  110. package/dist/github-dark-DenFmJkN-DenFmJkN.js +4 -0
  111. package/dist/github-dark-default-BJPUVz4H-BJPUVz4H.js +4 -0
  112. package/dist/github-dark-dimmed-DUshB20C-DUshB20C.js +4 -0
  113. package/dist/github-dark-high-contrast-D3aGCnF8-D3aGCnF8.js +4 -0
  114. package/dist/github-light-JYsPkUQd-JYsPkUQd.js +4 -0
  115. package/dist/github-light-default-D99KPAby-D99KPAby.js +4 -0
  116. package/dist/github-light-high-contrast-BbmZE-Mp-BbmZE-Mp.js +4 -0
  117. package/dist/gleam-Bv284lvN-Bv284lvN.js +6 -0
  118. package/dist/glimmer-js-DkxNrfPT-Dr8vv_dk.js +14 -0
  119. package/dist/glimmer-ts-D6YZEmK_-CeJS1lkt.js +14 -0
  120. package/dist/glsl-CkUcVZNK-D6P60Alb.js +8 -0
  121. package/dist/gnuplot-yPG9-sE_-yPG9-sE_.js +6 -0
  122. package/dist/go-ChxJuLYK-ChxJuLYK.js +6 -0
  123. package/dist/graph-DB2UxkYH-Bs-uwV4G.js +1190 -0
  124. package/dist/graphql-CBu2ehBn-B9KpeKh4.js +14 -0
  125. package/dist/groovy-CJQTphOW-CJQTphOW.js +6 -0
  126. package/dist/gruvbox-dark-hard-C5HOtKIh-C5HOtKIh.js +4 -0
  127. package/dist/gruvbox-dark-medium-FVgwJHuz-FVgwJHuz.js +4 -0
  128. package/dist/gruvbox-dark-soft-B46F314v-B46F314v.js +4 -0
  129. package/dist/gruvbox-light-hard-CJD38wDZ-CJD38wDZ.js +4 -0
  130. package/dist/gruvbox-light-medium-BlIhMYTA-BlIhMYTA.js +4 -0
  131. package/dist/gruvbox-light-soft-DoPHyLVZ-DoPHyLVZ.js +4 -0
  132. package/dist/hack-DVWgrvc2-CFszvyOs.js +12 -0
  133. package/dist/haml-NZLVzu_R-6sAynSNG.js +10 -0
  134. package/dist/handlebars-mxStpSE7-C1GOcwW1.js +14 -0
  135. package/dist/haskell-WeIwNIP6-WeIwNIP6.js +6 -0
  136. package/dist/haxe-TztHsm5T-TztHsm5T.js +6 -0
  137. package/dist/hcl-D438OF-I-D438OF-I.js +6 -0
  138. package/dist/hjson-DYBUbqOl-DYBUbqOl.js +6 -0
  139. package/dist/hlsl-Bk8TCZNL-Bk8TCZNL.js +6 -0
  140. package/dist/hooks/useAction.d.ts +3 -3
  141. package/dist/houston-BDYrDoDW-BDYrDoDW.js +4 -0
  142. package/dist/html-B50bmoVb-BJ3eCZKL.js +10 -0
  143. package/dist/html-derivative-ByyNxAP5-BxLhKRHw.js +10 -0
  144. package/dist/http-BVIWqb92-CjnDmEd8.js +19 -0
  145. package/dist/hurl-B8OTiYoQ-DoRwHSAy.js +17 -0
  146. package/dist/hxml-GbqSQCLa-BnvJylRx.js +8 -0
  147. package/dist/hy-Brt5EZ7--Brt5EZ7-.js +6 -0
  148. package/dist/imba-CimUv-Uh-CimUv-Uh.js +6 -0
  149. package/dist/infoDiagram-WHAUD3N6-DPjzRs82-ChgGSBbk.js +27 -0
  150. package/dist/ini-BZIuRIvJ-BZIuRIvJ.js +6 -0
  151. package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
  152. package/dist/java-DY6VlHhP-DY6VlHhP.js +6 -0
  153. package/dist/javascript-C25yR2R2-C25yR2R2.js +6 -0
  154. package/dist/jinja-CI-LSgSv-BEWEZ83m.js +13 -0
  155. package/dist/jison-DdreslRX-DzaoIrEq.js +8 -0
  156. package/dist/journeyDiagram-XKPGCS4Q-DLrlPVyq-DYzqQ6Qu.js +840 -0
  157. package/dist/json-DxJze_jm-DxJze_jm.js +6 -0
  158. package/dist/json5-BT4Fjg39-BT4Fjg39.js +6 -0
  159. package/dist/jsonc-CHjZD8gR-CHjZD8gR.js +6 -0
  160. package/dist/jsonl-BGuvDmy9-BGuvDmy9.js +6 -0
  161. package/dist/jsonnet-Bx2cfsXg-Bx2cfsXg.js +6 -0
  162. package/dist/jssm-BcADi6EI-BcADi6EI.js +6 -0
  163. package/dist/jsx-BtKADgXT-BtKADgXT.js +6 -0
  164. package/dist/julia-ll8P6QXy-CifMye9u.js +19 -0
  165. package/dist/kanagawa-dragon-CiKur4Hl-CiKur4Hl.js +4 -0
  166. package/dist/kanagawa-lotus-BKu-smKu-BKu-smKu.js +4 -0
  167. package/dist/kanagawa-wave-CQwozSzG-CQwozSzG.js +4 -0
  168. package/dist/kanban-definition-3W4ZIXB7-BTI5yGHx-Bz8MmnxI.js +724 -0
  169. package/dist/katex.min-l0sNRNKZ-l0sNRNKZ.js +1 -0
  170. package/dist/kdl-BNOv9TC3-0Q4F1UAs.js +6 -0
  171. package/dist/kotlin-ByBMgTeR-ByBMgTeR.js +6 -0
  172. package/dist/kusto-VWFLl2T0-VWFLl2T0.js +6 -0
  173. package/dist/laserwave-6a00oqik-6a00oqik.js +4 -0
  174. package/dist/latex-DF20280u-RMy1LUrW.js +9 -0
  175. package/dist/layout-Q6wQN5dr-BC95Y2G0.js +1727 -0
  176. package/dist/lean-D5yRrexI-D5yRrexI.js +6 -0
  177. package/dist/less-B1GLI2Di-B1GLI2Di.js +6 -0
  178. package/dist/light-plus-CZuVqSLX-CZuVqSLX.js +4 -0
  179. package/dist/linear-UL3ZZUJv-CWZvrkAD.js +277 -0
  180. package/dist/liquid-CHzkx3jT-G75tv0iE.js +14 -0
  181. package/dist/llvm-co1rIKs3-co1rIKs3.js +6 -0
  182. package/dist/log-Al8wyEFV-Al8wyEFV.js +6 -0
  183. package/dist/logo-DBa4JDzV-DBa4JDzV.js +6 -0
  184. package/dist/lua-kX5WP_P5-DxLUTRud.js +8 -0
  185. package/dist/luau-DtBSxLyz-DtBSxLyz.js +6 -0
  186. package/dist/make-CsMclxtr-CsMclxtr.js +6 -0
  187. package/dist/markdown-CrScaQ96-CrScaQ96.js +6 -0
  188. package/dist/marko-ls0Jg2j8-BHrfxEh0.js +14 -0
  189. package/dist/material-theme-D6KBX41T-D6KBX41T.js +4 -0
  190. package/dist/material-theme-darker-CkRroheE-CkRroheE.js +4 -0
  191. package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
  192. package/dist/material-theme-ocean-ClGX14Ja-ClGX14Ja.js +4 -0
  193. package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
  194. package/dist/matlab-BOAaUVP0-BOAaUVP0.js +6 -0
  195. package/dist/mdc-DIP5_jeM-Cff0amyo.js +15 -0
  196. package/dist/mdx-BOhZZUJ8-BOhZZUJ8.js +6 -0
  197. package/dist/mermaid-B0ixDHKN-B0ixDHKN.js +6 -0
  198. package/dist/mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js +140994 -0
  199. package/dist/mermaid.core-Cpfp0NBU-DQS-fLaZ.js +14401 -0
  200. package/dist/min-dark-C7ak0t6c-C7ak0t6c.js +4 -0
  201. package/dist/min-light-CKFxVcPp-CKFxVcPp.js +4 -0
  202. package/dist/mindmap-definition-VGOIOE7T-B6ovfeib-CXlRkpn9.js +790 -0
  203. package/dist/mipsasm-CTx18fBl-CTx18fBl.js +6 -0
  204. package/dist/mojo-BD611d7o-BD611d7o.js +6 -0
  205. package/dist/monokai-C1KBYcO0-C1KBYcO0.js +4 -0
  206. package/dist/move-F-dICmj2-F-dICmj2.js +6 -0
  207. package/dist/narrat-DmhDCBs--DmhDCBs-.js +6 -0
  208. package/dist/nextflow-DmSVRGjG-DmSVRGjG.js +6 -0
  209. package/dist/nginx-COxS3qoU-CvZmIOfz.js +9 -0
  210. package/dist/night-owl-Bm2rzalh-Bm2rzalh.js +4 -0
  211. package/dist/nim-CCwXZLHG-CVhjPGL5.js +21 -0
  212. package/dist/nix-BZK5F767-BZK5F767.js +9 -0
  213. package/dist/nord-CC5OiUXg-CC5OiUXg.js +4 -0
  214. package/dist/nushell-D8j3dhT--D8j3dhT-.js +6 -0
  215. package/dist/objective-c-Itk8tzmv-Itk8tzmv.js +6 -0
  216. package/dist/objective-cpp-DGt5UKRO-DGt5UKRO.js +6 -0
  217. package/dist/ocaml-eSVK32Eg-eSVK32Eg.js +6 -0
  218. package/dist/one-dark-pro-DTA3VF0_-DTA3VF0_.js +4 -0
  219. package/dist/one-light-D9sNaUtq-D9sNaUtq.js +4 -0
  220. package/dist/openscad-Sp5uZ6f2-Sp5uZ6f2.js +6 -0
  221. package/dist/ordinal-MUacOSdK-B1MUT0BL.js +65 -0
  222. package/dist/pascal-xy8pJNns-xy8pJNns.js +6 -0
  223. package/dist/perl-NvKK8p2P-DbsmNmLT.js +17 -0
  224. package/dist/php-CK5hNnT0-DEpqLZ_n.js +19 -0
  225. package/dist/pieDiagram-ADFJNKIX-Bn24elWA-iGwy_4tX.js +166 -0
  226. package/dist/pkl-C-zSNmaA-C-zSNmaA.js +6 -0
  227. package/dist/plastic-CSTz3KZp-CSTz3KZp.js +4 -0
  228. package/dist/plsql-pVbGZfOv-pVbGZfOv.js +6 -0
  229. package/dist/po-BNfHvqmm-BNfHvqmm.js +6 -0
  230. package/dist/poimandres-C-VADXHD-C-VADXHD.js +4 -0
  231. package/dist/polar-CAZahv3u-CAZahv3u.js +6 -0
  232. package/dist/postcss-05aHdL-n-05aHdL-n.js +6 -0
  233. package/dist/powerquery-DI9HkTvs-DI9HkTvs.js +6 -0
  234. package/dist/powershell-Clc4ydu--Clc4ydu-.js +6 -0
  235. package/dist/prisma-FZjmVtSl-FZjmVtSl.js +6 -0
  236. package/dist/prolog-C5-yg4TO-C5-yg4TO.js +6 -0
  237. package/dist/proto-MmCPeFAD-MmCPeFAD.js +6 -0
  238. package/dist/pug-XOw9Q1Ho-BO4tUzTj.js +12 -0
  239. package/dist/puppet-CUJHmnxV-CUJHmnxV.js +6 -0
  240. package/dist/purescript-rUfGld-4-rUfGld-4.js +6 -0
  241. package/dist/python-BFNSHbwJ-BFNSHbwJ.js +6 -0
  242. package/dist/qml-rTNXsquU-DeTe0b4l.js +8 -0
  243. package/dist/qmldir-BInDYbpo-BInDYbpo.js +6 -0
  244. package/dist/qss-AeJTysr_-AeJTysr_.js +6 -0
  245. package/dist/quadrantDiagram-AYHSOK5B-CsbmyLll-CFP8fgtI.js +1030 -0
  246. package/dist/r-Bm0uF0U2-Bm0uF0U2.js +6 -0
  247. package/dist/racket-B83wSAja-B83wSAja.js +6 -0
  248. package/dist/raku-nEQ4ZJJ7-nEQ4ZJJ7.js +6 -0
  249. package/dist/razor-CoqPuKQU-DUBs-Qe6.js +12 -0
  250. package/dist/red-7y8PH7HH-7y8PH7HH.js +4 -0
  251. package/dist/reg-m_s_Kiip-m_s_Kiip.js +6 -0
  252. package/dist/regexp-BazyLpPg-BazyLpPg.js +6 -0
  253. package/dist/rel-BcRfyd6Q-BcRfyd6Q.js +6 -0
  254. package/dist/requirementDiagram-UZGBJVZJ--9rfbKaz-CC8EZoyz.js +854 -0
  255. package/dist/riscv-Ce8MAQLP-Ce8MAQLP.js +6 -0
  256. package/dist/rose-pine-BKc3yVeu-BKc3yVeu.js +4 -0
  257. package/dist/rose-pine-dawn-BulJcPZT-BulJcPZT.js +4 -0
  258. package/dist/rose-pine-moon-j6jiXKV8-j6jiXKV8.js +4 -0
  259. package/dist/rosmsg-Cz0w1km8-Cz0w1km8.js +6 -0
  260. package/dist/rst-AoEjemIj-Dr7TcJwd.js +36 -0
  261. package/dist/ruby-CGSl8JoB-D4hDjzwe.js +36 -0
  262. package/dist/rust-CLzF9zIN-CLzF9zIN.js +6 -0
  263. package/dist/sankeyDiagram-TZEHDZUN-Cp2id-3k-DhByp8vU.js +830 -0
  264. package/dist/sas-fpEvgATw-D9dNv8Ej.js +8 -0
  265. package/dist/sass-DxHp5rTx-DxHp5rTx.js +6 -0
  266. package/dist/scala-D4grkFkl-D4grkFkl.js +6 -0
  267. package/dist/scheme-BCRWuEm4-BCRWuEm4.js +6 -0
  268. package/dist/scss-B1FaCqwR-DbNEJJFR.js +8 -0
  269. package/dist/sdbl-B7T8abf4-B7T8abf4.js +6 -0
  270. package/dist/sequenceDiagram-WL72ISMW-Bdoz1Co7-DcFuWrLs.js +2526 -0
  271. package/dist/services/axios/useFetchAndLoad.d.ts +1 -1
  272. package/dist/shaderlab-Cr62-Wb4-D_jbKjpl.js +8 -0
  273. package/dist/shellscript-InADTalH-InADTalH.js +6 -0
  274. package/dist/shellsession-DiDJNQdy-BGvYrs9g.js +8 -0
  275. package/dist/slack-dark-i7wN4OET-i7wN4OET.js +4 -0
  276. package/dist/slack-ochin-ndHf0LoP-ndHf0LoP.js +4 -0
  277. package/dist/smalltalk-BlI1_OkM-BlI1_OkM.js +6 -0
  278. package/dist/snazzy-light-BlSJXAu4-BlSJXAu4.js +4 -0
  279. package/dist/solarized-dark-UTmkh7lw-UTmkh7lw.js +4 -0
  280. package/dist/solarized-light-BheCkDPT-BheCkDPT.js +4 -0
  281. package/dist/solidity-DUWnFhS6-DUWnFhS6.js +6 -0
  282. package/dist/soy-YPoZ1G2p-C1q7UQeu.js +10 -0
  283. package/dist/sparql-B0KWFEri-CqC-y0Su.js +8 -0
  284. package/dist/splunk-CRXR8A9s-CRXR8A9s.js +6 -0
  285. package/dist/sql-Cn_v3PB0-Cn_v3PB0.js +6 -0
  286. package/dist/ssh-config-DP-hNVbF-DP-hNVbF.js +6 -0
  287. package/dist/stata-B8c5fTjX-Bf3brRPV.js +8 -0
  288. package/dist/stateDiagram-FKZM4ZOC-BLHxjrc8-FBnBvaVW.js +268 -0
  289. package/dist/stateDiagram-v2-4FDKWEC3-CbxCwS8b-B_Pfgmu4.js +21 -0
  290. package/dist/style.css +1 -1
  291. package/dist/stylus-CyKEU1Ej-CyKEU1Ej.js +6 -0
  292. package/dist/svelte-5UasyOg7-e8KUCojE.js +14 -0
  293. package/dist/swift-9UzSvamq-9UzSvamq.js +6 -0
  294. package/dist/synthwave-84-NU3C_KFZ-NU3C_KFZ.js +4 -0
  295. package/dist/system-verilog-BCm7smPJ-BCm7smPJ.js +6 -0
  296. package/dist/systemd-C-4qm6XH-C-4qm6XH.js +6 -0
  297. package/dist/talonscript-CFF3LF_O-CvtCkGGO.js +6 -0
  298. package/dist/tasl-Cg_WBUAe-Cg_WBUAe.js +6 -0
  299. package/dist/tcl-DN7buRTF-DN7buRTF.js +6 -0
  300. package/dist/templ-peLZIM2D-DkTUdVi-.js +12 -0
  301. package/dist/terraform-DGvcn9zM-DGvcn9zM.js +6 -0
  302. package/dist/tex-DpOayVob-BjP51rYh.js +8 -0
  303. package/dist/timeline-definition-IT6M3QCI-s3Wsbz6h-DfdfMl2Q.js +805 -0
  304. package/dist/tokyo-night-DP4TmcQl-DP4TmcQl.js +4 -0
  305. package/dist/toml-DY62mUL_-DY62mUL_.js +6 -0
  306. package/dist/treemap-KMMF4GRG-D_L55G0b-CANAYd5X.js +15006 -0
  307. package/dist/ts-tags-CWmBp2js-DrKIoTCJ.js +43 -0
  308. package/dist/tsv-BtvSkaG0-BtvSkaG0.js +6 -0
  309. package/dist/tsx-B8rCNbgL-B8rCNbgL.js +6 -0
  310. package/dist/turtle-_H59FV7D-_H59FV7D.js +6 -0
  311. package/dist/twig-Cpoho6oi-CQE9XWXP.js +35 -0
  312. package/dist/typescript-RycA9KXf-RycA9KXf.js +6 -0
  313. package/dist/typespec-DWqp-kUU-DWqp-kUU.js +6 -0
  314. package/dist/typst-D_1QKWns-D_1QKWns.js +6 -0
  315. package/dist/v-BPCNiyYe-BPCNiyYe.js +6 -0
  316. package/dist/vala-uxaPR7d1-uxaPR7d1.js +6 -0
  317. package/dist/vb-D8_c5-KN-D8_c5-KN.js +6 -0
  318. package/dist/verilog-B-bybjPF-B-bybjPF.js +6 -0
  319. package/dist/vesper-BckBta1U-BckBta1U.js +4 -0
  320. package/dist/vhdl-CUlNa8ac-CUlNa8ac.js +6 -0
  321. package/dist/viml-DsfA-sWm-DsfA-sWm.js +6 -0
  322. package/dist/vitesse-black-BoGvW84i-BoGvW84i.js +4 -0
  323. package/dist/vitesse-dark-Cym-eLtO-Cym-eLtO.js +4 -0
  324. package/dist/vitesse-light-CcmG315c-CcmG315c.js +4 -0
  325. package/dist/vue-DmFKWfEU-DXvRBLDJ.js +31 -0
  326. package/dist/vue-html-BB2aI7Yc-e0S8MQFq.js +15 -0
  327. package/dist/vue-vine-CznNap4x-DAbzn77p.js +24 -0
  328. package/dist/vyper-CPQuu50u-CPQuu50u.js +6 -0
  329. package/dist/wasm-BBXxrAl7-BBXxrAl7.js +6 -0
  330. package/dist/wasm-DQxwEHae-DQxwEHae.js +7 -0
  331. package/dist/wenyan-pbVjoM9_-pbVjoM9_.js +6 -0
  332. package/dist/wgsl-DY4iK1q1-DY4iK1q1.js +6 -0
  333. package/dist/wikitext-Z-MoUasO-Z-MoUasO.js +6 -0
  334. package/dist/wit-CQMQOlTg-CQMQOlTg.js +6 -0
  335. package/dist/wolfram-Dz4KXISs-Dz4KXISs.js +6 -0
  336. package/dist/xml-C2J0sS9M-IZlib8U3.js +8 -0
  337. package/dist/xsl-CbTBIiv3-CgleMmCH.js +9 -0
  338. package/dist/xychartDiagram-PRI3JC2R-D3ejwy7u-CFsnZXTL.js +1345 -0
  339. package/dist/yaml-DaO7k5B1-DaO7k5B1.js +6 -0
  340. package/dist/zenscript-CxBjpf9c-CxBjpf9c.js +6 -0
  341. package/dist/zig-Vm0PO9wB-Vm0PO9wB.js +6 -0
  342. package/package.json +25 -42
@@ -0,0 +1,715 @@
1
+ import { m as Q } from "./chunk-4BX2VUAB-Cb-wAjVN-DlY_dtbp.js";
2
+ import { e as X } from "./chunk-QZHKN3VN-B_Q6cMrq-78n0e61s.js";
3
+ import { E as Z, _ as m, d as rr, F as tr, G as er, H as or, l as w, s as nr, g as cr, b as ar, c as ir, o as sr, p as dr, e as C, v as hr, j as $r, u as mr, I as lr } from "./mermaid.core-Cpfp0NBU-DQS-fLaZ.js";
4
+ import { a as gr } from "./treemap-KMMF4GRG-D_L55G0b-CANAYd5X.js";
5
+ import "./mermaid-NA5CF7SZ-BDJrKfjz-Cq0tva8U.js";
6
+ import "react";
7
+ import "react-dom";
8
+ var u = {
9
+ NORMAL: 0,
10
+ REVERSE: 1,
11
+ HIGHLIGHT: 2,
12
+ MERGE: 3,
13
+ CHERRY_PICK: 4
14
+ }, yr = Z.gitGraph, O = /* @__PURE__ */ m(() => tr({
15
+ ...yr,
16
+ ...er().gitGraph
17
+ }), "getConfig"), s = new X(() => {
18
+ const t = O(), r = t.mainBranchName, e = t.mainBranchOrder;
19
+ return {
20
+ mainBranchName: r,
21
+ commits: /* @__PURE__ */ new Map(),
22
+ head: null,
23
+ branchConfig: /* @__PURE__ */ new Map([[r, { name: r, order: e }]]),
24
+ branches: /* @__PURE__ */ new Map([[r, null]]),
25
+ currBranch: r,
26
+ direction: "LR",
27
+ seq: 0,
28
+ options: {}
29
+ };
30
+ });
31
+ function D() {
32
+ return or({ length: 7 });
33
+ }
34
+ m(D, "getID");
35
+ function F(t, r) {
36
+ const e = /* @__PURE__ */ Object.create(null);
37
+ return t.reduce((c, a) => {
38
+ const i = r(a);
39
+ return e[i] || (e[i] = !0, c.push(a)), c;
40
+ }, []);
41
+ }
42
+ m(F, "uniqBy");
43
+ var pr = /* @__PURE__ */ m(function(t) {
44
+ s.records.direction = t;
45
+ }, "setDirection"), xr = /* @__PURE__ */ m(function(t) {
46
+ w.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}";
47
+ try {
48
+ s.records.options = JSON.parse(t);
49
+ } catch (r) {
50
+ w.error("error while parsing gitGraph options", r.message);
51
+ }
52
+ }, "setOptions"), fr = /* @__PURE__ */ m(function() {
53
+ return s.records.options;
54
+ }, "getOptions"), ur = /* @__PURE__ */ m(function(t) {
55
+ let r = t.msg, e = t.id;
56
+ const c = t.type;
57
+ let a = t.tags;
58
+ w.info("commit", r, e, c, a), w.debug("Entering commit:", r, e, c, a);
59
+ const i = O();
60
+ e = C.sanitizeText(e, i), r = C.sanitizeText(r, i), a = a == null ? void 0 : a.map((h) => C.sanitizeText(h, i));
61
+ const d = {
62
+ id: e || s.records.seq + "-" + D(),
63
+ message: r,
64
+ seq: s.records.seq++,
65
+ type: c ?? u.NORMAL,
66
+ tags: a ?? [],
67
+ parents: s.records.head == null ? [] : [s.records.head.id],
68
+ branch: s.records.currBranch
69
+ };
70
+ s.records.head = d, w.info("main branch", i.mainBranchName), s.records.commits.has(d.id) && w.warn(`Commit ID ${d.id} already exists`), s.records.commits.set(d.id, d), s.records.branches.set(s.records.currBranch, d.id), w.debug("in pushCommit " + d.id);
71
+ }, "commit"), br = /* @__PURE__ */ m(function(t) {
72
+ let r = t.name;
73
+ const e = t.order;
74
+ if (r = C.sanitizeText(r, O()), s.records.branches.has(r))
75
+ throw new Error(
76
+ `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`
77
+ );
78
+ s.records.branches.set(r, s.records.head != null ? s.records.head.id : null), s.records.branchConfig.set(r, { name: r, order: e }), K(r), w.debug("in createBranch");
79
+ }, "branch"), wr = /* @__PURE__ */ m((t) => {
80
+ let r = t.branch, e = t.id;
81
+ const c = t.type, a = t.tags, i = O();
82
+ r = C.sanitizeText(r, i), e && (e = C.sanitizeText(e, i));
83
+ const d = s.records.branches.get(s.records.currBranch), h = s.records.branches.get(r), l = d ? s.records.commits.get(d) : void 0, o = h ? s.records.commits.get(h) : void 0;
84
+ if (l && o && l.branch === r)
85
+ throw new Error(`Cannot merge branch '${r}' into itself.`);
86
+ if (s.records.currBranch === r) {
87
+ const $ = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
88
+ throw $.hash = {
89
+ text: `merge ${r}`,
90
+ token: `merge ${r}`,
91
+ expected: ["branch abc"]
92
+ }, $;
93
+ }
94
+ if (l === void 0 || !l) {
95
+ const $ = new Error(
96
+ `Incorrect usage of "merge". Current branch (${s.records.currBranch})has no commits`
97
+ );
98
+ throw $.hash = {
99
+ text: `merge ${r}`,
100
+ token: `merge ${r}`,
101
+ expected: ["commit"]
102
+ }, $;
103
+ }
104
+ if (!s.records.branches.has(r)) {
105
+ const $ = new Error(
106
+ 'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
107
+ );
108
+ throw $.hash = {
109
+ text: `merge ${r}`,
110
+ token: `merge ${r}`,
111
+ expected: [`branch ${r}`]
112
+ }, $;
113
+ }
114
+ if (o === void 0 || !o) {
115
+ const $ = new Error(
116
+ 'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
117
+ );
118
+ throw $.hash = {
119
+ text: `merge ${r}`,
120
+ token: `merge ${r}`,
121
+ expected: ['"commit"']
122
+ }, $;
123
+ }
124
+ if (l === o) {
125
+ const $ = new Error('Incorrect usage of "merge". Both branches have same head');
126
+ throw $.hash = {
127
+ text: `merge ${r}`,
128
+ token: `merge ${r}`,
129
+ expected: ["branch abc"]
130
+ }, $;
131
+ }
132
+ if (e && s.records.commits.has(e)) {
133
+ const $ = new Error(
134
+ 'Incorrect usage of "merge". Commit with id:' + e + " already exists, use different custom id"
135
+ );
136
+ throw $.hash = {
137
+ text: `merge ${r} ${e} ${c} ${a == null ? void 0 : a.join(" ")}`,
138
+ token: `merge ${r} ${e} ${c} ${a == null ? void 0 : a.join(" ")}`,
139
+ expected: [
140
+ `merge ${r} ${e}_UNIQUE ${c} ${a == null ? void 0 : a.join(" ")}`
141
+ ]
142
+ }, $;
143
+ }
144
+ const n = h || "", f = {
145
+ id: e || `${s.records.seq}-${D()}`,
146
+ message: `merged branch ${r} into ${s.records.currBranch}`,
147
+ seq: s.records.seq++,
148
+ parents: s.records.head == null ? [] : [s.records.head.id, n],
149
+ branch: s.records.currBranch,
150
+ type: u.MERGE,
151
+ customType: c,
152
+ customId: !!e,
153
+ tags: a ?? []
154
+ };
155
+ s.records.head = f, s.records.commits.set(f.id, f), s.records.branches.set(s.records.currBranch, f.id), w.debug(s.records.branches), w.debug("in mergeBranch");
156
+ }, "merge"), Br = /* @__PURE__ */ m(function(t) {
157
+ let r = t.id, e = t.targetId, c = t.tags, a = t.parent;
158
+ w.debug("Entering cherryPick:", r, e, c);
159
+ const i = O();
160
+ if (r = C.sanitizeText(r, i), e = C.sanitizeText(e, i), c = c == null ? void 0 : c.map((l) => C.sanitizeText(l, i)), a = C.sanitizeText(a, i), !r || !s.records.commits.has(r)) {
161
+ const l = new Error(
162
+ 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
163
+ );
164
+ throw l.hash = {
165
+ text: `cherryPick ${r} ${e}`,
166
+ token: `cherryPick ${r} ${e}`,
167
+ expected: ["cherry-pick abc"]
168
+ }, l;
169
+ }
170
+ const d = s.records.commits.get(r);
171
+ if (d === void 0 || !d)
172
+ throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
173
+ if (a && !(Array.isArray(d.parents) && d.parents.includes(a)))
174
+ throw new Error(
175
+ "Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
176
+ );
177
+ const h = d.branch;
178
+ if (d.type === u.MERGE && !a)
179
+ throw new Error(
180
+ "Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
181
+ );
182
+ if (!e || !s.records.commits.has(e)) {
183
+ if (h === s.records.currBranch) {
184
+ const f = new Error(
185
+ 'Incorrect usage of "cherryPick". Source commit is already on current branch'
186
+ );
187
+ throw f.hash = {
188
+ text: `cherryPick ${r} ${e}`,
189
+ token: `cherryPick ${r} ${e}`,
190
+ expected: ["cherry-pick abc"]
191
+ }, f;
192
+ }
193
+ const l = s.records.branches.get(s.records.currBranch);
194
+ if (l === void 0 || !l) {
195
+ const f = new Error(
196
+ `Incorrect usage of "cherry-pick". Current branch (${s.records.currBranch})has no commits`
197
+ );
198
+ throw f.hash = {
199
+ text: `cherryPick ${r} ${e}`,
200
+ token: `cherryPick ${r} ${e}`,
201
+ expected: ["cherry-pick abc"]
202
+ }, f;
203
+ }
204
+ const o = s.records.commits.get(l);
205
+ if (o === void 0 || !o) {
206
+ const f = new Error(
207
+ `Incorrect usage of "cherry-pick". Current branch (${s.records.currBranch})has no commits`
208
+ );
209
+ throw f.hash = {
210
+ text: `cherryPick ${r} ${e}`,
211
+ token: `cherryPick ${r} ${e}`,
212
+ expected: ["cherry-pick abc"]
213
+ }, f;
214
+ }
215
+ const n = {
216
+ id: s.records.seq + "-" + D(),
217
+ message: `cherry-picked ${d == null ? void 0 : d.message} into ${s.records.currBranch}`,
218
+ seq: s.records.seq++,
219
+ parents: s.records.head == null ? [] : [s.records.head.id, d.id],
220
+ branch: s.records.currBranch,
221
+ type: u.CHERRY_PICK,
222
+ tags: c ? c.filter(Boolean) : [
223
+ `cherry-pick:${d.id}${d.type === u.MERGE ? `|parent:${a}` : ""}`
224
+ ]
225
+ };
226
+ s.records.head = n, s.records.commits.set(n.id, n), s.records.branches.set(s.records.currBranch, n.id), w.debug(s.records.branches), w.debug("in cherryPick");
227
+ }
228
+ }, "cherryPick"), K = /* @__PURE__ */ m(function(t) {
229
+ if (t = C.sanitizeText(t, O()), s.records.branches.has(t)) {
230
+ s.records.currBranch = t;
231
+ const r = s.records.branches.get(s.records.currBranch);
232
+ r === void 0 || !r ? s.records.head = null : s.records.head = s.records.commits.get(r) ?? null;
233
+ } else {
234
+ const r = new Error(
235
+ `Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`
236
+ );
237
+ throw r.hash = {
238
+ text: `checkout ${t}`,
239
+ token: `checkout ${t}`,
240
+ expected: [`branch ${t}`]
241
+ }, r;
242
+ }
243
+ }, "checkout");
244
+ function N(t, r, e) {
245
+ const c = t.indexOf(r);
246
+ c === -1 ? t.push(e) : t.splice(c, 1, e);
247
+ }
248
+ m(N, "upsert");
249
+ function W(t) {
250
+ const r = t.reduce((a, i) => a.seq > i.seq ? a : i, t[0]);
251
+ let e = "";
252
+ t.forEach(function(a) {
253
+ a === r ? e += " *" : e += " |";
254
+ });
255
+ const c = [e, r.id, r.seq];
256
+ for (const a in s.records.branches)
257
+ s.records.branches.get(a) === r.id && c.push(a);
258
+ if (w.debug(c.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
259
+ const a = s.records.commits.get(r.parents[0]);
260
+ N(t, r, a), r.parents[1] && t.push(s.records.commits.get(r.parents[1]));
261
+ } else {
262
+ if (r.parents.length == 0)
263
+ return;
264
+ if (r.parents[0]) {
265
+ const a = s.records.commits.get(r.parents[0]);
266
+ N(t, r, a);
267
+ }
268
+ }
269
+ t = F(t, (a) => a.id), W(t);
270
+ }
271
+ m(W, "prettyPrintCommitHistory");
272
+ var vr = /* @__PURE__ */ m(function() {
273
+ w.debug(s.records.commits);
274
+ const t = Y()[0];
275
+ W([t]);
276
+ }, "prettyPrint"), Er = /* @__PURE__ */ m(function() {
277
+ s.reset(), hr();
278
+ }, "clear"), kr = /* @__PURE__ */ m(function() {
279
+ return [...s.records.branchConfig.values()].map((t, r) => t.order !== null && t.order !== void 0 ? t : {
280
+ ...t,
281
+ order: parseFloat(`0.${r}`)
282
+ }).sort((t, r) => (t.order ?? 0) - (r.order ?? 0)).map(({ name: t }) => ({ name: t }));
283
+ }, "getBranchesAsObjArray"), Cr = /* @__PURE__ */ m(function() {
284
+ return s.records.branches;
285
+ }, "getBranches"), Lr = /* @__PURE__ */ m(function() {
286
+ return s.records.commits;
287
+ }, "getCommits"), Y = /* @__PURE__ */ m(function() {
288
+ const t = [...s.records.commits.values()];
289
+ return t.forEach(function(r) {
290
+ w.debug(r.id);
291
+ }), t.sort((r, e) => r.seq - e.seq), t;
292
+ }, "getCommitsArray"), Tr = /* @__PURE__ */ m(function() {
293
+ return s.records.currBranch;
294
+ }, "getCurrentBranch"), Mr = /* @__PURE__ */ m(function() {
295
+ return s.records.direction;
296
+ }, "getDirection"), Pr = /* @__PURE__ */ m(function() {
297
+ return s.records.head;
298
+ }, "getHead"), V = {
299
+ commitType: u,
300
+ getConfig: O,
301
+ setDirection: pr,
302
+ setOptions: xr,
303
+ getOptions: fr,
304
+ commit: ur,
305
+ branch: br,
306
+ merge: wr,
307
+ cherryPick: Br,
308
+ checkout: K,
309
+ //reset,
310
+ prettyPrint: vr,
311
+ clear: Er,
312
+ getBranchesAsObjArray: kr,
313
+ getBranches: Cr,
314
+ getCommits: Lr,
315
+ getCommitsArray: Y,
316
+ getCurrentBranch: Tr,
317
+ getDirection: Mr,
318
+ getHead: Pr,
319
+ setAccTitle: nr,
320
+ getAccTitle: cr,
321
+ getAccDescription: ar,
322
+ setAccDescription: ir,
323
+ setDiagramTitle: sr,
324
+ getDiagramTitle: dr
325
+ }, Rr = /* @__PURE__ */ m((t, r) => {
326
+ Q(t, r), t.dir && r.setDirection(t.dir);
327
+ for (const e of t.statements)
328
+ Ir(e, r);
329
+ }, "populate"), Ir = /* @__PURE__ */ m((t, r) => {
330
+ const e = {
331
+ Commit: /* @__PURE__ */ m((c) => r.commit(Ar(c)), "Commit"),
332
+ Branch: /* @__PURE__ */ m((c) => r.branch(Gr(c)), "Branch"),
333
+ Merge: /* @__PURE__ */ m((c) => r.merge(Or(c)), "Merge"),
334
+ Checkout: /* @__PURE__ */ m((c) => r.checkout(qr(c)), "Checkout"),
335
+ CherryPicking: /* @__PURE__ */ m((c) => r.cherryPick(Hr(c)), "CherryPicking")
336
+ }[t.$type];
337
+ e ? e(t) : w.error(`Unknown statement type: ${t.$type}`);
338
+ }, "parseStatement"), Ar = /* @__PURE__ */ m((t) => ({
339
+ id: t.id,
340
+ msg: t.message ?? "",
341
+ type: t.type !== void 0 ? u[t.type] : u.NORMAL,
342
+ tags: t.tags ?? void 0
343
+ }), "parseCommit"), Gr = /* @__PURE__ */ m((t) => ({
344
+ name: t.name,
345
+ order: t.order ?? 0
346
+ }), "parseBranch"), Or = /* @__PURE__ */ m((t) => ({
347
+ branch: t.branch,
348
+ id: t.id ?? "",
349
+ type: t.type !== void 0 ? u[t.type] : void 0,
350
+ tags: t.tags ?? void 0
351
+ }), "parseMerge"), qr = /* @__PURE__ */ m((t) => t.branch, "parseCheckout"), Hr = /* @__PURE__ */ m((t) => {
352
+ var r;
353
+ return {
354
+ id: t.id,
355
+ targetId: "",
356
+ tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags,
357
+ parent: t.parent
358
+ };
359
+ }, "parseCherryPicking"), zr = {
360
+ parse: /* @__PURE__ */ m(async (t) => {
361
+ const r = await gr("gitGraph", t);
362
+ w.debug(r), Rr(r, V);
363
+ }, "parse")
364
+ }, j = rr(), v = j == null ? void 0 : j.gitGraph, I = 10, A = 40, L = 4, M = 2, G = 8, E = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), z = 30, q = /* @__PURE__ */ new Map(), S = [], R = 0, x = "LR", Sr = /* @__PURE__ */ m(() => {
365
+ E.clear(), k.clear(), q.clear(), R = 0, S = [], x = "LR";
366
+ }, "clear"), J = /* @__PURE__ */ m((t) => {
367
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
368
+ return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((e) => {
369
+ const c = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
370
+ c.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), c.setAttribute("dy", "1em"), c.setAttribute("x", "0"), c.setAttribute("class", "row"), c.textContent = e.trim(), r.appendChild(c);
371
+ }), r;
372
+ }, "drawText"), U = /* @__PURE__ */ m((t) => {
373
+ let r, e, c;
374
+ return x === "BT" ? (e = /* @__PURE__ */ m((a, i) => a <= i, "comparisonFunc"), c = 1 / 0) : (e = /* @__PURE__ */ m((a, i) => a >= i, "comparisonFunc"), c = 0), t.forEach((a) => {
375
+ var i, d;
376
+ const h = x === "TB" || x == "BT" ? (i = k.get(a)) == null ? void 0 : i.y : (d = k.get(a)) == null ? void 0 : d.x;
377
+ h !== void 0 && e(h, c) && (r = a, c = h);
378
+ }), r;
379
+ }, "findClosestParent"), Dr = /* @__PURE__ */ m((t) => {
380
+ let r = "", e = 1 / 0;
381
+ return t.forEach((c) => {
382
+ const a = k.get(c).y;
383
+ a <= e && (r = c, e = a);
384
+ }), r || void 0;
385
+ }, "findClosestParentBT"), Nr = /* @__PURE__ */ m((t, r, e) => {
386
+ let c = e, a = e;
387
+ const i = [];
388
+ t.forEach((d) => {
389
+ const h = r.get(d);
390
+ if (!h)
391
+ throw new Error(`Commit not found for key ${d}`);
392
+ h.parents.length ? (c = jr(h), a = Math.max(c, a)) : i.push(h), _r(h, c);
393
+ }), c = a, i.forEach((d) => {
394
+ Fr(d, c, e);
395
+ }), t.forEach((d) => {
396
+ const h = r.get(d);
397
+ if (h != null && h.parents.length) {
398
+ const l = Dr(h.parents);
399
+ c = k.get(l).y - A, c <= a && (a = c);
400
+ const o = E.get(h.branch).pos, n = c - I;
401
+ k.set(h.id, { x: o, y: n });
402
+ }
403
+ });
404
+ }, "setParallelBTPos"), Wr = /* @__PURE__ */ m((t) => {
405
+ var r;
406
+ const e = U(t.parents.filter((a) => a !== null));
407
+ if (!e)
408
+ throw new Error(`Closest parent not found for commit ${t.id}`);
409
+ const c = (r = k.get(e)) == null ? void 0 : r.y;
410
+ if (c === void 0)
411
+ throw new Error(`Closest parent position not found for commit ${t.id}`);
412
+ return c;
413
+ }, "findClosestParentPos"), jr = /* @__PURE__ */ m((t) => Wr(t) + A, "calculateCommitPosition"), _r = /* @__PURE__ */ m((t, r) => {
414
+ const e = E.get(t.branch);
415
+ if (!e)
416
+ throw new Error(`Branch not found for commit ${t.id}`);
417
+ const c = e.pos, a = r + I;
418
+ return k.set(t.id, { x: c, y: a }), { x: c, y: a };
419
+ }, "setCommitPosition"), Fr = /* @__PURE__ */ m((t, r, e) => {
420
+ const c = E.get(t.branch);
421
+ if (!c)
422
+ throw new Error(`Branch not found for commit ${t.id}`);
423
+ const a = r + e, i = c.pos;
424
+ k.set(t.id, { x: i, y: a });
425
+ }, "setRootPosition"), Kr = /* @__PURE__ */ m((t, r, e, c, a, i) => {
426
+ if (i === u.HIGHLIGHT)
427
+ t.append("rect").attr("x", e.x - 10).attr("y", e.y - 10).attr("width", 20).attr("height", 20).attr(
428
+ "class",
429
+ `commit ${r.id} commit-highlight${a % G} ${c}-outer`
430
+ ), t.append("rect").attr("x", e.x - 6).attr("y", e.y - 6).attr("width", 12).attr("height", 12).attr(
431
+ "class",
432
+ `commit ${r.id} commit${a % G} ${c}-inner`
433
+ );
434
+ else if (i === u.CHERRY_PICK)
435
+ t.append("circle").attr("cx", e.x).attr("cy", e.y).attr("r", 10).attr("class", `commit ${r.id} ${c}`), t.append("circle").attr("cx", e.x - 3).attr("cy", e.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${c}`), t.append("circle").attr("cx", e.x + 3).attr("cy", e.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${c}`), t.append("line").attr("x1", e.x + 3).attr("y1", e.y + 1).attr("x2", e.x).attr("y2", e.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${c}`), t.append("line").attr("x1", e.x - 3).attr("y1", e.y + 1).attr("x2", e.x).attr("y2", e.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${c}`);
436
+ else {
437
+ const d = t.append("circle");
438
+ if (d.attr("cx", e.x), d.attr("cy", e.y), d.attr("r", r.type === u.MERGE ? 9 : 10), d.attr("class", `commit ${r.id} commit${a % G}`), i === u.MERGE) {
439
+ const h = t.append("circle");
440
+ h.attr("cx", e.x), h.attr("cy", e.y), h.attr("r", 6), h.attr(
441
+ "class",
442
+ `commit ${c} ${r.id} commit${a % G}`
443
+ );
444
+ }
445
+ i === u.REVERSE && t.append("path").attr(
446
+ "d",
447
+ `M ${e.x - 5},${e.y - 5}L${e.x + 5},${e.y + 5}M${e.x - 5},${e.y + 5}L${e.x + 5},${e.y - 5}`
448
+ ).attr("class", `commit ${c} ${r.id} commit${a % G}`);
449
+ }
450
+ }, "drawCommitBullet"), Yr = /* @__PURE__ */ m((t, r, e, c) => {
451
+ var a;
452
+ if (r.type !== u.CHERRY_PICK && (r.customId && r.type === u.MERGE || r.type !== u.MERGE) && v != null && v.showCommitLabel) {
453
+ const i = t.append("g"), d = i.insert("rect").attr("class", "commit-label-bkg"), h = i.append("text").attr("x", c).attr("y", e.y + 25).attr("class", "commit-label").text(r.id), l = (a = h.node()) == null ? void 0 : a.getBBox();
454
+ if (l && (d.attr("x", e.posWithOffset - l.width / 2 - M).attr("y", e.y + 13.5).attr("width", l.width + 2 * M).attr("height", l.height + 2 * M), x === "TB" || x === "BT" ? (d.attr("x", e.x - (l.width + 4 * L + 5)).attr("y", e.y - 12), h.attr("x", e.x - (l.width + 4 * L)).attr("y", e.y + l.height - 12)) : h.attr("x", e.posWithOffset - l.width / 2), v.rotateCommitLabel))
455
+ if (x === "TB" || x === "BT")
456
+ h.attr(
457
+ "transform",
458
+ "rotate(-45, " + e.x + ", " + e.y + ")"
459
+ ), d.attr(
460
+ "transform",
461
+ "rotate(-45, " + e.x + ", " + e.y + ")"
462
+ );
463
+ else {
464
+ const o = -7.5 - (l.width + 10) / 25 * 9.5, n = 10 + l.width / 25 * 8.5;
465
+ i.attr(
466
+ "transform",
467
+ "translate(" + o + ", " + n + ") rotate(-45, " + c + ", " + e.y + ")"
468
+ );
469
+ }
470
+ }
471
+ }, "drawCommitLabel"), Vr = /* @__PURE__ */ m((t, r, e, c) => {
472
+ var a;
473
+ if (r.tags.length > 0) {
474
+ let i = 0, d = 0, h = 0;
475
+ const l = [];
476
+ for (const o of r.tags.reverse()) {
477
+ const n = t.insert("polygon"), f = t.append("circle"), $ = t.append("text").attr("y", e.y - 16 - i).attr("class", "tag-label").text(o), g = (a = $.node()) == null ? void 0 : a.getBBox();
478
+ if (!g)
479
+ throw new Error("Tag bbox not found");
480
+ d = Math.max(d, g.width), h = Math.max(h, g.height), $.attr("x", e.posWithOffset - g.width / 2), l.push({
481
+ tag: $,
482
+ hole: f,
483
+ rect: n,
484
+ yOffset: i
485
+ }), i += 20;
486
+ }
487
+ for (const { tag: o, hole: n, rect: f, yOffset: $ } of l) {
488
+ const g = h / 2, p = e.y - 19.2 - $;
489
+ if (f.attr("class", "tag-label-bkg").attr(
490
+ "points",
491
+ `
492
+ ${c - d / 2 - L / 2},${p + M}
493
+ ${c - d / 2 - L / 2},${p - M}
494
+ ${e.posWithOffset - d / 2 - L},${p - g - M}
495
+ ${e.posWithOffset + d / 2 + L},${p - g - M}
496
+ ${e.posWithOffset + d / 2 + L},${p + g + M}
497
+ ${e.posWithOffset - d / 2 - L},${p + g + M}`
498
+ ), n.attr("cy", p).attr("cx", c - d / 2 + L / 2).attr("r", 1.5).attr("class", "tag-hole"), x === "TB" || x === "BT") {
499
+ const y = c + $;
500
+ f.attr("class", "tag-label-bkg").attr(
501
+ "points",
502
+ `
503
+ ${e.x},${y + 2}
504
+ ${e.x},${y - 2}
505
+ ${e.x + I},${y - g - 2}
506
+ ${e.x + I + d + 4},${y - g - 2}
507
+ ${e.x + I + d + 4},${y + g + 2}
508
+ ${e.x + I},${y + g + 2}`
509
+ ).attr("transform", "translate(12,12) rotate(45, " + e.x + "," + c + ")"), n.attr("cx", e.x + L / 2).attr("cy", y).attr("transform", "translate(12,12) rotate(45, " + e.x + "," + c + ")"), o.attr("x", e.x + 5).attr("y", y + 3).attr("transform", "translate(14,14) rotate(45, " + e.x + "," + c + ")");
510
+ }
511
+ }
512
+ }
513
+ }, "drawCommitTags"), Jr = /* @__PURE__ */ m((t) => {
514
+ switch (t.customType ?? t.type) {
515
+ case u.NORMAL:
516
+ return "commit-normal";
517
+ case u.REVERSE:
518
+ return "commit-reverse";
519
+ case u.HIGHLIGHT:
520
+ return "commit-highlight";
521
+ case u.MERGE:
522
+ return "commit-merge";
523
+ case u.CHERRY_PICK:
524
+ return "commit-cherry-pick";
525
+ default:
526
+ return "commit-normal";
527
+ }
528
+ }, "getCommitClassType"), Ur = /* @__PURE__ */ m((t, r, e, c) => {
529
+ const a = { x: 0, y: 0 };
530
+ if (t.parents.length > 0) {
531
+ const i = U(t.parents);
532
+ if (i) {
533
+ const d = c.get(i) ?? a;
534
+ return r === "TB" ? d.y + A : r === "BT" ? (c.get(t.id) ?? a).y - A : d.x + A;
535
+ }
536
+ } else
537
+ return r === "TB" ? z : r === "BT" ? (c.get(t.id) ?? a).y - A : 0;
538
+ return 0;
539
+ }, "calculatePosition"), Qr = /* @__PURE__ */ m((t, r, e) => {
540
+ var c, a;
541
+ const i = x === "BT" && e ? r : r + I, d = x === "TB" || x === "BT" ? i : (c = E.get(t.branch)) == null ? void 0 : c.pos, h = x === "TB" || x === "BT" ? (a = E.get(t.branch)) == null ? void 0 : a.pos : i;
542
+ if (h === void 0 || d === void 0)
543
+ throw new Error(`Position were undefined for commit ${t.id}`);
544
+ return { x: h, y: d, posWithOffset: i };
545
+ }, "getCommitPosition"), _ = /* @__PURE__ */ m((t, r, e) => {
546
+ if (!v)
547
+ throw new Error("GitGraph config not found");
548
+ const c = t.append("g").attr("class", "commit-bullets"), a = t.append("g").attr("class", "commit-labels");
549
+ let i = x === "TB" || x === "BT" ? z : 0;
550
+ const d = [...r.keys()], h = (v == null ? void 0 : v.parallelCommits) ?? !1, l = /* @__PURE__ */ m((n, f) => {
551
+ var $, g;
552
+ const p = ($ = r.get(n)) == null ? void 0 : $.seq, y = (g = r.get(f)) == null ? void 0 : g.seq;
553
+ return p !== void 0 && y !== void 0 ? p - y : 0;
554
+ }, "sortKeys");
555
+ let o = d.sort(l);
556
+ x === "BT" && (h && Nr(o, r, i), o = o.reverse()), o.forEach((n) => {
557
+ var f;
558
+ const $ = r.get(n);
559
+ if (!$)
560
+ throw new Error(`Commit not found for key ${n}`);
561
+ h && (i = Ur($, x, i, k));
562
+ const g = Qr($, i, h);
563
+ if (e) {
564
+ const p = Jr($), y = $.customType ?? $.type, T = ((f = E.get($.branch)) == null ? void 0 : f.index) ?? 0;
565
+ Kr(c, $, g, p, T, y), Yr(a, $, g, i), Vr(a, $, g, i);
566
+ }
567
+ x === "TB" || x === "BT" ? k.set($.id, { x: g.x, y: g.posWithOffset }) : k.set($.id, { x: g.posWithOffset, y: g.y }), i = x === "BT" && h ? i + A : i + A + I, i > R && (R = i);
568
+ });
569
+ }, "drawCommits"), Xr = /* @__PURE__ */ m((t, r, e, c, a) => {
570
+ const i = (x === "TB" || x === "BT" ? e.x < c.x : e.y < c.y) ? r.branch : t.branch, d = /* @__PURE__ */ m((l) => l.branch === i, "isOnBranchToGetCurve"), h = /* @__PURE__ */ m((l) => l.seq > t.seq && l.seq < r.seq, "isBetweenCommits");
571
+ return [...a.values()].some((l) => h(l) && d(l));
572
+ }, "shouldRerouteArrow"), H = /* @__PURE__ */ m((t, r, e = 0) => {
573
+ const c = t + Math.abs(t - r) / 2;
574
+ if (e > 5)
575
+ return c;
576
+ if (S.every((i) => Math.abs(i - c) >= 10))
577
+ return S.push(c), c;
578
+ const a = Math.abs(t - r);
579
+ return H(t, r - a / 5, e + 1);
580
+ }, "findLane"), Zr = /* @__PURE__ */ m((t, r, e, c) => {
581
+ var a, i, d, h, l;
582
+ const o = k.get(r.id), n = k.get(e.id);
583
+ if (o === void 0 || n === void 0)
584
+ throw new Error(`Commit positions not found for commits ${r.id} and ${e.id}`);
585
+ const f = Xr(r, e, o, n, c);
586
+ let $ = "", g = "", p = 0, y = 0, T = (a = E.get(e.branch)) == null ? void 0 : a.index;
587
+ e.type === u.MERGE && r.id !== e.parents[0] && (T = (i = E.get(r.branch)) == null ? void 0 : i.index);
588
+ let b;
589
+ if (f) {
590
+ $ = "A 10 10, 0, 0, 0,", g = "A 10 10, 0, 0, 1,", p = 10, y = 10;
591
+ const P = o.y < n.y ? H(o.y, n.y) : H(n.y, o.y), B = o.x < n.x ? H(o.x, n.x) : H(n.x, o.x);
592
+ x === "TB" ? o.x < n.x ? b = `M ${o.x} ${o.y} L ${B - p} ${o.y} ${g} ${B} ${o.y + y} L ${B} ${n.y - p} ${$} ${B + y} ${n.y} L ${n.x} ${n.y}` : (T = (d = E.get(r.branch)) == null ? void 0 : d.index, b = `M ${o.x} ${o.y} L ${B + p} ${o.y} ${$} ${B} ${o.y + y} L ${B} ${n.y - p} ${g} ${B - y} ${n.y} L ${n.x} ${n.y}`) : x === "BT" ? o.x < n.x ? b = `M ${o.x} ${o.y} L ${B - p} ${o.y} ${$} ${B} ${o.y - y} L ${B} ${n.y + p} ${g} ${B + y} ${n.y} L ${n.x} ${n.y}` : (T = (h = E.get(r.branch)) == null ? void 0 : h.index, b = `M ${o.x} ${o.y} L ${B + p} ${o.y} ${g} ${B} ${o.y - y} L ${B} ${n.y + p} ${$} ${B - y} ${n.y} L ${n.x} ${n.y}`) : o.y < n.y ? b = `M ${o.x} ${o.y} L ${o.x} ${P - p} ${$} ${o.x + y} ${P} L ${n.x - p} ${P} ${g} ${n.x} ${P + y} L ${n.x} ${n.y}` : (T = (l = E.get(r.branch)) == null ? void 0 : l.index, b = `M ${o.x} ${o.y} L ${o.x} ${P + p} ${g} ${o.x + y} ${P} L ${n.x - p} ${P} ${$} ${n.x} ${P - y} L ${n.x} ${n.y}`);
593
+ } else
594
+ $ = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", p = 20, y = 20, x === "TB" ? (o.x < n.x && (e.type === u.MERGE && r.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y - p} ${$} ${o.x + y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${g} ${n.x} ${o.y + y} L ${n.x} ${n.y}`), o.x > n.x && ($ = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", p = 20, y = 20, e.type === u.MERGE && r.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y - p} ${g} ${o.x - y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x + p} ${o.y} ${$} ${n.x} ${o.y + y} L ${n.x} ${n.y}`), o.x === n.x && (b = `M ${o.x} ${o.y} L ${n.x} ${n.y}`)) : x === "BT" ? (o.x < n.x && (e.type === u.MERGE && r.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y + p} ${g} ${o.x + y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${$} ${n.x} ${o.y - y} L ${n.x} ${n.y}`), o.x > n.x && ($ = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", p = 20, y = 20, e.type === u.MERGE && r.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${o.x} ${n.y + p} ${$} ${o.x - y} ${n.y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${$} ${n.x} ${o.y - y} L ${n.x} ${n.y}`), o.x === n.x && (b = `M ${o.x} ${o.y} L ${n.x} ${n.y}`)) : (o.y < n.y && (e.type === u.MERGE && r.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${g} ${n.x} ${o.y + y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${o.x} ${n.y - p} ${$} ${o.x + y} ${n.y} L ${n.x} ${n.y}`), o.y > n.y && (e.type === u.MERGE && r.id !== e.parents[0] ? b = `M ${o.x} ${o.y} L ${n.x - p} ${o.y} ${$} ${n.x} ${o.y - y} L ${n.x} ${n.y}` : b = `M ${o.x} ${o.y} L ${o.x} ${n.y + p} ${g} ${o.x + y} ${n.y} L ${n.x} ${n.y}`), o.y === n.y && (b = `M ${o.x} ${o.y} L ${n.x} ${n.y}`));
595
+ if (b === void 0)
596
+ throw new Error("Line definition not found");
597
+ t.append("path").attr("d", b).attr("class", "arrow arrow" + T % G);
598
+ }, "drawArrow"), rt = /* @__PURE__ */ m((t, r) => {
599
+ const e = t.append("g").attr("class", "commit-arrows");
600
+ [...r.keys()].forEach((c) => {
601
+ const a = r.get(c);
602
+ a.parents && a.parents.length > 0 && a.parents.forEach((i) => {
603
+ Zr(e, r.get(i), a, r);
604
+ });
605
+ });
606
+ }, "drawArrows"), tt = /* @__PURE__ */ m((t, r) => {
607
+ const e = t.append("g");
608
+ r.forEach((c, a) => {
609
+ var i;
610
+ const d = a % G, h = (i = E.get(c.name)) == null ? void 0 : i.pos;
611
+ if (h === void 0)
612
+ throw new Error(`Position not found for branch ${c.name}`);
613
+ const l = e.append("line");
614
+ l.attr("x1", 0), l.attr("y1", h), l.attr("x2", R), l.attr("y2", h), l.attr("class", "branch branch" + d), x === "TB" ? (l.attr("y1", z), l.attr("x1", h), l.attr("y2", R), l.attr("x2", h)) : x === "BT" && (l.attr("y1", R), l.attr("x1", h), l.attr("y2", z), l.attr("x2", h)), S.push(h);
615
+ const o = c.name, n = J(o), f = e.insert("rect"), $ = e.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + d);
616
+ $.node().appendChild(n);
617
+ const g = n.getBBox();
618
+ f.attr("class", "branchLabelBkg label" + d).attr("rx", 4).attr("ry", 4).attr("x", -g.width - 4 - ((v == null ? void 0 : v.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -g.height / 2 + 8).attr("width", g.width + 18).attr("height", g.height + 4), $.attr(
619
+ "transform",
620
+ "translate(" + (-g.width - 14 - ((v == null ? void 0 : v.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (h - g.height / 2 - 1) + ")"
621
+ ), x === "TB" ? (f.attr("x", h - g.width / 2 - 10).attr("y", 0), $.attr("transform", "translate(" + (h - g.width / 2 - 5) + ", 0)")) : x === "BT" ? (f.attr("x", h - g.width / 2 - 10).attr("y", R), $.attr("transform", "translate(" + (h - g.width / 2 - 5) + ", " + R + ")")) : f.attr("transform", "translate(-19, " + (h - g.height / 2) + ")");
622
+ });
623
+ }, "drawBranches"), et = /* @__PURE__ */ m(function(t, r, e, c, a) {
624
+ return E.set(t, { pos: r, index: e }), r += 50 + (a ? 40 : 0) + (x === "TB" || x === "BT" ? c.width / 2 : 0), r;
625
+ }, "setBranchPosition"), ot = /* @__PURE__ */ m(function(t, r, e, c) {
626
+ if (Sr(), w.debug("in gitgraph renderer", t + `
627
+ `, "id:", r, e), !v)
628
+ throw new Error("GitGraph config not found");
629
+ const a = v.rotateCommitLabel ?? !1, i = c.db;
630
+ q = i.getCommits();
631
+ const d = i.getBranchesAsObjArray();
632
+ x = i.getDirection();
633
+ const h = $r(`[id="${r}"]`);
634
+ let l = 0;
635
+ d.forEach((o, n) => {
636
+ var f;
637
+ const $ = J(o.name), g = h.append("g"), p = g.insert("g").attr("class", "branchLabel"), y = p.insert("g").attr("class", "label branch-label");
638
+ (f = y.node()) == null || f.appendChild($);
639
+ const T = $.getBBox();
640
+ l = et(o.name, l, n, T, a), y.remove(), p.remove(), g.remove();
641
+ }), _(h, q, !1), v.showBranches && tt(h, d), rt(h, q), _(h, q, !0), mr.insertTitle(
642
+ h,
643
+ "gitTitleText",
644
+ v.titleTopMargin ?? 0,
645
+ i.getDiagramTitle()
646
+ ), lr(
647
+ void 0,
648
+ h,
649
+ v.diagramPadding,
650
+ v.useMaxWidth
651
+ );
652
+ }, "draw"), nt = {
653
+ draw: ot
654
+ }, ct = /* @__PURE__ */ m((t) => `
655
+ .commit-id,
656
+ .commit-msg,
657
+ .branch-label {
658
+ fill: lightgrey;
659
+ color: lightgrey;
660
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
661
+ font-family: var(--mermaid-font-family);
662
+ }
663
+ ${[0, 1, 2, 3, 4, 5, 6, 7].map(
664
+ (r) => `
665
+ .branch-label${r} { fill: ${t["gitBranchLabel" + r]}; }
666
+ .commit${r} { stroke: ${t["git" + r]}; fill: ${t["git" + r]}; }
667
+ .commit-highlight${r} { stroke: ${t["gitInv" + r]}; fill: ${t["gitInv" + r]}; }
668
+ .label${r} { fill: ${t["git" + r]}; }
669
+ .arrow${r} { stroke: ${t["git" + r]}; }
670
+ `
671
+ ).join(`
672
+ `)}
673
+
674
+ .branch {
675
+ stroke-width: 1;
676
+ stroke: ${t.lineColor};
677
+ stroke-dasharray: 2;
678
+ }
679
+ .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
680
+ .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
681
+ .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
682
+ .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
683
+ .tag-hole { fill: ${t.textColor}; }
684
+
685
+ .commit-merge {
686
+ stroke: ${t.primaryColor};
687
+ fill: ${t.primaryColor};
688
+ }
689
+ .commit-reverse {
690
+ stroke: ${t.primaryColor};
691
+ fill: ${t.primaryColor};
692
+ stroke-width: 3;
693
+ }
694
+ .commit-highlight-outer {
695
+ }
696
+ .commit-highlight-inner {
697
+ stroke: ${t.primaryColor};
698
+ fill: ${t.primaryColor};
699
+ }
700
+
701
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
702
+ .gitTitleText {
703
+ text-anchor: middle;
704
+ font-size: 18px;
705
+ fill: ${t.textColor};
706
+ }
707
+ `, "getStyles"), at = ct, gt = {
708
+ parser: zr,
709
+ db: V,
710
+ renderer: nt,
711
+ styles: at
712
+ };
713
+ export {
714
+ gt as diagram
715
+ };