@foris/ai-agent 0.9.0 → 0.9.1-beta.2

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 (345) hide show
  1. package/dist/ai-agent.es.js +2780 -7
  2. package/dist/ai-agent.umd.js +4 -3817
  3. package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +2 -2
  4. package/dist/components/ai-elements/code-block.d.ts +4 -3
  5. package/dist/components/ai-elements/streamdown-code.d.ts +13 -0
  6. package/dist/components/ui/input-group.d.ts +1 -1
  7. package/dist/style.css +1 -1
  8. package/package.json +56 -13
  9. package/dist/abap-Y8Dl9g_6.js +0 -6
  10. package/dist/actionscript-3-DZzbMeqX.js +0 -6
  11. package/dist/ada-vP6ak0IW.js +0 -6
  12. package/dist/andromeeda-BIpZ7gaU.js +0 -4
  13. package/dist/angular-html-DPB4Rf0C.js +0 -32
  14. package/dist/angular-ts-CeqPwKaz.js +0 -24
  15. package/dist/apache-BUjz-sD2.js +0 -6
  16. package/dist/apex-oLhhs58q.js +0 -6
  17. package/dist/apl-Bfz1rp5e.js +0 -17
  18. package/dist/applescript-BPx7YFFu.js +0 -6
  19. package/dist/ara-Z2fSOxSw.js +0 -6
  20. package/dist/arc-DHSZg76Q.js +0 -85
  21. package/dist/architectureDiagram-VXUJARFQ-Cp8vugxX.js +0 -4674
  22. package/dist/asciidoc-B-pCoB3G.js +0 -6
  23. package/dist/asm-BTWLY5ym.js +0 -6
  24. package/dist/astro-CFFExE8Q.js +0 -18
  25. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  26. package/dist/awk-Fb0P9dkn.js +0 -6
  27. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  28. package/dist/ballerina-oZK-YekG.js +0 -6
  29. package/dist/bat-0FvbqU9S.js +0 -6
  30. package/dist/beancount-DqJEb89h.js +0 -6
  31. package/dist/berry-DODBq_Ff.js +0 -6
  32. package/dist/bibtex-EULQRLY5.js +0 -6
  33. package/dist/bicep-BorU73w0.js +0 -6
  34. package/dist/blade-DRRSiTQz.js +0 -21
  35. package/dist/blockDiagram-VD42YOAC-B4cTulr6.js +0 -2407
  36. package/dist/bsl-NkNNwerW.js +0 -8
  37. package/dist/c-eeMepfLm.js +0 -6
  38. package/dist/c4Diagram-YG6GDRKO-B8--s8xx.js +0 -1585
  39. package/dist/cadence-02UX7mW8.js +0 -6
  40. package/dist/cairo-DM6WF2e3.js +0 -8
  41. package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
  42. package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
  43. package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
  44. package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
  45. package/dist/channel-Cqk_cOiy.js +0 -5
  46. package/dist/chunk-4BX2VUAB-Cb-wAjVN.js +0 -9
  47. package/dist/chunk-55IACEB6-QFXfbMHG.js +0 -8
  48. package/dist/chunk-B4BG7PRW-CFs53zrP.js +0 -1377
  49. package/dist/chunk-DI55MBZ5-CKjAOeh7.js +0 -1383
  50. package/dist/chunk-FMBD7UC4-B29MtLTn.js +0 -19
  51. package/dist/chunk-QN33PNHL-5bU-bM6A.js +0 -20
  52. package/dist/chunk-QZHKN3VN-B_Q6cMrq.js +0 -15
  53. package/dist/chunk-TZMSLE5B-DlULRafu.js +0 -64
  54. package/dist/clarity-PKm5CwqM.js +0 -6
  55. package/dist/classDiagram-2ON5EDUG-DJmXfcVi.js +0 -22
  56. package/dist/classDiagram-v2-WZHVMYZB-DJmXfcVi.js +0 -22
  57. package/dist/clojure-CXJfHrL3.js +0 -6
  58. package/dist/cmake-BJz8BOTU.js +0 -6
  59. package/dist/cobol-DYTFdEK1.js +0 -12
  60. package/dist/code-block-QI2IAROF-C_F85uim.js +0 -2812
  61. package/dist/codeowners-Bt9yU6NX.js +0 -6
  62. package/dist/codeql-DHkodjjI.js +0 -6
  63. package/dist/coffee-DGBR_nr_.js +0 -8
  64. package/dist/common-lisp-EVqT9Zhp.js +0 -6
  65. package/dist/coq-B0L9upzn.js +0 -6
  66. package/dist/cose-bilkent-S5V4N54A-N3jM_XQd.js +0 -2612
  67. package/dist/cpp-ZFnOq6fV.js +0 -19
  68. package/dist/crystal-CRJyc4G-.js +0 -18
  69. package/dist/csharp-C7yUs7-w.js +0 -6
  70. package/dist/css-CECN5uSL.js +0 -6
  71. package/dist/csv-CmYOceLb.js +0 -6
  72. package/dist/cue-ZzumE7IT.js +0 -6
  73. package/dist/cypher-jpdmjtA6.js +0 -6
  74. package/dist/cytoscape.esm-ClN43hhW.js +0 -18846
  75. package/dist/d-CBagWSwH.js +0 -6
  76. package/dist/dagre-6UL2VRFP-CJdrtgOu.js +0 -451
  77. package/dist/dark-plus-pUHDTVV0.js +0 -4
  78. package/dist/dart-6ObCrKr9.js +0 -6
  79. package/dist/dax-CcDT-8dH.js +0 -6
  80. package/dist/defaultLocale-DcQU6Vee.js +0 -177
  81. package/dist/desktop-B93p9R9O.js +0 -6
  82. package/dist/diagram-PSM6KHXK-DSaDqHvO.js +0 -544
  83. package/dist/diagram-QEK2KX5R-BbxboH_-.js +0 -224
  84. package/dist/diagram-S2PKOQOG-DWsCb5He.js +0 -146
  85. package/dist/diff-BxzP2J8R.js +0 -6
  86. package/dist/docker-CsHqm9tx.js +0 -6
  87. package/dist/dotenv-BMjVjUL1.js +0 -6
  88. package/dist/dracula-BtZx2Kac.js +0 -4
  89. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  90. package/dist/dream-maker-PAx17jaB.js +0 -6
  91. package/dist/edge-B882-fmN.js +0 -14
  92. package/dist/elixir-DRzNHQCz.js +0 -10
  93. package/dist/elm-DZPAA5Qn.js +0 -9
  94. package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
  95. package/dist/erDiagram-Q2GNP2WA-Bl0uHx93.js +0 -846
  96. package/dist/erb-DB1DqdBc.js +0 -27
  97. package/dist/erlang-DNcDT8Hi.js +0 -8
  98. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  99. package/dist/everforest-light-BbXl82Em.js +0 -4
  100. package/dist/fennel-N4WcXuKx.js +0 -6
  101. package/dist/fish-BTDEUgqH.js +0 -6
  102. package/dist/flowDiagram-NV44I4VS-Dq0mXT8f.js +0 -1631
  103. package/dist/fluent-BMXUxfv1.js +0 -6
  104. package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
  105. package/dist/fortran-free-form-DPIT_jbP.js +0 -6
  106. package/dist/fsharp-CYOiIVNx.js +0 -8
  107. package/dist/ganttDiagram-JELNMOA3-Dj1adndm.js +0 -2702
  108. package/dist/gdresource-BwtMIoBm.js +0 -10
  109. package/dist/gdscript-BifyeYhI.js +0 -6
  110. package/dist/gdshader-Bk8fF6yr.js +0 -6
  111. package/dist/genie-DzUvd7U9.js +0 -6
  112. package/dist/gherkin-DHRaV0YP.js +0 -6
  113. package/dist/git-commit-Bd32YZ0K.js +0 -8
  114. package/dist/git-rebase-ZWUFO_T4.js +0 -8
  115. package/dist/gitGraphDiagram-NY62KEGX-DIFZugA1.js +0 -715
  116. package/dist/github-dark-DenFmJkN.js +0 -4
  117. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  118. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  119. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  120. package/dist/github-light-JYsPkUQd.js +0 -4
  121. package/dist/github-light-default-D99KPAby.js +0 -4
  122. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  123. package/dist/gleam-Bv284lvN.js +0 -6
  124. package/dist/glimmer-js-DkxNrfPT.js +0 -14
  125. package/dist/glimmer-ts-D6YZEmK_.js +0 -14
  126. package/dist/glsl-CkUcVZNK.js +0 -8
  127. package/dist/gnuplot-yPG9-sE_.js +0 -6
  128. package/dist/go-ChxJuLYK.js +0 -6
  129. package/dist/graph-DB2UxkYH.js +0 -1190
  130. package/dist/graphql-CBu2ehBn.js +0 -14
  131. package/dist/groovy-CJQTphOW.js +0 -6
  132. package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
  133. package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
  134. package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
  135. package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
  136. package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
  137. package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
  138. package/dist/hack-DVWgrvc2.js +0 -12
  139. package/dist/haml-NZLVzu_R.js +0 -10
  140. package/dist/handlebars-mxStpSE7.js +0 -14
  141. package/dist/haskell-WeIwNIP6.js +0 -6
  142. package/dist/haxe-TztHsm5T.js +0 -6
  143. package/dist/hcl-D438OF-I.js +0 -6
  144. package/dist/hjson-DYBUbqOl.js +0 -6
  145. package/dist/hlsl-Bk8TCZNL.js +0 -6
  146. package/dist/houston-BDYrDoDW.js +0 -4
  147. package/dist/html-B50bmoVb.js +0 -10
  148. package/dist/html-derivative-ByyNxAP5.js +0 -10
  149. package/dist/http-BVIWqb92.js +0 -19
  150. package/dist/hurl-B8OTiYoQ.js +0 -17
  151. package/dist/hxml-GbqSQCLa.js +0 -8
  152. package/dist/hy-Brt5EZ7-.js +0 -6
  153. package/dist/imba-CimUv-Uh.js +0 -6
  154. package/dist/index-gmzqSpwg.js +0 -71246
  155. package/dist/infoDiagram-WHAUD3N6-DPjzRs82.js +0 -27
  156. package/dist/ini-BZIuRIvJ.js +0 -6
  157. package/dist/init-DjUOC4st.js +0 -16
  158. package/dist/java-DY6VlHhP.js +0 -6
  159. package/dist/javascript-C25yR2R2.js +0 -6
  160. package/dist/jinja-CI-LSgSv.js +0 -13
  161. package/dist/jison-DdreslRX.js +0 -8
  162. package/dist/journeyDiagram-XKPGCS4Q-DLrlPVyq.js +0 -840
  163. package/dist/json-DxJze_jm.js +0 -6
  164. package/dist/json5-BT4Fjg39.js +0 -6
  165. package/dist/jsonc-CHjZD8gR.js +0 -6
  166. package/dist/jsonl-BGuvDmy9.js +0 -6
  167. package/dist/jsonnet-Bx2cfsXg.js +0 -6
  168. package/dist/jssm-BcADi6EI.js +0 -6
  169. package/dist/jsx-BtKADgXT.js +0 -6
  170. package/dist/julia-ll8P6QXy.js +0 -19
  171. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  172. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  173. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  174. package/dist/kanban-definition-3W4ZIXB7-BTI5yGHx.js +0 -724
  175. package/dist/katex.min-l0sNRNKZ.js +0 -1
  176. package/dist/kdl-BNOv9TC3.js +0 -6
  177. package/dist/kotlin-ByBMgTeR.js +0 -6
  178. package/dist/kusto-VWFLl2T0.js +0 -6
  179. package/dist/laserwave-6a00oqik.js +0 -4
  180. package/dist/latex-DF20280u.js +0 -9
  181. package/dist/layout-Q6wQN5dr.js +0 -1730
  182. package/dist/lean-D5yRrexI.js +0 -6
  183. package/dist/less-B1GLI2Di.js +0 -6
  184. package/dist/light-plus-CZuVqSLX.js +0 -4
  185. package/dist/linear-UL3ZZUJv.js +0 -277
  186. package/dist/liquid-CHzkx3jT.js +0 -14
  187. package/dist/llvm-co1rIKs3.js +0 -6
  188. package/dist/log-Al8wyEFV.js +0 -6
  189. package/dist/logo-DBa4JDzV.js +0 -6
  190. package/dist/lua-kX5WP_P5.js +0 -8
  191. package/dist/luau-DtBSxLyz.js +0 -6
  192. package/dist/make-CsMclxtr.js +0 -6
  193. package/dist/markdown-CrScaQ96.js +0 -6
  194. package/dist/marko-ls0Jg2j8.js +0 -14
  195. package/dist/material-theme-D6KBX41T.js +0 -4
  196. package/dist/material-theme-darker-CkRroheE.js +0 -4
  197. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  198. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  199. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  200. package/dist/matlab-BOAaUVP0.js +0 -6
  201. package/dist/mdc-DIP5_jeM.js +0 -15
  202. package/dist/mdx-BOhZZUJ8.js +0 -6
  203. package/dist/mermaid-B0ixDHKN.js +0 -6
  204. package/dist/mermaid-NA5CF7SZ-BDJrKfjz.js +0 -6
  205. package/dist/mermaid.core-Cpfp0NBU.js +0 -14414
  206. package/dist/min-dark-C7ak0t6c.js +0 -4
  207. package/dist/min-light-CKFxVcPp.js +0 -4
  208. package/dist/mindmap-definition-VGOIOE7T-B6ovfeib.js +0 -790
  209. package/dist/mipsasm-CTx18fBl.js +0 -6
  210. package/dist/mojo-BD611d7o.js +0 -6
  211. package/dist/monokai-C1KBYcO0.js +0 -4
  212. package/dist/move-F-dICmj2.js +0 -6
  213. package/dist/narrat-DmhDCBs-.js +0 -6
  214. package/dist/nextflow-DmSVRGjG.js +0 -6
  215. package/dist/nginx-COxS3qoU.js +0 -9
  216. package/dist/night-owl-Bm2rzalh.js +0 -4
  217. package/dist/nim-CCwXZLHG.js +0 -21
  218. package/dist/nix-BZK5F767.js +0 -9
  219. package/dist/nord-CC5OiUXg.js +0 -4
  220. package/dist/nushell-D8j3dhT-.js +0 -6
  221. package/dist/objective-c-Itk8tzmv.js +0 -6
  222. package/dist/objective-cpp-DGt5UKRO.js +0 -6
  223. package/dist/ocaml-eSVK32Eg.js +0 -6
  224. package/dist/one-dark-pro-DTA3VF0_.js +0 -4
  225. package/dist/one-light-D9sNaUtq.js +0 -4
  226. package/dist/openscad-Sp5uZ6f2.js +0 -6
  227. package/dist/ordinal-MUacOSdK.js +0 -65
  228. package/dist/pascal-xy8pJNns.js +0 -6
  229. package/dist/perl-NvKK8p2P.js +0 -17
  230. package/dist/php-CK5hNnT0.js +0 -19
  231. package/dist/pieDiagram-ADFJNKIX-Bn24elWA.js +0 -166
  232. package/dist/pkl-C-zSNmaA.js +0 -6
  233. package/dist/plastic-CSTz3KZp.js +0 -4
  234. package/dist/plsql-pVbGZfOv.js +0 -6
  235. package/dist/po-BNfHvqmm.js +0 -6
  236. package/dist/poimandres-C-VADXHD.js +0 -4
  237. package/dist/polar-CAZahv3u.js +0 -6
  238. package/dist/postcss-05aHdL-n.js +0 -6
  239. package/dist/powerquery-DI9HkTvs.js +0 -6
  240. package/dist/powershell-Clc4ydu-.js +0 -6
  241. package/dist/prisma-FZjmVtSl.js +0 -6
  242. package/dist/prolog-C5-yg4TO.js +0 -6
  243. package/dist/proto-MmCPeFAD.js +0 -6
  244. package/dist/pug-XOw9Q1Ho.js +0 -12
  245. package/dist/puppet-CUJHmnxV.js +0 -6
  246. package/dist/purescript-rUfGld-4.js +0 -6
  247. package/dist/python-BFNSHbwJ.js +0 -6
  248. package/dist/qml-rTNXsquU.js +0 -8
  249. package/dist/qmldir-BInDYbpo.js +0 -6
  250. package/dist/qss-AeJTysr_.js +0 -6
  251. package/dist/quadrantDiagram-AYHSOK5B-CsbmyLll.js +0 -1030
  252. package/dist/r-Bm0uF0U2.js +0 -6
  253. package/dist/racket-B83wSAja.js +0 -6
  254. package/dist/raku-nEQ4ZJJ7.js +0 -6
  255. package/dist/razor-CoqPuKQU.js +0 -12
  256. package/dist/red-7y8PH7HH.js +0 -4
  257. package/dist/reg-m_s_Kiip.js +0 -6
  258. package/dist/regexp-BazyLpPg.js +0 -6
  259. package/dist/rel-BcRfyd6Q.js +0 -6
  260. package/dist/requirementDiagram-UZGBJVZJ--9rfbKaz.js +0 -856
  261. package/dist/riscv-Ce8MAQLP.js +0 -6
  262. package/dist/rose-pine-BKc3yVeu.js +0 -4
  263. package/dist/rose-pine-dawn-BulJcPZT.js +0 -4
  264. package/dist/rose-pine-moon-j6jiXKV8.js +0 -4
  265. package/dist/rosmsg-Cz0w1km8.js +0 -6
  266. package/dist/rst-AoEjemIj.js +0 -36
  267. package/dist/ruby-CGSl8JoB.js +0 -36
  268. package/dist/rust-CLzF9zIN.js +0 -6
  269. package/dist/sankeyDiagram-TZEHDZUN-Cp2id-3k.js +0 -830
  270. package/dist/sas-fpEvgATw.js +0 -8
  271. package/dist/sass-DxHp5rTx.js +0 -6
  272. package/dist/scala-D4grkFkl.js +0 -6
  273. package/dist/scheme-BCRWuEm4.js +0 -6
  274. package/dist/scss-B1FaCqwR.js +0 -8
  275. package/dist/sdbl-B7T8abf4.js +0 -6
  276. package/dist/sequenceDiagram-WL72ISMW-Bdoz1Co7.js +0 -2526
  277. package/dist/shaderlab-Cr62-Wb4.js +0 -8
  278. package/dist/shellscript-InADTalH.js +0 -6
  279. package/dist/shellsession-DiDJNQdy.js +0 -8
  280. package/dist/slack-dark-i7wN4OET.js +0 -4
  281. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  282. package/dist/smalltalk-BlI1_OkM.js +0 -6
  283. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  284. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  285. package/dist/solarized-light-BheCkDPT.js +0 -4
  286. package/dist/solidity-DUWnFhS6.js +0 -6
  287. package/dist/soy-YPoZ1G2p.js +0 -10
  288. package/dist/sparql-B0KWFEri.js +0 -8
  289. package/dist/splunk-CRXR8A9s.js +0 -6
  290. package/dist/sql-Cn_v3PB0.js +0 -6
  291. package/dist/ssh-config-DP-hNVbF.js +0 -6
  292. package/dist/stata-B8c5fTjX.js +0 -8
  293. package/dist/stateDiagram-FKZM4ZOC-BLHxjrc8.js +0 -268
  294. package/dist/stateDiagram-v2-4FDKWEC3-CbxCwS8b.js +0 -21
  295. package/dist/stylus-CyKEU1Ej.js +0 -6
  296. package/dist/svelte-5UasyOg7.js +0 -14
  297. package/dist/swift-9UzSvamq.js +0 -6
  298. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  299. package/dist/system-verilog-BCm7smPJ.js +0 -6
  300. package/dist/systemd-C-4qm6XH.js +0 -6
  301. package/dist/talonscript-CFF3LF_O.js +0 -6
  302. package/dist/tasl-Cg_WBUAe.js +0 -6
  303. package/dist/tcl-DN7buRTF.js +0 -6
  304. package/dist/templ-peLZIM2D.js +0 -12
  305. package/dist/terraform-DGvcn9zM.js +0 -6
  306. package/dist/tex-DpOayVob.js +0 -8
  307. package/dist/timeline-definition-IT6M3QCI-s3Wsbz6h.js +0 -805
  308. package/dist/tokyo-night-DP4TmcQl.js +0 -4
  309. package/dist/toml-DY62mUL_.js +0 -6
  310. package/dist/treemap-KMMF4GRG-D_L55G0b.js +0 -15045
  311. package/dist/ts-tags-CWmBp2js.js +0 -43
  312. package/dist/tsv-BtvSkaG0.js +0 -6
  313. package/dist/tsx-B8rCNbgL.js +0 -6
  314. package/dist/turtle-_H59FV7D.js +0 -6
  315. package/dist/twig-Cpoho6oi.js +0 -35
  316. package/dist/typescript-RycA9KXf.js +0 -6
  317. package/dist/typespec-DWqp-kUU.js +0 -6
  318. package/dist/typst-D_1QKWns.js +0 -6
  319. package/dist/v-BPCNiyYe.js +0 -6
  320. package/dist/vala-uxaPR7d1.js +0 -6
  321. package/dist/vb-D8_c5-KN.js +0 -6
  322. package/dist/verilog-B-bybjPF.js +0 -6
  323. package/dist/vesper-BckBta1U.js +0 -4
  324. package/dist/vhdl-CUlNa8ac.js +0 -6
  325. package/dist/viml-DsfA-sWm.js +0 -6
  326. package/dist/vitesse-black-BoGvW84i.js +0 -4
  327. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  328. package/dist/vitesse-light-CcmG315c.js +0 -4
  329. package/dist/vue-DmFKWfEU.js +0 -31
  330. package/dist/vue-html-BB2aI7Yc.js +0 -15
  331. package/dist/vue-vine-CznNap4x.js +0 -24
  332. package/dist/vyper-CPQuu50u.js +0 -6
  333. package/dist/wasm-BBXxrAl7.js +0 -6
  334. package/dist/wasm-DQxwEHae.js +0 -7
  335. package/dist/wenyan-pbVjoM9_.js +0 -6
  336. package/dist/wgsl-DY4iK1q1.js +0 -6
  337. package/dist/wikitext-Z-MoUasO.js +0 -6
  338. package/dist/wit-CQMQOlTg.js +0 -6
  339. package/dist/wolfram-Dz4KXISs.js +0 -6
  340. package/dist/xml-C2J0sS9M.js +0 -8
  341. package/dist/xsl-CbTBIiv3.js +0 -9
  342. package/dist/xychartDiagram-PRI3JC2R-D3ejwy7u.js +0 -1345
  343. package/dist/yaml-DaO7k5B1.js +0 -6
  344. package/dist/zenscript-CxBjpf9c.js +0 -6
  345. package/dist/zig-Vm0PO9wB.js +0 -6
