@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,1058 @@
1
+ import { _ as o, y as pt, R as Rt, S as Ct, T as Wt, c as gt, l as E, E as Pt, L as Bt, V as ft, t as Vt, W as Ft, p as zt } from "./mermaid.core.Dspbw7Ig.js";
2
+ import "./index.CrhRU5m8.js";
3
+ import "./transform.BuqENXeT.js";
4
+ import { s as X } from "./select.C6_sM3Pr.js";
5
+ import { d as ot } from "./arc.xqNd6x9S.js";
6
+ var tt = function() {
7
+ var e = /* @__PURE__ */ o(function(k, s, d, l) {
8
+ for (d = d || {}, l = k.length; l--; d[k[l]] = s) ;
9
+ return d;
10
+ }, "o"), t = [6, 11, 13, 14, 15, 17, 19, 20, 23, 24], n = [1, 12], i = [1, 13], r = [1, 14], h = [1, 15], c = [1, 16], a = [1, 19], f = [1, 20], g = {
11
+ trace: /* @__PURE__ */ o(function() {
12
+ }, "trace"),
13
+ yy: {},
14
+ symbols_: { error: 2, start: 3, timeline_header: 4, document: 5, EOF: 6, timeline: 7, timeline_lr: 8, timeline_td: 9, line: 10, SPACE: 11, statement: 12, NEWLINE: 13, title: 14, acc_title: 15, acc_title_value: 16, acc_descr: 17, acc_descr_value: 18, acc_descr_multiline_value: 19, section: 20, period_statement: 21, event_statement: 22, period: 23, event: 24, $accept: 0, $end: 1 },
15
+ terminals_: { 2: "error", 6: "EOF", 7: "timeline", 8: "timeline_lr", 9: "timeline_td", 11: "SPACE", 13: "NEWLINE", 14: "title", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 23: "period", 24: "event" },
16
+ productions_: [0, [3, 3], [4, 1], [4, 1], [4, 1], [5, 0], [5, 2], [10, 2], [10, 1], [10, 1], [10, 1], [12, 1], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [21, 1], [22, 1]],
17
+ performAction: /* @__PURE__ */ o(function(s, d, l, p, x, u, S) {
18
+ var v = u.length - 1;
19
+ switch (x) {
20
+ case 1:
21
+ return u[v - 1];
22
+ case 3:
23
+ p.setDirection("LR");
24
+ break;
25
+ case 4:
26
+ p.setDirection("TD");
27
+ break;
28
+ case 5:
29
+ this.$ = [];
30
+ break;
31
+ case 6:
32
+ u[v - 1].push(u[v]), this.$ = u[v - 1];
33
+ break;
34
+ case 7:
35
+ case 8:
36
+ this.$ = u[v];
37
+ break;
38
+ case 9:
39
+ case 10:
40
+ this.$ = [];
41
+ break;
42
+ case 11:
43
+ p.getCommonDb().setDiagramTitle(u[v].substr(6)), this.$ = u[v].substr(6);
44
+ break;
45
+ case 12:
46
+ this.$ = u[v].trim(), p.getCommonDb().setAccTitle(this.$);
47
+ break;
48
+ case 13:
49
+ case 14:
50
+ this.$ = u[v].trim(), p.getCommonDb().setAccDescription(this.$);
51
+ break;
52
+ case 15:
53
+ p.addSection(u[v].substr(8)), this.$ = u[v].substr(8);
54
+ break;
55
+ case 18:
56
+ p.addTask(u[v], 0, ""), this.$ = u[v];
57
+ break;
58
+ case 19:
59
+ p.addEvent(u[v].substr(2)), this.$ = u[v];
60
+ break;
61
+ }
62
+ }, "anonymous"),
63
+ table: [{ 3: 1, 4: 2, 7: [1, 3], 8: [1, 4], 9: [1, 5] }, { 1: [3] }, e(t, [2, 5], { 5: 6 }), e(t, [2, 2]), e(t, [2, 3]), e(t, [2, 4]), { 6: [1, 7], 10: 8, 11: [1, 9], 12: 10, 13: [1, 11], 14: n, 15: i, 17: r, 19: h, 20: c, 21: 17, 22: 18, 23: a, 24: f }, e(t, [2, 10], { 1: [2, 1] }), e(t, [2, 6]), { 12: 21, 14: n, 15: i, 17: r, 19: h, 20: c, 21: 17, 22: 18, 23: a, 24: f }, e(t, [2, 8]), e(t, [2, 9]), e(t, [2, 11]), { 16: [1, 22] }, { 18: [1, 23] }, e(t, [2, 14]), e(t, [2, 15]), e(t, [2, 16]), e(t, [2, 17]), e(t, [2, 18]), e(t, [2, 19]), e(t, [2, 7]), e(t, [2, 12]), e(t, [2, 13])],
64
+ defaultActions: {},
65
+ parseError: /* @__PURE__ */ o(function(s, d) {
66
+ if (d.recoverable)
67
+ this.trace(s);
68
+ else {
69
+ var l = new Error(s);
70
+ throw l.hash = d, l;
71
+ }
72
+ }, "parseError"),
73
+ parse: /* @__PURE__ */ o(function(s) {
74
+ var d = this, l = [0], p = [], x = [null], u = [], S = this.table, v = "", I = 0, R = 0, W = 2, O = 1, L = u.slice.call(arguments, 1), w = Object.create(this.lexer), H = { yy: {} };
75
+ for (var V in this.yy)
76
+ Object.prototype.hasOwnProperty.call(this.yy, V) && (H.yy[V] = this.yy[V]);
77
+ w.setInput(s, H.yy), H.yy.lexer = w, H.yy.parser = this, typeof w.yylloc > "u" && (w.yylloc = {});
78
+ var F = w.yylloc;
79
+ u.push(F);
80
+ var U = w.options && w.options.ranges;
81
+ typeof H.yy.parseError == "function" ? this.parseError = H.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
82
+ function N(A) {
83
+ l.length = l.length - 2 * A, x.length = x.length - A, u.length = u.length - A;
84
+ }
85
+ o(N, "popStack");
86
+ function b() {
87
+ var A;
88
+ return A = p.pop() || w.lex() || O, typeof A != "number" && (A instanceof Array && (p = A, A = p.pop()), A = d.symbols_[A] || A), A;
89
+ }
90
+ o(b, "lex");
91
+ for (var _, $, T, P, C = {}, G, B, Z, j; ; ) {
92
+ if ($ = l[l.length - 1], this.defaultActions[$] ? T = this.defaultActions[$] : ((_ === null || typeof _ > "u") && (_ = b()), T = S[$] && S[$][_]), typeof T > "u" || !T.length || !T[0]) {
93
+ var Y = "";
94
+ j = [];
95
+ for (G in S[$])
96
+ this.terminals_[G] && G > W && j.push("'" + this.terminals_[G] + "'");
97
+ w.showPosition ? Y = "Parse error on line " + (I + 1) + `:
98
+ ` + w.showPosition() + `
99
+ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "Parse error on line " + (I + 1) + ": Unexpected " + (_ == O ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(Y, {
100
+ text: w.match,
101
+ token: this.terminals_[_] || _,
102
+ line: w.yylineno,
103
+ loc: F,
104
+ expected: j
105
+ });
106
+ }
107
+ if (T[0] instanceof Array && T.length > 1)
108
+ throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + _);
109
+ switch (T[0]) {
110
+ case 1:
111
+ l.push(_), x.push(w.yytext), u.push(w.yylloc), l.push(T[1]), _ = null, R = w.yyleng, v = w.yytext, I = w.yylineno, F = w.yylloc;
112
+ break;
113
+ case 2:
114
+ if (B = this.productions_[T[1]][1], C.$ = x[x.length - B], C._$ = {
115
+ first_line: u[u.length - (B || 1)].first_line,
116
+ last_line: u[u.length - 1].last_line,
117
+ first_column: u[u.length - (B || 1)].first_column,
118
+ last_column: u[u.length - 1].last_column
119
+ }, U && (C._$.range = [
120
+ u[u.length - (B || 1)].range[0],
121
+ u[u.length - 1].range[1]
122
+ ]), P = this.performAction.apply(C, [
123
+ v,
124
+ R,
125
+ I,
126
+ H.yy,
127
+ T[1],
128
+ x,
129
+ u
130
+ ].concat(L)), typeof P < "u")
131
+ return P;
132
+ B && (l = l.slice(0, -1 * B * 2), x = x.slice(0, -1 * B), u = u.slice(0, -1 * B)), l.push(this.productions_[T[1]][0]), x.push(C.$), u.push(C._$), Z = S[l[l.length - 2]][l[l.length - 1]], l.push(Z);
133
+ break;
134
+ case 3:
135
+ return !0;
136
+ }
137
+ }
138
+ return !0;
139
+ }, "parse")
140
+ }, m = /* @__PURE__ */ function() {
141
+ var k = {
142
+ EOF: 1,
143
+ parseError: /* @__PURE__ */ o(function(d, l) {
144
+ if (this.yy.parser)
145
+ this.yy.parser.parseError(d, l);
146
+ else
147
+ throw new Error(d);
148
+ }, "parseError"),
149
+ // resets the lexer, sets new input
150
+ setInput: /* @__PURE__ */ o(function(s, d) {
151
+ return this.yy = d || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
152
+ first_line: 1,
153
+ first_column: 0,
154
+ last_line: 1,
155
+ last_column: 0
156
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
157
+ }, "setInput"),
158
+ // consumes and returns one char from the input
159
+ input: /* @__PURE__ */ o(function() {
160
+ var s = this._input[0];
161
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
162
+ var d = s.match(/(?:\r\n?|\n).*/g);
163
+ return d ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
164
+ }, "input"),
165
+ // unshifts one char (or a string) into the input
166
+ unput: /* @__PURE__ */ o(function(s) {
167
+ var d = s.length, l = s.split(/(?:\r\n?|\n)/g);
168
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
169
+ var p = this.match.split(/(?:\r\n?|\n)/g);
170
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
171
+ var x = this.yylloc.range;
172
+ return this.yylloc = {
173
+ first_line: this.yylloc.first_line,
174
+ last_line: this.yylineno + 1,
175
+ first_column: this.yylloc.first_column,
176
+ last_column: l ? (l.length === p.length ? this.yylloc.first_column : 0) + p[p.length - l.length].length - l[0].length : this.yylloc.first_column - d
177
+ }, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
178
+ }, "unput"),
179
+ // When called from action, caches matched text and appends it on next action
180
+ more: /* @__PURE__ */ o(function() {
181
+ return this._more = !0, this;
182
+ }, "more"),
183
+ // 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.
184
+ reject: /* @__PURE__ */ o(function() {
185
+ if (this.options.backtrack_lexer)
186
+ this._backtrack = !0;
187
+ else
188
+ 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).
189
+ ` + this.showPosition(), {
190
+ text: "",
191
+ token: null,
192
+ line: this.yylineno
193
+ });
194
+ return this;
195
+ }, "reject"),
196
+ // retain first n characters of the match
197
+ less: /* @__PURE__ */ o(function(s) {
198
+ this.unput(this.match.slice(s));
199
+ }, "less"),
200
+ // displays already matched input, i.e. for error messages
201
+ pastInput: /* @__PURE__ */ o(function() {
202
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
203
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
204
+ }, "pastInput"),
205
+ // displays upcoming input, i.e. for error messages
206
+ upcomingInput: /* @__PURE__ */ o(function() {
207
+ var s = this.match;
208
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
209
+ }, "upcomingInput"),
210
+ // displays the character position where the lexing error occurred, i.e. for error messages
211
+ showPosition: /* @__PURE__ */ o(function() {
212
+ var s = this.pastInput(), d = new Array(s.length + 1).join("-");
213
+ return s + this.upcomingInput() + `
214
+ ` + d + "^";
215
+ }, "showPosition"),
216
+ // test the lexed token: return FALSE when not a match, otherwise return token
217
+ test_match: /* @__PURE__ */ o(function(s, d) {
218
+ var l, p, x;
219
+ if (this.options.backtrack_lexer && (x = {
220
+ yylineno: this.yylineno,
221
+ yylloc: {
222
+ first_line: this.yylloc.first_line,
223
+ last_line: this.last_line,
224
+ first_column: this.yylloc.first_column,
225
+ last_column: this.yylloc.last_column
226
+ },
227
+ yytext: this.yytext,
228
+ match: this.match,
229
+ matches: this.matches,
230
+ matched: this.matched,
231
+ yyleng: this.yyleng,
232
+ offset: this.offset,
233
+ _more: this._more,
234
+ _input: this._input,
235
+ yy: this.yy,
236
+ conditionStack: this.conditionStack.slice(0),
237
+ done: this.done
238
+ }, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), p = s[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
239
+ first_line: this.yylloc.last_line,
240
+ last_line: this.yylineno + 1,
241
+ first_column: this.yylloc.last_column,
242
+ last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
243
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], l = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
244
+ return l;
245
+ if (this._backtrack) {
246
+ for (var u in x)
247
+ this[u] = x[u];
248
+ return !1;
249
+ }
250
+ return !1;
251
+ }, "test_match"),
252
+ // return next match in input
253
+ next: /* @__PURE__ */ o(function() {
254
+ if (this.done)
255
+ return this.EOF;
256
+ this._input || (this.done = !0);
257
+ var s, d, l, p;
258
+ this._more || (this.yytext = "", this.match = "");
259
+ for (var x = this._currentRules(), u = 0; u < x.length; u++)
260
+ if (l = this._input.match(this.rules[x[u]]), l && (!d || l[0].length > d[0].length)) {
261
+ if (d = l, p = u, this.options.backtrack_lexer) {
262
+ if (s = this.test_match(l, x[u]), s !== !1)
263
+ return s;
264
+ if (this._backtrack) {
265
+ d = !1;
266
+ continue;
267
+ } else
268
+ return !1;
269
+ } else if (!this.options.flex)
270
+ break;
271
+ }
272
+ return d ? (s = this.test_match(d, x[p]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
273
+ ` + this.showPosition(), {
274
+ text: "",
275
+ token: null,
276
+ line: this.yylineno
277
+ });
278
+ }, "next"),
279
+ // return next match that has a token
280
+ lex: /* @__PURE__ */ o(function() {
281
+ var d = this.next();
282
+ return d || this.lex();
283
+ }, "lex"),
284
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
285
+ begin: /* @__PURE__ */ o(function(d) {
286
+ this.conditionStack.push(d);
287
+ }, "begin"),
288
+ // pop the previously active lexer condition state off the condition stack
289
+ popState: /* @__PURE__ */ o(function() {
290
+ var d = this.conditionStack.length - 1;
291
+ return d > 0 ? this.conditionStack.pop() : this.conditionStack[0];
292
+ }, "popState"),
293
+ // produce the lexer rule set which is active for the currently active lexer condition state
294
+ _currentRules: /* @__PURE__ */ o(function() {
295
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
296
+ }, "_currentRules"),
297
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
298
+ topState: /* @__PURE__ */ o(function(d) {
299
+ return d = this.conditionStack.length - 1 - Math.abs(d || 0), d >= 0 ? this.conditionStack[d] : "INITIAL";
300
+ }, "topState"),
301
+ // alias for begin(condition)
302
+ pushState: /* @__PURE__ */ o(function(d) {
303
+ this.begin(d);
304
+ }, "pushState"),
305
+ // return the number of states currently on the stack
306
+ stateStackSize: /* @__PURE__ */ o(function() {
307
+ return this.conditionStack.length;
308
+ }, "stateStackSize"),
309
+ options: { "case-insensitive": !0 },
310
+ performAction: /* @__PURE__ */ o(function(d, l, p, x) {
311
+ switch (p) {
312
+ case 0:
313
+ break;
314
+ case 1:
315
+ break;
316
+ case 2:
317
+ return 13;
318
+ case 3:
319
+ break;
320
+ case 4:
321
+ break;
322
+ case 5:
323
+ return 8;
324
+ case 6:
325
+ return 9;
326
+ case 7:
327
+ return 7;
328
+ case 8:
329
+ return 14;
330
+ case 9:
331
+ return this.begin("acc_title"), 15;
332
+ case 10:
333
+ return this.popState(), "acc_title_value";
334
+ case 11:
335
+ return this.begin("acc_descr"), 17;
336
+ case 12:
337
+ return this.popState(), "acc_descr_value";
338
+ case 13:
339
+ this.begin("acc_descr_multiline");
340
+ break;
341
+ case 14:
342
+ this.popState();
343
+ break;
344
+ case 15:
345
+ return "acc_descr_multiline_value";
346
+ case 16:
347
+ return 20;
348
+ case 17:
349
+ return 24;
350
+ case 18:
351
+ return 23;
352
+ case 19:
353
+ return 6;
354
+ case 20:
355
+ return "INVALID";
356
+ }
357
+ }, "anonymous"),
358
+ rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline[ \t]+LR\b)/i, /^(?:timeline[ \t]+TD\b)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
359
+ conditions: { acc_descr_multiline: { rules: [14, 15], inclusive: !1 }, acc_descr: { rules: [12], inclusive: !1 }, acc_title: { rules: [10], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 16, 17, 18, 19, 20], inclusive: !0 } }
360
+ };
361
+ return k;
362
+ }();
363
+ g.lexer = m;
364
+ function y() {
365
+ this.yy = {};
366
+ }
367
+ return o(y, "Parser"), y.prototype = g, g.Parser = y, new y();
368
+ }();
369
+ tt.parser = tt;
370
+ var Ot = tt, yt = {};
371
+ Vt(yt, {
372
+ addEvent: () => Tt,
373
+ addSection: () => _t,
374
+ addTask: () => Et,
375
+ addTaskOrg: () => $t,
376
+ clear: () => kt,
377
+ default: () => Gt,
378
+ getCommonDb: () => xt,
379
+ getDirection: () => bt,
380
+ getSections: () => wt,
381
+ getTasks: () => St,
382
+ setDirection: () => vt
383
+ });
384
+ var D = "", mt = 0, nt = "LR", rt = [], q = [], K = [], xt = /* @__PURE__ */ o(() => Ft, "getCommonDb"), kt = /* @__PURE__ */ o(function() {
385
+ rt.length = 0, q.length = 0, D = "", K.length = 0, nt = "LR", zt();
386
+ }, "clear"), vt = /* @__PURE__ */ o(function(e) {
387
+ nt = e;
388
+ }, "setDirection"), bt = /* @__PURE__ */ o(function() {
389
+ return nt;
390
+ }, "getDirection"), _t = /* @__PURE__ */ o(function(e) {
391
+ D = e, rt.push(e);
392
+ }, "addSection"), wt = /* @__PURE__ */ o(function() {
393
+ return rt;
394
+ }, "getSections"), St = /* @__PURE__ */ o(function() {
395
+ let e = ct();
396
+ const t = 100;
397
+ let n = 0;
398
+ for (; !e && n < t; )
399
+ e = ct(), n++;
400
+ return q.push(...K), q;
401
+ }, "getTasks"), Et = /* @__PURE__ */ o(function(e, t, n) {
402
+ const i = {
403
+ id: mt++,
404
+ section: D,
405
+ type: D,
406
+ task: e,
407
+ score: t || 0,
408
+ //if event is defined, then add it the events array
409
+ events: n ? [n] : []
410
+ };
411
+ K.push(i);
412
+ }, "addTask"), Tt = /* @__PURE__ */ o(function(e) {
413
+ K.find((n) => n.id === mt - 1).events.push(e);
414
+ }, "addEvent"), $t = /* @__PURE__ */ o(function(e) {
415
+ const t = {
416
+ section: D,
417
+ type: D,
418
+ description: e,
419
+ task: e,
420
+ classes: []
421
+ };
422
+ q.push(t);
423
+ }, "addTaskOrg"), ct = /* @__PURE__ */ o(function() {
424
+ const e = /* @__PURE__ */ o(function(n) {
425
+ return K[n].processed;
426
+ }, "compileTask");
427
+ let t = !0;
428
+ for (const [n, i] of K.entries())
429
+ e(n), t = t && i.processed;
430
+ return t;
431
+ }, "compileTasks"), Gt = {
432
+ clear: kt,
433
+ getCommonDb: xt,
434
+ getDirection: bt,
435
+ setDirection: vt,
436
+ addSection: _t,
437
+ getSections: wt,
438
+ getTasks: St,
439
+ addTask: Et,
440
+ addTaskOrg: $t,
441
+ addEvent: Tt
442
+ }, Nt = 0, J = /* @__PURE__ */ o(function(e, t) {
443
+ const n = e.append("rect");
444
+ return n.attr("x", t.x), n.attr("y", t.y), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("width", t.width), n.attr("height", t.height), n.attr("rx", t.rx), n.attr("ry", t.ry), t.class !== void 0 && n.attr("class", t.class), n;
445
+ }, "drawRect"), Dt = /* @__PURE__ */ o(function(e, t) {
446
+ const i = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = e.append("g");
447
+ r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
448
+ function h(f) {
449
+ const g = ot().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
450
+ f.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
451
+ }
452
+ o(h, "smile");
453
+ function c(f) {
454
+ const g = ot().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
455
+ f.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
456
+ }
457
+ o(c, "sad");
458
+ function a(f) {
459
+ f.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
460
+ }
461
+ return o(a, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : a(r), i;
462
+ }, "drawFace"), Kt = /* @__PURE__ */ o(function(e, t) {
463
+ const n = e.append("circle");
464
+ return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
465
+ }, "drawCircle"), It = /* @__PURE__ */ o(function(e, t) {
466
+ const n = t.text.replace(/<br\s*\/?>/gi, " "), i = e.append("text");
467
+ i.attr("x", t.x), i.attr("y", t.y), i.attr("class", "legend"), i.style("text-anchor", t.anchor), t.class !== void 0 && i.attr("class", t.class);
468
+ const r = i.append("tspan");
469
+ return r.attr("x", t.x + t.textMargin * 2), r.text(n), i;
470
+ }, "drawText"), Ut = /* @__PURE__ */ o(function(e, t) {
471
+ function n(r, h, c, a, f) {
472
+ return r + "," + h + " " + (r + c) + "," + h + " " + (r + c) + "," + (h + a - f) + " " + (r + c - f * 1.2) + "," + (h + a) + " " + r + "," + (h + a);
473
+ }
474
+ o(n, "genPoints");
475
+ const i = e.append("polygon");
476
+ i.attr("points", n(t.x, t.y, 50, 20, 7)), i.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, It(e, t);
477
+ }, "drawLabel"), Xt = /* @__PURE__ */ o(function(e, t, n) {
478
+ const i = e.append("g"), r = st();
479
+ r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = n.width, r.height = n.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, J(i, r), Ht(n)(
480
+ t.text,
481
+ i,
482
+ r.x,
483
+ r.y,
484
+ r.width,
485
+ r.height,
486
+ { class: "journey-section section-type-" + t.num },
487
+ n,
488
+ t.colour
489
+ );
490
+ }, "drawSection"), et = -1, Zt = /* @__PURE__ */ o(function(e, t, n, i) {
491
+ const r = t.x + n.width / 2, h = e.append("g");
492
+ et++, h.append("line").attr("id", i + "-task" + et).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Dt(h, {
493
+ cx: r,
494
+ cy: 300 + (5 - t.score) * 30,
495
+ score: t.score
496
+ });
497
+ const a = st();
498
+ a.x = t.x, a.y = t.y, a.fill = t.fill, a.width = n.width, a.height = n.height, a.class = "task task-type-" + t.num, a.rx = 3, a.ry = 3, J(h, a), Ht(n)(
499
+ t.task,
500
+ h,
501
+ a.x,
502
+ a.y,
503
+ a.width,
504
+ a.height,
505
+ { class: "task" },
506
+ n,
507
+ t.colour
508
+ );
509
+ }, "drawTask"), jt = /* @__PURE__ */ o(function(e, t) {
510
+ J(e, {
511
+ x: t.startx,
512
+ y: t.starty,
513
+ width: t.stopx - t.startx,
514
+ height: t.stopy - t.starty,
515
+ fill: t.fill,
516
+ class: "rect"
517
+ }).lower();
518
+ }, "drawBackgroundRect"), qt = /* @__PURE__ */ o(function() {
519
+ return {
520
+ x: 0,
521
+ y: 0,
522
+ fill: void 0,
523
+ "text-anchor": "start",
524
+ width: 100,
525
+ height: 100,
526
+ textMargin: 0,
527
+ rx: 0,
528
+ ry: 0
529
+ };
530
+ }, "getTextObj"), st = /* @__PURE__ */ o(function() {
531
+ return {
532
+ x: 0,
533
+ y: 0,
534
+ width: 100,
535
+ anchor: "start",
536
+ height: 100,
537
+ rx: 0,
538
+ ry: 0
539
+ };
540
+ }, "getNoteRect"), Ht = /* @__PURE__ */ function() {
541
+ function e(r, h, c, a, f, g, m, y) {
542
+ const k = h.append("text").attr("x", c + f / 2).attr("y", a + g / 2 + 5).style("font-color", y).style("text-anchor", "middle").text(r);
543
+ i(k, m);
544
+ }
545
+ o(e, "byText");
546
+ function t(r, h, c, a, f, g, m, y, k) {
547
+ const { taskFontSize: s, taskFontFamily: d } = y, l = r.split(/<br\s*\/?>/gi);
548
+ for (let p = 0; p < l.length; p++) {
549
+ const x = p * s - s * (l.length - 1) / 2, u = h.append("text").attr("x", c + f / 2).attr("y", a).attr("fill", k).style("text-anchor", "middle").style("font-size", s).style("font-family", d);
550
+ u.append("tspan").attr("x", c + f / 2).attr("dy", x).text(l[p]), u.attr("y", a + g / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(u, m);
551
+ }
552
+ }
553
+ o(t, "byTspan");
554
+ function n(r, h, c, a, f, g, m, y) {
555
+ const k = h.append("switch"), d = k.append("foreignObject").attr("x", c).attr("y", a).attr("width", f).attr("height", g).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
556
+ d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, k, c, a, f, g, m, y), i(d, m);
557
+ }
558
+ o(n, "byFo");
559
+ function i(r, h) {
560
+ for (const c in h)
561
+ c in h && r.attr(c, h[c]);
562
+ }
563
+ return o(i, "_setTextAttrs"), function(r) {
564
+ return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
565
+ };
566
+ }(), Jt = /* @__PURE__ */ o(function(e, t) {
567
+ Nt = 0, et = -1, e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
568
+ }, "initGraphics");
569
+ function it(e, t) {
570
+ e.each(function() {
571
+ var n = X(this), i = n.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, a = n.attr("y"), f = parseFloat(n.attr("dy")), g = n.text(null).append("tspan").attr("x", 0).attr("y", a).attr("dy", f + "em");
572
+ for (let m = 0; m < i.length; m++)
573
+ r = i[i.length - 1 - m], h.push(r), g.text(h.join(" ").trim()), (g.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), g.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], g = n.append("tspan").attr("x", 0).attr("y", a).attr("dy", c + "em").text(r));
574
+ });
575
+ }
576
+ o(it, "wrap");
577
+ var Qt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
578
+ const { theme: c, look: a } = i, f = c?.includes("redux"), g = i?.themeVariables?.THEME_COLOR_LIMIT ?? 12, m = n % g - 1, y = e.append("g");
579
+ t.section = m, y.attr(
580
+ "class",
581
+ (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + m)
582
+ );
583
+ const k = y.append("g"), s = y.append("g"), l = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(it, t.width).node().getBBox(), p = i.fontSize?.replace ? i.fontSize.replace("px", "") : i.fontSize;
584
+ if (t.height = l.height + p * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, s.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), f && s.attr(
585
+ "transform",
586
+ `translate(${t.width / 2}, ${h ? t.padding / 2 + 3 : t.padding})`
587
+ ), te(k, t, m, r, i), a === "neo" && (y.attr("data-look", "neo"), f)) {
588
+ const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S = X(u), v = S.attr("id") ?? "", I = v ? `${v}-drop-shadow` : "drop-shadow";
589
+ if (S.select(`#${I}`).empty()) {
590
+ const R = S.select("defs");
591
+ (R.empty() ? S.append("defs") : R).append("filter").attr("id", I).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", x ? "0.2" : "0.06").attr("flood-color", x ? "#FFFFFF" : "#000000");
592
+ }
593
+ }
594
+ return t;
595
+ }, "drawNode"), Yt = /* @__PURE__ */ o(function(e, t, n) {
596
+ const i = e.append("g"), h = i.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(it, t.width).node().getBBox(), c = n.fontSize?.replace ? n.fontSize.replace("px", "") : n.fontSize;
597
+ return i.remove(), h.height + c * 1.1 * 0.5 + t.padding;
598
+ }, "getVirtualNodeHeight"), te = /* @__PURE__ */ o(function(e, t, n, i, r) {
599
+ const { theme: h } = r, c = h?.includes("redux") ? 0 : 5, a = 5, f = c > 0 ? `M0 ${t.height - a} v${-t.height + 2 * a} q0,-${c},${c},-${c} h${t.width - 2 * a} q${c},0,${c},${c} v${t.height - a} H0 Z` : `M0 ${t.height - a} v${-(t.height - a)} h${t.width} v${t.height} H0 Z`;
600
+ e.append("path").attr("id", i + "-node-" + Nt++).attr("class", "node-bkg node-" + t.type).attr("d", f), h?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
601
+ }, "defaultBkg"), M = {
602
+ drawRect: J,
603
+ drawCircle: Kt,
604
+ drawSection: Xt,
605
+ drawText: It,
606
+ drawLabel: Ut,
607
+ drawTask: Zt,
608
+ drawBackgroundRect: jt,
609
+ getTextObj: qt,
610
+ getNoteRect: st,
611
+ initGraphics: Jt,
612
+ drawNode: Qt,
613
+ getVirtualNodeHeight: Yt
614
+ }, ee = /* @__PURE__ */ o(function(e, t, n, i) {
615
+ const r = gt(), { look: h, theme: c, themeVariables: a } = r, { useGradient: f, gradientStart: g, gradientStop: m } = a, y = r.timeline?.leftMargin ?? 50;
616
+ E.debug("timeline", i.db);
617
+ const k = r.securityLevel;
618
+ let s;
619
+ k === "sandbox" && (s = X("#i" + t));
620
+ const l = (k === "sandbox" ? X(s.nodes()[0].contentDocument.body) : X("body")).select("#" + t);
621
+ l.append("g");
622
+ const p = i.db.getTasks(), x = i.db.getCommonDb().getDiagramTitle();
623
+ E.debug("task", p), M.initGraphics(l, t);
624
+ const u = i.db.getSections();
625
+ E.debug("sections", u);
626
+ let S = 0, v = 0, I = 0, R = 0, W = 50 + y, O = 50;
627
+ R = 50;
628
+ let L = 0, w = !0;
629
+ u.forEach(function(N) {
630
+ const b = {
631
+ number: L,
632
+ descr: N,
633
+ section: L,
634
+ width: 150,
635
+ padding: 20,
636
+ maxHeight: S
637
+ }, _ = M.getVirtualNodeHeight(l, b, r);
638
+ E.debug("sectionHeight before draw", _), S = Math.max(S, _ + 20);
639
+ });
640
+ let H = 0, V = 0;
641
+ E.debug("tasks.length", p.length);
642
+ for (const [N, b] of p.entries()) {
643
+ const _ = {
644
+ number: N,
645
+ descr: b,
646
+ section: b.section,
647
+ width: 150,
648
+ padding: 20,
649
+ maxHeight: v
650
+ }, $ = M.getVirtualNodeHeight(l, _, r);
651
+ E.debug("taskHeight before draw", $), v = Math.max(v, $ + 20), H = Math.max(H, b.events.length);
652
+ let T = 0;
653
+ for (const P of b.events) {
654
+ const C = {
655
+ descr: P,
656
+ section: b.section,
657
+ number: b.section,
658
+ width: 150,
659
+ padding: 20,
660
+ maxHeight: 50
661
+ };
662
+ T += M.getVirtualNodeHeight(l, C, r);
663
+ }
664
+ b.events.length > 0 && (T += (b.events.length - 1) * 10), V = Math.max(V, T);
665
+ }
666
+ E.debug("maxSectionHeight before draw", S), E.debug("maxTaskHeight before draw", v), u && u.length > 0 ? u.forEach((N) => {
667
+ const b = p.filter((P) => P.section === N), _ = {
668
+ number: L,
669
+ descr: N,
670
+ section: L,
671
+ width: 200 * Math.max(b.length, 1) - 50,
672
+ padding: 20,
673
+ maxHeight: S
674
+ };
675
+ E.debug("sectionNode", _);
676
+ const $ = l.append("g"), T = M.drawNode($, _, L, r, t);
677
+ E.debug("sectionNode output", T), $.attr("transform", `translate(${W}, ${R})`), O += S + 50, b.length > 0 && lt(
678
+ l,
679
+ b,
680
+ L,
681
+ W,
682
+ O,
683
+ v,
684
+ r,
685
+ H,
686
+ V,
687
+ S,
688
+ !1,
689
+ t
690
+ ), W += 200 * Math.max(b.length, 1), O = R, L++;
691
+ }) : (w = !1, lt(
692
+ l,
693
+ p,
694
+ L,
695
+ W,
696
+ O,
697
+ v,
698
+ r,
699
+ H,
700
+ V,
701
+ S,
702
+ !0,
703
+ t
704
+ ));
705
+ const F = l.node().getBBox();
706
+ if (E.debug("bounds", F), x && l.append("text").text(x).attr("x", h === "neo" ? F.x * 2 + y : F.width / 2 - y).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), I = w ? S + v + 150 : v + 100, l.append("g").attr("class", "lineWrapper").append("line").attr("x1", y).attr("y1", I).attr("x2", F.width + 3 * y).attr("y2", I).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), h === "neo" && f && c !== "neutral") {
707
+ const N = l.select("defs"), _ = (N.empty() ? l.append("defs") : N).append("linearGradient").attr("id", l.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
708
+ _.append("stop").attr("offset", "0%").attr("stop-color", g).attr("stop-opacity", 1), _.append("stop").attr("offset", "100%").attr("stop-color", m).attr("stop-opacity", 1);
709
+ }
710
+ ft(
711
+ void 0,
712
+ l,
713
+ r.timeline?.padding ?? 50,
714
+ r.timeline?.useMaxWidth ?? !1
715
+ );
716
+ }, "draw"), lt = /* @__PURE__ */ o(function(e, t, n, i, r, h, c, a, f, g, m, y) {
717
+ for (const k of t) {
718
+ const s = {
719
+ descr: k.task,
720
+ section: n,
721
+ number: n,
722
+ width: 150,
723
+ padding: 20,
724
+ maxHeight: h
725
+ };
726
+ E.debug("taskNode", s);
727
+ const d = e.append("g").attr("class", "taskWrapper"), p = M.drawNode(d, s, n, c, y).height;
728
+ if (E.debug("taskHeight after draw", p), d.attr("transform", `translate(${i}, ${r})`), h = Math.max(h, p), k.events) {
729
+ const x = e.append("g").attr("class", "lineWrapper");
730
+ let u = h;
731
+ r += 100, u = u + ne(e, k.events, n, i, r, c, y), r -= 100, x.append("line").attr("x1", i + 190 / 2).attr("y1", r + h).attr("x2", i + 190 / 2).attr("y2", r + h + 100 + f + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${y}-arrowhead)`).attr("stroke-dasharray", "5,5");
732
+ }
733
+ i = i + 200, m && !c.timeline?.disableMulticolor && n++;
734
+ }
735
+ r = r - 10;
736
+ }, "drawTasks"), ne = /* @__PURE__ */ o(function(e, t, n, i, r, h, c) {
737
+ let a = 0;
738
+ const f = r;
739
+ r = r + 100;
740
+ for (const g of t) {
741
+ const m = {
742
+ descr: g,
743
+ section: n,
744
+ number: n,
745
+ width: 150,
746
+ padding: 20,
747
+ maxHeight: 50
748
+ };
749
+ E.debug("eventNode", m);
750
+ const y = e.append("g").attr("class", "eventWrapper"), s = M.drawNode(y, m, n, h, c, !0).height;
751
+ a = a + s, y.attr("transform", `translate(${i}, ${r})`), r = r + 10 + s;
752
+ }
753
+ return r = f, a;
754
+ }, "drawEvents"), re = {
755
+ setConf: /* @__PURE__ */ o(() => {
756
+ }, "setConf"),
757
+ draw: ee
758
+ }, Q = 200, z = 5, se = Q + z * 2, at = Q + 100, ie = at + z * 2, Lt = 10, ae = 0, ht = 20, Mt = 20, dt = 30, At = 50, oe = /* @__PURE__ */ o(function(e, t, n, i) {
759
+ const r = gt(), h = r.timeline?.leftMargin ?? 50;
760
+ E.debug("timeline", i.db);
761
+ const c = Pt(t);
762
+ c.append("g");
763
+ const a = i.db.getTasks(), f = i.db.getCommonDb().getDiagramTitle();
764
+ E.debug("task", a), M.initGraphics(c);
765
+ const g = i.db.getSections();
766
+ E.debug("sections", g);
767
+ let m = 0, y = 0;
768
+ const k = 50 + h;
769
+ let s = 50;
770
+ const d = s, l = k, p = se + Mt, x = ie + At, u = l + p;
771
+ let S = 0;
772
+ const v = g && g.length > 0, I = v ? u : k + p, R = Math.max(50, p + x - z * 2);
773
+ g.forEach(function(N) {
774
+ const b = {
775
+ number: S,
776
+ descr: N,
777
+ section: S,
778
+ width: R,
779
+ padding: z,
780
+ maxHeight: m
781
+ }, _ = M.getVirtualNodeHeight(c, b, r);
782
+ E.debug("sectionHeight before draw", _), m = Math.max(m, _);
783
+ });
784
+ let W = 0;
785
+ E.debug("tasks.length", a.length);
786
+ for (const [N, b] of a.entries()) {
787
+ const _ = {
788
+ number: N,
789
+ descr: b,
790
+ section: b.section,
791
+ width: Q,
792
+ padding: z,
793
+ maxHeight: y
794
+ }, $ = M.getVirtualNodeHeight(c, _, r);
795
+ E.debug("taskHeight before draw", $), y = Math.max(y, $);
796
+ let T = 0;
797
+ for (const P of b.events) {
798
+ const C = {
799
+ descr: P,
800
+ section: b.section,
801
+ number: b.section,
802
+ width: at,
803
+ padding: z,
804
+ maxHeight: 50
805
+ };
806
+ T += M.getVirtualNodeHeight(c, C, r);
807
+ }
808
+ b.events.length > 0 && (T += (b.events.length - 1) * Lt), W = Math.max(W, T) + ae;
809
+ }
810
+ E.debug("maxSectionHeight before draw", m), E.debug("maxTaskHeight before draw", y);
811
+ const L = Math.max(y, W) + dt;
812
+ v ? g.forEach((N) => {
813
+ const b = a.filter((Z) => Z.section === N), _ = {
814
+ number: S,
815
+ descr: N,
816
+ section: S,
817
+ width: R,
818
+ padding: z,
819
+ maxHeight: m
820
+ };
821
+ E.debug("sectionNode", _);
822
+ const $ = c.append("g"), T = M.drawNode($, _, S, r);
823
+ E.debug("sectionNode output", T);
824
+ const P = I - p;
825
+ $.attr("transform", `translate(${P}, ${s})`);
826
+ const C = s + T.height + ht;
827
+ b.length > 0 && ut(
828
+ c,
829
+ b,
830
+ S,
831
+ I,
832
+ C,
833
+ y,
834
+ r,
835
+ L,
836
+ !1
837
+ );
838
+ const G = b.length, B = T.height + ht + L * Math.max(G, 1) - (G > 0 ? dt * 2 : 0);
839
+ s += B, S++;
840
+ }) : ut(
841
+ c,
842
+ a,
843
+ S,
844
+ I,
845
+ s,
846
+ y,
847
+ r,
848
+ L,
849
+ !0
850
+ );
851
+ let w = c.node()?.getBBox();
852
+ if (!w)
853
+ throw new Error("bbox not found");
854
+ if (E.debug("bounds", w), f) {
855
+ if (c.append("text").text(f).attr("x", w.width / 2 - h).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), w = c.node()?.getBBox(), !w)
856
+ throw new Error("bbox not found");
857
+ E.debug("bounds after title", w);
858
+ }
859
+ const [H] = Bt(r.fontSize), V = (H ?? 16) * 2, F = (H ?? 16) * 0.5 + 20, U = c.append("g").attr("class", "lineWrapper");
860
+ U.append("line").attr("x1", I).attr("y1", d - V).attr("x2", I).attr("y2", w.y + w.height + F).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), U.lower(), ft(
861
+ void 0,
862
+ c,
863
+ r.timeline?.padding ?? 50,
864
+ r.timeline?.useMaxWidth ?? !1
865
+ );
866
+ }, "draw"), ut = /* @__PURE__ */ o(function(e, t, n, i, r, h, c, a, f) {
867
+ for (const g of t) {
868
+ const m = {
869
+ descr: g.task,
870
+ section: n,
871
+ number: n,
872
+ width: Q,
873
+ padding: z,
874
+ maxHeight: h
875
+ };
876
+ E.debug("taskNode", m);
877
+ const y = e.append("g").attr("class", "taskWrapper"), k = M.drawNode(y, m, n, c), s = k.height;
878
+ E.debug("taskHeight after draw", s);
879
+ const d = i - Mt - k.width;
880
+ if (y.attr("transform", `translate(${d}, ${r})`), h = Math.max(h, s), g.events && g.events.length > 0) {
881
+ const l = r, p = i + At;
882
+ ce(e, g.events, n, i, p, l, c);
883
+ }
884
+ r = r + a, f && !c.timeline?.disableMulticolor && n++;
885
+ }
886
+ }, "drawTasks"), ce = /* @__PURE__ */ o(function(e, t, n, i, r, h, c) {
887
+ let a = h;
888
+ for (const f of t) {
889
+ const g = {
890
+ descr: f,
891
+ section: n,
892
+ number: n,
893
+ width: at,
894
+ padding: z,
895
+ maxHeight: 0
896
+ };
897
+ E.debug("eventNode", g);
898
+ const m = e.append("g").attr("class", "eventWrapper"), k = M.drawNode(m, g, n, c).height;
899
+ m.attr("transform", `translate(${r}, ${a})`);
900
+ const s = e.append("g").attr("class", "lineWrapper"), d = a + k / 2;
901
+ s.append("line").attr("x1", i).attr("y1", d).attr("x2", r).attr("y2", d).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), a = a + k + Lt;
902
+ }
903
+ return a - h;
904
+ }, "drawEvents"), le = {
905
+ setConf: /* @__PURE__ */ o(() => {
906
+ }, "setConf"),
907
+ draw: oe
908
+ }, he = /* @__PURE__ */ o((e) => {
909
+ const { theme: t } = pt(), n = t?.includes("dark"), i = t?.includes("color"), r = e.svgId?.replace(/^#/, "") ?? "", h = r ? `url(#${r}-drop-shadow)` : e.dropShadow ?? "none";
910
+ let c = "";
911
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) {
912
+ const f = `${17 - 3 * a}`, g = i ? e.borderColorArray[a] : e.mainBkg, m = i ? e.borderColorArray[a] : e.nodeBorder;
913
+ c += `
914
+ .section-${a - 1} rect,
915
+ .section-${a - 1} path,
916
+ .section-${a - 1} circle {
917
+ fill: ${n && i ? e.mainBkg : g};
918
+ stroke: ${m};
919
+ stroke-width: ${e.strokeWidth};
920
+ filter: ${h};
921
+ }
922
+
923
+ .section-${a - 1} text {
924
+ fill: ${e.nodeBorder};
925
+ font-weight: ${e.fontWeight}
926
+ }
927
+
928
+ .node-icon-${a - 1} {
929
+ font-size: 40px;
930
+ color: ${e["cScaleLabel" + a]};
931
+ }
932
+
933
+ .section-edge-${a - 1} {
934
+ stroke: ${e["cScale" + a]};
935
+ }
936
+
937
+ .edge-depth-${a - 1} {
938
+ stroke-width: ${f};
939
+ }
940
+
941
+ .section-${a - 1} line {
942
+ stroke: ${e["cScaleInv" + a]};
943
+ stroke-width: 3;
944
+ }
945
+
946
+ .lineWrapper line {
947
+ stroke: ${e.nodeBorder};
948
+ stroke-width:${e.strokeWidth}
949
+ }
950
+
951
+ .disabled,
952
+ .disabled circle,
953
+ .disabled text {
954
+ fill: ${e.tertiaryColor ?? "lightgray"};
955
+ }
956
+
957
+ .disabled text {
958
+ fill: ${e.clusterBorder ?? "#efefef"};
959
+ }
960
+ `;
961
+ }
962
+ return c;
963
+ }, "genReduxSections"), de = /* @__PURE__ */ o((e) => {
964
+ let t = "";
965
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++)
966
+ e["lineColor" + n] = e["lineColor" + n] || e["cScaleInv" + n], Rt(e["lineColor" + n]) ? e["lineColor" + n] = Ct(e["lineColor" + n], 20) : e["lineColor" + n] = Wt(e["lineColor" + n], 20);
967
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) {
968
+ const i = "" + (17 - 3 * n);
969
+ t += `
970
+ .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} path {
971
+ fill: ${e["cScale" + n]};
972
+ }
973
+ .section-${n - 1} text {
974
+ fill: ${e["cScaleLabel" + n]};
975
+ }
976
+ .node-icon-${n - 1} {
977
+ font-size: 40px;
978
+ color: ${e["cScaleLabel" + n]};
979
+ }
980
+ .section-edge-${n - 1}{
981
+ stroke: ${e["cScale" + n]};
982
+ }
983
+ .edge-depth-${n - 1}{
984
+ stroke-width: ${i};
985
+ }
986
+ .section-${n - 1} line {
987
+ stroke: ${e["cScaleInv" + n]} ;
988
+ stroke-width: 3;
989
+ }
990
+
991
+ .lineWrapper line{
992
+ stroke: ${e["cScaleLabel" + n]} ;
993
+ }
994
+
995
+ .disabled, .disabled circle, .disabled text {
996
+ fill: ${e.tertiaryColor ?? "lightgray"};
997
+ }
998
+ .disabled text {
999
+ fill: ${e.clusterBorder ?? "#efefef"};
1000
+ }
1001
+ `;
1002
+ }
1003
+ return t;
1004
+ }, "genSections"), ue = /* @__PURE__ */ o((e) => {
1005
+ const { theme: t } = pt(), n = t?.includes("redux"), i = t === "neutral", r = e.svgId?.replace(/^#/, "") ?? "";
1006
+ let h = "";
1007
+ if (e.useGradient && r && e.THEME_COLOR_LIMIT && !i)
1008
+ for (let c = 0; c < e.THEME_COLOR_LIMIT; c++)
1009
+ h += `
1010
+ .section-${c - 1}[data-look="neo"] rect,
1011
+ .section-${c - 1}[data-look="neo"] path,
1012
+ .section-${c - 1}[data-look="neo"] circle {
1013
+ fill: ${e.mainBkg};
1014
+ stroke: url(#${r}-gradient);
1015
+ stroke-width: 2;
1016
+ }
1017
+ .section-${c - 1}[data-look="neo"] line {
1018
+ stroke: url(#${r}-gradient);
1019
+ stroke-width: 2;
1020
+ }`;
1021
+ return `
1022
+ .edge {
1023
+ stroke-width: 3;
1024
+ }
1025
+ ${n ? he(e) : de(e)}
1026
+ ${h}
1027
+ .section-root rect, .section-root path, .section-root circle {
1028
+ fill: ${e.git0};
1029
+ }
1030
+ .section-root text {
1031
+ fill: ${e.gitBranchLabel0};
1032
+ }
1033
+ .icon-container {
1034
+ height:100%;
1035
+ display: flex;
1036
+ justify-content: center;
1037
+ align-items: center;
1038
+ }
1039
+ .edge {
1040
+ fill: none;
1041
+ }
1042
+ .eventWrapper {
1043
+ filter: brightness(120%);
1044
+ }
1045
+ `;
1046
+ }, "getStyles"), pe = ue, ge = {
1047
+ setConf: /* @__PURE__ */ o(() => {
1048
+ }, "setConf"),
1049
+ draw: /* @__PURE__ */ o((e, t, n, i) => (i?.db?.getDirection?.() ?? "LR") === "TD" ? le.draw(e, t, n, i) : re.draw(e, t, n, i), "draw")
1050
+ }, ve = {
1051
+ db: yt,
1052
+ renderer: ge,
1053
+ parser: Ot,
1054
+ styles: pe
1055
+ };
1056
+ export {
1057
+ ve as diagram
1058
+ };