@automattic/agenttic-ui 0.1.11 → 0.1.13

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 (346) hide show
  1. package/dist/components/chat/ChatInput.d.ts.map +1 -1
  2. package/dist/components/composable/AgentUISuggestions.d.ts +2 -1
  3. package/dist/components/composable/AgentUISuggestions.d.ts.map +1 -1
  4. package/dist/index.css +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2050 -41
  8. package/package.json +2 -5
  9. package/dist/_basePickBy-Co6w2C-t.js +0 -151
  10. package/dist/_baseUniq-BbhifY2s.js +0 -614
  11. package/dist/abap-Y8Dl9g_6.js +0 -6
  12. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  13. package/dist/ada-vP6ak0IW.js +0 -6
  14. package/dist/andromeeda-uXNdzNpk.js +0 -4
  15. package/dist/angular-html-BmadGEgW.js +0 -32
  16. package/dist/angular-ts-D-QQnnGT.js +0 -21
  17. package/dist/apache-BUjz-sD2.js +0 -6
  18. package/dist/apex-D_wPycVx.js +0 -6
  19. package/dist/apl-sitt7C8I.js +0 -16
  20. package/dist/applescript-BPx7YFFu.js +0 -6
  21. package/dist/ara-Z2fSOxSw.js +0 -6
  22. package/dist/arc-DMQNivgh.js +0 -83
  23. package/dist/architecture-O4VJ6CD3-CrsUkgBe.js +0 -5
  24. package/dist/architectureDiagram-KFL7JDKH-BCeU_Tkj.js +0 -4665
  25. package/dist/asciidoc-B-pCoB3G.js +0 -6
  26. package/dist/asm-BTWLY5ym.js +0 -6
  27. package/dist/astro-DHnp0xIo.js +0 -18
  28. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  29. package/dist/awk-Fb0P9dkn.js +0 -6
  30. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  31. package/dist/ballerina-oZK-YekG.js +0 -6
  32. package/dist/bat-0FvbqU9S.js +0 -6
  33. package/dist/beancount-DEfTbbFX.js +0 -6
  34. package/dist/berry-PwsHPR_K.js +0 -6
  35. package/dist/bibtex-EULQRLY5.js +0 -6
  36. package/dist/bicep-DFU2oTl7.js +0 -6
  37. package/dist/blade-OPzGcV14.js +0 -20
  38. package/dist/blockDiagram-ZYB65J3Q-eNfG2owp.js +0 -2265
  39. package/dist/bsl-NkNNwerW.js +0 -8
  40. package/dist/c-eeMepfLm.js +0 -6
  41. package/dist/c4Diagram-AAMF2YG6-CEVcZg_d.js +0 -1581
  42. package/dist/cadence-DMRWHJp4.js +0 -6
  43. package/dist/cairo-DM6WF2e3.js +0 -8
  44. package/dist/catppuccin-frappe-DlGpEc12.js +0 -4
  45. package/dist/catppuccin-latte-DDI4I_Rd.js +0 -4
  46. package/dist/catppuccin-macchiato-BBzuZG5U.js +0 -4
  47. package/dist/catppuccin-mocha-CwrFPXRy.js +0 -4
  48. package/dist/channel-DwkBtswx.js +0 -5
  49. package/dist/chunk-ANTBXLJU-DjsG4Faa.js +0 -9
  50. package/dist/chunk-FHKO5MBM-DvgpKHah.js +0 -15
  51. package/dist/chunk-GLLZNHP4-BS9MWsNn.js +0 -19
  52. package/dist/chunk-JBRWN2VN-BB1oFn95.js +0 -1376
  53. package/dist/chunk-LXBSTHXV-DoWWvL-R.js +0 -1382
  54. package/dist/chunk-NRVI72HA-CN8BG5Yn.js +0 -20
  55. package/dist/chunk-OMD6QJNC-D7UKmZm8.js +0 -64
  56. package/dist/chunk-WVR4S24B-D3bw0yi4.js +0 -8
  57. package/dist/clarity-BseSxcHx.js +0 -6
  58. package/dist/classDiagram-3BZAVTQC-DhpbenB7.js +0 -16
  59. package/dist/classDiagram-v2-QTMF73CY-DhpbenB7.js +0 -16
  60. package/dist/clojure-CXJfHrL3.js +0 -6
  61. package/dist/clone-DmrWxu_i.js +0 -8
  62. package/dist/cmake-BJz8BOTU.js +0 -6
  63. package/dist/cobol-4A8XjHhj.js +0 -10
  64. package/dist/codeowners-Bt9yU6NX.js +0 -6
  65. package/dist/codeql-DHkodjjI.js +0 -6
  66. package/dist/coffee-Dl27lzbd.js +0 -8
  67. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  68. package/dist/coq-B0L9upzn.js +0 -6
  69. package/dist/cpp-Cj177cuW.js +0 -18
  70. package/dist/crystal-ymVvJzbZ.js +0 -18
  71. package/dist/csharp-DmxfTLWR.js +0 -6
  72. package/dist/css-CECN5uSL.js +0 -6
  73. package/dist/csv-CmYOceLb.js +0 -6
  74. package/dist/cue-ZzumE7IT.js +0 -6
  75. package/dist/cypher-jpdmjtA6.js +0 -6
  76. package/dist/cytoscape.esm-ZmItrg9y.js +0 -18731
  77. package/dist/d-CBagWSwH.js +0 -6
  78. package/dist/dagre-2BBEFEWP-DWbEdWsD.js +0 -447
  79. package/dist/dark-plus-pUHDTVV0.js +0 -4
  80. package/dist/dart-6ObCrKr9.js +0 -6
  81. package/dist/dax-CcDT-8dH.js +0 -6
  82. package/dist/defaultLocale-D7EN2tov.js +0 -171
  83. package/dist/desktop-B93p9R9O.js +0 -6
  84. package/dist/diagram-4IRLE6MV-Q8q6qm5n.js +0 -534
  85. package/dist/diagram-GUPCWM2R-B8VhFieT.js +0 -143
  86. package/dist/diagram-RP2FKANI-CYWUKKLB.js +0 -221
  87. package/dist/diff-BxzP2J8R.js +0 -6
  88. package/dist/docker-CsHqm9tx.js +0 -6
  89. package/dist/dotenv-BMjVjUL1.js +0 -6
  90. package/dist/dracula-BtZx2Kac.js +0 -4
  91. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  92. package/dist/dream-maker-PAx17jaB.js +0 -6
  93. package/dist/edge-_LvgTcmu.js +0 -12
  94. package/dist/elixir-BTCUAmQk.js +0 -8
  95. package/dist/elm-BtNbw_Cd.js +0 -8
  96. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  97. package/dist/erDiagram-HZWUO2LU-CC0RhTpv.js +0 -842
  98. package/dist/erb-D0PIpZCP.js +0 -10
  99. package/dist/erlang-xM7DPKQj.js +0 -8
  100. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  101. package/dist/everforest-light-BbXl82Em.js +0 -4
  102. package/dist/fennel-N4WcXuKx.js +0 -6
  103. package/dist/fish-B6QqlqeT.js +0 -6
  104. package/dist/flowDiagram-THRYKUMA-B00E_hY6.js +0 -1627
  105. package/dist/fluent-BMXUxfv1.js +0 -6
  106. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  107. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  108. package/dist/fsharp-BTdsmEUN.js +0 -8
  109. package/dist/ganttDiagram-WV7ZQ7D5-Cv2vsghm.js +0 -2499
  110. package/dist/gdresource-DLfsylRW.js +0 -10
  111. package/dist/gdscript-9lm8qppb.js +0 -6
  112. package/dist/gdshader-Bk8fF6yr.js +0 -6
  113. package/dist/genie-DzUvd7U9.js +0 -6
  114. package/dist/gherkin-DHRaV0YP.js +0 -6
  115. package/dist/git-commit-Bd32YZ0K.js +0 -8
  116. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  117. package/dist/gitGraph-ZV4HHKMB-Bj31zYat.js +0 -5
  118. package/dist/gitGraphDiagram-OJR772UL-BGrYC5q0.js +0 -712
  119. package/dist/github-dark-DenFmJkN.js +0 -4
  120. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  121. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  122. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  123. package/dist/github-light-JYsPkUQd.js +0 -4
  124. package/dist/github-light-default-D99KPAby.js +0 -4
  125. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  126. package/dist/gleam-Bv284lvN.js +0 -6
  127. package/dist/glimmer-js-CkxRszZZ.js +0 -14
  128. package/dist/glimmer-ts-Bi6BYQCn.js +0 -14
  129. package/dist/glsl-CkUcVZNK.js +0 -8
  130. package/dist/gnuplot-yPG9-sE_.js +0 -6
  131. package/dist/go-ChxJuLYK.js +0 -6
  132. package/dist/graph-DaSuptw6.js +0 -247
  133. package/dist/graphql-BLaPX4fU.js +0 -14
  134. package/dist/groovy-CJQTphOW.js +0 -6
  135. package/dist/gruvbox-dark-hard-C2ND4cMr.js +0 -4
  136. package/dist/gruvbox-dark-medium-C8k4c8au.js +0 -4
  137. package/dist/gruvbox-dark-soft-xx9Q6FaG.js +0 -4
  138. package/dist/gruvbox-light-hard-BpUXv5in.js +0 -4
  139. package/dist/gruvbox-light-medium-D3XFCoU1.js +0 -4
  140. package/dist/gruvbox-light-soft-u7hpfz6Z.js +0 -4
  141. package/dist/hack-Bx1jMtBC.js +0 -10
  142. package/dist/haml-6FagfhCM.js +0 -10
  143. package/dist/handlebars-Bd5Y4M6I.js +0 -14
  144. package/dist/haskell-WeIwNIP6.js +0 -6
  145. package/dist/haxe-TztHsm5T.js +0 -6
  146. package/dist/hcl-D438OF-I.js +0 -6
  147. package/dist/hjson-DYBUbqOl.js +0 -6
  148. package/dist/hlsl-Bk8TCZNL.js +0 -6
  149. package/dist/houston-BDYrDoDW.js +0 -4
  150. package/dist/html-7XVNRwN7.js +0 -10
  151. package/dist/html-derivative-BNxZ5Yf6.js +0 -8
  152. package/dist/http-WC357zBG.js +0 -14
  153. package/dist/hxml-GbqSQCLa.js +0 -8
  154. package/dist/hy-Brt5EZ7-.js +0 -6
  155. package/dist/imba-CimUv-Uh.js +0 -6
  156. package/dist/index-DR9mkSeU.js +0 -29474
  157. package/dist/info-63CPKGFF-DnZM8nKQ.js +0 -5
  158. package/dist/infoDiagram-DDUCL6P7-ClQolrbt.js +0 -24
  159. package/dist/ini-BZIuRIvJ.js +0 -6
  160. package/dist/init-DjUOC4st.js +0 -16
  161. package/dist/java-DY6VlHhP.js +0 -6
  162. package/dist/javascript-Dp1Jmi5H.js +0 -6
  163. package/dist/jinja-WEhOU5ES.js +0 -11
  164. package/dist/jison-c2JI40PB.js +0 -8
  165. package/dist/journeyDiagram-FFXJYRFH-P_IVMTj2.js +0 -836
  166. package/dist/json-DxJze_jm.js +0 -6
  167. package/dist/json5-BT4Fjg39.js +0 -6
  168. package/dist/jsonc-CHjZD8gR.js +0 -6
  169. package/dist/jsonl-BGuvDmy9.js +0 -6
  170. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  171. package/dist/jssm-BcADi6EI.js +0 -6
  172. package/dist/jsx-BtKADgXT.js +0 -6
  173. package/dist/julia-DcoDQokW.js +0 -16
  174. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  175. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  176. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  177. package/dist/kanban-definition-KOZQBZVT-Uk8JKe_b.js +0 -720
  178. package/dist/kotlin-ByBMgTeR.js +0 -6
  179. package/dist/kusto-VWFLl2T0.js +0 -6
  180. package/dist/laserwave-6a00oqik.js +0 -4
  181. package/dist/latex-MZCpjnva.js +0 -8
  182. package/dist/layout-BHKAMNdk.js +0 -1324
  183. package/dist/lean-DXqEE_d1.js +0 -6
  184. package/dist/less-B1GLI2Di.js +0 -6
  185. package/dist/light-plus-CZuVqSLX.js +0 -4
  186. package/dist/linear-UAzexi4b.js +0 -255
  187. package/dist/liquid-3HHuHOZ2.js +0 -14
  188. package/dist/llvm-6RQLId6G.js +0 -6
  189. package/dist/log-Al8wyEFV.js +0 -6
  190. package/dist/logo-DBa4JDzV.js +0 -6
  191. package/dist/lua-kX5WP_P5.js +0 -8
  192. package/dist/luau-BeoZWRh5.js +0 -6
  193. package/dist/make-CsMclxtr.js +0 -6
  194. package/dist/markdown-CiI2E98D.js +0 -6
  195. package/dist/marko-L-KhXzqZ.js +0 -14
  196. package/dist/material-theme-D6KBX41T.js +0 -4
  197. package/dist/material-theme-darker-CkRroheE.js +0 -4
  198. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  199. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  200. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  201. package/dist/matlab-BOAaUVP0.js +0 -6
  202. package/dist/mdc-DPBWa7dN.js +0 -12
  203. package/dist/mdx-BOhZZUJ8.js +0 -6
  204. package/dist/mermaid-B0ixDHKN.js +0 -6
  205. package/dist/mermaid-parser.core-FuzJzmL7.js +0 -12921
  206. package/dist/mermaid.core-D7qBd055.js +0 -14002
  207. package/dist/min-dark-C7ak0t6c.js +0 -4
  208. package/dist/min-light-CKFxVcPp.js +0 -4
  209. package/dist/mindmap-definition-LNHGMQRG-D1C2-kkn.js +0 -3229
  210. package/dist/mipsasm-CTx18fBl.js +0 -6
  211. package/dist/mojo-BD611d7o.js +0 -6
  212. package/dist/monokai-C1KBYcO0.js +0 -4
  213. package/dist/move-653S600C.js +0 -6
  214. package/dist/narrat-DmhDCBs-.js +0 -6
  215. package/dist/nextflow-D1Zd9cNl.js +0 -6
  216. package/dist/nginx-5vhPAEw3.js +0 -8
  217. package/dist/night-owl-Bm2rzalh.js +0 -4
  218. package/dist/nim-Fi8wNe6i.js +0 -20
  219. package/dist/nix-ceY58Dty.js +0 -6
  220. package/dist/nord-CC5OiUXg.js +0 -4
  221. package/dist/nushell-Be2rueDv.js +0 -6
  222. package/dist/objective-c-Itk8tzmv.js +0 -6
  223. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  224. package/dist/ocaml-eSVK32Eg.js +0 -6
  225. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  226. package/dist/one-light-D9sNaUtq.js +0 -4
  227. package/dist/ordinal-DfAQgscy.js +0 -61
  228. package/dist/packet-HUATNLJX-B5EJOyma.js +0 -5
  229. package/dist/pascal-xy8pJNns.js +0 -6
  230. package/dist/perl-BoEn6HmT.js +0 -16
  231. package/dist/php-BRU9zhoN.js +0 -18
  232. package/dist/pie-WTHONI2E-Bl1BKqE7.js +0 -5
  233. package/dist/pieDiagram-DBDJKBY4-BkVTsR1n.js +0 -161
  234. package/dist/plastic-CSTz3KZp.js +0 -4
  235. package/dist/plsql-pVbGZfOv.js +0 -6
  236. package/dist/po-BNfHvqmm.js +0 -6
  237. package/dist/poimandres-C-VADXHD.js +0 -4
  238. package/dist/polar-CAZahv3u.js +0 -6
  239. package/dist/postcss-05aHdL-n.js +0 -6
  240. package/dist/powerquery-DI9HkTvs.js +0 -6
  241. package/dist/powershell-Clc4ydu-.js +0 -6
  242. package/dist/prisma-FZjmVtSl.js +0 -6
  243. package/dist/prolog-C5-yg4TO.js +0 -6
  244. package/dist/proto-MmCPeFAD.js +0 -6
  245. package/dist/pug-CJWI-qSo.js +0 -12
  246. package/dist/puppet-CUJHmnxV.js +0 -6
  247. package/dist/purescript-rUfGld-4.js +0 -6
  248. package/dist/python-BFNSHbwJ.js +0 -6
  249. package/dist/qml-D3ATcgGh.js +0 -8
  250. package/dist/qmldir-BInDYbpo.js +0 -6
  251. package/dist/qss-AeJTysr_.js +0 -6
  252. package/dist/quadrantDiagram-YPSRARAO-D1el8UE7.js +0 -1024
  253. package/dist/r-Bm0uF0U2.js +0 -6
  254. package/dist/racket-B83wSAja.js +0 -6
  255. package/dist/radar-NJJJXTRR-Ba8Estdw.js +0 -5
  256. package/dist/raku-nEQ4ZJJ7.js +0 -6
  257. package/dist/razor-BPFYEoc9.js +0 -10
  258. package/dist/red-7y8PH7HH.js +0 -4
  259. package/dist/reg-m_s_Kiip.js +0 -6
  260. package/dist/regexp-BazyLpPg.js +0 -6
  261. package/dist/rel-BcRfyd6Q.js +0 -6
  262. package/dist/requirementDiagram-EGVEC5DT-DL1bEAjs.js +0 -852
  263. package/dist/riscv-Ce8MAQLP.js +0 -6
  264. package/dist/rose-pine-Cr4kwgAY.js +0 -4
  265. package/dist/rose-pine-dawn-ClRRUdXX.js +0 -4
  266. package/dist/rose-pine-moon-ucNn3Gm8.js +0 -4
  267. package/dist/rst-B6mPMsKo.js +0 -22
  268. package/dist/ruby-DInklMmU.js +0 -30
  269. package/dist/rust-CLzF9zIN.js +0 -6
  270. package/dist/sankeyDiagram-HRAUVNP4-Dyr3TqRu.js +0 -810
  271. package/dist/sas-fpEvgATw.js +0 -8
  272. package/dist/sass-DxHp5rTx.js +0 -6
  273. package/dist/scala-D4grkFkl.js +0 -6
  274. package/dist/scheme-BCRWuEm4.js +0 -6
  275. package/dist/scss-B1FaCqwR.js +0 -8
  276. package/dist/sdbl-B7T8abf4.js +0 -6
  277. package/dist/sequenceDiagram-4MX5Z3NR-CaMVkEvG.js +0 -2283
  278. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  279. package/dist/shellscript-InADTalH.js +0 -6
  280. package/dist/shellsession-DiDJNQdy.js +0 -8
  281. package/dist/slack-dark-i7wN4OET.js +0 -4
  282. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  283. package/dist/smalltalk-BlI1_OkM.js +0 -6
  284. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  285. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  286. package/dist/solarized-light-BheCkDPT.js +0 -4
  287. package/dist/solidity-CneOhxmR.js +0 -6
  288. package/dist/soy-LybuU3Y_.js +0 -8
  289. package/dist/sparql-B0KWFEri.js +0 -8
  290. package/dist/splunk-CRXR8A9s.js +0 -6
  291. package/dist/sql-Cn_v3PB0.js +0 -6
  292. package/dist/ssh-config-DP-hNVbF.js +0 -6
  293. package/dist/stata-B8c5fTjX.js +0 -8
  294. package/dist/stateDiagram-UUKSUZ4H-D-xTiq6H.js +0 -263
  295. package/dist/stateDiagram-v2-EYPG3UTE-BK5bFTpp.js +0 -16
  296. package/dist/stylus-CyKEU1Ej.js +0 -6
  297. package/dist/svelte-BjDUPxZ1.js +0 -14
  298. package/dist/swift-_uF_96_m.js +0 -6
  299. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  300. package/dist/system-verilog-BCm7smPJ.js +0 -6
  301. package/dist/systemd-C-4qm6XH.js +0 -6
  302. package/dist/talonscript-CFF3LF_O.js +0 -6
  303. package/dist/tasl-Cg_WBUAe.js +0 -6
  304. package/dist/tcl-DN7buRTF.js +0 -6
  305. package/dist/templ-Brj2RH7A.js +0 -12
  306. package/dist/terraform-DGvcn9zM.js +0 -6
  307. package/dist/tex-CmrLTxbG.js +0 -8
  308. package/dist/timeline-definition-3HZDQTIS-DbCuAY-N.js +0 -801
  309. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  310. package/dist/toml-DY62mUL_.js +0 -6
  311. package/dist/treemap-75Q7IDZK-RcudvwLc.js +0 -5
  312. package/dist/ts-tags-CZMzuZh-.js +0 -41
  313. package/dist/tsv-BtvSkaG0.js +0 -6
  314. package/dist/tsx-B8rCNbgL.js +0 -6
  315. package/dist/turtle-_H59FV7D.js +0 -6
  316. package/dist/twig-GjIxYqCX.js +0 -18
  317. package/dist/typescript-mg6ATTE8.js +0 -6
  318. package/dist/typespec-Djmco60m.js +0 -6
  319. package/dist/typst-D_1QKWns.js +0 -6
  320. package/dist/v-BW14IZv7.js +0 -6
  321. package/dist/vala-uxaPR7d1.js +0 -6
  322. package/dist/vb-D8_c5-KN.js +0 -6
  323. package/dist/verilog-B-bybjPF.js +0 -6
  324. package/dist/vesper-BckBta1U.js +0 -4
  325. package/dist/vhdl-CUlNa8ac.js +0 -6
  326. package/dist/viml-DsfA-sWm.js +0 -6
  327. package/dist/vitesse-black-BoGvW84i.js +0 -4
  328. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  329. package/dist/vitesse-light-CcmG315c.js +0 -4
  330. package/dist/vue-D-ba2-Rx.js +0 -31
  331. package/dist/vue-html-Dn2ZoOSz.js +0 -10
  332. package/dist/vue-vine-Jmfkm6lF.js +0 -20
  333. package/dist/vyper-CPQuu50u.js +0 -6
  334. package/dist/wasm-BBXxrAl7.js +0 -6
  335. package/dist/wasm-DQxwEHae.js +0 -7
  336. package/dist/wenyan-pbVjoM9_.js +0 -6
  337. package/dist/wgsl-DY4iK1q1.js +0 -6
  338. package/dist/wikitext-Z-MoUasO.js +0 -6
  339. package/dist/wit-CQMQOlTg.js +0 -6
  340. package/dist/wolfram-Dz4KXISs.js +0 -6
  341. package/dist/xml-C2J0sS9M.js +0 -8
  342. package/dist/xsl-BmSZphgC.js +0 -8
  343. package/dist/xychartDiagram-FDP5SA34-NGeBTA9Y.js +0 -1340
  344. package/dist/yaml-DaO7k5B1.js +0 -6
  345. package/dist/zenscript-CxBjpf9c.js +0 -6
  346. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,842 +0,0 @@
