@foris/ai-agent 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/abap-Y8Dl9g_6.js +6 -0
  2. package/dist/actionscript-3-DZzbMeqX.js +6 -0
  3. package/dist/ada-vP6ak0IW.js +6 -0
  4. package/dist/ai-agent.es.js +6 -1391
  5. package/dist/ai-agent.umd.js +3364 -103
  6. package/dist/ai-chat-panel/ChatPanel.d.ts +1 -1
  7. package/dist/ai-chat-panel/chatPanel.constants.d.ts +17 -0
  8. package/dist/andromeeda-BIpZ7gaU.js +4 -0
  9. package/dist/angular-html-DPB4Rf0C.js +32 -0
  10. package/dist/angular-ts-CeqPwKaz.js +24 -0
  11. package/dist/apache-BUjz-sD2.js +6 -0
  12. package/dist/apex-oLhhs58q.js +6 -0
  13. package/dist/apl-Bfz1rp5e.js +17 -0
  14. package/dist/applescript-BPx7YFFu.js +6 -0
  15. package/dist/ara-Z2fSOxSw.js +6 -0
  16. package/dist/arc-DN1xn8kz.js +85 -0
  17. package/dist/architectureDiagram-VXUJARFQ-CuFlEJrK.js +4674 -0
  18. package/dist/asciidoc-B-pCoB3G.js +6 -0
  19. package/dist/asm-BTWLY5ym.js +6 -0
  20. package/dist/astro-CFFExE8Q.js +18 -0
  21. package/dist/aurora-x-BwoVEUWZ.js +4 -0
  22. package/dist/awk-Fb0P9dkn.js +6 -0
  23. package/dist/ayu-dark-CxPZkpb2.js +4 -0
  24. package/dist/ballerina-oZK-YekG.js +6 -0
  25. package/dist/bat-0FvbqU9S.js +6 -0
  26. package/dist/beancount-DqJEb89h.js +6 -0
  27. package/dist/berry-DODBq_Ff.js +6 -0
  28. package/dist/bibtex-EULQRLY5.js +6 -0
  29. package/dist/bicep-BorU73w0.js +6 -0
  30. package/dist/blade-DRRSiTQz.js +21 -0
  31. package/dist/blockDiagram-VD42YOAC-Ceho4Zhj.js +2407 -0
  32. package/dist/bsl-NkNNwerW.js +8 -0
  33. package/dist/c-eeMepfLm.js +6 -0
  34. package/dist/c4Diagram-YG6GDRKO-zPB3iQJ7.js +1585 -0
  35. package/dist/cadence-02UX7mW8.js +6 -0
  36. package/dist/cairo-DM6WF2e3.js +8 -0
  37. package/dist/catppuccin-frappe-D3cH2rXe.js +4 -0
  38. package/dist/catppuccin-latte-C0LRGUW4.js +4 -0
  39. package/dist/catppuccin-macchiato-c5wQ11TT.js +4 -0
  40. package/dist/catppuccin-mocha-WMD6Qvya.js +4 -0
  41. package/dist/channel-BC4mWQQF.js +5 -0
  42. package/dist/chunk-4BX2VUAB-BZlHuf6l.js +9 -0
  43. package/dist/chunk-55IACEB6-Dr8rgvy_.js +8 -0
  44. package/dist/chunk-B4BG7PRW-Ccllo2e-.js +1377 -0
  45. package/dist/chunk-DI55MBZ5-DvAROTIr.js +1383 -0
  46. package/dist/chunk-FMBD7UC4-CVr83prI.js +19 -0
  47. package/dist/chunk-QN33PNHL-nSyFq8_s.js +20 -0
  48. package/dist/chunk-QZHKN3VN-Dg8JYP6e.js +15 -0
  49. package/dist/chunk-TZMSLE5B-Bmj6LGNW.js +64 -0
  50. package/dist/clarity-PKm5CwqM.js +6 -0
  51. package/dist/classDiagram-2ON5EDUG-DAkxtl6o.js +22 -0
  52. package/dist/classDiagram-v2-WZHVMYZB-DAkxtl6o.js +22 -0
  53. package/dist/clojure-CXJfHrL3.js +6 -0
  54. package/dist/cmake-BJz8BOTU.js +6 -0
  55. package/dist/cobol-DYTFdEK1.js +12 -0
  56. package/dist/code-block-QI2IAROF-DN-BnDmt.js +9263 -0
  57. package/dist/codeowners-Bt9yU6NX.js +6 -0
  58. package/dist/codeql-DHkodjjI.js +6 -0
  59. package/dist/coffee-DGBR_nr_.js +8 -0
  60. package/dist/common-lisp-EVqT9Zhp.js +6 -0
  61. package/dist/components/ai-elements/artifact.d.ts +23 -0
  62. package/dist/components/ai-elements/canvas.d.ts +7 -0
  63. package/dist/components/ai-elements/chain-of-thought.d.ts +29 -0
  64. package/dist/components/ai-elements/checkpoint.d.ts +11 -0
  65. package/dist/components/ai-elements/code-block.d.ts +17 -0
  66. package/dist/components/ai-elements/confirmation.d.ts +49 -0
  67. package/dist/components/ai-elements/connection.d.ts +2 -0
  68. package/dist/components/ai-elements/context.d.ts +32 -0
  69. package/dist/components/ai-elements/controls.d.ts +4 -0
  70. package/dist/components/ai-elements/conversation.d.ts +15 -0
  71. package/dist/components/ai-elements/edge.d.ts +5 -0
  72. package/dist/components/ai-elements/image.d.ts +6 -0
  73. package/dist/components/ai-elements/inline-citation.d.ts +38 -0
  74. package/dist/components/ai-elements/loader.d.ts +5 -0
  75. package/dist/components/ai-elements/message.d.ts +46 -0
  76. package/dist/components/ai-elements/model-selector.d.ts +35 -0
  77. package/dist/components/ai-elements/node.d.ts +21 -0
  78. package/dist/components/ai-elements/open-in-chat.d.ts +28 -0
  79. package/dist/components/ai-elements/panel.d.ts +5 -0
  80. package/dist/components/ai-elements/plan.d.ts +25 -0
  81. package/dist/components/ai-elements/prompt-input.d.ts +187 -0
  82. package/dist/components/ai-elements/queue.d.ts +61 -0
  83. package/dist/components/ai-elements/reasoning.d.ts +26 -0
  84. package/dist/components/ai-elements/shimmer.d.ts +9 -0
  85. package/dist/components/ai-elements/sources.d.ts +12 -0
  86. package/dist/components/ai-elements/suggestion.d.ts +10 -0
  87. package/dist/components/ai-elements/task.d.ts +14 -0
  88. package/dist/components/ai-elements/tool.d.ts +23 -0
  89. package/dist/components/ai-elements/toolbar.d.ts +5 -0
  90. package/dist/components/ai-elements/web-preview.d.ts +34 -0
  91. package/dist/components/ui/alert.d.ts +9 -0
  92. package/dist/components/ui/badge.d.ts +9 -0
  93. package/dist/components/ui/button-group.d.ts +12 -0
  94. package/dist/components/ui/button.d.ts +10 -0
  95. package/dist/components/ui/card.d.ts +9 -0
  96. package/dist/components/ui/carousel.d.ts +19 -0
  97. package/dist/components/ui/collapsible.d.ts +6 -0
  98. package/dist/components/ui/command.d.ts +18 -0
  99. package/dist/components/ui/dialog.d.ts +15 -0
  100. package/dist/components/ui/dropdown-menu.d.ts +25 -0
  101. package/dist/components/ui/hover-card.d.ts +6 -0
  102. package/dist/components/ui/input-group.d.ts +16 -0
  103. package/dist/components/ui/input.d.ts +3 -0
  104. package/dist/components/ui/progress.d.ts +4 -0
  105. package/dist/components/ui/scroll-area.d.ts +5 -0
  106. package/dist/components/ui/select.d.ts +15 -0
  107. package/dist/components/ui/separator.d.ts +4 -0
  108. package/dist/components/ui/textarea.d.ts +3 -0
  109. package/dist/components/ui/tooltip.d.ts +7 -0
  110. package/dist/coq-B0L9upzn.js +6 -0
  111. package/dist/cose-bilkent-S5V4N54A-DwRYWoaW.js +2612 -0
  112. package/dist/cpp-ZFnOq6fV.js +19 -0
  113. package/dist/crystal-CRJyc4G-.js +18 -0
  114. package/dist/csharp-C7yUs7-w.js +6 -0
  115. package/dist/css-CECN5uSL.js +6 -0
  116. package/dist/csv-CmYOceLb.js +6 -0
  117. package/dist/cue-ZzumE7IT.js +6 -0
  118. package/dist/cypher-jpdmjtA6.js +6 -0
  119. package/dist/cytoscape.esm-ClN43hhW.js +18846 -0
  120. package/dist/d-CBagWSwH.js +6 -0
  121. package/dist/dagre-6UL2VRFP-imN1Fyg8.js +451 -0
  122. package/dist/dark-plus-pUHDTVV0.js +4 -0
  123. package/dist/dart-6ObCrKr9.js +6 -0
  124. package/dist/dax-CcDT-8dH.js +6 -0
  125. package/dist/defaultLocale-DcQU6Vee.js +177 -0
  126. package/dist/desktop-B93p9R9O.js +6 -0
  127. package/dist/diagram-PSM6KHXK-DAIDeBLn.js +544 -0
  128. package/dist/diagram-QEK2KX5R-DQFy-qK9.js +224 -0
  129. package/dist/diagram-S2PKOQOG-Hlk0Nx_Y.js +146 -0
  130. package/dist/diff-BxzP2J8R.js +6 -0
  131. package/dist/docker-CsHqm9tx.js +6 -0
  132. package/dist/dotenv-BMjVjUL1.js +6 -0
  133. package/dist/dracula-BtZx2Kac.js +4 -0
  134. package/dist/dracula-soft-BKa-aqBv.js +4 -0
  135. package/dist/dream-maker-PAx17jaB.js +6 -0
  136. package/dist/edge-B882-fmN.js +14 -0
  137. package/dist/elixir-DRzNHQCz.js +10 -0
  138. package/dist/elm-DZPAA5Qn.js +9 -0
  139. package/dist/emacs-lisp-Cfxdx5D-.js +6 -0
  140. package/dist/erDiagram-Q2GNP2WA-C8PZPSaf.js +846 -0
  141. package/dist/erb-DB1DqdBc.js +27 -0
  142. package/dist/erlang-DNcDT8Hi.js +8 -0
  143. package/dist/everforest-dark-DMCBqXCK.js +4 -0
  144. package/dist/everforest-light-BbXl82Em.js +4 -0
  145. package/dist/fennel-N4WcXuKx.js +6 -0
  146. package/dist/fish-BTDEUgqH.js +6 -0
  147. package/dist/flowDiagram-NV44I4VS-CgTiIFnt.js +1631 -0
  148. package/dist/fluent-BMXUxfv1.js +6 -0
  149. package/dist/fortran-fixed-form-DUsA-VGo.js +8 -0
  150. package/dist/fortran-free-form-DPIT_jbP.js +6 -0
  151. package/dist/fsharp-CYOiIVNx.js +8 -0
  152. package/dist/ganttDiagram-JELNMOA3-DzYZEAE_.js +2702 -0
  153. package/dist/gdresource-BwtMIoBm.js +10 -0
  154. package/dist/gdscript-BifyeYhI.js +6 -0
  155. package/dist/gdshader-Bk8fF6yr.js +6 -0
  156. package/dist/genie-DzUvd7U9.js +6 -0
  157. package/dist/gherkin-DHRaV0YP.js +6 -0
  158. package/dist/git-commit-Bd32YZ0K.js +8 -0
  159. package/dist/git-rebase-ZWUFO_T4.js +8 -0
  160. package/dist/gitGraphDiagram-NY62KEGX-CPwI-Uag.js +715 -0
  161. package/dist/github-dark-DenFmJkN.js +4 -0
  162. package/dist/github-dark-default-BJPUVz4H.js +4 -0
  163. package/dist/github-dark-dimmed-DUshB20C.js +4 -0
  164. package/dist/github-dark-high-contrast-D3aGCnF8.js +4 -0
  165. package/dist/github-light-JYsPkUQd.js +4 -0
  166. package/dist/github-light-default-D99KPAby.js +4 -0
  167. package/dist/github-light-high-contrast-BbmZE-Mp.js +4 -0
  168. package/dist/gleam-Bv284lvN.js +6 -0
  169. package/dist/glimmer-js-DkxNrfPT.js +14 -0
  170. package/dist/glimmer-ts-D6YZEmK_.js +14 -0
  171. package/dist/glsl-CkUcVZNK.js +8 -0
  172. package/dist/gnuplot-yPG9-sE_.js +6 -0
  173. package/dist/go-ChxJuLYK.js +6 -0
  174. package/dist/graph-DB2UxkYH.js +1190 -0
  175. package/dist/graphql-CBu2ehBn.js +14 -0
  176. package/dist/groovy-CJQTphOW.js +6 -0
  177. package/dist/gruvbox-dark-hard-C5HOtKIh.js +4 -0
  178. package/dist/gruvbox-dark-medium-FVgwJHuz.js +4 -0
  179. package/dist/gruvbox-dark-soft-B46F314v.js +4 -0
  180. package/dist/gruvbox-light-hard-CJD38wDZ.js +4 -0
  181. package/dist/gruvbox-light-medium-BlIhMYTA.js +4 -0
  182. package/dist/gruvbox-light-soft-DoPHyLVZ.js +4 -0
  183. package/dist/hack-DVWgrvc2.js +12 -0
  184. package/dist/haml-NZLVzu_R.js +10 -0
  185. package/dist/handlebars-mxStpSE7.js +14 -0
  186. package/dist/haskell-WeIwNIP6.js +6 -0
  187. package/dist/haxe-TztHsm5T.js +6 -0
  188. package/dist/hcl-D438OF-I.js +6 -0
  189. package/dist/hjson-DYBUbqOl.js +6 -0
  190. package/dist/hlsl-Bk8TCZNL.js +6 -0
  191. package/dist/houston-BDYrDoDW.js +4 -0
  192. package/dist/html-B50bmoVb.js +10 -0
  193. package/dist/html-derivative-ByyNxAP5.js +10 -0
  194. package/dist/http-BVIWqb92.js +19 -0
  195. package/dist/hurl-B8OTiYoQ.js +17 -0
  196. package/dist/hxml-GbqSQCLa.js +8 -0
  197. package/dist/hy-Brt5EZ7-.js +6 -0
  198. package/dist/imba-CimUv-Uh.js +6 -0
  199. package/dist/index-C2DJ8qoy.js +45435 -0
  200. package/dist/infoDiagram-WHAUD3N6-CcN7ZNYI.js +27 -0
  201. package/dist/ini-BZIuRIvJ.js +6 -0
  202. package/dist/init-DjUOC4st.js +16 -0
  203. package/dist/java-DY6VlHhP.js +6 -0
  204. package/dist/javascript-C25yR2R2.js +6 -0
  205. package/dist/jinja-CI-LSgSv.js +13 -0
  206. package/dist/jison-DdreslRX.js +8 -0
  207. package/dist/journeyDiagram-XKPGCS4Q-BACao6jz.js +840 -0
  208. package/dist/json-DxJze_jm.js +6 -0
  209. package/dist/json5-BT4Fjg39.js +6 -0
  210. package/dist/jsonc-CHjZD8gR.js +6 -0
  211. package/dist/jsonl-BGuvDmy9.js +6 -0
  212. package/dist/jsonnet-Bx2cfsXg.js +6 -0
  213. package/dist/jssm-BcADi6EI.js +6 -0
  214. package/dist/jsx-BtKADgXT.js +6 -0
  215. package/dist/julia-ll8P6QXy.js +19 -0
  216. package/dist/kanagawa-dragon-CiKur4Hl.js +4 -0
  217. package/dist/kanagawa-lotus-BKu-smKu.js +4 -0
  218. package/dist/kanagawa-wave-CQwozSzG.js +4 -0
  219. package/dist/kanban-definition-3W4ZIXB7-Jb7Xwf92.js +724 -0
  220. package/dist/katex.min-l0sNRNKZ.js +1 -0
  221. package/dist/kdl-BNOv9TC3.js +6 -0
  222. package/dist/kotlin-ByBMgTeR.js +6 -0
  223. package/dist/kusto-VWFLl2T0.js +6 -0
  224. package/dist/laserwave-6a00oqik.js +4 -0
  225. package/dist/latex-DF20280u.js +9 -0
  226. package/dist/layout-Q6wQN5dr.js +1730 -0
  227. package/dist/lean-D5yRrexI.js +6 -0
  228. package/dist/less-B1GLI2Di.js +6 -0
  229. package/dist/lib/utils.d.ts +2 -0
  230. package/dist/light-plus-CZuVqSLX.js +4 -0
  231. package/dist/linear-CxGB80S5.js +277 -0
  232. package/dist/liquid-CHzkx3jT.js +14 -0
  233. package/dist/llvm-co1rIKs3.js +6 -0
  234. package/dist/log-Al8wyEFV.js +6 -0
  235. package/dist/logo-DBa4JDzV.js +6 -0
  236. package/dist/lua-kX5WP_P5.js +8 -0
  237. package/dist/luau-DtBSxLyz.js +6 -0
  238. package/dist/make-CsMclxtr.js +6 -0
  239. package/dist/markdown-CrScaQ96.js +6 -0
  240. package/dist/marko-ls0Jg2j8.js +14 -0
  241. package/dist/material-theme-D6KBX41T.js +4 -0
  242. package/dist/material-theme-darker-CkRroheE.js +4 -0
  243. package/dist/material-theme-lighter-BUBw43Yz.js +4 -0
  244. package/dist/material-theme-ocean-ClGX14Ja.js +4 -0
  245. package/dist/material-theme-palenight-C1RVm8K1.js +4 -0
  246. package/dist/matlab-BOAaUVP0.js +6 -0
  247. package/dist/mdc-DIP5_jeM.js +15 -0
  248. package/dist/mdx-BOhZZUJ8.js +6 -0
  249. package/dist/mermaid-B0ixDHKN.js +6 -0
  250. package/dist/mermaid-NA5CF7SZ-DekDSZe_.js +6 -0
  251. package/dist/mermaid.core-xMGW442o.js +14414 -0
  252. package/dist/min-dark-C7ak0t6c.js +4 -0
  253. package/dist/min-light-CKFxVcPp.js +4 -0
  254. package/dist/mindmap-definition-VGOIOE7T-UHZgRHb7.js +790 -0
  255. package/dist/mipsasm-CTx18fBl.js +6 -0
  256. package/dist/mojo-BD611d7o.js +6 -0
  257. package/dist/monokai-C1KBYcO0.js +4 -0
  258. package/dist/move-F-dICmj2.js +6 -0
  259. package/dist/narrat-DmhDCBs-.js +6 -0
  260. package/dist/nextflow-DmSVRGjG.js +6 -0
  261. package/dist/nginx-COxS3qoU.js +9 -0
  262. package/dist/night-owl-Bm2rzalh.js +4 -0
  263. package/dist/nim-CCwXZLHG.js +21 -0
  264. package/dist/nix-BZK5F767.js +9 -0
  265. package/dist/nord-CC5OiUXg.js +4 -0
  266. package/dist/nushell-D8j3dhT-.js +6 -0
  267. package/dist/objective-c-Itk8tzmv.js +6 -0
  268. package/dist/objective-cpp-DGt5UKRO.js +6 -0
  269. package/dist/ocaml-eSVK32Eg.js +6 -0
  270. package/dist/one-dark-pro-DTA3VF0_.js +4 -0
  271. package/dist/one-light-D9sNaUtq.js +4 -0
  272. package/dist/openscad-Sp5uZ6f2.js +6 -0
  273. package/dist/ordinal-MUacOSdK.js +65 -0
  274. package/dist/pascal-xy8pJNns.js +6 -0
  275. package/dist/perl-NvKK8p2P.js +17 -0
  276. package/dist/php-CK5hNnT0.js +19 -0
  277. package/dist/pieDiagram-ADFJNKIX-CHrTFTbw.js +166 -0
  278. package/dist/pkl-C-zSNmaA.js +6 -0
  279. package/dist/plastic-CSTz3KZp.js +4 -0
  280. package/dist/plsql-pVbGZfOv.js +6 -0
  281. package/dist/po-BNfHvqmm.js +6 -0
  282. package/dist/poimandres-C-VADXHD.js +4 -0
  283. package/dist/polar-CAZahv3u.js +6 -0
  284. package/dist/postcss-05aHdL-n.js +6 -0
  285. package/dist/powerquery-DI9HkTvs.js +6 -0
  286. package/dist/powershell-Clc4ydu-.js +6 -0
  287. package/dist/prisma-FZjmVtSl.js +6 -0
  288. package/dist/prolog-C5-yg4TO.js +6 -0
  289. package/dist/proto-MmCPeFAD.js +6 -0
  290. package/dist/pug-XOw9Q1Ho.js +12 -0
  291. package/dist/puppet-CUJHmnxV.js +6 -0
  292. package/dist/purescript-rUfGld-4.js +6 -0
  293. package/dist/python-BFNSHbwJ.js +6 -0
  294. package/dist/qml-rTNXsquU.js +8 -0
  295. package/dist/qmldir-BInDYbpo.js +6 -0
  296. package/dist/qss-AeJTysr_.js +6 -0
  297. package/dist/quadrantDiagram-AYHSOK5B-CDfhMB18.js +1030 -0
  298. package/dist/r-Bm0uF0U2.js +6 -0
  299. package/dist/racket-B83wSAja.js +6 -0
  300. package/dist/raku-nEQ4ZJJ7.js +6 -0
  301. package/dist/razor-CoqPuKQU.js +12 -0
  302. package/dist/red-7y8PH7HH.js +4 -0
  303. package/dist/reg-m_s_Kiip.js +6 -0
  304. package/dist/regexp-BazyLpPg.js +6 -0
  305. package/dist/rel-BcRfyd6Q.js +6 -0
  306. package/dist/requirementDiagram-UZGBJVZJ-C0aeVQh6.js +856 -0
  307. package/dist/riscv-Ce8MAQLP.js +6 -0
  308. package/dist/rose-pine-BKc3yVeu.js +4 -0
  309. package/dist/rose-pine-dawn-BulJcPZT.js +4 -0
  310. package/dist/rose-pine-moon-j6jiXKV8.js +4 -0
  311. package/dist/rosmsg-Cz0w1km8.js +6 -0
  312. package/dist/rst-AoEjemIj.js +36 -0
  313. package/dist/ruby-CGSl8JoB.js +36 -0
  314. package/dist/rust-CLzF9zIN.js +6 -0
  315. package/dist/sankeyDiagram-TZEHDZUN-kjxRgXd2.js +830 -0
  316. package/dist/sas-fpEvgATw.js +8 -0
  317. package/dist/sass-DxHp5rTx.js +6 -0
  318. package/dist/scala-D4grkFkl.js +6 -0
  319. package/dist/scheme-BCRWuEm4.js +6 -0
  320. package/dist/scss-B1FaCqwR.js +8 -0
  321. package/dist/sdbl-B7T8abf4.js +6 -0
  322. package/dist/sequenceDiagram-WL72ISMW-Bs0jyVuH.js +2526 -0
  323. package/dist/shaderlab-Cr62-Wb4.js +8 -0
  324. package/dist/shellscript-InADTalH.js +6 -0
  325. package/dist/shellsession-DiDJNQdy.js +8 -0
  326. package/dist/slack-dark-i7wN4OET.js +4 -0
  327. package/dist/slack-ochin-ndHf0LoP.js +4 -0
  328. package/dist/smalltalk-BlI1_OkM.js +6 -0
  329. package/dist/snazzy-light-BlSJXAu4.js +4 -0
  330. package/dist/solarized-dark-UTmkh7lw.js +4 -0
  331. package/dist/solarized-light-BheCkDPT.js +4 -0
  332. package/dist/solidity-DUWnFhS6.js +6 -0
  333. package/dist/soy-YPoZ1G2p.js +10 -0
  334. package/dist/sparql-B0KWFEri.js +8 -0
  335. package/dist/splunk-CRXR8A9s.js +6 -0
  336. package/dist/sql-Cn_v3PB0.js +6 -0
  337. package/dist/ssh-config-DP-hNVbF.js +6 -0
  338. package/dist/stata-B8c5fTjX.js +8 -0
  339. package/dist/stateDiagram-FKZM4ZOC-CAWwlh9R.js +268 -0
  340. package/dist/stateDiagram-v2-4FDKWEC3-9TYlTzc3.js +21 -0
  341. package/dist/style.css +1 -1
  342. package/dist/stylus-CyKEU1Ej.js +6 -0
  343. package/dist/svelte-5UasyOg7.js +14 -0
  344. package/dist/swift-9UzSvamq.js +6 -0
  345. package/dist/synthwave-84-NU3C_KFZ.js +4 -0
  346. package/dist/system-verilog-BCm7smPJ.js +6 -0
  347. package/dist/systemd-C-4qm6XH.js +6 -0
  348. package/dist/tailwind.css +126 -0
  349. package/dist/talonscript-CFF3LF_O.js +6 -0
  350. package/dist/tasl-Cg_WBUAe.js +6 -0
  351. package/dist/tcl-DN7buRTF.js +6 -0
  352. package/dist/templ-peLZIM2D.js +12 -0
  353. package/dist/terraform-DGvcn9zM.js +6 -0
  354. package/dist/tex-DpOayVob.js +8 -0
  355. package/dist/timeline-definition-IT6M3QCI-DrPozOxH.js +805 -0
  356. package/dist/tokyo-night-DP4TmcQl.js +4 -0
  357. package/dist/toml-DY62mUL_.js +6 -0
  358. package/dist/treemap-KMMF4GRG-D_L55G0b.js +15045 -0
  359. package/dist/ts-tags-CWmBp2js.js +43 -0
  360. package/dist/tsv-BtvSkaG0.js +6 -0
  361. package/dist/tsx-B8rCNbgL.js +6 -0
  362. package/dist/turtle-_H59FV7D.js +6 -0
  363. package/dist/twig-Cpoho6oi.js +35 -0
  364. package/dist/typescript-RycA9KXf.js +6 -0
  365. package/dist/typespec-DWqp-kUU.js +6 -0
  366. package/dist/typst-D_1QKWns.js +6 -0
  367. package/dist/v-BPCNiyYe.js +6 -0
  368. package/dist/vala-uxaPR7d1.js +6 -0
  369. package/dist/vb-D8_c5-KN.js +6 -0
  370. package/dist/verilog-B-bybjPF.js +6 -0
  371. package/dist/vesper-BckBta1U.js +4 -0
  372. package/dist/vhdl-CUlNa8ac.js +6 -0
  373. package/dist/viml-DsfA-sWm.js +6 -0
  374. package/dist/vitesse-black-BoGvW84i.js +4 -0
  375. package/dist/vitesse-dark-Cym-eLtO.js +4 -0
  376. package/dist/vitesse-light-CcmG315c.js +4 -0
  377. package/dist/vue-DmFKWfEU.js +31 -0
  378. package/dist/vue-html-BB2aI7Yc.js +15 -0
  379. package/dist/vue-vine-CznNap4x.js +24 -0
  380. package/dist/vyper-CPQuu50u.js +6 -0
  381. package/dist/wasm-BBXxrAl7.js +6 -0
  382. package/dist/wasm-DQxwEHae.js +7 -0
  383. package/dist/wenyan-pbVjoM9_.js +6 -0
  384. package/dist/wgsl-DY4iK1q1.js +6 -0
  385. package/dist/wikitext-Z-MoUasO.js +6 -0
  386. package/dist/wit-CQMQOlTg.js +6 -0
  387. package/dist/wolfram-Dz4KXISs.js +6 -0
  388. package/dist/xml-C2J0sS9M.js +8 -0
  389. package/dist/xsl-CbTBIiv3.js +9 -0
  390. package/dist/xychartDiagram-PRI3JC2R-BkO8dJff.js +1345 -0
  391. package/dist/yaml-DaO7k5B1.js +6 -0
  392. package/dist/zenscript-CxBjpf9c.js +6 -0
  393. package/dist/zig-Vm0PO9wB.js +6 -0
  394. package/package.json +35 -7
@@ -0,0 +1,1585 @@
1
+ import { d as Se, g as De } from "./chunk-TZMSLE5B-Bmj6LGNW.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-xMGW442o.js";
3
+ import "./index-C2DJ8qoy.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
+ };