ranui 0.2.1-alpha.1 → 0.2.1-alpha.3
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.
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +2 -2
- package/dist/builder.js +39 -34
- package/dist/{builtin-D9djWkCE.js → builtin-BkM0LLof.js} +83 -76
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-CqJa4Q_v.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-CThC9-vy.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-qWnaTlYX.js} +8 -8
- package/dist/colorpicker.js +1 -1
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-CCvsambb.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-Ceq3uJzz.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-C_ENrJ3F.js → icon-CtlZJISZ.js} +77 -25
- package/dist/icon.js +1 -1
- package/dist/icons.js +1 -1
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +1 -1
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-B7MBI5n_.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +38 -37
- package/dist/index.d.ts +8 -0
- package/dist/index.iife.js +3623 -88
- package/dist/index.js +88 -84
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-RNqdEHPf.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-B9MFI03l.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-CudIwEXZ.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-DW7qWpEm.js → message-BpYJBvYn.js} +6 -6
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-CrvGKL2B.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-BKQaaT7o.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-CvYIVgUS.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-C6jctsFH.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-BUb4EzmG.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/{route-Djrf9UR_.js → route-pR5P4ann.js} +10 -10
- package/dist/route.js +1 -1
- package/dist/{router-BU2KhtxV.js → router-CewzSH7O.js} +5 -5
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-CO4I2dIa.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-CsUkp8bv.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-Dn26ajJZ.js → select-B58nMfB1.js} +13 -13
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-BuMLhvzQ.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-40fDkuox.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-F4Pd7JtC.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +133 -3
- package/dist/utils/builder/index.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +155 -2
- package/package.json +7 -1
- package/dist/button-BfYw0fes.js +0 -117
- package/dist/factory-DCrO37si.js +0 -334
|
@@ -0,0 +1,974 @@
|
|
|
1
|
+
import { n as d } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { p as G } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { H as mt, J as kt, K as _t, U as xt, a as vt, d as bt, s as wt, v as St, w as Lt, x as tt, y as Et } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { t as At } from "./ordinal-BMN81JG2.js";
|
|
5
|
+
function Tt(t) {
|
|
6
|
+
for (var i = t.length / 6 | 0, s = new Array(i), c = 0; c < i; ) s[c] = "#" + t.slice(c * 6, ++c * 6);
|
|
7
|
+
return s;
|
|
8
|
+
}
|
|
9
|
+
var Mt = Tt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");
|
|
10
|
+
function at(t, i) {
|
|
11
|
+
let s;
|
|
12
|
+
if (i === void 0)
|
|
13
|
+
for (const c of t) c != null && (s < c || s === void 0 && c >= c) && (s = c);
|
|
14
|
+
else {
|
|
15
|
+
let c = -1;
|
|
16
|
+
for (let u of t) (u = i(u, ++c, t)) != null && (s < u || s === void 0 && u >= u) && (s = u);
|
|
17
|
+
}
|
|
18
|
+
return s;
|
|
19
|
+
}
|
|
20
|
+
function dt(t, i) {
|
|
21
|
+
let s;
|
|
22
|
+
if (i === void 0)
|
|
23
|
+
for (const c of t) c != null && (s > c || s === void 0 && c >= c) && (s = c);
|
|
24
|
+
else {
|
|
25
|
+
let c = -1;
|
|
26
|
+
for (let u of t) (u = i(u, ++c, t)) != null && (s > u || s === void 0 && u >= u) && (s = u);
|
|
27
|
+
}
|
|
28
|
+
return s;
|
|
29
|
+
}
|
|
30
|
+
function Z(t, i) {
|
|
31
|
+
let s = 0;
|
|
32
|
+
if (i === void 0)
|
|
33
|
+
for (let c of t) (c = +c) && (s += c);
|
|
34
|
+
else {
|
|
35
|
+
let c = -1;
|
|
36
|
+
for (let u of t) (u = +i(u, ++c, t)) && (s += u);
|
|
37
|
+
}
|
|
38
|
+
return s;
|
|
39
|
+
}
|
|
40
|
+
function Nt(t) {
|
|
41
|
+
return t.target.depth;
|
|
42
|
+
}
|
|
43
|
+
function Ct(t) {
|
|
44
|
+
return t.depth;
|
|
45
|
+
}
|
|
46
|
+
function Pt(t, i) {
|
|
47
|
+
return i - 1 - t.height;
|
|
48
|
+
}
|
|
49
|
+
function gt(t, i) {
|
|
50
|
+
return t.sourceLinks.length ? t.depth : i - 1;
|
|
51
|
+
}
|
|
52
|
+
function It(t) {
|
|
53
|
+
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? dt(t.sourceLinks, Nt) - 1 : 0;
|
|
54
|
+
}
|
|
55
|
+
function H(t) {
|
|
56
|
+
return function() {
|
|
57
|
+
return t;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function lt(t, i) {
|
|
61
|
+
return q(t.source, i.source) || t.index - i.index;
|
|
62
|
+
}
|
|
63
|
+
function ct(t, i) {
|
|
64
|
+
return q(t.target, i.target) || t.index - i.index;
|
|
65
|
+
}
|
|
66
|
+
function q(t, i) {
|
|
67
|
+
return t.y0 - i.y0;
|
|
68
|
+
}
|
|
69
|
+
function J(t) {
|
|
70
|
+
return t.value;
|
|
71
|
+
}
|
|
72
|
+
function Ot(t) {
|
|
73
|
+
return t.index;
|
|
74
|
+
}
|
|
75
|
+
function $t(t) {
|
|
76
|
+
return t.nodes;
|
|
77
|
+
}
|
|
78
|
+
function Dt(t) {
|
|
79
|
+
return t.links;
|
|
80
|
+
}
|
|
81
|
+
function ut(t, i) {
|
|
82
|
+
const s = t.get(i);
|
|
83
|
+
if (!s) throw new Error("missing: " + i);
|
|
84
|
+
return s;
|
|
85
|
+
}
|
|
86
|
+
function ht({ nodes: t }) {
|
|
87
|
+
for (const i of t) {
|
|
88
|
+
let s = i.y0, c = s;
|
|
89
|
+
for (const u of i.sourceLinks)
|
|
90
|
+
u.y0 = s + u.width / 2, s += u.width;
|
|
91
|
+
for (const u of i.targetLinks)
|
|
92
|
+
u.y1 = c + u.width / 2, c += u.width;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
function zt() {
|
|
96
|
+
let t = 0, i = 0, s = 1, c = 1, u = 24, m = 8, r, l = Ot, y = gt, h, p, x = $t, k = Dt, L = 6;
|
|
97
|
+
function _() {
|
|
98
|
+
const e = {
|
|
99
|
+
nodes: x.apply(null, arguments),
|
|
100
|
+
links: k.apply(null, arguments)
|
|
101
|
+
};
|
|
102
|
+
return A(e), E(e), M(e), $(e), v(e), ht(e), e;
|
|
103
|
+
}
|
|
104
|
+
_.update = function(e) {
|
|
105
|
+
return ht(e), e;
|
|
106
|
+
}, _.nodeId = function(e) {
|
|
107
|
+
return arguments.length ? (l = typeof e == "function" ? e : H(e), _) : l;
|
|
108
|
+
}, _.nodeAlign = function(e) {
|
|
109
|
+
return arguments.length ? (y = typeof e == "function" ? e : H(e), _) : y;
|
|
110
|
+
}, _.nodeSort = function(e) {
|
|
111
|
+
return arguments.length ? (h = e, _) : h;
|
|
112
|
+
}, _.nodeWidth = function(e) {
|
|
113
|
+
return arguments.length ? (u = +e, _) : u;
|
|
114
|
+
}, _.nodePadding = function(e) {
|
|
115
|
+
return arguments.length ? (m = r = +e, _) : m;
|
|
116
|
+
}, _.nodes = function(e) {
|
|
117
|
+
return arguments.length ? (x = typeof e == "function" ? e : H(e), _) : x;
|
|
118
|
+
}, _.links = function(e) {
|
|
119
|
+
return arguments.length ? (k = typeof e == "function" ? e : H(e), _) : k;
|
|
120
|
+
}, _.linkSort = function(e) {
|
|
121
|
+
return arguments.length ? (p = e, _) : p;
|
|
122
|
+
}, _.size = function(e) {
|
|
123
|
+
return arguments.length ? (t = i = 0, s = +e[0], c = +e[1], _) : [s - t, c - i];
|
|
124
|
+
}, _.extent = function(e) {
|
|
125
|
+
return arguments.length ? (t = +e[0][0], s = +e[1][0], i = +e[0][1], c = +e[1][1], _) : [[t, i], [s, c]];
|
|
126
|
+
}, _.iterations = function(e) {
|
|
127
|
+
return arguments.length ? (L = +e, _) : L;
|
|
128
|
+
};
|
|
129
|
+
function A({ nodes: e, links: f }) {
|
|
130
|
+
for (const [o, a] of e.entries())
|
|
131
|
+
a.index = o, a.sourceLinks = [], a.targetLinks = [];
|
|
132
|
+
const n = new Map(e.map((o, a) => [l(o, a, e), o]));
|
|
133
|
+
for (const [o, a] of f.entries()) {
|
|
134
|
+
a.index = o;
|
|
135
|
+
let { source: g, target: b } = a;
|
|
136
|
+
typeof g != "object" && (g = a.source = ut(n, g)), typeof b != "object" && (b = a.target = ut(n, b)), g.sourceLinks.push(a), b.targetLinks.push(a);
|
|
137
|
+
}
|
|
138
|
+
if (p != null) for (const { sourceLinks: o, targetLinks: a } of e)
|
|
139
|
+
o.sort(p), a.sort(p);
|
|
140
|
+
}
|
|
141
|
+
function E({ nodes: e }) {
|
|
142
|
+
for (const f of e) f.value = f.fixedValue === void 0 ? Math.max(Z(f.sourceLinks, J), Z(f.targetLinks, J)) : f.fixedValue;
|
|
143
|
+
}
|
|
144
|
+
function M({ nodes: e }) {
|
|
145
|
+
const f = e.length;
|
|
146
|
+
let n = new Set(e), o = /* @__PURE__ */ new Set(), a = 0;
|
|
147
|
+
for (; n.size; ) {
|
|
148
|
+
for (const g of n) {
|
|
149
|
+
g.depth = a;
|
|
150
|
+
for (const { target: b } of g.sourceLinks) o.add(b);
|
|
151
|
+
}
|
|
152
|
+
if (++a > f) throw new Error("circular link");
|
|
153
|
+
n = o, o = /* @__PURE__ */ new Set();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function $({ nodes: e }) {
|
|
157
|
+
const f = e.length;
|
|
158
|
+
let n = new Set(e), o = /* @__PURE__ */ new Set(), a = 0;
|
|
159
|
+
for (; n.size; ) {
|
|
160
|
+
for (const g of n) {
|
|
161
|
+
g.height = a;
|
|
162
|
+
for (const { source: b } of g.targetLinks) o.add(b);
|
|
163
|
+
}
|
|
164
|
+
if (++a > f) throw new Error("circular link");
|
|
165
|
+
n = o, o = /* @__PURE__ */ new Set();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function N({ nodes: e }) {
|
|
169
|
+
const f = at(e, (a) => a.depth) + 1, n = (s - t - u) / (f - 1), o = new Array(f);
|
|
170
|
+
for (const a of e) {
|
|
171
|
+
const g = Math.max(0, Math.min(f - 1, Math.floor(y.call(null, a, f))));
|
|
172
|
+
a.layer = g, a.x0 = t + g * n, a.x1 = a.x0 + u, o[g] ? o[g].push(a) : o[g] = [a];
|
|
173
|
+
}
|
|
174
|
+
if (h) for (const a of o) a.sort(h);
|
|
175
|
+
return o;
|
|
176
|
+
}
|
|
177
|
+
function D(e) {
|
|
178
|
+
const f = dt(e, (n) => (c - i - (n.length - 1) * r) / Z(n, J));
|
|
179
|
+
for (const n of e) {
|
|
180
|
+
let o = i;
|
|
181
|
+
for (const a of n) {
|
|
182
|
+
a.y0 = o, a.y1 = o + a.value * f, o = a.y1 + r;
|
|
183
|
+
for (const g of a.sourceLinks) g.width = g.value * f;
|
|
184
|
+
}
|
|
185
|
+
o = (c - o + r) / (n.length + 1);
|
|
186
|
+
for (let a = 0; a < n.length; ++a) {
|
|
187
|
+
const g = n[a];
|
|
188
|
+
g.y0 += o * (a + 1), g.y1 += o * (a + 1);
|
|
189
|
+
}
|
|
190
|
+
w(n);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
function v(e) {
|
|
194
|
+
const f = N(e);
|
|
195
|
+
r = Math.min(m, (c - i) / (at(f, (n) => n.length) - 1)), D(f);
|
|
196
|
+
for (let n = 0; n < L; ++n) {
|
|
197
|
+
const o = Math.pow(0.99, n), a = Math.max(1 - o, (n + 1) / L);
|
|
198
|
+
B(f, o, a), C(f, o, a);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function C(e, f, n) {
|
|
202
|
+
for (let o = 1, a = e.length; o < a; ++o) {
|
|
203
|
+
const g = e[o];
|
|
204
|
+
for (const b of g) {
|
|
205
|
+
let I = 0, S = 0;
|
|
206
|
+
for (const { source: U, value: W } of b.targetLinks) {
|
|
207
|
+
let ot = W * (b.layer - U.layer);
|
|
208
|
+
I += O(U, b) * ot, S += ot;
|
|
209
|
+
}
|
|
210
|
+
if (!(S > 0)) continue;
|
|
211
|
+
let V = (I / S - b.y0) * f;
|
|
212
|
+
b.y0 += V, b.y1 += V, j(b);
|
|
213
|
+
}
|
|
214
|
+
h === void 0 && g.sort(q), z(g, n);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function B(e, f, n) {
|
|
218
|
+
for (let o = e.length - 2; o >= 0; --o) {
|
|
219
|
+
const a = e[o];
|
|
220
|
+
for (const g of a) {
|
|
221
|
+
let b = 0, I = 0;
|
|
222
|
+
for (const { target: V, value: U } of g.sourceLinks) {
|
|
223
|
+
let W = U * (V.layer - g.layer);
|
|
224
|
+
b += T(g, V) * W, I += W;
|
|
225
|
+
}
|
|
226
|
+
if (!(I > 0)) continue;
|
|
227
|
+
let S = (b / I - g.y0) * f;
|
|
228
|
+
g.y0 += S, g.y1 += S, j(g);
|
|
229
|
+
}
|
|
230
|
+
h === void 0 && a.sort(q), z(a, n);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
function z(e, f) {
|
|
234
|
+
const n = e.length >> 1, o = e[n];
|
|
235
|
+
R(e, o.y0 - r, n - 1, f), P(e, o.y1 + r, n + 1, f), R(e, c, e.length - 1, f), P(e, i, 0, f);
|
|
236
|
+
}
|
|
237
|
+
function P(e, f, n, o) {
|
|
238
|
+
for (; n < e.length; ++n) {
|
|
239
|
+
const a = e[n], g = (f - a.y0) * o;
|
|
240
|
+
g > 1e-6 && (a.y0 += g, a.y1 += g), f = a.y1 + r;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function R(e, f, n, o) {
|
|
244
|
+
for (; n >= 0; --n) {
|
|
245
|
+
const a = e[n], g = (a.y1 - f) * o;
|
|
246
|
+
g > 1e-6 && (a.y0 -= g, a.y1 -= g), f = a.y0 - r;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
function j({ sourceLinks: e, targetLinks: f }) {
|
|
250
|
+
if (p === void 0) {
|
|
251
|
+
for (const { source: { sourceLinks: n } } of f) n.sort(ct);
|
|
252
|
+
for (const { target: { targetLinks: n } } of e) n.sort(lt);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
function w(e) {
|
|
256
|
+
if (p === void 0) for (const { sourceLinks: f, targetLinks: n } of e)
|
|
257
|
+
f.sort(ct), n.sort(lt);
|
|
258
|
+
}
|
|
259
|
+
function O(e, f) {
|
|
260
|
+
let n = e.y0 - (e.sourceLinks.length - 1) * r / 2;
|
|
261
|
+
for (const { target: o, width: a } of e.sourceLinks) {
|
|
262
|
+
if (o === f) break;
|
|
263
|
+
n += a + r;
|
|
264
|
+
}
|
|
265
|
+
for (const { source: o, width: a } of f.targetLinks) {
|
|
266
|
+
if (o === e) break;
|
|
267
|
+
n -= a;
|
|
268
|
+
}
|
|
269
|
+
return n;
|
|
270
|
+
}
|
|
271
|
+
function T(e, f) {
|
|
272
|
+
let n = f.y0 - (f.targetLinks.length - 1) * r / 2;
|
|
273
|
+
for (const { source: o, width: a } of f.targetLinks) {
|
|
274
|
+
if (o === e) break;
|
|
275
|
+
n += a + r;
|
|
276
|
+
}
|
|
277
|
+
for (const { target: o, width: a } of e.sourceLinks) {
|
|
278
|
+
if (o === f) break;
|
|
279
|
+
n -= a;
|
|
280
|
+
}
|
|
281
|
+
return n;
|
|
282
|
+
}
|
|
283
|
+
return _;
|
|
284
|
+
}
|
|
285
|
+
var et = Math.PI, nt = 2 * et, F = 1e-6, jt = nt - F;
|
|
286
|
+
function it() {
|
|
287
|
+
this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
|
|
288
|
+
}
|
|
289
|
+
function pt() {
|
|
290
|
+
return new it();
|
|
291
|
+
}
|
|
292
|
+
it.prototype = pt.prototype = {
|
|
293
|
+
constructor: it,
|
|
294
|
+
moveTo: function(t, i) {
|
|
295
|
+
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +i);
|
|
296
|
+
},
|
|
297
|
+
closePath: function() {
|
|
298
|
+
this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
|
|
299
|
+
},
|
|
300
|
+
lineTo: function(t, i) {
|
|
301
|
+
this._ += "L" + (this._x1 = +t) + "," + (this._y1 = +i);
|
|
302
|
+
},
|
|
303
|
+
quadraticCurveTo: function(t, i, s, c) {
|
|
304
|
+
this._ += "Q" + +t + "," + +i + "," + (this._x1 = +s) + "," + (this._y1 = +c);
|
|
305
|
+
},
|
|
306
|
+
bezierCurveTo: function(t, i, s, c, u, m) {
|
|
307
|
+
this._ += "C" + +t + "," + +i + "," + +s + "," + +c + "," + (this._x1 = +u) + "," + (this._y1 = +m);
|
|
308
|
+
},
|
|
309
|
+
arcTo: function(t, i, s, c, u) {
|
|
310
|
+
t = +t, i = +i, s = +s, c = +c, u = +u;
|
|
311
|
+
var m = this._x1, r = this._y1, l = s - t, y = c - i, h = m - t, p = r - i, x = h * h + p * p;
|
|
312
|
+
if (u < 0) throw new Error("negative radius: " + u);
|
|
313
|
+
if (this._x1 === null) this._ += "M" + (this._x1 = t) + "," + (this._y1 = i);
|
|
314
|
+
else if (x > F) if (!(Math.abs(p * l - y * h) > F) || !u) this._ += "L" + (this._x1 = t) + "," + (this._y1 = i);
|
|
315
|
+
else {
|
|
316
|
+
var k = s - m, L = c - r, _ = l * l + y * y, A = k * k + L * L, E = Math.sqrt(_), M = Math.sqrt(x), $ = u * Math.tan((et - Math.acos((_ + x - A) / (2 * E * M))) / 2), N = $ / M, D = $ / E;
|
|
317
|
+
Math.abs(N - 1) > F && (this._ += "L" + (t + N * h) + "," + (i + N * p)), this._ += "A" + u + "," + u + ",0,0," + +(p * k > h * L) + "," + (this._x1 = t + D * l) + "," + (this._y1 = i + D * y);
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
arc: function(t, i, s, c, u, m) {
|
|
321
|
+
t = +t, i = +i, s = +s, m = !!m;
|
|
322
|
+
var r = s * Math.cos(c), l = s * Math.sin(c), y = t + r, h = i + l, p = 1 ^ m, x = m ? c - u : u - c;
|
|
323
|
+
if (s < 0) throw new Error("negative radius: " + s);
|
|
324
|
+
this._x1 === null ? this._ += "M" + y + "," + h : (Math.abs(this._x1 - y) > F || Math.abs(this._y1 - h) > F) && (this._ += "L" + y + "," + h), s && (x < 0 && (x = x % nt + nt), x > jt ? this._ += "A" + s + "," + s + ",0,1," + p + "," + (t - r) + "," + (i - l) + "A" + s + "," + s + ",0,1," + p + "," + (this._x1 = y) + "," + (this._y1 = h) : x > F && (this._ += "A" + s + "," + s + ",0," + +(x >= et) + "," + p + "," + (this._x1 = t + s * Math.cos(u)) + "," + (this._y1 = i + s * Math.sin(u))));
|
|
325
|
+
},
|
|
326
|
+
rect: function(t, i, s, c) {
|
|
327
|
+
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +i) + "h" + +s + "v" + +c + "h" + -s + "Z";
|
|
328
|
+
},
|
|
329
|
+
toString: function() {
|
|
330
|
+
return this._;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
function ft(t) {
|
|
334
|
+
return function() {
|
|
335
|
+
return t;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function Bt(t) {
|
|
339
|
+
return t[0];
|
|
340
|
+
}
|
|
341
|
+
function Ft(t) {
|
|
342
|
+
return t[1];
|
|
343
|
+
}
|
|
344
|
+
var Rt = Array.prototype.slice;
|
|
345
|
+
function Vt(t) {
|
|
346
|
+
return t.source;
|
|
347
|
+
}
|
|
348
|
+
function Ut(t) {
|
|
349
|
+
return t.target;
|
|
350
|
+
}
|
|
351
|
+
function Wt(t) {
|
|
352
|
+
var i = Vt, s = Ut, c = Bt, u = Ft, m = null;
|
|
353
|
+
function r() {
|
|
354
|
+
var l, y = Rt.call(arguments), h = i.apply(this, y), p = s.apply(this, y);
|
|
355
|
+
if (m || (m = l = pt()), t(m, +c.apply(this, (y[0] = h, y)), +u.apply(this, y), +c.apply(this, (y[0] = p, y)), +u.apply(this, y)), l) return m = null, l + "" || null;
|
|
356
|
+
}
|
|
357
|
+
return r.source = function(l) {
|
|
358
|
+
return arguments.length ? (i = l, r) : i;
|
|
359
|
+
}, r.target = function(l) {
|
|
360
|
+
return arguments.length ? (s = l, r) : s;
|
|
361
|
+
}, r.x = function(l) {
|
|
362
|
+
return arguments.length ? (c = typeof l == "function" ? l : ft(+l), r) : c;
|
|
363
|
+
}, r.y = function(l) {
|
|
364
|
+
return arguments.length ? (u = typeof l == "function" ? l : ft(+l), r) : u;
|
|
365
|
+
}, r.context = function(l) {
|
|
366
|
+
return arguments.length ? (m = l ?? null, r) : m;
|
|
367
|
+
}, r;
|
|
368
|
+
}
|
|
369
|
+
function Gt(t, i, s, c, u) {
|
|
370
|
+
t.moveTo(i, s), t.bezierCurveTo(i = (i + c) / 2, s, i, u, c, u);
|
|
371
|
+
}
|
|
372
|
+
function Ht() {
|
|
373
|
+
return Wt(Gt);
|
|
374
|
+
}
|
|
375
|
+
function Yt(t) {
|
|
376
|
+
return [t.source.x1, t.y0];
|
|
377
|
+
}
|
|
378
|
+
function Xt(t) {
|
|
379
|
+
return [t.target.x0, t.y1];
|
|
380
|
+
}
|
|
381
|
+
function qt() {
|
|
382
|
+
return Ht().source(Yt).target(Xt);
|
|
383
|
+
}
|
|
384
|
+
var rt = (function() {
|
|
385
|
+
var t = /* @__PURE__ */ d(function(r, l, y, h) {
|
|
386
|
+
for (y = y || {}, h = r.length; h--; y[r[h]] = l) ;
|
|
387
|
+
return y;
|
|
388
|
+
}, "o"), i = [1, 9], s = [1, 10], c = [
|
|
389
|
+
1,
|
|
390
|
+
5,
|
|
391
|
+
10,
|
|
392
|
+
12
|
|
393
|
+
], u = {
|
|
394
|
+
trace: /* @__PURE__ */ d(function() {
|
|
395
|
+
}, "trace"),
|
|
396
|
+
yy: {},
|
|
397
|
+
symbols_: {
|
|
398
|
+
error: 2,
|
|
399
|
+
start: 3,
|
|
400
|
+
SANKEY: 4,
|
|
401
|
+
NEWLINE: 5,
|
|
402
|
+
csv: 6,
|
|
403
|
+
opt_eof: 7,
|
|
404
|
+
record: 8,
|
|
405
|
+
csv_tail: 9,
|
|
406
|
+
EOF: 10,
|
|
407
|
+
"field[source]": 11,
|
|
408
|
+
COMMA: 12,
|
|
409
|
+
"field[target]": 13,
|
|
410
|
+
"field[value]": 14,
|
|
411
|
+
field: 15,
|
|
412
|
+
escaped: 16,
|
|
413
|
+
non_escaped: 17,
|
|
414
|
+
DQUOTE: 18,
|
|
415
|
+
ESCAPED_TEXT: 19,
|
|
416
|
+
NON_ESCAPED_TEXT: 20,
|
|
417
|
+
$accept: 0,
|
|
418
|
+
$end: 1
|
|
419
|
+
},
|
|
420
|
+
terminals_: {
|
|
421
|
+
2: "error",
|
|
422
|
+
4: "SANKEY",
|
|
423
|
+
5: "NEWLINE",
|
|
424
|
+
10: "EOF",
|
|
425
|
+
11: "field[source]",
|
|
426
|
+
12: "COMMA",
|
|
427
|
+
13: "field[target]",
|
|
428
|
+
14: "field[value]",
|
|
429
|
+
18: "DQUOTE",
|
|
430
|
+
19: "ESCAPED_TEXT",
|
|
431
|
+
20: "NON_ESCAPED_TEXT"
|
|
432
|
+
},
|
|
433
|
+
productions_: [
|
|
434
|
+
0,
|
|
435
|
+
[3, 4],
|
|
436
|
+
[6, 2],
|
|
437
|
+
[9, 2],
|
|
438
|
+
[9, 0],
|
|
439
|
+
[7, 1],
|
|
440
|
+
[7, 0],
|
|
441
|
+
[8, 5],
|
|
442
|
+
[15, 1],
|
|
443
|
+
[15, 1],
|
|
444
|
+
[16, 3],
|
|
445
|
+
[17, 1]
|
|
446
|
+
],
|
|
447
|
+
performAction: /* @__PURE__ */ d(function(l, y, h, p, x, k, L) {
|
|
448
|
+
var _ = k.length - 1;
|
|
449
|
+
switch (x) {
|
|
450
|
+
case 7:
|
|
451
|
+
const A = p.findOrCreateNode(k[_ - 4].trim().replaceAll('""', '"')), E = p.findOrCreateNode(k[_ - 2].trim().replaceAll('""', '"')), M = parseFloat(k[_].trim());
|
|
452
|
+
p.addLink(A, E, M);
|
|
453
|
+
break;
|
|
454
|
+
case 8:
|
|
455
|
+
case 9:
|
|
456
|
+
case 11:
|
|
457
|
+
this.$ = k[_];
|
|
458
|
+
break;
|
|
459
|
+
case 10:
|
|
460
|
+
this.$ = k[_ - 1];
|
|
461
|
+
break;
|
|
462
|
+
}
|
|
463
|
+
}, "anonymous"),
|
|
464
|
+
table: [
|
|
465
|
+
{
|
|
466
|
+
3: 1,
|
|
467
|
+
4: [1, 2]
|
|
468
|
+
},
|
|
469
|
+
{ 1: [3] },
|
|
470
|
+
{ 5: [1, 3] },
|
|
471
|
+
{
|
|
472
|
+
6: 4,
|
|
473
|
+
8: 5,
|
|
474
|
+
15: 6,
|
|
475
|
+
16: 7,
|
|
476
|
+
17: 8,
|
|
477
|
+
18: i,
|
|
478
|
+
20: s
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
1: [2, 6],
|
|
482
|
+
7: 11,
|
|
483
|
+
10: [1, 12]
|
|
484
|
+
},
|
|
485
|
+
t(s, [2, 4], {
|
|
486
|
+
9: 13,
|
|
487
|
+
5: [1, 14]
|
|
488
|
+
}),
|
|
489
|
+
{ 12: [1, 15] },
|
|
490
|
+
t(c, [2, 8]),
|
|
491
|
+
t(c, [2, 9]),
|
|
492
|
+
{ 19: [1, 16] },
|
|
493
|
+
t(c, [2, 11]),
|
|
494
|
+
{ 1: [2, 1] },
|
|
495
|
+
{ 1: [2, 5] },
|
|
496
|
+
t(s, [2, 2]),
|
|
497
|
+
{
|
|
498
|
+
6: 17,
|
|
499
|
+
8: 5,
|
|
500
|
+
15: 6,
|
|
501
|
+
16: 7,
|
|
502
|
+
17: 8,
|
|
503
|
+
18: i,
|
|
504
|
+
20: s
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
15: 18,
|
|
508
|
+
16: 7,
|
|
509
|
+
17: 8,
|
|
510
|
+
18: i,
|
|
511
|
+
20: s
|
|
512
|
+
},
|
|
513
|
+
{ 18: [1, 19] },
|
|
514
|
+
t(s, [2, 3]),
|
|
515
|
+
{ 12: [1, 20] },
|
|
516
|
+
t(c, [2, 10]),
|
|
517
|
+
{
|
|
518
|
+
15: 21,
|
|
519
|
+
16: 7,
|
|
520
|
+
17: 8,
|
|
521
|
+
18: i,
|
|
522
|
+
20: s
|
|
523
|
+
},
|
|
524
|
+
t([
|
|
525
|
+
1,
|
|
526
|
+
5,
|
|
527
|
+
10
|
|
528
|
+
], [2, 7])
|
|
529
|
+
],
|
|
530
|
+
defaultActions: {
|
|
531
|
+
11: [2, 1],
|
|
532
|
+
12: [2, 5]
|
|
533
|
+
},
|
|
534
|
+
parseError: /* @__PURE__ */ d(function(l, y) {
|
|
535
|
+
if (y.recoverable) this.trace(l);
|
|
536
|
+
else {
|
|
537
|
+
var h = new Error(l);
|
|
538
|
+
throw h.hash = y, h;
|
|
539
|
+
}
|
|
540
|
+
}, "parseError"),
|
|
541
|
+
parse: /* @__PURE__ */ d(function(l) {
|
|
542
|
+
var y = this, h = [0], p = [], x = [null], k = [], L = this.table, _ = "", A = 0, E = 0, M = 0, $ = 2, N = 1, D = k.slice.call(arguments, 1), v = Object.create(this.lexer), C = { yy: {} };
|
|
543
|
+
for (var B in this.yy) Object.prototype.hasOwnProperty.call(this.yy, B) && (C.yy[B] = this.yy[B]);
|
|
544
|
+
v.setInput(l, C.yy), C.yy.lexer = v, C.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
|
|
545
|
+
var z = v.yylloc;
|
|
546
|
+
k.push(z);
|
|
547
|
+
var P = v.options && v.options.ranges;
|
|
548
|
+
typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
549
|
+
function R(S) {
|
|
550
|
+
h.length = h.length - 2 * S, x.length = x.length - S, k.length = k.length - S;
|
|
551
|
+
}
|
|
552
|
+
d(R, "popStack");
|
|
553
|
+
function j() {
|
|
554
|
+
var S = p.pop() || v.lex() || N;
|
|
555
|
+
return typeof S != "number" && (S instanceof Array && (p = S, S = p.pop()), S = y.symbols_[S] || S), S;
|
|
556
|
+
}
|
|
557
|
+
d(j, "lex");
|
|
558
|
+
for (var w, O, T, e, f, n = {}, o, a, g, b; ; ) {
|
|
559
|
+
if (T = h[h.length - 1], this.defaultActions[T] ? e = this.defaultActions[T] : ((w === null || typeof w > "u") && (w = j()), e = L[T] && L[T][w]), typeof e > "u" || !e.length || !e[0]) {
|
|
560
|
+
var I = "";
|
|
561
|
+
b = [];
|
|
562
|
+
for (o in L[T]) this.terminals_[o] && o > $ && b.push("'" + this.terminals_[o] + "'");
|
|
563
|
+
v.showPosition ? I = "Parse error on line " + (A + 1) + `:
|
|
564
|
+
` + v.showPosition() + `
|
|
565
|
+
Expecting ` + b.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : I = "Parse error on line " + (A + 1) + ": Unexpected " + (w == N ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(I, {
|
|
566
|
+
text: v.match,
|
|
567
|
+
token: this.terminals_[w] || w,
|
|
568
|
+
line: v.yylineno,
|
|
569
|
+
loc: z,
|
|
570
|
+
expected: b
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
if (e[0] instanceof Array && e.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + w);
|
|
574
|
+
switch (e[0]) {
|
|
575
|
+
case 1:
|
|
576
|
+
h.push(w), x.push(v.yytext), k.push(v.yylloc), h.push(e[1]), w = null, O ? (w = O, O = null) : (E = v.yyleng, _ = v.yytext, A = v.yylineno, z = v.yylloc, M > 0 && M--);
|
|
577
|
+
break;
|
|
578
|
+
case 2:
|
|
579
|
+
if (a = this.productions_[e[1]][1], n.$ = x[x.length - a], n._$ = {
|
|
580
|
+
first_line: k[k.length - (a || 1)].first_line,
|
|
581
|
+
last_line: k[k.length - 1].last_line,
|
|
582
|
+
first_column: k[k.length - (a || 1)].first_column,
|
|
583
|
+
last_column: k[k.length - 1].last_column
|
|
584
|
+
}, P && (n._$.range = [k[k.length - (a || 1)].range[0], k[k.length - 1].range[1]]), f = this.performAction.apply(n, [
|
|
585
|
+
_,
|
|
586
|
+
E,
|
|
587
|
+
A,
|
|
588
|
+
C.yy,
|
|
589
|
+
e[1],
|
|
590
|
+
x,
|
|
591
|
+
k
|
|
592
|
+
].concat(D)), typeof f < "u") return f;
|
|
593
|
+
a && (h = h.slice(0, -1 * a * 2), x = x.slice(0, -1 * a), k = k.slice(0, -1 * a)), h.push(this.productions_[e[1]][0]), x.push(n.$), k.push(n._$), g = L[h[h.length - 2]][h[h.length - 1]], h.push(g);
|
|
594
|
+
break;
|
|
595
|
+
case 3:
|
|
596
|
+
return !0;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
return !0;
|
|
600
|
+
}, "parse")
|
|
601
|
+
};
|
|
602
|
+
u.lexer = /* @__PURE__ */ (function() {
|
|
603
|
+
return {
|
|
604
|
+
EOF: 1,
|
|
605
|
+
parseError: /* @__PURE__ */ d(function(l, y) {
|
|
606
|
+
if (this.yy.parser) this.yy.parser.parseError(l, y);
|
|
607
|
+
else throw new Error(l);
|
|
608
|
+
}, "parseError"),
|
|
609
|
+
setInput: /* @__PURE__ */ d(function(r, l) {
|
|
610
|
+
return this.yy = l || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
611
|
+
first_line: 1,
|
|
612
|
+
first_column: 0,
|
|
613
|
+
last_line: 1,
|
|
614
|
+
last_column: 0
|
|
615
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
616
|
+
}, "setInput"),
|
|
617
|
+
input: /* @__PURE__ */ d(function() {
|
|
618
|
+
var r = this._input[0];
|
|
619
|
+
return this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r, r.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
|
|
620
|
+
}, "input"),
|
|
621
|
+
unput: /* @__PURE__ */ d(function(r) {
|
|
622
|
+
var l = r.length, y = r.split(/(?:\r\n?|\n)/g);
|
|
623
|
+
this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - l), this.offset -= l;
|
|
624
|
+
var h = this.match.split(/(?:\r\n?|\n)/g);
|
|
625
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
|
|
626
|
+
var p = this.yylloc.range;
|
|
627
|
+
return this.yylloc = {
|
|
628
|
+
first_line: this.yylloc.first_line,
|
|
629
|
+
last_line: this.yylineno + 1,
|
|
630
|
+
first_column: this.yylloc.first_column,
|
|
631
|
+
last_column: y ? (y.length === h.length ? this.yylloc.first_column : 0) + h[h.length - y.length].length - y[0].length : this.yylloc.first_column - l
|
|
632
|
+
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - l]), this.yyleng = this.yytext.length, this;
|
|
633
|
+
}, "unput"),
|
|
634
|
+
more: /* @__PURE__ */ d(function() {
|
|
635
|
+
return this._more = !0, this;
|
|
636
|
+
}, "more"),
|
|
637
|
+
reject: /* @__PURE__ */ d(function() {
|
|
638
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
639
|
+
else 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).
|
|
640
|
+
` + this.showPosition(), {
|
|
641
|
+
text: "",
|
|
642
|
+
token: null,
|
|
643
|
+
line: this.yylineno
|
|
644
|
+
});
|
|
645
|
+
return this;
|
|
646
|
+
}, "reject"),
|
|
647
|
+
less: /* @__PURE__ */ d(function(r) {
|
|
648
|
+
this.unput(this.match.slice(r));
|
|
649
|
+
}, "less"),
|
|
650
|
+
pastInput: /* @__PURE__ */ d(function() {
|
|
651
|
+
var r = this.matched.substr(0, this.matched.length - this.match.length);
|
|
652
|
+
return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
|
|
653
|
+
}, "pastInput"),
|
|
654
|
+
upcomingInput: /* @__PURE__ */ d(function() {
|
|
655
|
+
var r = this.match;
|
|
656
|
+
return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
657
|
+
}, "upcomingInput"),
|
|
658
|
+
showPosition: /* @__PURE__ */ d(function() {
|
|
659
|
+
var r = this.pastInput(), l = new Array(r.length + 1).join("-");
|
|
660
|
+
return r + this.upcomingInput() + `
|
|
661
|
+
` + l + "^";
|
|
662
|
+
}, "showPosition"),
|
|
663
|
+
test_match: /* @__PURE__ */ d(function(r, l) {
|
|
664
|
+
var y, h, p;
|
|
665
|
+
if (this.options.backtrack_lexer && (p = {
|
|
666
|
+
yylineno: this.yylineno,
|
|
667
|
+
yylloc: {
|
|
668
|
+
first_line: this.yylloc.first_line,
|
|
669
|
+
last_line: this.last_line,
|
|
670
|
+
first_column: this.yylloc.first_column,
|
|
671
|
+
last_column: this.yylloc.last_column
|
|
672
|
+
},
|
|
673
|
+
yytext: this.yytext,
|
|
674
|
+
match: this.match,
|
|
675
|
+
matches: this.matches,
|
|
676
|
+
matched: this.matched,
|
|
677
|
+
yyleng: this.yyleng,
|
|
678
|
+
offset: this.offset,
|
|
679
|
+
_more: this._more,
|
|
680
|
+
_input: this._input,
|
|
681
|
+
yy: this.yy,
|
|
682
|
+
conditionStack: this.conditionStack.slice(0),
|
|
683
|
+
done: this.done
|
|
684
|
+
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), h = r[0].match(/(?:\r\n?|\n).*/g), h && (this.yylineno += h.length), this.yylloc = {
|
|
685
|
+
first_line: this.yylloc.last_line,
|
|
686
|
+
last_line: this.yylineno + 1,
|
|
687
|
+
first_column: this.yylloc.last_column,
|
|
688
|
+
last_column: h ? h[h.length - 1].length - h[h.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
|
|
689
|
+
}, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], y = this.performAction.call(this, this.yy, this, l, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y) return y;
|
|
690
|
+
if (this._backtrack) {
|
|
691
|
+
for (var x in p) this[x] = p[x];
|
|
692
|
+
return !1;
|
|
693
|
+
}
|
|
694
|
+
return !1;
|
|
695
|
+
}, "test_match"),
|
|
696
|
+
next: /* @__PURE__ */ d(function() {
|
|
697
|
+
if (this.done) return this.EOF;
|
|
698
|
+
this._input || (this.done = !0);
|
|
699
|
+
var r, l, y, h;
|
|
700
|
+
this._more || (this.yytext = "", this.match = "");
|
|
701
|
+
for (var p = this._currentRules(), x = 0; x < p.length; x++)
|
|
702
|
+
if (y = this._input.match(this.rules[p[x]]), y && (!l || y[0].length > l[0].length)) {
|
|
703
|
+
if (l = y, h = x, this.options.backtrack_lexer) {
|
|
704
|
+
if (r = this.test_match(y, p[x]), r !== !1) return r;
|
|
705
|
+
if (this._backtrack) {
|
|
706
|
+
l = !1;
|
|
707
|
+
continue;
|
|
708
|
+
} else return !1;
|
|
709
|
+
} else if (!this.options.flex) break;
|
|
710
|
+
}
|
|
711
|
+
return l ? (r = this.test_match(l, p[h]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
712
|
+
` + this.showPosition(), {
|
|
713
|
+
text: "",
|
|
714
|
+
token: null,
|
|
715
|
+
line: this.yylineno
|
|
716
|
+
});
|
|
717
|
+
}, "next"),
|
|
718
|
+
lex: /* @__PURE__ */ d(function() {
|
|
719
|
+
var l = this.next();
|
|
720
|
+
return l || this.lex();
|
|
721
|
+
}, "lex"),
|
|
722
|
+
begin: /* @__PURE__ */ d(function(l) {
|
|
723
|
+
this.conditionStack.push(l);
|
|
724
|
+
}, "begin"),
|
|
725
|
+
popState: /* @__PURE__ */ d(function() {
|
|
726
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
727
|
+
}, "popState"),
|
|
728
|
+
_currentRules: /* @__PURE__ */ d(function() {
|
|
729
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
730
|
+
}, "_currentRules"),
|
|
731
|
+
topState: /* @__PURE__ */ d(function(l) {
|
|
732
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
733
|
+
}, "topState"),
|
|
734
|
+
pushState: /* @__PURE__ */ d(function(l) {
|
|
735
|
+
this.begin(l);
|
|
736
|
+
}, "pushState"),
|
|
737
|
+
stateStackSize: /* @__PURE__ */ d(function() {
|
|
738
|
+
return this.conditionStack.length;
|
|
739
|
+
}, "stateStackSize"),
|
|
740
|
+
options: { "case-insensitive": !0 },
|
|
741
|
+
performAction: /* @__PURE__ */ d(function(l, y, h, p) {
|
|
742
|
+
switch (h) {
|
|
743
|
+
case 0:
|
|
744
|
+
return this.pushState("csv"), 4;
|
|
745
|
+
case 1:
|
|
746
|
+
return this.pushState("csv"), 4;
|
|
747
|
+
case 2:
|
|
748
|
+
return 10;
|
|
749
|
+
case 3:
|
|
750
|
+
return 5;
|
|
751
|
+
case 4:
|
|
752
|
+
return 12;
|
|
753
|
+
case 5:
|
|
754
|
+
return this.pushState("escaped_text"), 18;
|
|
755
|
+
case 6:
|
|
756
|
+
return 20;
|
|
757
|
+
case 7:
|
|
758
|
+
return this.popState("escaped_text"), 18;
|
|
759
|
+
case 8:
|
|
760
|
+
return 19;
|
|
761
|
+
}
|
|
762
|
+
}, "anonymous"),
|
|
763
|
+
rules: [
|
|
764
|
+
/^(?:sankey-beta\b)/i,
|
|
765
|
+
/^(?:sankey\b)/i,
|
|
766
|
+
/^(?:$)/i,
|
|
767
|
+
/^(?:((\u000D\u000A)|(\u000A)))/i,
|
|
768
|
+
/^(?:(\u002C))/i,
|
|
769
|
+
/^(?:(\u0022))/i,
|
|
770
|
+
/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,
|
|
771
|
+
/^(?:(\u0022)(?!(\u0022)))/i,
|
|
772
|
+
/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i
|
|
773
|
+
],
|
|
774
|
+
conditions: {
|
|
775
|
+
csv: {
|
|
776
|
+
rules: [
|
|
777
|
+
2,
|
|
778
|
+
3,
|
|
779
|
+
4,
|
|
780
|
+
5,
|
|
781
|
+
6,
|
|
782
|
+
7,
|
|
783
|
+
8
|
|
784
|
+
],
|
|
785
|
+
inclusive: !1
|
|
786
|
+
},
|
|
787
|
+
escaped_text: {
|
|
788
|
+
rules: [7, 8],
|
|
789
|
+
inclusive: !1
|
|
790
|
+
},
|
|
791
|
+
INITIAL: {
|
|
792
|
+
rules: [
|
|
793
|
+
0,
|
|
794
|
+
1,
|
|
795
|
+
2,
|
|
796
|
+
3,
|
|
797
|
+
4,
|
|
798
|
+
5,
|
|
799
|
+
6,
|
|
800
|
+
7,
|
|
801
|
+
8
|
|
802
|
+
],
|
|
803
|
+
inclusive: !0
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
})();
|
|
808
|
+
function m() {
|
|
809
|
+
this.yy = {};
|
|
810
|
+
}
|
|
811
|
+
return d(m, "Parser"), m.prototype = u, u.Parser = m, new m();
|
|
812
|
+
})();
|
|
813
|
+
rt.parser = rt;
|
|
814
|
+
var K = rt, Q = [], Y = [], X = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ d(() => {
|
|
815
|
+
Q = [], Y = [], X = /* @__PURE__ */ new Map(), vt();
|
|
816
|
+
}, "clear"), Qt = class {
|
|
817
|
+
constructor(t, i, s = 0) {
|
|
818
|
+
this.source = t, this.target = i, this.value = s;
|
|
819
|
+
}
|
|
820
|
+
static {
|
|
821
|
+
d(this, "SankeyLink");
|
|
822
|
+
}
|
|
823
|
+
}, Zt = /* @__PURE__ */ d((t, i, s) => {
|
|
824
|
+
Q.push(new Qt(t, i, s));
|
|
825
|
+
}, "addLink"), Jt = class {
|
|
826
|
+
constructor(t) {
|
|
827
|
+
this.ID = t;
|
|
828
|
+
}
|
|
829
|
+
static {
|
|
830
|
+
d(this, "SankeyNode");
|
|
831
|
+
}
|
|
832
|
+
}, te = {
|
|
833
|
+
nodesMap: X,
|
|
834
|
+
getConfig: /* @__PURE__ */ d(() => tt().sankey, "getConfig"),
|
|
835
|
+
getNodes: /* @__PURE__ */ d(() => Y, "getNodes"),
|
|
836
|
+
getLinks: /* @__PURE__ */ d(() => Q, "getLinks"),
|
|
837
|
+
getGraph: /* @__PURE__ */ d(() => ({
|
|
838
|
+
nodes: Y.map((t) => ({ id: t.ID })),
|
|
839
|
+
links: Q.map((t) => ({
|
|
840
|
+
source: t.source.ID,
|
|
841
|
+
target: t.target.ID,
|
|
842
|
+
value: t.value
|
|
843
|
+
}))
|
|
844
|
+
}), "getGraph"),
|
|
845
|
+
addLink: Zt,
|
|
846
|
+
findOrCreateNode: /* @__PURE__ */ d((t) => {
|
|
847
|
+
t = wt.sanitizeText(t, tt());
|
|
848
|
+
let i = X.get(t);
|
|
849
|
+
return i === void 0 && (i = new Jt(t), X.set(t, i), Y.push(i)), i;
|
|
850
|
+
}, "findOrCreateNode"),
|
|
851
|
+
getAccTitle: Et,
|
|
852
|
+
setAccTitle: xt,
|
|
853
|
+
getAccDescription: St,
|
|
854
|
+
setAccDescription: mt,
|
|
855
|
+
getDiagramTitle: Lt,
|
|
856
|
+
setDiagramTitle: _t,
|
|
857
|
+
clear: Kt
|
|
858
|
+
}, yt = class st {
|
|
859
|
+
static {
|
|
860
|
+
d(this, "Uid");
|
|
861
|
+
}
|
|
862
|
+
static {
|
|
863
|
+
this.count = 0;
|
|
864
|
+
}
|
|
865
|
+
static next(i) {
|
|
866
|
+
return new st(i + ++st.count);
|
|
867
|
+
}
|
|
868
|
+
constructor(i) {
|
|
869
|
+
this.id = i, this.href = `#${i}`;
|
|
870
|
+
}
|
|
871
|
+
toString() {
|
|
872
|
+
return "url(" + this.href + ")";
|
|
873
|
+
}
|
|
874
|
+
}, ee = {
|
|
875
|
+
left: Ct,
|
|
876
|
+
right: Pt,
|
|
877
|
+
center: It,
|
|
878
|
+
justify: gt
|
|
879
|
+
}, ne = /* @__PURE__ */ d((t) => {
|
|
880
|
+
let i = 0, s = 0;
|
|
881
|
+
for (const c of t) {
|
|
882
|
+
const u = c.value ?? 0;
|
|
883
|
+
u > i && (i = u, s = c.layer ?? 0);
|
|
884
|
+
}
|
|
885
|
+
return s;
|
|
886
|
+
}, "findCentralNodeLayer"), ie = { draw: /* @__PURE__ */ d(function(t, i, s, c) {
|
|
887
|
+
const { securityLevel: u, sankey: m } = tt(), r = bt.sankey;
|
|
888
|
+
let l;
|
|
889
|
+
u === "sandbox" && (l = G("#i" + i));
|
|
890
|
+
const y = u === "sandbox" ? G(l.nodes()[0].contentDocument.body) : G("body"), h = u === "sandbox" ? y.select(`[id="${i}"]`) : G(`[id="${i}"]`), p = m?.width ?? r.width, x = m?.height ?? r.width, k = m?.useMaxWidth ?? r.useMaxWidth, L = m?.nodeAlignment ?? r.nodeAlignment, _ = m?.prefix ?? r.prefix, A = m?.suffix ?? r.suffix, E = m?.showValues ?? r.showValues, M = m?.nodeWidth ?? r.nodeWidth ?? 10, $ = m?.nodePadding ?? r.nodePadding ?? 12, N = m?.labelStyle ?? r.labelStyle ?? "legacy", D = m?.nodeColors ?? {}, v = c.db.getGraph(), C = ee[L];
|
|
891
|
+
zt().nodeId((n) => n.id).nodeWidth(M).nodePadding($ + (E ? 15 : 0)).nodeAlign(C).extent([[0, 0], [p, x]])(v);
|
|
892
|
+
const B = ne(v.nodes), z = At(Mt), P = /* @__PURE__ */ d((n) => D[n] ?? z(n), "getNodeColor");
|
|
893
|
+
h.append("g").attr("class", "nodes").selectAll(".node").data(v.nodes).join("g").attr("class", "node").attr("id", (n) => (n.uid = yt.next("node-")).id).attr("transform", function(n) {
|
|
894
|
+
return "translate(" + n.x0 + "," + n.y0 + ")";
|
|
895
|
+
}).attr("x", (n) => n.x0).attr("y", (n) => n.y0).append("rect").attr("height", (n) => n.y1 - n.y0).attr("width", (n) => n.x1 - n.x0).attr("fill", (n) => P(n.id));
|
|
896
|
+
const R = /* @__PURE__ */ d(({ id: n, value: o }) => E ? `${n}
|
|
897
|
+
${_}${Math.round(o * 100) / 100}${A}` : n, "getText"), j = /* @__PURE__ */ d((n) => N === "outlined" ? (n.layer ?? 0) < B ? {
|
|
898
|
+
x: n.x0 - 6,
|
|
899
|
+
anchor: "end"
|
|
900
|
+
} : {
|
|
901
|
+
x: n.x1 + 6,
|
|
902
|
+
anchor: "start"
|
|
903
|
+
} : n.x0 < p / 2 ? {
|
|
904
|
+
x: n.x1 + 6,
|
|
905
|
+
anchor: "start"
|
|
906
|
+
} : {
|
|
907
|
+
x: n.x0 - 6,
|
|
908
|
+
anchor: "end"
|
|
909
|
+
}, "getLabelPosition"), w = h.append("g").attr("class", "node-labels").attr("font-size", 14), O = /* @__PURE__ */ d((n) => w.selectAll(n ? `.${n}` : "text").data(v.nodes).join("text").attr("class", n ?? null).attr("x", (o) => j(o).x).attr("y", (o) => (o.y1 + o.y0) / 2).attr("dy", `${E ? "0" : "0.35"}em`).attr("text-anchor", (o) => j(o).anchor).text(R), "appendLabel");
|
|
910
|
+
N === "outlined" ? (O("sankey-label-bg"), O("sankey-label-fg")) : O();
|
|
911
|
+
const T = h.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(v.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), e = m?.linkColor ?? "gradient";
|
|
912
|
+
if (e === "gradient") {
|
|
913
|
+
const n = T.append("linearGradient").attr("id", (o) => (o.uid = yt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (o) => o.source.x1).attr("x2", (o) => o.target.x0);
|
|
914
|
+
n.append("stop").attr("offset", "0%").attr("stop-color", (o) => P(o.source.id)), n.append("stop").attr("offset", "100%").attr("stop-color", (o) => P(o.target.id));
|
|
915
|
+
}
|
|
916
|
+
let f;
|
|
917
|
+
switch (e) {
|
|
918
|
+
case "gradient":
|
|
919
|
+
f = /* @__PURE__ */ d((n) => n.uid, "coloring");
|
|
920
|
+
break;
|
|
921
|
+
case "source":
|
|
922
|
+
f = /* @__PURE__ */ d((n) => P(n.source.id), "coloring");
|
|
923
|
+
break;
|
|
924
|
+
case "target":
|
|
925
|
+
f = /* @__PURE__ */ d((n) => P(n.target.id), "coloring");
|
|
926
|
+
break;
|
|
927
|
+
default:
|
|
928
|
+
f = e;
|
|
929
|
+
}
|
|
930
|
+
T.append("path").attr("d", qt()).attr("stroke", f).attr("stroke-width", (n) => Math.max(1, n.width)), kt(void 0, h, 0, k);
|
|
931
|
+
}, "draw") }, re = /* @__PURE__ */ d((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
932
|
+
`).trim(), "prepareTextForParsing"), se = /* @__PURE__ */ d((t) => `.label {
|
|
933
|
+
font-family: ${t.fontFamily};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
.node-labels {
|
|
937
|
+
font-family: ${t.fontFamily};
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/* Outlined label style - background stroke for better readability */
|
|
941
|
+
.sankey-label-bg {
|
|
942
|
+
stroke: ${t.mainBkg || t.background || "#fff"};
|
|
943
|
+
stroke-width: 4px;
|
|
944
|
+
stroke-linejoin: round;
|
|
945
|
+
paint-order: stroke;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
/* Foreground label text */
|
|
949
|
+
.sankey-label-fg {
|
|
950
|
+
fill: ${t.textColor};
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
/* Node styling */
|
|
954
|
+
.node rect {
|
|
955
|
+
shape-rendering: crispEdges;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
/* Link styling */
|
|
959
|
+
.link {
|
|
960
|
+
fill: none;
|
|
961
|
+
stroke-opacity: 0.5;
|
|
962
|
+
mix-blend-mode: multiply;
|
|
963
|
+
}
|
|
964
|
+
`, "getStyles"), oe = K.parse.bind(K);
|
|
965
|
+
K.parse = (t) => oe(re(t));
|
|
966
|
+
var he = {
|
|
967
|
+
styles: se,
|
|
968
|
+
parser: K,
|
|
969
|
+
db: te,
|
|
970
|
+
renderer: ie
|
|
971
|
+
};
|
|
972
|
+
export {
|
|
973
|
+
he as diagram
|
|
974
|
+
};
|