@yaoshu-ai/ai-chat 1.5.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 (433) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +448 -0
  3. package/dist/1.png +0 -0
  4. package/dist/2.png +0 -0
  5. package/dist/RenderContent-Dlqka7tn.js +33786 -0
  6. package/dist/__vite-optional-peer-dep_stream-monaco_markstream-vue_false-HdL4xm5U.js +5 -0
  7. package/dist/__vite-optional-peer-dep_vue-i18n_markstream-vue_false-B9Pwe5kz.js +5 -0
  8. package/dist/_arrayEach-CWzCztxB.js +44 -0
  9. package/dist/abap-Y8Dl9g_6.js +6 -0
  10. package/dist/actionscript-3-DQVEcJUW.js +6 -0
  11. package/dist/ada-vP6ak0IW.js +6 -0
  12. package/dist/ai-chat.css +1 -0
  13. package/dist/andromeeda-BbmzSJq1.js +4 -0
  14. package/dist/angular-html-DPB4Rf0C.js +32 -0
  15. package/dist/angular-ts-CTOR2ofC.js +21 -0
  16. package/dist/apache-BUjz-sD2.js +6 -0
  17. package/dist/apex-OyTfjCYK.js +6 -0
  18. package/dist/apl-CjNiDgad.js +16 -0
  19. package/dist/applescript-BPx7YFFu.js +6 -0
  20. package/dist/ara-Z2fSOxSw.js +6 -0
  21. package/dist/arc-B1p3jPmf.js +83 -0
  22. package/dist/architecture-U656AL7Q-BbBZWZnv.js +5 -0
  23. package/dist/architectureDiagram-VXUJARFQ-o3qI6Hfe.js +4662 -0
  24. package/dist/asciidoc-C1T9ziH6.js +6 -0
  25. package/dist/asm-BTWLY5ym.js +6 -0
  26. package/dist/assets/_basePickBy-Cpv34cvw.js +151 -0
  27. package/dist/assets/_baseUniq-DcdXmdC4.js +614 -0
  28. package/dist/assets/arc-B0v8Xerj.js +83 -0
  29. package/dist/assets/architectureDiagram-VXUJARFQ-CuYvJnXX.js +4662 -0
  30. package/dist/assets/blockDiagram-VD42YOAC-BxZitMjG.js +2262 -0
  31. package/dist/assets/c4Diagram-YG6GDRKO-ZsN99P-D.js +1580 -0
  32. package/dist/assets/channel-d_ygJPeO.js +5 -0
  33. package/dist/assets/chunk-4BX2VUAB-96IoYLlF.js +8 -0
  34. package/dist/assets/chunk-55IACEB6-gENcR4HP.js +8 -0
  35. package/dist/assets/chunk-B4BG7PRW-BOypo6sC.js +1375 -0
  36. package/dist/assets/chunk-DI55MBZ5-DHEKLVmM.js +1370 -0
  37. package/dist/assets/chunk-FMBD7UC4-CZ-mW5Zk.js +19 -0
  38. package/dist/assets/chunk-QN33PNHL-BeoL9V94.js +19 -0
  39. package/dist/assets/chunk-QZHKN3VN-DedBAq5I.js +15 -0
  40. package/dist/assets/chunk-TZMSLE5B-Bg9wRIeU.js +64 -0
  41. package/dist/assets/classDiagram-2ON5EDUG-OqXlgyvI.js +19 -0
  42. package/dist/assets/classDiagram-v2-WZHVMYZB-OqXlgyvI.js +19 -0
  43. package/dist/assets/clone-D3-moMc7.js +8 -0
  44. package/dist/assets/cose-bilkent-S5V4N54A-CrU20ri2.js +2607 -0
  45. package/dist/assets/cytoscape.esm-DfdJODL8.js +18735 -0
  46. package/dist/assets/dagre-6UL2VRFP-BMNAUhAh.js +444 -0
  47. package/dist/assets/defaultLocale-57BWB7pV.js +171 -0
  48. package/dist/assets/diagram-PSM6KHXK-DDXdcx9h.js +535 -0
  49. package/dist/assets/diagram-QEK2KX5R-DaOkv31-.js +220 -0
  50. package/dist/assets/diagram-S2PKOQOG-Kk0nHneV.js +145 -0
  51. package/dist/assets/erDiagram-Q2GNP2WA-DVKOxqjl.js +841 -0
  52. package/dist/assets/flowDiagram-NV44I4VS-BoWYkdqy.js +1620 -0
  53. package/dist/assets/ganttDiagram-LVOFAZNH-Dvgzms7S.js +2500 -0
  54. package/dist/assets/gitGraphDiagram-NY62KEGX-Bna3uwG8.js +702 -0
  55. package/dist/assets/graph-BLzmbjIy.js +247 -0
  56. package/dist/assets/infoDiagram-ER5ION4S-Did3mqZL.js +27 -0
  57. package/dist/assets/init-DjUOC4st.js +16 -0
  58. package/dist/assets/journeyDiagram-XKPGCS4Q-C3BPCBal.js +834 -0
  59. package/dist/assets/kanban-definition-3W4ZIXB7-Cf5SUn-1.js +719 -0
  60. package/dist/assets/katex-SsTUIUTC.js +11688 -0
  61. package/dist/assets/layout-B00gooay.js +1335 -0
  62. package/dist/assets/linear-DVxTWzAi.js +259 -0
  63. package/dist/assets/mindmap-definition-VGOIOE7T-Q-_IrD51.js +785 -0
  64. package/dist/assets/ordinal-DfAQgscy.js +61 -0
  65. package/dist/assets/pieDiagram-ADFJNKIX-LygDPC1s.js +165 -0
  66. package/dist/assets/quadrantDiagram-AYHSOK5B-77SStCdg.js +1024 -0
  67. package/dist/assets/requirementDiagram-UZGBJVZJ-CMlgwZi9.js +850 -0
  68. package/dist/assets/sankeyDiagram-TZEHDZUN-DnlAgtvb.js +811 -0
  69. package/dist/assets/sequenceDiagram-WL72ISMW-Cf4BDgIS.js +2511 -0
  70. package/dist/assets/stateDiagram-FKZM4ZOC-CBGqngi4.js +267 -0
  71. package/dist/assets/stateDiagram-v2-4FDKWEC3-BZTJjZnO.js +18 -0
  72. package/dist/assets/timeline-definition-IT6M3QCI-DVwyHSfZ.js +795 -0
  73. package/dist/assets/treemap-KMMF4GRG-Bx903ckh.js +12994 -0
  74. package/dist/assets/xychartDiagram-PRI3JC2R-pvSCMiXN.js +1341 -0
  75. package/dist/astro-CFFExE8Q.js +18 -0
  76. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  77. package/dist/awk-Fb0P9dkn.js +6 -0
  78. package/dist/ayu-dark-DJoqd4M9.js +4 -0
  79. package/dist/ayu-light-BzXEJRJ-.js +4 -0
  80. package/dist/ayu-mirage-BJ2oZGzi.js +4 -0
  81. package/dist/ballerina-oZK-YekG.js +6 -0
  82. package/dist/bat-0FvbqU9S.js +6 -0
  83. package/dist/beancount-DqJEb89h.js +6 -0
  84. package/dist/berry-DODBq_Ff.js +6 -0
  85. package/dist/bibtex-EULQRLY5.js +6 -0
  86. package/dist/bicep-BorU73w0.js +6 -0
  87. package/dist/bird2-CraR6qSn.js +6 -0
  88. package/dist/blade-D0HyNvCw.js +20 -0
  89. package/dist/blockDiagram-VD42YOAC-DahK-Cj4.js +2364 -0
  90. package/dist/bsl-NkNNwerW.js +8 -0
  91. package/dist/c-eeMepfLm.js +6 -0
  92. package/dist/c3-BY5XW5ym.js +6 -0
  93. package/dist/c4Diagram-YG6GDRKO-DEyHjCYx.js +1580 -0
  94. package/dist/cadence-02UX7mW8.js +6 -0
  95. package/dist/cairo-DM6WF2e3.js +8 -0
  96. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  97. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  98. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  99. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  100. package/dist/channel-3keaKHdb.js +5 -0
  101. package/dist/chunk-4BX2VUAB-DAiVtoK8.js +8 -0
  102. package/dist/chunk-55IACEB6-CaBF4LGk.js +8 -0
  103. package/dist/chunk-B4BG7PRW-BRwDg4Nv.js +1375 -0
  104. package/dist/chunk-DI55MBZ5-DSCddmFg.js +1370 -0
  105. package/dist/chunk-FMBD7UC4-DeD5V5dF.js +19 -0
  106. package/dist/chunk-QN33PNHL-DtsdNsBa.js +19 -0
  107. package/dist/chunk-QZHKN3VN-BjOYbdQP.js +15 -0
  108. package/dist/chunk-TZMSLE5B-BwhJBSuO.js +64 -0
  109. package/dist/clarity-PKm5CwqM.js +6 -0
  110. package/dist/classDiagram-2ON5EDUG-C0IaF0ZL.js +16 -0
  111. package/dist/classDiagram-v2-WZHVMYZB-C0IaF0ZL.js +16 -0
  112. package/dist/clojure-CXJfHrL3.js +6 -0
  113. package/dist/cmake-BJz8BOTU.js +6 -0
  114. package/dist/cobol-DBolczTz.js +10 -0
  115. package/dist/codeowners-Bt9yU6NX.js +6 -0
  116. package/dist/codeql-DHkodjjI.js +6 -0
  117. package/dist/coffee-DGBR_nr_.js +8 -0
  118. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  119. package/dist/coq-B0L9upzn.js +6 -0
  120. package/dist/cose-bilkent-S5V4N54A-CRxUs4km.js +2609 -0
  121. package/dist/cpp-Cj177cuW.js +18 -0
  122. package/dist/crystal-CRJyc4G-.js +18 -0
  123. package/dist/csharp-CCgA4A09.js +6 -0
  124. package/dist/css-CECN5uSL.js +6 -0
  125. package/dist/csv-CmYOceLb.js +6 -0
  126. package/dist/cue-ZzumE7IT.js +6 -0
  127. package/dist/cypher-jpdmjtA6.js +6 -0
  128. package/dist/cytoscape.esm-DfdJODL8.js +18735 -0
  129. package/dist/d-CBagWSwH.js +6 -0
  130. package/dist/d2_markstream-vue_false-BfRvcluz.js +5 -0
  131. package/dist/dagre-6UL2VRFP-dTDl1Tgv.js +442 -0
  132. package/dist/dark-plus-pUHDTVV0.js +4 -0
  133. package/dist/dart-6ObCrKr9.js +6 -0
  134. package/dist/dax-CcDT-8dH.js +6 -0
  135. package/dist/defaultLocale-D7EN2tov.js +171 -0
  136. package/dist/desktop-B93p9R9O.js +6 -0
  137. package/dist/diagram-PSM6KHXK-Dh-BBqVQ.js +531 -0
  138. package/dist/diagram-QEK2KX5R-CPqYwhdb.js +217 -0
  139. package/dist/diagram-S2PKOQOG-CapIa3n7.js +142 -0
  140. package/dist/diff-BxzP2J8R.js +6 -0
  141. package/dist/docker-CsHqm9tx.js +6 -0
  142. package/dist/dotenv-BMjVjUL1.js +6 -0
  143. package/dist/dracula-BtZx2Kac.js +4 -0
  144. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  145. package/dist/dream-maker-PAx17jaB.js +6 -0
  146. package/dist/echarts-gl.min.js +1 -0
  147. package/dist/echarts.min.js +46 -0
  148. package/dist/edge-BYQkOzbF.js +12 -0
  149. package/dist/elixir-Dh036GMp.js +8 -0
  150. package/dist/elm-BtNbw_Cd.js +8 -0
  151. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  152. package/dist/erDiagram-Q2GNP2WA-B8d80SOq.js +841 -0
  153. package/dist/erb-ScVOXVpH.js +10 -0
  154. package/dist/erlang-DNcDT8Hi.js +8 -0
  155. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  156. package/dist/everforest-light-BbXl82Em.js +4 -0
  157. package/dist/favicon.svg +1 -0
  158. package/dist/fennel-N4WcXuKx.js +6 -0
  159. package/dist/fish-BTDEUgqH.js +6 -0
  160. package/dist/flowDiagram-NV44I4VS-Wtd6x8Dz.js +1620 -0
  161. package/dist/fluent-BMXUxfv1.js +6 -0
  162. package/dist/fortran-fixed-form-B67KFkXH.js +8 -0
  163. package/dist/fortran-free-form-CwqYvCLJ.js +6 -0
  164. package/dist/fsharp-CYOiIVNx.js +8 -0
  165. package/dist/ganttDiagram-LVOFAZNH-PIGXq8YG.js +2506 -0
  166. package/dist/gdresource-CvCIUjhi.js +10 -0
  167. package/dist/gdscript-DSAxJ_aS.js +6 -0
  168. package/dist/gdshader-Bk8fF6yr.js +6 -0
  169. package/dist/genie-DzUvd7U9.js +6 -0
  170. package/dist/geo.json +1 -0
  171. package/dist/gherkin-DHRaV0YP.js +6 -0
  172. package/dist/git-commit-Bd32YZ0K.js +8 -0
  173. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  174. package/dist/gitGraph-F6HP7TQM-CIGXYS91.js +5 -0
  175. package/dist/gitGraphDiagram-NY62KEGX-BDnzMpYT.js +699 -0
  176. package/dist/github-dark-DenFmJkN.js +4 -0
  177. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  178. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  179. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  180. package/dist/github-light-JYsPkUQd.js +4 -0
  181. package/dist/github-light-default-D99KPAby.js +4 -0
  182. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  183. package/dist/gleam-Bv284lvN.js +6 -0
  184. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  185. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  186. package/dist/glsl-CkUcVZNK.js +8 -0
  187. package/dist/gn-XtJxiLa4.js +6 -0
  188. package/dist/gnuplot-yPG9-sE_.js +6 -0
  189. package/dist/go-CvFNMTvu.js +6 -0
  190. package/dist/graph-BJDrjORS.js +244 -0
  191. package/dist/graphql-CBu2ehBn.js +14 -0
  192. package/dist/groovy-CJQTphOW.js +6 -0
  193. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  194. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  195. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  196. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  197. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  198. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  199. package/dist/hack-ItRNKiEb.js +10 -0
  200. package/dist/haml-NZLVzu_R.js +10 -0
  201. package/dist/handlebars-mxStpSE7.js +14 -0
  202. package/dist/haskell-WeIwNIP6.js +6 -0
  203. package/dist/haxe-TztHsm5T.js +6 -0
  204. package/dist/hcl-D438OF-I.js +6 -0
  205. package/dist/hjson-DYBUbqOl.js +6 -0
  206. package/dist/hlsl-Bk8TCZNL.js +6 -0
  207. package/dist/horizon-CJQ10nlf.js +4 -0
  208. package/dist/horizon-bright-2WzHy-Vo.js +4 -0
  209. package/dist/houston-BDYrDoDW.js +4 -0
  210. package/dist/html-B50bmoVb.js +10 -0
  211. package/dist/html-derivative-C6bxFbFW.js +8 -0
  212. package/dist/http-DLvAkeD-.js +14 -0
  213. package/dist/hurl-CgkFN90t.js +12 -0
  214. package/dist/hxml-GbqSQCLa.js +8 -0
  215. package/dist/hy-Brt5EZ7-.js +6 -0
  216. package/dist/imba-CimUv-Uh.js +6 -0
  217. package/dist/index-C8Q6O4II.js +513 -0
  218. package/dist/index-DAiOgSvo.js +10210 -0
  219. package/dist/index-qjiatRMM.js +74370 -0
  220. package/dist/index.es.js +12 -0
  221. package/dist/index2-Pjnp80bi.js +70 -0
  222. package/dist/index3-Bhg7Q86T.js +70 -0
  223. package/dist/index4-5xarPQV7.js +544 -0
  224. package/dist/index5-DYxqqGmv.js +592 -0
  225. package/dist/index6-DXyezjvJ.js +196 -0
  226. package/dist/index7-IFig1gg1.js +217 -0
  227. package/dist/info-NVLQJR56-CFDwNFH-.js +5 -0
  228. package/dist/infoDiagram-ER5ION4S-ClOwLtgG.js +24 -0
  229. package/dist/infographic_markstream-vue_false-BfsmcXxk.js +5 -0
  230. package/dist/ini-BZIuRIvJ.js +6 -0
  231. package/dist/init-DjUOC4st.js +16 -0
  232. package/dist/java-DY6VlHhP.js +6 -0
  233. package/dist/javascript-C25yR2R2.js +6 -0
  234. package/dist/jinja-CFW5uAwY.js +11 -0
  235. package/dist/jison-DdreslRX.js +8 -0
  236. package/dist/journeyDiagram-XKPGCS4Q-_UZpi048.js +834 -0
  237. package/dist/json-DxJze_jm.js +6 -0
  238. package/dist/json5-BT4Fjg39.js +6 -0
  239. package/dist/jsonc-CHjZD8gR.js +6 -0
  240. package/dist/jsonl-BGuvDmy9.js +6 -0
  241. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  242. package/dist/jssm-BcADi6EI.js +6 -0
  243. package/dist/jsx-BtKADgXT.js +6 -0
  244. package/dist/julia-CZiKXNNP.js +16 -0
  245. package/dist/just-CEK2SJ_k.js +18 -0
  246. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  247. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  248. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  249. package/dist/kanban-definition-3W4ZIXB7-Cutzg6yp.js +719 -0
  250. package/dist/katex-SsTUIUTC.js +11688 -0
  251. package/dist/kdl-BNOv9TC3.js +6 -0
  252. package/dist/kotlin-ByBMgTeR.js +6 -0
  253. package/dist/kusto-DH_XitHS.js +6 -0
  254. package/dist/languageIconExtended-OLNeqZ3A.js +119 -0
  255. package/dist/laserwave-6a00oqik.js +4 -0
  256. package/dist/latex-B8Egmqc5.js +8 -0
  257. package/dist/layout-PTzgkkQP.js +1223 -0
  258. package/dist/lean-BnVxaZxY.js +6 -0
  259. package/dist/less-B1GLI2Di.js +6 -0
  260. package/dist/light-plus-CZuVqSLX.js +4 -0
  261. package/dist/linear-Bye2JJhy.js +259 -0
  262. package/dist/liquid-CHzkx3jT.js +14 -0
  263. package/dist/llvm-Bk2XctFf.js +6 -0
  264. package/dist/log-Al8wyEFV.js +6 -0
  265. package/dist/logo-DBa4JDzV.js +6 -0
  266. package/dist/lua-Bp3IRv7I.js +8 -0
  267. package/dist/luau-UQyhudEE.js +6 -0
  268. package/dist/make-CsMclxtr.js +6 -0
  269. package/dist/markdown-CrScaQ96.js +6 -0
  270. package/dist/marko-CJBA24Ri.js +14 -0
  271. package/dist/material-theme-D6KBX41T.js +4 -0
  272. package/dist/material-theme-darker-CkRroheE.js +4 -0
  273. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  274. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  275. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  276. package/dist/matlab-BOAaUVP0.js +6 -0
  277. package/dist/mdc-C9YSUwVC.js +12 -0
  278. package/dist/mdx-BOhZZUJ8.js +6 -0
  279. package/dist/mermaid-C3rz4dYh.js +6 -0
  280. package/dist/mermaid-parser.core-C86xHHvY.js +13249 -0
  281. package/dist/mermaid.core-BIhT9VUC.js +14709 -0
  282. package/dist/mhchem-XHl7cef5.js +2306 -0
  283. package/dist/min-dark-C7ak0t6c.js +4 -0
  284. package/dist/min-light-CKFxVcPp.js +4 -0
  285. package/dist/mindmap-definition-VGOIOE7T-l17eTXZb.js +784 -0
  286. package/dist/mipsasm-CTx18fBl.js +6 -0
  287. package/dist/mojo-EIZIZRTQ.js +6 -0
  288. package/dist/monokai-C1KBYcO0.js +4 -0
  289. package/dist/moonbit-B1TV0fG3.js +6 -0
  290. package/dist/move-Db4ltDq1.js +6 -0
  291. package/dist/narrat-DmhDCBs-.js +6 -0
  292. package/dist/nextflow-47kAzSl1.js +8 -0
  293. package/dist/nextflow-groovy-Drz_2V0j.js +6 -0
  294. package/dist/nginx-D7O4WoB1.js +8 -0
  295. package/dist/night-owl-Bm2rzalh.js +4 -0
  296. package/dist/night-owl-light-CBI5u5kw.js +4 -0
  297. package/dist/nim-QAjRdh9w.js +20 -0
  298. package/dist/nix-fTRXMGic.js +9 -0
  299. package/dist/nord-CC5OiUXg.js +4 -0
  300. package/dist/nushell-BGCPRlV5.js +6 -0
  301. package/dist/objective-c-Itk8tzmv.js +6 -0
  302. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  303. package/dist/ocaml-eSVK32Eg.js +6 -0
  304. package/dist/odin-BItnF517.js +6 -0
  305. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  306. package/dist/one-light-LkMrt1Cf.js +4 -0
  307. package/dist/openscad-Sp5uZ6f2.js +6 -0
  308. package/dist/ordinal-DfAQgscy.js +61 -0
  309. package/dist/packet-BFZMPI3H-c2t_1f8D.js +5 -0
  310. package/dist/pascal-xy8pJNns.js +6 -0
  311. package/dist/perl-DkVrgJBg.js +16 -0
  312. package/dist/php-BIzsF_5x.js +18 -0
  313. package/dist/pie-7BOR55EZ-CVvzPUU7.js +5 -0
  314. package/dist/pieDiagram-ADFJNKIX-C01Py6L8.js +161 -0
  315. package/dist/pkl-C-zSNmaA.js +6 -0
  316. package/dist/plastic-CSTz3KZp.js +4 -0
  317. package/dist/plsql-pVbGZfOv.js +6 -0
  318. package/dist/po-BNfHvqmm.js +6 -0
  319. package/dist/poimandres-C-VADXHD.js +4 -0
  320. package/dist/polar-CAZahv3u.js +6 -0
  321. package/dist/postcss-05aHdL-n.js +6 -0
  322. package/dist/powerquery-DI9HkTvs.js +6 -0
  323. package/dist/powershell-Clc4ydu-.js +6 -0
  324. package/dist/prisma-FZjmVtSl.js +6 -0
  325. package/dist/prolog-C5-yg4TO.js +6 -0
  326. package/dist/proto-C7QgialS.js +6 -0
  327. package/dist/pug-XOw9Q1Ho.js +12 -0
  328. package/dist/puppet-CUJHmnxV.js +6 -0
  329. package/dist/purescript-rUfGld-4.js +6 -0
  330. package/dist/python-BFNSHbwJ.js +6 -0
  331. package/dist/qml-rTNXsquU.js +8 -0
  332. package/dist/qmldir-BInDYbpo.js +6 -0
  333. package/dist/qss-AeJTysr_.js +6 -0
  334. package/dist/quadrantDiagram-AYHSOK5B-sypB1aPG.js +1022 -0
  335. package/dist/r-CSmzDPi7.js +6 -0
  336. package/dist/racket-B83wSAja.js +6 -0
  337. package/dist/radar-NHE76QYJ-GJjAzk_L.js +5 -0
  338. package/dist/raku-nEQ4ZJJ7.js +6 -0
  339. package/dist/razor-Ci8D0dQK.js +10 -0
  340. package/dist/red-7y8PH7HH.js +4 -0
  341. package/dist/reg-m_s_Kiip.js +6 -0
  342. package/dist/regexp-BazyLpPg.js +6 -0
  343. package/dist/rel-BcRfyd6Q.js +6 -0
  344. package/dist/requirementDiagram-UZGBJVZJ-Cs95WEDy.js +850 -0
  345. package/dist/riscv-Ce8MAQLP.js +6 -0
  346. package/dist/ron-DCEEQypA.js +6 -0
  347. package/dist/rose-pine-BKc3yVeu.js +4 -0
  348. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  349. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  350. package/dist/rosmsg-Cz0w1km8.js +6 -0
  351. package/dist/rst-DM32Wy3O.js +22 -0
  352. package/dist/ruby-BeqCs27h.js +30 -0
  353. package/dist/rust-CLzF9zIN.js +6 -0
  354. package/dist/safeRaf-I3a3-dyJ.js +10 -0
  355. package/dist/sankeyDiagram-TZEHDZUN-BN3bNFt9.js +810 -0
  356. package/dist/sas-fpEvgATw.js +8 -0
  357. package/dist/sass-DxHp5rTx.js +6 -0
  358. package/dist/scala-D4grkFkl.js +6 -0
  359. package/dist/scheme-BCRWuEm4.js +6 -0
  360. package/dist/scss-B1FaCqwR.js +8 -0
  361. package/dist/sdbl-B7T8abf4.js +6 -0
  362. package/dist/sequenceDiagram-WL72ISMW-CZ6inTco.js +2511 -0
  363. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  364. package/dist/shellscript-InADTalH.js +6 -0
  365. package/dist/shellsession-DiDJNQdy.js +8 -0
  366. package/dist/slack-dark-i7wN4OET.js +4 -0
  367. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  368. package/dist/smalltalk-BlI1_OkM.js +6 -0
  369. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  370. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  371. package/dist/solarized-light-BheCkDPT.js +4 -0
  372. package/dist/solidity-DUWnFhS6.js +6 -0
  373. package/dist/soy-C1-6njHa.js +8 -0
  374. package/dist/sparql-B0KWFEri.js +8 -0
  375. package/dist/splunk-CRXR8A9s.js +6 -0
  376. package/dist/sql-Cn_v3PB0.js +6 -0
  377. package/dist/ssh-config-DP-hNVbF.js +6 -0
  378. package/dist/stata-B8c5fTjX.js +8 -0
  379. package/dist/stateDiagram-FKZM4ZOC-BjHpkttt.js +264 -0
  380. package/dist/stateDiagram-v2-4FDKWEC3-SoFWin9i.js +16 -0
  381. package/dist/stylus-CyKEU1Ej.js +6 -0
  382. package/dist/surrealql-CQi7GQN7.js +8 -0
  383. package/dist/svelte-rYri41WT.js +14 -0
  384. package/dist/swift-DJpUqPLg.js +6 -0
  385. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  386. package/dist/system-verilog-BCm7smPJ.js +6 -0
  387. package/dist/systemd-C-4qm6XH.js +6 -0
  388. package/dist/talonscript-CFF3LF_O.js +6 -0
  389. package/dist/tasl-Cg_WBUAe.js +6 -0
  390. package/dist/tcl-DN7buRTF.js +6 -0
  391. package/dist/templ-Crs9Ui8q.js +12 -0
  392. package/dist/terraform-DGvcn9zM.js +6 -0
  393. package/dist/tex-AHxmLTL0.js +8 -0
  394. package/dist/timeline-definition-IT6M3QCI-axILemxx.js +795 -0
  395. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  396. package/dist/toml-DY62mUL_.js +6 -0
  397. package/dist/treemap-KMMF4GRG-DLUO0usq.js +5 -0
  398. package/dist/ts-tags-BUclWxCG.js +41 -0
  399. package/dist/tsv-BtvSkaG0.js +6 -0
  400. package/dist/tsx-B8rCNbgL.js +6 -0
  401. package/dist/turtle-_H59FV7D.js +6 -0
  402. package/dist/twig-DwV2Fi4L.js +18 -0
  403. package/dist/typescript-RycA9KXf.js +6 -0
  404. package/dist/typespec-DWqp-kUU.js +6 -0
  405. package/dist/typst-D_1QKWns.js +6 -0
  406. package/dist/v-BPCNiyYe.js +6 -0
  407. package/dist/vala-uxaPR7d1.js +6 -0
  408. package/dist/vb-D8_c5-KN.js +6 -0
  409. package/dist/verilog-B-bybjPF.js +6 -0
  410. package/dist/vesper-BckBta1U.js +4 -0
  411. package/dist/vhdl-CUlNa8ac.js +6 -0
  412. package/dist/viml-DsfA-sWm.js +6 -0
  413. package/dist/vitesse-black-BoGvW84i.js +4 -0
  414. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  415. package/dist/vitesse-light-CcmG315c.js +4 -0
  416. package/dist/vue-DXEmyXn9.js +31 -0
  417. package/dist/vue-html-j9xNEdu3.js +8 -0
  418. package/dist/vue-vine-D41-N99t.js +18 -0
  419. package/dist/vyper-CPQuu50u.js +6 -0
  420. package/dist/wasm-BBXxrAl7.js +6 -0
  421. package/dist/wasm-DQxwEHae.js +7 -0
  422. package/dist/wenyan-pbVjoM9_.js +6 -0
  423. package/dist/wgsl-DY4iK1q1.js +6 -0
  424. package/dist/wikitext-Z-MoUasO.js +6 -0
  425. package/dist/wit-CQMQOlTg.js +6 -0
  426. package/dist/wolfram-Dz4KXISs.js +6 -0
  427. package/dist/xml-C2J0sS9M.js +8 -0
  428. package/dist/xsl-BmSZphgC.js +8 -0
  429. package/dist/xychartDiagram-PRI3JC2R-C7nmWmlk.js +1340 -0
  430. package/dist/yaml-DaO7k5B1.js +6 -0
  431. package/dist/zenscript-CxBjpf9c.js +6 -0
  432. package/dist/zig-Vm0PO9wB.js +6 -0
  433. package/package.json +134 -0