1
- import { g as Dt } from "./chunk-WVR4S24B-D3bw0yi4.js";
2
- import { s as wt } from "./chunk-NRVI72HA-CN8BG5Yn.js";
3
- import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, q as Ft, t as Yt, c as tt, l as D, z as Pt, y as zt, B as Gt, D as Kt, p as Zt, r as Ut, d as jt, u as Wt } from "./mermaid.core-D7qBd055.js";
4
- import { c as Qt } from "./channel-DwkBtswx.js";
5
- var dt = function() {
6
- var s = /* @__PURE__ */ u(function(R, n, a, c) {
7
- for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
8
- return a;
9
- }, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], h = [1, 10], d = [1, 11], o = [1, 12], l = [1, 13], f = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], yt = [63, 64, 65, 66, 67], ft = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], v = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
10
- trace: /* @__PURE__ */ u(function() {
11
- }, "trace"),
12
- yy: {},
13
- symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
14
- terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
15
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
16
- performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, K) {
17
- var e = t.length - 1;
18
- switch (p) {
19
- case 1:
20
- break;
21
- case 2:
22
- this.$ = [];
23
- break;
24
- case 3:
25
- t[e - 1].push(t[e]), this.$ = t[e - 1];
26
- break;
27
- case 4:
28
- case 5:
29
- this.$ = t[e];
30
- break;
31
- case 6:
32
- case 7:
33
- this.$ = [];
34
- break;
35
- case 8:
36
- r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
37
- break;
38
- case 9:
39
- r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
40
- break;
41
- case 10:
42
- r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
43
- break;
44
- case 11:
45
- r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
46
- break;
47
- case 12:
48
- r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
49
- break;
50
- case 13:
51
- r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
52
- break;
53
- case 14:
54
- r.addEntity(t[e - 2]);
55
- break;
56
- case 15:
57
- r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
58
- break;
59
- case 16:
60
- r.addEntity(t[e]);
61
- break;
62
- case 17:
63
- r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
64
- break;
65
- case 18:
66
- r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
67
- break;
68
- case 19:
69
- r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
70
- break;
71
- case 20:
72
- r.addEntity(t[e - 5], t[e - 3]);
73
- break;
74
- case 21:
75
- r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
76
- break;
77
- case 22:
78
- r.addEntity(t[e - 3], t[e - 1]);
79
- break;
80
- case 23:
81
- r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
82
- break;
83
- case 24:
84
- case 25:
85
- this.$ = t[e].trim(), r.setAccTitle(this.$);
86
- break;
87
- case 26:
88
- case 27:
89
- this.$ = t[e].trim(), r.setAccDescription(this.$);
90
- break;
91
- case 32:
92
- r.setDirection("TB");
93
- break;
94
- case 33:
95
- r.setDirection("BT");
96
- break;
97
- case 34:
98
- r.setDirection("RL");
99
- break;
100
- case 35:
101
- r.setDirection("LR");
102
- break;
103
- case 36:
104
- this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
105
- break;
106
- case 37:
107
- case 38:
108
- case 56:
109
- case 64:
110
- this.$ = [t[e]];
111
- break;
112
- case 39:
113
- case 40:
114
- this.$ = t[e - 2].concat([t[e]]);
115
- break;
116
- case 41:
117
- this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
118
- break;
119
- case 42:
120
- this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
121
- break;
122
- case 43:
123
- this.$ = [t[e]];
124
- break;
125
- case 44:
126
- t[e - 2].push(t[e]), this.$ = t[e - 2];
127
- break;
128
- case 46:
129
- this.$ = t[e - 1] + t[e];
130
- break;
131
- case 54:
132
- case 76:
133
- case 77:
134
- this.$ = t[e].replace(/"/g, "");
135
- break;
136
- case 55:
137
- case 78:
138
- this.$ = t[e];
139
- break;
140
- case 57:
141
- t[e].push(t[e - 1]), this.$ = t[e];
142
- break;
143
- case 58:
144
- this.$ = { type: t[e - 1], name: t[e] };
145
- break;
146
- case 59:
147
- this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
148
- break;
149
- case 60:
150
- this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
151
- break;
152
- case 61:
153
- this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
154
- break;
155
- case 62:
156
- case 63:
157
- case 66:
158
- this.$ = t[e];
159
- break;
160
- case 65:
161
- t[e - 2].push(t[e]), this.$ = t[e - 2];
162
- break;
163
- case 67:
164
- this.$ = t[e].replace(/"/g, "");
165
- break;
166
- case 68:
167
- this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
168
- break;
169
- case 69:
170
- this.$ = r.Cardinality.ZERO_OR_ONE;
171
- break;
172
- case 70:
173
- this.$ = r.Cardinality.ZERO_OR_MORE;
174
- break;
175
- case 71:
176
- this.$ = r.Cardinality.ONE_OR_MORE;
177
- break;
178
- case 72:
179
- this.$ = r.Cardinality.ONLY_ONE;
180
- break;
181
- case 73:
182
- this.$ = r.Cardinality.MD_PARENT;
183
- break;
184
- case 74:
185
- this.$ = r.Identification.NON_IDENTIFYING;
186
- break;
187
- case 75:
188
- this.$ = r.Identification.IDENTIFYING;
189
- break;
190
- }
191
- }, "anonymous"),
192
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: h, 24: d, 26: o, 28: l, 29: 14, 30: 15, 31: 16, 32: 17, 33: f, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(yt, [2, 74]), s(yt, [2, 75]), { 6: ft, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(v, [2, 45]), s(v, [2, 50]), s(v, [2, 51]), s(v, [2, 52]), s(v, [2, 53]), s(i, [2, 41], { 42: N }), { 6: ft, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(v, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
193
- defaultActions: { 52: [2, 62], 72: [2, 57] },
194
- parseError: /* @__PURE__ */ u(function(n, a) {
195
- if (a.recoverable)
196
- this.trace(n);
197
- else {
198
- var c = new Error(n);
199
- throw c.hash = a, c;
200
- }
201
- }, "parseError"),
202
- parse: /* @__PURE__ */ u(function(n) {
203
- var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", H = 0, St = 0, It = 2, Tt = 1, xt = t.slice.call(arguments, 1), y = Object.create(this.lexer), I = { yy: {} };
204
- for (var lt in this.yy)
205
- Object.prototype.hasOwnProperty.call(this.yy, lt) && (I.yy[lt] = this.yy[lt]);
206
- y.setInput(n, I.yy), I.yy.lexer = y, I.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
207
- var ot = y.yylloc;
208
- t.push(ot);
209
- var vt = y.options && y.options.ranges;
210
- typeof I.yy.parseError == "function" ? this.parseError = I.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
211
- function Ct(b) {
212
- c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
213
- }
214
- u(Ct, "popStack");
215
- function Ot() {
216
- var b;
217
- return b = r.pop() || y.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
218
- }
219
- u(Ot, "lex");
220
- for (var g, x, m, ht, C = {}, J, k, At, $; ; ) {
221
- if (x = c[c.length - 1], this.defaultActions[x] ? m = this.defaultActions[x] : ((g === null || typeof g > "u") && (g = Ot()), m = K[x] && K[x][g]), typeof m > "u" || !m.length || !m[0]) {
222
- var ut = "";
223
- $ = [];
224
- for (J in K[x])
225
- this.terminals_[J] && J > It && $.push("'" + this.terminals_[J] + "'");
226
- y.showPosition ? ut = "Parse error on line " + (H + 1) + `:
227
- ` + y.showPosition() + `
228
- Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
229
- text: y.match,
230
- token: this.terminals_[g] || g,
231
- line: y.yylineno,
232
- loc: ot,
233
- expected: $
234
- });
235
- }
236
- if (m[0] instanceof Array && m.length > 1)
237
- throw new Error("Parse Error: multiple actions possible at state: " + x + ", token: " + g);
238
- switch (m[0]) {
239
- case 1:
240
- c.push(g), p.push(y.yytext), t.push(y.yylloc), c.push(m[1]), g = null, St = y.yyleng, e = y.yytext, H = y.yylineno, ot = y.yylloc;
241
- break;
242
- case 2:
243
- if (k = this.productions_[m[1]][1], C.$ = p[p.length - k], C._$ = {
244
- first_line: t[t.length - (k || 1)].first_line,
245
- last_line: t[t.length - 1].last_line,
246
- first_column: t[t.length - (k || 1)].first_column,
247
- last_column: t[t.length - 1].last_column
248
- }, vt && (C._$.range = [
249
- t[t.length - (k || 1)].range[0],
250
- t[t.length - 1].range[1]
251
- ]), ht = this.performAction.apply(C, [
252
- e,
253
- St,
254
- H,
255
- I.yy,
256
- m[1],
257
- p,
258
- t
259
- ].concat(xt)), typeof ht < "u")
260
- return ht;
261
- k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(C.$), t.push(C._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
262
- break;
263
- case 3:
264
- return !0;
265
- }
266
- }
267
- return !0;
268
- }, "parse")
269
- }, Rt = /* @__PURE__ */ function() {
270
- var R = {
271
- EOF: 1,
272
- parseError: /* @__PURE__ */ u(function(a, c) {
273
- if (this.yy.parser)
274
- this.yy.parser.parseError(a, c);
275
- else
276
- throw new Error(a);
277
- }, "parseError"),
278
- // resets the lexer, sets new input
279
- setInput: /* @__PURE__ */ u(function(n, a) {
280
- return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
281
- first_line: 1,
282
- first_column: 0,
283
- last_line: 1,
284
- last_column: 0
285
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
286
- }, "setInput"),
287
- // consumes and returns one char from the input
288
- input: /* @__PURE__ */ u(function() {
289
- var n = this._input[0];
290
- this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
291
- var a = n.match(/(?:\r\n?|\n).*/g);
292
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
293
- }, "input"),
294
- // unshifts one char (or a string) into the input
295
- unput: /* @__PURE__ */ u(function(n) {
296
- var a = n.length, c = n.split(/(?:\r\n?|\n)/g);
297
- this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
298
- var r = this.match.split(/(?:\r\n?|\n)/g);
299
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
300
- var p = this.yylloc.range;
301
- return this.yylloc = {
302
- first_line: this.yylloc.first_line,
303
- last_line: this.yylineno + 1,
304
- first_column: this.yylloc.first_column,
305
- last_column: c ? (c.length === r.length ? this.yylloc.first_column : 0) + r[r.length - c.length].length - c[0].length : this.yylloc.first_column - a
306
- }, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
307
- }, "unput"),
308
- // When called from action, caches matched text and appends it on next action
309
- more: /* @__PURE__ */ u(function() {
310
- return this._more = !0, this;
311
- }, "more"),
312
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
313
- reject: /* @__PURE__ */ u(function() {
314
- if (this.options.backtrack_lexer)
315
- this._backtrack = !0;
316
- else
317
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
318
- ` + this.showPosition(), {
319
- text: "",
320
- token: null,
321
- line: this.yylineno
322
- });
323
- return this;
324
- }, "reject"),
325
- // retain first n characters of the match
326
- less: /* @__PURE__ */ u(function(n) {
327
- this.unput(this.match.slice(n));
328
- }, "less"),
329
- // displays already matched input, i.e. for error messages
330
- pastInput: /* @__PURE__ */ u(function() {
331
- var n = this.matched.substr(0, this.matched.length - this.match.length);
332
- return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
333
- }, "pastInput"),
334
- // displays upcoming input, i.e. for error messages
335
- upcomingInput: /* @__PURE__ */ u(function() {
336
- var n = this.match;
337
- return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
338
- }, "upcomingInput"),
339
- // displays the character position where the lexing error occurred, i.e. for error messages
340
- showPosition: /* @__PURE__ */ u(function() {
341
- var n = this.pastInput(), a = new Array(n.length + 1).join("-");
342
- return n + this.upcomingInput() + `
343
- ` + a + "^";
344
- }, "showPosition"),
345
- // test the lexed token: return FALSE when not a match, otherwise return token
346
- test_match: /* @__PURE__ */ u(function(n, a) {
347
- var c, r, p;
348
- if (this.options.backtrack_lexer && (p = {
349
- yylineno: this.yylineno,
350
- yylloc: {
351
- first_line: this.yylloc.first_line,
352
- last_line: this.last_line,
353
- first_column: this.yylloc.first_column,
354
- last_column: this.yylloc.last_column
355
- },
356
- yytext: this.yytext,
357
- match: this.match,
358
- matches: this.matches,
359
- matched: this.matched,
360
- yyleng: this.yyleng,
361
- offset: this.offset,
362
- _more: this._more,
363
- _input: this._input,
364
- yy: this.yy,
365
- conditionStack: this.conditionStack.slice(0),
366
- done: this.done
367
- }, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
368
- first_line: this.yylloc.last_line,
369
- last_line: this.yylineno + 1,
370
- first_column: this.yylloc.last_column,
371
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
372
- }, this.yytext += n[0], this.match += n[0], this.matches = n, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
373
- return c;
374
- if (this._backtrack) {
375
- for (var t in p)
376
- this[t] = p[t];
377
- return !1;
378
- }
379
- return !1;
380
- }, "test_match"),
381
- // return next match in input
382
- next: /* @__PURE__ */ u(function() {
383
- if (this.done)
384
- return this.EOF;
385
- this._input || (this.done = !0);
386
- var n, a, c, r;
387
- this._more || (this.yytext = "", this.match = "");
388
- for (var p = this._currentRules(), t = 0; t < p.length; t++)
389
- if (c = this._input.match(this.rules[p[t]]), c && (!a || c[0].length > a[0].length)) {
390
- if (a = c, r = t, this.options.backtrack_lexer) {
391
- if (n = this.test_match(c, p[t]), n !== !1)
392
- return n;
393
- if (this._backtrack) {
394
- a = !1;
395
- continue;
396
- } else
397
- return !1;
398
- } else if (!this.options.flex)
399
- break;
400
- }
401
- return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
402
- ` + this.showPosition(), {
403
- text: "",
404
- token: null,
405
- line: this.yylineno
406
- });
407
- }, "next"),
408
- // return next match that has a token
409
- lex: /* @__PURE__ */ u(function() {
410
- var a = this.next();
411
- return a || this.lex();
412
- }, "lex"),
413
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
414
- begin: /* @__PURE__ */ u(function(a) {
415
- this.conditionStack.push(a);
416
- }, "begin"),
417
- // pop the previously active lexer condition state off the condition stack
418
- popState: /* @__PURE__ */ u(function() {
419
- var a = this.conditionStack.length - 1;
420
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
421
- }, "popState"),
422
- // produce the lexer rule set which is active for the currently active lexer condition state
423
- _currentRules: /* @__PURE__ */ u(function() {
424
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
425
- }, "_currentRules"),
426
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
427
- topState: /* @__PURE__ */ u(function(a) {
428
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
429
- }, "topState"),
430
- // alias for begin(condition)
431
- pushState: /* @__PURE__ */ u(function(a) {
432
- this.begin(a);
433
- }, "pushState"),
434
- // return the number of states currently on the stack
435
- stateStackSize: /* @__PURE__ */ u(function() {
436
- return this.conditionStack.length;
437
- }, "stateStackSize"),
438
- options: { "case-insensitive": !0 },
439
- performAction: /* @__PURE__ */ u(function(a, c, r, p) {
440
- switch (r) {
441
- case 0:
442
- return this.begin("acc_title"), 24;
443
- case 1:
444
- return this.popState(), "acc_title_value";
445
- case 2:
446
- return this.begin("acc_descr"), 26;
447
- case 3:
448
- return this.popState(), "acc_descr_value";
449
- case 4:
450
- this.begin("acc_descr_multiline");
451
- break;
452
- case 5:
453
- this.popState();
454
- break;
455
- case 6:
456
- return "acc_descr_multiline_value";
457
- case 7:
458
- return 33;
459
- case 8:
460
- return 34;
461
- case 9:
462
- return 35;
463
- case 10:
464
- return 36;
465
- case 11:
466
- return 10;
467
- case 12:
468
- break;
469
- case 13:
470
- return 8;
471
- case 14:
472
- return 50;
473
- case 15:
474
- return 70;
475
- case 16:
476
- return 4;
477
- case 17:
478
- return this.begin("block"), 17;
479
- case 18:
480
- return 49;
481
- case 19:
482
- return 49;
483
- case 20:
484
- return 42;
485
- case 21:
486
- return 15;
487
- case 22:
488
- return 13;
489
- case 23:
490
- break;
491
- case 24:
492
- return 59;
493
- case 25:
494
- return 56;
495
- case 26:
496
- return 56;
497
- case 27:
498
- return 60;
499
- case 28:
500
- break;
501
- case 29:
502
- return this.popState(), 19;
503
- case 30:
504
- return c.yytext[0];
505
- case 31:
506
- return 20;
507
- case 32:
508
- return 21;
509
- case 33:
510
- return this.begin("style"), 44;
511
- case 34:
512
- return this.popState(), 10;
513
- case 35:
514
- break;
515
- case 36:
516
- return 13;
517
- case 37:
518
- return 42;
519
- case 38:
520
- return 49;
521
- case 39:
522
- return this.begin("style"), 37;
523
- case 40:
524
- return 43;
525
- case 41:
526
- return 63;
527
- case 42:
528
- return 65;
529
- case 43:
530
- return 65;
531
- case 44:
532
- return 65;
533
- case 45:
534
- return 63;
535
- case 46:
536
- return 63;
537
- case 47:
538
- return 64;
539
- case 48:
540
- return 64;
541
- case 49:
542
- return 64;
543
- case 50:
544
- return 64;
545
- case 51:
546
- return 64;
547
- case 52:
548
- return 65;
549
- case 53:
550
- return 64;
551
- case 54:
552
- return 65;
553
- case 55:
554
- return 66;
555
- case 56:
556
- return 66;
557
- case 57:
558
- return 66;
559
- case 58:
560
- return 66;
561
- case 59:
562
- return 63;
563
- case 60:
564
- return 64;
565
- case 61:
566
- return 65;
567
- case 62:
568
- return 67;
569
- case 63:
570
- return 68;
571
- case 64:
572
- return 69;
573
- case 65:
574
- return 69;
575
- case 66:
576
- return 68;
577
- case 67:
578
- return 68;
579
- case 68:
580
- return 68;
581
- case 69:
582
- return 41;
583
- case 70:
584
- return 47;
585
- case 71:
586
- return 40;
587
- case 72:
588
- return 48;
589
- case 73:
590
- return c.yytext[0];
591
- case 74:
592
- return 6;
593
- }
594
- }, "anonymous"),
595
- rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:[0-9])/i, /^(?:.)/i, /^(?:$)/i],
596
- conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: !0 } }
597
- };
598
- return R;
599
- }();
600
- ct.lexer = Rt;
601
- function q() {
602
- this.yy = {};
603
- }
604
- return u(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
605
- }();
606
- dt.parser = dt;
607
- var Xt = dt, w, qt = (w = class {
608
- constructor() {
609
- this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
610
- ZERO_OR_ONE: "ZERO_OR_ONE",
611
- ZERO_OR_MORE: "ZERO_OR_MORE",
612
- ONE_OR_MORE: "ONE_OR_MORE",
613
- ONLY_ONE: "ONLY_ONE",
614
- MD_PARENT: "MD_PARENT"
615
- }, this.Identification = {
616
- NON_IDENTIFYING: "NON_IDENTIFYING",
617
- IDENTIFYING: "IDENTIFYING"
618
- }, this.setAccTitle = Vt, this.getAccTitle = Lt, this.setAccDescription = Mt, this.getAccDescription = Bt, this.setDiagramTitle = Ft, this.getDiagramTitle = Yt, this.getConfig = /* @__PURE__ */ u(() => tt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
619
- }
620
- /**
621
- * Add entity
622
- * @param name - The name of the entity
623
- * @param alias - The alias of the entity
624
- */
625
- addEntity(i, h = "") {
626
- var d;
627
- return this.entities.has(i) ? !((d = this.entities.get(i)) != null && d.alias) && h && (this.entities.get(i).alias = h, D.info(`Add alias '${h}' to entity '${i}'`)) : (this.entities.set(i, {
628
- id: `entity-${i}-${this.entities.size}`,
629
- label: i,
630
- attributes: [],
631
- alias: h,
632
- shape: "erBox",
633
- look: tt().look ?? "default",
634
- cssClasses: "default",
635
- cssStyles: []
636
- }), D.info("Added new entity :", i)), this.entities.get(i);
637
- }
638
- getEntity(i) {
639
- return this.entities.get(i);
640
- }
641
- getEntities() {
642
- return this.entities;
643
- }
644
- getClasses() {
645
- return this.classes;
646
- }
647
- addAttributes(i, h) {
648
- const d = this.addEntity(i);
649
- let o;
650
- for (o = h.length - 1; o >= 0; o--)
651
- h[o].keys || (h[o].keys = []), h[o].comment || (h[o].comment = ""), d.attributes.push(h[o]), D.debug("Added attribute ", h[o].name);
652
- }
653
- /**
654
- * Add a relationship
655
- *
656
- * @param entA - The first entity in the relationship
657
- * @param rolA - The role played by the first entity in relation to the second
658
- * @param entB - The second entity in the relationship
659
- * @param rSpec - The details of the relationship between the two entities
660
- */
661
- addRelationship(i, h, d, o) {
662
- const l = this.entities.get(i), f = this.entities.get(d);
663
- if (!l || !f)
664
- return;
665
- const _ = {
666
- entityA: l.id,
667
- roleA: h,
668
- entityB: f.id,
669
- relSpec: o
670
- };
671
- this.relationships.push(_), D.debug("Added new relationship :", _);
672
- }
673
- getRelationships() {
674
- return this.relationships;
675
- }
676
- getDirection() {
677
- return this.direction;
678
- }
679
- setDirection(i) {
680
- this.direction = i;
681
- }
682
- getCompiledStyles(i) {
683
- let h = [];
684
- for (const d of i) {
685
- const o = this.classes.get(d);
686
- o != null && o.styles && (h = [...h, ...o.styles ?? []].map((l) => l.trim())), o != null && o.textStyles && (h = [...h, ...o.textStyles ?? []].map((l) => l.trim()));
687
- }
688
- return h;
689
- }
690
- addCssStyles(i, h) {
691
- for (const d of i) {
692
- const o = this.entities.get(d);
693
- if (!h || !o)
694
- return;
695
- for (const l of h)
696
- o.cssStyles.push(l);
697
- }
698
- }
699
- addClass(i, h) {
700
- i.forEach((d) => {
701
- let o = this.classes.get(d);
702
- o === void 0 && (o = { id: d, styles: [], textStyles: [] }, this.classes.set(d, o)), h && h.forEach(function(l) {
703
- if (/color/.exec(l)) {
704
- const f = l.replace("fill", "bgFill");
705
- o.textStyles.push(f);
706
- }
707
- o.styles.push(l);
708
- });
709
- });
710
- }
711
- setClass(i, h) {
712
- for (const d of i) {
713
- const o = this.entities.get(d);
714
- if (o)
715
- for (const l of h)
716
- o.cssClasses += " " + l;
717
- }
718
- }
719
- clear() {
720
- this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Pt();
721
- }
722
- getData() {
723
- const i = [], h = [], d = tt();
724
- for (const l of this.entities.keys()) {
725
- const f = this.entities.get(l);
726
- f && (f.cssCompiledStyles = this.getCompiledStyles(f.cssClasses.split(" ")), i.push(f));
727
- }
728
- let o = 0;
729
- for (const l of this.relationships) {
730
- const f = {
731
- id: zt(l.entityA, l.entityB, {
732
- prefix: "id",
733
- counter: o++
734
- }),
735
- type: "normal",
736
- curve: "basis",
737
- start: l.entityA,
738
- end: l.entityB,
739
- label: l.roleA,
740
- labelpos: "c",
741
- thickness: "normal",
742
- classes: "relationshipLine",
743
- arrowTypeStart: l.relSpec.cardB.toLowerCase(),
744
- arrowTypeEnd: l.relSpec.cardA.toLowerCase(),
745
- pattern: l.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
746
- look: d.look
747
- };
748
- h.push(f);
749
- }
750
- return { nodes: i, edges: h, other: {}, config: d, direction: "TB" };
751
- }
752
- }, u(w, "ErDB"), w), Nt = {};
753
- Kt(Nt, {
754
- draw: () => Ht
755
- });
756
- var Ht = /* @__PURE__ */ u(async function(s, i, h, d) {
757
- D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
758
- const { securityLevel: o, er: l, layout: f } = tt(), _ = d.db.getData(), E = Dt(i, o);
759
- _.type = d.type, _.layoutAlgorithm = Zt(f), _.config.flowchart.nodeSpacing = (l == null ? void 0 : l.nodeSpacing) || 140, _.config.flowchart.rankSpacing = (l == null ? void 0 : l.rankSpacing) || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Ut(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
760
- const V = E.selectAll('[id*="-background"]');
761
- Array.from(V).length > 0 && V.each(function() {
762
- const S = jt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
763
- if (!T.empty()) {
764
- const L = T.attr("transform");
765
- S.attr("transform", L);
766
- }
767
- });
768
- const Z = 8;
769
- Wt.insertTitle(
770
- E,
771
- "erDiagramTitleText",
772
- (l == null ? void 0 : l.titleTopMargin) ?? 25,
773
- d.db.getDiagramTitle()
774
- ), wt(E, Z, "erDiagram", (l == null ? void 0 : l.useMaxWidth) ?? !0);
775
- }, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
776
- const h = Qt, d = h(s, "r"), o = h(s, "g"), l = h(s, "b");
777
- return Gt(d, o, l, i);
778
- }, "fade"), $t = /* @__PURE__ */ u((s) => `
779
- .entityBox {
780
- fill: ${s.mainBkg};
781
- stroke: ${s.nodeBorder};
782
- }
783
-
784
- .relationshipLabelBox {
785
- fill: ${s.tertiaryColor};
786
- opacity: 0.7;
787
- background-color: ${s.tertiaryColor};
788
- rect {
789
- opacity: 0.5;
790
- }
791
- }
792
-
793
- .labelBkg {
794
- background-color: ${Jt(s.tertiaryColor, 0.5)};
795
- }
796
-
797
- .edgeLabel .label {
798
- fill: ${s.nodeBorder};
799
- font-size: 14px;
800
- }
801
-
802
- .label {
803
- font-family: ${s.fontFamily};
804
- color: ${s.nodeTextColor || s.textColor};
805
- }
806
-
807
- .edge-pattern-dashed {
808
- stroke-dasharray: 8,8;
809
- }
810
-
811
- .node rect,
812
- .node circle,
813
- .node ellipse,
814
- .node polygon
815
- {
816
- fill: ${s.mainBkg};
817
- stroke: ${s.nodeBorder};
818
- stroke-width: 1px;
819
- }
820
-
821
- .relationshipLine {
822
- stroke: ${s.lineColor};
823
- stroke-width: 1;
824
- fill: none;
825
- }
826
-
827
- .marker {
828
- fill: none !important;
829
- stroke: ${s.lineColor} !important;
830
- stroke-width: 1;
831
- }
832
- `, "getStyles"), te = $t, ne = {
833
- parser: Xt,
834
- get db() {
835
- return new qt();
836
- },
837
- renderer: Nt,
838
- styles: te
839
- };
840
- export {
841
- ne as diagram
842
- };