@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,316 @@
1
+ import { p as de } from "./chunk-JWPE2WC7.BV0i4LDu.js";
2
+ import { _ as m, F as he, y as Y, A as O, E as me, d as ue, l as X, a5 as L, b as fe, a as ye, n as ge, o as Se, g as xe, s as be, B as ve, a6 as Ce, p as we } from "./mermaid.core.Dspbw7Ig.js";
3
+ import { s as Te } from "./chunk-VR4S4FIN.BpryBs7q.js";
4
+ import { p as $e } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
5
+ import "./index.CrhRU5m8.js";
6
+ import "./transform.BuqENXeT.js";
7
+ import { f as V } from "./defaultLocale.CPy_WVtp.js";
8
+ import { o as G } from "./ordinal.bqVaUip-.js";
9
+ import { h as Le } from "./index.CZJTjkLp.js";
10
+ import { t as Fe } from "./index.thKLME8E.js";
11
+ import { s as H } from "./select.C6_sM3Pr.js";
12
+ var N, te = (N = class {
13
+ constructor() {
14
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = fe, this.getAccTitle = ye, this.setDiagramTitle = ge, this.getDiagramTitle = Se, this.getAccDescription = xe, this.setAccDescription = be;
15
+ }
16
+ getNodes() {
17
+ return this.nodes;
18
+ }
19
+ getConfig() {
20
+ const l = ve, i = Y();
21
+ return O({
22
+ ...l.treemap,
23
+ ...i.treemap ?? {}
24
+ });
25
+ }
26
+ addNode(l, i) {
27
+ this.nodes.push(l), this.levels.set(l, i), i === 0 && (this.outerNodes.push(l), this.root ??= l);
28
+ }
29
+ getRoot() {
30
+ return { name: "", children: this.outerNodes };
31
+ }
32
+ addClass(l, i) {
33
+ const r = this.classes.get(l) ?? { id: l, styles: [], textStyles: [] }, o = i.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
34
+ o && o.forEach((s) => {
35
+ Ce(s) && (r?.textStyles ? r.textStyles.push(s) : r.textStyles = [s]), r?.styles ? r.styles.push(s) : r.styles = [s];
36
+ }), this.classes.set(l, r);
37
+ }
38
+ getClasses() {
39
+ return this.classes;
40
+ }
41
+ getStylesForClass(l) {
42
+ return this.classes.get(l)?.styles ?? [];
43
+ }
44
+ clear() {
45
+ we(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
46
+ }
47
+ }, m(N, "TreeMapDB"), N);
48
+ function ae(p) {
49
+ if (!p.length)
50
+ return [];
51
+ const l = [], i = [];
52
+ return p.forEach((r) => {
53
+ const o = {
54
+ name: r.name,
55
+ children: r.type === "Leaf" ? void 0 : []
56
+ };
57
+ for (o.classSelector = r?.classSelector, r?.cssCompiledStyles && (o.cssCompiledStyles = r.cssCompiledStyles), r.type === "Leaf" && r.value !== void 0 && (o.value = r.value); i.length > 0 && i[i.length - 1].level >= r.level; )
58
+ i.pop();
59
+ if (i.length === 0)
60
+ l.push(o);
61
+ else {
62
+ const s = i[i.length - 1].node;
63
+ s.children ? s.children.push(o) : s.children = [o];
64
+ }
65
+ r.type !== "Leaf" && i.push({ node: o, level: r.level });
66
+ }), l;
67
+ }
68
+ m(ae, "buildHierarchy");
69
+ var Ne = /* @__PURE__ */ m((p, l) => {
70
+ de(p, l);
71
+ const i = [];
72
+ for (const s of p.TreemapRows ?? [])
73
+ s.$type === "ClassDefStatement" && l.addClass(s.className ?? "", s.styleText ?? "");
74
+ for (const s of p.TreemapRows ?? []) {
75
+ const d = s.item;
76
+ if (!d)
77
+ continue;
78
+ const h = s.indent ? parseInt(s.indent) : 0, k = ze(d), a = d.classSelector ? l.getStylesForClass(d.classSelector) : [], z = a.length > 0 ? a : void 0, x = {
79
+ level: h,
80
+ name: k,
81
+ type: d.$type,
82
+ value: d.value,
83
+ classSelector: d.classSelector,
84
+ cssCompiledStyles: z
85
+ };
86
+ i.push(x);
87
+ }
88
+ const r = ae(i), o = /* @__PURE__ */ m((s, d) => {
89
+ for (const h of s)
90
+ l.addNode(h, d), h.children && h.children.length > 0 && o(h.children, d + 1);
91
+ }, "addNodesRecursively");
92
+ o(r, 0);
93
+ }, "populate"), ze = /* @__PURE__ */ m((p) => p.name ? String(p.name) : "", "getItemName"), le = {
94
+ // @ts-expect-error - TreeMapDB is not assignable to DiagramDB
95
+ parser: { yy: void 0 },
96
+ parse: /* @__PURE__ */ m(async (p) => {
97
+ try {
98
+ const i = await $e("treemap", p);
99
+ X.debug("Treemap AST:", i);
100
+ const r = le.parser?.yy;
101
+ if (!(r instanceof te))
102
+ throw new Error(
103
+ "parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
104
+ );
105
+ Ne(i, r);
106
+ } catch (l) {
107
+ throw X.error("Error parsing treemap:", l), l;
108
+ }
109
+ }, "parse")
110
+ }, Ae = 10, F = 10, M = 25, Pe = /* @__PURE__ */ m((p, l, i, r) => {
111
+ const o = r.db, s = o.getConfig(), d = s.padding ?? Ae, h = o.getDiagramTitle(), k = o.getRoot(), { themeVariables: a } = Y();
112
+ if (!k)
113
+ return;
114
+ const z = h ? 30 : 0, x = me(l), j = s.nodeWidth ? s.nodeWidth * F : 960, U = s.nodeHeight ? s.nodeHeight * F : 500, R = j, q = U + z;
115
+ x.attr("viewBox", `0 0 ${R} ${q}`), ue(x, q, R, s.useMaxWidth);
116
+ let b;
117
+ try {
118
+ const e = s.valueFormat || ",";
119
+ if (e === "$0,0")
120
+ b = /* @__PURE__ */ m((t) => "$" + V(",")(t), "valueFormat");
121
+ else if (e.startsWith("$") && e.includes(",")) {
122
+ const t = /\.\d+/.exec(e), n = t ? t[0] : "";
123
+ b = /* @__PURE__ */ m((u) => "$" + V("," + n)(u), "valueFormat");
124
+ } else if (e.startsWith("$")) {
125
+ const t = e.substring(1);
126
+ b = /* @__PURE__ */ m((n) => "$" + V(t || "")(n), "valueFormat");
127
+ } else
128
+ b = V(e);
129
+ } catch (e) {
130
+ X.error("Error creating format function:", e), b = V(",");
131
+ }
132
+ const A = G().range([
133
+ "transparent",
134
+ a.cScale0,
135
+ a.cScale1,
136
+ a.cScale2,
137
+ a.cScale3,
138
+ a.cScale4,
139
+ a.cScale5,
140
+ a.cScale6,
141
+ a.cScale7,
142
+ a.cScale8,
143
+ a.cScale9,
144
+ a.cScale10,
145
+ a.cScale11
146
+ ]), se = G().range([
147
+ "transparent",
148
+ a.cScalePeer0,
149
+ a.cScalePeer1,
150
+ a.cScalePeer2,
151
+ a.cScalePeer3,
152
+ a.cScalePeer4,
153
+ a.cScalePeer5,
154
+ a.cScalePeer6,
155
+ a.cScalePeer7,
156
+ a.cScalePeer8,
157
+ a.cScalePeer9,
158
+ a.cScalePeer10,
159
+ a.cScalePeer11
160
+ ]), E = G().range([
161
+ a.cScaleLabel0,
162
+ a.cScaleLabel1,
163
+ a.cScaleLabel2,
164
+ a.cScaleLabel3,
165
+ a.cScaleLabel4,
166
+ a.cScaleLabel5,
167
+ a.cScaleLabel6,
168
+ a.cScaleLabel7,
169
+ a.cScaleLabel8,
170
+ a.cScaleLabel9,
171
+ a.cScaleLabel10,
172
+ a.cScaleLabel11
173
+ ]);
174
+ h && x.append("text").attr("x", R / 2).attr("y", z / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
175
+ const J = x.append("g").attr("transform", `translate(0, ${z})`).attr("class", "treemapContainer"), re = Le(k).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), K = Fe().size([j, U]).paddingTop(
176
+ (e) => e.children && e.children.length > 0 ? M + F : 0
177
+ ).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? F : 0).paddingRight((e) => e.children && e.children.length > 0 ? F : 0).paddingBottom((e) => e.children && e.children.length > 0 ? F : 0).round(!0)(re), oe = K.descendants().filter((e) => e.children && e.children.length > 0), P = J.selectAll(".treemapSection").data(oe).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
178
+ P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", M).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${l}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", M), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => A(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => se(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
179
+ if (e.depth === 0)
180
+ return "display: none;";
181
+ const t = L({ cssCompiledStyles: e.data.cssCompiledStyles });
182
+ return t.nodeStyles + ";" + t.borderStyles.join(";");
183
+ }), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", M / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, t) => `url(#clip-section-${l}-${t})`).attr("style", (e) => {
184
+ if (e.depth === 0)
185
+ return "display: none;";
186
+ const t = "dominant-baseline: middle; font-size: 12px; fill:" + E(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", n = L({ cssCompiledStyles: e.data.cssCompiledStyles });
187
+ return t + n.labelStyles.replace("color:", "fill:");
188
+ }).each(function(e) {
189
+ if (e.depth === 0)
190
+ return;
191
+ const t = H(this), n = e.data.name;
192
+ t.text(n);
193
+ const u = e.x1 - e.x0, y = 6;
194
+ let f;
195
+ s.showValues !== !1 && e.value ? f = u - 10 - 30 - 10 - y : f = u - y - 6;
196
+ const c = Math.max(15, f), v = t.node();
197
+ if (v.getComputedTextLength() > c) {
198
+ let w = n;
199
+ for (; w.length > 0; ) {
200
+ if (w = n.substring(0, w.length - 1), w.length === 0) {
201
+ t.text("..."), v.getComputedTextLength() > c && t.text("");
202
+ break;
203
+ }
204
+ if (t.text(w + "..."), v.getComputedTextLength() <= c)
205
+ break;
206
+ }
207
+ }
208
+ }), s.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", M / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? b(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
209
+ if (e.depth === 0)
210
+ return "display: none;";
211
+ const t = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + E(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", n = L({ cssCompiledStyles: e.data.cssCompiledStyles });
212
+ return t + n.labelStyles.replace("color:", "fill:");
213
+ });
214
+ const Q = K.leaves(), g = Q.length > 20, ne = g ? 16 : 38, W = g ? 14 : 28, T = g ? 4 : 8, D = g ? 4 : 6, B = g ? 2 : 4, Z = g ? 8 : 10, I = g ? 1 : 2, _ = J.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
215
+ _.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? A(e.parent.data.name) : A(e.data.name)).attr("style", (e) => L({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? A(e.parent.data.name) : A(e.data.name)).attr("stroke-width", 3), _.append("clipPath").attr("id", (e, t) => `clip-${l}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), _.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
216
+ const t = `text-anchor: middle; dominant-baseline: middle; font-size: ${ne}px;fill:` + E(e.data.name) + ";", n = L({ cssCompiledStyles: e.data.cssCompiledStyles });
217
+ return t + n.labelStyles.replace("color:", "fill:");
218
+ }).attr("clip-path", (e, t) => `url(#clip-${l}-${t})`).text((e) => e.data.name).each(function(e) {
219
+ const t = H(this), n = e.x1 - e.x0, u = e.y1 - e.y0, y = t.node(), f = n - 2 * B, $ = u - 2 * B;
220
+ if (f < Z || $ < Z) {
221
+ t.style("display", "none");
222
+ return;
223
+ }
224
+ let c = parseInt(t.style("font-size"), 10);
225
+ const v = 0.6;
226
+ for (; y.getComputedTextLength() > f && c > T; )
227
+ c--, t.style("font-size", `${c}px`);
228
+ let S = Math.max(
229
+ D,
230
+ Math.min(W, Math.round(c * v))
231
+ ), C = c + I + S;
232
+ for (; C > $ && c > T && (c--, S = Math.max(
233
+ D,
234
+ Math.min(W, Math.round(c * v))
235
+ ), !(S < D && c === T)); )
236
+ t.style("font-size", `${c}px`), C = c + I + S;
237
+ t.style("font-size", `${c}px`), g ? (c < T || $ < T) && t.style("display", "none") : (y.getComputedTextLength() > f || c < T || $ < c) && t.style("display", "none");
238
+ }), s.showValues !== !1 && _.append("text").attr("class", "treemapValue").attr("x", (t) => (t.x1 - t.x0) / 2).attr("y", function(t) {
239
+ return (t.y1 - t.y0) / 2;
240
+ }).attr("style", (t) => {
241
+ const n = `text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:` + E(t.data.name) + ";", u = L({ cssCompiledStyles: t.data.cssCompiledStyles });
242
+ return n + u.labelStyles.replace("color:", "fill:");
243
+ }).attr("clip-path", (t, n) => `url(#clip-${l}-${n})`).text((t) => t.value ? b(t.value) : "").each(function(t) {
244
+ const n = H(this), u = this.parentNode;
245
+ if (!u) {
246
+ n.style("display", "none");
247
+ return;
248
+ }
249
+ const y = H(u).select(".treemapLabel");
250
+ if (y.empty() || y.style("display") === "none") {
251
+ n.style("display", "none");
252
+ return;
253
+ }
254
+ const f = parseFloat(y.style("font-size")), c = Math.max(
255
+ D,
256
+ Math.min(W, Math.round(f * 0.6))
257
+ );
258
+ n.style("font-size", `${c}px`);
259
+ const S = (t.y1 - t.y0) / 2 + f / 2 + I;
260
+ n.attr("y", S);
261
+ const C = t.x1 - t.x0, ee = t.y1 - t.y0 - 4, pe = C - 2 * B;
262
+ n.node().getComputedTextLength() > pe || S + c > ee || c < D ? n.style("display", "none") : n.style("display", null);
263
+ });
264
+ const ie = s.diagramPadding ?? 8;
265
+ Te(x, ie, "flowchart", s?.useMaxWidth || !1);
266
+ }, "draw"), De = /* @__PURE__ */ m(function(p, l) {
267
+ return l.db.getClasses();
268
+ }, "getClasses"), Ve = { draw: Pe, getClasses: De }, Me = {
269
+ sectionStrokeColor: "black",
270
+ sectionStrokeWidth: "1",
271
+ sectionFillColor: "#efefef",
272
+ leafStrokeColor: "black",
273
+ leafStrokeWidth: "1",
274
+ leafFillColor: "#efefef",
275
+ labelFontSize: "12px",
276
+ valueFontSize: "10px",
277
+ titleFontSize: "14px"
278
+ }, ke = /* @__PURE__ */ m(({
279
+ treemap: p
280
+ } = {}) => {
281
+ const l = he(), i = Y(), r = O(l, i.themeVariables), o = O(Me, p), s = o.titleColor ?? r.titleColor, d = o.labelColor ?? r.textColor, h = o.valueColor ?? r.textColor;
282
+ return `
283
+ .treemapNode.section {
284
+ stroke: ${o.sectionStrokeColor};
285
+ stroke-width: ${o.sectionStrokeWidth};
286
+ fill: ${o.sectionFillColor};
287
+ }
288
+ .treemapNode.leaf {
289
+ stroke: ${o.leafStrokeColor};
290
+ stroke-width: ${o.leafStrokeWidth};
291
+ fill: ${o.leafFillColor};
292
+ }
293
+ .treemapLabel {
294
+ fill: ${d};
295
+ font-size: ${o.labelFontSize};
296
+ }
297
+ .treemapValue {
298
+ fill: ${h};
299
+ font-size: ${o.valueFontSize};
300
+ }
301
+ .treemapTitle {
302
+ fill: ${s};
303
+ font-size: ${o.titleFontSize};
304
+ }
305
+ `;
306
+ }, "getStyles"), Ee = ke, Je = {
307
+ parser: le,
308
+ get db() {
309
+ return new te();
310
+ },
311
+ renderer: Ve,
312
+ styles: Ee
313
+ };
314
+ export {
315
+ Je as diagram
316
+ };
@@ -0,0 +1,142 @@
1
+ import { p as $ } from "./chunk-JWPE2WC7.BV0i4LDu.js";
2
+ import { _ as b, A as m, E as C, d as S, l as w, b as D, a as T, n as E, o as P, g as z, s as A, y as F, B as W, p as _ } from "./mermaid.core.Dspbw7Ig.js";
3
+ import { p as N } from "./cynefin-VYW2F7L2.c7H5z9nQ.js";
4
+ var L = W.packet, u, v = (u = class {
5
+ constructor() {
6
+ this.packet = [], this.setAccTitle = D, this.getAccTitle = T, this.setDiagramTitle = E, this.getDiagramTitle = P, this.getAccDescription = z, this.setAccDescription = A;
7
+ }
8
+ getConfig() {
9
+ const t = m({
10
+ ...L,
11
+ ...F().packet
12
+ });
13
+ return t.showBits && (t.paddingY += 10), t;
14
+ }
15
+ getPacket() {
16
+ return this.packet;
17
+ }
18
+ pushWord(t) {
19
+ t.length > 0 && this.packet.push(t);
20
+ }
21
+ clear() {
22
+ _(), this.packet = [];
23
+ }
24
+ }, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
25
+ $(e, t);
26
+ let r = -1, s = [], n = 1;
27
+ const { bitsPerRow: l } = t.getConfig();
28
+ for (let { start: a, end: i, bits: d, label: c } of e.blocks) {
29
+ if (a !== void 0 && i !== void 0 && i < a)
30
+ throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);
31
+ if (a ??= r + 1, a !== r + 1)
32
+ throw new Error(
33
+ `Packet block ${a} - ${i ?? a} is not contiguous. It should start from ${r + 1}.`
34
+ );
35
+ if (d === 0)
36
+ throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);
37
+ for (i ??= a + (d ?? 1) - 1, d ??= i - a + 1, r = i, w.debug(`Packet block ${a} - ${r} with label ${c}`); s.length <= l + 1 && t.getPacket().length < M; ) {
38
+ const [p, o] = I({ start: a, end: i, bits: d, label: c }, n, l);
39
+ if (s.push(p), p.end + 1 === n * l && (t.pushWord(s), s = [], n++), !o)
40
+ break;
41
+ ({ start: a, end: i, bits: d, label: c } = o);
42
+ }
43
+ }
44
+ t.pushWord(s);
45
+ }, "populate"), I = /* @__PURE__ */ b((e, t, r) => {
46
+ if (e.start === void 0)
47
+ throw new Error("start should have been set during first phase");
48
+ if (e.end === void 0)
49
+ throw new Error("end should have been set during first phase");
50
+ if (e.start > e.end)
51
+ throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);
52
+ if (e.end + 1 <= t * r)
53
+ return [e, void 0];
54
+ const s = t * r - 1, n = t * r;
55
+ return [
56
+ {
57
+ start: e.start,
58
+ end: s,
59
+ label: e.label,
60
+ bits: s - e.start
61
+ },
62
+ {
63
+ start: n,
64
+ end: e.end,
65
+ label: e.label,
66
+ bits: e.end - n
67
+ }
68
+ ];
69
+ }, "getNextFittingBlock"), x = {
70
+ // @ts-expect-error - PacketDB is not assignable to DiagramDB
71
+ parser: { yy: void 0 },
72
+ parse: /* @__PURE__ */ b(async (e) => {
73
+ const t = await N("packet", e), r = x.parser?.yy;
74
+ if (!(r instanceof v))
75
+ throw new Error(
76
+ "parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
77
+ );
78
+ w.debug(t), Y(t, r);
79
+ }, "parse")
80
+ }, O = /* @__PURE__ */ b((e, t, r, s) => {
81
+ const n = s.db, l = n.getConfig(), { rowHeight: a, paddingY: i, bitWidth: d, bitsPerRow: c } = l, p = n.getPacket(), o = n.getDiagramTitle(), h = a + i, g = h * (p.length + 1) - (o ? 0 : a), k = d * c + 2, f = C(t);
82
+ f.attr("viewBox", `0 0 ${k} ${g}`), S(f, g, k, l.useMaxWidth);
83
+ for (const [y, B] of p.entries())
84
+ j(f, B, y, l);
85
+ f.append("text").text(o).attr("x", k / 2).attr("y", g - h / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle");
86
+ }, "draw"), j = /* @__PURE__ */ b((e, t, r, { rowHeight: s, paddingX: n, paddingY: l, bitWidth: a, bitsPerRow: i, showBits: d }) => {
87
+ const c = e.append("g"), p = r * (s + l) + l;
88
+ for (const o of t) {
89
+ const h = o.start % i * a + 1, g = (o.end - o.start + 1) * a - n;
90
+ if (c.append("rect").attr("x", h).attr("y", p).attr("width", g).attr("height", s).attr("class", "packetBlock"), c.append("text").attr("x", h + g / 2).attr("y", p + s / 2).attr("class", "packetLabel").attr("dominant-baseline", "middle").attr("text-anchor", "middle").text(o.label), !d)
91
+ continue;
92
+ const k = o.end === o.start, f = p - 2;
93
+ c.append("text").attr("x", h + (k ? g / 2 : 0)).attr("y", f).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", k ? "middle" : "start").text(o.start), k || c.append("text").attr("x", h + g).attr("y", f).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(o.end);
94
+ }
95
+ }, "drawWord"), G = { draw: O }, H = {
96
+ byteFontSize: "10px",
97
+ startByteColor: "black",
98
+ endByteColor: "black",
99
+ labelColor: "black",
100
+ labelFontSize: "12px",
101
+ titleColor: "black",
102
+ titleFontSize: "14px",
103
+ blockStrokeColor: "black",
104
+ blockStrokeWidth: "1",
105
+ blockFillColor: "#efefef"
106
+ }, K = /* @__PURE__ */ b(({ packet: e } = {}) => {
107
+ const t = m(H, e);
108
+ return `
109
+ .packetByte {
110
+ font-size: ${t.byteFontSize};
111
+ }
112
+ .packetByte.start {
113
+ fill: ${t.startByteColor};
114
+ }
115
+ .packetByte.end {
116
+ fill: ${t.endByteColor};
117
+ }
118
+ .packetLabel {
119
+ fill: ${t.labelColor};
120
+ font-size: ${t.labelFontSize};
121
+ }
122
+ .packetTitle {
123
+ fill: ${t.titleColor};
124
+ font-size: ${t.titleFontSize};
125
+ }
126
+ .packetBlock {
127
+ stroke: ${t.blockStrokeColor};
128
+ stroke-width: ${t.blockStrokeWidth};
129
+ fill: ${t.blockFillColor};
130
+ }
131
+ `;
132
+ }, "styles"), q = {
133
+ parser: x,
134
+ get db() {
135
+ return new v();
136
+ },
137
+ renderer: G,
138
+ styles: K
139
+ };
140
+ export {
141
+ q as diagram
142
+ };