@@ -0,0 +1,702 @@
1
+ import { p as Y } from "./chunk-4BX2VUAB-96IoYLlF.js";
2
+ import { I as K } from "./chunk-QZHKN3VN-DedBAq5I.js";
3
+ import { _ as l, q as U, p as V, s as X, g as J, a as Q, b as Z, l as m, c as rr, d as er, u as tr, C as ar, y as sr, k as C, D as nr, E as or, F as cr, G as ir } from "./mermaidParser.worker-DueMsnUe.js";
4
+ import { p as dr } from "./treemap-KMMF4GRG-Bx903ckh.js";
5
+ import "./_baseUniq-DcdXmdC4.js";
6
+ import "./_basePickBy-Cpv34cvw.js";
7
+ import "./clone-D3-moMc7.js";
8
+ var x = {
9
+ NORMAL: 0,
10
+ REVERSE: 1,
11
+ HIGHLIGHT: 2,
12
+ MERGE: 3,
13
+ CHERRY_PICK: 4
14
+ }, hr = cr.gitGraph, I = /* @__PURE__ */ l(() => nr({
15
+ ...hr,
16
+ ...or().gitGraph
17
+ }), "getConfig"), c = new K(() => {
18
+ const t = I(), r = t.mainBranchName, s = t.mainBranchOrder;
19
+ return {
20
+ mainBranchName: r,
21
+ commits: /* @__PURE__ */ new Map(),
22
+ head: null,
23
+ branchConfig: /* @__PURE__ */ new Map([[r, { name: r, order: s }]]),
24
+ branches: /* @__PURE__ */ new Map([[r, null]]),
25
+ currBranch: r,
26
+ direction: "LR",
27
+ seq: 0,
28
+ options: {}
29
+ };
30
+ });
31
+ function A() {
32
+ return ir({ length: 7 });
33
+ }
34
+ l(A, "getID");
35
+ function F(t, r) {
36
+ const s = /* @__PURE__ */ Object.create(null);
37
+ return t.reduce((n, e) => {
38
+ const a = r(e);
39
+ return s[a] || (s[a] = !0, n.push(e)), n;
40
+ }, []);
41
+ }
42
+ l(F, "uniqBy");
43
+ var lr = /* @__PURE__ */ l(function(t) {
44
+ c.records.direction = t;
45
+ }, "setDirection"), $r = /* @__PURE__ */ l(function(t) {
46
+ m.debug("options str", t), t = t?.trim(), t = t || "{}";
47
+ try {
48
+ c.records.options = JSON.parse(t);
49
+ } catch (r) {
50
+ m.error("error while parsing gitGraph options", r.message);
51
+ }
52
+ }, "setOptions"), fr = /* @__PURE__ */ l(function() {
53
+ return c.records.options;
54
+ }, "getOptions"), gr = /* @__PURE__ */ l(function(t) {
55
+ let r = t.msg, s = t.id;
56
+ const n = t.type;
57
+ let e = t.tags;
58
+ m.info("commit", r, s, n, e), m.debug("Entering commit:", r, s, n, e);
59
+ const a = I();
60
+ s = C.sanitizeText(s, a), r = C.sanitizeText(r, a), e = e?.map((o) => C.sanitizeText(o, a));
61
+ const d = {
62
+ id: s || c.records.seq + "-" + A(),
63
+ message: r,
64
+ seq: c.records.seq++,
65
+ type: n ?? x.NORMAL,
66
+ tags: e ?? [],
67
+ parents: c.records.head == null ? [] : [c.records.head.id],
68
+ branch: c.records.currBranch
69
+ };
70
+ c.records.head = d, m.info("main branch", a.mainBranchName), c.records.commits.has(d.id) && m.warn(`Commit ID ${d.id} already exists`), c.records.commits.set(d.id, d), c.records.branches.set(c.records.currBranch, d.id), m.debug("in pushCommit " + d.id);
71
+ }, "commit"), yr = /* @__PURE__ */ l(function(t) {
72
+ let r = t.name;
73
+ const s = t.order;
74
+ if (r = C.sanitizeText(r, I()), c.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
+ c.records.branches.set(r, c.records.head != null ? c.records.head.id : null), c.records.branchConfig.set(r, { name: r, order: s }), z(r), m.debug("in createBranch");
79
+ }, "branch"), ur = /* @__PURE__ */ l((t) => {
80
+ let r = t.branch, s = t.id;
81
+ const n = t.type, e = t.tags, a = I();
82
+ r = C.sanitizeText(r, a), s && (s = C.sanitizeText(s, a));
83
+ const d = c.records.branches.get(c.records.currBranch), o = c.records.branches.get(r), f = d ? c.records.commits.get(d) : void 0, h = o ? c.records.commits.get(o) : void 0;
84
+ if (f && h && f.branch === r)
85
+ throw new Error(`Cannot merge branch '${r}' into itself.`);
86
+ if (c.records.currBranch === r) {
87
+ const i = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
88
+ throw i.hash = {
89
+ text: `merge ${r}`,
90
+ token: `merge ${r}`,
91
+ expected: ["branch abc"]
92
+ }, i;
93
+ }
94
+ if (f === void 0 || !f) {
95
+ const i = new Error(
96
+ `Incorrect usage of "merge". Current branch (${c.records.currBranch})has no commits`
97
+ );
98
+ throw i.hash = {
99
+ text: `merge ${r}`,
100
+ token: `merge ${r}`,
101
+ expected: ["commit"]
102
+ }, i;
103
+ }
104
+ if (!c.records.branches.has(r)) {
105
+ const i = new Error(
106
+ 'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
107
+ );
108
+ throw i.hash = {
109
+ text: `merge ${r}`,
110
+ token: `merge ${r}`,
111
+ expected: [`branch ${r}`]
112
+ }, i;
113
+ }
114
+ if (h === void 0 || !h) {
115
+ const i = new Error(
116
+ 'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
117
+ );
118
+ throw i.hash = {
119
+ text: `merge ${r}`,
120
+ token: `merge ${r}`,
121
+ expected: ['"commit"']
122
+ }, i;
123
+ }
124
+ if (f === h) {
125
+ const i = new Error('Incorrect usage of "merge". Both branches have same head');
126
+ throw i.hash = {
127
+ text: `merge ${r}`,
128
+ token: `merge ${r}`,
129
+ expected: ["branch abc"]
130
+ }, i;
131
+ }
132
+ if (s && c.records.commits.has(s)) {
133
+ const i = new Error(
134
+ 'Incorrect usage of "merge". Commit with id:' + s + " already exists, use different custom id"
135
+ );
136
+ throw i.hash = {
137
+ text: `merge ${r} ${s} ${n} ${e?.join(" ")}`,
138
+ token: `merge ${r} ${s} ${n} ${e?.join(" ")}`,
139
+ expected: [
140
+ `merge ${r} ${s}_UNIQUE ${n} ${e?.join(" ")}`
141
+ ]
142
+ }, i;
143
+ }
144
+ const $ = o || "", g = {
145
+ id: s || `${c.records.seq}-${A()}`,
146
+ message: `merged branch ${r} into ${c.records.currBranch}`,
147
+ seq: c.records.seq++,
148
+ parents: c.records.head == null ? [] : [c.records.head.id, $],
149
+ branch: c.records.currBranch,
150
+ type: x.MERGE,
151
+ customType: n,
152
+ customId: !!s,
153
+ tags: e ?? []
154
+ };
155
+ c.records.head = g, c.records.commits.set(g.id, g), c.records.branches.set(c.records.currBranch, g.id), m.debug(c.records.branches), m.debug("in mergeBranch");
156
+ }, "merge"), pr = /* @__PURE__ */ l(function(t) {
157
+ let r = t.id, s = t.targetId, n = t.tags, e = t.parent;
158
+ m.debug("Entering cherryPick:", r, s, n);
159
+ const a = I();
160
+ if (r = C.sanitizeText(r, a), s = C.sanitizeText(s, a), n = n?.map((f) => C.sanitizeText(f, a)), e = C.sanitizeText(e, a), !r || !c.records.commits.has(r)) {
161
+ const f = new Error(
162
+ 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
163
+ );
164
+ throw f.hash = {
165
+ text: `cherryPick ${r} ${s}`,
166
+ token: `cherryPick ${r} ${s}`,
167
+ expected: ["cherry-pick abc"]
168
+ }, f;
169
+ }
170
+ const d = c.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 (e && !(Array.isArray(d.parents) && d.parents.includes(e)))
174
+ throw new Error(
175
+ "Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
176
+ );
177
+ const o = d.branch;
178
+ if (d.type === x.MERGE && !e)
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 (!s || !c.records.commits.has(s)) {
183
+ if (o === c.records.currBranch) {
184
+ const g = new Error(
185
+ 'Incorrect usage of "cherryPick". Source commit is already on current branch'
186
+ );
187
+ throw g.hash = {
188
+ text: `cherryPick ${r} ${s}`,
189
+ token: `cherryPick ${r} ${s}`,
190
+ expected: ["cherry-pick abc"]
191
+ }, g;
192
+ }
193
+ const f = c.records.branches.get(c.records.currBranch);
194
+ if (f === void 0 || !f) {
195
+ const g = new Error(
196
+ `Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`
197
+ );
198
+ throw g.hash = {
199
+ text: `cherryPick ${r} ${s}`,
200
+ token: `cherryPick ${r} ${s}`,
201
+ expected: ["cherry-pick abc"]
202
+ }, g;
203
+ }
204
+ const h = c.records.commits.get(f);
205
+ if (h === void 0 || !h) {
206
+ const g = new Error(
207
+ `Incorrect usage of "cherry-pick". Current branch (${c.records.currBranch})has no commits`
208
+ );
209
+ throw g.hash = {
210
+ text: `cherryPick ${r} ${s}`,
211
+ token: `cherryPick ${r} ${s}`,
212
+ expected: ["cherry-pick abc"]
213
+ }, g;
214
+ }
215
+ const $ = {
216
+ id: c.records.seq + "-" + A(),
217
+ message: `cherry-picked ${d?.message} into ${c.records.currBranch}`,
218
+ seq: c.records.seq++,
219
+ parents: c.records.head == null ? [] : [c.records.head.id, d.id],
220
+ branch: c.records.currBranch,
221
+ type: x.CHERRY_PICK,
222
+ tags: n ? n.filter(Boolean) : [
223
+ `cherry-pick:${d.id}${d.type === x.MERGE ? `|parent:${e}` : ""}`
224
+ ]
225
+ };
226
+ c.records.head = $, c.records.commits.set($.id, $), c.records.branches.set(c.records.currBranch, $.id), m.debug(c.records.branches), m.debug("in cherryPick");
227
+ }
228
+ }, "cherryPick"), z = /* @__PURE__ */ l(function(t) {
229
+ if (t = C.sanitizeText(t, I()), c.records.branches.has(t)) {
230
+ c.records.currBranch = t;
231
+ const r = c.records.branches.get(c.records.currBranch);
232
+ r === void 0 || !r ? c.records.head = null : c.records.head = c.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 H(t, r, s) {
245
+ const n = t.indexOf(r);
246
+ n === -1 ? t.push(s) : t.splice(n, 1, s);
247
+ }
248
+ l(H, "upsert");
249
+ function P(t) {
250
+ const r = t.reduce((e, a) => e.seq > a.seq ? e : a, t[0]);
251
+ let s = "";
252
+ t.forEach(function(e) {
253
+ e === r ? s += " *" : s += " |";
254
+ });
255
+ const n = [s, r.id, r.seq];
256
+ for (const e in c.records.branches)
257
+ c.records.branches.get(e) === r.id && n.push(e);
258
+ if (m.debug(n.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
259
+ const e = c.records.commits.get(r.parents[0]);
260
+ H(t, r, e), r.parents[1] && t.push(c.records.commits.get(r.parents[1]));
261
+ } else {
262
+ if (r.parents.length == 0)
263
+ return;
264
+ if (r.parents[0]) {
265
+ const e = c.records.commits.get(r.parents[0]);
266
+ H(t, r, e);
267
+ }
268
+ }
269
+ t = F(t, (e) => e.id), P(t);
270
+ }
271
+ l(P, "prettyPrintCommitHistory");
272
+ var xr = /* @__PURE__ */ l(function() {
273
+ m.debug(c.records.commits);
274
+ const t = N()[0];
275
+ P([t]);
276
+ }, "prettyPrint"), mr = /* @__PURE__ */ l(function() {
277
+ c.reset(), sr();
278
+ }, "clear"), br = /* @__PURE__ */ l(function() {
279
+ return [...c.records.branchConfig.values()].map((r, s) => r.order !== null && r.order !== void 0 ? r : {
280
+ ...r,
281
+ order: parseFloat(`0.${s}`)
282
+ }).sort((r, s) => (r.order ?? 0) - (s.order ?? 0)).map(({ name: r }) => ({ name: r }));
283
+ }, "getBranchesAsObjArray"), wr = /* @__PURE__ */ l(function() {
284
+ return c.records.branches;
285
+ }, "getBranches"), vr = /* @__PURE__ */ l(function() {
286
+ return c.records.commits;
287
+ }, "getCommits"), N = /* @__PURE__ */ l(function() {
288
+ const t = [...c.records.commits.values()];
289
+ return t.forEach(function(r) {
290
+ m.debug(r.id);
291
+ }), t.sort((r, s) => r.seq - s.seq), t;
292
+ }, "getCommitsArray"), Cr = /* @__PURE__ */ l(function() {
293
+ return c.records.currBranch;
294
+ }, "getCurrentBranch"), Er = /* @__PURE__ */ l(function() {
295
+ return c.records.direction;
296
+ }, "getDirection"), Tr = /* @__PURE__ */ l(function() {
297
+ return c.records.head;
298
+ }, "getHead"), S = {
299
+ commitType: x,
300
+ getConfig: I,
301
+ setDirection: lr,
302
+ setOptions: $r,
303
+ getOptions: fr,
304
+ commit: gr,
305
+ branch: yr,
306
+ merge: ur,
307
+ cherryPick: pr,
308
+ checkout: z,
309
+ //reset,
310
+ prettyPrint: xr,
311
+ clear: mr,
312
+ getBranchesAsObjArray: br,
313
+ getBranches: wr,
314
+ getCommits: vr,
315
+ getCommitsArray: N,
316
+ getCurrentBranch: Cr,
317
+ getDirection: Er,
318
+ getHead: Tr,
319
+ setAccTitle: Z,
320
+ getAccTitle: Q,
321
+ getAccDescription: J,
322
+ setAccDescription: X,
323
+ setDiagramTitle: V,
324
+ getDiagramTitle: U
325
+ }, Br = /* @__PURE__ */ l((t, r) => {
326
+ Y(t, r), t.dir && r.setDirection(t.dir);
327
+ for (const s of t.statements)
328
+ Lr(s, r);
329
+ }, "populate"), Lr = /* @__PURE__ */ l((t, r) => {
330
+ const n = {
331
+ Commit: /* @__PURE__ */ l((e) => r.commit(kr(e)), "Commit"),
332
+ Branch: /* @__PURE__ */ l((e) => r.branch(Mr(e)), "Branch"),
333
+ Merge: /* @__PURE__ */ l((e) => r.merge(Ir(e)), "Merge"),
334
+ Checkout: /* @__PURE__ */ l((e) => r.checkout(Rr(e)), "Checkout"),
335
+ CherryPicking: /* @__PURE__ */ l((e) => r.cherryPick(Gr(e)), "CherryPicking")
336
+ }[t.$type];
337
+ n ? n(t) : m.error(`Unknown statement type: ${t.$type}`);
338
+ }, "parseStatement"), kr = /* @__PURE__ */ l((t) => ({
339
+ id: t.id,
340
+ msg: t.message ?? "",
341
+ type: t.type !== void 0 ? x[t.type] : x.NORMAL,
342
+ tags: t.tags ?? void 0
343
+ }), "parseCommit"), Mr = /* @__PURE__ */ l((t) => ({
344
+ name: t.name,
345
+ order: t.order ?? 0
346
+ }), "parseBranch"), Ir = /* @__PURE__ */ l((t) => ({
347
+ branch: t.branch,
348
+ id: t.id ?? "",
349
+ type: t.type !== void 0 ? x[t.type] : void 0,
350
+ tags: t.tags ?? void 0
351
+ }), "parseMerge"), Rr = /* @__PURE__ */ l((t) => t.branch, "parseCheckout"), Gr = /* @__PURE__ */ l((t) => ({
352
+ id: t.id,
353
+ targetId: "",
354
+ tags: t.tags?.length === 0 ? void 0 : t.tags,
355
+ parent: t.parent
356
+ }), "parseCherryPicking"), Or = {
357
+ parse: /* @__PURE__ */ l(async (t) => {
358
+ const r = await dr("gitGraph", t);
359
+ m.debug(r), Br(r, S);
360
+ }, "parse")
361
+ }, qr = rr(), v = qr?.gitGraph, L = 10, k = 40, E = 4, T = 2, M = 8, b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), O = 30, R = /* @__PURE__ */ new Map(), q = [], B = 0, u = "LR", Ar = /* @__PURE__ */ l(() => {
362
+ b.clear(), w.clear(), R.clear(), B = 0, q = [], u = "LR";
363
+ }, "clear"), W = /* @__PURE__ */ l((t) => {
364
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
365
+ return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((n) => {
366
+ const e = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
367
+ e.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), e.setAttribute("dy", "1em"), e.setAttribute("x", "0"), e.setAttribute("class", "row"), e.textContent = n.trim(), r.appendChild(e);
368
+ }), r;
369
+ }, "drawText"), j = /* @__PURE__ */ l((t) => {
370
+ let r, s, n;
371
+ return u === "BT" ? (s = /* @__PURE__ */ l((e, a) => e <= a, "comparisonFunc"), n = 1 / 0) : (s = /* @__PURE__ */ l((e, a) => e >= a, "comparisonFunc"), n = 0), t.forEach((e) => {
372
+ const a = u === "TB" || u == "BT" ? w.get(e)?.y : w.get(e)?.x;
373
+ a !== void 0 && s(a, n) && (r = e, n = a);
374
+ }), r;
375
+ }, "findClosestParent"), _r = /* @__PURE__ */ l((t) => {
376
+ let r = "", s = 1 / 0;
377
+ return t.forEach((n) => {
378
+ const e = w.get(n).y;
379
+ e <= s && (r = n, s = e);
380
+ }), r || void 0;
381
+ }, "findClosestParentBT"), Hr = /* @__PURE__ */ l((t, r, s) => {
382
+ let n = s, e = s;
383
+ const a = [];
384
+ t.forEach((d) => {
385
+ const o = r.get(d);
386
+ if (!o)
387
+ throw new Error(`Commit not found for key ${d}`);
388
+ o.parents.length ? (n = Dr(o), e = Math.max(n, e)) : a.push(o), Fr(o, n);
389
+ }), n = e, a.forEach((d) => {
390
+ zr(d, n, s);
391
+ }), t.forEach((d) => {
392
+ const o = r.get(d);
393
+ if (o?.parents.length) {
394
+ const f = _r(o.parents);
395
+ n = w.get(f).y - k, n <= e && (e = n);
396
+ const h = b.get(o.branch).pos, $ = n - L;
397
+ w.set(o.id, { x: h, y: $ });
398
+ }
399
+ });
400
+ }, "setParallelBTPos"), Pr = /* @__PURE__ */ l((t) => {
401
+ const r = j(t.parents.filter((n) => n !== null));
402
+ if (!r)
403
+ throw new Error(`Closest parent not found for commit ${t.id}`);
404
+ const s = w.get(r)?.y;
405
+ if (s === void 0)
406
+ throw new Error(`Closest parent position not found for commit ${t.id}`);
407
+ return s;
408
+ }, "findClosestParentPos"), Dr = /* @__PURE__ */ l((t) => Pr(t) + k, "calculateCommitPosition"), Fr = /* @__PURE__ */ l((t, r) => {
409
+ const s = b.get(t.branch);
410
+ if (!s)
411
+ throw new Error(`Branch not found for commit ${t.id}`);
412
+ const n = s.pos, e = r + L;
413
+ return w.set(t.id, { x: n, y: e }), { x: n, y: e };
414
+ }, "setCommitPosition"), zr = /* @__PURE__ */ l((t, r, s) => {
415
+ const n = b.get(t.branch);
416
+ if (!n)
417
+ throw new Error(`Branch not found for commit ${t.id}`);
418
+ const e = r + s, a = n.pos;
419
+ w.set(t.id, { x: a, y: e });
420
+ }, "setRootPosition"), Nr = /* @__PURE__ */ l((t, r, s, n, e, a) => {
421
+ if (a === x.HIGHLIGHT)
422
+ t.append("rect").attr("x", s.x - 10).attr("y", s.y - 10).attr("width", 20).attr("height", 20).attr(
423
+ "class",
424
+ `commit ${r.id} commit-highlight${e % M} ${n}-outer`
425
+ ), t.append("rect").attr("x", s.x - 6).attr("y", s.y - 6).attr("width", 12).attr("height", 12).attr(
426
+ "class",
427
+ `commit ${r.id} commit${e % M} ${n}-inner`
428
+ );
429
+ else if (a === x.CHERRY_PICK)
430
+ t.append("circle").attr("cx", s.x).attr("cy", s.y).attr("r", 10).attr("class", `commit ${r.id} ${n}`), t.append("circle").attr("cx", s.x - 3).attr("cy", s.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${n}`), t.append("circle").attr("cx", s.x + 3).attr("cy", s.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${n}`), t.append("line").attr("x1", s.x + 3).attr("y1", s.y + 1).attr("x2", s.x).attr("y2", s.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${n}`), t.append("line").attr("x1", s.x - 3).attr("y1", s.y + 1).attr("x2", s.x).attr("y2", s.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${n}`);
431
+ else {
432
+ const d = t.append("circle");
433
+ if (d.attr("cx", s.x), d.attr("cy", s.y), d.attr("r", r.type === x.MERGE ? 9 : 10), d.attr("class", `commit ${r.id} commit${e % M}`), a === x.MERGE) {
434
+ const o = t.append("circle");
435
+ o.attr("cx", s.x), o.attr("cy", s.y), o.attr("r", 6), o.attr(
436
+ "class",
437
+ `commit ${n} ${r.id} commit${e % M}`
438
+ );
439
+ }
440
+ a === x.REVERSE && t.append("path").attr(
441
+ "d",
442
+ `M ${s.x - 5},${s.y - 5}L${s.x + 5},${s.y + 5}M${s.x - 5},${s.y + 5}L${s.x + 5},${s.y - 5}`
443
+ ).attr("class", `commit ${n} ${r.id} commit${e % M}`);
444
+ }
445
+ }, "drawCommitBullet"), Sr = /* @__PURE__ */ l((t, r, s, n) => {
446
+ if (r.type !== x.CHERRY_PICK && (r.customId && r.type === x.MERGE || r.type !== x.MERGE) && v?.showCommitLabel) {
447
+ const e = t.append("g"), a = e.insert("rect").attr("class", "commit-label-bkg"), d = e.append("text").attr("x", n).attr("y", s.y + 25).attr("class", "commit-label").text(r.id), o = d.node()?.getBBox();
448
+ if (o && (a.attr("x", s.posWithOffset - o.width / 2 - T).attr("y", s.y + 13.5).attr("width", o.width + 2 * T).attr("height", o.height + 2 * T), u === "TB" || u === "BT" ? (a.attr("x", s.x - (o.width + 4 * E + 5)).attr("y", s.y - 12), d.attr("x", s.x - (o.width + 4 * E)).attr("y", s.y + o.height - 12)) : d.attr("x", s.posWithOffset - o.width / 2), v.rotateCommitLabel))
449
+ if (u === "TB" || u === "BT")
450
+ d.attr(
451
+ "transform",
452
+ "rotate(-45, " + s.x + ", " + s.y + ")"
453
+ ), a.attr(
454
+ "transform",
455
+ "rotate(-45, " + s.x + ", " + s.y + ")"
456
+ );
457
+ else {
458
+ const f = -7.5 - (o.width + 10) / 25 * 9.5, h = 10 + o.width / 25 * 8.5;
459
+ e.attr(
460
+ "transform",
461
+ "translate(" + f + ", " + h + ") rotate(-45, " + n + ", " + s.y + ")"
462
+ );
463
+ }
464
+ }
465
+ }, "drawCommitLabel"), Wr = /* @__PURE__ */ l((t, r, s, n) => {
466
+ if (r.tags.length > 0) {
467
+ let e = 0, a = 0, d = 0;
468
+ const o = [];
469
+ for (const f of r.tags.reverse()) {
470
+ const h = t.insert("polygon"), $ = t.append("circle"), g = t.append("text").attr("y", s.y - 16 - e).attr("class", "tag-label").text(f), i = g.node()?.getBBox();
471
+ if (!i)
472
+ throw new Error("Tag bbox not found");
473
+ a = Math.max(a, i.width), d = Math.max(d, i.height), g.attr("x", s.posWithOffset - i.width / 2), o.push({
474
+ tag: g,
475
+ hole: $,
476
+ rect: h,
477
+ yOffset: e
478
+ }), e += 20;
479
+ }
480
+ for (const { tag: f, hole: h, rect: $, yOffset: g } of o) {
481
+ const i = d / 2, y = s.y - 19.2 - g;
482
+ if ($.attr("class", "tag-label-bkg").attr(
483
+ "points",
484
+ `
485
+ ${n - a / 2 - E / 2},${y + T}
486
+ ${n - a / 2 - E / 2},${y - T}
487
+ ${s.posWithOffset - a / 2 - E},${y - i - T}
488
+ ${s.posWithOffset + a / 2 + E},${y - i - T}
489
+ ${s.posWithOffset + a / 2 + E},${y + i + T}
490
+ ${s.posWithOffset - a / 2 - E},${y + i + T}`
491
+ ), h.attr("cy", y).attr("cx", n - a / 2 + E / 2).attr("r", 1.5).attr("class", "tag-hole"), u === "TB" || u === "BT") {
492
+ const p = n + g;
493
+ $.attr("class", "tag-label-bkg").attr(
494
+ "points",
495
+ `
496
+ ${s.x},${p + 2}
497
+ ${s.x},${p - 2}
498
+ ${s.x + L},${p - i - 2}
499
+ ${s.x + L + a + 4},${p - i - 2}
500
+ ${s.x + L + a + 4},${p + i + 2}
501
+ ${s.x + L},${p + i + 2}`
502
+ ).attr("transform", "translate(12,12) rotate(45, " + s.x + "," + n + ")"), h.attr("cx", s.x + E / 2).attr("cy", p).attr("transform", "translate(12,12) rotate(45, " + s.x + "," + n + ")"), f.attr("x", s.x + 5).attr("y", p + 3).attr("transform", "translate(14,14) rotate(45, " + s.x + "," + n + ")");
503
+ }
504
+ }
505
+ }
506
+ }, "drawCommitTags"), jr = /* @__PURE__ */ l((t) => {
507
+ switch (t.customType ?? t.type) {
508
+ case x.NORMAL:
509
+ return "commit-normal";
510
+ case x.REVERSE:
511
+ return "commit-reverse";
512
+ case x.HIGHLIGHT:
513
+ return "commit-highlight";
514
+ case x.MERGE:
515
+ return "commit-merge";
516
+ case x.CHERRY_PICK:
517
+ return "commit-cherry-pick";
518
+ default:
519
+ return "commit-normal";
520
+ }
521
+ }, "getCommitClassType"), Yr = /* @__PURE__ */ l((t, r, s, n) => {
522
+ const e = { x: 0, y: 0 };
523
+ if (t.parents.length > 0) {
524
+ const a = j(t.parents);
525
+ if (a) {
526
+ const d = n.get(a) ?? e;
527
+ return r === "TB" ? d.y + k : r === "BT" ? (n.get(t.id) ?? e).y - k : d.x + k;
528
+ }
529
+ } else
530
+ return r === "TB" ? O : r === "BT" ? (n.get(t.id) ?? e).y - k : 0;
531
+ return 0;
532
+ }, "calculatePosition"), Kr = /* @__PURE__ */ l((t, r, s) => {
533
+ const n = u === "BT" && s ? r : r + L, e = u === "TB" || u === "BT" ? n : b.get(t.branch)?.pos, a = u === "TB" || u === "BT" ? b.get(t.branch)?.pos : n;
534
+ if (a === void 0 || e === void 0)
535
+ throw new Error(`Position were undefined for commit ${t.id}`);
536
+ return { x: a, y: e, posWithOffset: n };
537
+ }, "getCommitPosition"), D = /* @__PURE__ */ l((t, r, s) => {
538
+ if (!v)
539
+ throw new Error("GitGraph config not found");
540
+ const n = t.append("g").attr("class", "commit-bullets"), e = t.append("g").attr("class", "commit-labels");
541
+ let a = u === "TB" || u === "BT" ? O : 0;
542
+ const d = [...r.keys()], o = v?.parallelCommits ?? !1, f = /* @__PURE__ */ l(($, g) => {
543
+ const i = r.get($)?.seq, y = r.get(g)?.seq;
544
+ return i !== void 0 && y !== void 0 ? i - y : 0;
545
+ }, "sortKeys");
546
+ let h = d.sort(f);
547
+ u === "BT" && (o && Hr(h, r, a), h = h.reverse()), h.forEach(($) => {
548
+ const g = r.get($);
549
+ if (!g)
550
+ throw new Error(`Commit not found for key ${$}`);
551
+ o && (a = Yr(g, u, a, w));
552
+ const i = Kr(g, a, o);
553
+ if (s) {
554
+ const y = jr(g), p = g.customType ?? g.type, _ = b.get(g.branch)?.index ?? 0;
555
+ Nr(n, g, i, y, _, p), Sr(e, g, i, a), Wr(e, g, i, a);
556
+ }
557
+ u === "TB" || u === "BT" ? w.set(g.id, { x: i.x, y: i.posWithOffset }) : w.set(g.id, { x: i.posWithOffset, y: i.y }), a = u === "BT" && o ? a + k : a + k + L, a > B && (B = a);
558
+ });
559
+ }, "drawCommits"), Ur = /* @__PURE__ */ l((t, r, s, n, e) => {
560
+ const d = (u === "TB" || u === "BT" ? s.x < n.x : s.y < n.y) ? r.branch : t.branch, o = /* @__PURE__ */ l((h) => h.branch === d, "isOnBranchToGetCurve"), f = /* @__PURE__ */ l((h) => h.seq > t.seq && h.seq < r.seq, "isBetweenCommits");
561
+ return [...e.values()].some((h) => f(h) && o(h));
562
+ }, "shouldRerouteArrow"), G = /* @__PURE__ */ l((t, r, s = 0) => {
563
+ const n = t + Math.abs(t - r) / 2;
564
+ if (s > 5)
565
+ return n;
566
+ if (q.every((d) => Math.abs(d - n) >= 10))
567
+ return q.push(n), n;
568
+ const a = Math.abs(t - r);
569
+ return G(t, r - a / 5, s + 1);
570
+ }, "findLane"), Vr = /* @__PURE__ */ l((t, r, s, n) => {
571
+ const e = w.get(r.id), a = w.get(s.id);
572
+ if (e === void 0 || a === void 0)
573
+ throw new Error(`Commit positions not found for commits ${r.id} and ${s.id}`);
574
+ const d = Ur(r, s, e, a, n);
575
+ let o = "", f = "", h = 0, $ = 0, g = b.get(s.branch)?.index;
576
+ s.type === x.MERGE && r.id !== s.parents[0] && (g = b.get(r.branch)?.index);
577
+ let i;
578
+ if (d) {
579
+ o = "A 10 10, 0, 0, 0,", f = "A 10 10, 0, 0, 1,", h = 10, $ = 10;
580
+ const y = e.y < a.y ? G(e.y, a.y) : G(a.y, e.y), p = e.x < a.x ? G(e.x, a.x) : G(a.x, e.x);
581
+ u === "TB" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${p - h} ${e.y} ${f} ${p} ${e.y + $} L ${p} ${a.y - h} ${o} ${p + $} ${a.y} L ${a.x} ${a.y}` : (g = b.get(r.branch)?.index, i = `M ${e.x} ${e.y} L ${p + h} ${e.y} ${o} ${p} ${e.y + $} L ${p} ${a.y - h} ${f} ${p - $} ${a.y} L ${a.x} ${a.y}`) : u === "BT" ? e.x < a.x ? i = `M ${e.x} ${e.y} L ${p - h} ${e.y} ${o} ${p} ${e.y - $} L ${p} ${a.y + h} ${f} ${p + $} ${a.y} L ${a.x} ${a.y}` : (g = b.get(r.branch)?.index, i = `M ${e.x} ${e.y} L ${p + h} ${e.y} ${f} ${p} ${e.y - $} L ${p} ${a.y + h} ${o} ${p - $} ${a.y} L ${a.x} ${a.y}`) : e.y < a.y ? i = `M ${e.x} ${e.y} L ${e.x} ${y - h} ${o} ${e.x + $} ${y} L ${a.x - h} ${y} ${f} ${a.x} ${y + $} L ${a.x} ${a.y}` : (g = b.get(r.branch)?.index, i = `M ${e.x} ${e.y} L ${e.x} ${y + h} ${f} ${e.x + $} ${y} L ${a.x - h} ${y} ${o} ${a.x} ${y - $} L ${a.x} ${a.y}`);
582
+ } else
583
+ o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, u === "TB" ? (e.x < a.x && (s.type === x.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${o} ${e.x + $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${f} ${a.x} ${e.y + $} L ${a.x} ${a.y}`), e.x > a.x && (o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, s.type === x.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${f} ${e.x - $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x + h} ${e.y} ${o} ${a.x} ${e.y + $} L ${a.x} ${a.y}`), e.x === a.x && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`)) : u === "BT" ? (e.x < a.x && (s.type === x.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${f} ${e.x + $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}`), e.x > a.x && (o = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", h = 20, $ = 20, s.type === x.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${o} ${e.x - $} ${a.y} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}`), e.x === a.x && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`)) : (e.y < a.y && (s.type === x.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${f} ${a.x} ${e.y + $} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${e.x} ${a.y - h} ${o} ${e.x + $} ${a.y} L ${a.x} ${a.y}`), e.y > a.y && (s.type === x.MERGE && r.id !== s.parents[0] ? i = `M ${e.x} ${e.y} L ${a.x - h} ${e.y} ${o} ${a.x} ${e.y - $} L ${a.x} ${a.y}` : i = `M ${e.x} ${e.y} L ${e.x} ${a.y + h} ${f} ${e.x + $} ${a.y} L ${a.x} ${a.y}`), e.y === a.y && (i = `M ${e.x} ${e.y} L ${a.x} ${a.y}`));
584
+ if (i === void 0)
585
+ throw new Error("Line definition not found");
586
+ t.append("path").attr("d", i).attr("class", "arrow arrow" + g % M);
587
+ }, "drawArrow"), Xr = /* @__PURE__ */ l((t, r) => {
588
+ const s = t.append("g").attr("class", "commit-arrows");
589
+ [...r.keys()].forEach((n) => {
590
+ const e = r.get(n);
591
+ e.parents && e.parents.length > 0 && e.parents.forEach((a) => {
592
+ Vr(s, r.get(a), e, r);
593
+ });
594
+ });
595
+ }, "drawArrows"), Jr = /* @__PURE__ */ l((t, r) => {
596
+ const s = t.append("g");
597
+ r.forEach((n, e) => {
598
+ const a = e % M, d = b.get(n.name)?.pos;
599
+ if (d === void 0)
600
+ throw new Error(`Position not found for branch ${n.name}`);
601
+ const o = s.append("line");
602
+ o.attr("x1", 0), o.attr("y1", d), o.attr("x2", B), o.attr("y2", d), o.attr("class", "branch branch" + a), u === "TB" ? (o.attr("y1", O), o.attr("x1", d), o.attr("y2", B), o.attr("x2", d)) : u === "BT" && (o.attr("y1", B), o.attr("x1", d), o.attr("y2", O), o.attr("x2", d)), q.push(d);
603
+ const f = n.name, h = W(f), $ = s.insert("rect"), i = s.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
604
+ i.node().appendChild(h);
605
+ const y = h.getBBox();
606
+ $.attr("class", "branchLabelBkg label" + a).attr("rx", 4).attr("ry", 4).attr("x", -y.width - 4 - (v?.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -y.height / 2 + 8).attr("width", y.width + 18).attr("height", y.height + 4), i.attr(
607
+ "transform",
608
+ "translate(" + (-y.width - 14 - (v?.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (d - y.height / 2 - 1) + ")"
609
+ ), u === "TB" ? ($.attr("x", d - y.width / 2 - 10).attr("y", 0), i.attr("transform", "translate(" + (d - y.width / 2 - 5) + ", 0)")) : u === "BT" ? ($.attr("x", d - y.width / 2 - 10).attr("y", B), i.attr("transform", "translate(" + (d - y.width / 2 - 5) + ", " + B + ")")) : $.attr("transform", "translate(-19, " + (d - y.height / 2) + ")");
610
+ });
611
+ }, "drawBranches"), Qr = /* @__PURE__ */ l(function(t, r, s, n, e) {
612
+ return b.set(t, { pos: r, index: s }), r += 50 + (e ? 40 : 0) + (u === "TB" || u === "BT" ? n.width / 2 : 0), r;
613
+ }, "setBranchPosition"), Zr = /* @__PURE__ */ l(function(t, r, s, n) {
614
+ if (Ar(), m.debug("in gitgraph renderer", t + `
615
+ `, "id:", r, s), !v)
616
+ throw new Error("GitGraph config not found");
617
+ const e = v.rotateCommitLabel ?? !1, a = n.db;
618
+ R = a.getCommits();
619
+ const d = a.getBranchesAsObjArray();
620
+ u = a.getDirection();
621
+ const o = er(`[id="${r}"]`);
622
+ let f = 0;
623
+ d.forEach((h, $) => {
624
+ const g = W(h.name), i = o.append("g"), y = i.insert("g").attr("class", "branchLabel"), p = y.insert("g").attr("class", "label branch-label");
625
+ p.node()?.appendChild(g);
626
+ const _ = g.getBBox();
627
+ f = Qr(h.name, f, $, _, e), p.remove(), y.remove(), i.remove();
628
+ }), D(o, R, !1), v.showBranches && Jr(o, d), Xr(o, R), D(o, R, !0), tr.insertTitle(
629
+ o,
630
+ "gitTitleText",
631
+ v.titleTopMargin ?? 0,
632
+ a.getDiagramTitle()
633
+ ), ar(
634
+ void 0,
635
+ o,
636
+ v.diagramPadding,
637
+ v.useMaxWidth
638
+ );
639
+ }, "draw"), re = {
640
+ draw: Zr
641
+ }, ee = /* @__PURE__ */ l((t) => `
642
+ .commit-id,
643
+ .commit-msg,
644
+ .branch-label {
645
+ fill: lightgrey;
646
+ color: lightgrey;
647
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
648
+ font-family: var(--mermaid-font-family);
649
+ }
650
+ ${[0, 1, 2, 3, 4, 5, 6, 7].map(
651
+ (r) => `
652
+ .branch-label${r} { fill: ${t["gitBranchLabel" + r]}; }
653
+ .commit${r} { stroke: ${t["git" + r]}; fill: ${t["git" + r]}; }
654
+ .commit-highlight${r} { stroke: ${t["gitInv" + r]}; fill: ${t["gitInv" + r]}; }
655
+ .label${r} { fill: ${t["git" + r]}; }
656
+ .arrow${r} { stroke: ${t["git" + r]}; }
657
+ `
658
+ ).join(`
659
+ `)}
660
+
661
+ .branch {
662
+ stroke-width: 1;
663
+ stroke: ${t.lineColor};
664
+ stroke-dasharray: 2;
665
+ }
666
+ .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
667
+ .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
668
+ .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
669
+ .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
670
+ .tag-hole { fill: ${t.textColor}; }
671
+
672
+ .commit-merge {
673
+ stroke: ${t.primaryColor};
674
+ fill: ${t.primaryColor};
675
+ }
676
+ .commit-reverse {
677
+ stroke: ${t.primaryColor};
678
+ fill: ${t.primaryColor};
679
+ stroke-width: 3;
680
+ }
681
+ .commit-highlight-outer {
682
+ }
683
+ .commit-highlight-inner {
684
+ stroke: ${t.primaryColor};
685
+ fill: ${t.primaryColor};
686
+ }
687
+
688
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
689
+ .gitTitleText {
690
+ text-anchor: middle;
691
+ font-size: 18px;
692
+ fill: ${t.textColor};
693
+ }
694
+ `, "getStyles"), te = ee, he = {
695
+ parser: Or,
696
+ db: S,
697
+ renderer: re,
698
+ styles: te
699
+ };
700
+ export {
701
+ he as diagram
702
+ };