@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,564 @@
1
+ import { _ as o, n as it, o as st, s as rt, g as at, b as ot, a as lt, c as J, aT as ht, V as ct, p as ut, j as yt } from "./mermaid.core.Dspbw7Ig.js";
2
+ import "./index.CrhRU5m8.js";
3
+ import "./transform.BuqENXeT.js";
4
+ import { S as ft, j as pt, c as dt, r as gt, l as _t } from "./sankey.BR94A-8L.js";
5
+ import { o as mt } from "./ordinal.bqVaUip-.js";
6
+ import { s as W } from "./select.C6_sM3Pr.js";
7
+ function xt(t) {
8
+ for (var n = t.length / 6 | 0, a = new Array(n), h = 0; h < n; ) a[h] = "#" + t.slice(h * 6, ++h * 6);
9
+ return a;
10
+ }
11
+ const kt = xt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
12
+ var H = Math.PI, Q = 2 * H, I = 1e-6, vt = Q - I;
13
+ function K() {
14
+ this._x0 = this._y0 = // start of current subpath
15
+ this._x1 = this._y1 = null, this._ = "";
16
+ }
17
+ function nt() {
18
+ return new K();
19
+ }
20
+ K.prototype = nt.prototype = {
21
+ constructor: K,
22
+ moveTo: function(t, n) {
23
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n);
24
+ },
25
+ closePath: function() {
26
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
27
+ },
28
+ lineTo: function(t, n) {
29
+ this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +n);
30
+ },
31
+ quadraticCurveTo: function(t, n, a, h) {
32
+ this._ += "Q" + +t + "," + +n + "," + (this._x1 = +a) + "," + (this._y1 = +h);
33
+ },
34
+ bezierCurveTo: function(t, n, a, h, y, p) {
35
+ this._ += "C" + +t + "," + +n + "," + +a + "," + +h + "," + (this._x1 = +y) + "," + (this._y1 = +p);
36
+ },
37
+ arcTo: function(t, n, a, h, y) {
38
+ t = +t, n = +n, a = +a, h = +h, y = +y;
39
+ var p = this._x1, f = this._y1, c = a - t, e = h - n, i = p - t, s = f - n, u = i * i + s * s;
40
+ if (y < 0) throw new Error("negative radius: " + y);
41
+ if (this._x1 === null)
42
+ this._ += "M" + (this._x1 = t) + "," + (this._y1 = n);
43
+ else if (u > I) if (!(Math.abs(s * c - e * i) > I) || !y)
44
+ this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
45
+ else {
46
+ var d = a - p, l = h - f, S = c * c + e * e, b = d * d + l * l, k = Math.sqrt(S), w = Math.sqrt(u), C = y * Math.tan((H - Math.acos((S + u - b) / (2 * k * w))) / 2), T = C / w, O = C / k;
47
+ Math.abs(T - 1) > I && (this._ += "L" + (t + T * i) + "," + (n + T * s)), this._ += "A" + y + "," + y + ",0,0," + +(s * d > i * l) + "," + (this._x1 = t + O * c) + "," + (this._y1 = n + O * e);
48
+ }
49
+ },
50
+ arc: function(t, n, a, h, y, p) {
51
+ t = +t, n = +n, a = +a, p = !!p;
52
+ var f = a * Math.cos(h), c = a * Math.sin(h), e = t + f, i = n + c, s = 1 ^ p, u = p ? h - y : y - h;
53
+ if (a < 0) throw new Error("negative radius: " + a);
54
+ this._x1 === null ? this._ += "M" + e + "," + i : (Math.abs(this._x1 - e) > I || Math.abs(this._y1 - i) > I) && (this._ += "L" + e + "," + i), a && (u < 0 && (u = u % Q + Q), u > vt ? this._ += "A" + a + "," + a + ",0,1," + s + "," + (t - f) + "," + (n - c) + "A" + a + "," + a + ",0,1," + s + "," + (this._x1 = e) + "," + (this._y1 = i) : u > I && (this._ += "A" + a + "," + a + ",0," + +(u >= H) + "," + s + "," + (this._x1 = t + a * Math.cos(y)) + "," + (this._y1 = n + a * Math.sin(y))));
55
+ },
56
+ rect: function(t, n, a, h) {
57
+ this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +n) + "h" + +a + "v" + +h + "h" + -a + "Z";
58
+ },
59
+ toString: function() {
60
+ return this._;
61
+ }
62
+ };
63
+ function tt(t) {
64
+ return function() {
65
+ return t;
66
+ };
67
+ }
68
+ function bt(t) {
69
+ return t[0];
70
+ }
71
+ function St(t) {
72
+ return t[1];
73
+ }
74
+ var Et = Array.prototype.slice;
75
+ function At(t) {
76
+ return t.source;
77
+ }
78
+ function wt(t) {
79
+ return t.target;
80
+ }
81
+ function Tt(t) {
82
+ var n = At, a = wt, h = bt, y = St, p = null;
83
+ function f() {
84
+ var c, e = Et.call(arguments), i = n.apply(this, e), s = a.apply(this, e);
85
+ if (p || (p = c = nt()), t(p, +h.apply(this, (e[0] = i, e)), +y.apply(this, e), +h.apply(this, (e[0] = s, e)), +y.apply(this, e)), c) return p = null, c + "" || null;
86
+ }
87
+ return f.source = function(c) {
88
+ return arguments.length ? (n = c, f) : n;
89
+ }, f.target = function(c) {
90
+ return arguments.length ? (a = c, f) : a;
91
+ }, f.x = function(c) {
92
+ return arguments.length ? (h = typeof c == "function" ? c : tt(+c), f) : h;
93
+ }, f.y = function(c) {
94
+ return arguments.length ? (y = typeof c == "function" ? c : tt(+c), f) : y;
95
+ }, f.context = function(c) {
96
+ return arguments.length ? (p = c ?? null, f) : p;
97
+ }, f;
98
+ }
99
+ function Lt(t, n, a, h, y) {
100
+ t.moveTo(n, a), t.bezierCurveTo(n = (n + h) / 2, a, n, y, h, y);
101
+ }
102
+ function Mt() {
103
+ return Tt(Lt);
104
+ }
105
+ function Pt(t) {
106
+ return [t.source.x1, t.y0];
107
+ }
108
+ function Ct(t) {
109
+ return [t.target.x0, t.y1];
110
+ }
111
+ function Nt() {
112
+ return Mt().source(Pt).target(Ct);
113
+ }
114
+ var Z = function() {
115
+ var t = /* @__PURE__ */ o(function(c, e, i, s) {
116
+ for (i = i || {}, s = c.length; s--; i[c[s]] = e) ;
117
+ return i;
118
+ }, "o"), n = [1, 9], a = [1, 10], h = [1, 5, 10, 12], y = {
119
+ trace: /* @__PURE__ */ o(function() {
120
+ }, "trace"),
121
+ yy: {},
122
+ symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
123
+ terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
124
+ productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
125
+ performAction: /* @__PURE__ */ o(function(e, i, s, u, d, l, S) {
126
+ var b = l.length - 1;
127
+ switch (d) {
128
+ case 7:
129
+ const k = u.findOrCreateNode(l[b - 4].trim().replaceAll('""', '"')), w = u.findOrCreateNode(l[b - 2].trim().replaceAll('""', '"')), C = parseFloat(l[b].trim());
130
+ u.addLink(k, w, C);
131
+ break;
132
+ case 8:
133
+ case 9:
134
+ case 11:
135
+ this.$ = l[b];
136
+ break;
137
+ case 10:
138
+ this.$ = l[b - 1];
139
+ break;
140
+ }
141
+ }, "anonymous"),
142
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: n, 20: a }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(a, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(h, [2, 8]), t(h, [2, 9]), { 19: [1, 16] }, t(h, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(a, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: n, 20: a }, { 15: 18, 16: 7, 17: 8, 18: n, 20: a }, { 18: [1, 19] }, t(a, [2, 3]), { 12: [1, 20] }, t(h, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: n, 20: a }, t([1, 5, 10], [2, 7])],
143
+ defaultActions: { 11: [2, 1], 12: [2, 5] },
144
+ parseError: /* @__PURE__ */ o(function(e, i) {
145
+ if (i.recoverable)
146
+ this.trace(e);
147
+ else {
148
+ var s = new Error(e);
149
+ throw s.hash = i, s;
150
+ }
151
+ }, "parseError"),
152
+ parse: /* @__PURE__ */ o(function(e) {
153
+ var i = this, s = [0], u = [], d = [null], l = [], S = this.table, b = "", k = 0, w = 0, C = 2, T = 1, O = l.slice.call(arguments, 1), g = Object.create(this.lexer), L = { yy: {} };
154
+ for (var F in this.yy)
155
+ Object.prototype.hasOwnProperty.call(this.yy, F) && (L.yy[F] = this.yy[F]);
156
+ g.setInput(e, L.yy), L.yy.lexer = g, L.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
157
+ var z = g.yylloc;
158
+ l.push(z);
159
+ var X = g.options && g.options.ranges;
160
+ typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
161
+ function N(v) {
162
+ s.length = s.length - 2 * v, d.length = d.length - v, l.length = l.length - v;
163
+ }
164
+ o(N, "popStack");
165
+ function R() {
166
+ var v;
167
+ return v = u.pop() || g.lex() || T, typeof v != "number" && (v instanceof Array && (u = v, v = u.pop()), v = i.symbols_[v] || v), v;
168
+ }
169
+ o(R, "lex");
170
+ for (var m, M, x, $, E = {}, A, r, _, V; ; ) {
171
+ if (M = s[s.length - 1], this.defaultActions[M] ? x = this.defaultActions[M] : ((m === null || typeof m > "u") && (m = R()), x = S[M] && S[M][m]), typeof x > "u" || !x.length || !x[0]) {
172
+ var q = "";
173
+ V = [];
174
+ for (A in S[M])
175
+ this.terminals_[A] && A > C && V.push("'" + this.terminals_[A] + "'");
176
+ g.showPosition ? q = "Parse error on line " + (k + 1) + `:
177
+ ` + g.showPosition() + `
178
+ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[m] || m) + "'" : q = "Parse error on line " + (k + 1) + ": Unexpected " + (m == T ? "end of input" : "'" + (this.terminals_[m] || m) + "'"), this.parseError(q, {
179
+ text: g.match,
180
+ token: this.terminals_[m] || m,
181
+ line: g.yylineno,
182
+ loc: z,
183
+ expected: V
184
+ });
185
+ }
186
+ if (x[0] instanceof Array && x.length > 1)
187
+ throw new Error("Parse Error: multiple actions possible at state: " + M + ", token: " + m);
188
+ switch (x[0]) {
189
+ case 1:
190
+ s.push(m), d.push(g.yytext), l.push(g.yylloc), s.push(x[1]), m = null, w = g.yyleng, b = g.yytext, k = g.yylineno, z = g.yylloc;
191
+ break;
192
+ case 2:
193
+ if (r = this.productions_[x[1]][1], E.$ = d[d.length - r], E._$ = {
194
+ first_line: l[l.length - (r || 1)].first_line,
195
+ last_line: l[l.length - 1].last_line,
196
+ first_column: l[l.length - (r || 1)].first_column,
197
+ last_column: l[l.length - 1].last_column
198
+ }, X && (E._$.range = [
199
+ l[l.length - (r || 1)].range[0],
200
+ l[l.length - 1].range[1]
201
+ ]), $ = this.performAction.apply(E, [
202
+ b,
203
+ w,
204
+ k,
205
+ L.yy,
206
+ x[1],
207
+ d,
208
+ l
209
+ ].concat(O)), typeof $ < "u")
210
+ return $;
211
+ r && (s = s.slice(0, -1 * r * 2), d = d.slice(0, -1 * r), l = l.slice(0, -1 * r)), s.push(this.productions_[x[1]][0]), d.push(E.$), l.push(E._$), _ = S[s[s.length - 2]][s[s.length - 1]], s.push(_);
212
+ break;
213
+ case 3:
214
+ return !0;
215
+ }
216
+ }
217
+ return !0;
218
+ }, "parse")
219
+ }, p = /* @__PURE__ */ function() {
220
+ var c = {
221
+ EOF: 1,
222
+ parseError: /* @__PURE__ */ o(function(i, s) {
223
+ if (this.yy.parser)
224
+ this.yy.parser.parseError(i, s);
225
+ else
226
+ throw new Error(i);
227
+ }, "parseError"),
228
+ // resets the lexer, sets new input
229
+ setInput: /* @__PURE__ */ o(function(e, i) {
230
+ return this.yy = i || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
231
+ first_line: 1,
232
+ first_column: 0,
233
+ last_line: 1,
234
+ last_column: 0
235
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
236
+ }, "setInput"),
237
+ // consumes and returns one char from the input
238
+ input: /* @__PURE__ */ o(function() {
239
+ var e = this._input[0];
240
+ this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e;
241
+ var i = e.match(/(?:\r\n?|\n).*/g);
242
+ return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
243
+ }, "input"),
244
+ // unshifts one char (or a string) into the input
245
+ unput: /* @__PURE__ */ o(function(e) {
246
+ var i = e.length, s = e.split(/(?:\r\n?|\n)/g);
247
+ this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
248
+ var u = this.match.split(/(?:\r\n?|\n)/g);
249
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), s.length - 1 && (this.yylineno -= s.length - 1);
250
+ var d = this.yylloc.range;
251
+ return this.yylloc = {
252
+ first_line: this.yylloc.first_line,
253
+ last_line: this.yylineno + 1,
254
+ first_column: this.yylloc.first_column,
255
+ last_column: s ? (s.length === u.length ? this.yylloc.first_column : 0) + u[u.length - s.length].length - s[0].length : this.yylloc.first_column - i
256
+ }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
257
+ }, "unput"),
258
+ // When called from action, caches matched text and appends it on next action
259
+ more: /* @__PURE__ */ o(function() {
260
+ return this._more = !0, this;
261
+ }, "more"),
262
+ // 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.
263
+ reject: /* @__PURE__ */ o(function() {
264
+ if (this.options.backtrack_lexer)
265
+ this._backtrack = !0;
266
+ else
267
+ 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).
268
+ ` + this.showPosition(), {
269
+ text: "",
270
+ token: null,
271
+ line: this.yylineno
272
+ });
273
+ return this;
274
+ }, "reject"),
275
+ // retain first n characters of the match
276
+ less: /* @__PURE__ */ o(function(e) {
277
+ this.unput(this.match.slice(e));
278
+ }, "less"),
279
+ // displays already matched input, i.e. for error messages
280
+ pastInput: /* @__PURE__ */ o(function() {
281
+ var e = this.matched.substr(0, this.matched.length - this.match.length);
282
+ return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
283
+ }, "pastInput"),
284
+ // displays upcoming input, i.e. for error messages
285
+ upcomingInput: /* @__PURE__ */ o(function() {
286
+ var e = this.match;
287
+ return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
288
+ }, "upcomingInput"),
289
+ // displays the character position where the lexing error occurred, i.e. for error messages
290
+ showPosition: /* @__PURE__ */ o(function() {
291
+ var e = this.pastInput(), i = new Array(e.length + 1).join("-");
292
+ return e + this.upcomingInput() + `
293
+ ` + i + "^";
294
+ }, "showPosition"),
295
+ // test the lexed token: return FALSE when not a match, otherwise return token
296
+ test_match: /* @__PURE__ */ o(function(e, i) {
297
+ var s, u, d;
298
+ if (this.options.backtrack_lexer && (d = {
299
+ yylineno: this.yylineno,
300
+ yylloc: {
301
+ first_line: this.yylloc.first_line,
302
+ last_line: this.last_line,
303
+ first_column: this.yylloc.first_column,
304
+ last_column: this.yylloc.last_column
305
+ },
306
+ yytext: this.yytext,
307
+ match: this.match,
308
+ matches: this.matches,
309
+ matched: this.matched,
310
+ yyleng: this.yyleng,
311
+ offset: this.offset,
312
+ _more: this._more,
313
+ _input: this._input,
314
+ yy: this.yy,
315
+ conditionStack: this.conditionStack.slice(0),
316
+ done: this.done
317
+ }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), u = e[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
318
+ first_line: this.yylloc.last_line,
319
+ last_line: this.yylineno + 1,
320
+ first_column: this.yylloc.last_column,
321
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
322
+ }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], s = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), s)
323
+ return s;
324
+ if (this._backtrack) {
325
+ for (var l in d)
326
+ this[l] = d[l];
327
+ return !1;
328
+ }
329
+ return !1;
330
+ }, "test_match"),
331
+ // return next match in input
332
+ next: /* @__PURE__ */ o(function() {
333
+ if (this.done)
334
+ return this.EOF;
335
+ this._input || (this.done = !0);
336
+ var e, i, s, u;
337
+ this._more || (this.yytext = "", this.match = "");
338
+ for (var d = this._currentRules(), l = 0; l < d.length; l++)
339
+ if (s = this._input.match(this.rules[d[l]]), s && (!i || s[0].length > i[0].length)) {
340
+ if (i = s, u = l, this.options.backtrack_lexer) {
341
+ if (e = this.test_match(s, d[l]), e !== !1)
342
+ return e;
343
+ if (this._backtrack) {
344
+ i = !1;
345
+ continue;
346
+ } else
347
+ return !1;
348
+ } else if (!this.options.flex)
349
+ break;
350
+ }
351
+ return i ? (e = this.test_match(i, d[u]), e !== !1 ? e : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
352
+ ` + this.showPosition(), {
353
+ text: "",
354
+ token: null,
355
+ line: this.yylineno
356
+ });
357
+ }, "next"),
358
+ // return next match that has a token
359
+ lex: /* @__PURE__ */ o(function() {
360
+ var i = this.next();
361
+ return i || this.lex();
362
+ }, "lex"),
363
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
364
+ begin: /* @__PURE__ */ o(function(i) {
365
+ this.conditionStack.push(i);
366
+ }, "begin"),
367
+ // pop the previously active lexer condition state off the condition stack
368
+ popState: /* @__PURE__ */ o(function() {
369
+ var i = this.conditionStack.length - 1;
370
+ return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
371
+ }, "popState"),
372
+ // produce the lexer rule set which is active for the currently active lexer condition state
373
+ _currentRules: /* @__PURE__ */ o(function() {
374
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
375
+ }, "_currentRules"),
376
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
377
+ topState: /* @__PURE__ */ o(function(i) {
378
+ return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
379
+ }, "topState"),
380
+ // alias for begin(condition)
381
+ pushState: /* @__PURE__ */ o(function(i) {
382
+ this.begin(i);
383
+ }, "pushState"),
384
+ // return the number of states currently on the stack
385
+ stateStackSize: /* @__PURE__ */ o(function() {
386
+ return this.conditionStack.length;
387
+ }, "stateStackSize"),
388
+ options: { "case-insensitive": !0 },
389
+ performAction: /* @__PURE__ */ o(function(i, s, u, d) {
390
+ switch (u) {
391
+ case 0:
392
+ return this.pushState("csv"), 4;
393
+ case 1:
394
+ return this.pushState("csv"), 4;
395
+ case 2:
396
+ return 10;
397
+ case 3:
398
+ return 5;
399
+ case 4:
400
+ return 12;
401
+ case 5:
402
+ return this.pushState("escaped_text"), 18;
403
+ case 6:
404
+ return 20;
405
+ case 7:
406
+ return this.popState("escaped_text"), 18;
407
+ case 8:
408
+ return 19;
409
+ }
410
+ }, "anonymous"),
411
+ rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
412
+ conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
413
+ };
414
+ return c;
415
+ }();
416
+ y.lexer = p;
417
+ function f() {
418
+ this.yy = {};
419
+ }
420
+ return o(f, "Parser"), f.prototype = y, y.Parser = f, new f();
421
+ }();
422
+ Z.parser = Z;
423
+ var G = Z, Y = [], B = [], U = /* @__PURE__ */ new Map(), It = /* @__PURE__ */ o(() => {
424
+ Y = [], B = [], U = /* @__PURE__ */ new Map(), ut();
425
+ }, "clear"), j, Ot = (j = class {
426
+ constructor(n, a, h = 0) {
427
+ this.source = n, this.target = a, this.value = h;
428
+ }
429
+ }, o(j, "SankeyLink"), j), $t = /* @__PURE__ */ o((t, n, a) => {
430
+ Y.push(new Ot(t, n, a));
431
+ }, "addLink"), D, jt = (D = class {
432
+ constructor(n) {
433
+ this.ID = n;
434
+ }
435
+ }, o(D, "SankeyNode"), D), Dt = /* @__PURE__ */ o((t) => {
436
+ t = yt.sanitizeText(t, J());
437
+ let n = U.get(t);
438
+ return n === void 0 && (n = new jt(t), U.set(t, n), B.push(n)), n;
439
+ }, "findOrCreateNode"), zt = /* @__PURE__ */ o(() => B, "getNodes"), Ft = /* @__PURE__ */ o(() => Y, "getLinks"), Rt = /* @__PURE__ */ o(() => ({
440
+ nodes: B.map((t) => ({ id: t.ID })),
441
+ links: Y.map((t) => ({
442
+ source: t.source.ID,
443
+ target: t.target.ID,
444
+ value: t.value
445
+ }))
446
+ }), "getGraph"), Vt = {
447
+ nodesMap: U,
448
+ getConfig: /* @__PURE__ */ o(() => J().sankey, "getConfig"),
449
+ getNodes: zt,
450
+ getLinks: Ft,
451
+ getGraph: Rt,
452
+ addLink: $t,
453
+ findOrCreateNode: Dt,
454
+ getAccTitle: lt,
455
+ setAccTitle: ot,
456
+ getAccDescription: at,
457
+ setAccDescription: rt,
458
+ getDiagramTitle: st,
459
+ setDiagramTitle: it,
460
+ clear: It
461
+ }, P, et = (P = class {
462
+ static next(n) {
463
+ return new P(n + ++P.count);
464
+ }
465
+ constructor(n) {
466
+ this.id = n, this.href = `#${n}`;
467
+ }
468
+ toString() {
469
+ return "url(" + this.href + ")";
470
+ }
471
+ }, o(P, "Uid"), P.count = 0, P), Wt = {
472
+ left: _t,
473
+ right: gt,
474
+ center: dt,
475
+ justify: pt
476
+ }, Gt = /* @__PURE__ */ o((t) => {
477
+ let n = 0, a = 0;
478
+ for (const h of t) {
479
+ const y = h.value ?? 0;
480
+ y > n && (n = y, a = h.layer ?? 0);
481
+ }
482
+ return a;
483
+ }, "findCentralNodeLayer"), Ut = /* @__PURE__ */ o(function(t, n, a, h) {
484
+ const { securityLevel: y, sankey: p } = J(), f = ht.sankey;
485
+ let c;
486
+ y === "sandbox" && (c = W("#i" + n));
487
+ const e = y === "sandbox" ? W(c.nodes()[0].contentDocument.body) : W("body"), i = y === "sandbox" ? e.select(`[id="${n}"]`) : W(`[id="${n}"]`), s = p?.width ?? f.width, u = p?.height ?? f.width, d = p?.useMaxWidth ?? f.useMaxWidth, l = p?.nodeAlignment ?? f.nodeAlignment, S = p?.prefix ?? f.prefix, b = p?.suffix ?? f.suffix, k = p?.showValues ?? f.showValues, w = p?.nodeWidth ?? f.nodeWidth ?? 10, C = p?.nodePadding ?? f.nodePadding ?? 12, T = p?.labelStyle ?? f.labelStyle ?? "legacy", O = p?.nodeColors ?? {}, g = h.db.getGraph(), L = Wt[l];
488
+ ft().nodeId((r) => r.id).nodeWidth(w).nodePadding(C + (k ? 15 : 0)).nodeAlign(L).extent([
489
+ [0, 0],
490
+ [s, u]
491
+ ])(g);
492
+ const z = Gt(g.nodes), X = mt(kt), N = /* @__PURE__ */ o((r) => O[r] ?? X(r), "getNodeColor");
493
+ i.append("g").attr("class", "nodes").selectAll(".node").data(g.nodes).join("g").attr("class", "node").attr("id", (r) => (r.uid = et.next("node-")).id).attr("transform", function(r) {
494
+ return "translate(" + r.x0 + "," + r.y0 + ")";
495
+ }).attr("x", (r) => r.x0).attr("y", (r) => r.y0).append("rect").attr("height", (r) => r.y1 - r.y0).attr("width", (r) => r.x1 - r.x0).attr("fill", (r) => N(r.id));
496
+ const R = /* @__PURE__ */ o(({ id: r, value: _ }) => k ? `${r}
497
+ ${S}${Math.round(_ * 100) / 100}${b}` : r, "getText"), m = /* @__PURE__ */ o((r) => T === "outlined" ? (r.layer ?? 0) < z ? { x: r.x0 - 6, anchor: "end" } : { x: r.x1 + 6, anchor: "start" } : r.x0 < s / 2 ? { x: r.x1 + 6, anchor: "start" } : { x: r.x0 - 6, anchor: "end" }, "getLabelPosition"), M = i.append("g").attr("class", "node-labels").attr("font-size", 14), x = /* @__PURE__ */ o((r) => M.selectAll(r ? `.${r}` : "text").data(g.nodes).join("text").attr("class", r ?? null).attr("x", (_) => m(_).x).attr("y", (_) => (_.y1 + _.y0) / 2).attr("dy", `${k ? "0" : "0.35"}em`).attr("text-anchor", (_) => m(_).anchor).text(R), "appendLabel");
498
+ T === "outlined" ? (x("sankey-label-bg"), x("sankey-label-fg")) : x();
499
+ const $ = i.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(g.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), E = p?.linkColor ?? "gradient";
500
+ if (E === "gradient") {
501
+ const r = $.append("linearGradient").attr("id", (_) => (_.uid = et.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (_) => _.source.x1).attr("x2", (_) => _.target.x0);
502
+ r.append("stop").attr("offset", "0%").attr("stop-color", (_) => N(_.source.id)), r.append("stop").attr("offset", "100%").attr("stop-color", (_) => N(_.target.id));
503
+ }
504
+ let A;
505
+ switch (E) {
506
+ case "gradient":
507
+ A = /* @__PURE__ */ o((r) => r.uid, "coloring");
508
+ break;
509
+ case "source":
510
+ A = /* @__PURE__ */ o((r) => N(r.source.id), "coloring");
511
+ break;
512
+ case "target":
513
+ A = /* @__PURE__ */ o((r) => N(r.target.id), "coloring");
514
+ break;
515
+ default:
516
+ A = E;
517
+ }
518
+ $.append("path").attr("d", Nt()).attr("stroke", A).attr("stroke-width", (r) => Math.max(1, r.width)), ct(void 0, i, 0, d);
519
+ }, "draw"), Yt = {
520
+ draw: Ut
521
+ }, Bt = /* @__PURE__ */ o((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
522
+ `).trim(), "prepareTextForParsing"), Xt = /* @__PURE__ */ o((t) => `.label {
523
+ font-family: ${t.fontFamily};
524
+ }
525
+
526
+ .node-labels {
527
+ font-family: ${t.fontFamily};
528
+ }
529
+
530
+ /* Outlined label style - background stroke for better readability */
531
+ .sankey-label-bg {
532
+ stroke: ${t.mainBkg || t.background || "#fff"};
533
+ stroke-width: 4px;
534
+ stroke-linejoin: round;
535
+ paint-order: stroke;
536
+ }
537
+
538
+ /* Foreground label text */
539
+ .sankey-label-fg {
540
+ fill: ${t.textColor};
541
+ }
542
+
543
+ /* Node styling */
544
+ .node rect {
545
+ shape-rendering: crispEdges;
546
+ }
547
+
548
+ /* Link styling */
549
+ .link {
550
+ fill: none;
551
+ stroke-opacity: 0.5;
552
+ mix-blend-mode: multiply;
553
+ }
554
+ `, "getStyles"), qt = Xt, Ht = G.parse.bind(G);
555
+ G.parse = (t) => Ht(Bt(t));
556
+ var ne = {
557
+ styles: qt,
558
+ parser: G,
559
+ db: Vt,
560
+ renderer: Yt
561
+ };
562
+ export {
563
+ ne as diagram
564
+ };
@@ -0,0 +1,7 @@
1
+ import { S as t, r as n } from "./index.CrhRU5m8.js";
2
+ function r(e) {
3
+ return typeof e == "string" ? new t([[document.querySelector(e)]], [document.documentElement]) : new t([[e]], n);
4
+ }
5
+ export {
6
+ r as s
7
+ };