@@ -1,1585 +0,0 @@
1
- import { d as Se, g as De } from "./chunk-TZMSLE5B-DlULRafu.js";
2
- import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-Cpfp0NBU.js";
3
- import "./index-gmzqSpwg.js";
4
- import "react";
5
- import "react-dom";
6
- var Ft = function() {
7
- var e = /* @__PURE__ */ g(function(_t, x, m, v) {
8
- for (m = m || {}, v = _t.length; v--; m[_t[v]] = x)
9
- ;
10
- return m;
11
- }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], a = [1, 28], r = [1, 63], n = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], f = [1, 68], y = [1, 69], E = [1, 29], O = [1, 30], S = [1, 31], P = [1, 32], M = [1, 33], U = [1, 34], H = [1, 35], q = [1, 36], G = [1, 37], K = [1, 38], J = [1, 39], Z = [1, 40], $ = [1, 41], tt = [1, 42], et = [1, 43], at = [1, 44], it = [1, 45], nt = [1, 46], rt = [1, 47], st = [1, 48], lt = [1, 50], ot = [1, 51], ct = [1, 52], ht = [1, 53], ut = [1, 54], dt = [1, 55], ft = [1, 56], pt = [1, 57], yt = [1, 58], gt = [1, 59], bt = [1, 60], Ct = [14, 42], Qt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 69, 70, 71, 72, 73, 74], Ot = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 69, 70, 71, 72, 73, 74], k = [1, 82], A = [1, 83], C = [1, 84], w = [1, 85], T = [12, 14, 42], le = [12, 14, 33, 42], Mt = [12, 14, 33, 42, 76, 77, 79, 80], vt = [12, 33], Ht = [34, 36, 37, 38, 39, 40, 41, 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, 69, 70, 71, 72, 73, 74], qt = {
12
- trace: /* @__PURE__ */ g(function() {
13
- }, "trace"),
14
- yy: {},
15
- symbols_: { error: 2, start: 3, mermaidDoc: 4, direction: 5, direction_tb: 6, direction_bt: 7, direction_rl: 8, direction_lr: 9, graphConfig: 10, C4_CONTEXT: 11, NEWLINE: 12, statements: 13, EOF: 14, C4_CONTAINER: 15, C4_COMPONENT: 16, C4_DYNAMIC: 17, C4_DEPLOYMENT: 18, otherStatements: 19, diagramStatements: 20, otherStatement: 21, title: 22, accDescription: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, boundaryStatement: 29, boundaryStartStatement: 30, boundaryStopStatement: 31, boundaryStart: 32, LBRACE: 33, ENTERPRISE_BOUNDARY: 34, attributes: 35, SYSTEM_BOUNDARY: 36, BOUNDARY: 37, CONTAINER_BOUNDARY: 38, NODE: 39, NODE_L: 40, NODE_R: 41, RBRACE: 42, diagramStatement: 43, PERSON: 44, PERSON_EXT: 45, SYSTEM: 46, SYSTEM_DB: 47, SYSTEM_QUEUE: 48, SYSTEM_EXT: 49, SYSTEM_EXT_DB: 50, SYSTEM_EXT_QUEUE: 51, CONTAINER: 52, CONTAINER_DB: 53, CONTAINER_QUEUE: 54, CONTAINER_EXT: 55, CONTAINER_EXT_DB: 56, CONTAINER_EXT_QUEUE: 57, COMPONENT: 58, COMPONENT_DB: 59, COMPONENT_QUEUE: 60, COMPONENT_EXT: 61, COMPONENT_EXT_DB: 62, COMPONENT_EXT_QUEUE: 63, REL: 64, BIREL: 65, REL_U: 66, REL_D: 67, REL_L: 68, REL_R: 69, REL_B: 70, REL_INDEX: 71, UPDATE_EL_STYLE: 72, UPDATE_REL_STYLE: 73, UPDATE_LAYOUT_CONFIG: 74, attribute: 75, STR: 76, STR_KEY: 77, STR_VALUE: 78, ATTRIBUTE: 79, ATTRIBUTE_EMPTY: 80, $accept: 0, $end: 1 },
16
- terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" },
17
- productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]],
18
- performAction: /* @__PURE__ */ g(function(x, m, v, b, R, h, Rt) {
19
- var p = h.length - 1;
20
- switch (R) {
21
- case 3:
22
- b.setDirection("TB");
23
- break;
24
- case 4:
25
- b.setDirection("BT");
26
- break;
27
- case 5:
28
- b.setDirection("RL");
29
- break;
30
- case 6:
31
- b.setDirection("LR");
32
- break;
33
- case 8:
34
- case 9:
35
- case 10:
36
- case 11:
37
- case 12:
38
- b.setC4Type(h[p - 3]);
39
- break;
40
- case 19:
41
- b.setTitle(h[p].substring(6)), this.$ = h[p].substring(6);
42
- break;
43
- case 20:
44
- b.setAccDescription(h[p].substring(15)), this.$ = h[p].substring(15);
45
- break;
46
- case 21:
47
- this.$ = h[p].trim(), b.setTitle(this.$);
48
- break;
49
- case 22:
50
- case 23:
51
- this.$ = h[p].trim(), b.setAccDescription(this.$);
52
- break;
53
- case 28:
54
- h[p].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
55
- break;
56
- case 29:
57
- h[p].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
58
- break;
59
- case 30:
60
- b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
61
- break;
62
- case 31:
63
- h[p].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[p]), this.$ = h[p];
64
- break;
65
- case 32:
66
- b.addDeploymentNode("node", ...h[p]), this.$ = h[p];
67
- break;
68
- case 33:
69
- b.addDeploymentNode("nodeL", ...h[p]), this.$ = h[p];
70
- break;
71
- case 34:
72
- b.addDeploymentNode("nodeR", ...h[p]), this.$ = h[p];
73
- break;
74
- case 35:
75
- b.popBoundaryParseStack();
76
- break;
77
- case 39:
78
- b.addPersonOrSystem("person", ...h[p]), this.$ = h[p];
79
- break;
80
- case 40:
81
- b.addPersonOrSystem("external_person", ...h[p]), this.$ = h[p];
82
- break;
83
- case 41:
84
- b.addPersonOrSystem("system", ...h[p]), this.$ = h[p];
85
- break;
86
- case 42:
87
- b.addPersonOrSystem("system_db", ...h[p]), this.$ = h[p];
88
- break;
89
- case 43:
90
- b.addPersonOrSystem("system_queue", ...h[p]), this.$ = h[p];
91
- break;
92
- case 44:
93
- b.addPersonOrSystem("external_system", ...h[p]), this.$ = h[p];
94
- break;
95
- case 45:
96
- b.addPersonOrSystem("external_system_db", ...h[p]), this.$ = h[p];
97
- break;
98
- case 46:
99
- b.addPersonOrSystem("external_system_queue", ...h[p]), this.$ = h[p];
100
- break;
101
- case 47:
102
- b.addContainer("container", ...h[p]), this.$ = h[p];
103
- break;
104
- case 48:
105
- b.addContainer("container_db", ...h[p]), this.$ = h[p];
106
- break;
107
- case 49:
108
- b.addContainer("container_queue", ...h[p]), this.$ = h[p];
109
- break;
110
- case 50:
111
- b.addContainer("external_container", ...h[p]), this.$ = h[p];
112
- break;
113
- case 51:
114
- b.addContainer("external_container_db", ...h[p]), this.$ = h[p];
115
- break;
116
- case 52:
117
- b.addContainer("external_container_queue", ...h[p]), this.$ = h[p];
118
- break;
119
- case 53:
120
- b.addComponent("component", ...h[p]), this.$ = h[p];
121
- break;
122
- case 54:
123
- b.addComponent("component_db", ...h[p]), this.$ = h[p];
124
- break;
125
- case 55:
126
- b.addComponent("component_queue", ...h[p]), this.$ = h[p];
127
- break;
128
- case 56:
129
- b.addComponent("external_component", ...h[p]), this.$ = h[p];
130
- break;
131
- case 57:
132
- b.addComponent("external_component_db", ...h[p]), this.$ = h[p];
133
- break;
134
- case 58:
135
- b.addComponent("external_component_queue", ...h[p]), this.$ = h[p];
136
- break;
137
- case 60:
138
- b.addRel("rel", ...h[p]), this.$ = h[p];
139
- break;
140
- case 61:
141
- b.addRel("birel", ...h[p]), this.$ = h[p];
142
- break;
143
- case 62:
144
- b.addRel("rel_u", ...h[p]), this.$ = h[p];
145
- break;
146
- case 63:
147
- b.addRel("rel_d", ...h[p]), this.$ = h[p];
148
- break;
149
- case 64:
150
- b.addRel("rel_l", ...h[p]), this.$ = h[p];
151
- break;
152
- case 65:
153
- b.addRel("rel_r", ...h[p]), this.$ = h[p];
154
- break;
155
- case 66:
156
- b.addRel("rel_b", ...h[p]), this.$ = h[p];
157
- break;
158
- case 67:
159
- h[p].splice(0, 1), b.addRel("rel", ...h[p]), this.$ = h[p];
160
- break;
161
- case 68:
162
- b.updateElStyle("update_el_style", ...h[p]), this.$ = h[p];
163
- break;
164
- case 69:
165
- b.updateRelStyle("update_rel_style", ...h[p]), this.$ = h[p];
166
- break;
167
- case 70:
168
- b.updateLayoutConfig("update_layout_config", ...h[p]), this.$ = h[p];
169
- break;
170
- case 71:
171
- this.$ = [h[p]];
172
- break;
173
- case 72:
174
- h[p].unshift(h[p - 1]), this.$ = h[p];
175
- break;
176
- case 73:
177
- case 75:
178
- this.$ = h[p].trim();
179
- break;
180
- case 74:
181
- let Et = {};
182
- Et[h[p - 1].trim()] = h[p].trim(), this.$ = Et;
183
- break;
184
- case 76:
185
- this.$ = "";
186
- break;
187
- }
188
- }, "anonymous"),
189
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 14: [1, 74] }, e(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ct, [2, 14]), e(Qt, [2, 16], { 12: [1, 76] }), e(Ct, [2, 36], { 12: [1, 77] }), e(Ot, [2, 19]), e(Ot, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, e(Ot, [2, 23]), { 35: 80, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 86, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 87, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 88, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 89, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 90, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 91, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 92, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 93, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 94, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 95, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 96, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 97, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 98, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 99, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 100, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 101, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 102, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 103, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 104, 75: 81, 76: k, 77: A, 79: C, 80: w }, e(T, [2, 59]), { 35: 105, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 106, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 107, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 108, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 109, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 110, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 111, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 112, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 113, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 114, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 115, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 120, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 121, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 122, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 123, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 124, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 125, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, e(Ct, [2, 15]), e(Qt, [2, 17], { 21: 22, 19: 130, 22: t, 23: s, 24: o, 26: l, 28: a }), e(Ct, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: s, 24: o, 26: l, 28: a, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ot, [2, 21]), e(Ot, [2, 22]), e(T, [2, 39]), e(le, [2, 71], { 75: 81, 35: 132, 76: k, 77: A, 79: C, 80: w }), e(Mt, [2, 73]), { 78: [1, 133] }, e(Mt, [2, 75]), e(Mt, [2, 76]), e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(T, [2, 43]), e(T, [2, 44]), e(T, [2, 45]), e(T, [2, 46]), e(T, [2, 47]), e(T, [2, 48]), e(T, [2, 49]), e(T, [2, 50]), e(T, [2, 51]), e(T, [2, 52]), e(T, [2, 53]), e(T, [2, 54]), e(T, [2, 55]), e(T, [2, 56]), e(T, [2, 57]), e(T, [2, 58]), e(T, [2, 60]), e(T, [2, 61]), e(T, [2, 62]), e(T, [2, 63]), e(T, [2, 64]), e(T, [2, 65]), e(T, [2, 66]), e(T, [2, 67]), e(T, [2, 68]), e(T, [2, 69]), e(T, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, e(vt, [2, 28]), e(vt, [2, 29]), e(vt, [2, 30]), e(vt, [2, 31]), e(vt, [2, 32]), e(vt, [2, 33]), e(vt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, e(Qt, [2, 18]), e(Ct, [2, 38]), e(le, [2, 72]), e(Mt, [2, 74]), e(T, [2, 24]), e(T, [2, 35]), e(Ht, [2, 25]), e(Ht, [2, 26], { 12: [1, 138] }), e(Ht, [2, 27])],
190
- defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] },
191
- parseError: /* @__PURE__ */ g(function(x, m) {
192
- if (m.recoverable)
193
- this.trace(x);
194
- else {
195
- var v = new Error(x);
196
- throw v.hash = m, v;
197
- }
198
- }, "parseError"),
199
- parse: /* @__PURE__ */ g(function(x) {
200
- var m = this, v = [0], b = [], R = [null], h = [], Rt = this.table, p = "", Et = 0, oe = 0, we = 2, ce = 1, Te = h.slice.call(arguments, 1), D = Object.create(this.lexer), kt = { yy: {} };
201
- for (var Gt in this.yy)
202
- Object.prototype.hasOwnProperty.call(this.yy, Gt) && (kt.yy[Gt] = this.yy[Gt]);
203
- D.setInput(x, kt.yy), kt.yy.lexer = D, kt.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
204
- var Kt = D.yylloc;
205
- h.push(Kt);
206
- var Oe = D.options && D.options.ranges;
207
- typeof kt.yy.parseError == "function" ? this.parseError = kt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
208
- function Re(L) {
209
- v.length = v.length - 2 * L, R.length = R.length - L, h.length = h.length - L;
210
- }
211
- g(Re, "popStack");
212
- function he() {
213
- var L;
214
- return L = b.pop() || D.lex() || ce, typeof L != "number" && (L instanceof Array && (b = L, L = b.pop()), L = m.symbols_[L] || L), L;
215
- }
216
- g(he, "lex");
217
- for (var I, At, N, Jt, wt = {}, Nt, W, ue, Yt; ; ) {
218
- if (At = v[v.length - 1], this.defaultActions[At] ? N = this.defaultActions[At] : ((I === null || typeof I > "u") && (I = he()), N = Rt[At] && Rt[At][I]), typeof N > "u" || !N.length || !N[0]) {
219
- var Zt = "";
220
- Yt = [];
221
- for (Nt in Rt[At])
222
- this.terminals_[Nt] && Nt > we && Yt.push("'" + this.terminals_[Nt] + "'");
223
- D.showPosition ? Zt = "Parse error on line " + (Et + 1) + `:
224
- ` + D.showPosition() + `
225
- Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Zt = "Parse error on line " + (Et + 1) + ": Unexpected " + (I == ce ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Zt, {
226
- text: D.match,
227
- token: this.terminals_[I] || I,
228
- line: D.yylineno,
229
- loc: Kt,
230
- expected: Yt
231
- });
232
- }
233
- if (N[0] instanceof Array && N.length > 1)
234
- throw new Error("Parse Error: multiple actions possible at state: " + At + ", token: " + I);
235
- switch (N[0]) {
236
- case 1:
237
- v.push(I), R.push(D.yytext), h.push(D.yylloc), v.push(N[1]), I = null, oe = D.yyleng, p = D.yytext, Et = D.yylineno, Kt = D.yylloc;
238
- break;
239
- case 2:
240
- if (W = this.productions_[N[1]][1], wt.$ = R[R.length - W], wt._$ = {
241
- first_line: h[h.length - (W || 1)].first_line,
242
- last_line: h[h.length - 1].last_line,
243
- first_column: h[h.length - (W || 1)].first_column,
244
- last_column: h[h.length - 1].last_column
245
- }, Oe && (wt._$.range = [
246
- h[h.length - (W || 1)].range[0],
247
- h[h.length - 1].range[1]
248
- ]), Jt = this.performAction.apply(wt, [
249
- p,
250
- oe,
251
- Et,
252
- kt.yy,
253
- N[1],
254
- R,
255
- h
256
- ].concat(Te)), typeof Jt < "u")
257
- return Jt;
258
- W && (v = v.slice(0, -1 * W * 2), R = R.slice(0, -1 * W), h = h.slice(0, -1 * W)), v.push(this.productions_[N[1]][0]), R.push(wt.$), h.push(wt._$), ue = Rt[v[v.length - 2]][v[v.length - 1]], v.push(ue);
259
- break;
260
- case 3:
261
- return !0;
262
- }
263
- }
264
- return !0;
265
- }, "parse")
266
- }, Ce = /* @__PURE__ */ function() {
267
- var _t = {
268
- EOF: 1,
269
- parseError: /* @__PURE__ */ g(function(m, v) {
270
- if (this.yy.parser)
271
- this.yy.parser.parseError(m, v);
272
- else
273
- throw new Error(m);
274
- }, "parseError"),
275
- // resets the lexer, sets new input
276
- setInput: /* @__PURE__ */ g(function(x, m) {
277
- return this.yy = m || this.yy || {}, this._input = x, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
278
- first_line: 1,
279
- first_column: 0,
280
- last_line: 1,
281
- last_column: 0
282
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
283
- }, "setInput"),
284
- // consumes and returns one char from the input
285
- input: /* @__PURE__ */ g(function() {
286
- var x = this._input[0];
287
- this.yytext += x, this.yyleng++, this.offset++, this.match += x, this.matched += x;
288
- var m = x.match(/(?:\r\n?|\n).*/g);
289
- return m ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), x;
290
- }, "input"),
291
- // unshifts one char (or a string) into the input
292
- unput: /* @__PURE__ */ g(function(x) {
293
- var m = x.length, v = x.split(/(?:\r\n?|\n)/g);
294
- this._input = x + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - m), this.offset -= m;
295
- var b = this.match.split(/(?:\r\n?|\n)/g);
296
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), v.length - 1 && (this.yylineno -= v.length - 1);
297
- var R = this.yylloc.range;
298
- return this.yylloc = {
299
- first_line: this.yylloc.first_line,
300
- last_line: this.yylineno + 1,
301
- first_column: this.yylloc.first_column,
302
- last_column: v ? (v.length === b.length ? this.yylloc.first_column : 0) + b[b.length - v.length].length - v[0].length : this.yylloc.first_column - m
303
- }, this.options.ranges && (this.yylloc.range = [R[0], R[0] + this.yyleng - m]), this.yyleng = this.yytext.length, this;
304
- }, "unput"),
305
- // When called from action, caches matched text and appends it on next action
306
- more: /* @__PURE__ */ g(function() {
307
- return this._more = !0, this;
308
- }, "more"),
309
- // 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.
310
- reject: /* @__PURE__ */ g(function() {
311
- if (this.options.backtrack_lexer)
312
- this._backtrack = !0;
313
- else
314
- 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).
315
- ` + this.showPosition(), {
316
- text: "",
317
- token: null,
318
- line: this.yylineno
319
- });
320
- return this;
321
- }, "reject"),
322
- // retain first n characters of the match
323
- less: /* @__PURE__ */ g(function(x) {
324
- this.unput(this.match.slice(x));
325
- }, "less"),
326
- // displays already matched input, i.e. for error messages
327
- pastInput: /* @__PURE__ */ g(function() {
328
- var x = this.matched.substr(0, this.matched.length - this.match.length);
329
- return (x.length > 20 ? "..." : "") + x.substr(-20).replace(/\n/g, "");
330
- }, "pastInput"),
331
- // displays upcoming input, i.e. for error messages
332
- upcomingInput: /* @__PURE__ */ g(function() {
333
- var x = this.match;
334
- return x.length < 20 && (x += this._input.substr(0, 20 - x.length)), (x.substr(0, 20) + (x.length > 20 ? "..." : "")).replace(/\n/g, "");
335
- }, "upcomingInput"),
336
- // displays the character position where the lexing error occurred, i.e. for error messages
337
- showPosition: /* @__PURE__ */ g(function() {
338
- var x = this.pastInput(), m = new Array(x.length + 1).join("-");
339
- return x + this.upcomingInput() + `
340
- ` + m + "^";
341
- }, "showPosition"),
342
- // test the lexed token: return FALSE when not a match, otherwise return token
343
- test_match: /* @__PURE__ */ g(function(x, m) {
344
- var v, b, R;
345
- if (this.options.backtrack_lexer && (R = {
346
- yylineno: this.yylineno,
347
- yylloc: {
348
- first_line: this.yylloc.first_line,
349
- last_line: this.last_line,
350
- first_column: this.yylloc.first_column,
351
- last_column: this.yylloc.last_column
352
- },
353
- yytext: this.yytext,
354
- match: this.match,
355
- matches: this.matches,
356
- matched: this.matched,
357
- yyleng: this.yyleng,
358
- offset: this.offset,
359
- _more: this._more,
360
- _input: this._input,
361
- yy: this.yy,
362
- conditionStack: this.conditionStack.slice(0),
363
- done: this.done
364
- }, this.options.ranges && (R.yylloc.range = this.yylloc.range.slice(0))), b = x[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
365
- first_line: this.yylloc.last_line,
366
- last_line: this.yylineno + 1,
367
- first_column: this.yylloc.last_column,
368
- last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + x[0].length
369
- }, this.yytext += x[0], this.match += x[0], this.matches = x, 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(x[0].length), this.matched += x[0], v = this.performAction.call(this, this.yy, this, m, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), v)
370
- return v;
371
- if (this._backtrack) {
372
- for (var h in R)
373
- this[h] = R[h];
374
- return !1;
375
- }
376
- return !1;
377
- }, "test_match"),
378
- // return next match in input
379
- next: /* @__PURE__ */ g(function() {
380
- if (this.done)
381
- return this.EOF;
382
- this._input || (this.done = !0);
383
- var x, m, v, b;
384
- this._more || (this.yytext = "", this.match = "");
385
- for (var R = this._currentRules(), h = 0; h < R.length; h++)
386
- if (v = this._input.match(this.rules[R[h]]), v && (!m || v[0].length > m[0].length)) {
387
- if (m = v, b = h, this.options.backtrack_lexer) {
388
- if (x = this.test_match(v, R[h]), x !== !1)
389
- return x;
390
- if (this._backtrack) {
391
- m = !1;
392
- continue;
393
- } else
394
- return !1;
395
- } else if (!this.options.flex)
396
- break;
397
- }
398
- return m ? (x = this.test_match(m, R[b]), x !== !1 ? x : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
399
- ` + this.showPosition(), {
400
- text: "",
401
- token: null,
402
- line: this.yylineno
403
- });
404
- }, "next"),
405
- // return next match that has a token
406
- lex: /* @__PURE__ */ g(function() {
407
- var m = this.next();
408
- return m || this.lex();
409
- }, "lex"),
410
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
411
- begin: /* @__PURE__ */ g(function(m) {
412
- this.conditionStack.push(m);
413
- }, "begin"),
414
- // pop the previously active lexer condition state off the condition stack
415
- popState: /* @__PURE__ */ g(function() {
416
- var m = this.conditionStack.length - 1;
417
- return m > 0 ? this.conditionStack.pop() : this.conditionStack[0];
418
- }, "popState"),
419
- // produce the lexer rule set which is active for the currently active lexer condition state
420
- _currentRules: /* @__PURE__ */ g(function() {
421
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
422
- }, "_currentRules"),
423
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
424
- topState: /* @__PURE__ */ g(function(m) {
425
- return m = this.conditionStack.length - 1 - Math.abs(m || 0), m >= 0 ? this.conditionStack[m] : "INITIAL";
426
- }, "topState"),
427
- // alias for begin(condition)
428
- pushState: /* @__PURE__ */ g(function(m) {
429
- this.begin(m);
430
- }, "pushState"),
431
- // return the number of states currently on the stack
432
- stateStackSize: /* @__PURE__ */ g(function() {
433
- return this.conditionStack.length;
434
- }, "stateStackSize"),
435
- options: {},
436
- performAction: /* @__PURE__ */ g(function(m, v, b, R) {
437
- switch (b) {
438
- case 0:
439
- return 6;
440
- case 1:
441
- return 7;
442
- case 2:
443
- return 8;
444
- case 3:
445
- return 9;
446
- case 4:
447
- return 22;
448
- case 5:
449
- return 23;
450
- case 6:
451
- return this.begin("acc_title"), 24;
452
- case 7:
453
- return this.popState(), "acc_title_value";
454
- case 8:
455
- return this.begin("acc_descr"), 26;
456
- case 9:
457
- return this.popState(), "acc_descr_value";
458
- case 10:
459
- this.begin("acc_descr_multiline");
460
- break;
461
- case 11:
462
- this.popState();
463
- break;
464
- case 12:
465
- return "acc_descr_multiline_value";
466
- case 13:
467
- break;
468
- case 14:
469
- c;
470
- break;
471
- case 15:
472
- return 12;
473
- case 16:
474
- break;
475
- case 17:
476
- return 11;
477
- case 18:
478
- return 15;
479
- case 19:
480
- return 16;
481
- case 20:
482
- return 17;
483
- case 21:
484
- return 18;
485
- case 22:
486
- return this.begin("person_ext"), 45;
487
- case 23:
488
- return this.begin("person"), 44;
489
- case 24:
490
- return this.begin("system_ext_queue"), 51;
491
- case 25:
492
- return this.begin("system_ext_db"), 50;
493
- case 26:
494
- return this.begin("system_ext"), 49;
495
- case 27:
496
- return this.begin("system_queue"), 48;
497
- case 28:
498
- return this.begin("system_db"), 47;
499
- case 29:
500
- return this.begin("system"), 46;
501
- case 30:
502
- return this.begin("boundary"), 37;
503
- case 31:
504
- return this.begin("enterprise_boundary"), 34;
505
- case 32:
506
- return this.begin("system_boundary"), 36;
507
- case 33:
508
- return this.begin("container_ext_queue"), 57;
509
- case 34:
510
- return this.begin("container_ext_db"), 56;
511
- case 35:
512
- return this.begin("container_ext"), 55;
513
- case 36:
514
- return this.begin("container_queue"), 54;
515
- case 37:
516
- return this.begin("container_db"), 53;
517
- case 38:
518
- return this.begin("container"), 52;
519
- case 39:
520
- return this.begin("container_boundary"), 38;
521
- case 40:
522
- return this.begin("component_ext_queue"), 63;
523
- case 41:
524
- return this.begin("component_ext_db"), 62;
525
- case 42:
526
- return this.begin("component_ext"), 61;
527
- case 43:
528
- return this.begin("component_queue"), 60;
529
- case 44:
530
- return this.begin("component_db"), 59;
531
- case 45:
532
- return this.begin("component"), 58;
533
- case 46:
534
- return this.begin("node"), 39;
535
- case 47:
536
- return this.begin("node"), 39;
537
- case 48:
538
- return this.begin("node_l"), 40;
539
- case 49:
540
- return this.begin("node_r"), 41;
541
- case 50:
542
- return this.begin("rel"), 64;
543
- case 51:
544
- return this.begin("birel"), 65;
545
- case 52:
546
- return this.begin("rel_u"), 66;
547
- case 53:
548
- return this.begin("rel_u"), 66;
549
- case 54:
550
- return this.begin("rel_d"), 67;
551
- case 55:
552
- return this.begin("rel_d"), 67;
553
- case 56:
554
- return this.begin("rel_l"), 68;
555
- case 57:
556
- return this.begin("rel_l"), 68;
557
- case 58:
558
- return this.begin("rel_r"), 69;
559
- case 59:
560
- return this.begin("rel_r"), 69;
561
- case 60:
562
- return this.begin("rel_b"), 70;
563
- case 61:
564
- return this.begin("rel_index"), 71;
565
- case 62:
566
- return this.begin("update_el_style"), 72;
567
- case 63:
568
- return this.begin("update_rel_style"), 73;
569
- case 64:
570
- return this.begin("update_layout_config"), 74;
571
- case 65:
572
- return "EOF_IN_STRUCT";
573
- case 66:
574
- return this.begin("attribute"), "ATTRIBUTE_EMPTY";
575
- case 67:
576
- this.begin("attribute");
577
- break;
578
- case 68:
579
- this.popState(), this.popState();
580
- break;
581
- case 69:
582
- return 80;
583
- case 70:
584
- break;
585
- case 71:
586
- return 80;
587
- case 72:
588
- this.begin("string");
589
- break;
590
- case 73:
591
- this.popState();
592
- break;
593
- case 74:
594
- return "STR";
595
- case 75:
596
- this.begin("string_kv");
597
- break;
598
- case 76:
599
- return this.begin("string_kv_key"), "STR_KEY";
600
- case 77:
601
- this.popState(), this.begin("string_kv_value");
602
- break;
603
- case 78:
604
- return "STR_VALUE";
605
- case 79:
606
- this.popState(), this.popState();
607
- break;
608
- case 80:
609
- return "STR";
610
- case 81:
611
- return "LBRACE";
612
- case 82:
613
- return "RBRACE";
614
- case 83:
615
- return "SPACE";
616
- case 84:
617
- return "EOL";
618
- case 85:
619
- return 14;
620
- }
621
- }, "anonymous"),
622
- rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
623
- conditions: { acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, string_kv_value: { rules: [78, 79], inclusive: !1 }, string_kv_key: { rules: [77], inclusive: !1 }, string_kv: { rules: [76], inclusive: !1 }, string: { rules: [73, 74], inclusive: !1 }, attribute: { rules: [68, 69, 70, 71, 72, 75, 80], inclusive: !1 }, update_layout_config: { rules: [65, 66, 67, 68], inclusive: !1 }, update_rel_style: { rules: [65, 66, 67, 68], inclusive: !1 }, update_el_style: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_b: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_r: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_l: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_d: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_u: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_bi: { rules: [], inclusive: !1 }, rel: { rules: [65, 66, 67, 68], inclusive: !1 }, node_r: { rules: [65, 66, 67, 68], inclusive: !1 }, node_l: { rules: [65, 66, 67, 68], inclusive: !1 }, node: { rules: [65, 66, 67, 68], inclusive: !1 }, index: { rules: [], inclusive: !1 }, rel_index: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext_queue: { rules: [], inclusive: !1 }, component_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, component_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, component_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component: { rules: [65, 66, 67, 68], inclusive: !1 }, container_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, container_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container: { rules: [65, 66, 67, 68], inclusive: !1 }, birel: { rules: [65, 66, 67, 68], inclusive: !1 }, system_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, enterprise_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, system_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system: { rules: [65, 66, 67, 68], inclusive: !1 }, person_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, person: { rules: [65, 66, 67, 68], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 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, 81, 82, 83, 84, 85], inclusive: !0 } }
624
- };
625
- return _t;
626
- }();
627
- qt.lexer = Ce;
628
- function Lt() {
629
- this.yy = {};
630
- }
631
- return g(Lt, "Parser"), Lt.prototype = qt, qt.Parser = Lt, new Lt();
632
- }();
633
- Ft.parser = Ft;
634
- var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
635
- {
636
- alias: "global",
637
- label: { text: "global" },
638
- type: { text: "global" },
639
- tags: null,
640
- link: null,
641
- parentBoundary: ""
642
- }
643
- ], Pt = [], ie = "", ne = !1, Vt = 4, zt = 2, be, Fe = /* @__PURE__ */ g(function() {
644
- return be;
645
- }, "getC4Type"), Ve = /* @__PURE__ */ g(function(e) {
646
- be = ge(e, Dt());
647
- }, "setC4Type"), ze = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n, i) {
648
- if (e == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null)
649
- return;
650
- let u = {};
651
- const d = Pt.find((f) => f.from === t && f.to === s);
652
- if (d ? u = d : Pt.push(u), u.type = e, u.from = t, u.to = s, u.label = { text: o }, l == null)
653
- u.techn = { text: "" };
654
- else if (typeof l == "object") {
655
- let [f, y] = Object.entries(l)[0];
656
- u[f] = { text: y };
657
- } else
658
- u.techn = { text: l };
659
- if (a == null)
660
- u.descr = { text: "" };
661
- else if (typeof a == "object") {
662
- let [f, y] = Object.entries(a)[0];
663
- u[f] = { text: y };
664
- } else
665
- u.descr = { text: a };
666
- if (typeof r == "object") {
667
- let [f, y] = Object.entries(r)[0];
668
- u[f] = y;
669
- } else
670
- u.sprite = r;
671
- if (typeof n == "object") {
672
- let [f, y] = Object.entries(n)[0];
673
- u[f] = y;
674
- } else
675
- u.tags = n;
676
- if (typeof i == "object") {
677
- let [f, y] = Object.entries(i)[0];
678
- u[f] = y;
679
- } else
680
- u.link = i;
681
- u.wrap = mt();
682
- }, "addRel"), Xe = /* @__PURE__ */ g(function(e, t, s, o, l, a, r) {
683
- if (t === null || s === null)
684
- return;
685
- let n = {};
686
- const i = V.find((u) => u.alias === t);
687
- if (i && t === i.alias ? n = i : (n.alias = t, V.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null)
688
- n.descr = { text: "" };
689
- else if (typeof o == "object") {
690
- let [u, d] = Object.entries(o)[0];
691
- n[u] = { text: d };
692
- } else
693
- n.descr = { text: o };
694
- if (typeof l == "object") {
695
- let [u, d] = Object.entries(l)[0];
696
- n[u] = d;
697
- } else
698
- n.sprite = l;
699
- if (typeof a == "object") {
700
- let [u, d] = Object.entries(a)[0];
701
- n[u] = d;
702
- } else
703
- n.tags = a;
704
- if (typeof r == "object") {
705
- let [u, d] = Object.entries(r)[0];
706
- n[u] = d;
707
- } else
708
- n.link = r;
709
- n.typeC4Shape = { text: e }, n.parentBoundary = B, n.wrap = mt();
710
- }, "addPersonOrSystem"), We = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
711
- if (t === null || s === null)
712
- return;
713
- let i = {};
714
- const u = V.find((d) => d.alias === t);
715
- if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
716
- i.techn = { text: "" };
717
- else if (typeof o == "object") {
718
- let [d, f] = Object.entries(o)[0];
719
- i[d] = { text: f };
720
- } else
721
- i.techn = { text: o };
722
- if (l == null)
723
- i.descr = { text: "" };
724
- else if (typeof l == "object") {
725
- let [d, f] = Object.entries(l)[0];
726
- i[d] = { text: f };
727
- } else
728
- i.descr = { text: l };
729
- if (typeof a == "object") {
730
- let [d, f] = Object.entries(a)[0];
731
- i[d] = f;
732
- } else
733
- i.sprite = a;
734
- if (typeof r == "object") {
735
- let [d, f] = Object.entries(r)[0];
736
- i[d] = f;
737
- } else
738
- i.tags = r;
739
- if (typeof n == "object") {
740
- let [d, f] = Object.entries(n)[0];
741
- i[d] = f;
742
- } else
743
- i.link = n;
744
- i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
745
- }, "addContainer"), Qe = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
746
- if (t === null || s === null)
747
- return;
748
- let i = {};
749
- const u = V.find((d) => d.alias === t);
750
- if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
751
- i.techn = { text: "" };
752
- else if (typeof o == "object") {
753
- let [d, f] = Object.entries(o)[0];
754
- i[d] = { text: f };
755
- } else
756
- i.techn = { text: o };
757
- if (l == null)
758
- i.descr = { text: "" };
759
- else if (typeof l == "object") {
760
- let [d, f] = Object.entries(l)[0];
761
- i[d] = { text: f };
762
- } else
763
- i.descr = { text: l };
764
- if (typeof a == "object") {
765
- let [d, f] = Object.entries(a)[0];
766
- i[d] = f;
767
- } else
768
- i.sprite = a;
769
- if (typeof r == "object") {
770
- let [d, f] = Object.entries(r)[0];
771
- i[d] = f;
772
- } else
773
- i.tags = r;
774
- if (typeof n == "object") {
775
- let [d, f] = Object.entries(n)[0];
776
- i[d] = f;
777
- } else
778
- i.link = n;
779
- i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
780
- }, "addComponent"), He = /* @__PURE__ */ g(function(e, t, s, o, l) {
781
- if (e === null || t === null)
782
- return;
783
- let a = {};
784
- const r = X.find((n) => n.alias === e);
785
- if (r && e === r.alias ? a = r : (a.alias = e, X.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, s == null)
786
- a.type = { text: "system" };
787
- else if (typeof s == "object") {
788
- let [n, i] = Object.entries(s)[0];
789
- a[n] = { text: i };
790
- } else
791
- a.type = { text: s };
792
- if (typeof o == "object") {
793
- let [n, i] = Object.entries(o)[0];
794
- a[n] = i;
795
- } else
796
- a.tags = o;
797
- if (typeof l == "object") {
798
- let [n, i] = Object.entries(l)[0];
799
- a[n] = i;
800
- } else
801
- a.link = l;
802
- a.parentBoundary = B, a.wrap = mt(), F = B, B = e, xt.push(F);
803
- }, "addPersonOrSystemBoundary"), qe = /* @__PURE__ */ g(function(e, t, s, o, l) {
804
- if (e === null || t === null)
805
- return;
806
- let a = {};
807
- const r = X.find((n) => n.alias === e);
808
- if (r && e === r.alias ? a = r : (a.alias = e, X.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, s == null)
809
- a.type = { text: "container" };
810
- else if (typeof s == "object") {
811
- let [n, i] = Object.entries(s)[0];
812
- a[n] = { text: i };
813
- } else
814
- a.type = { text: s };
815
- if (typeof o == "object") {
816
- let [n, i] = Object.entries(o)[0];
817
- a[n] = i;
818
- } else
819
- a.tags = o;
820
- if (typeof l == "object") {
821
- let [n, i] = Object.entries(l)[0];
822
- a[n] = i;
823
- } else
824
- a.link = l;
825
- a.parentBoundary = B, a.wrap = mt(), F = B, B = e, xt.push(F);
826
- }, "addContainerBoundary"), Ge = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
827
- if (t === null || s === null)
828
- return;
829
- let i = {};
830
- const u = X.find((d) => d.alias === t);
831
- if (u && t === u.alias ? i = u : (i.alias = t, X.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
832
- i.type = { text: "node" };
833
- else if (typeof o == "object") {
834
- let [d, f] = Object.entries(o)[0];
835
- i[d] = { text: f };
836
- } else
837
- i.type = { text: o };
838
- if (l == null)
839
- i.descr = { text: "" };
840
- else if (typeof l == "object") {
841
- let [d, f] = Object.entries(l)[0];
842
- i[d] = { text: f };
843
- } else
844
- i.descr = { text: l };
845
- if (typeof r == "object") {
846
- let [d, f] = Object.entries(r)[0];
847
- i[d] = f;
848
- } else
849
- i.tags = r;
850
- if (typeof n == "object") {
851
- let [d, f] = Object.entries(n)[0];
852
- i[d] = f;
853
- } else
854
- i.link = n;
855
- i.nodeType = e, i.parentBoundary = B, i.wrap = mt(), F = B, B = t, xt.push(F);
856
- }, "addDeploymentNode"), Ke = /* @__PURE__ */ g(function() {
857
- B = F, xt.pop(), F = xt.pop(), xt.push(F);
858
- }, "popBoundaryParseStack"), Je = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n, i, u, d) {
859
- let f = V.find((y) => y.alias === t);
860
- if (!(f === void 0 && (f = X.find((y) => y.alias === t), f === void 0))) {
861
- if (s != null)
862
- if (typeof s == "object") {
863
- let [y, E] = Object.entries(s)[0];
864
- f[y] = E;
865
- } else
866
- f.bgColor = s;
867
- if (o != null)
868
- if (typeof o == "object") {
869
- let [y, E] = Object.entries(o)[0];
870
- f[y] = E;
871
- } else
872
- f.fontColor = o;
873
- if (l != null)
874
- if (typeof l == "object") {
875
- let [y, E] = Object.entries(l)[0];
876
- f[y] = E;
877
- } else
878
- f.borderColor = l;
879
- if (a != null)
880
- if (typeof a == "object") {
881
- let [y, E] = Object.entries(a)[0];
882
- f[y] = E;
883
- } else
884
- f.shadowing = a;
885
- if (r != null)
886
- if (typeof r == "object") {
887
- let [y, E] = Object.entries(r)[0];
888
- f[y] = E;
889
- } else
890
- f.shape = r;
891
- if (n != null)
892
- if (typeof n == "object") {
893
- let [y, E] = Object.entries(n)[0];
894
- f[y] = E;
895
- } else
896
- f.sprite = n;
897
- if (i != null)
898
- if (typeof i == "object") {
899
- let [y, E] = Object.entries(i)[0];
900
- f[y] = E;
901
- } else
902
- f.techn = i;
903
- if (u != null)
904
- if (typeof u == "object") {
905
- let [y, E] = Object.entries(u)[0];
906
- f[y] = E;
907
- } else
908
- f.legendText = u;
909
- if (d != null)
910
- if (typeof d == "object") {
911
- let [y, E] = Object.entries(d)[0];
912
- f[y] = E;
913
- } else
914
- f.legendSprite = d;
915
- }
916
- }, "updateElStyle"), Ze = /* @__PURE__ */ g(function(e, t, s, o, l, a, r) {
917
- const n = Pt.find((i) => i.from === t && i.to === s);
918
- if (n !== void 0) {
919
- if (o != null)
920
- if (typeof o == "object") {
921
- let [i, u] = Object.entries(o)[0];
922
- n[i] = u;
923
- } else
924
- n.textColor = o;
925
- if (l != null)
926
- if (typeof l == "object") {
927
- let [i, u] = Object.entries(l)[0];
928
- n[i] = u;
929
- } else
930
- n.lineColor = l;
931
- if (a != null)
932
- if (typeof a == "object") {
933
- let [i, u] = Object.entries(a)[0];
934
- n[i] = parseInt(u);
935
- } else
936
- n.offsetX = parseInt(a);
937
- if (r != null)
938
- if (typeof r == "object") {
939
- let [i, u] = Object.entries(r)[0];
940
- n[i] = parseInt(u);
941
- } else
942
- n.offsetY = parseInt(r);
943
- }
944
- }, "updateRelStyle"), $e = /* @__PURE__ */ g(function(e, t, s) {
945
- let o = Vt, l = zt;
946
- if (typeof t == "object") {
947
- const a = Object.values(t)[0];
948
- o = parseInt(a);
949
- } else
950
- o = parseInt(t);
951
- if (typeof s == "object") {
952
- const a = Object.values(s)[0];
953
- l = parseInt(a);
954
- } else
955
- l = parseInt(s);
956
- o >= 1 && (Vt = o), l >= 1 && (zt = l);
957
- }, "updateLayoutConfig"), t0 = /* @__PURE__ */ g(function() {
958
- return Vt;
959
- }, "getC4ShapeInRow"), e0 = /* @__PURE__ */ g(function() {
960
- return zt;
961
- }, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ g(function() {
962
- return B;
963
- }, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ g(function() {
964
- return F;
965
- }, "getParentBoundaryParse"), _e = /* @__PURE__ */ g(function(e) {
966
- return e == null ? V : V.filter((t) => t.parentBoundary === e);
967
- }, "getC4ShapeArray"), n0 = /* @__PURE__ */ g(function(e) {
968
- return V.find((t) => t.alias === e);
969
- }, "getC4Shape"), r0 = /* @__PURE__ */ g(function(e) {
970
- return Object.keys(_e(e));
971
- }, "getC4ShapeKeys"), xe = /* @__PURE__ */ g(function(e) {
972
- return e == null ? X : X.filter((t) => t.parentBoundary === e);
973
- }, "getBoundaries"), s0 = xe, l0 = /* @__PURE__ */ g(function() {
974
- return Pt;
975
- }, "getRels"), o0 = /* @__PURE__ */ g(function() {
976
- return ie;
977
- }, "getTitle"), c0 = /* @__PURE__ */ g(function(e) {
978
- ne = e;
979
- }, "setWrap"), mt = /* @__PURE__ */ g(function() {
980
- return ne;
981
- }, "autoWrap"), h0 = /* @__PURE__ */ g(function() {
982
- V = [], X = [
983
- {
984
- alias: "global",
985
- label: { text: "global" },
986
- type: { text: "global" },
987
- tags: null,
988
- link: null,
989
- parentBoundary: ""
990
- }
991
- ], F = "", B = "global", xt = [""], Pt = [], xt = [""], ie = "", ne = !1, Vt = 4, zt = 2;
992
- }, "clear"), u0 = {
993
- SOLID: 0,
994
- DOTTED: 1,
995
- NOTE: 2,
996
- SOLID_CROSS: 3,
997
- DOTTED_CROSS: 4,
998
- SOLID_OPEN: 5,
999
- DOTTED_OPEN: 6,
1000
- LOOP_START: 10,
1001
- LOOP_END: 11,
1002
- ALT_START: 12,
1003
- ALT_ELSE: 13,
1004
- ALT_END: 14,
1005
- OPT_START: 15,
1006
- OPT_END: 16,
1007
- ACTIVE_START: 17,
1008
- ACTIVE_END: 18,
1009
- PAR_START: 19,
1010
- PAR_AND: 20,
1011
- PAR_END: 21,
1012
- RECT_START: 22,
1013
- RECT_END: 23,
1014
- SOLID_POINT: 24,
1015
- DOTTED_POINT: 25
1016
- }, d0 = {
1017
- FILLED: 0,
1018
- OPEN: 1
1019
- }, f0 = {
1020
- LEFTOF: 0,
1021
- RIGHTOF: 1,
1022
- OVER: 2
1023
- }, p0 = /* @__PURE__ */ g(function(e) {
1024
- ie = ge(e, Dt());
1025
- }, "setTitle"), te = {
1026
- addPersonOrSystem: Xe,
1027
- addPersonOrSystemBoundary: He,
1028
- addContainer: We,
1029
- addContainerBoundary: qe,
1030
- addComponent: Qe,
1031
- addDeploymentNode: Ge,
1032
- popBoundaryParseStack: Ke,
1033
- addRel: ze,
1034
- updateElStyle: Je,
1035
- updateRelStyle: Ze,
1036
- updateLayoutConfig: $e,
1037
- autoWrap: mt,
1038
- setWrap: c0,
1039
- getC4ShapeArray: _e,
1040
- getC4Shape: n0,
1041
- getC4ShapeKeys: r0,
1042
- getBoundaries: xe,
1043
- getBoundarys: s0,
1044
- getCurrentBoundaryParse: a0,
1045
- getParentBoundaryParse: i0,
1046
- getRels: l0,
1047
- getTitle: o0,
1048
- getC4Type: Fe,
1049
- getC4ShapeInRow: t0,
1050
- getC4BoundaryInRow: e0,
1051
- setAccTitle: Be,
1052
- getAccTitle: Ie,
1053
- getAccDescription: Me,
1054
- setAccDescription: Le,
1055
- getConfig: /* @__PURE__ */ g(() => Dt().c4, "getConfig"),
1056
- clear: h0,
1057
- LINETYPE: u0,
1058
- ARROWTYPE: d0,
1059
- PLACEMENT: f0,
1060
- setTitle: p0,
1061
- setC4Type: Ve
1062
- // apply,
1063
- }, re = /* @__PURE__ */ g(function(e, t) {
1064
- return Se(e, t);
1065
- }, "drawRect"), me = /* @__PURE__ */ g(function(e, t, s, o, l, a) {
1066
- const r = e.append("image");
1067
- r.attr("width", t), r.attr("height", s), r.attr("x", o), r.attr("y", l);
1068
- let n = a.startsWith("data:image/png;base64") ? a : je(a);
1069
- r.attr("xlink:href", n);
1070
- }, "drawImage"), y0 = /* @__PURE__ */ g((e, t, s) => {
1071
- const o = e.append("g");
1072
- let l = 0;
1073
- for (let a of t) {
1074
- let r = a.textColor ? a.textColor : "#444444", n = a.lineColor ? a.lineColor : "#444444", i = a.offsetX ? parseInt(a.offsetX) : 0, u = a.offsetY ? parseInt(a.offsetY) : 0, d = "";
1075
- if (l === 0) {
1076
- let y = o.append("line");
1077
- y.attr("x1", a.startPoint.x), y.attr("y1", a.startPoint.y), y.attr("x2", a.endPoint.x), y.attr("y2", a.endPoint.y), y.attr("stroke-width", "1"), y.attr("stroke", n), y.style("fill", "none"), a.type !== "rel_b" && y.attr("marker-end", "url(" + d + "#arrowhead)"), (a.type === "birel" || a.type === "rel_b") && y.attr("marker-start", "url(" + d + "#arrowend)"), l = -1;
1078
- } else {
1079
- let y = o.append("path");
1080
- y.attr("fill", "none").attr("stroke-width", "1").attr("stroke", n).attr(
1081
- "d",
1082
- "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", a.startPoint.x).replaceAll("starty", a.startPoint.y).replaceAll(
1083
- "controlx",
1084
- a.startPoint.x + (a.endPoint.x - a.startPoint.x) / 2 - (a.endPoint.x - a.startPoint.x) / 4
1085
- ).replaceAll("controly", a.startPoint.y + (a.endPoint.y - a.startPoint.y) / 2).replaceAll("stopx", a.endPoint.x).replaceAll("stopy", a.endPoint.y)
1086
- ), a.type !== "rel_b" && y.attr("marker-end", "url(" + d + "#arrowhead)"), (a.type === "birel" || a.type === "rel_b") && y.attr("marker-start", "url(" + d + "#arrowend)");
1087
- }
1088
- let f = s.messageFont();
1089
- Q(s)(
1090
- a.label.text,
1091
- o,
1092
- Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + i,
1093
- Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + u,
1094
- a.label.width,
1095
- a.label.height,
1096
- { fill: r },
1097
- f
1098
- ), a.techn && a.techn.text !== "" && (f = s.messageFont(), Q(s)(
1099
- "[" + a.techn.text + "]",
1100
- o,
1101
- Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + i,
1102
- Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + s.messageFontSize + 5 + u,
1103
- Math.max(a.label.width, a.techn.width),
1104
- a.techn.height,
1105
- { fill: r, "font-style": "italic" },
1106
- f
1107
- ));
1108
- }
1109
- }, "drawRels"), g0 = /* @__PURE__ */ g(function(e, t, s) {
1110
- const o = e.append("g");
1111
- let l = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", r = t.fontColor ? t.fontColor : "black", n = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1112
- t.nodeType && (n = { "stroke-width": 1 });
1113
- let i = {
1114
- x: t.x,
1115
- y: t.y,
1116
- fill: l,
1117
- stroke: a,
1118
- width: t.width,
1119
- height: t.height,
1120
- rx: 2.5,
1121
- ry: 2.5,
1122
- attrs: n
1123
- };
1124
- re(o, i);
1125
- let u = s.boundaryFont();
1126
- u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = r, Q(s)(
1127
- t.label.text,
1128
- o,
1129
- t.x,
1130
- t.y + t.label.Y,
1131
- t.width,
1132
- t.height,
1133
- { fill: "#444444" },
1134
- u
1135
- ), t.type && t.type.text !== "" && (u = s.boundaryFont(), u.fontColor = r, Q(s)(
1136
- t.type.text,
1137
- o,
1138
- t.x,
1139
- t.y + t.type.Y,
1140
- t.width,
1141
- t.height,
1142
- { fill: "#444444" },
1143
- u
1144
- )), t.descr && t.descr.text !== "" && (u = s.boundaryFont(), u.fontSize = u.fontSize - 2, u.fontColor = r, Q(s)(
1145
- t.descr.text,
1146
- o,
1147
- t.x,
1148
- t.y + t.descr.Y,
1149
- t.width,
1150
- t.height,
1151
- { fill: "#444444" },
1152
- u
1153
- ));
1154
- }, "drawBoundary"), b0 = /* @__PURE__ */ g(function(e, t, s) {
1155
- var f;
1156
- let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], l = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], a = t.fontColor ? t.fontColor : "#FFFFFF", r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1157
- switch (t.typeC4Shape.text) {
1158
- case "person":
1159
- r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1160
- break;
1161
- case "external_person":
1162
- r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1163
- break;
1164
- }
1165
- const n = e.append("g");
1166
- n.attr("class", "person-man");
1167
- const i = De();
1168
- switch (t.typeC4Shape.text) {
1169
- case "person":
1170
- case "external_person":
1171
- case "system":
1172
- case "external_system":
1173
- case "container":
1174
- case "external_container":
1175
- case "component":
1176
- case "external_component":
1177
- i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = l, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, re(n, i);
1178
- break;
1179
- case "system_db":
1180
- case "external_system_db":
1181
- case "container_db":
1182
- case "external_container_db":
1183
- case "component_db":
1184
- case "external_component_db":
1185
- n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1186
- "d",
1187
- "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)
1188
- ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1189
- "d",
1190
- "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2)
1191
- );
1192
- break;
1193
- case "system_queue":
1194
- case "external_system_queue":
1195
- case "container_queue":
1196
- case "external_container_queue":
1197
- case "component_queue":
1198
- case "external_component_queue":
1199
- n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1200
- "d",
1201
- "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)
1202
- ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1203
- "d",
1204
- "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2)
1205
- );
1206
- break;
1207
- }
1208
- let u = w0(s, t.typeC4Shape.text);
1209
- switch (n.append("text").attr("fill", a).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
1210
- case "person":
1211
- case "external_person":
1212
- me(
1213
- n,
1214
- 48,
1215
- 48,
1216
- t.x + t.width / 2 - 24,
1217
- t.y + t.image.Y,
1218
- r
1219
- );
1220
- break;
1221
- }
1222
- let d = s[t.typeC4Shape.text + "Font"]();
1223
- return d.fontWeight = "bold", d.fontSize = d.fontSize + 2, d.fontColor = a, Q(s)(
1224
- t.label.text,
1225
- n,
1226
- t.x,
1227
- t.y + t.label.Y,
1228
- t.width,
1229
- t.height,
1230
- { fill: a },
1231
- d
1232
- ), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = a, t.techn && ((f = t.techn) == null ? void 0 : f.text) !== "" ? Q(s)(
1233
- t.techn.text,
1234
- n,
1235
- t.x,
1236
- t.y + t.techn.Y,
1237
- t.width,
1238
- t.height,
1239
- { fill: a, "font-style": "italic" },
1240
- d
1241
- ) : t.type && t.type.text !== "" && Q(s)(
1242
- t.type.text,
1243
- n,
1244
- t.x,
1245
- t.y + t.type.Y,
1246
- t.width,
1247
- t.height,
1248
- { fill: a, "font-style": "italic" },
1249
- d
1250
- ), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = a, Q(s)(
1251
- t.descr.text,
1252
- n,
1253
- t.x,
1254
- t.y + t.descr.Y,
1255
- t.width,
1256
- t.height,
1257
- { fill: a },
1258
- d
1259
- )), t.height;
1260
- }, "drawC4Shape"), _0 = /* @__PURE__ */ g(function(e) {
1261
- e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1262
- "d",
1263
- "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
1264
- );
1265
- }, "insertDatabaseIcon"), x0 = /* @__PURE__ */ g(function(e) {
1266
- e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1267
- "d",
1268
- "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
1269
- );
1270
- }, "insertComputerIcon"), m0 = /* @__PURE__ */ g(function(e) {
1271
- e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1272
- "d",
1273
- "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
1274
- );
1275
- }, "insertClockIcon"), v0 = /* @__PURE__ */ g(function(e) {
1276
- e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
1277
- }, "insertArrowHead"), E0 = /* @__PURE__ */ g(function(e) {
1278
- e.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
1279
- }, "insertArrowEnd"), k0 = /* @__PURE__ */ g(function(e) {
1280
- e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1281
- }, "insertArrowFilledHead"), A0 = /* @__PURE__ */ g(function(e) {
1282
- e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
1283
- }, "insertDynamicNumber"), C0 = /* @__PURE__ */ g(function(e) {
1284
- const s = e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1285
- s.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), s.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
1286
- }, "insertArrowCrossHead"), w0 = /* @__PURE__ */ g((e, t) => ({
1287
- fontFamily: e[t + "FontFamily"],
1288
- fontSize: e[t + "FontSize"],
1289
- fontWeight: e[t + "FontWeight"]
1290
- }), "getC4ShapeFont"), Q = /* @__PURE__ */ function() {
1291
- function e(l, a, r, n, i, u, d) {
1292
- const f = a.append("text").attr("x", r + i / 2).attr("y", n + u / 2 + 5).style("text-anchor", "middle").text(l);
1293
- o(f, d);
1294
- }
1295
- g(e, "byText");
1296
- function t(l, a, r, n, i, u, d, f) {
1297
- const { fontSize: y, fontFamily: E, fontWeight: O } = f, S = l.split($t.lineBreakRegex);
1298
- for (let P = 0; P < S.length; P++) {
1299
- const M = P * y - y * (S.length - 1) / 2, U = a.append("text").attr("x", r + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", y).style("font-weight", O).style("font-family", E);
1300
- U.append("tspan").attr("dy", M).text(S[P]).attr("alignment-baseline", "mathematical"), o(U, d);
1301
- }
1302
- }
1303
- g(t, "byTspan");
1304
- function s(l, a, r, n, i, u, d, f) {
1305
- const y = a.append("switch"), O = y.append("foreignObject").attr("x", r).attr("y", n).attr("width", i).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1306
- O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, y, r, n, i, u, d, f), o(O, d);
1307
- }
1308
- g(s, "byFo");
1309
- function o(l, a) {
1310
- for (const r in a)
1311
- a.hasOwnProperty(r) && l.attr(r, a[r]);
1312
- }
1313
- return g(o, "_setTextAttrs"), function(l) {
1314
- return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? e : t;
1315
- };
1316
- }(), z = {
1317
- drawRect: re,
1318
- drawBoundary: g0,
1319
- drawC4Shape: b0,
1320
- drawRels: y0,
1321
- drawImage: me,
1322
- insertArrowHead: v0,
1323
- insertArrowEnd: E0,
1324
- insertArrowFilledHead: k0,
1325
- insertDynamicNumber: A0,
1326
- insertArrowCrossHead: C0,
1327
- insertDatabaseIcon: _0,
1328
- insertComputerIcon: x0,
1329
- insertClockIcon: m0
1330
- }, Xt = 0, Wt = 0, ve = 4, ee = 2;
1331
- Ft.yy = te;
1332
- var _ = {}, Bt, Ee = (Bt = class {
1333
- constructor(t) {
1334
- this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ae(t.db.getConfig());
1335
- }
1336
- setData(t, s, o, l) {
1337
- this.nextData.startx = this.data.startx = t, this.nextData.stopx = this.data.stopx = s, this.nextData.starty = this.data.starty = o, this.nextData.stopy = this.data.stopy = l;
1338
- }
1339
- updateVal(t, s, o, l) {
1340
- t[s] === void 0 ? t[s] = o : t[s] = l(o, t[s]);
1341
- }
1342
- insert(t) {
1343
- this.nextData.cnt = this.nextData.cnt + 1;
1344
- let s = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + t.margin : this.nextData.stopx + t.margin * 2, o = s + t.width, l = this.nextData.starty + t.margin * 2, a = l + t.height;
1345
- (s >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt > ve) && (s = this.nextData.startx + t.margin + _.nextLinePaddingX, l = this.nextData.stopy + t.margin * 2, this.nextData.stopx = o = s + t.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = a = l + t.height, this.nextData.cnt = 1), t.x = s, t.y = l, this.updateVal(this.data, "startx", s, Math.min), this.updateVal(this.data, "starty", l, Math.min), this.updateVal(this.data, "stopx", o, Math.max), this.updateVal(this.data, "stopy", a, Math.max), this.updateVal(this.nextData, "startx", s, Math.min), this.updateVal(this.nextData, "starty", l, Math.min), this.updateVal(this.nextData, "stopx", o, Math.max), this.updateVal(this.nextData, "stopy", a, Math.max);
1346
- }
1347
- init(t) {
1348
- this.name = "", this.data = {
1349
- startx: void 0,
1350
- stopx: void 0,
1351
- starty: void 0,
1352
- stopy: void 0,
1353
- widthLimit: void 0
1354
- }, this.nextData = {
1355
- startx: void 0,
1356
- stopx: void 0,
1357
- starty: void 0,
1358
- stopy: void 0,
1359
- cnt: 0
1360
- }, ae(t.db.getConfig());
1361
- }
1362
- bumpLastMargin(t) {
1363
- this.data.stopx += t, this.data.stopy += t;
1364
- }
1365
- }, g(Bt, "Bounds"), Bt), ae = /* @__PURE__ */ g(function(e) {
1366
- Pe(_, e), e.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = e.fontFamily), e.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = e.fontSize), e.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = e.fontWeight);
1367
- }, "setConf"), St = /* @__PURE__ */ g((e, t) => ({
1368
- fontFamily: e[t + "FontFamily"],
1369
- fontSize: e[t + "FontSize"],
1370
- fontWeight: e[t + "FontWeight"]
1371
- }), "c4ShapeFont"), Ut = /* @__PURE__ */ g((e) => ({
1372
- fontFamily: e.boundaryFontFamily,
1373
- fontSize: e.boundaryFontSize,
1374
- fontWeight: e.boundaryFontWeight
1375
- }), "boundaryFont"), T0 = /* @__PURE__ */ g((e) => ({
1376
- fontFamily: e.messageFontFamily,
1377
- fontSize: e.messageFontSize,
1378
- fontWeight: e.messageFontWeight
1379
- }), "messageFont");
1380
- function j(e, t, s, o, l) {
1381
- if (!t[e].width)
1382
- if (s)
1383
- t[e].text = Ne(t[e].text, l, o), t[e].textLines = t[e].text.split($t.lineBreakRegex).length, t[e].width = l, t[e].height = de(t[e].text, o);
1384
- else {
1385
- let a = t[e].text.split($t.lineBreakRegex);
1386
- t[e].textLines = a.length;
1387
- let r = 0;
1388
- t[e].height = 0, t[e].width = 0;
1389
- for (const n of a)
1390
- t[e].width = Math.max(
1391
- Tt(n, o),
1392
- t[e].width
1393
- ), r = de(n, o), t[e].height = t[e].height + r;
1394
- }
1395
- }
1396
- g(j, "calcC4ShapeTextWH");
1397
- var ke = /* @__PURE__ */ g(function(e, t, s) {
1398
- t.x = s.data.startx, t.y = s.data.starty, t.width = s.data.stopx - s.data.startx, t.height = s.data.stopy - s.data.starty, t.label.y = _.c4ShapeMargin - 35;
1399
- let o = t.wrap && _.wrap, l = Ut(_);
1400
- l.fontSize = l.fontSize + 2, l.fontWeight = "bold";
1401
- let a = Tt(t.label.text, l);
1402
- j("label", t, o, l, a), z.drawBoundary(e, t, _);
1403
- }, "drawBoundary"), Ae = /* @__PURE__ */ g(function(e, t, s, o) {
1404
- let l = 0;
1405
- for (const a of o) {
1406
- l = 0;
1407
- const r = s[a];
1408
- let n = St(_, r.typeC4Shape.text);
1409
- switch (n.fontSize = n.fontSize - 2, r.typeC4Shape.width = Tt(
1410
- "«" + r.typeC4Shape.text + "»",
1411
- n
1412
- ), r.typeC4Shape.height = n.fontSize + 2, r.typeC4Shape.Y = _.c4ShapePadding, l = r.typeC4Shape.Y + r.typeC4Shape.height - 4, r.image = { width: 0, height: 0, Y: 0 }, r.typeC4Shape.text) {
1413
- case "person":
1414
- case "external_person":
1415
- r.image.width = 48, r.image.height = 48, r.image.Y = l, l = r.image.Y + r.image.height;
1416
- break;
1417
- }
1418
- r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = l, l = r.image.Y + r.image.height);
1419
- let i = r.wrap && _.wrap, u = _.width - _.c4ShapePadding * 2, d = St(_, r.typeC4Shape.text);
1420
- if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j("label", r, i, d, u), r.label.Y = l + 8, l = r.label.Y + r.label.height, r.type && r.type.text !== "") {
1421
- r.type.text = "[" + r.type.text + "]";
1422
- let E = St(_, r.typeC4Shape.text);
1423
- j("type", r, i, E, u), r.type.Y = l + 5, l = r.type.Y + r.type.height;
1424
- } else if (r.techn && r.techn.text !== "") {
1425
- r.techn.text = "[" + r.techn.text + "]";
1426
- let E = St(_, r.techn.text);
1427
- j("techn", r, i, E, u), r.techn.Y = l + 5, l = r.techn.Y + r.techn.height;
1428
- }
1429
- let f = l, y = r.label.width;
1430
- if (r.descr && r.descr.text !== "") {
1431
- let E = St(_, r.typeC4Shape.text);
1432
- j("descr", r, i, E, u), r.descr.Y = l + 20, l = r.descr.Y + r.descr.height, y = Math.max(r.label.width, r.descr.width), f = l - r.descr.textLines * 5;
1433
- }
1434
- y = y + _.c4ShapePadding, r.width = Math.max(r.width || _.width, y, _.width), r.height = Math.max(r.height || _.height, f, _.height), r.margin = r.margin || _.c4ShapeMargin, e.insert(r), z.drawC4Shape(t, r, _);
1435
- }
1436
- e.bumpLastMargin(_.c4ShapeMargin);
1437
- }, "drawC4ShapeArray"), It, Y = (It = class {
1438
- constructor(t, s) {
1439
- this.x = t, this.y = s;
1440
- }
1441
- }, g(It, "Point"), It), pe = /* @__PURE__ */ g(function(e, t) {
1442
- let s = e.x, o = e.y, l = t.x, a = t.y, r = s + e.width / 2, n = o + e.height / 2, i = Math.abs(s - l), u = Math.abs(o - a), d = u / i, f = e.height / e.width, y = null;
1443
- return o == a && s < l ? y = new Y(s + e.width, n) : o == a && s > l ? y = new Y(s, n) : s == l && o < a ? y = new Y(r, o + e.height) : s == l && o > a && (y = new Y(r, o)), s > l && o < a ? f >= d ? y = new Y(s, n + d * e.width / 2) : y = new Y(
1444
- r - i / u * e.height / 2,
1445
- o + e.height
1446
- ) : s < l && o < a ? f >= d ? y = new Y(s + e.width, n + d * e.width / 2) : y = new Y(
1447
- r + i / u * e.height / 2,
1448
- o + e.height
1449
- ) : s < l && o > a ? f >= d ? y = new Y(s + e.width, n - d * e.width / 2) : y = new Y(r + e.height / 2 * i / u, o) : s > l && o > a && (f >= d ? y = new Y(s, n - e.width / 2 * d) : y = new Y(r - e.height / 2 * i / u, o)), y;
1450
- }, "getIntersectPoint"), O0 = /* @__PURE__ */ g(function(e, t) {
1451
- let s = { x: 0, y: 0 };
1452
- s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
1453
- let o = pe(e, s);
1454
- s.x = e.x + e.width / 2, s.y = e.y + e.height / 2;
1455
- let l = pe(t, s);
1456
- return { startPoint: o, endPoint: l };
1457
- }, "getIntersectPoints"), R0 = /* @__PURE__ */ g(function(e, t, s, o) {
1458
- let l = 0;
1459
- for (let a of t) {
1460
- l = l + 1;
1461
- let r = a.wrap && _.wrap, n = T0(_);
1462
- o.db.getC4Type() === "C4Dynamic" && (a.label.text = l + ": " + a.label.text);
1463
- let u = Tt(a.label.text, n);
1464
- j("label", a, r, n, u), a.techn && a.techn.text !== "" && (u = Tt(a.techn.text, n), j("techn", a, r, n, u)), a.descr && a.descr.text !== "" && (u = Tt(a.descr.text, n), j("descr", a, r, n, u));
1465
- let d = s(a.from), f = s(a.to), y = O0(d, f);
1466
- a.startPoint = y.startPoint, a.endPoint = y.endPoint;
1467
- }
1468
- z.drawRels(e, t, _);
1469
- }, "drawRels");
1470
- function se(e, t, s, o, l) {
1471
- let a = new Ee(l);
1472
- a.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
1473
- for (let [r, n] of o.entries()) {
1474
- let i = 0;
1475
- n.image = { width: 0, height: 0, Y: 0 }, n.sprite && (n.image.width = 48, n.image.height = 48, n.image.Y = i, i = n.image.Y + n.image.height);
1476
- let u = n.wrap && _.wrap, d = Ut(_);
1477
- if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j(
1478
- "label",
1479
- n,
1480
- u,
1481
- d,
1482
- a.data.widthLimit
1483
- ), n.label.Y = i + 8, i = n.label.Y + n.label.height, n.type && n.type.text !== "") {
1484
- n.type.text = "[" + n.type.text + "]";
1485
- let O = Ut(_);
1486
- j(
1487
- "type",
1488
- n,
1489
- u,
1490
- O,
1491
- a.data.widthLimit
1492
- ), n.type.Y = i + 5, i = n.type.Y + n.type.height;
1493
- }
1494
- if (n.descr && n.descr.text !== "") {
1495
- let O = Ut(_);
1496
- O.fontSize = O.fontSize - 2, j(
1497
- "descr",
1498
- n,
1499
- u,
1500
- O,
1501
- a.data.widthLimit
1502
- ), n.descr.Y = i + 20, i = n.descr.Y + n.descr.height;
1503
- }
1504
- if (r == 0 || r % ee === 0) {
1505
- let O = s.data.startx + _.diagramMarginX, S = s.data.stopy + _.diagramMarginY + i;
1506
- a.setData(O, O, S, S);
1507
- } else {
1508
- let O = a.data.stopx !== a.data.startx ? a.data.stopx + _.diagramMarginX : a.data.startx, S = a.data.starty;
1509
- a.setData(O, O, S, S);
1510
- }
1511
- a.name = n.alias;
1512
- let f = l.db.getC4ShapeArray(n.alias), y = l.db.getC4ShapeKeys(n.alias);
1513
- y.length > 0 && Ae(
1514
- a,
1515
- e,
1516
- f,
1517
- y
1518
- ), t = n.alias;
1519
- let E = l.db.getBoundaries(t);
1520
- E.length > 0 && se(
1521
- e,
1522
- t,
1523
- a,
1524
- E,
1525
- l
1526
- ), n.alias !== "global" && ke(e, n, a), s.data.stopy = Math.max(
1527
- a.data.stopy + _.c4ShapeMargin,
1528
- s.data.stopy
1529
- ), s.data.stopx = Math.max(
1530
- a.data.stopx + _.c4ShapeMargin,
1531
- s.data.stopx
1532
- ), Xt = Math.max(Xt, s.data.stopx), Wt = Math.max(Wt, s.data.stopy);
1533
- }
1534
- }
1535
- g(se, "drawInsideBoundary");
1536
- var S0 = /* @__PURE__ */ g(function(e, t, s, o) {
1537
- _ = Dt().c4;
1538
- const l = Dt().securityLevel;
1539
- let a;
1540
- l === "sandbox" && (a = jt("#i" + t));
1541
- const r = l === "sandbox" ? jt(a.nodes()[0].contentDocument.body) : jt("body");
1542
- let n = o.db;
1543
- o.db.setWrap(_.wrap), ve = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), fe.debug(`C:${JSON.stringify(_, null, 2)}`);
1544
- const i = l === "sandbox" ? r.select(`[id="${t}"]`) : jt(`[id="${t}"]`);
1545
- z.insertComputerIcon(i), z.insertDatabaseIcon(i), z.insertClockIcon(i);
1546
- let u = new Ee(o);
1547
- u.setData(
1548
- _.diagramMarginX,
1549
- _.diagramMarginX,
1550
- _.diagramMarginY,
1551
- _.diagramMarginY
1552
- ), u.data.widthLimit = screen.availWidth, Xt = _.diagramMarginX, Wt = _.diagramMarginY;
1553
- const d = o.db.getTitle();
1554
- let f = o.db.getBoundaries("");
1555
- se(i, "", u, f, o), z.insertArrowHead(i), z.insertArrowEnd(i), z.insertArrowCrossHead(i), z.insertArrowFilledHead(i), R0(i, o.db.getRels(), o.db.getC4Shape, o), u.data.stopx = Xt, u.data.stopy = Wt;
1556
- const y = u.data;
1557
- let O = y.stopy - y.starty + 2 * _.diagramMarginY;
1558
- const P = y.stopx - y.startx + 2 * _.diagramMarginX;
1559
- d && i.append("text").text(d).attr("x", (y.stopx - y.startx) / 2 - 4 * _.diagramMarginX).attr("y", y.starty + _.diagramMarginY), Ye(i, O, P, _.useMaxWidth);
1560
- const M = d ? 60 : 0;
1561
- i.attr(
1562
- "viewBox",
1563
- y.startx - _.diagramMarginX + " -" + (_.diagramMarginY + M) + " " + P + " " + (O + M)
1564
- ), fe.debug("models:", y);
1565
- }, "draw"), ye = {
1566
- drawPersonOrSystemArray: Ae,
1567
- drawBoundary: ke,
1568
- setConf: ae,
1569
- draw: S0
1570
- }, D0 = /* @__PURE__ */ g((e) => `.person {
1571
- stroke: ${e.personBorder};
1572
- fill: ${e.personBkg};
1573
- }
1574
- `, "getStyles"), P0 = D0, Y0 = {
1575
- parser: Ue,
1576
- db: te,
1577
- renderer: ye,
1578
- styles: P0,
1579
- init: /* @__PURE__ */ g(({ c4: e, wrap: t }) => {
1580
- ye.setConf(e), te.setWrap(t);
1581
- }, "init")
1582
- };
1583
- export {
1584
- Y0 as diagram
1585
- };