@orangelogic/design-system 2.162.0 → 2.164.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 (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -0,0 +1,1580 @@
1
+ import { g as Se, d as De } from "./chunk-32BRIVSS.BbIrVi3j.js";
2
+ import { _ as y, s as Pe, g as Be, a as Ie, b as Me, c as Bt, l as de, d as Le, e as Ne, f as Tt, h as ge, i as Ye, w as je, j as $t, k as fe } from "./mermaid.core.Dspbw7Ig.js";
3
+ import "./index.CrhRU5m8.js";
4
+ import "./transform.BuqENXeT.js";
5
+ import { s as jt } from "./select.C6_sM3Pr.js";
6
+ var Ft = function() {
7
+ var a = /* @__PURE__ */ y(function(_t, x, v, E) {
8
+ for (v = v || {}, E = _t.length; E--; v[_t[E]] = x) ;
9
+ return v;
10
+ }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], r = [1, 27], l = [1, 28], e = [1, 63], n = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], p = [1, 68], g = [1, 69], m = [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], st = [1, 47], rt = [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], St = [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], A = [1, 82], k = [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 = {
11
+ trace: /* @__PURE__ */ y(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ 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 },
15
+ 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" },
16
+ 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]],
17
+ performAction: /* @__PURE__ */ y(function(x, v, E, b, R, h, Dt) {
18
+ var f = h.length - 1;
19
+ switch (R) {
20
+ case 3:
21
+ b.setDirection("TB");
22
+ break;
23
+ case 4:
24
+ b.setDirection("BT");
25
+ break;
26
+ case 5:
27
+ b.setDirection("RL");
28
+ break;
29
+ case 6:
30
+ b.setDirection("LR");
31
+ break;
32
+ case 8:
33
+ case 9:
34
+ case 10:
35
+ case 11:
36
+ case 12:
37
+ b.setC4Type(h[f - 3]);
38
+ break;
39
+ case 19:
40
+ b.setTitle(h[f].substring(6)), this.$ = h[f].substring(6);
41
+ break;
42
+ case 20:
43
+ b.setAccDescription(h[f].substring(15)), this.$ = h[f].substring(15);
44
+ break;
45
+ case 21:
46
+ this.$ = h[f].trim(), b.setTitle(this.$);
47
+ break;
48
+ case 22:
49
+ case 23:
50
+ this.$ = h[f].trim(), b.setAccDescription(this.$);
51
+ break;
52
+ case 28:
53
+ h[f].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
54
+ break;
55
+ case 29:
56
+ h[f].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
57
+ break;
58
+ case 30:
59
+ b.addPersonOrSystemBoundary(...h[f]), this.$ = h[f];
60
+ break;
61
+ case 31:
62
+ h[f].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[f]), this.$ = h[f];
63
+ break;
64
+ case 32:
65
+ b.addDeploymentNode("node", ...h[f]), this.$ = h[f];
66
+ break;
67
+ case 33:
68
+ b.addDeploymentNode("nodeL", ...h[f]), this.$ = h[f];
69
+ break;
70
+ case 34:
71
+ b.addDeploymentNode("nodeR", ...h[f]), this.$ = h[f];
72
+ break;
73
+ case 35:
74
+ b.popBoundaryParseStack();
75
+ break;
76
+ case 39:
77
+ b.addPersonOrSystem("person", ...h[f]), this.$ = h[f];
78
+ break;
79
+ case 40:
80
+ b.addPersonOrSystem("external_person", ...h[f]), this.$ = h[f];
81
+ break;
82
+ case 41:
83
+ b.addPersonOrSystem("system", ...h[f]), this.$ = h[f];
84
+ break;
85
+ case 42:
86
+ b.addPersonOrSystem("system_db", ...h[f]), this.$ = h[f];
87
+ break;
88
+ case 43:
89
+ b.addPersonOrSystem("system_queue", ...h[f]), this.$ = h[f];
90
+ break;
91
+ case 44:
92
+ b.addPersonOrSystem("external_system", ...h[f]), this.$ = h[f];
93
+ break;
94
+ case 45:
95
+ b.addPersonOrSystem("external_system_db", ...h[f]), this.$ = h[f];
96
+ break;
97
+ case 46:
98
+ b.addPersonOrSystem("external_system_queue", ...h[f]), this.$ = h[f];
99
+ break;
100
+ case 47:
101
+ b.addContainer("container", ...h[f]), this.$ = h[f];
102
+ break;
103
+ case 48:
104
+ b.addContainer("container_db", ...h[f]), this.$ = h[f];
105
+ break;
106
+ case 49:
107
+ b.addContainer("container_queue", ...h[f]), this.$ = h[f];
108
+ break;
109
+ case 50:
110
+ b.addContainer("external_container", ...h[f]), this.$ = h[f];
111
+ break;
112
+ case 51:
113
+ b.addContainer("external_container_db", ...h[f]), this.$ = h[f];
114
+ break;
115
+ case 52:
116
+ b.addContainer("external_container_queue", ...h[f]), this.$ = h[f];
117
+ break;
118
+ case 53:
119
+ b.addComponent("component", ...h[f]), this.$ = h[f];
120
+ break;
121
+ case 54:
122
+ b.addComponent("component_db", ...h[f]), this.$ = h[f];
123
+ break;
124
+ case 55:
125
+ b.addComponent("component_queue", ...h[f]), this.$ = h[f];
126
+ break;
127
+ case 56:
128
+ b.addComponent("external_component", ...h[f]), this.$ = h[f];
129
+ break;
130
+ case 57:
131
+ b.addComponent("external_component_db", ...h[f]), this.$ = h[f];
132
+ break;
133
+ case 58:
134
+ b.addComponent("external_component_queue", ...h[f]), this.$ = h[f];
135
+ break;
136
+ case 60:
137
+ b.addRel("rel", ...h[f]), this.$ = h[f];
138
+ break;
139
+ case 61:
140
+ b.addRel("birel", ...h[f]), this.$ = h[f];
141
+ break;
142
+ case 62:
143
+ b.addRel("rel_u", ...h[f]), this.$ = h[f];
144
+ break;
145
+ case 63:
146
+ b.addRel("rel_d", ...h[f]), this.$ = h[f];
147
+ break;
148
+ case 64:
149
+ b.addRel("rel_l", ...h[f]), this.$ = h[f];
150
+ break;
151
+ case 65:
152
+ b.addRel("rel_r", ...h[f]), this.$ = h[f];
153
+ break;
154
+ case 66:
155
+ b.addRel("rel_b", ...h[f]), this.$ = h[f];
156
+ break;
157
+ case 67:
158
+ h[f].splice(0, 1), b.addRel("rel", ...h[f]), this.$ = h[f];
159
+ break;
160
+ case 68:
161
+ b.updateElStyle("update_el_style", ...h[f]), this.$ = h[f];
162
+ break;
163
+ case 69:
164
+ b.updateRelStyle("update_rel_style", ...h[f]), this.$ = h[f];
165
+ break;
166
+ case 70:
167
+ b.updateLayoutConfig("update_layout_config", ...h[f]), this.$ = h[f];
168
+ break;
169
+ case 71:
170
+ this.$ = [h[f]];
171
+ break;
172
+ case 72:
173
+ h[f].unshift(h[f - 1]), this.$ = h[f];
174
+ break;
175
+ case 73:
176
+ case 75:
177
+ this.$ = h[f].trim();
178
+ break;
179
+ case 74:
180
+ let Et = {};
181
+ Et[h[f - 1].trim()] = h[f].trim(), this.$ = Et;
182
+ break;
183
+ case 76:
184
+ this.$ = "";
185
+ break;
186
+ }
187
+ }, "anonymous"),
188
+ 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: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 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: st, 63: rt, 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: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 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: st, 63: rt, 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: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 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: st, 63: rt, 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: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 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: st, 63: rt, 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: r, 28: l, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 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: st, 63: rt, 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] }, a(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 44: m, 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: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), a(Ct, [2, 14]), a(Qt, [2, 16], { 12: [1, 76] }), a(Ct, [2, 36], { 12: [1, 77] }), a(St, [2, 19]), a(St, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, a(St, [2, 23]), { 35: 80, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 86, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 87, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 88, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 89, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 90, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 91, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 92, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 93, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 94, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 95, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 96, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 97, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 98, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 99, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 100, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 101, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 102, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 103, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 104, 75: 81, 76: A, 77: k, 79: C, 80: w }, a(T, [2, 59]), { 35: 105, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 106, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 107, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 108, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 109, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 110, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 111, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 112, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 113, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 114, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 115, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 43: 23, 44: m, 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: st, 63: rt, 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: A, 77: k, 79: C, 80: w }, { 35: 120, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 121, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 122, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 123, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 124, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 35: 125, 75: 81, 76: A, 77: k, 79: C, 80: w }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, a(Ct, [2, 15]), a(Qt, [2, 17], { 21: 22, 19: 130, 22: t, 23: s, 24: o, 26: r, 28: l }), a(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: r, 28: l, 34: e, 36: n, 37: i, 38: u, 39: d, 40: p, 41: g, 44: m, 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: st, 63: rt, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), a(St, [2, 21]), a(St, [2, 22]), a(T, [2, 39]), a(le, [2, 71], { 75: 81, 35: 132, 76: A, 77: k, 79: C, 80: w }), a(Mt, [2, 73]), { 78: [1, 133] }, a(Mt, [2, 75]), a(Mt, [2, 76]), a(T, [2, 40]), a(T, [2, 41]), a(T, [2, 42]), a(T, [2, 43]), a(T, [2, 44]), a(T, [2, 45]), a(T, [2, 46]), a(T, [2, 47]), a(T, [2, 48]), a(T, [2, 49]), a(T, [2, 50]), a(T, [2, 51]), a(T, [2, 52]), a(T, [2, 53]), a(T, [2, 54]), a(T, [2, 55]), a(T, [2, 56]), a(T, [2, 57]), a(T, [2, 58]), a(T, [2, 60]), a(T, [2, 61]), a(T, [2, 62]), a(T, [2, 63]), a(T, [2, 64]), a(T, [2, 65]), a(T, [2, 66]), a(T, [2, 67]), a(T, [2, 68]), a(T, [2, 69]), a(T, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, a(vt, [2, 28]), a(vt, [2, 29]), a(vt, [2, 30]), a(vt, [2, 31]), a(vt, [2, 32]), a(vt, [2, 33]), a(vt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, a(Qt, [2, 18]), a(Ct, [2, 38]), a(le, [2, 72]), a(Mt, [2, 74]), a(T, [2, 24]), a(T, [2, 35]), a(Ht, [2, 25]), a(Ht, [2, 26], { 12: [1, 138] }), a(Ht, [2, 27])],
189
+ 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] },
190
+ parseError: /* @__PURE__ */ y(function(x, v) {
191
+ if (v.recoverable)
192
+ this.trace(x);
193
+ else {
194
+ var E = new Error(x);
195
+ throw E.hash = v, E;
196
+ }
197
+ }, "parseError"),
198
+ parse: /* @__PURE__ */ y(function(x) {
199
+ var v = this, E = [0], b = [], R = [null], h = [], Dt = this.table, f = "", Et = 0, oe = 0, we = 2, ce = 1, Te = h.slice.call(arguments, 1), D = Object.create(this.lexer), At = { yy: {} };
200
+ for (var Gt in this.yy)
201
+ Object.prototype.hasOwnProperty.call(this.yy, Gt) && (At.yy[Gt] = this.yy[Gt]);
202
+ D.setInput(x, At.yy), At.yy.lexer = D, At.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
203
+ var Kt = D.yylloc;
204
+ h.push(Kt);
205
+ var Oe = D.options && D.options.ranges;
206
+ typeof At.yy.parseError == "function" ? this.parseError = At.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
207
+ function Re(L) {
208
+ E.length = E.length - 2 * L, R.length = R.length - L, h.length = h.length - L;
209
+ }
210
+ y(Re, "popStack");
211
+ function he() {
212
+ var L;
213
+ return L = b.pop() || D.lex() || ce, typeof L != "number" && (L instanceof Array && (b = L, L = b.pop()), L = v.symbols_[L] || L), L;
214
+ }
215
+ y(he, "lex");
216
+ for (var I, kt, N, Jt, wt = {}, Nt, W, ue, Yt; ; ) {
217
+ if (kt = E[E.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((I === null || typeof I > "u") && (I = he()), N = Dt[kt] && Dt[kt][I]), typeof N > "u" || !N.length || !N[0]) {
218
+ var Zt = "";
219
+ Yt = [];
220
+ for (Nt in Dt[kt])
221
+ this.terminals_[Nt] && Nt > we && Yt.push("'" + this.terminals_[Nt] + "'");
222
+ D.showPosition ? Zt = "Parse error on line " + (Et + 1) + `:
223
+ ` + D.showPosition() + `
224
+ 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, {
225
+ text: D.match,
226
+ token: this.terminals_[I] || I,
227
+ line: D.yylineno,
228
+ loc: Kt,
229
+ expected: Yt
230
+ });
231
+ }
232
+ if (N[0] instanceof Array && N.length > 1)
233
+ throw new Error("Parse Error: multiple actions possible at state: " + kt + ", token: " + I);
234
+ switch (N[0]) {
235
+ case 1:
236
+ E.push(I), R.push(D.yytext), h.push(D.yylloc), E.push(N[1]), I = null, oe = D.yyleng, f = D.yytext, Et = D.yylineno, Kt = D.yylloc;
237
+ break;
238
+ case 2:
239
+ if (W = this.productions_[N[1]][1], wt.$ = R[R.length - W], wt._$ = {
240
+ first_line: h[h.length - (W || 1)].first_line,
241
+ last_line: h[h.length - 1].last_line,
242
+ first_column: h[h.length - (W || 1)].first_column,
243
+ last_column: h[h.length - 1].last_column
244
+ }, Oe && (wt._$.range = [
245
+ h[h.length - (W || 1)].range[0],
246
+ h[h.length - 1].range[1]
247
+ ]), Jt = this.performAction.apply(wt, [
248
+ f,
249
+ oe,
250
+ Et,
251
+ At.yy,
252
+ N[1],
253
+ R,
254
+ h
255
+ ].concat(Te)), typeof Jt < "u")
256
+ return Jt;
257
+ W && (E = E.slice(0, -1 * W * 2), R = R.slice(0, -1 * W), h = h.slice(0, -1 * W)), E.push(this.productions_[N[1]][0]), R.push(wt.$), h.push(wt._$), ue = Dt[E[E.length - 2]][E[E.length - 1]], E.push(ue);
258
+ break;
259
+ case 3:
260
+ return !0;
261
+ }
262
+ }
263
+ return !0;
264
+ }, "parse")
265
+ }, Ce = /* @__PURE__ */ function() {
266
+ var _t = {
267
+ EOF: 1,
268
+ parseError: /* @__PURE__ */ y(function(v, E) {
269
+ if (this.yy.parser)
270
+ this.yy.parser.parseError(v, E);
271
+ else
272
+ throw new Error(v);
273
+ }, "parseError"),
274
+ // resets the lexer, sets new input
275
+ setInput: /* @__PURE__ */ y(function(x, v) {
276
+ return this.yy = v || 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 = {
277
+ first_line: 1,
278
+ first_column: 0,
279
+ last_line: 1,
280
+ last_column: 0
281
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
282
+ }, "setInput"),
283
+ // consumes and returns one char from the input
284
+ input: /* @__PURE__ */ y(function() {
285
+ var x = this._input[0];
286
+ this.yytext += x, this.yyleng++, this.offset++, this.match += x, this.matched += x;
287
+ var v = x.match(/(?:\r\n?|\n).*/g);
288
+ return v ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), x;
289
+ }, "input"),
290
+ // unshifts one char (or a string) into the input
291
+ unput: /* @__PURE__ */ y(function(x) {
292
+ var v = x.length, E = x.split(/(?:\r\n?|\n)/g);
293
+ this._input = x + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - v), this.offset -= v;
294
+ var b = this.match.split(/(?:\r\n?|\n)/g);
295
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), E.length - 1 && (this.yylineno -= E.length - 1);
296
+ var R = this.yylloc.range;
297
+ return this.yylloc = {
298
+ first_line: this.yylloc.first_line,
299
+ last_line: this.yylineno + 1,
300
+ first_column: this.yylloc.first_column,
301
+ last_column: E ? (E.length === b.length ? this.yylloc.first_column : 0) + b[b.length - E.length].length - E[0].length : this.yylloc.first_column - v
302
+ }, this.options.ranges && (this.yylloc.range = [R[0], R[0] + this.yyleng - v]), this.yyleng = this.yytext.length, this;
303
+ }, "unput"),
304
+ // When called from action, caches matched text and appends it on next action
305
+ more: /* @__PURE__ */ y(function() {
306
+ return this._more = !0, this;
307
+ }, "more"),
308
+ // 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.
309
+ reject: /* @__PURE__ */ y(function() {
310
+ if (this.options.backtrack_lexer)
311
+ this._backtrack = !0;
312
+ else
313
+ 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).
314
+ ` + this.showPosition(), {
315
+ text: "",
316
+ token: null,
317
+ line: this.yylineno
318
+ });
319
+ return this;
320
+ }, "reject"),
321
+ // retain first n characters of the match
322
+ less: /* @__PURE__ */ y(function(x) {
323
+ this.unput(this.match.slice(x));
324
+ }, "less"),
325
+ // displays already matched input, i.e. for error messages
326
+ pastInput: /* @__PURE__ */ y(function() {
327
+ var x = this.matched.substr(0, this.matched.length - this.match.length);
328
+ return (x.length > 20 ? "..." : "") + x.substr(-20).replace(/\n/g, "");
329
+ }, "pastInput"),
330
+ // displays upcoming input, i.e. for error messages
331
+ upcomingInput: /* @__PURE__ */ y(function() {
332
+ var x = this.match;
333
+ return x.length < 20 && (x += this._input.substr(0, 20 - x.length)), (x.substr(0, 20) + (x.length > 20 ? "..." : "")).replace(/\n/g, "");
334
+ }, "upcomingInput"),
335
+ // displays the character position where the lexing error occurred, i.e. for error messages
336
+ showPosition: /* @__PURE__ */ y(function() {
337
+ var x = this.pastInput(), v = new Array(x.length + 1).join("-");
338
+ return x + this.upcomingInput() + `
339
+ ` + v + "^";
340
+ }, "showPosition"),
341
+ // test the lexed token: return FALSE when not a match, otherwise return token
342
+ test_match: /* @__PURE__ */ y(function(x, v) {
343
+ var E, b, R;
344
+ if (this.options.backtrack_lexer && (R = {
345
+ yylineno: this.yylineno,
346
+ yylloc: {
347
+ first_line: this.yylloc.first_line,
348
+ last_line: this.last_line,
349
+ first_column: this.yylloc.first_column,
350
+ last_column: this.yylloc.last_column
351
+ },
352
+ yytext: this.yytext,
353
+ match: this.match,
354
+ matches: this.matches,
355
+ matched: this.matched,
356
+ yyleng: this.yyleng,
357
+ offset: this.offset,
358
+ _more: this._more,
359
+ _input: this._input,
360
+ yy: this.yy,
361
+ conditionStack: this.conditionStack.slice(0),
362
+ done: this.done
363
+ }, 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 = {
364
+ first_line: this.yylloc.last_line,
365
+ last_line: this.yylineno + 1,
366
+ first_column: this.yylloc.last_column,
367
+ last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + x[0].length
368
+ }, 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], E = this.performAction.call(this, this.yy, this, v, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), E)
369
+ return E;
370
+ if (this._backtrack) {
371
+ for (var h in R)
372
+ this[h] = R[h];
373
+ return !1;
374
+ }
375
+ return !1;
376
+ }, "test_match"),
377
+ // return next match in input
378
+ next: /* @__PURE__ */ y(function() {
379
+ if (this.done)
380
+ return this.EOF;
381
+ this._input || (this.done = !0);
382
+ var x, v, E, b;
383
+ this._more || (this.yytext = "", this.match = "");
384
+ for (var R = this._currentRules(), h = 0; h < R.length; h++)
385
+ if (E = this._input.match(this.rules[R[h]]), E && (!v || E[0].length > v[0].length)) {
386
+ if (v = E, b = h, this.options.backtrack_lexer) {
387
+ if (x = this.test_match(E, R[h]), x !== !1)
388
+ return x;
389
+ if (this._backtrack) {
390
+ v = !1;
391
+ continue;
392
+ } else
393
+ return !1;
394
+ } else if (!this.options.flex)
395
+ break;
396
+ }
397
+ return v ? (x = this.test_match(v, R[b]), x !== !1 ? x : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
398
+ ` + this.showPosition(), {
399
+ text: "",
400
+ token: null,
401
+ line: this.yylineno
402
+ });
403
+ }, "next"),
404
+ // return next match that has a token
405
+ lex: /* @__PURE__ */ y(function() {
406
+ var v = this.next();
407
+ return v || this.lex();
408
+ }, "lex"),
409
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
410
+ begin: /* @__PURE__ */ y(function(v) {
411
+ this.conditionStack.push(v);
412
+ }, "begin"),
413
+ // pop the previously active lexer condition state off the condition stack
414
+ popState: /* @__PURE__ */ y(function() {
415
+ var v = this.conditionStack.length - 1;
416
+ return v > 0 ? this.conditionStack.pop() : this.conditionStack[0];
417
+ }, "popState"),
418
+ // produce the lexer rule set which is active for the currently active lexer condition state
419
+ _currentRules: /* @__PURE__ */ y(function() {
420
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
421
+ }, "_currentRules"),
422
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
423
+ topState: /* @__PURE__ */ y(function(v) {
424
+ return v = this.conditionStack.length - 1 - Math.abs(v || 0), v >= 0 ? this.conditionStack[v] : "INITIAL";
425
+ }, "topState"),
426
+ // alias for begin(condition)
427
+ pushState: /* @__PURE__ */ y(function(v) {
428
+ this.begin(v);
429
+ }, "pushState"),
430
+ // return the number of states currently on the stack
431
+ stateStackSize: /* @__PURE__ */ y(function() {
432
+ return this.conditionStack.length;
433
+ }, "stateStackSize"),
434
+ options: {},
435
+ performAction: /* @__PURE__ */ y(function(v, E, b, R) {
436
+ switch (b) {
437
+ case 0:
438
+ return 6;
439
+ case 1:
440
+ return 7;
441
+ case 2:
442
+ return 8;
443
+ case 3:
444
+ return 9;
445
+ case 4:
446
+ return 22;
447
+ case 5:
448
+ return 23;
449
+ case 6:
450
+ return this.begin("acc_title"), 24;
451
+ case 7:
452
+ return this.popState(), "acc_title_value";
453
+ case 8:
454
+ return this.begin("acc_descr"), 26;
455
+ case 9:
456
+ return this.popState(), "acc_descr_value";
457
+ case 10:
458
+ this.begin("acc_descr_multiline");
459
+ break;
460
+ case 11:
461
+ this.popState();
462
+ break;
463
+ case 12:
464
+ return "acc_descr_multiline_value";
465
+ case 13:
466
+ break;
467
+ case 14:
468
+ c;
469
+ break;
470
+ case 15:
471
+ return 12;
472
+ case 16:
473
+ break;
474
+ case 17:
475
+ return 11;
476
+ case 18:
477
+ return 15;
478
+ case 19:
479
+ return 16;
480
+ case 20:
481
+ return 17;
482
+ case 21:
483
+ return 18;
484
+ case 22:
485
+ return this.begin("person_ext"), 45;
486
+ case 23:
487
+ return this.begin("person"), 44;
488
+ case 24:
489
+ return this.begin("system_ext_queue"), 51;
490
+ case 25:
491
+ return this.begin("system_ext_db"), 50;
492
+ case 26:
493
+ return this.begin("system_ext"), 49;
494
+ case 27:
495
+ return this.begin("system_queue"), 48;
496
+ case 28:
497
+ return this.begin("system_db"), 47;
498
+ case 29:
499
+ return this.begin("system"), 46;
500
+ case 30:
501
+ return this.begin("boundary"), 37;
502
+ case 31:
503
+ return this.begin("enterprise_boundary"), 34;
504
+ case 32:
505
+ return this.begin("system_boundary"), 36;
506
+ case 33:
507
+ return this.begin("container_ext_queue"), 57;
508
+ case 34:
509
+ return this.begin("container_ext_db"), 56;
510
+ case 35:
511
+ return this.begin("container_ext"), 55;
512
+ case 36:
513
+ return this.begin("container_queue"), 54;
514
+ case 37:
515
+ return this.begin("container_db"), 53;
516
+ case 38:
517
+ return this.begin("container"), 52;
518
+ case 39:
519
+ return this.begin("container_boundary"), 38;
520
+ case 40:
521
+ return this.begin("component_ext_queue"), 63;
522
+ case 41:
523
+ return this.begin("component_ext_db"), 62;
524
+ case 42:
525
+ return this.begin("component_ext"), 61;
526
+ case 43:
527
+ return this.begin("component_queue"), 60;
528
+ case 44:
529
+ return this.begin("component_db"), 59;
530
+ case 45:
531
+ return this.begin("component"), 58;
532
+ case 46:
533
+ return this.begin("node"), 39;
534
+ case 47:
535
+ return this.begin("node"), 39;
536
+ case 48:
537
+ return this.begin("node_l"), 40;
538
+ case 49:
539
+ return this.begin("node_r"), 41;
540
+ case 50:
541
+ return this.begin("rel"), 64;
542
+ case 51:
543
+ return this.begin("birel"), 65;
544
+ case 52:
545
+ return this.begin("rel_u"), 66;
546
+ case 53:
547
+ return this.begin("rel_u"), 66;
548
+ case 54:
549
+ return this.begin("rel_d"), 67;
550
+ case 55:
551
+ return this.begin("rel_d"), 67;
552
+ case 56:
553
+ return this.begin("rel_l"), 68;
554
+ case 57:
555
+ return this.begin("rel_l"), 68;
556
+ case 58:
557
+ return this.begin("rel_r"), 69;
558
+ case 59:
559
+ return this.begin("rel_r"), 69;
560
+ case 60:
561
+ return this.begin("rel_b"), 70;
562
+ case 61:
563
+ return this.begin("rel_index"), 71;
564
+ case 62:
565
+ return this.begin("update_el_style"), 72;
566
+ case 63:
567
+ return this.begin("update_rel_style"), 73;
568
+ case 64:
569
+ return this.begin("update_layout_config"), 74;
570
+ case 65:
571
+ return "EOF_IN_STRUCT";
572
+ case 66:
573
+ return this.begin("attribute"), "ATTRIBUTE_EMPTY";
574
+ case 67:
575
+ this.begin("attribute");
576
+ break;
577
+ case 68:
578
+ this.popState(), this.popState();
579
+ break;
580
+ case 69:
581
+ return 80;
582
+ case 70:
583
+ break;
584
+ case 71:
585
+ return 80;
586
+ case 72:
587
+ this.begin("string");
588
+ break;
589
+ case 73:
590
+ this.popState();
591
+ break;
592
+ case 74:
593
+ return "STR";
594
+ case 75:
595
+ this.begin("string_kv");
596
+ break;
597
+ case 76:
598
+ return this.begin("string_kv_key"), "STR_KEY";
599
+ case 77:
600
+ this.popState(), this.begin("string_kv_value");
601
+ break;
602
+ case 78:
603
+ return "STR_VALUE";
604
+ case 79:
605
+ this.popState(), this.popState();
606
+ break;
607
+ case 80:
608
+ return "STR";
609
+ case 81:
610
+ return "LBRACE";
611
+ case 82:
612
+ return "RBRACE";
613
+ case 83:
614
+ return "SPACE";
615
+ case 84:
616
+ return "EOL";
617
+ case 85:
618
+ return 14;
619
+ }
620
+ }, "anonymous"),
621
+ 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]+)/, /^(?:$)/],
622
+ 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: [65, 66, 67, 68], 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 } }
623
+ };
624
+ return _t;
625
+ }();
626
+ qt.lexer = Ce;
627
+ function Lt() {
628
+ this.yy = {};
629
+ }
630
+ return y(Lt, "Parser"), Lt.prototype = qt, qt.Parser = Lt, new Lt();
631
+ }();
632
+ Ft.parser = Ft;
633
+ var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
634
+ {
635
+ alias: "global",
636
+ label: { text: "global" },
637
+ type: { text: "global" },
638
+ tags: null,
639
+ link: null,
640
+ parentBoundary: ""
641
+ }
642
+ ], It = [], ie = "", ne = !1, Vt = 4, zt = 2, be, Fe = /* @__PURE__ */ y(function() {
643
+ return be;
644
+ }, "getC4Type"), Ve = /* @__PURE__ */ y(function(a) {
645
+ be = ge(a, Bt());
646
+ }, "setC4Type"), ze = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n, i) {
647
+ if (a == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null)
648
+ return;
649
+ let u = {};
650
+ const d = It.find((p) => p.from === t && p.to === s);
651
+ if (d ? u = d : It.push(u), u.type = a, u.from = t, u.to = s, u.label = { text: o }, r == null)
652
+ u.techn = { text: "" };
653
+ else if (typeof r == "object") {
654
+ let [p, g] = Object.entries(r)[0];
655
+ u[p] = { text: g };
656
+ } else
657
+ u.techn = { text: r };
658
+ if (l == null)
659
+ u.descr = { text: "" };
660
+ else if (typeof l == "object") {
661
+ let [p, g] = Object.entries(l)[0];
662
+ u[p] = { text: g };
663
+ } else
664
+ u.descr = { text: l };
665
+ if (typeof e == "object") {
666
+ let [p, g] = Object.entries(e)[0];
667
+ u[p] = g;
668
+ } else
669
+ u.sprite = e;
670
+ if (typeof n == "object") {
671
+ let [p, g] = Object.entries(n)[0];
672
+ u[p] = g;
673
+ } else
674
+ u.tags = n;
675
+ if (typeof i == "object") {
676
+ let [p, g] = Object.entries(i)[0];
677
+ u[p] = g;
678
+ } else
679
+ u.link = i;
680
+ u.wrap = mt();
681
+ }, "addRel"), Xe = /* @__PURE__ */ y(function(a, t, s, o, r, l, e) {
682
+ if (t === null || s === null)
683
+ return;
684
+ let n = {};
685
+ const i = V.find((u) => u.alias === t);
686
+ if (i && t === i.alias ? n = i : (n.alias = t, V.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null)
687
+ n.descr = { text: "" };
688
+ else if (typeof o == "object") {
689
+ let [u, d] = Object.entries(o)[0];
690
+ n[u] = { text: d };
691
+ } else
692
+ n.descr = { text: o };
693
+ if (typeof r == "object") {
694
+ let [u, d] = Object.entries(r)[0];
695
+ n[u] = d;
696
+ } else
697
+ n.sprite = r;
698
+ if (typeof l == "object") {
699
+ let [u, d] = Object.entries(l)[0];
700
+ n[u] = d;
701
+ } else
702
+ n.tags = l;
703
+ if (typeof e == "object") {
704
+ let [u, d] = Object.entries(e)[0];
705
+ n[u] = d;
706
+ } else
707
+ n.link = e;
708
+ n.typeC4Shape = { text: a }, n.parentBoundary = B, n.wrap = mt();
709
+ }, "addPersonOrSystem"), We = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n) {
710
+ if (t === null || s === null)
711
+ return;
712
+ let i = {};
713
+ const u = V.find((d) => d.alias === t);
714
+ if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
715
+ i.techn = { text: "" };
716
+ else if (typeof o == "object") {
717
+ let [d, p] = Object.entries(o)[0];
718
+ i[d] = { text: p };
719
+ } else
720
+ i.techn = { text: o };
721
+ if (r == null)
722
+ i.descr = { text: "" };
723
+ else if (typeof r == "object") {
724
+ let [d, p] = Object.entries(r)[0];
725
+ i[d] = { text: p };
726
+ } else
727
+ i.descr = { text: r };
728
+ if (typeof l == "object") {
729
+ let [d, p] = Object.entries(l)[0];
730
+ i[d] = p;
731
+ } else
732
+ i.sprite = l;
733
+ if (typeof e == "object") {
734
+ let [d, p] = Object.entries(e)[0];
735
+ i[d] = p;
736
+ } else
737
+ i.tags = e;
738
+ if (typeof n == "object") {
739
+ let [d, p] = Object.entries(n)[0];
740
+ i[d] = p;
741
+ } else
742
+ i.link = n;
743
+ i.wrap = mt(), i.typeC4Shape = { text: a }, i.parentBoundary = B;
744
+ }, "addContainer"), Qe = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n) {
745
+ if (t === null || s === null)
746
+ return;
747
+ let i = {};
748
+ const u = V.find((d) => d.alias === t);
749
+ if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
750
+ i.techn = { text: "" };
751
+ else if (typeof o == "object") {
752
+ let [d, p] = Object.entries(o)[0];
753
+ i[d] = { text: p };
754
+ } else
755
+ i.techn = { text: o };
756
+ if (r == null)
757
+ i.descr = { text: "" };
758
+ else if (typeof r == "object") {
759
+ let [d, p] = Object.entries(r)[0];
760
+ i[d] = { text: p };
761
+ } else
762
+ i.descr = { text: r };
763
+ if (typeof l == "object") {
764
+ let [d, p] = Object.entries(l)[0];
765
+ i[d] = p;
766
+ } else
767
+ i.sprite = l;
768
+ if (typeof e == "object") {
769
+ let [d, p] = Object.entries(e)[0];
770
+ i[d] = p;
771
+ } else
772
+ i.tags = e;
773
+ if (typeof n == "object") {
774
+ let [d, p] = Object.entries(n)[0];
775
+ i[d] = p;
776
+ } else
777
+ i.link = n;
778
+ i.wrap = mt(), i.typeC4Shape = { text: a }, i.parentBoundary = B;
779
+ }, "addComponent"), He = /* @__PURE__ */ y(function(a, t, s, o, r) {
780
+ if (a === null || t === null)
781
+ return;
782
+ let l = {};
783
+ const e = X.find((n) => n.alias === a);
784
+ if (e && a === e.alias ? l = e : (l.alias = a, X.push(l)), t == null ? l.label = { text: "" } : l.label = { text: t }, s == null)
785
+ l.type = { text: "system" };
786
+ else if (typeof s == "object") {
787
+ let [n, i] = Object.entries(s)[0];
788
+ l[n] = { text: i };
789
+ } else
790
+ l.type = { text: s };
791
+ if (typeof o == "object") {
792
+ let [n, i] = Object.entries(o)[0];
793
+ l[n] = i;
794
+ } else
795
+ l.tags = o;
796
+ if (typeof r == "object") {
797
+ let [n, i] = Object.entries(r)[0];
798
+ l[n] = i;
799
+ } else
800
+ l.link = r;
801
+ l.parentBoundary = B, l.wrap = mt(), F = B, B = a, xt.push(F);
802
+ }, "addPersonOrSystemBoundary"), qe = /* @__PURE__ */ y(function(a, t, s, o, r) {
803
+ if (a === null || t === null)
804
+ return;
805
+ let l = {};
806
+ const e = X.find((n) => n.alias === a);
807
+ if (e && a === e.alias ? l = e : (l.alias = a, X.push(l)), t == null ? l.label = { text: "" } : l.label = { text: t }, s == null)
808
+ l.type = { text: "container" };
809
+ else if (typeof s == "object") {
810
+ let [n, i] = Object.entries(s)[0];
811
+ l[n] = { text: i };
812
+ } else
813
+ l.type = { text: s };
814
+ if (typeof o == "object") {
815
+ let [n, i] = Object.entries(o)[0];
816
+ l[n] = i;
817
+ } else
818
+ l.tags = o;
819
+ if (typeof r == "object") {
820
+ let [n, i] = Object.entries(r)[0];
821
+ l[n] = i;
822
+ } else
823
+ l.link = r;
824
+ l.parentBoundary = B, l.wrap = mt(), F = B, B = a, xt.push(F);
825
+ }, "addContainerBoundary"), Ge = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n) {
826
+ if (t === null || s === null)
827
+ return;
828
+ let i = {};
829
+ const u = X.find((d) => d.alias === t);
830
+ if (u && t === u.alias ? i = u : (i.alias = t, X.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
831
+ i.type = { text: "node" };
832
+ else if (typeof o == "object") {
833
+ let [d, p] = Object.entries(o)[0];
834
+ i[d] = { text: p };
835
+ } else
836
+ i.type = { text: o };
837
+ if (r == null)
838
+ i.descr = { text: "" };
839
+ else if (typeof r == "object") {
840
+ let [d, p] = Object.entries(r)[0];
841
+ i[d] = { text: p };
842
+ } else
843
+ i.descr = { text: r };
844
+ if (typeof e == "object") {
845
+ let [d, p] = Object.entries(e)[0];
846
+ i[d] = p;
847
+ } else
848
+ i.tags = e;
849
+ if (typeof n == "object") {
850
+ let [d, p] = Object.entries(n)[0];
851
+ i[d] = p;
852
+ } else
853
+ i.link = n;
854
+ i.nodeType = a, i.parentBoundary = B, i.wrap = mt(), F = B, B = t, xt.push(F);
855
+ }, "addDeploymentNode"), Ke = /* @__PURE__ */ y(function() {
856
+ B = F, xt.pop(), F = xt.pop(), xt.push(F);
857
+ }, "popBoundaryParseStack"), Je = /* @__PURE__ */ y(function(a, t, s, o, r, l, e, n, i, u, d) {
858
+ let p = V.find((g) => g.alias === t);
859
+ if (!(p === void 0 && (p = X.find((g) => g.alias === t), p === void 0))) {
860
+ if (s != null)
861
+ if (typeof s == "object") {
862
+ let [g, m] = Object.entries(s)[0];
863
+ p[g] = m;
864
+ } else
865
+ p.bgColor = s;
866
+ if (o != null)
867
+ if (typeof o == "object") {
868
+ let [g, m] = Object.entries(o)[0];
869
+ p[g] = m;
870
+ } else
871
+ p.fontColor = o;
872
+ if (r != null)
873
+ if (typeof r == "object") {
874
+ let [g, m] = Object.entries(r)[0];
875
+ p[g] = m;
876
+ } else
877
+ p.borderColor = r;
878
+ if (l != null)
879
+ if (typeof l == "object") {
880
+ let [g, m] = Object.entries(l)[0];
881
+ p[g] = m;
882
+ } else
883
+ p.shadowing = l;
884
+ if (e != null)
885
+ if (typeof e == "object") {
886
+ let [g, m] = Object.entries(e)[0];
887
+ p[g] = m;
888
+ } else
889
+ p.shape = e;
890
+ if (n != null)
891
+ if (typeof n == "object") {
892
+ let [g, m] = Object.entries(n)[0];
893
+ p[g] = m;
894
+ } else
895
+ p.sprite = n;
896
+ if (i != null)
897
+ if (typeof i == "object") {
898
+ let [g, m] = Object.entries(i)[0];
899
+ p[g] = m;
900
+ } else
901
+ p.techn = i;
902
+ if (u != null)
903
+ if (typeof u == "object") {
904
+ let [g, m] = Object.entries(u)[0];
905
+ p[g] = m;
906
+ } else
907
+ p.legendText = u;
908
+ if (d != null)
909
+ if (typeof d == "object") {
910
+ let [g, m] = Object.entries(d)[0];
911
+ p[g] = m;
912
+ } else
913
+ p.legendSprite = d;
914
+ }
915
+ }, "updateElStyle"), Ze = /* @__PURE__ */ y(function(a, t, s, o, r, l, e) {
916
+ const n = It.find((i) => i.from === t && i.to === s);
917
+ if (n !== void 0) {
918
+ if (o != null)
919
+ if (typeof o == "object") {
920
+ let [i, u] = Object.entries(o)[0];
921
+ n[i] = u;
922
+ } else
923
+ n.textColor = o;
924
+ if (r != null)
925
+ if (typeof r == "object") {
926
+ let [i, u] = Object.entries(r)[0];
927
+ n[i] = u;
928
+ } else
929
+ n.lineColor = r;
930
+ if (l != null)
931
+ if (typeof l == "object") {
932
+ let [i, u] = Object.entries(l)[0];
933
+ n[i] = parseInt(u);
934
+ } else
935
+ n.offsetX = parseInt(l);
936
+ if (e != null)
937
+ if (typeof e == "object") {
938
+ let [i, u] = Object.entries(e)[0];
939
+ n[i] = parseInt(u);
940
+ } else
941
+ n.offsetY = parseInt(e);
942
+ }
943
+ }, "updateRelStyle"), $e = /* @__PURE__ */ y(function(a, t, s) {
944
+ let o = Vt, r = zt;
945
+ if (typeof t == "object") {
946
+ const l = Object.values(t)[0];
947
+ o = parseInt(l);
948
+ } else
949
+ o = parseInt(t);
950
+ if (typeof s == "object") {
951
+ const l = Object.values(s)[0];
952
+ r = parseInt(l);
953
+ } else
954
+ r = parseInt(s);
955
+ o >= 1 && (Vt = o), r >= 1 && (zt = r);
956
+ }, "updateLayoutConfig"), t0 = /* @__PURE__ */ y(function() {
957
+ return Vt;
958
+ }, "getC4ShapeInRow"), e0 = /* @__PURE__ */ y(function() {
959
+ return zt;
960
+ }, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ y(function() {
961
+ return B;
962
+ }, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ y(function() {
963
+ return F;
964
+ }, "getParentBoundaryParse"), _e = /* @__PURE__ */ y(function(a) {
965
+ return a == null ? V : V.filter((t) => t.parentBoundary === a);
966
+ }, "getC4ShapeArray"), n0 = /* @__PURE__ */ y(function(a) {
967
+ return V.find((t) => t.alias === a);
968
+ }, "getC4Shape"), s0 = /* @__PURE__ */ y(function(a) {
969
+ return Object.keys(_e(a));
970
+ }, "getC4ShapeKeys"), xe = /* @__PURE__ */ y(function(a) {
971
+ return a == null ? X : X.filter((t) => t.parentBoundary === a);
972
+ }, "getBoundaries"), r0 = xe, l0 = /* @__PURE__ */ y(function() {
973
+ return It;
974
+ }, "getRels"), o0 = /* @__PURE__ */ y(function() {
975
+ return ie;
976
+ }, "getTitle"), c0 = /* @__PURE__ */ y(function(a) {
977
+ ne = a;
978
+ }, "setWrap"), mt = /* @__PURE__ */ y(function() {
979
+ return ne;
980
+ }, "autoWrap"), h0 = /* @__PURE__ */ y(function() {
981
+ V = [], X = [
982
+ {
983
+ alias: "global",
984
+ label: { text: "global" },
985
+ type: { text: "global" },
986
+ tags: null,
987
+ link: null,
988
+ parentBoundary: ""
989
+ }
990
+ ], F = "", B = "global", xt = [""], It = [], xt = [""], ie = "", ne = !1, Vt = 4, zt = 2;
991
+ }, "clear"), u0 = {
992
+ SOLID: 0,
993
+ DOTTED: 1,
994
+ NOTE: 2,
995
+ SOLID_CROSS: 3,
996
+ DOTTED_CROSS: 4,
997
+ SOLID_OPEN: 5,
998
+ DOTTED_OPEN: 6,
999
+ LOOP_START: 10,
1000
+ LOOP_END: 11,
1001
+ ALT_START: 12,
1002
+ ALT_ELSE: 13,
1003
+ ALT_END: 14,
1004
+ OPT_START: 15,
1005
+ OPT_END: 16,
1006
+ ACTIVE_START: 17,
1007
+ ACTIVE_END: 18,
1008
+ PAR_START: 19,
1009
+ PAR_AND: 20,
1010
+ PAR_END: 21,
1011
+ RECT_START: 22,
1012
+ RECT_END: 23,
1013
+ SOLID_POINT: 24,
1014
+ DOTTED_POINT: 25
1015
+ }, d0 = {
1016
+ FILLED: 0,
1017
+ OPEN: 1
1018
+ }, f0 = {
1019
+ LEFTOF: 0,
1020
+ RIGHTOF: 1,
1021
+ OVER: 2
1022
+ }, p0 = /* @__PURE__ */ y(function(a) {
1023
+ ie = ge(a, Bt());
1024
+ }, "setTitle"), te = {
1025
+ addPersonOrSystem: Xe,
1026
+ addPersonOrSystemBoundary: He,
1027
+ addContainer: We,
1028
+ addContainerBoundary: qe,
1029
+ addComponent: Qe,
1030
+ addDeploymentNode: Ge,
1031
+ popBoundaryParseStack: Ke,
1032
+ addRel: ze,
1033
+ updateElStyle: Je,
1034
+ updateRelStyle: Ze,
1035
+ updateLayoutConfig: $e,
1036
+ autoWrap: mt,
1037
+ setWrap: c0,
1038
+ getC4ShapeArray: _e,
1039
+ getC4Shape: n0,
1040
+ getC4ShapeKeys: s0,
1041
+ getBoundaries: xe,
1042
+ getBoundarys: r0,
1043
+ getCurrentBoundaryParse: a0,
1044
+ getParentBoundaryParse: i0,
1045
+ getRels: l0,
1046
+ getTitle: o0,
1047
+ getC4Type: Fe,
1048
+ getC4ShapeInRow: t0,
1049
+ getC4BoundaryInRow: e0,
1050
+ setAccTitle: Me,
1051
+ getAccTitle: Ie,
1052
+ getAccDescription: Be,
1053
+ setAccDescription: Pe,
1054
+ getConfig: /* @__PURE__ */ y(() => Bt().c4, "getConfig"),
1055
+ clear: h0,
1056
+ LINETYPE: u0,
1057
+ ARROWTYPE: d0,
1058
+ PLACEMENT: f0,
1059
+ setTitle: p0,
1060
+ setC4Type: Ve
1061
+ // apply,
1062
+ }, se = /* @__PURE__ */ y(function(a, t) {
1063
+ return De(a, t);
1064
+ }, "drawRect"), me = /* @__PURE__ */ y(function(a, t, s, o, r, l) {
1065
+ const e = a.append("image");
1066
+ e.attr("width", t), e.attr("height", s), e.attr("x", o), e.attr("y", r);
1067
+ let n = l.startsWith("data:image/png;base64") ? l : Ye.sanitizeUrl(l);
1068
+ e.attr("xlink:href", n);
1069
+ }, "drawImage"), y0 = /* @__PURE__ */ y((a, t, s, o) => {
1070
+ const r = a.append("g");
1071
+ let l = 0;
1072
+ for (let e of t) {
1073
+ let n = e.textColor ? e.textColor : "#444444", i = e.lineColor ? e.lineColor : "#444444", u = e.offsetX ? parseInt(e.offsetX) : 0, d = e.offsetY ? parseInt(e.offsetY) : 0, p = "";
1074
+ if (l === 0) {
1075
+ let m = r.append("line");
1076
+ m.attr("x1", e.startPoint.x), m.attr("y1", e.startPoint.y), m.attr("x2", e.endPoint.x), m.attr("y2", e.endPoint.y), m.attr("stroke-width", "1"), m.attr("stroke", i), m.style("fill", "none"), e.type !== "rel_b" && m.attr("marker-end", "url(" + p + "#" + o + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && m.attr("marker-start", "url(" + p + "#" + o + "-arrowend)"), l = -1;
1077
+ } else {
1078
+ let m = r.append("path");
1079
+ m.attr("fill", "none").attr("stroke-width", "1").attr("stroke", i).attr(
1080
+ "d",
1081
+ "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll(
1082
+ "controlx",
1083
+ e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4
1084
+ ).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)
1085
+ ), e.type !== "rel_b" && m.attr("marker-end", "url(" + p + "#" + o + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && m.attr("marker-start", "url(" + p + "#" + o + "-arrowend)");
1086
+ }
1087
+ let g = s.messageFont();
1088
+ Q(s)(
1089
+ e.label.text,
1090
+ r,
1091
+ Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + u,
1092
+ Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + d,
1093
+ e.label.width,
1094
+ e.label.height,
1095
+ { fill: n },
1096
+ g
1097
+ ), e.techn && e.techn.text !== "" && (g = s.messageFont(), Q(s)(
1098
+ "[" + e.techn.text + "]",
1099
+ r,
1100
+ Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + u,
1101
+ Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + s.messageFontSize + 5 + d,
1102
+ Math.max(e.label.width, e.techn.width),
1103
+ e.techn.height,
1104
+ { fill: n, "font-style": "italic" },
1105
+ g
1106
+ ));
1107
+ }
1108
+ }, "drawRels"), g0 = /* @__PURE__ */ y(function(a, t, s) {
1109
+ const o = a.append("g");
1110
+ let r = t.bgColor ? t.bgColor : "none", l = t.borderColor ? t.borderColor : "#444444", e = t.fontColor ? t.fontColor : "black", n = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1111
+ t.nodeType && (n = { "stroke-width": 1 });
1112
+ let i = {
1113
+ x: t.x,
1114
+ y: t.y,
1115
+ fill: r,
1116
+ stroke: l,
1117
+ width: t.width,
1118
+ height: t.height,
1119
+ rx: 2.5,
1120
+ ry: 2.5,
1121
+ attrs: n
1122
+ };
1123
+ se(o, i);
1124
+ let u = s.boundaryFont();
1125
+ u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = e, Q(s)(
1126
+ t.label.text,
1127
+ o,
1128
+ t.x,
1129
+ t.y + t.label.Y,
1130
+ t.width,
1131
+ t.height,
1132
+ { fill: "#444444" },
1133
+ u
1134
+ ), t.type && t.type.text !== "" && (u = s.boundaryFont(), u.fontColor = e, Q(s)(
1135
+ t.type.text,
1136
+ o,
1137
+ t.x,
1138
+ t.y + t.type.Y,
1139
+ t.width,
1140
+ t.height,
1141
+ { fill: "#444444" },
1142
+ u
1143
+ )), t.descr && t.descr.text !== "" && (u = s.boundaryFont(), u.fontSize = u.fontSize - 2, u.fontColor = e, Q(s)(
1144
+ t.descr.text,
1145
+ o,
1146
+ t.x,
1147
+ t.y + t.descr.Y,
1148
+ t.width,
1149
+ t.height,
1150
+ { fill: "#444444" },
1151
+ u
1152
+ ));
1153
+ }, "drawBoundary"), b0 = /* @__PURE__ */ y(function(a, t, s) {
1154
+ let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], r = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], l = t.fontColor ? t.fontColor : "#FFFFFF", e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1155
+ switch (t.typeC4Shape.text) {
1156
+ case "person":
1157
+ e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1158
+ break;
1159
+ case "external_person":
1160
+ e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1161
+ break;
1162
+ }
1163
+ const n = a.append("g");
1164
+ n.attr("class", "person-man");
1165
+ const i = Se();
1166
+ switch (t.typeC4Shape.text) {
1167
+ case "person":
1168
+ case "external_person":
1169
+ case "system":
1170
+ case "external_system":
1171
+ case "container":
1172
+ case "external_container":
1173
+ case "component":
1174
+ case "external_component":
1175
+ i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = r, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, se(n, i);
1176
+ break;
1177
+ case "system_db":
1178
+ case "external_system_db":
1179
+ case "container_db":
1180
+ case "external_container_db":
1181
+ case "component_db":
1182
+ case "external_component_db":
1183
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", r).attr(
1184
+ "d",
1185
+ "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)
1186
+ ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", r).attr(
1187
+ "d",
1188
+ "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)
1189
+ );
1190
+ break;
1191
+ case "system_queue":
1192
+ case "external_system_queue":
1193
+ case "container_queue":
1194
+ case "external_container_queue":
1195
+ case "component_queue":
1196
+ case "external_component_queue":
1197
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", r).attr(
1198
+ "d",
1199
+ "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)
1200
+ ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", r).attr(
1201
+ "d",
1202
+ "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)
1203
+ );
1204
+ break;
1205
+ }
1206
+ let u = C0(s, t.typeC4Shape.text);
1207
+ switch (n.append("text").attr("fill", l).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) {
1208
+ case "person":
1209
+ case "external_person":
1210
+ me(
1211
+ n,
1212
+ 48,
1213
+ 48,
1214
+ t.x + t.width / 2 - 24,
1215
+ t.y + t.image.Y,
1216
+ e
1217
+ );
1218
+ break;
1219
+ }
1220
+ let d = s[t.typeC4Shape.text + "Font"]();
1221
+ return d.fontWeight = "bold", d.fontSize = d.fontSize + 2, d.fontColor = l, Q(s)(
1222
+ t.label.text,
1223
+ n,
1224
+ t.x,
1225
+ t.y + t.label.Y,
1226
+ t.width,
1227
+ t.height,
1228
+ { fill: l },
1229
+ d
1230
+ ), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = l, t.techn && t.techn?.text !== "" ? Q(s)(
1231
+ t.techn.text,
1232
+ n,
1233
+ t.x,
1234
+ t.y + t.techn.Y,
1235
+ t.width,
1236
+ t.height,
1237
+ { fill: l, "font-style": "italic" },
1238
+ d
1239
+ ) : t.type && t.type.text !== "" && Q(s)(
1240
+ t.type.text,
1241
+ n,
1242
+ t.x,
1243
+ t.y + t.type.Y,
1244
+ t.width,
1245
+ t.height,
1246
+ { fill: l, "font-style": "italic" },
1247
+ d
1248
+ ), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = l, Q(s)(
1249
+ t.descr.text,
1250
+ n,
1251
+ t.x,
1252
+ t.y + t.descr.Y,
1253
+ t.width,
1254
+ t.height,
1255
+ { fill: l },
1256
+ d
1257
+ )), t.height;
1258
+ }, "drawC4Shape"), _0 = /* @__PURE__ */ y(function(a, t) {
1259
+ a.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1260
+ "d",
1261
+ "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"
1262
+ );
1263
+ }, "insertDatabaseIcon"), x0 = /* @__PURE__ */ y(function(a, t) {
1264
+ a.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1265
+ "d",
1266
+ "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"
1267
+ );
1268
+ }, "insertComputerIcon"), m0 = /* @__PURE__ */ y(function(a, t) {
1269
+ a.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1270
+ "d",
1271
+ "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"
1272
+ );
1273
+ }, "insertClockIcon"), v0 = /* @__PURE__ */ y(function(a, t) {
1274
+ a.append("defs").append("marker").attr("id", t + "-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");
1275
+ }, "insertArrowHead"), E0 = /* @__PURE__ */ y(function(a, t) {
1276
+ a.append("defs").append("marker").attr("id", t + "-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");
1277
+ }, "insertArrowEnd"), A0 = /* @__PURE__ */ y(function(a, t) {
1278
+ a.append("defs").append("marker").attr("id", t + "-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");
1279
+ }, "insertArrowFilledHead"), k0 = /* @__PURE__ */ y(function(a, t) {
1280
+ const o = a.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1281
+ o.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"), o.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");
1282
+ }, "insertArrowCrossHead"), C0 = /* @__PURE__ */ y((a, t) => ({
1283
+ fontFamily: a[t + "FontFamily"],
1284
+ fontSize: a[t + "FontSize"],
1285
+ fontWeight: a[t + "FontWeight"]
1286
+ }), "getC4ShapeFont"), Q = /* @__PURE__ */ function() {
1287
+ function a(r, l, e, n, i, u, d) {
1288
+ const p = l.append("text").attr("x", e + i / 2).attr("y", n + u / 2 + 5).style("text-anchor", "middle").text(r);
1289
+ o(p, d);
1290
+ }
1291
+ y(a, "byText");
1292
+ function t(r, l, e, n, i, u, d, p) {
1293
+ const { fontSize: g, fontFamily: m, fontWeight: O } = p, S = r.split($t.lineBreakRegex);
1294
+ for (let P = 0; P < S.length; P++) {
1295
+ const M = P * g - g * (S.length - 1) / 2, U = l.append("text").attr("x", e + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", g).style("font-weight", O).style("font-family", m);
1296
+ U.append("tspan").attr("dy", M).text(S[P]).attr("alignment-baseline", "mathematical"), o(U, d);
1297
+ }
1298
+ }
1299
+ y(t, "byTspan");
1300
+ function s(r, l, e, n, i, u, d, p) {
1301
+ const g = l.append("switch"), O = g.append("foreignObject").attr("x", e).attr("y", n).attr("width", i).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1302
+ O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, g, e, n, i, u, d, p), o(O, d);
1303
+ }
1304
+ y(s, "byFo");
1305
+ function o(r, l) {
1306
+ for (const e in l)
1307
+ l.hasOwnProperty(e) && r.attr(e, l[e]);
1308
+ }
1309
+ return y(o, "_setTextAttrs"), function(r) {
1310
+ return r.textPlacement === "fo" ? s : r.textPlacement === "old" ? a : t;
1311
+ };
1312
+ }(), z = {
1313
+ drawRect: se,
1314
+ drawBoundary: g0,
1315
+ drawC4Shape: b0,
1316
+ drawRels: y0,
1317
+ drawImage: me,
1318
+ insertArrowHead: v0,
1319
+ insertArrowEnd: E0,
1320
+ insertArrowFilledHead: A0,
1321
+ insertArrowCrossHead: k0,
1322
+ insertDatabaseIcon: _0,
1323
+ insertComputerIcon: x0,
1324
+ insertClockIcon: m0
1325
+ }, Xt = 0, Wt = 0, ve = 4, ee = 2;
1326
+ Ft.yy = te;
1327
+ var _ = {}, Ot, Ee = (Ot = class {
1328
+ constructor(t) {
1329
+ 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());
1330
+ }
1331
+ setData(t, s, o, r) {
1332
+ 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 = r;
1333
+ }
1334
+ updateVal(t, s, o, r) {
1335
+ t[s] === void 0 ? t[s] = o : t[s] = r(o, t[s]);
1336
+ }
1337
+ insert(t) {
1338
+ this.nextData.cnt = this.nextData.cnt + 1;
1339
+ let s = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + t.margin : this.nextData.stopx + t.margin * 2, o = s + t.width, r = this.nextData.starty + t.margin * 2, l = r + t.height;
1340
+ (s >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt > ve) && (s = this.nextData.startx + t.margin + _.nextLinePaddingX, r = this.nextData.stopy + t.margin * 2, this.nextData.stopx = o = s + t.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = l = r + t.height, this.nextData.cnt = 1), t.x = s, t.y = r, this.updateVal(this.data, "startx", s, Math.min), this.updateVal(this.data, "starty", r, Math.min), this.updateVal(this.data, "stopx", o, Math.max), this.updateVal(this.data, "stopy", l, Math.max), this.updateVal(this.nextData, "startx", s, Math.min), this.updateVal(this.nextData, "starty", r, Math.min), this.updateVal(this.nextData, "stopx", o, Math.max), this.updateVal(this.nextData, "stopy", l, Math.max);
1341
+ }
1342
+ init(t) {
1343
+ this.name = "", this.data = {
1344
+ startx: void 0,
1345
+ stopx: void 0,
1346
+ starty: void 0,
1347
+ stopy: void 0,
1348
+ widthLimit: void 0
1349
+ }, this.nextData = {
1350
+ startx: void 0,
1351
+ stopx: void 0,
1352
+ starty: void 0,
1353
+ stopy: void 0,
1354
+ cnt: 0
1355
+ }, ae(t.db.getConfig());
1356
+ }
1357
+ bumpLastMargin(t) {
1358
+ this.data.stopx += t, this.data.stopy += t;
1359
+ }
1360
+ }, y(Ot, "Bounds"), Ot), ae = /* @__PURE__ */ y(function(a) {
1361
+ Ne(_, a), a.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = a.fontFamily), a.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = a.fontSize), a.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = a.fontWeight);
1362
+ }, "setConf"), Pt = /* @__PURE__ */ y((a, t) => ({
1363
+ fontFamily: a[t + "FontFamily"],
1364
+ fontSize: a[t + "FontSize"],
1365
+ fontWeight: a[t + "FontWeight"]
1366
+ }), "c4ShapeFont"), Ut = /* @__PURE__ */ y((a) => ({
1367
+ fontFamily: a.boundaryFontFamily,
1368
+ fontSize: a.boundaryFontSize,
1369
+ fontWeight: a.boundaryFontWeight
1370
+ }), "boundaryFont"), w0 = /* @__PURE__ */ y((a) => ({
1371
+ fontFamily: a.messageFontFamily,
1372
+ fontSize: a.messageFontSize,
1373
+ fontWeight: a.messageFontWeight
1374
+ }), "messageFont");
1375
+ function j(a, t, s, o, r) {
1376
+ if (!t[a].width)
1377
+ if (s)
1378
+ t[a].text = je(t[a].text, r, o), t[a].textLines = t[a].text.split($t.lineBreakRegex).length, t[a].width = r, t[a].height = fe(t[a].text, o);
1379
+ else {
1380
+ let l = t[a].text.split($t.lineBreakRegex);
1381
+ t[a].textLines = l.length;
1382
+ let e = 0;
1383
+ t[a].height = 0, t[a].width = 0;
1384
+ for (const n of l)
1385
+ t[a].width = Math.max(
1386
+ Tt(n, o),
1387
+ t[a].width
1388
+ ), e = fe(n, o), t[a].height = t[a].height + e;
1389
+ }
1390
+ }
1391
+ y(j, "calcC4ShapeTextWH");
1392
+ var Ae = /* @__PURE__ */ y(function(a, t, s) {
1393
+ 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;
1394
+ let o = t.wrap && _.wrap, r = Ut(_);
1395
+ r.fontSize = r.fontSize + 2, r.fontWeight = "bold";
1396
+ let l = Tt(t.label.text, r);
1397
+ j("label", t, o, r, l), z.drawBoundary(a, t, _);
1398
+ }, "drawBoundary"), ke = /* @__PURE__ */ y(function(a, t, s, o) {
1399
+ let r = 0;
1400
+ for (const l of o) {
1401
+ r = 0;
1402
+ const e = s[l];
1403
+ let n = Pt(_, e.typeC4Shape.text);
1404
+ switch (n.fontSize = n.fontSize - 2, e.typeC4Shape.width = Tt(
1405
+ "«" + e.typeC4Shape.text + "»",
1406
+ n
1407
+ ), e.typeC4Shape.height = n.fontSize + 2, e.typeC4Shape.Y = _.c4ShapePadding, r = e.typeC4Shape.Y + e.typeC4Shape.height - 4, e.image = { width: 0, height: 0, Y: 0 }, e.typeC4Shape.text) {
1408
+ case "person":
1409
+ case "external_person":
1410
+ e.image.width = 48, e.image.height = 48, e.image.Y = r, r = e.image.Y + e.image.height;
1411
+ break;
1412
+ }
1413
+ e.sprite && (e.image.width = 48, e.image.height = 48, e.image.Y = r, r = e.image.Y + e.image.height);
1414
+ let i = e.wrap && _.wrap, u = _.width - _.c4ShapePadding * 2, d = Pt(_, e.typeC4Shape.text);
1415
+ if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j("label", e, i, d, u), e.label.Y = r + 8, r = e.label.Y + e.label.height, e.type && e.type.text !== "") {
1416
+ e.type.text = "[" + e.type.text + "]";
1417
+ let m = Pt(_, e.typeC4Shape.text);
1418
+ j("type", e, i, m, u), e.type.Y = r + 5, r = e.type.Y + e.type.height;
1419
+ } else if (e.techn && e.techn.text !== "") {
1420
+ e.techn.text = "[" + e.techn.text + "]";
1421
+ let m = Pt(_, e.techn.text);
1422
+ j("techn", e, i, m, u), e.techn.Y = r + 5, r = e.techn.Y + e.techn.height;
1423
+ }
1424
+ let p = r, g = e.label.width;
1425
+ if (e.descr && e.descr.text !== "") {
1426
+ let m = Pt(_, e.typeC4Shape.text);
1427
+ j("descr", e, i, m, u), e.descr.Y = r + 20, r = e.descr.Y + e.descr.height, g = Math.max(e.label.width, e.descr.width), p = r - e.descr.textLines * 5;
1428
+ }
1429
+ g = g + _.c4ShapePadding, e.width = Math.max(e.width || _.width, g, _.width), e.height = Math.max(e.height || _.height, p, _.height), e.margin = e.margin || _.c4ShapeMargin, a.insert(e), z.drawC4Shape(t, e, _);
1430
+ }
1431
+ a.bumpLastMargin(_.c4ShapeMargin);
1432
+ }, "drawC4ShapeArray"), Rt, Y = (Rt = class {
1433
+ constructor(t, s) {
1434
+ this.x = t, this.y = s;
1435
+ }
1436
+ }, y(Rt, "Point"), Rt), pe = /* @__PURE__ */ y(function(a, t) {
1437
+ let s = a.x, o = a.y, r = t.x, l = t.y, e = s + a.width / 2, n = o + a.height / 2, i = Math.abs(s - r), u = Math.abs(o - l), d = u / i, p = a.height / a.width, g = null;
1438
+ return o == l && s < r ? g = new Y(s + a.width, n) : o == l && s > r ? g = new Y(s, n) : s == r && o < l ? g = new Y(e, o + a.height) : s == r && o > l && (g = new Y(e, o)), s > r && o < l ? p >= d ? g = new Y(s, n + d * a.width / 2) : g = new Y(
1439
+ e - i / u * a.height / 2,
1440
+ o + a.height
1441
+ ) : s < r && o < l ? p >= d ? g = new Y(s + a.width, n + d * a.width / 2) : g = new Y(
1442
+ e + i / u * a.height / 2,
1443
+ o + a.height
1444
+ ) : s < r && o > l ? p >= d ? g = new Y(s + a.width, n - d * a.width / 2) : g = new Y(e + a.height / 2 * i / u, o) : s > r && o > l && (p >= d ? g = new Y(s, n - a.width / 2 * d) : g = new Y(e - a.height / 2 * i / u, o)), g;
1445
+ }, "getIntersectPoint"), T0 = /* @__PURE__ */ y(function(a, t) {
1446
+ let s = { x: 0, y: 0 };
1447
+ s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
1448
+ let o = pe(a, s);
1449
+ s.x = a.x + a.width / 2, s.y = a.y + a.height / 2;
1450
+ let r = pe(t, s);
1451
+ return { startPoint: o, endPoint: r };
1452
+ }, "getIntersectPoints"), O0 = /* @__PURE__ */ y(function(a, t, s, o, r) {
1453
+ let l = 0;
1454
+ for (let e of t) {
1455
+ l = l + 1;
1456
+ let n = e.wrap && _.wrap, i = w0(_);
1457
+ o.db.getC4Type() === "C4Dynamic" && (e.label.text = l + ": " + e.label.text);
1458
+ let d = Tt(e.label.text, i);
1459
+ j("label", e, n, i, d), e.techn && e.techn.text !== "" && (d = Tt(e.techn.text, i), j("techn", e, n, i, d)), e.descr && e.descr.text !== "" && (d = Tt(e.descr.text, i), j("descr", e, n, i, d));
1460
+ let p = s(e.from), g = s(e.to), m = T0(p, g);
1461
+ e.startPoint = m.startPoint, e.endPoint = m.endPoint;
1462
+ }
1463
+ z.drawRels(a, t, _, r);
1464
+ }, "drawRels");
1465
+ function re(a, t, s, o, r) {
1466
+ let l = new Ee(r);
1467
+ l.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
1468
+ for (let [e, n] of o.entries()) {
1469
+ let i = 0;
1470
+ 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);
1471
+ let u = n.wrap && _.wrap, d = Ut(_);
1472
+ if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j(
1473
+ "label",
1474
+ n,
1475
+ u,
1476
+ d,
1477
+ l.data.widthLimit
1478
+ ), n.label.Y = i + 8, i = n.label.Y + n.label.height, n.type && n.type.text !== "") {
1479
+ n.type.text = "[" + n.type.text + "]";
1480
+ let O = Ut(_);
1481
+ j(
1482
+ "type",
1483
+ n,
1484
+ u,
1485
+ O,
1486
+ l.data.widthLimit
1487
+ ), n.type.Y = i + 5, i = n.type.Y + n.type.height;
1488
+ }
1489
+ if (n.descr && n.descr.text !== "") {
1490
+ let O = Ut(_);
1491
+ O.fontSize = O.fontSize - 2, j(
1492
+ "descr",
1493
+ n,
1494
+ u,
1495
+ O,
1496
+ l.data.widthLimit
1497
+ ), n.descr.Y = i + 20, i = n.descr.Y + n.descr.height;
1498
+ }
1499
+ if (e == 0 || e % ee === 0) {
1500
+ let O = s.data.startx + _.diagramMarginX, S = s.data.stopy + _.diagramMarginY + i;
1501
+ l.setData(O, O, S, S);
1502
+ } else {
1503
+ let O = l.data.stopx !== l.data.startx ? l.data.stopx + _.diagramMarginX : l.data.startx, S = l.data.starty;
1504
+ l.setData(O, O, S, S);
1505
+ }
1506
+ l.name = n.alias;
1507
+ let p = r.db.getC4ShapeArray(n.alias), g = r.db.getC4ShapeKeys(n.alias);
1508
+ g.length > 0 && ke(
1509
+ l,
1510
+ a,
1511
+ p,
1512
+ g
1513
+ ), t = n.alias;
1514
+ let m = r.db.getBoundaries(t);
1515
+ m.length > 0 && re(
1516
+ a,
1517
+ t,
1518
+ l,
1519
+ m,
1520
+ r
1521
+ ), n.alias !== "global" && Ae(a, n, l), s.data.stopy = Math.max(
1522
+ l.data.stopy + _.c4ShapeMargin,
1523
+ s.data.stopy
1524
+ ), s.data.stopx = Math.max(
1525
+ l.data.stopx + _.c4ShapeMargin,
1526
+ s.data.stopx
1527
+ ), Xt = Math.max(Xt, s.data.stopx), Wt = Math.max(Wt, s.data.stopy);
1528
+ }
1529
+ }
1530
+ y(re, "drawInsideBoundary");
1531
+ var R0 = /* @__PURE__ */ y(function(a, t, s, o) {
1532
+ _ = Bt().c4;
1533
+ const r = Bt().securityLevel;
1534
+ let l;
1535
+ r === "sandbox" && (l = jt("#i" + t));
1536
+ const e = r === "sandbox" ? jt(l.nodes()[0].contentDocument.body) : jt("body");
1537
+ let n = o.db;
1538
+ o.db.setWrap(_.wrap), ve = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), de.debug(`C:${JSON.stringify(_, null, 2)}`);
1539
+ const i = r === "sandbox" ? e.select(`[id="${t}"]`) : jt(`[id="${t}"]`);
1540
+ z.insertComputerIcon(i, t), z.insertDatabaseIcon(i, t), z.insertClockIcon(i, t);
1541
+ let u = new Ee(o);
1542
+ u.setData(
1543
+ _.diagramMarginX,
1544
+ _.diagramMarginX,
1545
+ _.diagramMarginY,
1546
+ _.diagramMarginY
1547
+ ), u.data.widthLimit = screen.availWidth, Xt = _.diagramMarginX, Wt = _.diagramMarginY;
1548
+ const d = o.db.getTitle();
1549
+ let p = o.db.getBoundaries("");
1550
+ re(i, "", u, p, o), z.insertArrowHead(i, t), z.insertArrowEnd(i, t), z.insertArrowCrossHead(i, t), z.insertArrowFilledHead(i, t), O0(i, o.db.getRels(), o.db.getC4Shape, o, t), u.data.stopx = Xt, u.data.stopy = Wt;
1551
+ const g = u.data;
1552
+ let O = g.stopy - g.starty + 2 * _.diagramMarginY;
1553
+ const P = g.stopx - g.startx + 2 * _.diagramMarginX;
1554
+ d && i.append("text").text(d).attr("x", (g.stopx - g.startx) / 2 - 4 * _.diagramMarginX).attr("y", g.starty + _.diagramMarginY), Le(i, O, P, _.useMaxWidth);
1555
+ const M = d ? 60 : 0;
1556
+ i.attr(
1557
+ "viewBox",
1558
+ g.startx - _.diagramMarginX + " -" + (_.diagramMarginY + M) + " " + P + " " + (O + M)
1559
+ ), de.debug("models:", g);
1560
+ }, "draw"), ye = {
1561
+ drawPersonOrSystemArray: ke,
1562
+ drawBoundary: Ae,
1563
+ setConf: ae,
1564
+ draw: R0
1565
+ }, S0 = /* @__PURE__ */ y((a) => `.person {
1566
+ stroke: ${a.personBorder};
1567
+ fill: ${a.personBkg};
1568
+ }
1569
+ `, "getStyles"), D0 = S0, N0 = {
1570
+ parser: Ue,
1571
+ db: te,
1572
+ renderer: ye,
1573
+ styles: D0,
1574
+ init: /* @__PURE__ */ y(({ c4: a, wrap: t }) => {
1575
+ ye.setConf(a), te.setWrap(t);
1576
+ }, "init")
1577
+ };
1578
+ export {
1579
+ N0 as diagram
1580
+ };