@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,196 @@
1
+ import { defineComponent as c2, ref as m, computed as O, watch as Y, nextTick as j, onMounted as d2, onBeforeUnmount as h2, createElementBlock as c, openBlock as s, normalizeClass as a, createCommentVNode as k, withDirectives as v2, createBlock as g2, renderSlot as q, createElementVNode as o, unref as i, toDisplayString as z, normalizeStyle as A, vShow as w2, Teleport as m2, createVNode as p2, Transition as x2, withCtx as y2, withModifiers as C2 } from "vue";
2
+ import { l as f2, u as k2, r as l2, b as b2 } from "./RenderContent-Dlqka7tn.js";
3
+ var R = ($, J, r) => new Promise((l, b) => {
4
+ var v = (y) => {
5
+ try {
6
+ w(r.next(y));
7
+ } catch (p) {
8
+ b(p);
9
+ }
10
+ }, g = (y) => {
11
+ try {
12
+ w(r.throw(y));
13
+ } catch (p) {
14
+ b(p);
15
+ }
16
+ }, w = (y) => y.done ? l(y.value) : Promise.resolve(y.value).then(v, g);
17
+ w((r = r.apply($, J)).next());
18
+ });
19
+ const a2 = () => import("./infographic_markstream-vue_false-BfsmcXxk.js");
20
+ let U = null, M2 = a2;
21
+ const B2 = { key: 0 }, D2 = { key: 1, class: "flex items-center gap-x-2 overflow-hidden" }, F2 = ["src"], T2 = { key: 2 }, j2 = { class: "flex items-center gap-x-1" }, $2 = { class: "flex items-center gap-x-1" }, E2 = { key: 4 }, z2 = { key: 5, class: "flex items-center gap-x-1" }, L2 = ["aria-pressed"], Z2 = { key: 0, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, H2 = { key: 1, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, I2 = ["disabled"], P2 = ["disabled"], S2 = { key: 0, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "0.75rem", height: "0.75rem", viewBox: "0 0 24 24" }, V2 = { key: 1, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "0.75rem", height: "0.75rem", viewBox: "0 0 24 24" }, X2 = { key: 1, class: "relative" }, _2 = { key: 0, class: "absolute top-2 right-2 z-10 rounded-lg" }, O2 = { class: "flex items-center gap-2 backdrop-blur rounded-lg" }, Y2 = { class: "markstream-vue" }, R2 = { class: "absolute top-6 right-6 z-50 flex items-center gap-2" }, Q = /* @__PURE__ */ f2(/* @__PURE__ */ c2({ __name: "InfographicBlockNode", props: { node: {}, maxHeight: { default: "500px" }, loading: { type: Boolean, default: !0 }, isDark: { type: Boolean }, showHeader: { type: Boolean, default: !0 }, showModeToggle: { type: Boolean, default: !0 }, showCopyButton: { type: Boolean, default: !0 }, showCollapseButton: { type: Boolean, default: !0 }, showExportButton: { type: Boolean, default: !0 }, showFullscreenButton: { type: Boolean, default: !0 }, showZoomControls: { type: Boolean, default: !0 } }, emits: ["copy", "export", "openModal"], setup($, { emit: J }) {
22
+ const r = $, { t: l } = k2(), b = m(!1), v = m(!1), g = m(), w = m(!1), y = m("360px"), p = m(!1), M = m(), L = m(null), f = m(1), B = m(0), D = m(0), F = m(!1), Z = m({ x: 0, y: 0 }), H = O(() => r.node.code);
23
+ function K(t) {
24
+ return !t || t.disabled;
25
+ }
26
+ function h(t, e, n = "top") {
27
+ if (K(t.currentTarget)) return;
28
+ const u = t, x = u?.clientX != null && u?.clientY != null ? { x: u.clientX, y: u.clientY } : void 0;
29
+ l2(t.currentTarget, e, n, !1, x, r.isDark);
30
+ }
31
+ function d() {
32
+ b2();
33
+ }
34
+ function W(t) {
35
+ if (K(t.currentTarget)) return;
36
+ const e = b.value ? l("common.copied") || "Copied" : l("common.copy") || "Copy", n = t, u = n?.clientX != null && n?.clientY != null ? { x: n.clientX, y: n.clientY } : void 0;
37
+ l2(t.currentTarget, e, "top", !1, u, r.isDark);
38
+ }
39
+ function i2() {
40
+ return R(this, null, function* () {
41
+ try {
42
+ const t = H.value;
43
+ typeof navigator < "u" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(t)), b.value = !0, setTimeout(() => {
44
+ b.value = !1;
45
+ }, 1e3);
46
+ } catch (t) {
47
+ console.error("Failed to copy:", t);
48
+ }
49
+ });
50
+ }
51
+ function e2(t) {
52
+ w.value = t === "source";
53
+ }
54
+ function s2() {
55
+ var t;
56
+ const e = (t = g.value) == null ? void 0 : t.querySelector("svg");
57
+ e ? (function(n) {
58
+ R(this, null, function* () {
59
+ try {
60
+ const u = new XMLSerializer().serializeToString(n), x = new Blob([u], { type: "image/svg+xml;charset=utf-8" }), _ = URL.createObjectURL(x);
61
+ if (typeof document < "u") {
62
+ const E = document.createElement("a");
63
+ E.href = _, E.download = `infographic-${Date.now()}.svg`;
64
+ try {
65
+ document.body.appendChild(E), E.click(), document.body.removeChild(E);
66
+ } catch {
67
+ }
68
+ URL.revokeObjectURL(_);
69
+ }
70
+ } catch (u) {
71
+ console.error("Failed to export SVG:", u);
72
+ }
73
+ });
74
+ })(e) : console.error("SVG element not found");
75
+ }
76
+ function N(t) {
77
+ t.key === "Escape" && p.value && G();
78
+ }
79
+ function G() {
80
+ if (p.value = !1, M.value && (M.value.innerHTML = ""), L.value = null, typeof document < "u") try {
81
+ document.body.style.overflow = "";
82
+ } catch {
83
+ }
84
+ if (typeof window < "u") try {
85
+ window.removeEventListener("keydown", N);
86
+ } catch {
87
+ }
88
+ }
89
+ function u2() {
90
+ (function() {
91
+ if (p.value = !0, typeof document < "u") try {
92
+ document.body.style.overflow = "hidden";
93
+ } catch {
94
+ }
95
+ if (typeof window < "u") try {
96
+ window.addEventListener("keydown", N);
97
+ } catch {
98
+ }
99
+ j(() => {
100
+ if (g.value && M.value) {
101
+ M.value.innerHTML = "";
102
+ const t = document.createElement("div");
103
+ t.style.transition = "transform 0.1s ease", t.style.transformOrigin = "center center", t.style.width = "100%", t.style.height = "100%", t.style.display = "flex", t.style.alignItems = "center", t.style.justifyContent = "center";
104
+ const e = g.value.cloneNode(!0);
105
+ e.classList.add("fullscreen"), e.style.height = "auto", t.appendChild(e), M.value.appendChild(t), L.value = t, t.style.transform = `translate(${B.value}px, ${D.value}px) scale(${f.value})`;
106
+ }
107
+ });
108
+ })();
109
+ }
110
+ function t2() {
111
+ f.value < 3 && (f.value += 0.1);
112
+ }
113
+ function o2() {
114
+ f.value > 0.5 && (f.value -= 0.1);
115
+ }
116
+ function n2() {
117
+ f.value = 1, B.value = 0, D.value = 0;
118
+ }
119
+ function I(t) {
120
+ F.value = !0, t instanceof MouseEvent ? Z.value = { x: t.clientX - B.value, y: t.clientY - D.value } : Z.value = { x: t.touches[0].clientX - B.value, y: t.touches[0].clientY - D.value };
121
+ }
122
+ function P(t) {
123
+ if (!F.value) return;
124
+ let e, n;
125
+ t instanceof MouseEvent ? (e = t.clientX, n = t.clientY) : (e = t.touches[0].clientX, n = t.touches[0].clientY), B.value = e - Z.value.x, D.value = n - Z.value.y;
126
+ }
127
+ function T() {
128
+ F.value = !1;
129
+ }
130
+ let C = null;
131
+ function S() {
132
+ return R(this, null, function* () {
133
+ var t;
134
+ if (g.value) try {
135
+ const e = yield (function() {
136
+ return R(this, null, function* () {
137
+ if (U) return U;
138
+ const n = M2;
139
+ if (!n) return null;
140
+ let u;
141
+ try {
142
+ u = yield n();
143
+ } catch (_) {
144
+ throw n === a2 ? new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.') : _;
145
+ }
146
+ if (!u) return null;
147
+ const x = u && u.default ? u.default : u;
148
+ return U = typeof x == "function" && x.prototype && x.prototype.render ? x : u.Infographic ? u.Infographic : x && x.Infographic ? x.Infographic : x, U;
149
+ });
150
+ })();
151
+ if (!e) return void console.warn("Infographic library failed to load.");
152
+ C && ((t = C.destroy) == null || t.call(C), C = null), g.value.innerHTML = "", C = new e({ container: g.value, width: "100%", height: "100%" }), C.render(H.value), j(() => {
153
+ if (g.value) {
154
+ const n = g.value.scrollHeight;
155
+ n > 0 && (y.value = `${Math.min(n, 800)}px`);
156
+ }
157
+ });
158
+ } catch (e) {
159
+ console.error("Failed to render infographic:", e), g.value && (g.value.innerHTML = `<div class="text-red-500 p-4">Failed to render infographic: ${e instanceof Error ? e.message : "Unknown error"}</div>`);
160
+ }
161
+ });
162
+ }
163
+ Y(() => H.value, () => {
164
+ w.value || v.value || j(() => {
165
+ S();
166
+ });
167
+ }), Y(() => w.value, (t) => {
168
+ t || v.value || j(() => {
169
+ S();
170
+ });
171
+ }), Y(() => v.value, (t) => {
172
+ t || w.value || j(() => {
173
+ S();
174
+ });
175
+ }), d2(() => {
176
+ w.value || v.value || j(() => {
177
+ S();
178
+ });
179
+ }), h2(() => {
180
+ var t;
181
+ if (C && ((t = C.destroy) == null || t.call(C), C = null), typeof window < "u") try {
182
+ window.removeEventListener("keydown", N);
183
+ } catch {
184
+ }
185
+ });
186
+ const V = O(() => r.isDark ? "infographic-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200" : "infographic-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"), X = O(() => w.value || v.value), r2 = O(() => ({ transform: `translate(${B.value}px, ${D.value}px) scale(${f.value})` }));
187
+ return Y(r2, (t) => {
188
+ p.value && L.value && (L.value.style.transform = t.transform);
189
+ }), (t, e) => (s(), c("div", { class: a(["my-4 rounded-lg border overflow-hidden shadow-sm", [r.isDark ? "border-gray-700/30" : "border-gray-200", { "is-rendering": r.loading }]]) }, [r.showHeader ? (s(), c("div", { key: 0, class: a(["infographic-block-header flex justify-between items-center px-4 py-2.5 border-b", r.isDark ? "bg-gray-800 border-gray-700/30" : "bg-gray-50 border-gray-200"]) }, [t.$slots["header-left"] ? (s(), c("div", B2, [q(t.$slots, "header-left", {}, void 0, !0)])) : (s(), c("div", D2, [o("img", { src: i("data:image/svg+xml,%3csvg%20width='15.52'%20height='16'%20viewBox='0%200%20291%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M140.904%20239.376C128.83%20239.683%20119.675%20239.299%20115.448%20243.843C110.902%20248.07%20111.288%20257.227%20110.979%20269.302C111.118%20274.675%20111.118%20279.478%20111.472%20283.52C111.662%20285.638%20111.95%20287.547%20112.406%20289.224C112.411%20289.243%20112.416%20289.259%20112.422%20289.28C112.462%20289.419%20112.496%20289.558%20112.539%20289.691C113.168%20291.787%20114.088%20293.491%20115.446%20294.758C116.662%20296.064%20118.283%20296.963%20120.264%20297.59C120.36%20297.614%20120.464%20297.646%20120.555%20297.675C120.56%20297.68%20120.56%20297.68%20120.566%20297.68C120.848%20297.768%20121.142%20297.846%20121.443%20297.923C121.454%20297.923%20121.464%20297.928%20121.478%20297.934C122.875%20298.272%20124.424%20298.507%20126.11%20298.678C126.326%20298.696%20126.542%20298.718%20126.763%20298.739C130.79%20299.086%20135.558%20299.088%20140.904%20299.222C152.974%20298.912%20162.128%20299.302%20166.36%20294.758C170.904%20290.526%20170.515%20281.371%20170.824%20269.302C170.515%20257.227%20170.907%20248.07%20166.36%20243.843C162.131%20239.299%20152.974%20239.683%20140.904%20239.376Z'%20fill='%23FF6376'%3e%3c/path%3e%3cpath%20d='M21.2155%20128.398C12.6555%20128.616%206.16484%20128.339%203.16751%20131.56C-0.0538222%20134.56%200.218178%20141.054%20-0.000488281%20149.608C0.218178%20158.168%20-0.0538222%20164.659%203.16751%20167.656C6.16484%20170.878%2012.6555%20170.606%2021.2155%20170.824C25.0262%20170.726%2028.4288%20170.726%2031.2955%20170.475C32.7968%20170.342%2034.1488%20170.136%2035.3382%20169.814C35.3542%20169.811%2035.3648%20169.806%2035.3782%20169.803C35.4768%20169.774%2035.5755%20169.747%2035.6688%20169.718C37.1568%20169.272%2038.3648%20168.622%2039.2635%20167.656C40.1915%20166.795%2040.8262%20165.646%2041.2715%20164.243C41.2875%20164.174%2041.3115%20164.102%2041.3328%20164.035C41.3328%20164.035%2041.3355%20164.032%2041.3355%20164.027C41.3968%20163.827%2041.4529%20163.622%2041.5062%20163.406C41.5062%20163.398%2041.5115%20163.392%2041.5142%20163.382C41.7542%20162.392%2041.9222%20161.294%2042.0422%20160.096C42.0555%20159.944%2042.0715%20159.792%2042.0848%20159.635C42.3328%20156.779%2042.3328%20153.398%2042.4262%20149.608C42.2075%20141.054%2042.4848%20134.56%2039.2635%20131.56C36.2635%20128.339%2029.7728%20128.616%2021.2155%20128.398Z'%20fill='%23FFCCCC'%3e%3c/path%3e%3cpath%20d='M81.0595%20184.171C70.8568%20184.433%2063.1208%20184.102%2059.5475%20187.942C55.7075%20191.518%2056.0328%20199.254%2055.7742%20209.454C56.0328%20219.657%2055.7075%20227.393%2059.5475%20230.963C63.1208%20234.803%2070.8568%20234.478%2081.0595%20234.739C85.6008%20234.622%2089.6595%20234.622%2093.0728%20234.323C94.8648%20234.163%2096.4755%20233.921%2097.8942%20233.534C97.9102%20233.529%2097.9235%20233.526%2097.9422%20233.521C98.0568%20233.486%2098.1742%20233.457%2098.2888%20233.422C100.06%20232.889%20101.5%20232.113%20102.569%20230.963C103.676%20229.937%20104.433%20228.566%20104.964%20226.894C104.985%20226.811%20105.012%20226.726%20105.036%20226.646C105.041%20226.643%20105.041%20226.643%20105.041%20226.638C105.116%20226.401%20105.18%20226.153%20105.244%20225.897C105.244%20225.889%20105.249%20225.881%20105.254%20225.867C105.54%20224.689%20105.74%20223.379%20105.881%20221.953C105.9%20221.771%20105.916%20221.59%20105.934%20221.403C106.228%20218.001%20106.228%20213.969%20106.342%20209.454C106.081%20199.254%20106.412%20191.518%20102.572%20187.942C98.9955%20184.102%2091.2568%20184.433%2081.0595%20184.171Z'%20fill='%23FF939F'%3e%3c/path%3e%3cpath%20d='M260.591%20151.87C215.652%20151.87%20203.02%20164.523%20203.02%20209.462H198.476C198.476%20164.523%20185.836%20151.881%20140.895%20151.881V147.337C185.836%20147.337%20198.487%20134.705%20198.487%2089.7659H203.02C203.02%20134.705%20215.652%20147.337%20260.591%20147.337V151.87ZM286.052%20124.158C281.82%20119.614%20272.66%20120.001%20260.591%20119.689C248.521%20119.385%20239.361%20119.771%20235.129%20115.227C230.585%20110.995%20230.983%20101.846%20230.671%2089.7659C230.513%2083.7312%20230.535%2078.4272%20230.023%2074.1019C229.513%2069.7659%20228.481%2066.4219%20226.209%2064.3046C221.967%2059.7606%20212.817%2060.1472%20200.748%2059.8459C188.681%2060.1472%20179.519%2059.7606%20175.287%2064.3046C170.753%2068.5366%20171.129%2077.6966%20170.828%2089.7659C170.516%20101.835%20170.9%20110.995%20166.356%20115.227C162.124%20119.771%20152.985%20119.374%20140.905%20119.689C138.873%20119.739%20136.924%20119.771%20135.071%20119.811C119.313%20118.697%20106.337%20112.318%20106.337%2089.7659C106.212%2084.6699%20106.233%2080.1792%20105.807%2076.5206C105.367%2072.8726%20104.492%2070.0379%20102.575%2068.2566C99.0013%2064.4112%2091.2573%2064.7446%2081.0653%2064.4832C70.86%2064.7446%2063.1186%2064.4112%2059.5533%2068.2566C55.708%2071.8299%2056.0306%2079.5632%2055.7693%2089.7659C56.0306%2099.9686%2055.708%20107.702%2059.5533%20111.278C63.1186%20115.113%2070.86%20114.79%2081.0653%20115.049C103.617%20115.049%20109.996%20128.035%20111.1%20143.803C111.068%20145.659%20111.028%20147.587%20110.975%20149.619C111.121%20154.987%20111.121%20159.79%20111.476%20163.835C111.663%20165.95%20111.945%20167.857%20112.404%20169.534C112.412%20169.555%20112.412%20169.566%20112.423%20169.598C112.465%20169.734%20112.497%20169.867%20112.537%20170.003C113.164%20172.099%20114.092%20173.809%20115.447%20175.07C116.665%20176.371%20118.281%20177.278%20120.271%20177.905C120.364%20177.934%20120.46%20177.955%20120.564%20177.987C120.855%20178.081%20121.145%20178.153%20121.439%20178.238C121.46%20178.238%20121.471%20178.238%20121.479%20178.249C122.876%20178.582%20124.42%20178.822%20126.108%20178.987C126.327%20179.009%20126.545%20179.03%20126.764%20179.051C130.788%20179.395%20135.559%20179.395%20140.905%20179.529C152.975%20179.843%20162.124%20179.457%20166.356%20184.001C170.9%20188.233%20170.516%20197.371%20170.828%20209.451C171.129%20221.529%20170.743%20230.681%20175.287%20234.91C179.519%20239.454%20188.681%20239.07%20200.748%20239.371C206.127%20239.235%20210.921%20239.235%20214.975%20238.881C217.079%20238.694%20218.985%20238.403%20220.676%20237.955C220.695%20237.945%20220.705%20237.934%20220.727%20237.934C220.873%20237.891%20220.999%20237.859%20221.135%20237.819C223.228%20237.193%20224.937%20236.265%20226.209%20234.91C227.511%20233.691%20228.409%20232.065%20229.044%20230.097C229.065%20230.003%20229.095%20229.899%20229.127%20229.803V229.793C229.22%20229.513%20229.295%20229.222%20229.367%20228.918C229.367%20228.897%20229.377%20228.897%20229.377%20228.878C229.721%20227.481%20229.951%20225.937%20230.127%20224.249C230.137%20224.03%20230.169%20223.811%20230.191%20223.593C230.535%20219.571%20230.535%20214.798%20230.671%20209.451C230.972%20197.371%20230.585%20188.233%20235.129%20184.001C239.361%20179.457%20248.511%20179.843%20260.591%20179.529C272.66%20179.227%20281.82%20179.614%20286.052%20175.07C290.596%20170.838%20290.209%20161.689%20290.511%20149.619C290.209%20137.539%20290.596%20128.379%20286.052%20124.158Z'%20fill='%23FF356A'%3e%3c/path%3e%3cpath%20d='M112.405%2049.848C112.411%2049.8694%20112.416%2049.8827%20112.421%2049.904C112.461%2050.0427%20112.499%2050.1814%20112.539%2050.3147C113.171%2052.4134%20114.088%2054.1147%20115.448%2055.384C116.661%2056.6907%20118.283%2057.5894%20120.264%2058.2134C120.36%2058.24%20120.464%2058.2694%20120.555%2058.3014C120.56%2058.3067%20120.56%2058.3067%20120.565%2058.3067C120.848%2058.3947%20121.141%2058.4694%20121.443%2058.5467C121.453%2058.5467%20121.464%2058.552%20121.48%2058.5574C122.875%2058.896%20124.424%2059.1334%20126.112%2059.3014C126.325%2059.3227%20126.541%2059.3414%20126.763%2059.3627C130.789%2059.712%20135.56%2059.712%20140.904%2059.8454C152.973%2059.5387%20162.128%2059.928%20166.36%2055.384C170.907%2051.152%20170.515%2041.9947%20170.824%2029.9254C170.517%2017.8507%20170.907%208.69602%20166.363%204.46935C162.131%20-0.0746511%20152.973%200.309349%20140.904%201.52588e-05C128.829%200.309349%20119.675%20-0.0746511%20115.448%204.46935C110.904%208.69602%20111.288%2017.8507%20110.979%2029.9254C111.117%2035.3014%20111.117%2040.1014%20111.472%2044.144C111.661%2046.2614%20111.949%2048.1707%20112.405%2049.848Z'%20fill='%23FF6376'%3e%3c/path%3e%3c/g%3e%3c/svg%3e"), class: "w-4 h-4 my-0", alt: "Infographic" }, null, 8, F2), o("span", { class: a(["text-sm font-medium font-mono truncate", r.isDark ? "text-gray-400" : "text-gray-600"]) }, "Infographic", 2)])), t.$slots["header-center"] ? (s(), c("div", T2, [q(t.$slots, "header-center", {}, void 0, !0)])) : r.showModeToggle ? (s(), c("div", { key: 3, class: a(["flex items-center gap-x-1 rounded-md p-0.5", r.isDark ? "bg-gray-700" : "bg-gray-100"]) }, [o("button", { class: a(["px-2.5 py-1 text-xs rounded transition-colors", [w.value ? r.isDark ? "text-gray-400 hover:text-gray-200" : "text-gray-500 hover:text-gray-700" : r.isDark ? "bg-gray-600 text-gray-200 shadow-sm" : "bg-white text-gray-700 shadow-sm"]]), onClick: e[0] || (e[0] = () => e2("preview")), onMouseenter: e[1] || (e[1] = (n) => h(n, i(l)("common.preview") || "Preview")), onFocus: e[2] || (e[2] = (n) => h(n, i(l)("common.preview") || "Preview")), onMouseleave: d, onBlur: d }, [o("div", j2, [e[21] || (e[21] = o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }), o("circle", { cx: "12", cy: "12", r: "3" })])], -1)), o("span", null, z(i(l)("common.preview") || "Preview"), 1)])], 34), o("button", { class: a(["px-2.5 py-1 text-xs rounded transition-colors", [w.value ? r.isDark ? "bg-gray-600 text-gray-200 shadow-sm" : "bg-white text-gray-700 shadow-sm" : r.isDark ? "text-gray-400 hover:text-gray-200" : "text-gray-500 hover:text-gray-700"]]), onClick: e[3] || (e[3] = () => e2("source")), onMouseenter: e[4] || (e[4] = (n) => h(n, i(l)("common.source") || "Source")), onFocus: e[5] || (e[5] = (n) => h(n, i(l)("common.source") || "Source")), onMouseleave: d, onBlur: d }, [o("div", $2, [e[22] || (e[22] = o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m16 18l6-6l-6-6M8 6l-6 6l6 6" })], -1)), o("span", null, z(i(l)("common.source") || "Source"), 1)])], 34)], 2)) : k("", !0), t.$slots["header-right"] ? (s(), c("div", E2, [q(t.$slots, "header-right", {}, void 0, !0)])) : (s(), c("div", z2, [r.showCollapseButton ? (s(), c("button", { key: 0, class: a(V.value), "aria-pressed": v.value, onClick: e[6] || (e[6] = (n) => v.value = !v.value), onMouseenter: e[7] || (e[7] = (n) => h(n, v.value ? i(l)("common.expand") || "Expand" : i(l)("common.collapse") || "Collapse")), onFocus: e[8] || (e[8] = (n) => h(n, v.value ? i(l)("common.expand") || "Expand" : i(l)("common.collapse") || "Collapse")), onMouseleave: d, onBlur: d }, [(s(), c("svg", { style: A({ rotate: v.value ? "0deg" : "90deg" }), xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [...e[23] || (e[23] = [o("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m9 18l6-6l-6-6" }, null, -1)])], 4))], 42, L2)) : k("", !0), r.showCopyButton ? (s(), c("button", { key: 1, class: a(V.value), onClick: i2, onMouseenter: e[9] || (e[9] = (n) => W(n)), onFocus: e[10] || (e[10] = (n) => W(n)), onMouseleave: d, onBlur: d }, [b.value ? (s(), c("svg", H2, [...e[25] || (e[25] = [o("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M20 6L9 17l-5-5" }, null, -1)])])) : (s(), c("svg", Z2, [...e[24] || (e[24] = [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }), o("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })], -1)])]))], 34)) : k("", !0), r.showExportButton ? (s(), c("button", { key: 2, class: a(`${V.value} ${X.value ? "opacity-50 cursor-not-allowed" : ""}`), disabled: X.value, onClick: s2, onMouseenter: e[11] || (e[11] = (n) => h(n, i(l)("common.export") || "Export")), onFocus: e[12] || (e[12] = (n) => h(n, i(l)("common.export") || "Export")), onMouseleave: d, onBlur: d }, [...e[26] || (e[26] = [o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("path", { d: "M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), o("path", { d: "m7 10l5 5l5-5" })])], -1)])], 42, I2)) : k("", !0), r.showFullscreenButton ? (s(), c("button", { key: 3, class: a(`${V.value} ${X.value ? "opacity-50 cursor-not-allowed" : ""}`), disabled: X.value, onClick: u2, onMouseenter: e[13] || (e[13] = (n) => h(n, p.value ? i(l)("common.minimize") || "Minimize" : i(l)("common.open") || "Open")), onFocus: e[14] || (e[14] = (n) => h(n, p.value ? i(l)("common.minimize") || "Minimize" : i(l)("common.open") || "Open")), onMouseleave: d, onBlur: d }, [p.value ? (s(), c("svg", V2, [...e[28] || (e[28] = [o("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6" }, null, -1)])])) : (s(), c("svg", S2, [...e[27] || (e[27] = [o("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6" }, null, -1)])]))], 42, P2)) : k("", !0)]))], 2)) : k("", !0), v2(o("div", null, [w.value ? (s(), c("div", { key: 0, class: a(["p-4", r.isDark ? "bg-gray-900" : "bg-gray-50"]) }, [o("pre", { class: a(["text-sm font-mono whitespace-pre-wrap", r.isDark ? "text-gray-300" : "text-gray-700"]) }, z(H.value), 3)], 2)) : (s(), c("div", X2, [r.showZoomControls ? (s(), c("div", _2, [o("div", O2, [o("button", { class: a(["p-2 text-xs rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: t2, onMouseenter: e[15] || (e[15] = (n) => h(n, i(l)("common.zoomIn") || "Zoom in")), onFocus: e[16] || (e[16] = (n) => h(n, i(l)("common.zoomIn") || "Zoom in")), onMouseleave: d, onBlur: d }, [...e[29] || (e[29] = [o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("circle", { cx: "11", cy: "11", r: "8" }), o("path", { d: "m21 21l-4.35-4.35M11 8v6m-3-3h6" })])], -1)])], 34), o("button", { class: a(["p-2 text-xs rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: o2, onMouseenter: e[17] || (e[17] = (n) => h(n, i(l)("common.zoomOut") || "Zoom out")), onFocus: e[18] || (e[18] = (n) => h(n, i(l)("common.zoomOut") || "Zoom out")), onMouseleave: d, onBlur: d }, [...e[30] || (e[30] = [o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("circle", { cx: "11", cy: "11", r: "8" }), o("path", { d: "m21 21l-4.35-4.35M8 11h6" })])], -1)])], 34), o("button", { class: a(["p-2 text-xs rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: n2, onMouseenter: e[19] || (e[19] = (n) => h(n, i(l)("common.resetZoom") || "Reset zoom")), onFocus: e[20] || (e[20] = (n) => h(n, i(l)("common.resetZoom") || "Reset zoom")), onMouseleave: d, onBlur: d }, z(Math.round(100 * f.value)) + "% ", 35)])])) : k("", !0), o("div", { class: a(["min-h-[360px] relative transition-all duration-100 overflow-hidden block", r.isDark ? "bg-gray-900" : "bg-gray-50"]), style: A({ height: y.value }), onMousedown: I, onMousemove: P, onMouseup: T, onMouseleave: T, onTouchstartPassive: I, onTouchmovePassive: P, onTouchendPassive: T }, [o("div", { class: a(["absolute inset-0 cursor-grab", { "cursor-grabbing": F.value }]), style: A(r2.value) }, [o("div", { ref_key: "infographicContainer", ref: g, class: "w-full text-center flex items-center justify-center min-h-full" }, null, 512)], 6)], 38)]))], 512), [[w2, !v.value]]), (s(), g2(m2, { to: "body" }, [o("div", Y2, [p2(x2, { name: "infographic-dialog", appear: "" }, { default: y2(() => [p.value ? (s(), c("div", { key: 0, class: "fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4", onClick: C2(G, ["self"]) }, [o("div", { class: a(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden", r.isDark ? "bg-gray-900" : "bg-white"]) }, [o("div", R2, [o("button", { class: a(["p-2 text-xs rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: t2 }, [...e[31] || (e[31] = [o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("circle", { cx: "11", cy: "11", r: "8" }), o("path", { d: "m21 21l-4.35-4.35M11 8v6m-3-3h6" })])], -1)])], 2), o("button", { class: a(["p-2 text-xs rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: o2 }, [...e[32] || (e[32] = [o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [o("circle", { cx: "11", cy: "11", r: "8" }), o("path", { d: "m21 21l-4.35-4.35M8 11h6" })])], -1)])], 2), o("button", { class: a(["p-2 text-xs rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: n2 }, z(Math.round(100 * f.value)) + "% ", 3), o("button", { class: a(["inline-flex items-center justify-center p-2 rounded transition-colors", [r.isDark ? "text-gray-400 hover:bg-gray-700" : "text-gray-600 hover:bg-gray-200"]]), onClick: G }, [...e[33] || (e[33] = [o("svg", { xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [o("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M18 6L6 18M6 6l12 12" })], -1)])], 2)]), o("div", { ref_key: "modalContent", ref: M, class: a(["w-full h-full flex items-center justify-center p-4 overflow-hidden", { "cursor-grab": !F.value, "cursor-grabbing": F.value }]), onMousedown: I, onMousemove: P, onMouseup: T, onMouseleave: T, onTouchstartPassive: I, onTouchmovePassive: P, onTouchendPassive: T }, null, 34)], 2)])) : k("", !0)]), _: 1 })])]))], 2));
190
+ } }), [["__scopeId", "data-v-811a9bef"]]);
191
+ Q.install = ($) => {
192
+ $.component(Q.__name, Q);
193
+ };
194
+ export {
195
+ Q as default
196
+ };
@@ -0,0 +1,217 @@
1
+ import { defineComponent as Le, ref as h, computed as _, createElementBlock as i, watch as K, nextTick as me, onMounted as Pe, onBeforeUnmount as Re, openBlock as u, normalizeClass as X, createCommentVNode as D, withDirectives as _e, createElementVNode as a, unref as c, toDisplayString as M, normalizeStyle as Q, vShow as Ue } from "vue";
2
+ import { l as ze, u as Ve, r as fe, b as Xe, e as Ye } from "./RenderContent-Dlqka7tn.js";
3
+ var $e = Object.defineProperty, ge = Object.getOwnPropertySymbols, qe = Object.prototype.hasOwnProperty, Ge = Object.prototype.propertyIsEnumerable, ye = (v, t, r) => t in v ? $e(v, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : v[t] = r, W = (v, t) => {
4
+ for (var r in t || (t = {})) qe.call(t, r) && ye(v, r, t[r]);
5
+ if (ge) for (var r of ge(t)) Ge.call(t, r) && ye(v, r, t[r]);
6
+ return v;
7
+ }, Z = (v, t, r) => new Promise((C, f) => {
8
+ var w = (m) => {
9
+ try {
10
+ s(r.next(m));
11
+ } catch (p) {
12
+ f(p);
13
+ }
14
+ }, A = (m) => {
15
+ try {
16
+ s(r.throw(m));
17
+ } catch (p) {
18
+ f(p);
19
+ }
20
+ }, s = (m) => m.done ? C(m.value) : Promise.resolve(m.value).then(w, A);
21
+ s((r = r.apply(v, t)).next());
22
+ });
23
+ const Je = { key: 0, class: "d2-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5", style: { color: "var(--vscode-editor-foreground)", "background-color": "var(--vscode-editor-background)" } }, Ke = { class: "flex items-center gap-x-2" }, Qe = ["aria-label"], We = { key: 0, xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, Ze = { key: 1, xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, et = ["aria-label"], tt = ["aria-pressed"], ot = { key: 0, class: "d2-source px-4 py-4" }, nt = { class: "d2-code" }, rt = { key: 0, class: "d2-error mt-2 text-xs" }, lt = { key: 1 }, at = { key: 0, class: "d2-source px-4 py-4" }, it = { class: "d2-code" }, ut = { key: 0, class: "d2-error mt-2 text-xs" }, st = ["innerHTML"], ct = { key: 0, class: "d2-error px-4 pb-3 text-xs" }, ee = /* @__PURE__ */ ze(/* @__PURE__ */ Le({ __name: "D2BlockNode", props: { node: {}, maxHeight: { default: "500px" }, loading: { type: Boolean, default: !0 }, isDark: { type: Boolean }, progressiveRender: { type: Boolean, default: !0 }, progressiveIntervalMs: { default: 700 }, themeId: {}, darkThemeId: {}, showHeader: { type: Boolean, default: !0 }, showModeToggle: { type: Boolean, default: !0 }, showCopyButton: { type: Boolean, default: !0 }, showExportButton: { type: Boolean, default: !0 }, showCollapseButton: { type: Boolean, default: !0 } }, setup(v) {
24
+ const t = v, { t: r } = Ve(), C = h(!1), f = h(!1), w = h(!1), A = h(!1), s = h(null), m = h(!1), p = h(""), N = h(0), U = h(null), Y = h(null), S = _(() => {
25
+ var n;
26
+ return (n = t.node.code) != null ? n : "";
27
+ }), te = _(() => w.value || !A.value || !p.value), he = _(() => !!p.value), we = _(() => {
28
+ if (Y.value) return { minHeight: `${Y.value}px` };
29
+ }), xe = _(() => {
30
+ if (t.maxHeight) return { maxHeight: typeof t.maxHeight == "number" ? `${t.maxHeight}px` : String(t.maxHeight) };
31
+ }), oe = typeof window < "u";
32
+ let x = null, $ = !1, q = !1, ne = 0, T = null, O = !1, H = null;
33
+ const be = { N1: "#E5E7EB", N2: "#CBD5E1", N3: "#94A3B8", N4: "#64748B", N5: "#475569", N6: "#334155", N7: "#0B1220", B1: "#60A5FA", B2: "#3B82F6", B3: "#2563EB", B4: "#1D4ED8", B5: "#1E40AF", B6: "#111827", AA2: "#22D3EE", AA4: "#0EA5E9", AA5: "#0284C7", AB4: "#FBBF24", AB5: "#F59E0B" };
34
+ function re(n) {
35
+ return !n || n.disabled;
36
+ }
37
+ function k(n, e, o = "top") {
38
+ if (re(n.currentTarget)) return;
39
+ const d = n, z = d?.clientX != null && d?.clientY != null ? { x: d.clientX, y: d.clientY } : void 0;
40
+ fe(n.currentTarget, e, o, !1, z, t.isDark);
41
+ }
42
+ function g() {
43
+ Xe();
44
+ }
45
+ function le(n) {
46
+ if (re(n.currentTarget)) return;
47
+ const e = C.value ? r("common.copied") || "Copied" : r("common.copy") || "Copy", o = n, d = o?.clientX != null && o?.clientY != null ? { x: o.clientX, y: o.clientY } : void 0;
48
+ fe(n.currentTarget, e, "top", !1, d, t.isDark);
49
+ }
50
+ function ke() {
51
+ return Z(this, null, function* () {
52
+ try {
53
+ const n = S.value;
54
+ typeof navigator < "u" && navigator.clipboard && typeof navigator.clipboard.writeText == "function" && (yield navigator.clipboard.writeText(n)), C.value = !0, setTimeout(() => {
55
+ C.value = !1;
56
+ }, 1e3);
57
+ } catch (n) {
58
+ console.error("Copy failed:", n);
59
+ }
60
+ });
61
+ }
62
+ function Be() {
63
+ f.value = !f.value;
64
+ }
65
+ function ae(n) {
66
+ w.value = n === "source";
67
+ }
68
+ const De = [/javascript:/i, /expression\s*\(/i, /url\s*\(\s*javascript:/i, /@import/i], Ce = /^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;
69
+ function Ee(n) {
70
+ if (!n) return "";
71
+ const e = n.trim();
72
+ return Ce.test(e) ? e : "";
73
+ }
74
+ function ie() {
75
+ p.value = "";
76
+ }
77
+ function Me() {
78
+ return Z(this, null, function* () {
79
+ var n, e, o, d, z;
80
+ if (!oe || q || t.loading && !t.progressiveRender) return;
81
+ const ue = S.value;
82
+ if (!ue) return ie(), void (s.value = null);
83
+ const V = ++N.value;
84
+ m.value = !0, s.value = null;
85
+ try {
86
+ const b = yield (function() {
87
+ return Z(this, null, function* () {
88
+ if (x) return x;
89
+ const l = yield Ye();
90
+ if (!l) return null;
91
+ if (typeof l == "function") {
92
+ const P = new l();
93
+ return P && typeof P.compile == "function" ? x = P : typeof l.compile == "function" && (x = l), x;
94
+ }
95
+ return l?.D2 && typeof l.D2 == "function" ? (x = new l.D2(), x) : (typeof l.compile == "function" && (x = l), x);
96
+ });
97
+ })();
98
+ if (!b) return A.value = !1, w.value = !0, ie(), void (s.value = "D2 is not available.");
99
+ if (typeof b.compile != "function" || typeof b.render != "function") throw new TypeError("D2 instance is missing compile/render methods.");
100
+ A.value = !0;
101
+ const y = yield b.compile(ue);
102
+ if (V !== N.value) return;
103
+ const Te = (n = y?.diagram) != null ? n : y, j = (o = (e = y?.renderOptions) != null ? e : y?.options) != null ? o : {}, Oe = (d = t.themeId) != null ? d : j.themeID, se = (z = t.darkThemeId) != null ? z : j.darkThemeID, L = W({}, j);
104
+ if (L.themeID = t.isDark && se != null ? se : Oe, L.darkThemeID = null, L.darkThemeOverrides = null, t.isDark) {
105
+ const l = j.themeOverrides && typeof j.themeOverrides == "object" ? j.themeOverrides : null;
106
+ L.themeOverrides = W(W({}, be), l || {});
107
+ }
108
+ const je = yield b.render(Te, L);
109
+ if (V !== N.value) return;
110
+ const ce = (function(l) {
111
+ return l ? typeof l == "string" ? l : typeof l.svg == "string" ? l.svg : typeof l.data == "string" ? l.data : "" : "";
112
+ })(je);
113
+ if (!ce) throw new Error("D2 render returned empty output.");
114
+ (function(l) {
115
+ const P = (function(de) {
116
+ if (typeof window > "u" || typeof DOMParser > "u" || !de) return "";
117
+ const Fe = de.replace(/["']\s*javascript:/gi, "#").replace(/\bjavascript:/gi, "#").replace(/["']\s*vbscript:/gi, "#").replace(/\bvbscript:/gi, "#").replace(/\bdata:text\/html/gi, "#"), J = new DOMParser().parseFromString(Fe, "image/svg+xml").documentElement;
118
+ if (!J || J.nodeName.toLowerCase() !== "svg") return "";
119
+ const ve = J;
120
+ return (function(pe) {
121
+ const Ne = /* @__PURE__ */ new Set(["script"]), Se = [pe, ...Array.from(pe.querySelectorAll("*"))];
122
+ for (const E of Se) {
123
+ if (Ne.has(E.tagName.toLowerCase())) {
124
+ E.remove();
125
+ continue;
126
+ }
127
+ const He = Array.from(E.attributes);
128
+ for (const F of He) {
129
+ const B = F.name;
130
+ if (/^on/i.test(B)) E.removeAttribute(B);
131
+ else {
132
+ if (B === "style" && F.value) {
133
+ const R = F.value;
134
+ if (De.some((Ie) => Ie.test(R))) {
135
+ E.removeAttribute(B);
136
+ continue;
137
+ }
138
+ }
139
+ if ((B === "href" || B === "xlink:href") && F.value) {
140
+ const R = Ee(F.value);
141
+ if (!R) {
142
+ E.removeAttribute(B);
143
+ continue;
144
+ }
145
+ R !== F.value && E.setAttribute(B, R);
146
+ }
147
+ }
148
+ }
149
+ }
150
+ })(ve), ve.outerHTML;
151
+ })(l);
152
+ p.value = P || "";
153
+ })(ce), t.loading && (w.value = !1), s.value = null;
154
+ } catch (b) {
155
+ if (V !== N.value) return;
156
+ const y = b?.message ? String(b.message) : "D2 render failed.";
157
+ t.loading || (s.value = y), y.includes("@terrastruct/d2") && (A.value = !1, w.value = !0);
158
+ } finally {
159
+ V === N.value && (m.value = !1, O && (O = !1, I()));
160
+ }
161
+ });
162
+ }
163
+ function I(n = !1) {
164
+ if ($ || !oe || q) return;
165
+ if (m.value) return void (O = !0);
166
+ const e = Math.max(120, Number(t.progressiveIntervalMs) || 0), o = Date.now() - ne;
167
+ if (!n && o < e) return O = !0, void (T == null && (T = window.setTimeout(() => {
168
+ T = null, O && (O = !1, I(!0));
169
+ }, Math.max(0, e - o))));
170
+ $ = !0;
171
+ const d = () => {
172
+ $ = !1, ne = Date.now(), Me();
173
+ };
174
+ typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(d) : setTimeout(d, 0);
175
+ }
176
+ function Ae() {
177
+ if (p.value) try {
178
+ const n = new Blob([p.value], { type: "image/svg+xml;charset=utf-8" }), e = URL.createObjectURL(n);
179
+ if (typeof document < "u") {
180
+ const o = document.createElement("a");
181
+ o.href = e, o.download = `d2-diagram-${Date.now()}.svg`, document.body.appendChild(o), o.click(), document.body.removeChild(o);
182
+ }
183
+ URL.revokeObjectURL(e);
184
+ } catch (n) {
185
+ console.error("Failed to export SVG:", n);
186
+ }
187
+ }
188
+ function G() {
189
+ const n = U.value;
190
+ if (!n) return;
191
+ const e = n.getBoundingClientRect().height;
192
+ e > 0 && (Y.value = e);
193
+ }
194
+ return K(() => [t.node.code, t.loading, t.isDark], () => {
195
+ I();
196
+ }, { immediate: !0 }), K(() => t.loading, (n, e) => {
197
+ e && !n && I(!0);
198
+ }), K(() => [te.value, p.value, S.value], () => {
199
+ me(() => {
200
+ G();
201
+ });
202
+ }), Pe(() => {
203
+ I(), me(() => {
204
+ G();
205
+ }), typeof ResizeObserver < "u" && (H = new ResizeObserver(() => {
206
+ G();
207
+ }), U.value && H.observe(U.value));
208
+ }), Re(() => {
209
+ q = !0, T != null && (clearTimeout(T), T = null), H?.disconnect(), H = null;
210
+ }), (n, e) => (u(), i("div", { class: X(["d2-block-container my-4 rounded-lg border overflow-hidden shadow-sm", t.isDark ? "border-gray-700/30 bg-gray-900 text-gray-100" : "border-gray-200 bg-white text-gray-900"]) }, [t.showHeader ? (u(), i("div", Je, [e[16] || (e[16] = a("div", { class: "flex items-center gap-x-2" }, [a("span", { class: "text-sm font-medium font-mono" }, "D2")], -1)), a("div", Ke, [t.showModeToggle ? (u(), i("div", { key: 0, class: X(["flex items-center gap-x-1 rounded-md p-0.5", t.isDark ? "bg-gray-700" : "bg-gray-100"]) }, [a("button", { type: "button", class: X(["mode-btn px-2 py-1 text-xs rounded", w.value ? "" : "is-active"]), onClick: e[0] || (e[0] = (o) => ae("preview")), onMouseenter: e[1] || (e[1] = (o) => k(o, c(r)("common.preview") || "Preview")), onFocus: e[2] || (e[2] = (o) => k(o, c(r)("common.preview") || "Preview")), onMouseleave: g, onBlur: g }, M(c(r)("common.preview") || "Preview"), 35), a("button", { type: "button", class: X(["mode-btn px-2 py-1 text-xs rounded", w.value ? "is-active" : ""]), onClick: e[3] || (e[3] = (o) => ae("source")), onMouseenter: e[4] || (e[4] = (o) => k(o, c(r)("common.source") || "Source")), onFocus: e[5] || (e[5] = (o) => k(o, c(r)("common.source") || "Source")), onMouseleave: g, onBlur: g }, M(c(r)("common.source") || "Source"), 35)], 2)) : D("", !0), t.showCopyButton ? (u(), i("button", { key: 1, type: "button", class: "d2-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-label": C.value ? c(r)("common.copied") || "Copied" : c(r)("common.copy") || "Copy", onClick: ke, onMouseenter: e[6] || (e[6] = (o) => le(o)), onFocus: e[7] || (e[7] = (o) => le(o)), onMouseleave: g, onBlur: g }, [C.value ? (u(), i("svg", Ze, [...e[13] || (e[13] = [a("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M20 6L9 17l-5-5" }, null, -1)])])) : (u(), i("svg", We, [...e[12] || (e[12] = [a("g", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2" }, [a("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }), a("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })], -1)])]))], 40, Qe)) : D("", !0), t.showExportButton && p.value ? (u(), i("button", { key: 2, type: "button", class: "d2-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-label": c(r)("common.export") || "Export", onClick: Ae, onMouseenter: e[8] || (e[8] = (o) => k(o, c(r)("common.export") || "Export")), onFocus: e[9] || (e[9] = (o) => k(o, c(r)("common.export") || "Export")), onMouseleave: g, onBlur: g }, [...e[14] || (e[14] = [a("svg", { xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [a("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M12 3v12m0-12l-4 4m4-4l4 4M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4" })], -1)])], 40, et)) : D("", !0), t.showCollapseButton ? (u(), i("button", { key: 3, type: "button", class: "d2-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]", "aria-pressed": f.value, onClick: Be, onMouseenter: e[10] || (e[10] = (o) => k(o, f.value ? c(r)("common.expand") || "Expand" : c(r)("common.collapse") || "Collapse")), onFocus: e[11] || (e[11] = (o) => k(o, f.value ? c(r)("common.expand") || "Expand" : c(r)("common.collapse") || "Collapse")), onMouseleave: g, onBlur: g }, [(u(), i("svg", { style: Q({ rotate: f.value ? "0deg" : "90deg" }), xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", role: "img", width: "1em", height: "1em", viewBox: "0 0 24 24", class: "w-3 h-3" }, [...e[15] || (e[15] = [a("path", { fill: "none", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "m9 18l6-6l-6-6" }, null, -1)])], 4))], 40, tt)) : D("", !0)])])) : D("", !0), _e(a("div", { ref_key: "bodyRef", ref: U, class: "d2-block-body", style: Q(we.value) }, [t.loading && !he.value ? (u(), i("div", ot, [a("pre", nt, [a("code", null, M(S.value), 1)]), s.value ? (u(), i("p", rt, M(s.value), 1)) : D("", !0)])) : (u(), i("div", lt, [te.value ? (u(), i("div", at, [a("pre", it, [a("code", null, M(S.value), 1)]), s.value ? (u(), i("p", ut, M(s.value), 1)) : D("", !0)])) : (u(), i("div", { key: 1, class: "d2-render", style: Q(xe.value) }, [a("div", { class: "d2-svg", innerHTML: p.value }, null, 8, st), s.value ? (u(), i("p", ct, M(s.value), 1)) : D("", !0)], 4))]))], 4), [[Ue, !f.value]])], 2));
211
+ } }), [["__scopeId", "data-v-f9232822"]]);
212
+ ee.install = (v) => {
213
+ v.component(ee.__name, ee);
214
+ };
215
+ export {
216
+ ee as default
217
+ };
@@ -0,0 +1,5 @@
1
+ import { I as r, c as a } from "./mermaid-parser.core-C86xHHvY.js";
2
+ export {
3
+ r as InfoModule,
4
+ a as createInfoServices
5
+ };
@@ -0,0 +1,24 @@
1
+ import { _ as e, l as s, H as o, e as i, I as g } from "./mermaid.core-BIhT9VUC.js";
2
+ import { p } from "./mermaid-parser.core-C86xHHvY.js";
3
+ var v = {
4
+ parse: /* @__PURE__ */ e(async (r) => {
5
+ const a = await p("info", r);
6
+ s.debug(a);
7
+ }, "parse")
8
+ }, d = {
9
+ version: g.version + ""
10
+ }, c = /* @__PURE__ */ e(() => d.version, "getVersion"), m = {
11
+ getVersion: c
12
+ }, l = /* @__PURE__ */ e((r, a, n) => {
13
+ s.debug(`rendering info diagram
14
+ ` + r);
15
+ const t = o(a);
16
+ i(t, 100, 400, !0), t.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${n}`);
17
+ }, "draw"), f = { draw: l }, b = {
18
+ parser: v,
19
+ db: m,
20
+ renderer: f
21
+ };
22
+ export {
23
+ b as diagram
24
+ };
@@ -0,0 +1,5 @@
1
+ const r = {};
2
+ throw new Error('Could not resolve "@antv/infographic" imported by "markstream-vue".');
3
+ export {
4
+ r as default
5
+ };
@@ -0,0 +1,6 @@
1
+ const n = Object.freeze(JSON.parse(`{"displayName":"INI","name":"ini","patterns":[{"begin":"(^[\\\\t ]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ini"}},"end":"(?!\\\\G)","patterns":[{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.ini"}},"end":"\\\\n","name":"comment.line.number-sign.ini"}]},{"begin":"(^[\\\\t ]+)?(?=;)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ini"}},"end":"(?!\\\\G)","patterns":[{"begin":";","beginCaptures":{"0":{"name":"punctuation.definition.comment.ini"}},"end":"\\\\n","name":"comment.line.semicolon.ini"}]},{"captures":{"1":{"name":"keyword.other.definition.ini"},"2":{"name":"punctuation.separator.key-value.ini"}},"match":"\\\\b([-.0-9A-Z_a-z]+)\\\\b\\\\s*(=)"},{"captures":{"1":{"name":"punctuation.definition.entity.ini"},"3":{"name":"punctuation.definition.entity.ini"}},"match":"^(\\\\[)(.*?)(])","name":"entity.name.section.group-title.ini"},{"begin":"'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ini"}},"end":"'","endCaptures":{"0":{"name":"punctuation.definition.string.end.ini"}},"name":"string.quoted.single.ini","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.ini"}]},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ini"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.ini"}},"name":"string.quoted.double.ini"}],"scopeName":"source.ini","aliases":["properties"]}`)), i = [
2
+ n
3
+ ];
4
+ export {
5
+ i as default
6
+ };
@@ -0,0 +1,16 @@
1
+ function t(e, a) {
2
+ switch (arguments.length) {
3
+ case 0:
4
+ break;
5
+ case 1:
6
+ this.range(e);
7
+ break;
8
+ default:
9
+ this.range(a).domain(e);
10
+ break;
11
+ }
12
+ return this;
13
+ }
14
+ export {
15
+ t as i
16
+ };