@juki-team/base-ui 1.4.126 → 1.4.127
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/esm/ArrowForwardIcon-C60hznwq.js +1 -0
- package/dist/esm/BarChart-Y665GO2I.js +1 -0
- package/dist/esm/{CartesianChart-CHBFhWU-.js → CartesianChart-BSvx15yS.js} +5 -5
- package/dist/esm/ChangePasswordModal-k-lMf3KZ.js +1 -0
- package/dist/esm/CodeEditor-Dzi2v961.js +1 -0
- package/dist/esm/{CodeViewer-B7gQlNa4.js → CodeViewer-BdmCvDHi.js} +1 -1
- package/dist/esm/Collapse-DT9m5JSq.js +1 -0
- package/dist/esm/DataGrid-BMin2rBG.js +277 -0
- package/dist/esm/DataViewer-DFjt8Z2T.js +1 -0
- package/dist/esm/DrawerView-DnA_hA_o.js +1 -0
- package/dist/esm/ExcalidrawButton-BIpwsxPt.js +1 -0
- package/dist/esm/GraphvizViewer-BcJ7nToT.js +1 -0
- package/dist/esm/ImageLoaderCropper-05YcRQBj.js +1 -0
- package/dist/esm/InputCellPhoneNumber-BMf06bCT.js +1 -0
- package/dist/esm/{InputColor-DzcLo0RL.js → InputColor-D4iKI1yK.js} +2 -2
- package/dist/esm/LineChart-BIIgUvoc.js +1 -0
- package/dist/esm/MdMath-DQTMZaLV.js +1 -0
- package/dist/esm/MdMathEditor-BNc7OJyC.js +28 -0
- package/dist/esm/{Popover-DI0clp6-.js → Popover-3_hEGjKj.js} +1 -1
- package/dist/esm/ReplyIcon-DHT60m5d.js +1 -0
- package/dist/esm/SettingsIcon-CwPMEnlj.js +1 -0
- package/dist/esm/SlideDeck-CeJiattp.js +1 -0
- package/dist/esm/{SubmissionDateField-D3AvKusK.js → SubmissionDateField-BrmGyMm3.js} +1 -1
- package/dist/esm/TableOfContents-CuG8yYpo.js +1 -0
- package/dist/esm/TextHeadCell-SVbfF_eL.js +1 -0
- package/dist/esm/Tooltip-DDKwIA6e.js +7 -0
- package/dist/esm/{UserCodeEditor-1Q_AyVss.js → UserCodeEditor-B03D6M_j.js} +9 -9
- package/dist/esm/VirtualizedRowsFixed-CmXcLfyc.js +1 -0
- package/dist/esm/WorksheetAsSlides-DAW1vFDM.js +1 -0
- package/dist/esm/WorksheetBodies-CoKyyPAM.js +1 -0
- package/dist/esm/WorksheetContents-3MJ6QvVj.js +1 -0
- package/dist/esm/WorksheetEditor-MJcu6NAp.js +1 -0
- package/dist/esm/WorksheetNode-CNdvC8qa.js +1 -0
- package/dist/esm/WorksheetViewer-Csl3IhGA.js +1 -0
- package/dist/esm/arc-BNZ5pIhU.js +1 -0
- package/dist/esm/architectureDiagram-3BPJPVTR-EGo92Js8.js +1 -0
- package/dist/esm/{band-D2afako6.js → band-DVHgMxOa.js} +1 -1
- package/dist/esm/basic-setup-Uxna1ORW.js +1 -0
- package/dist/esm/blockDiagram-GPEHLZMM-YEwStt0q.js +1 -0
- package/dist/esm/c4Diagram-AAUBKEIU-6qLMKLHQ.js +1 -0
- package/dist/esm/channel-DuJyewAO.js +1 -0
- package/dist/esm/chunk-2J33WTMH-CSNy6D0K.js +1 -0
- package/dist/esm/{chunk-4BX2VUAB-B3YOaF9V.js → chunk-4BX2VUAB-BG00Pq3P.js} +1 -1
- package/dist/esm/chunk-55IACEB6-_KG92tYv.js +1 -0
- package/dist/esm/chunk-727SXJPM-1yPcPicj.js +1 -0
- package/dist/esm/chunk-AQP2D5EJ-B6rE4s-L.js +1 -0
- package/dist/esm/{chunk-FMBD7UC4-yfeFLPr5.js → chunk-FMBD7UC4-B30SBvYv.js} +1 -1
- package/dist/esm/chunk-ND2GUHAM-Dew5vqZ7.js +1 -0
- package/dist/esm/{chunk-QZHKN3VN-Bu8lDQIJ.js → chunk-QZHKN3VN-DBZ0ofQY.js} +1 -1
- package/dist/esm/classDiagram-4FO5ZUOK-D95DEj2F.js +1 -0
- package/dist/esm/classDiagram-v2-Q7XG4LA2-D95DEj2F.js +1 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/cose-bilkent-S5V4N54A-DvdEsdgg.js +1 -0
- package/dist/esm/dagre-BM42HDAG-CAK4m8n4.js +1 -0
- package/dist/esm/{date-DabTuCYQ.js → date-CmFU6v8V.js} +1 -1
- package/dist/esm/{defaultLocale-HOdfsG1x.js → defaultLocale-BAKTrQtR.js} +1 -1
- package/dist/esm/diagram-2AECGRRQ-CSqNVFb4.js +1 -0
- package/dist/esm/diagram-5GNKFQAL-BWzWwjF5.js +1 -0
- package/dist/esm/diagram-KO2AKTUF-D2-JeanM.js +1 -0
- package/dist/esm/diagram-LMA3HP47-DS2R1tWs.js +1 -0
- package/dist/esm/diagram-OG6HWLK6-DTxKf0Qv.js +1 -0
- package/dist/esm/erDiagram-TEJ5UH35-WtYIPbRt.js +1 -0
- package/dist/esm/{floating-ui.dom-BBZn3WzR.js → floating-ui.dom-D1Wb0QDy.js} +1 -1
- package/dist/esm/flowDiagram-I6XJVG4X-Dy8OXjRp.js +1 -0
- package/dist/esm/ganttDiagram-6RSMTGT7-EDpgQ3lf.js +1 -0
- package/dist/esm/gitGraphDiagram-PVQCEYII-B46XqY2u.js +1 -0
- package/dist/esm/graph-CBbILnwM.js +1 -0
- package/dist/esm/helpers.js +1 -1
- package/dist/esm/index-6wuMZC45.js +1 -0
- package/dist/esm/index-7ZeiemAy.js +1 -0
- package/dist/esm/index-93zckEk3.js +1 -0
- package/dist/esm/{index-BD_n8l03.js → index-9FCB1eYq.js} +1 -1
- package/dist/esm/index-B62yhWOD.js +1 -0
- package/dist/esm/index-BGOJy6XN.js +1 -0
- package/dist/esm/index-BLeJ2vIS.js +1 -0
- package/dist/esm/index-BNfTE7vw.js +1 -0
- package/dist/esm/index-BP3Q2zrN.js +1 -0
- package/dist/esm/index-BP3zM0tT.js +1 -0
- package/dist/esm/index-BRtSnjHY.js +1 -0
- package/dist/esm/index-BqzjQnaK.js +1 -0
- package/dist/esm/{index-CH9DJEEq.js → index-BwuVfyt_.js} +1 -1
- package/dist/esm/index-C5ILZmlq.js +1 -0
- package/dist/esm/index-C78By0NM.js +1 -0
- package/dist/esm/index-CR8iXDSF.js +1 -0
- package/dist/esm/index-CiR06WNd.js +1 -0
- package/dist/esm/index-CjLxDzml.js +1 -0
- package/dist/esm/index-Cp9n6f_0.js +2 -0
- package/dist/esm/index-CscbTRs5.js +1 -0
- package/dist/esm/index-Cub1smTw.js +1 -0
- package/dist/esm/index-DazVIYP8.js +1 -0
- package/dist/esm/index-De9_SWGB.js +1 -0
- package/dist/esm/index-Dg7y6UO5.js +1 -0
- package/dist/esm/index-DntVU4z9.js +1 -0
- package/dist/esm/index-DpJxGesA.js +1 -0
- package/dist/esm/index-FHXK2zWb.js +1 -0
- package/dist/esm/index-LpQq9PxO.js +1 -0
- package/dist/esm/index-QDPpqsGj.js +1 -0
- package/dist/esm/{index-DDs-O4vd.js → index-_4A5sEHw.js} +1 -1
- package/dist/esm/index-cKVkCxcy.js +1 -0
- package/dist/esm/index-uJKDC6Vv.js +1 -0
- package/dist/esm/infoDiagram-5YYISTIA-CY7j_JnA.js +1 -0
- package/dist/esm/{init-DLRA0X12.js → init-DWDD0M30.js} +1 -1
- package/dist/esm/isSymbol-BuOnvf7n.js +1 -0
- package/dist/esm/isUndefined-CFeFfF_Q.js +1 -0
- package/dist/esm/ishikawaDiagram-YF4QCWOH-D6o2nQHa.js +1 -0
- package/dist/esm/journeyDiagram-JHISSGLW-DdFME4_e.js +1 -0
- package/dist/esm/kanban-definition-UN3LZRKU-DVq4JZWr.js +1 -0
- package/dist/esm/layout-B7iAeCjH.js +1 -0
- package/dist/esm/{linear-BRlKh6eb.js → linear-BqR6NtXG.js} +1 -1
- package/dist/esm/{lua-8DXOpKDz.js → lua-BvgfYBhq.js} +1 -1
- package/dist/esm/main.js +1 -1
- package/dist/esm/map-CUEN-iGA.js +1 -0
- package/dist/esm/mermaid.core-BJ63Ijjp.js +1 -0
- package/dist/esm/mindmap-definition-RKZ34NQL-jgbgERyG.js +1 -0
- package/dist/esm/{ordinal-zwWoQKz9.js → ordinal-UuA5o140.js} +1 -1
- package/dist/esm/pieDiagram-4H26LBE5-Kk7ovyMv.js +1 -0
- package/dist/esm/quadrantDiagram-W4KKPZXB-DiMCYk-T.js +1 -0
- package/dist/esm/requirementDiagram-4Y6WPE33-DZBXo7zD.js +1 -0
- package/dist/esm/sankeyDiagram-5OEKKPKP-CJp9Tkkm.js +1 -0
- package/dist/esm/sequenceDiagram-3UESZ5HK-D76l6Rd4.js +1 -0
- package/dist/esm/server.js +1 -1
- package/dist/esm/settings.js +1 -1
- package/dist/esm/stateDiagram-AJRCARHV-CesXVS_W.js +1 -0
- package/dist/esm/stateDiagram-v2-BHNVJYJU-DqWSoWM6.js +1 -0
- package/dist/esm/{string-LeDn2fkG.js → string-CQk_HvWX.js} +1 -1
- package/dist/esm/throttle-omWozCTR.js +1 -0
- package/dist/esm/{time-BPMFfIa-.js → time-BgcLBBP-.js} +1 -1
- package/dist/esm/time-BhHpEZFB.js +1 -0
- package/dist/esm/timeline-definition-PNZ67QCA-CDn8cvlq.js +1 -0
- package/dist/esm/toNumber-DDd3oWg0.js +1 -0
- package/dist/esm/types-Bp4jYQko.js +1 -0
- package/dist/esm/vennDiagram-CIIHVFJN-DlZtAp7y.js +1 -0
- package/dist/esm/viz-BjPw9uNj.js +9 -0
- package/dist/esm/wardley-L42UT6IY-Bn2xZ99U.js +15 -0
- package/dist/esm/wardleyDiagram-YWT4CUSO-DG4_85tj.js +1 -0
- package/dist/esm/{websocket-DCvEZ5Ma.js → websocket-BXbChnc8.js} +1 -1
- package/dist/esm/{worksheet-BxUIsAEo.js → worksheet-BfayCMey.js} +1 -1
- package/dist/esm/{worksheet-D1AAXRU9.js → worksheet-JNPwhsnI.js} +1 -1
- package/dist/esm/{worksheet-ClM0CaBH.js → worksheet-KMCQx4-g.js} +1 -1
- package/dist/esm/xychartDiagram-2RQKCTM6-BYf7oiMn.js +1 -0
- package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/component/diff.d.ts +1 -0
- package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/exception.d.ts +1 -0
- package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/diff.d.ts +1 -0
- package/dist/module-types/node_modules/.pnpm/@milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3/node_modules/@milkdown/kit/lib/plugin/streaming.d.ts +1 -0
- package/package.json +55 -60
- package/src/styles/components/atoms/_button.scss +7 -7
- package/src/vendor/@milkdown/crepe/lib/theme/common/ai.css +446 -0
- package/src/vendor/@milkdown/crepe/lib/theme/common/code-mirror.css +14 -0
- package/src/vendor/@milkdown/crepe/lib/theme/common/diff.css +177 -0
- package/src/vendor/@milkdown/crepe/lib/theme/common/style.css +2 -0
- package/src/vendor/@milkdown/crepe/src/theme/common/ai.css +430 -0
- package/src/vendor/@milkdown/crepe/src/theme/common/code-mirror.css +14 -0
- package/src/vendor/@milkdown/crepe/src/theme/common/diff.css +196 -0
- package/src/vendor/@milkdown/crepe/src/theme/common/style.css +2 -0
- package/src/vendor/fumadocs-ui/css/generated/docs.css +0 -2
- package/src/vendor/fumadocs-ui/css/generated/flux.css +0 -2
- package/src/vendor/fumadocs-ui/css/generated/home.css +0 -8
- package/src/vendor/fumadocs-ui/css/generated/notebook.css +0 -2
- package/src/vendor/fumadocs-ui/css/generated/shared.css +81 -16
- package/src/vendor/fumadocs-ui/dist/style.css +56 -34
- package/src/vendor/handsontable/styles/handsontable.css +335 -82
- package/src/vendor/handsontable/styles/handsontable.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-icons-horizon.css +11 -3
- package/src/vendor/handsontable/styles/ht-icons-horizon.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-icons-main.css +11 -3
- package/src/vendor/handsontable/styles/ht-icons-main.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.css +21 -2
- package/src/vendor/handsontable/styles/ht-theme-classic-no-icons.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-theme-classic.css +32 -5
- package/src/vendor/handsontable/styles/ht-theme-classic.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.css +20 -1
- package/src/vendor/handsontable/styles/ht-theme-horizon-no-icons.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-theme-horizon.css +31 -4
- package/src/vendor/handsontable/styles/ht-theme-horizon.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-theme-main-no-icons.css +21 -2
- package/src/vendor/handsontable/styles/ht-theme-main-no-icons.min.css +4 -3
- package/src/vendor/handsontable/styles/ht-theme-main.css +32 -5
- package/src/vendor/handsontable/styles/ht-theme-main.min.css +4 -3
- package/src/vendor/katex/dist/katex-swap.css +5 -2
- package/src/vendor/katex/dist/katex-swap.min.css +1 -1
- package/src/vendor/katex/dist/katex.css +5 -2
- package/src/vendor/katex/dist/katex.min.css +1 -1
- package/src/vendor/katex/src/styles/katex.scss +3 -1
- package/dist/esm/ArrowForwardIcon-BGNGoaPb.js +0 -1
- package/dist/esm/BarChart-BRhncYPh.js +0 -1
- package/dist/esm/ChangePasswordModal-BQLB54Cr.js +0 -1
- package/dist/esm/CodeEditor-CYG_k0Lp.js +0 -1
- package/dist/esm/Collapse-qB-EKyco.js +0 -1
- package/dist/esm/DataGrid-cnHfaSnO.js +0 -272
- package/dist/esm/DataViewer-CtixdklI.js +0 -1
- package/dist/esm/DrawerView-BX-EuTEz.js +0 -1
- package/dist/esm/ExcalidrawButton-mBvm3E_8.js +0 -1
- package/dist/esm/GraphvizViewer-BSUIZVzn.js +0 -1
- package/dist/esm/ImageLoaderCropper-CAxLOrvB.js +0 -1
- package/dist/esm/InputCellPhoneNumber-sEhV7X7S.js +0 -1
- package/dist/esm/LineChart-9CP_N6Dp.js +0 -1
- package/dist/esm/MdMath-C2cj4Ncj.js +0 -1
- package/dist/esm/MdMathEditor-Bh-kGfC0.js +0 -28
- package/dist/esm/ReplyIcon-B25ABlw2.js +0 -1
- package/dist/esm/SettingsIcon-ive9Ghpw.js +0 -1
- package/dist/esm/SlideDeck-CbQNd9o8.js +0 -1
- package/dist/esm/TableOfContents-h0mxAylD.js +0 -1
- package/dist/esm/TextHeadCell-xNcsNvcB.js +0 -1
- package/dist/esm/Tooltip-B0QLaU02.js +0 -7
- package/dist/esm/VirtualizedRowsFixed-FKX6Oha-.js +0 -1
- package/dist/esm/WorksheetAsSlides-DeGxqAVa.js +0 -1
- package/dist/esm/WorksheetBodies-C6g1jLca.js +0 -1
- package/dist/esm/WorksheetContents-BJVQN9Da.js +0 -1
- package/dist/esm/WorksheetEditor-OLyrUrSa.js +0 -1
- package/dist/esm/WorksheetNode-Cq5WqUjf.js +0 -1
- package/dist/esm/WorksheetViewer-KN7MZ6tv.js +0 -1
- package/dist/esm/_baseIteratee-DJNkOVK7.js +0 -1
- package/dist/esm/_baseUniq-BJKKUJ6e.js +0 -1
- package/dist/esm/arc-CpSlG_nw.js +0 -1
- package/dist/esm/architecture-YZFGNWBL-C3AvEsb9.js +0 -1
- package/dist/esm/architectureDiagram-Q4EWVU46-JfdzkzTF.js +0 -1
- package/dist/esm/basic-setup-Cz3rV4Fo.js +0 -1
- package/dist/esm/blockDiagram-DXYQGD6D-CCNaXRDY.js +0 -1
- package/dist/esm/c4Diagram-AHTNJAMY-DYguHdC-.js +0 -1
- package/dist/esm/channel-BwWtuiHW.js +0 -1
- package/dist/esm/chunk-4TB4RGXK-DoSJMkEM.js +0 -1
- package/dist/esm/chunk-55IACEB6-B252J5rd.js +0 -1
- package/dist/esm/chunk-EDXVE4YY-BFbj9sbF.js +0 -1
- package/dist/esm/chunk-OYMX7WX6-Ck43KFw_.js +0 -1
- package/dist/esm/chunk-YZCP3GAM-BleOO0o9.js +0 -1
- package/dist/esm/classDiagram-6PBFFD2Q-BXMqxslq.js +0 -1
- package/dist/esm/classDiagram-v2-HSJHXN6E-BXMqxslq.js +0 -1
- package/dist/esm/clone-BOCOsCRj.js +0 -1
- package/dist/esm/cose-bilkent-S5V4N54A-B9_if8Zu.js +0 -1
- package/dist/esm/dagre-KV5264BT-DV80i6H7.js +0 -1
- package/dist/esm/diagram-5BDNPKRD-CvSq5VhZ.js +0 -1
- package/dist/esm/diagram-G4DWMVQ6-2LXWeAq0.js +0 -1
- package/dist/esm/diagram-MMDJMWI5-C9TdZJKm.js +0 -1
- package/dist/esm/diagram-TYMM5635-BnRtbot8.js +0 -1
- package/dist/esm/erDiagram-SMLLAGMA-DcBeM5L8.js +0 -1
- package/dist/esm/flowDiagram-DWJPFMVM-DB-IVMWG.js +0 -1
- package/dist/esm/ganttDiagram-T4ZO3ILL-CHeCKKxg.js +0 -1
- package/dist/esm/gitGraph-7Q5UKJZL-NBOYkfJG.js +0 -1
- package/dist/esm/gitGraphDiagram-UUTBAWPF-Bu-s5uIZ.js +0 -1
- package/dist/esm/graph-Da_w8zjC.js +0 -1
- package/dist/esm/index-B8o5x2RR.js +0 -1
- package/dist/esm/index-BIV0VXr-.js +0 -1
- package/dist/esm/index-BXwIVJ1i.js +0 -1
- package/dist/esm/index-B_SR88hF.js +0 -1
- package/dist/esm/index-BdEuQrE0.js +0 -1
- package/dist/esm/index-Bp7rYslS.js +0 -1
- package/dist/esm/index-Buo8u5Rd.js +0 -1
- package/dist/esm/index-BypZQ30J.js +0 -1
- package/dist/esm/index-CDfJgeHe.js +0 -2
- package/dist/esm/index-CG-nC_T_.js +0 -1
- package/dist/esm/index-CG5i3mPd.js +0 -1
- package/dist/esm/index-CLMLLwc9.js +0 -1
- package/dist/esm/index-CUjyY2a3.js +0 -1
- package/dist/esm/index-C__8JPAk.js +0 -1
- package/dist/esm/index-CoedJ1ql.js +0 -1
- package/dist/esm/index-CueeU9Hx.js +0 -1
- package/dist/esm/index-D1ky-z91.js +0 -1
- package/dist/esm/index-DEH449Hc.js +0 -1
- package/dist/esm/index-DFMzt8xL.js +0 -1
- package/dist/esm/index-DI-7QOUe.js +0 -1
- package/dist/esm/index-DSRdBu-J.js +0 -1
- package/dist/esm/index-DUtxMiYq.js +0 -1
- package/dist/esm/index-DquUMjcv.js +0 -1
- package/dist/esm/index-MkWt_kX0.js +0 -1
- package/dist/esm/index-_eiBoCQ6.js +0 -1
- package/dist/esm/index-a79hibwg.js +0 -1
- package/dist/esm/index-iowlALIm.js +0 -1
- package/dist/esm/index-tGGDvGCv.js +0 -1
- package/dist/esm/index-tqdOtCFo.js +0 -1
- package/dist/esm/info-OMHHGYJF-CzmEvbS6.js +0 -1
- package/dist/esm/infoDiagram-42DDH7IO-CPcCPi5m.js +0 -1
- package/dist/esm/isSymbol-CATEdeai.js +0 -1
- package/dist/esm/isUndefined-DgmxjSXK.js +0 -1
- package/dist/esm/ishikawaDiagram-UXIWVN3A-CueHOskG.js +0 -1
- package/dist/esm/journeyDiagram-VCZTEJTY-CIFSUUZI.js +0 -1
- package/dist/esm/kanban-definition-6JOO6SKY-CIs3hbs0.js +0 -1
- package/dist/esm/layout-DDbWXrIm.js +0 -1
- package/dist/esm/map-BvlAjF4J.js +0 -1
- package/dist/esm/memoize-CPUrcYQl.js +0 -1
- package/dist/esm/mermaid-parser.core-DanmL-Td.js +0 -2
- package/dist/esm/mermaid.core-BHSaFUkv.js +0 -1
- package/dist/esm/min-Dc9VrJ6M.js +0 -1
- package/dist/esm/mindmap-definition-QFDTVHPH-SgHbFXe-.js +0 -1
- package/dist/esm/packet-4T2RLAQJ-CPh-Emqi.js +0 -1
- package/dist/esm/pie-ZZUOXDRM-BG9lV5xj.js +0 -1
- package/dist/esm/pieDiagram-DEJITSTG-BXJ3wszp.js +0 -1
- package/dist/esm/quadrantDiagram-34T5L4WZ-DQY0pNz6.js +0 -1
- package/dist/esm/radar-PYXPWWZC-CTTR6mD4.js +0 -1
- package/dist/esm/requirementDiagram-MS252O5E-BEx2GMJz.js +0 -1
- package/dist/esm/sankeyDiagram-XADWPNL6-Xs8yE439.js +0 -1
- package/dist/esm/sequenceDiagram-FGHM5R23-BRN5pTP-.js +0 -1
- package/dist/esm/stateDiagram-FHFEXIEX-BgMmQXPF.js +0 -1
- package/dist/esm/stateDiagram-v2-QKLJ7IA2-DcAYS7fn.js +0 -1
- package/dist/esm/throttle-BsCMUG1-.js +0 -1
- package/dist/esm/time-CyaZFqIA.js +0 -1
- package/dist/esm/timeline-definition-GMOUNBTQ-B8yc3YE0.js +0 -1
- package/dist/esm/toNumber-Bh_HTlSx.js +0 -1
- package/dist/esm/treeView-SZITEDCU-BQoV8XJs.js +0 -1
- package/dist/esm/treemap-W4RFUUIX-BuNBpvu9.js +0 -1
- package/dist/esm/types-Vls6Vkq9.js +0 -1
- package/dist/esm/vennDiagram-DHZGUBPP-CWksExk6.js +0 -1
- package/dist/esm/viz-CFEjElvl.js +0 -9
- package/dist/esm/wardley-RL74JXVD-B1RYxIGW.js +0 -1
- package/dist/esm/wardleyDiagram-NUSXRM2D-B0EUAKR5.js +0 -1
- package/dist/esm/xychartDiagram-5P7HB3ND-KvOi074l.js +0 -1
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/code-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/image-inline.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/index.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/link-tooltip.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/list-item-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/component/table-block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/core.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/ctx.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/block.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/clipboard.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/cursor.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/history.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/indent.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/listener.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/slash.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/tooltip.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/trailing.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/plugin/upload.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/commonmark.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/preset/gfm.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/history.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/index.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/inputrules.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/keymap.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/model.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/state.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/prose/view.d.ts +0 -0
- /package/dist/module-types/node_modules/.pnpm/{@milkdown+kit@7.20.0_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.41.1_typescript@6.0.3 → @milkdown+kit@7.21.1_@codemirror+language@6.12.3_@codemirror+state@6.6.0_@codemirror+view@6.43.0_typescript@6.0.3}/node_modules/@milkdown/kit/lib/utils.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./chunk-55IACEB6-B252J5rd.js";import{s as e}from"./chunk-EDXVE4YY-BFbj9sbF.js";import{_ as s,l as i,c as n,r,u as o,a,b as c,g as l,s as h,q as d,t as u,T as p,k as y,z as g}from"./mermaid.core-BHSaFUkv.js";var f=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,2],i=[1,3],n=[1,4],r=[2,4],o=[1,9],a=[1,11],c=[1,16],l=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],y=[1,21],g=[1,22],f=[1,23],m=[1,24],S=[1,26],k=[1,27],b=[1,28],_=[1,29],T=[1,30],E=[1,31],$=[1,32],C=[1,35],D=[1,36],x=[1,37],v=[1,38],I=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],L=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],w=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],N={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s(function(t,e,s,i,n,r,o){var a=r.length-1;switch(n){case 3:return i.setRootDoc(r[a]),r[a];case 4:this.$=[];break;case 5:"nl"!=r[a]&&(r[a-1].push(r[a]),this.$=r[a-1]);break;case 6:case 7:case 12:this.$=r[a];break;case 8:this.$="nl";break;case 13:const t=r[a-1];t.description=i.trimColon(r[a]),this.$=t;break;case 14:this.$={stmt:"relation",state1:r[a-2],state2:r[a]};break;case 15:const e=i.trimColon(r[a]);this.$={stmt:"relation",state1:r[a-3],state2:r[a-1],description:e};break;case 19:this.$={stmt:"state",id:r[a-3],type:"default",description:"",doc:r[a-1]};break;case 20:var c=r[a],l=r[a-2].trim();if(r[a].match(":")){var h=r[a].split(":");c=h[0],l=[l,h[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 21:this.$={stmt:"state",id:r[a-3],type:"default",description:r[a-5],doc:r[a-1]};break;case 22:this.$={stmt:"state",id:r[a],type:"fork"};break;case 23:this.$={stmt:"state",id:r[a],type:"join"};break;case 24:this.$={stmt:"state",id:r[a],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[a-1].trim(),note:{position:r[a-2].trim(),text:r[a].trim()}};break;case 29:this.$=r[a].trim(),i.setAccTitle(this.$);break;case 30:case 31:this.$=r[a].trim(),i.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[a-3],url:r[a-2],tooltip:r[a-1]};break;case 33:this.$={stmt:"click",id:r[a-3],url:r[a-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[a-1].trim(),classes:r[a].trim()};break;case 36:this.$={stmt:"style",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 37:this.$={stmt:"applyClass",id:r[a-1].trim(),styleClass:r[a].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[a].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:r[a-2].trim(),classes:[r[a].trim()],type:"default",description:""}}},"anonymous"),table:[{3:1,4:e,5:i,6:n},{1:[3]},{3:5,4:e,5:i,6:n},{3:6,4:e,5:i,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:c,17:l,19:h,22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:u,57:I},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(L,[2,44],{58:[1,56]}),t(L,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:u,57:I},t(A,[2,17]),t(w,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,72],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(L,[2,46]),t(L,[2,47]),t(A,[2,15]),t(A,[2,19]),t(w,r,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:o,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:c,17:l,19:h,21:[1,81],22:d,24:u,25:p,26:y,27:g,28:f,29:m,32:25,33:S,35:k,37:b,38:_,41:T,45:E,48:$,51:C,52:D,53:x,54:v,57:I},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],o=[],a=this.table,c="",l=0,h=0,d=o.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p.yy[y]=this.yy[y]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var g=u.yylloc;o.push(g);var f=u.options&&u.options.ranges;function m(){var t;return"number"!=typeof(t=n.pop()||u.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(t){i.length=i.length-2*t,r.length=r.length-t,o.length=o.length-t},"popStack"),s(m,"lex");for(var S,k,b,_,T,E,$,C,D={};;){if(k=i[i.length-1],this.defaultActions[k]?b=this.defaultActions[k]:(null==S&&(S=m()),b=a[k]&&a[k][S]),void 0===b||!b.length||!b[0]){var x="";for(T in C=[],a[k])this.terminals_[T]&&T>2&&C.push("'"+this.terminals_[T]+"'");x=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(x,{text:u.match,token:this.terminals_[S]||S,line:u.yylineno,loc:g,expected:C})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+S);switch(b[0]){case 1:i.push(S),r.push(u.yytext),o.push(u.yylloc),i.push(b[1]),S=null,h=u.yyleng,c=u.yytext,l=u.yylineno,g=u.yylloc;break;case 2:if(E=this.productions_[b[1]][1],D.$=r[r.length-E],D._$={first_line:o[o.length-(E||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(E||1)].first_column,last_column:o[o.length-1].last_column},f&&(D._$.range=[o[o.length-(E||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(D,[c,h,l,p.yy,b[1],r,o].concat(d))))return _;E&&(i=i.slice(0,-1*E*2),r=r.slice(0,-1*E),o=o.slice(0,-1*E)),i.push(this.productions_[b[1]][0]),r.push(D.$),o.push(D._$),$=a[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")},O=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:s(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);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);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(t,e,s,i){switch(s){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:case 45:return 51;case 5:case 46:return 52;case 6:case 47:return 53;case 7:case 48:return 54;case 8:case 9:case 11:case 12:case 13:case 14:case 57:case 59:case 65:break;case 10:case 80:return 5;case 15:case 35:return this.pushState("SCALE"),17;case 16:case 36:return 18;case 17:case 23:case 37:case 52:case 55:this.popState();break;case 18:return this.begin("acc_title"),33;case 19:return this.popState(),"acc_title_value";case 20:return this.begin("acc_descr"),35;case 21:return this.popState(),"acc_descr_value";case 22:this.begin("acc_descr_multiline");break;case 24:return"acc_descr_multiline_value";case 25:return this.pushState("CLASSDEF"),41;case 26:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 27:return this.popState(),this.pushState("CLASSDEFID"),42;case 28:return this.popState(),43;case 29:return this.pushState("CLASS"),48;case 30:return this.popState(),this.pushState("CLASS_STYLE"),49;case 31:return this.popState(),50;case 32:return this.pushState("STYLE"),45;case 33:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;case 34:return this.popState(),47;case 38:this.pushState("STATE");break;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 41:case 44:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 49:this.pushState("STATE_STRING");break;case 50:return this.pushState("STATE_ID"),"AS";case 51:case 67:return this.popState(),"ID";case 53:return"STATE_DESCR";case 54:return 19;case 56:return this.popState(),this.pushState("struct"),20;case 58:return this.popState(),21;case 60:return this.begin("NOTE"),29;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:return this.popState(),this.pushState("NOTE_ID"),60;case 63:this.popState(),this.pushState("FLOATING_NOTE");break;case 64:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 66:return"NOTE_TEXT";case 68:return this.popState(),this.pushState("NOTE_TEXT"),24;case 69:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 70:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 71:case 72:return 6;case 73:return 16;case 74:return 57;case 75:return 24;case 76:return e.yytext=e.yytext.trim(),14;case 77:return 15;case 78:return 28;case 79:return 58;case 81:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:!1},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78,79],inclusive:!1},FLOATING_NOTE_ID:{rules:[67],inclusive:!1},FLOATING_NOTE:{rules:[64,65,66],inclusive:!1},NOTE_TEXT:{rules:[69,70],inclusive:!1},NOTE_ID:{rules:[68],inclusive:!1},NOTE:{rules:[61,62,63],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[34],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[33],inclusive:!1},CLASS_STYLE:{rules:[31],inclusive:!1},CLASS:{rules:[30],inclusive:!1},CLASSDEFID:{rules:[28],inclusive:!1},CLASSDEF:{rules:[26,27],inclusive:!1},acc_descr_multiline:{rules:[23,24],inclusive:!1},acc_descr:{rules:[21],inclusive:!1},acc_title:{rules:[19],inclusive:!1},SCALE:{rules:[16,17,36,37],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[51],inclusive:!1},STATE_STRING:{rules:[52,53],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:!1},ID:{rules:[12,13],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:!0}}}}();function R(){this.yy={}}return N.lexer=O,s(R,"Parser"),R.prototype=N,N.Parser=R,new R}();f.parser=f;var m=f,S="state",k="root",b="relation",_="default",T="divider",E="fill:none",$="fill: #333",C="markdown",D="normal",x="rect",v="rectWithTitle",I="divider",A="roundedWithTitle",L="statediagram",w=`${L}-state`,N="transition",O=`${N} note-edge`,R=`${L}-note`,B=`${L}-cluster`,F=`${L}-cluster-alt`,P="parent",Y="note",G="----",j=`${G}${Y}`,z=`${G}${P}`,W=s((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),M={getClasses:s(function(t,e){return e.db.getClasses()},"getClasses"),draw:s(async function(s,a,c,l){i.info("REF0:"),i.info("Drawing state diagram (v2)",a);const{securityLevel:h,state:d,layout:u}=n();l.db.extract(l.db.getRootDocV2());const p=l.db.getData(),y=t(a,h);p.type=l.type,p.layoutAlgorithm=u,p.nodeSpacing=d?.nodeSpacing||50,p.rankSpacing=d?.rankSpacing||50;"neo"===n().look?p.markers=["barbNeo"]:p.markers=["barb"],p.diagramId=a,await r(p,y);try{("function"==typeof l.db.getLinks?l.db.getLinks():new Map).forEach((t,e)=>{const s="string"==typeof e?e:"string"==typeof e?.id?e.id:"";if(!s)return void i.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));const n=y.node()?.querySelectorAll("g");let r;if(n?.forEach(t=>{const e=t.textContent?.trim();e===s&&(r=t)}),!r)return void i.warn("⚠️ Could not find node matching text:",s);const o=r.parentNode;if(!o)return void i.warn("⚠️ Node has no parent, cannot wrap:",s);const a=document.createElementNS("http://www.w3.org/2000/svg","a"),c=t.url.replace(/^"+|"+$/g,"");if(a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),a.setAttribute("target","_blank"),t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");a.setAttribute("title",e)}o.replaceChild(a,r),a.appendChild(r),i.info("🔗 Wrapped node in <a> tag for:",s,t.url)})}catch(t){i.error("❌ Error injecting clickable links:",t)}o.insertTitle(y,"statediagramTitleText",d?.titleTopMargin??25,l.db.getDiagramTitle()),e(y,8,L,d?.useMaxWidth??!0)},"draw"),getDir:W},U=new Map,X=0;function H(t="",e=0,s="",i=G){return`state-${t}${null!==s&&s.length>0?`${i}${s}`:""}-${e}`}s(H,"stateDomId");var V=s((t,e,s,r,o,a,c,l)=>{i.trace("items",e),e.forEach(e=>{switch(e.stmt){case S:case _:Z(t,e,s,r,o,a,c,l);break;case b:{Z(t,e.state1,s,r,o,a,c,l),Z(t,e.state2,s,r,o,a,c,l);const i="neo"===c,h={id:"edge"+X,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:i?"arrow_barb_neo":"arrow_barb",style:E,labelStyle:"",label:y.sanitizeText(e.description??"",n()),arrowheadStyle:$,labelpos:"c",labelType:C,thickness:D,classes:N,look:c};o.push(h),X++}}})},"setupDoc"),J=s((t,e="TB")=>{let s=e;if(t.doc)for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir");function K(t,e,s){if(!e.id||"</join></fork>"===e.id||"</choice>"===e.id)return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(t=>{const i=s.get(t);i&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles])}));const i=t.find(t=>t.id===e.id);i?Object.assign(i,e):t.push(e)}function q(t){return t?.classes?.join(" ")??""}function Q(t){return t?.styles??[]}s(K,"insertOrUpdateNode"),s(q,"getClassesFromDbInfo"),s(Q,"getStylesFromDbInfo");var Z=s((t,e,s,r,o,a,c,l)=>{const h=e.id,d=s.get(h),u=q(d),p=Q(d),g=n();if(i.info("dataFetcher parsedItem",e,d,p),"root"!==h){let s=x;!0===e.start?s="stateStart":!1===e.start&&(s="stateEnd"),e.type!==_&&(s=e.type),U.get(h)||U.set(h,{id:h,shape:s,description:y.sanitizeText(h,g),cssClasses:`${u} ${w}`,cssStyles:p});const n=U.get(h);e.description&&(Array.isArray(n.description)?(n.shape=v,n.description.push(e.description)):n.description?.length&&n.description.length>0?(n.shape=v,n.description===h?n.description=[e.description]:n.description=[n.description,e.description]):(n.shape=x,n.description=e.description),n.description=y.sanitizeTextOrArray(n.description,g)),1===n.description?.length&&n.shape===v&&("group"===n.type?n.shape=A:n.shape=x),!n.type&&e.doc&&(i.info("Setting cluster for XCX",h,J(e)),n.type="group",n.isGroup=!0,n.dir=J(e),n.shape=e.type===T?I:A,n.cssClasses=`${n.cssClasses} ${B} ${a?F:""}`);const d={labelStyle:"",shape:n.shape,label:n.description,cssClasses:n.cssClasses,cssCompiledStyles:[],cssStyles:n.cssStyles,id:h,dir:n.dir,domId:H(h,X),type:n.type,isGroup:"group"===n.type,padding:8,rx:10,ry:10,look:c,labelType:"markdown"};if(d.shape===I&&(d.label=""),t&&"root"!==t.id&&(i.trace("Setting node ",h," to be child of its parent ",t.id),d.parentId=t.id),d.centerLabel=!0,e.note){const t={labelStyle:"",shape:"note",label:e.note.text,labelType:"markdown",cssClasses:R,cssStyles:[],cssCompiledStyles:[],id:h+j+"-"+X,domId:H(h,X,Y),type:n.type,isGroup:"group"===n.type,padding:g.flowchart?.padding,look:c,position:e.note.position},s=h+z,i={labelStyle:"",shape:"noteGroup",label:e.note.text,cssClasses:n.cssClasses,cssStyles:[],id:h+z,domId:H(h,X,P),type:"group",isGroup:!0,padding:16,look:c,position:e.note.position};X++,i.id=s,t.parentId=s,K(r,i,l),K(r,t,l),K(r,d,l);let a=h,u=t.id;"left of"===e.note.position&&(a=t.id,u=h),o.push({id:a+"-"+u,start:a,end:u,arrowhead:"none",arrowTypeEnd:"",style:E,labelStyle:"",classes:O,arrowheadStyle:$,labelpos:"c",labelType:C,thickness:D,look:c})}else K(r,d,l)}e.doc&&(i.trace("Adding nodes children "),V(e,e.doc,s,r,o,!a,c,l))},"dataFetcher"),tt=s(()=>{U.clear(),X=0},"reset"),et="[*]",st="start",it="[*]",nt="end",rt="color",ot="fill",at="bgFill",ct=",",lt=s(()=>new Map,"newClassesList"),ht=s(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),dt=s(t=>JSON.parse(JSON.stringify(t)),"clone"),ut=class{constructor(t){this.version=t,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=lt(),this.documents={root:ht()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.getAccTitle=a,this.setAccTitle=c,this.getAccDescription=l,this.setAccDescription=h,this.setDiagramTitle=d,this.getDiagramTitle=u,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this)}static{s(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(!0);for(const e of Array.isArray(t)?t:t.doc)switch(e.stmt){case S:this.addState(e.id.trim(),e.type,e.doc,e.description,e.note);break;case b:this.addRelation(e.state1,e.state2,e.description);break;case"classDef":this.addStyleClass(e.id.trim(),e.classes);break;case"style":this.handleStyleDef(e);break;case"applyClass":this.setCssClass(e.id.trim(),e.styleClass);break;case"click":this.addLink(e.id,e.url,e.tooltip)}const e=this.getStates(),s=n();tt(),Z(void 0,this.getRootDocV2(),e,this.nodes,this.edges,!0,s.look,this.classes);for(const t of this.nodes)if(Array.isArray(t.label)){if(t.description=t.label.slice(1),t.isGroup&&t.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${t.id}]`);t.label=t.label[0]}}handleStyleDef(t){const e=t.id.trim().split(","),s=t.styleClass.split(",");for(const t of e){let e=this.getState(t);if(!e){const s=t.trim();this.addState(s),e=this.getState(s)}e&&(e.styles=s.map(t=>t.replace(/;/g,"")?.trim()))}}setRootDoc(t){i.info("Setting root doc",t),this.rootDoc=t,1===this.version?this.extract(t):this.extract(this.getRootDocV2())}docTranslator(t,e,s){if(e.stmt===b)return this.docTranslator(t,e.state1,!0),void this.docTranslator(t,e.state2,!1);if(e.stmt===S&&(e.id===et?(e.id=t.id+(s?"_start":"_end"),e.start=s):e.id=e.id.trim()),e.stmt!==k&&e.stmt!==S||!e.doc)return;const i=[];let n=[];for(const t of e.doc)if(t.type===T){const e=dt(t);e.doc=dt(n),i.push(e),n=[]}else n.push(t);if(i.length>0&&n.length>0){const t={stmt:S,id:p(),type:"divider",doc:dt(n)};i.push(dt(t)),e.doc=i}e.doc.forEach(t=>this.docTranslator(e,t,!0))}getRootDocV2(){return this.docTranslator({id:k,stmt:k},{id:k,stmt:k,doc:this.rootDoc},!0),{id:k,doc:this.rootDoc}}addState(t,e=_,s=void 0,r=void 0,o=void 0,a=void 0,c=void 0,l=void 0){const h=t?.trim();if(this.currentDocument.states.has(h)){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.doc||(t.doc=s),t.type||(t.type=e)}else i.info("Adding state ",h,r),this.currentDocument.states.set(h,{stmt:S,id:h,descriptions:[],type:e,doc:s,note:o,classes:[],styles:[],textStyles:[]});if(r){i.info("Setting state description",h,r);(Array.isArray(r)?r:[r]).forEach(t=>this.addDescription(h,t.trim()))}if(o){const t=this.currentDocument.states.get(h);if(!t)throw new Error(`State not found: ${h}`);t.note=o,t.note.text=y.sanitizeText(t.note.text,n())}if(a){i.info("Setting state classes",h,a);(Array.isArray(a)?a:[a]).forEach(t=>this.setCssClass(h,t.trim()))}if(c){i.info("Setting state styles",h,c);(Array.isArray(c)?c:[c]).forEach(t=>this.setStyle(h,t.trim()))}if(l){i.info("Setting state styles",h,c);(Array.isArray(l)?l:[l]).forEach(t=>this.setTextStyle(h,t.trim()))}}clear(t){this.nodes=[],this.edges=[],this.documents={root:ht()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=lt(),t||(this.links=new Map,g())}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){i.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s}),i.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){return t===et?(this.startEndCount++,`${st}${this.startEndCount}`):t}startTypeIfNeeded(t="",e=_){return t===et?st:e}endIdIfNeeded(t=""){return t===it?(this.startEndCount++,`${nt}${this.startEndCount}`):t}endTypeIfNeeded(t="",e=_){return t===it?nt:e}addRelationObjs(t,e,s=""){const i=this.startIdIfNeeded(t.id.trim()),r=this.startTypeIfNeeded(t.id.trim(),t.type),o=this.startIdIfNeeded(e.id.trim()),a=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),this.addState(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:y.sanitizeText(s,n())})}addRelation(t,e,s){if("object"==typeof t&&"object"==typeof e)this.addRelationObjs(t,e,s);else if("string"==typeof t&&"string"==typeof e){const i=this.startIdIfNeeded(t.trim()),r=this.startTypeIfNeeded(t),o=this.endIdIfNeeded(e.trim()),a=this.endTypeIfNeeded(e);this.addState(i,r),this.addState(o,a),this.currentDocument.relations.push({id1:i,id2:o,relationTitle:s?y.sanitizeText(s,n()):void 0})}}addDescription(t,e){const s=this.currentDocument.states.get(t),i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(y.sanitizeText(i,n()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){this.classes.has(t)||this.classes.set(t,{id:t,styles:[],textStyles:[]});const s=this.classes.get(t);e&&s&&e.split(ct).forEach(t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(rt).exec(t)){const t=e.replace(ot,at).replace(rt,ot);s.textStyles.push(t)}s.styles.push(e)})}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach(t=>{let s=this.getState(t);if(!s){const e=t.trim();this.addState(e),s=this.getState(e)}s?.classes?.push(e)})}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find(t=>"dir"===t.stmt)}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(t){const e=this.getDirectionStatement();e?e.value=t:this.rootDoc.unshift({stmt:"dir",value:t})}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=n();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:W(this.getRootDocV2())}}getConfig(){return n().state}},pt=s(t=>`\ndefs [id$="-barbEnd"] {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: ${t.strokeWidth||1};\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: ${t.strokeWidth||1}px;\n}\n[id$="-barbEnd"] {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth||1}px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n[id$="-dependencyStart"], [id$="-dependencyEnd"] {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: ${t.strokeWidth||1};\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n\n[data-look="neo"].statediagram-cluster rect {\n fill: ${t.mainBkg};\n stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};\n stroke-width: ${t.strokeWidth??1};\n}\n[data-look="neo"].statediagram-cluster rect.outer {\n rx: ${t.radius}px;\n ry: ${t.radius}px;\n filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}\n}\n`,"getStyles");export{ut as S,m as a,M as b,pt as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,d as a,n as r,j as e}from"./mermaid.core-BHSaFUkv.js";var s=t((t,a)=>{const r=t.append("rect");if(r.attr("x",a.x),r.attr("y",a.y),r.attr("fill",a.fill),r.attr("stroke",a.stroke),r.attr("width",a.width),r.attr("height",a.height),a.name&&r.attr("name",a.name),a.rx&&r.attr("rx",a.rx),a.ry&&r.attr("ry",a.ry),void 0!==a.attrs)for(const t in a.attrs)r.attr(t,a.attrs[t]);return a.class&&r.attr("class",a.class),r},"drawRect"),n=t((t,a)=>{const r={x:a.startx,y:a.starty,width:a.stopx-a.startx,height:a.stopy-a.starty,fill:a.fill,stroke:a.stroke,class:"rect"};s(t,r).lower()},"drawBackgroundRect"),o=t((t,a)=>{const e=a.text.replace(r," "),s=t.append("text");s.attr("x",a.x),s.attr("y",a.y),s.attr("class","legend"),s.style("text-anchor",a.anchor),a.class&&s.attr("class",a.class);const n=s.append("tspan");return n.attr("x",a.x+2*a.textMargin),n.text(e),s},"drawText"),i=t((t,a,r,s)=>{const n=t.append("image");n.attr("x",a),n.attr("y",r);const o=e.sanitizeUrl(s);n.attr("xlink:href",o)},"drawImage"),l=t((t,a,r,s)=>{const n=t.append("use");n.attr("x",a),n.attr("y",r);const o=e.sanitizeUrl(s);n.attr("xlink:href",`#${o}`)},"drawEmbeddedImage"),d=t(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),x=t(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),c=t(()=>{let t=a(".mermaidTooltip");return t.empty()&&(t=a("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),t},"createTooltip");export{n as a,x as b,c,s as d,l as e,i as f,d as g,o as h};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r,c as t,a as s,C as i}from"./chunk-4TB4RGXK-DoSJMkEM.js";import{_ as o}from"./mermaid.core-BHSaFUkv.js";import"./chunk-FMBD7UC4-yfeFLPr5.js";import"./chunk-YZCP3GAM-BleOO0o9.js";import"./chunk-55IACEB6-B252J5rd.js";import"./chunk-EDXVE4YY-BFbj9sbF.js";import"./purify.es-BkjUCQC6.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var e={parser:s,get db(){return new i},renderer:t,styles:r,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{e as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r,c as t,a as s,C as i}from"./chunk-4TB4RGXK-DoSJMkEM.js";import{_ as o}from"./mermaid.core-BHSaFUkv.js";import"./chunk-FMBD7UC4-yfeFLPr5.js";import"./chunk-YZCP3GAM-BleOO0o9.js";import"./chunk-55IACEB6-B252J5rd.js";import"./chunk-EDXVE4YY-BFbj9sbF.js";import"./purify.es-BkjUCQC6.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var e={parser:s,get db(){return new i},renderer:t,styles:r,init:o(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{e as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as r}from"./graph-Da_w8zjC.js";function o(o){return r(o,4)}export{o as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,l as e,d as i}from"./mermaid.core-BHSaFUkv.js";import{c as r}from"./cytoscape.esm-B8MMPWBb.js";import{J as n}from"./index-CDfJgeHe.js";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";var o,s={exports:{}},a={exports:{}},h={exports:{}};function l(){return o?h.exports:(o=1,t=function(){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=26)}([function(t,e,i){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,t.exports=r},function(t,e,i){var r=i(2),n=i(8),o=i(9);function s(t,e,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(var a in s.prototype=Object.create(r.prototype),r)s[a]=r[a];s.prototype.getSource=function(){return this.source},s.prototype.getTarget=function(){return this.target},s.prototype.isInterGraph=function(){return this.isInterGraph},s.prototype.getLength=function(){return this.length},s.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},s.prototype.getBendpoints=function(){return this.bendpoints},s.prototype.getLca=function(){return this.lca},s.prototype.getSourceInLca=function(){return this.sourceInLca},s.prototype.getTargetInLca=function(){return this.targetInLca},s.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},s.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==r)break;i=i.getOwner().getParent()}return null},s.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},s.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=s},function(t,e,i){t.exports=function(t){this.vGraphObject=t}},function(t,e,i){var r=i(2),n=i(10),o=i(13),s=i(0),a=i(16),h=i(4);function l(t,e,i,s){null==i&&null==s&&(s=e),r.call(this,s),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=s,this.edges=[],this.graphManager=t,this.rect=null!=i&&null!=e?new o(e.x,e.y,i.width,i.height):new o}for(var g in l.prototype=Object.create(r.prototype),r)l[g]=r[g];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";r.target!=t&&r.source!=t||e.push(r)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach(function(e){t.add(e)});return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),i=0;i<e.length;i++)t+=e[i].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var t,e,i=-s.INITIAL_WORLD_BOUNDARY,r=s.INITIAL_WORLD_BOUNDARY;t=s.WORLD_CENTER_X+a.nextDouble()*(r-i)+i;var n=-s.INITIAL_WORLD_BOUNDARY,o=s.INITIAL_WORLD_BOUNDARY;e=s.WORLD_CENTER_Y+a.nextDouble()*(o-n)+n,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),s.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),i=t.getBottom()-t.getTop();this.labelWidth>e&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>i&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-i)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-i),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>s.WORLD_BOUNDARY?e=s.WORLD_BOUNDARY:e<-s.WORLD_BOUNDARY&&(e=-s.WORLD_BOUNDARY);var i=this.rect.y;i>s.WORLD_BOUNDARY?i=s.WORLD_BOUNDARY:i<-s.WORLD_BOUNDARY&&(i=-s.WORLD_BOUNDARY);var r=new h(e,i),n=t.inverseTransformPoint(r);this.setLocation(n.x,n.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){var r=i(2),n=i(10),o=i(0),s=i(6),a=i(3),h=i(1),l=i(13),g=i(12),u=i(11);function c(t,e,i){r.call(this,i),this.estimatedSize=n.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof s?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var d in c.prototype=Object.create(r.prototype),r)c[d]=r[d];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(t,e,i){if(null==e&&null==i){var r=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var n=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(n.source=e,n.target=i,n.isInterGraph=!1,this.getEdges().push(n),e.edges.push(n),i!=e&&i.edges.push(n),n)},c.prototype.remove=function(t){var e=t;if(t instanceof a){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var i=e.edges.slice(),r=i.length,n=0;n<r;n++)(o=i[n]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(s=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(s,1)}else if(t instanceof h){var o;if(null==(o=t))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var s,l=o.source.edges.indexOf(o),g=o.target.edges.indexOf(o);if(!(l>-1&&g>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(l,1),o.target!=o.source&&o.target.edges.splice(g,1),-1==(s=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(s,1)}},c.prototype.updateLeftTop=function(){for(var t,e,i,r=n.MAX_VALUE,o=n.MAX_VALUE,s=this.getNodes(),a=s.length,h=0;h<a;h++){var l=s[h];r>(t=l.getTop())&&(r=t),o>(e=l.getLeft())&&(o=e)}return r==n.MAX_VALUE?null:(i=null!=s[0].getParent().paddingLeft?s[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=r-i,new g(this.left,this.top))},c.prototype.updateBounds=function(t){for(var e,i,r,o,s,a=n.MAX_VALUE,h=-n.MAX_VALUE,g=n.MAX_VALUE,u=-n.MAX_VALUE,c=this.nodes,d=c.length,p=0;p<d;p++){var f=c[p];t&&null!=f.child&&f.updateBounds(),a>(e=f.getLeft())&&(a=e),h<(i=f.getRight())&&(h=i),g>(r=f.getTop())&&(g=r),u<(o=f.getBottom())&&(u=o)}var y=new l(a,g,h-a,u-g);a==n.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),s=null!=c[0].getParent().paddingLeft?c[0].getParent().paddingLeft:this.margin,this.left=y.x-s,this.right=y.x+y.width+s,this.top=y.y-s,this.bottom=y.y+y.height+s},c.calculateBounds=function(t){for(var e,i,r,o,s=n.MAX_VALUE,a=-n.MAX_VALUE,h=n.MAX_VALUE,g=-n.MAX_VALUE,u=t.length,c=0;c<u;c++){var d=t[c];s>(e=d.getLeft())&&(s=e),a<(i=d.getRight())&&(a=i),h>(r=d.getTop())&&(h=r),g<(o=d.getBottom())&&(g=o)}return new l(s,h,a-s,g-h)},c.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,i=e.length,r=0;r<i;r++)t+=e[r].calcEstimatedSize();return this.estimatedSize=0==t?o.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},c.prototype.updateConnected=function(){var t=this;if(0!=this.nodes.length){var e,i,r=new u,n=new Set,o=this.nodes[0];for(o.withChildren().forEach(function(t){r.push(t),n.add(t)});0!==r.length;)for(var s=(e=(o=r.shift()).getEdges()).length,a=0;a<s;a++)null==(i=e[a].getOtherEndInGraph(o,this))||n.has(i)||i.withChildren().forEach(function(t){r.push(t),n.add(t)});if(this.isConnected=!1,n.size>=this.nodes.length){var h=0;n.forEach(function(e){e.owner==t&&h++}),h==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=c},function(t,e,i){var r,n=i(1);function o(t){r=i(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}n=i,i=t;var o=(r=e).getOwner(),s=n.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==s||s.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==s)return i.isInterGraph=!1,o.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var i,o=[],s=(o=o.concat(e.getEdges())).length,a=0;a<s;a++)i=o[a],e.remove(i);var h,l=[];for(s=(l=l.concat(e.getNodes())).length,a=0;a<s;a++)h=l[a],e.remove(h);e==this.rootGraph&&this.setRootGraph(null);var g=this.graphs.indexOf(e);this.graphs.splice(g,1),e.parent=null}else if(t instanceof n){if(null==(i=t))throw"Edge is null!";if(!i.isInterGraph)throw"Not an inter-graph edge!";if(null==i.source||null==i.target)throw"Source and/or target is null!";if(-1==i.source.edges.indexOf(i)||-1==i.target.edges.indexOf(i))throw"Source and/or target doesn't know this edge!";if(g=i.source.edges.indexOf(i),i.source.edges.splice(g,1),g=i.target.edges.indexOf(i),i.target.edges.splice(g,1),null==i.source.owner||null==i.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==i.source.owner.getGraphManager().edges.indexOf(i))throw"Not in owner graph manager's edge list!";g=i.source.owner.getGraphManager().edges.indexOf(i),i.source.owner.getGraphManager().edges.splice(g,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),i=e.length,r=0;r<i;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var t=[],e=this.getGraphs();e.length;for(var i=0;i<e.length;i++)t=t.concat(e[i].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var i,r=t.getOwner();null!=(i=r.getParent());){if(i==e)return!0;if(null==(r=i.getOwner()))break}for(r=e.getOwner();null!=(i=r.getParent());){if(i==t)return!0;if(null==(r=i.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,i,r,n,o=this.getAllEdges(),s=o.length,a=0;a<s;a++)if(e=(t=o[a]).source,i=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=i,e!=i){for(r=e.getOwner();null==t.lca;){for(t.targetInLca=i,n=i.getOwner();null==t.lca;){if(n==r){t.lca=n;break}if(n==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=n.getParent(),n=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}else t.lca=e.getOwner()},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var i=t.getOwner();null!=i;){for(var r=e.getOwner();null!=r;){if(r==i)return r;r=r.getParent().getOwner()}i=i.getParent().getOwner()}return i},o.prototype.calcInclusionTreeDepths=function(t,e){var i;null==t&&null==e&&(t=this.rootGraph,e=1);for(var r=t.getNodes(),n=r.length,o=0;o<n;o++)(i=r[o]).inclusionTreeDepth=e,null!=i.child&&this.calcInclusionTreeDepths(i.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,i=0;i<e;i++)if(t=this.edges[i],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=o},function(t,e,i){var r=i(0);function n(){}for(var o in r)n[o]=r[o];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=3*n.MAX_NODE_DISPLACEMENT_INCREMENTAL,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=n},function(t,e,i){var r=i(12);function n(){}n.calcSeparationAmount=function(t,e,i,r){if(!t.intersects(e))throw"assert failed";var n=new Array(2);this.decideDirectionsForOverlappingNodes(t,e,n),i[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),i[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var s=o*i[0],a=i[1]/o;i[0]<a?a=i[0]:s=i[1],i[0]=-1*n[0]*(a/2+r),i[1]=-1*n[1]*(s/2+r)},n.decideDirectionsForOverlappingNodes=function(t,e,i){t.getCenterX()<e.getCenterX()?i[0]=-1:i[0]=1,t.getCenterY()<e.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(t,e,i){var r=t.getCenterX(),n=t.getCenterY(),o=e.getCenterX(),s=e.getCenterY();if(t.intersects(e))return i[0]=r,i[1]=n,i[2]=o,i[3]=s,!0;var a=t.getX(),h=t.getY(),l=t.getRight(),g=t.getX(),u=t.getBottom(),c=t.getRight(),d=t.getWidthHalf(),p=t.getHeightHalf(),f=e.getX(),y=e.getY(),E=e.getRight(),v=e.getX(),A=e.getBottom(),N=e.getRight(),T=e.getWidthHalf(),m=e.getHeightHalf(),L=!1,_=!1;if(r===o){if(n>s)return i[0]=r,i[1]=h,i[2]=o,i[3]=A,!1;if(n<s)return i[0]=r,i[1]=u,i[2]=o,i[3]=y,!1}else if(n===s){if(r>o)return i[0]=a,i[1]=n,i[2]=E,i[3]=s,!1;if(r<o)return i[0]=l,i[1]=n,i[2]=f,i[3]=s,!1}else{var O=t.height/t.width,I=e.height/e.width,D=(s-n)/(o-r),w=void 0,R=void 0,C=void 0,M=void 0,x=void 0,G=void 0;if(-O===D?r>o?(i[0]=g,i[1]=u,L=!0):(i[0]=l,i[1]=h,L=!0):O===D&&(r>o?(i[0]=a,i[1]=h,L=!0):(i[0]=c,i[1]=u,L=!0)),-I===D?o>r?(i[2]=v,i[3]=A,_=!0):(i[2]=E,i[3]=y,_=!0):I===D&&(o>r?(i[2]=f,i[3]=y,_=!0):(i[2]=N,i[3]=A,_=!0)),L&&_)return!1;if(r>o?n>s?(w=this.getCardinalDirection(O,D,4),R=this.getCardinalDirection(I,D,2)):(w=this.getCardinalDirection(-O,D,3),R=this.getCardinalDirection(-I,D,1)):n>s?(w=this.getCardinalDirection(-O,D,1),R=this.getCardinalDirection(-I,D,3)):(w=this.getCardinalDirection(O,D,2),R=this.getCardinalDirection(I,D,4)),!L)switch(w){case 1:M=h,C=r+-p/D,i[0]=C,i[1]=M;break;case 2:C=c,M=n+d*D,i[0]=C,i[1]=M;break;case 3:M=u,C=r+p/D,i[0]=C,i[1]=M;break;case 4:C=g,M=n+-d*D,i[0]=C,i[1]=M}if(!_)switch(R){case 1:G=y,x=o+-m/D,i[2]=x,i[3]=G;break;case 2:x=N,G=s+T*D,i[2]=x,i[3]=G;break;case 3:G=A,x=o+m/D,i[2]=x,i[3]=G;break;case 4:x=v,G=s+-T*D,i[2]=x,i[3]=G}}return!1},n.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},n.getIntersection=function(t,e,i,n){if(null==n)return this.getIntersection2(t,e,i);var o,s,a,h,l,g,u,c=t.x,d=t.y,p=e.x,f=e.y,y=i.x,E=i.y,v=n.x,A=n.y;return 0===(u=(o=f-d)*(h=y-v)-(s=A-E)*(a=c-p))?null:new r((a*(g=v*E-y*A)-h*(l=p*d-c*f))/u,(s*l-o*g)/u)},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i<t?n+=Math.PI:r<e&&(n+=this.TWO_PI)):n=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,n},n.doIntersect=function(t,e,i,r){var n=t.x,o=t.y,s=e.x,a=e.y,h=i.x,l=i.y,g=r.x,u=r.y,c=(s-n)*(u-l)-(g-h)*(a-o);if(0===c)return!1;var d=((u-l)*(g-n)+(h-g)*(u-o))/c,p=((o-a)*(g-n)+(s-n)*(u-o))/c;return 0<d&&d<1&&0<p&&p<1},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,t.exports=n},function(t,e,i){function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,t.exports=r},function(t,e,i){var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){return{value:t,next:null,prev:null}},o=function(t,e,i,r){return null!==t?t.next=e:r.head=e,null!==i?i.prev=e:r.tail=e,e.prev=t,e.next=i,r.length++,e},s=function(t,e){var i=t.prev,r=t.next;return null!==i?i.next=r:e.head=r,null!==r?r.prev=i:e.tail=i,t.prev=t.next=null,e.length--,t},a=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach(function(t){return i.push(t)})}return r(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,n(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,n(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,n(t),null,this)}},{key:"unshift",value:function(t){return o(null,n(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,i=this.head;e<t;)i=i.next,e++;return i.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var i=1,r=this.head;i<t;)r=r.next,i++;r.value=e}}}]),t}();t.exports=a},function(t,e,i){function r(t,e,i){this.x=null,this.y=null,null==t&&null==e&&null==i?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==i?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==i&&(i=t,this.x=i.x,this.y=i.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(t,e,i){"Point"==t.constructor.name&&null==e&&null==i?(i=t,this.setLocation(i.x,i.y)):"number"==typeof t&&"number"==typeof e&&null==i&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){if("Point"==t.constructor.name){var e=t;return this.x==e.x&&this.y==e.y}return this==t},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,i){function r(t,e,i,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=i&&null!=r&&(this.x=t,this.y=e,this.width=i,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},t.exports=r},function(t,e,i){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function n(){}n.lastID=0,n.createID=function(t){return n.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=n.getString(),n.lastID++),t.uniqueID)},n.getString=function(t){return null==t&&(t=n.lastID),"Object#"+t},n.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=n},function(t,e,i){function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}var n=i(0),o=i(6),s=i(3),a=i(1),h=i(5),l=i(4),g=i(17),u=i(27);function c(t){u.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}c.RANDOM_SEED=1,c.prototype=Object.create(u.prototype),c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},c.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},c.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},c.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},c.prototype.newGraph=function(t){return new h(null,this.graphManager,t)},c.prototype.newNode=function(t){return new s(this.graphManager,t)},c.prototype.newEdge=function(t){return new a(null,null,t)},c.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},c.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(t&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},c.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},c.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var i=this.graphManager.getRoot().getNodes();for(e=0;e<i.length;e++)i[e];this.update(this.graphManager.getRoot())}},c.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof s){var e=t;if(null!=e.getChild())for(var i=e.getChild().getNodes(),r=0;r<i.length;r++)update(i[r]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else if(t instanceof a){var n=t;null!=n.vGraphObject&&n.vGraphObject.update(n)}else if(t instanceof h){var o=t;null!=o.vGraphObject&&o.vGraphObject.update(o)}},c.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},c.prototype.transform=function(t){if(null==t)this.transform(new l(0,0));else{var e=new g,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(i.x),e.setDeviceOrgY(i.y);for(var r=this.getAllNodes(),n=0;n<r.length;n++)r[n].transform(e)}}},c.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,i,r=t.getNodes(),n=0;n<r.length;n++)null==(i=(e=r[n]).getChild())||0==i.getNodes().length?e.scatter():(this.positionNodesRandomly(i),e.updateBounds())},c.prototype.getFlatForest=function(){for(var t=[],e=!0,i=this.graphManager.getRoot().getNodes(),n=!0,o=0;o<i.length;o++)null!=i[o].getChild()&&(n=!1);if(!n)return t;var s=new Set,a=[],h=new Map,l=[];for(l=l.concat(i);l.length>0&&e;){for(a.push(l[0]);a.length>0&&e;){var g=a[0];a.splice(0,1),s.add(g);var u=g.getEdges();for(o=0;o<u.length;o++){var c=u[o].getOtherEnd(g);if(h.get(g)!=c){if(s.has(c)){e=!1;break}a.push(c),h.set(c,g)}}}if(e){var d=[].concat(r(s));for(t.push(d),o=0;o<d.length;o++){var p=d[o],f=l.indexOf(p);f>-1&&l.splice(f,1)}s=new Set,h=new Map}else t=[]}return t},c.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n<t.bendpoints.length;n++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var s=this.newEdge(null);this.graphManager.add(s,i,o),e.add(o),i=o}return s=this.newEdge(null),this.graphManager.add(s,i,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):r.remove(t),e},c.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var i=t[e];if(i.bendpoints.length>0){for(var n=this.edgeToDummyNodes.get(i),o=0;o<n.length;o++){var s=n[o],a=new l(s.getCenterX(),s.getCenterY()),h=i.bendpoints.get(o);h.x=a.x,h.y=a.y,s.getOwner().remove(s)}this.graphManager.add(i,i.source,i.target)}}},c.transform=function(t,e,i,r){if(null!=i&&null!=r){var n=e;return t<=50?n-=(e-e/i)/50*(50-t):n+=(e*r-e)/50*(t-50),n}var o,s;return t<=50?(o=9*e/500,s=e/10):(o=9*e/50,s=-8*e),o*t+s},c.findCenterOfTree=function(t){var e=[];e=e.concat(t);var i=[],r=new Map,n=!1,o=null;1!=e.length&&2!=e.length||(n=!0,o=e[0]);for(var s=0;s<e.length;s++){var a=(g=e[s]).getNeighborsList().size;r.set(g,g.getNeighborsList().size),1==a&&i.push(g)}var h=[];for(h=h.concat(i);!n;){var l=[];for(l=l.concat(h),h=[],s=0;s<e.length;s++){var g=e[s],u=e.indexOf(g);u>=0&&e.splice(u,1),g.getNeighborsList().forEach(function(t){if(i.indexOf(t)<0){var e=r.get(t)-1;1==e&&h.push(t),r.set(t,e)}})}i=i.concat(h),1!=e.length&&2!=e.length||(n=!0,o=e[0])}return o},c.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=c},function(t,e,i){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,i){var r=i(4);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){var r=i(15),n=i(7),o=i(0),s=i(8),a=i(9);function h(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=n.DEFAULT_EDGE_LENGTH,this.springConstant=n.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=n.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var l in h.prototype=Object.create(r.prototype),r)h[l]=r[l];h.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,s,a,h=this.getGraphManager().getAllEdges(),l=0;l<h.length;l++)(t=h[l]).idealLength=this.idealEdgeLength,t.isInterGraph&&(i=t.getSource(),r=t.getTarget(),s=t.getSourceInLca().getEstimatedSize(),a=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=s+a-2*o.SIMPLE_NODE_SIZE),e=t.getLca().getInclusionTreeDepth(),t.idealLength+=n.DEFAULT_EDGE_LENGTH*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(i.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*e))},h.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i<e.length;i++)t=e[i],this.calcSpringForce(t,t.idealLength)},h.prototype.calcRepulsionForces=function(){var t,e,i,r,o,s=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),o=new Set,t=0;t<h.length;t++)i=h[t],this.calculateRepulsionForceOfANode(i,o,s,a),o.add(i);else for(t=0;t<h.length;t++)for(i=h[t],e=t+1;e<h.length;e++)r=h[e],i.getOwner()==r.getOwner()&&this.calcRepulsionForce(i,r)},h.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),i=0;i<e.length;i++)t=e[i],this.calcGravitationalForce(t)},h.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},h.prototype.calcSpringForce=function(t,e){var i,r,n,o,s=t.getSource(),a=t.getTarget();if(this.uniformLeafNodeSizes&&null==s.getChild()&&null==a.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(i=t.getLength())&&(n=(r=this.springConstant*(i-e))*(t.lengthX/i),o=r*(t.lengthY/i),s.springForceX+=n,s.springForceY+=o,a.springForceX-=n,a.springForceY-=o)},h.prototype.calcRepulsionForce=function(t,e){var i,r,o,h,l,g,u,c=t.getRect(),d=e.getRect(),p=new Array(2),f=new Array(4);if(c.intersects(d)){s.calcSeparationAmount(c,d,p,n.DEFAULT_EDGE_LENGTH/2),g=2*p[0],u=2*p[1];var y=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=y*g,t.repulsionForceY-=y*u,e.repulsionForceX+=y*g,e.repulsionForceY+=y*u}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(i=d.getCenterX()-c.getCenterX(),r=d.getCenterY()-c.getCenterY()):(s.getIntersection(c,d,f),i=f[2]-f[0],r=f[3]-f[1]),Math.abs(i)<n.MIN_REPULSION_DIST&&(i=a.sign(i)*n.MIN_REPULSION_DIST),Math.abs(r)<n.MIN_REPULSION_DIST&&(r=a.sign(r)*n.MIN_REPULSION_DIST),o=i*i+r*r,h=Math.sqrt(o),g=(l=this.repulsionConstant*t.noOfChildren*e.noOfChildren/o)*i/h,u=l*r/h,t.repulsionForceX-=g,t.repulsionForceY-=u,e.repulsionForceX+=g,e.repulsionForceY+=u},h.prototype.calcGravitationalForce=function(t){var e,i,r,n,o,s,a,h;i=((e=t.getOwner()).getRight()+e.getLeft())/2,r=(e.getTop()+e.getBottom())/2,n=t.getCenterX()-i,o=t.getCenterY()-r,s=Math.abs(n)+t.getWidth()/2,a=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(s>(h=e.getEstimatedSize()*this.gravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n,t.gravitationForceY=-this.gravityConstant*o):(s>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||a>h)&&(t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)(t=e[i]).noOfChildren=t.getNoOfChildren()},h.prototype.calcGrid=function(t){var e,i;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var r=new Array(e),n=0;n<e;n++)r[n]=new Array(i);for(n=0;n<e;n++)for(var o=0;o<i;o++)r[n][o]=new Array;return r},h.prototype.addNodeToGrid=function(t,e,i){var r,n,o,s;r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),n=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-i)/this.repulsionRange)),s=parseInt(Math.floor((t.getRect().height+t.getRect().y-i)/this.repulsionRange));for(var a=r;a<=n;a++)for(var h=o;h<=s;h++)this.grid[a][h].push(t),t.setGridCoordinates(r,n,o,s)},h.prototype.updateGrid=function(){var t,e,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<i.length;t++)e=i[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(t,e,i,r){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&i||r){var o,s=new Set;t.surrounding=new Array;for(var a=this.grid,h=t.startX-1;h<t.finishX+2;h++)for(var l=t.startY-1;l<t.finishY+2;l++)if(!(h<0||l<0||h>=a.length||l>=a[0].length))for(var g=0;g<a[h][l].length;g++)if(o=a[h][l][g],t.getOwner()==o.getOwner()&&t!=o&&!e.has(o)&&!s.has(o)){var u=Math.abs(t.getCenterX()-o.getCenterX())-(t.getWidth()/2+o.getWidth()/2),c=Math.abs(t.getCenterY()-o.getCenterY())-(t.getHeight()/2+o.getHeight()/2);u<=this.repulsionRange&&c<=this.repulsionRange&&s.add(o)}t.surrounding=[].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(s))}for(h=0;h<t.surrounding.length;h++)this.calcRepulsionForce(t,t.surrounding[h])},h.prototype.calcRepulsionRange=function(){return 0},t.exports=h},function(t,e,i){var r=i(1),n=i(7);function o(t,e,i){r.call(this,t,e,i),this.idealLength=n.DEFAULT_EDGE_LENGTH}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];t.exports=o},function(t,e,i){var r=i(3);function n(t,e,i,n){r.call(this,t,e,i,n),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];n.prototype.setGridCoordinates=function(t,e,i,r){this.startX=t,this.finishX=e,this.startY=i,this.finishY=r},t.exports=n},function(t,e,i){function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,i){var r=i(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(t,e){var i=r.createID(t);this.contains(i)||(this.map[i]=e,this.keys.push(t))},n.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},n.prototype.get=function(t){var e=r.createID(t);return this.map[e]},n.prototype.keySet=function(){return this.keys},t.exports=n},function(t,e,i){var r=i(14);function n(){this.set={}}n.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},n.prototype.remove=function(t){delete this.set[r.createID(t)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(t){return this.set[r.createID(t)]==t},n.prototype.isEmpty=function(){return 0===this.size()},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),i=e.length,r=0;r<i;r++)t.push(this.set[e[r]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(t){for(var e=t.length,i=0;i<e;i++){var r=t[i];this.add(r)}},t.exports=n},function(t,e,i){var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=i(11),o=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),null===i&&void 0===i||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=e instanceof n?e.size():e.length,this._quicksort(e,0,r-1)}return r(t,[{key:"_quicksort",value:function(t,e,i){if(e<i){var r=this._partition(t,e,i);this._quicksort(t,e,r),this._quicksort(t,r+1,i)}}},{key:"_partition",value:function(t,e,i){for(var r=this._get(t,e),n=e,o=i;;){for(;this.compareFunction(r,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,n),r);)n++;if(!(n<o))return o;this._swap(t,n,o),n++,o--}}},{key:"_get",value:function(t,e){return t instanceof n?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,i){t instanceof n?t.set_object_at(e,i):t[e]=i}},{key:"_swap",value:function(t,e,i){var r=this._get(t,e);this._set(t,e,this._get(t,i)),this._set(t,i,r)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}();t.exports=o},function(t,e,i){var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(){function t(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sequence1=e,this.sequence2=i,this.match_score=r,this.mismatch_penalty=n,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var a=0;a<this.jMax;a++)this.grid[s][a]=0}this.tracebackGrid=new Array(this.iMax);for(var h=0;h<this.iMax;h++){this.tracebackGrid[h]=new Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[h][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var r=1;r<this.jMax;r++){var n=[this.sequence1[i-1]===this.sequence2[r-1]?this.grid[i-1][r-1]+this.match_score:this.grid[i-1][r-1]+this.mismatch_penalty,this.grid[i-1][r]+this.gap_penalty,this.grid[i][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(n);this.grid[i][r]=n[o[0]],this.tracebackGrid[i][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],i=this.tracebackGrid[e.pos[0]][e.pos[1]];i[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),i[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),i[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var i=[],r=-1;-1!==(r=t.indexOf(e,r+1));)i.push(r);return i}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}();t.exports=n},function(t,e,i){var r=function(){};r.FDLayout=i(18),r.FDLayoutConstants=i(7),r.FDLayoutEdge=i(19),r.FDLayoutNode=i(20),r.DimensionD=i(21),r.HashMap=i(22),r.HashSet=i(23),r.IGeometry=i(8),r.IMath=i(9),r.Integer=i(10),r.Point=i(12),r.PointD=i(4),r.RandomSeed=i(16),r.RectangleD=i(13),r.Transform=i(17),r.UniqueIDGeneretor=i(14),r.Quicksort=i(24),r.LinkedList=i(11),r.LGraphObject=i(2),r.LGraph=i(5),r.LEdge=i(1),r.LGraphManager=i(6),r.LNode=i(3),r.Layout=i(15),r.LayoutConstants=i(0),r.NeedlemanWunsch=i(25),t.exports=r},function(t,e,i){function r(){this.listeners=[]}var n=r.prototype;n.addListener=function(t,e){this.listeners.push({event:t,callback:e})},n.removeListener=function(t,e){for(var i=this.listeners.length;i>=0;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i<this.listeners.length;i++){var r=this.listeners[i];t===r.event&&r.callback(e)}},t.exports=r}])},h.exports=t());var t}var g;var u;var c,d,p=(u||(u=1,s.exports=(c=g?a.exports:(g=1,d=function(t){return function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=7)}([function(e,i){e.exports=t},function(t,e,i){var r=i(0).FDLayoutConstants;function n(){}for(var o in r)n[o]=r[o];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=n},function(t,e,i){var r=i(0).FDLayoutEdge;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){var r=i(0).LGraph;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){var r=i(0).LGraphManager;function n(t){r.call(this,t)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},function(t,e,i){var r=i(0).FDLayoutNode,n=i(0).IMath;function o(t,e,i,n){r.call(this,t,e,i,n)}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n<r.length;n++)null==(i=r[n]).getChild()?(i.moveBy(t,e),i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},function(t,e,i){var r=i(0).FDLayout,n=i(4),o=i(3),s=i(5),a=i(2),h=i(1),l=i(0).FDLayoutConstants,g=i(0).LayoutConstants,u=i(0).Point,c=i(0).PointD,d=i(0).Layout,p=i(0).Integer,f=i(0).IGeometry,y=i(0).LGraph,E=i(0).Transform;function v(){r.call(this),this.toBeTiled={}}for(var A in v.prototype=Object.create(r.prototype),r)v[A]=r[A];v.prototype.newGraphManager=function(){var t=new n(this);return this.graphManager=t,t},v.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},v.prototype.newNode=function(t){return new s(this.graphManager,t)},v.prototype.newEdge=function(t){return new a(null,null,t)},v.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){return g.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},v.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)h.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(t){return e.has(t)}),this.graphManager.setAllNodesToApplyGravitation(i));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),i=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(i),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var r=t[i].rect,n=t[i].id;e[n]={id:n,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===l.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,i=[],r=this.graphManager.getGraphs(),n=r.length;for(e=0;e<n;e++)(t=r[e]).updateConnected(),t.isConnected||(i=i.concat(t.getNodes()));return i},v.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,i=new Set;for(e=0;e<t.length;e++){var r=t[e];if(!i.has(r)){var n=r.getSource(),o=r.getTarget();if(n==o)r.getBendpoints().push(new c),r.getBendpoints().push(new c),this.createDummyNodesForBendpoints(r),i.add(r);else{var s=[];if(s=(s=s.concat(n.getEdgeListToNode(o))).concat(o.getEdgeListToNode(n)),!i.has(s[0])){var a;if(s.length>1)for(a=0;a<s.length;a++){var h=s[a];h.getBendpoints().push(new c),this.createDummyNodesForBendpoints(h)}s.forEach(function(t){i.add(t)})}}}if(i.size==t.length)break}},v.prototype.positionNodesRadially=function(t){for(var e=new u(0,0),i=Math.ceil(Math.sqrt(t.length)),r=0,n=0,o=0,s=new c(0,0),a=0;a<t.length;a++){a%i==0&&(o=0,n=r,0!=a&&(n+=h.DEFAULT_COMPONENT_SEPERATION),r=0);var l=t[a],p=d.findCenterOfTree(l);e.x=o,e.y=n,(s=v.radialLayout(l,p,e)).y>r&&(r=Math.floor(s.y)),o=Math.floor(s.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new c(g.WORLD_CENTER_X-s.x/2,g.WORLD_CENTER_Y-s.y/2))},v.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(e,null,0,359,0,r);var n=y.calculateBounds(t),o=new E;o.setDeviceOrgX(n.getMinX()),o.setDeviceOrgY(n.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var s=0;s<t.length;s++)t[s].transform(o);var a=new c(n.getMaxX(),n.getMaxY());return o.inverseTransformPoint(a)},v.branchRadialLayout=function(t,e,i,r,n,o){var s=(r-i+1)/2;s<0&&(s+=180);var a=(s+i)%360*f.TWO_PI/360,h=n*Math.cos(a),l=n*Math.sin(a);t.setCenter(h,l);var g=[],u=(g=g.concat(t.getEdges())).length;null!=e&&u--;for(var c,d=0,p=g.length,y=t.getEdgesBetween(e);y.length>1;){var E=y[0];y.splice(0,1);var A=g.indexOf(E);A>=0&&g.splice(A,1),p--,u--}c=null!=e?(g.indexOf(y[0])+1)%p:0;for(var N=Math.abs(r-i)/u,T=c;d!=u;T=++T%p){var m=g[T].getOtherEnd(t);if(m!=e){var L=(i+d*N)%360,_=(L+N)%360;v.branchRadialLayout(m,t,L,_,n+o,o),d++}}},v.maxDiagonalInTree=function(t){for(var e=p.MIN_VALUE,i=0;i<t.length;i++){var r=t[i].getDiagonal();r>e&&(e=r)}return e},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),n=0;n<r.length;n++){var o=(a=r[n]).getParent();0!==this.getNodeDegreeWithChildren(a)||null!=o.id&&this.getToBeTiled(o)||i.push(a)}for(n=0;n<i.length;n++){var a,h=(a=i[n]).getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(a)}Object.keys(e).forEach(function(i){if(e[i].length>1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var n=e[i][0].getParent(),o=new s(t.graphManager);o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o;var a=t.getGraphManager().add(t.newGraph(),o),h=n.getChild();h.add(o);for(var l=0;l<e[i].length;l++){var g=e[i][l];h.remove(g),a.add(g)}}})},v.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},v.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(i){var r=t.idToDummyNode[i];e[i]=t.tileNodes(t.memberGroups[i],r.paddingLeft+r.paddingRight),r.rect.width=e[i].width,r.rect.height=e[i].height})},v.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,n=e.paddingTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,n)}},v.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(i){var r=t.idToDummyNode[i],n=r.paddingLeft,o=r.paddingTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,o)})},v.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),n=0;n<r.length;n++){var o=r[n];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[e]=!0,!0},v.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;r<e.length;r++){var n=e[r];n.getSource().id!==n.getTarget().id&&(i+=1)}return i},v.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var i=t.getChild().getNodes(),r=0;r<i.length;r++){var n=i[r];e+=this.getNodeDegreeWithChildren(n)}return e},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},v.prototype.adjustLocations=function(t,e,i,r,n){i+=n;for(var o=e+=r,s=0;s<t.rows.length;s++){var a=t.rows[s];e=o;for(var h=0,l=0;l<a.length;l++){var g=a[l];g.rect.x=e,g.rect.y=i,e+=g.rect.width+t.horizontalPadding,g.rect.height>h&&(h=g.rect.height)}i+=h+t.verticalPadding}},v.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(r){var n=e[r];i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height})},v.prototype.tileNodes=function(t,e){var i={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:h.TILING_PADDING_VERTICAL,horizontalPadding:h.TILING_PADDING_HORIZONTAL};t.sort(function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height<e.rect.width*e.rect.height?1:0});for(var r=0;r<t.length;r++){var n=t[r];0==i.rows.length?this.insertNodeToRow(i,n,0,e):this.canAddHorizontal(i,n.rect.width,n.rect.height)?this.insertNodeToRow(i,n,this.getShortestRowIndex(i),e):this.insertNodeToRow(i,n,i.rows.length,e),this.shiftToLastRow(i)}return i},v.prototype.insertNodeToRow=function(t,e,i,r){var n=r;i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(n),t.rowHeight.push(0));var o=t.rowWidth[i]+e.rect.width;t.rows[i].length>0&&(o+=t.horizontalPadding),t.rowWidth[i]=o,t.width<o&&(t.width=o);var s=e.rect.height;i>0&&(s+=t.verticalPadding);var a=0;s>t.rowHeight[i]&&(a=t.rowHeight[i],t.rowHeight[i]=s,a=t.rowHeight[i]-a),t.height+=a,t.rows[i].push(e)},v.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<i&&(e=r,i=t.rowWidth[r]);return e},v.prototype.getLongestRowIndex=function(t){for(var e=-1,i=Number.MIN_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]>i&&(e=r,i=t.rowWidth[r]);return e},v.prototype.canAddHorizontal=function(t,e,i){var r=this.getShortestRowIndex(t);if(r<0)return!0;var n=t.rowWidth[r];if(n+t.horizontalPadding+e<=t.width)return!0;var o,s,a=0;return t.rowHeight[r]<i&&r>0&&(a=i+t.verticalPadding-t.rowHeight[r]),o=t.width-n>=e+t.horizontalPadding?(t.height+a)/(n+e+t.horizontalPadding):(t.height+a)/t.width,a=i+t.verticalPadding,(s=t.width<e?(t.height+a)/e:(t.height+a)/t.width)<1&&(s=1/s),o<1&&(o=1/o),o<s},v.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,r=t.rows[e],n=r[r.length-1],o=n.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>o&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var s=Number.MIN_VALUE,a=0;a<r.length;a++)r[a].height>s&&(s=r[a].height);e>0&&(s+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=s,t.rowHeight[i]<n.height+t.verticalPadding&&(t.rowHeight[i]=n.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[i];t.height+=l-h,this.shiftToLastRow(t)}},v.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){var r=this.graphManager.getAllNodes(),n=[];i=!1;for(var o=0;o<r.length;o++)1!=(t=r[o]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(n.push([t,t.getEdges()[0],t.getOwner()]),i=!0);if(1==i){for(var s=[],a=0;a<n.length;a++)1==n[a][0].getEdges().length&&(s.push(n[a]),n[a][0].getOwner().remove(n[a][0]));e.push(s),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},v.prototype.growTree=function(t){for(var e,i=t[t.length-1],r=0;r<i.length;r++)e=i[r],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(t){var e,i,r=t[0],n=(i=r==t[1].source?t[1].target:t[1].source).startX,o=i.finishX,s=i.startY,a=i.finishY,h=[0,0,0,0];if(s>0)for(var g=n;g<=o;g++)h[0]+=this.grid[g][s-1].length+this.grid[g][s].length-1;if(o<this.grid.length-1)for(g=s;g<=a;g++)h[1]+=this.grid[o+1][g].length+this.grid[o][g].length-1;if(a<this.grid[0].length-1)for(g=n;g<=o;g++)h[2]+=this.grid[g][a+1].length+this.grid[g][a].length-1;if(n>0)for(g=s;g<=a;g++)h[3]+=this.grid[n-1][g].length+this.grid[n][g].length-1;for(var u,c,d=p.MAX_VALUE,f=0;f<h.length;f++)h[f]<d?(d=h[f],u=1,c=f):h[f]==d&&u++;if(3==u&&0==d)0==h[0]&&0==h[1]&&0==h[2]?e=1:0==h[0]&&0==h[1]&&0==h[3]?e=0:0==h[0]&&0==h[2]&&0==h[3]?e=3:0==h[1]&&0==h[2]&&0==h[3]&&(e=2);else if(2==u&&0==d){var y=Math.floor(2*Math.random());e=0==h[0]&&0==h[1]?0==y?0:1:0==h[0]&&0==h[2]?0==y?0:2:0==h[0]&&0==h[3]?0==y?0:3:0==h[1]&&0==h[2]?0==y?1:2:0==h[1]&&0==h[3]?0==y?1:3:0==y?2:3}else e=4==u&&0==d?y=Math.floor(4*Math.random()):c;0==e?r.setCenter(i.getCenterX(),i.getCenterY()-i.getHeight()/2-l.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==e?r.setCenter(i.getCenterX()+i.getWidth()/2+l.DEFAULT_EDGE_LENGTH+r.getWidth()/2,i.getCenterY()):2==e?r.setCenter(i.getCenterX(),i.getCenterY()+i.getHeight()/2+l.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(i.getCenterX()-i.getWidth()/2-l.DEFAULT_EDGE_LENGTH-r.getWidth()/2,i.getCenterY())},t.exports=v},function(t,e,i){var r={};r.layoutBase=i(0),r.CoSEConstants=i(1),r.CoSEEdge=i(2),r.CoSEGraph=i(3),r.CoSEGraphManager=i(4),r.CoSELayout=i(6),r.CoSENode=i(5),t.exports=r}])},a.exports=d(l())),function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}([function(t,e){t.exports=c},function(t,e,i){var r=i(0).layoutBase.LayoutConstants,n=i(0).layoutBase.FDLayoutConstants,o=i(0).CoSEConstants,s=i(0).CoSELayout,a=i(0).CoSENode,h=i(0).layoutBase.PointD,l=i(0).layoutBase.DimensionD,g={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function u(t){this.options=function(t,e){var i={};for(var r in t)i[r]=t[r];for(var r in e)i[r]=e[r];return i}(g,t),c(this.options)}var c=function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=n.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=n.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=n.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=n.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=n.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=n.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=n.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?r.QUALITY=0:"proof"==t.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=n.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=n.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=n.ANIMATE=r.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};u.prototype.run=function(){var t,e,i=this.options;this.idToLNode={};var r=this.layout=new s,n=this;n.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=r.newGraphManager();this.gm=o;var a=this.options.eles.nodes(),h=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(a),r);for(var l=0;l<h.length;l++){var g=h[l],u=this.idToLNode[g.data("source")],c=this.idToLNode[g.data("target")];u!==c&&0==u.getEdgesBetween(c).length&&(o.add(r.newEdge(),u,c).id=g.id())}var d=function(t,e){"number"==typeof t&&(t=e);var i=t.data("id"),r=n.idToLNode[i];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},p=function o(){for(var s,a=function(){i.fit&&i.cy.fit(i.eles,i.padding),t||(t=!0,n.cy.one("layoutready",i.ready),n.cy.trigger({type:"layoutready",layout:n}))},h=n.options.refresh,l=0;l<h&&!s;l++)s=n.stopped||n.layout.tick();if(s)return r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,n.options.eles.nodes().positions(d),a(),n.cy.one("layoutstop",n.options.stop),n.cy.trigger({type:"layoutstop",layout:n}),e&&cancelAnimationFrame(e),void(t=!1);var g=n.layout.getPositionsData();i.eles.nodes().positions(function(t,e){if("number"==typeof t&&(t=e),!t.isParent()){for(var i=t.id(),r=g[i],n=t;null==r&&(r=g[n.data("parent")]||g["DummyCompound_"+n.data("parent")],g[i]=r,null!=(n=n.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:t.position("x"),y:t.position("y")}}}),a(),e=requestAnimationFrame(o)};return r.addListener("layoutstarted",function(){"during"===n.options.animate&&(e=requestAnimationFrame(p))}),r.runLayout(),"during"!==this.options.animate&&(n.options.eles.nodes().not(":parent").layoutPositions(n,n.options,d),t=!1),this},u.prototype.getTopMostNodes=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].id()]=!0;var r=t.filter(function(t,i){"number"==typeof t&&(t=i);for(var r=t.parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0});return r},u.prototype.processChildrenList=function(t,e,i){for(var r=e.length,n=0;n<r;n++){var o,s,g=e[n],u=g.children(),c=g.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=g.outerWidth()&&null!=g.outerHeight()?t.add(new a(i.graphManager,new h(g.position("x")-c.w/2,g.position("y")-c.h/2),new l(parseFloat(c.w),parseFloat(c.h)))):t.add(new a(this.graphManager))).id=g.data("id"),o.paddingLeft=parseInt(g.css("padding")),o.paddingTop=parseInt(g.css("padding")),o.paddingRight=parseInt(g.css("padding")),o.paddingBottom=parseInt(g.css("padding")),this.options.nodeDimensionsIncludeLabels&&g.isParent()){var d=g.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=g.boundingBox({includeLabels:!0,includeNodes:!1}).h,f=g.css("text-halign");o.labelWidth=d,o.labelHeight=p,o.labelPos=f}this.idToLNode[g.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=u&&u.length>0&&(s=i.getGraphManager().add(i.newGraph(),o),this.processChildrenList(s,u,i))}},u.prototype.stop=function(){return this.stopped=!0,this};var d=function(t){t("layout","cose-bilkent",u)};"undefined"!=typeof cytoscape&&d(cytoscape),t.exports=d}]))),s.exports),f=n(p);function y(t,e){t.forEach(t=>{const i={id:t.id,labelText:t.label,height:t.height,width:t.width,padding:t.padding??0};Object.keys(t).forEach(e=>{["id","label","height","width","padding","x","y"].includes(e)||(i[e]=t[e])}),e.add({group:"nodes",data:i,position:{x:t.x??0,y:t.y??0}})})}function E(t,e){t.forEach(t=>{const i={id:t.id,source:t.start,target:t.end};Object.keys(t).forEach(e=>{["id","start","end"].includes(e)||(i[e]=t[e])}),e.add({group:"edges",data:i})})}function v(t){return new Promise(n=>{const o=i("body").append("div").attr("id","cy").attr("style","display:none"),s=r({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});o.remove(),y(t.nodes,s),E(t.edges,s),s.nodes().forEach(function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}});s.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),s.ready(t=>{e.info("Cytoscape ready",t),n(s)})})}function A(t){return t.nodes().map(t=>{const e=t.data(),i=t.position(),r={id:e.id,x:i.x,y:i.y};return Object.keys(e).forEach(t=>{"id"!==t&&(r[t]=e[t])}),r})}function N(t){return t.edges().map(t=>{const e=t.data(),i=t._private.rscratch,r={id:e.id,source:e.source,target:e.target,startX:i.startX,startY:i.startY,midX:i.midX,midY:i.midY,endX:i.endX,endY:i.endY};return Object.keys(e).forEach(t=>{["id","source","target"].includes(t)||(r[t]=e[t])}),r})}async function T(t,i){e.debug("Starting cose-bilkent layout algorithm");try{m(t);const i=await v(t),r=A(i),n=N(i);return e.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`),{nodes:r,edges:n}}catch(t){throw e.error("Error in cose-bilkent layout algorithm:",t),t}}function m(t){if(!t)throw new Error("Layout data is required");if(!t.config)throw new Error("Configuration is required in layout data");if(!t.rootNode)throw new Error("Root node is required");if(!t.nodes||!Array.isArray(t.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(t.edges))throw new Error("Edges array is required in layout data");return!0}r.use(f),t(y,"addNodes"),t(E,"addEdges"),t(v,"createCytoscapeInstance"),t(A,"extractPositionedNodes"),t(N,"extractPositionedEdges"),t(T,"executeCoseBilkentLayout"),t(m,"validateLayoutData");var L=t(async(t,e,{insertCluster:i,insertEdge:r,insertEdgeLabel:n,insertMarkers:o,insertNode:s,log:a,positionEdgeLabel:h},{algorithm:l})=>{const g={},u={},c=e.select("g");o(c,t.markers,t.type,t.diagramId);const d=c.insert("g").attr("class","subgraphs"),p=c.insert("g").attr("class","edgePaths"),f=c.insert("g").attr("class","edgeLabels"),y=c.insert("g").attr("class","nodes");a.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(t.nodes.map(async e=>{if(e.isGroup){const t={...e};u[e.id]=t,g[e.id]=t,await i(d,e)}else{const i={...e};g[e.id]=i;const r=await s(y,e,{config:t.config,dir:t.direction||"TB"}),n=r.node().getBBox();i.width=n.width,i.height=n.height,i.domId=r,a.debug(`Node ${e.id} dimensions: ${n.width}x${n.height}`)}})),a.debug("Running cose-bilkent layout algorithm");const E={...t,nodes:t.nodes.map(t=>{const e=g[t.id];return{...t,width:e.width,height:e.height}})},v=await T(E,t.config);a.debug("Positioning nodes based on layout results"),v.nodes.forEach(t=>{const e=g[t.id];e?.domId&&(e.domId.attr("transform",`translate(${t.x}, ${t.y})`),e.x=t.x,e.y=t.y,a.debug(`Positioned node ${e.id} at center (${t.x}, ${t.y})`))}),v.edges.forEach(e=>{const i=t.edges.find(t=>t.id===e.id);i&&(i.points=[{x:e.startX,y:e.startY},{x:e.midX,y:e.midY},{x:e.endX,y:e.endY}])}),a.debug("Inserting and positioning edges"),await Promise.all(t.edges.map(async e=>{await n(f,e);const i=g[e.start??""],o=g[e.end??""];if(i&&o){const n=v.edges.find(t=>t.id===e.id);if(n){a.debug("APA01 positionedEdge",n);const s={...e},l=r(p,s,u,t.type,i,o,t.diagramId);h(s,l)}else{const n={...e,points:[{x:i.x||0,y:i.y||0},{x:o.x||0,y:o.y||0}]},s=r(p,n,u,t.type,i,o,t.diagramId);h(n,s)}}})),a.debug("Cose-bilkent rendering completed")},"render");export{L as render};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,ac as t,ad as n,ae as r,af as i,l as a,c as o,ag as s,ah as d,a1 as c,a7 as g,a2 as l,a0 as p,ai as f,aj as h,ak as u}from"./mermaid.core-BHSaFUkv.js";import{G as m}from"./graph-Da_w8zjC.js";import{l as w}from"./layout-DDbWXrIm.js";import{i as y}from"./isUndefined-DgmxjSXK.js";import{c as v}from"./clone-BOCOsCRj.js";import{m as X}from"./map-BvlAjF4J.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";import"./toNumber-Bh_HTlSx.js";function b(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:E(e),edges:N(e)};return y(e.graph())||(t.value=v(e.graph())),t}function E(e){return X(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return y(n)||(i.value=n),y(r)||(i.parent=r),i})}function N(e){return X(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return y(t.name)||(r.name=t.name),y(n)||(r.value=n),r})}var x=new Map,j=new Map,C=new Map,S=e(()=>{j.clear(),C.clear(),x.clear()},"clear"),I=e((e,t)=>{const n=j.get(t)||[];return a.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),D=e((e,t)=>{const n=j.get(t)||[];return a.info("Descendants of ",t," is ",n),a.info("Edge is ",e),e.v!==t&&e.w!==t&&(n?n.includes(e.v)||I(e.v,t)||I(e.w,t)||n.includes(e.w):(a.debug("Tilt, ",t,",not in descendants"),!1))},"edgeInCluster"),k=e((e,t,n,r)=>{a.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),a.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(i=>{if(t.children(i).length>0)k(i,t,n,r);else{const o=t.node(i);a.info("cp ",i," to ",r," with parent ",e),n.setNode(i,o),r!==t.parent(i)&&(a.warn("Setting parent",i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(a.debug("Setting parent",i,e),n.setParent(i,e)):(a.info("In copy ",e,"root",r,"data",t.node(e),r),a.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const s=t.edges(i);a.debug("Copying Edges",s),s.forEach(i=>{a.info("Edge",i);const o=t.edge(i.v,i.w,i.name);a.info("Edge data",o,r);try{D(i,r)?(a.info("Copying as ",i.v,i.w,o,i.name),n.setEdge(i.v,i.w,o,i.name),a.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):a.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(e){a.error(e)}})}a.debug("Removing node",i),t.removeNode(i)})},"copy"),O=e((e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)C.set(i,e),r=[...r,...O(i,t)];return r},"extractDescendants"),G=e((e,t,n)=>{const r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),P=e((e,t,n)=>{const r=t.children(e);if(a.trace("Searching children of id ",e,r),r.length<1)return e;let i;for(const e of r){const r=P(e,t,n),a=G(t,n,r);if(r){if(!(a.length>0))return r;i=r}}return i},"findNonClusterChild"),B=e(e=>x.has(e)&&x.get(e).externalConnections&&x.has(e)?x.get(e).id:e,"getAnchorId"),J=e((e,t)=>{if(!e||t>10)a.debug("Opting out, no graph ");else{a.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(a.warn("Cluster identified",t," Replacement id in edges: ",P(t,e,t)),j.set(t,O(t,e)),x.set(t,{id:P(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const n=e.children(t),r=e.edges();n.length>0?(a.debug("Cluster identified",t,j),r.forEach(e=>{I(e.v,t)^I(e.w,t)&&(a.warn("Edge: ",e," leaves cluster ",t),a.warn("Descendants of XXX ",t,": ",j.get(t)),x.get(t).externalConnections=!0)})):a.debug("Not a cluster ",t,j)});for(let t of x.keys()){const n=x.get(t).id,r=e.parent(n);r!==t&&x.has(r)&&!x.get(r).externalConnections&&(x.get(t).id=r)}e.edges().forEach(function(t){const n=e.edge(t);a.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),a.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(a.warn("Fix XXX",x,"ids:",t.v,t.w,"Translating: ",x.get(t.v)," --- ",x.get(t.w)),x.get(t.v)||x.get(t.w)){if(a.warn("Fixing and trying - removing XXX",t.v,t.w,t.name),r=B(t.v),i=B(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){const i=e.parent(r);x.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){const r=e.parent(i);x.get(r).externalConnections=!0,n.toCluster=t.w}a.warn("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,n,t.name)}}),a.warn("Adjusted Graph",b(e)),A(e,0),a.trace(x)}},"adjustClustersAndEdges"),A=e((e,t)=>{if(a.warn("extractor - ",t,b(e),e.children("D")),t>10)return void a.error("Bailing out");let n=e.nodes(),r=!1;for(const t of n){const n=e.children(t);r=r||n.length>0}if(r){a.debug("Nodes = ",n,t);for(const r of n)if(a.debug("Extracting node",r,x,x.has(r)&&!x.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),x.has(r))if(!x.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){a.warn("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";x.get(r)?.clusterData?.dir&&(n=x.get(r).clusterData.dir,a.warn("Fixing dir",x.get(r).clusterData.dir,n));const i=new m({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});a.warn("Old graph before copy",b(e)),k(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:x.get(r).clusterData,label:x.get(r).label,graph:i}),a.warn("New graph after copy node: (",r,")",b(i)),a.debug("Old graph after copy",b(e))}else a.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!x.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),a.debug(x);else a.debug("Not a cluster",r,t);n=e.nodes(),a.warn("New list of nodes",n);for(const r of n){const n=e.node(r);a.warn(" Now next level",r,n),n?.clusterNode&&A(n.graph,t+1)}}else a.debug("Done, no node has children",e.nodes())},"extractor"),R=e((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{const r=e.children(t),i=R(e,r);n=[...n,...i]}),n},"sorter"),T=e(e=>R(e,e.children()),"sortNodesByHierarchy"),F=e(async(t,n,r,i,o,m)=>{a.warn("Graph in recursive render:XAX",b(n),o);const y=n.graph().rankdir;a.trace("Dir in recursive render - dir:",y);const v=t.insert("g").attr("class","root");n.nodes()?a.info("Recursive render XXX",n.nodes()):a.info("No nodes found for",n),n.edges().length>0&&a.info("Recursive edges",n.edge(n.edges()[0]));const X=v.insert("g").attr("class","clusters"),E=v.insert("g").attr("class","edgePaths"),N=v.insert("g").attr("class","edgeLabels"),j=v.insert("g").attr("class","nodes");await Promise.all(n.nodes().map(async function(e){const t=n.node(e);if(void 0!==o){const t=JSON.parse(JSON.stringify(o.clusterData));a.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",o.height),n.setNode(o.id,t),n.parent(e)||(a.trace("Setting parent",e,o.id),n.setParent(e,o.id,t))}if(a.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e))),t?.clusterNode){a.info("Cluster identified XBX",e,t.width,n.node(e));const{ranksep:o,nodesep:c}=n.graph();t.graph.setGraph({...t.graph.graph(),ranksep:o+25,nodesep:c});const g=await F(j,t.graph,r,i,n.node(e),m),l=g.elem;s(t,l),t.diff=g.diff||0,a.info("New compound node after recursive render XAX",e,"width",t.width,"height",t.height),d(l,t)}else n.children(e).length>0?(a.trace("Cluster - the non recursive path XBX",e,t.id,t,t.width,"Graph:",n),a.trace(P(t.id,n)),x.set(t.id,{id:P(t.id,n),node:t})):(a.trace("Node - the non recursive path XAX",e,j,n.node(e),y),await c(j,n.node(e),{config:m,dir:y}))}));const C=e(async()=>{const e=n.edges().map(async function(e){const t=n.edge(e.v,e.w,e.name);a.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),a.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e))),a.info("Fix",x,"ids:",e.v,e.w,"Translating: ",x.get(e.v),x.get(e.w)),await u(N,t)});await Promise.all(e)},"processEdges");await C(),a.info("Graph before layout:",JSON.stringify(b(n))),a.info("############################################# XXX"),a.info("### Layout ### XXX"),a.info("############################################# XXX"),w(n),a.info("Graph after layout:",JSON.stringify(b(n)));let S=0,{subGraphTitleTotalMargin:I}=g(m);return await Promise.all(T(n).map(async function(e){const t=n.node(e);if(a.info("Position XBX => "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t?.clusterNode)t.y+=I,a.info("A tainted cluster node XBX1",e,t.id,t.width,t.height,t.x,t.y,n.parent(e)),x.get(t.id).node=t,l(t);else if(n.children(e).length>0){a.info("A pure cluster node XBX1",e,t.id,t.x,t.y,t.width,t.height,n.parent(e)),t.height+=I,n.node(t.parentId);const r=t?.padding/2||0,i=t?.labelBBox?.height||0,o=i-r||0;a.debug("OffsetY",o,"labelHeight",i,"halfPadding",r),await p(X,t),x.get(t.id).node=t}else{const e=n.node(t.parentId);t.y+=I/2,a.info("A regular node XBX1 - using the padding",t.id,"parent",t.parentId,t.width,t.height,t.x,t.y,"offsetY",t.offsetY,"parent",e,e?.offsetY,t),l(t)}})),n.edges().forEach(function(e){const t=n.edge(e);a.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t),t.points.forEach(e=>e.y+=I/2);const o=n.node(e.v);var s=n.node(e.w);const d=f(E,t,x,r,o,s,i);h(t,d)}),n.nodes().forEach(function(e){const t=n.node(e);a.info(e,t.type,t.diff),t.isGroup&&(S=t.diff)}),a.warn("Returning from recursive render XAX",v,S),{elem:v,diff:S}},"recursiveRender"),L=e(async(e,s)=>{const d=new m({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=s.select("g");t(c,e.markers,e.type,e.diagramId),n(),r(),i(),S(),e.nodes.forEach(e=>{d.setNode(e.id,{...e}),e.parentId&&d.setParent(e.id,e.parentId)}),a.debug("Edges:",e.edges),e.edges.forEach(e=>{if(e.start===e.end){const t=e.start,n=t+"---"+t+"---1",r=t+"---"+t+"---2",i=d.node(t);d.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),d.setParent(n,i.parentId),d.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),d.setParent(r,i.parentId);const a=structuredClone(e),o=structuredClone(e),s=structuredClone(e);a.label="",a.arrowTypeEnd="none",a.id=t+"-cyclic-special-1",o.arrowTypeStart="none",o.arrowTypeEnd="none",o.id=t+"-cyclic-special-mid",s.label="",i.isGroup&&(a.fromCluster=t,s.toCluster=t),s.id=t+"-cyclic-special-2",s.arrowTypeStart="none",d.setEdge(t,n,a,t+"-cyclic-special-0"),d.setEdge(n,r,o,t+"-cyclic-special-1"),d.setEdge(r,t,s,t+"-cyc<lic-special-2")}else d.setEdge(e.start,e.end,{...e},e.id)}),a.warn("Graph at first:",JSON.stringify(b(d))),J(d),a.warn("Graph after XAX:",JSON.stringify(b(d)));const g=o();await F(c,d,e.type,e.diagramId,void 0,g)},"render");export{L as render};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as e,b as t,s as r,t as i,g as s,a as o,_ as a,G as n,l as d,K as c,e as l,E as p,H as m,z as g}from"./mermaid.core-BHSaFUkv.js";import{p as h}from"./chunk-4BX2VUAB-B3YOaF9V.js";import{I as b}from"./chunk-QZHKN3VN-Bu8lDQIJ.js";import{p as j}from"./mermaid-parser.core-DanmL-Td.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";import"./map-BvlAjF4J.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";var w=new b(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),k=a(()=>{w.reset(),g()},"clear"),x=a(()=>w.records.stack[0],"getRoot"),y=a(()=>w.records.cnt,"getCount"),u=m.treeView,f=a(()=>n(u,p().treeView),"getConfig"),B={clear:k,addNode:a((e,t)=>{for(;e<=w.records.stack[w.records.stack.length-1].level;)w.records.stack.pop();const r={id:w.records.cnt++,level:e,name:t,children:[]};w.records.stack[w.records.stack.length-1].children.push(r),w.records.stack.push(r)},"addNode"),getRoot:x,getCount:y,getConfig:f,getAccTitle:o,getAccDescription:s,getDiagramTitle:i,setAccDescription:r,setAccTitle:t,setDiagramTitle:e},V=a(e=>{h(e,B),e.nodes.map(e=>B.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),C={parse:a(async e=>{const t=await j("treeView",e);d.debug(t),V(t)},"parse")},T=a((e,t,r,i,s)=>{const o=i.append("text").text(r.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:a,width:n}=o.node().getBBox(),d=a+2*s.paddingY,c=n+2*s.paddingX;o.attr("x",e+s.paddingX),o.attr("y",t+d/2),r.BBox={x:e,y:t,width:c,height:d}},"positionLabel"),v=a((e,t,r,i,s,o)=>e.append("line").attr("x1",t).attr("y1",r).attr("x2",i).attr("y2",s).attr("stroke-width",o).attr("class","treeView-node-line"),"positionLine"),N=a((e,t,r)=>{let i=0,s=0;const o=a((e,t,r,o)=>{const a=o*(r.rowIndent+r.paddingX);T(a,i,t,e,r);const{height:n,width:d}=t.BBox;v(e,a-r.rowIndent,i+n/2,a,i+n/2,r.lineThickness),s=Math.max(s,a+d),i+=n},"drawNode"),n=a((t,i=0)=>{o(e,t,r,i),t.children.forEach(e=>{n(e,i+1)});const{x:s,y:a,height:d}=t.BBox;if(t.children.length){const{y:i,height:o}=t.children[t.children.length-1].BBox;v(e,s+r.paddingX,a+d,s+r.paddingX,i+o/2+r.lineThickness/2,r.lineThickness)}},"processNode");return n(t),{totalHeight:i,totalWidth:s}},"drawTree"),I={labelFontSize:"16px",labelColor:"black",lineColor:"black"},X={db:B,renderer:{draw:a((e,t,r,i)=>{d.debug("Rendering treeView diagram\n"+e);const s=i.db,o=s.getRoot(),a=s.getConfig(),n=c(t),p=n.append("g");p.attr("class","tree-view");const{totalHeight:m,totalWidth:g}=N(p,o,a);n.attr("viewBox",`-${a.lineThickness/2} 0 ${g} ${m}`),l(n,m,g,a.useMaxWidth)},"draw")},parser:C,styles:a(({treeView:e})=>{const{labelFontSize:t,labelColor:r,lineColor:i}=n(I,e);return`\n .treeView-node-label {\n font-size: ${t};\n fill: ${r};\n }\n .treeView-node-line {\n stroke: ${i};\n }\n `},"styles")};export{X as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,L as t,E as a,G as r,K as n,e as s,l,as as i,d as o,b as c,a as d,q as p,t as h,g as u,s as f,H as m,at as y,z as g}from"./mermaid.core-BHSaFUkv.js";import{s as x}from"./chunk-EDXVE4YY-BFbj9sbF.js";import{p as S}from"./chunk-4BX2VUAB-B3YOaF9V.js";import{p as v}from"./mermaid-parser.core-DanmL-Td.js";import{b}from"./defaultLocale-HOdfsG1x.js";import{o as w}from"./ordinal-zwWoQKz9.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";import"./map-BvlAjF4J.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";import"./init-DLRA0X12.js";function C(e){var t=0,a=e.children,r=a&&a.length;if(r)for(;--r>=0;)t+=a[r].value;else t=1;e.value=t}function $(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=j)):void 0===t&&(t=L);for(var a,r,n,s,l,i=new T(e),o=[i];a=o.pop();)if((n=t(a.data))&&(l=(n=Array.from(n)).length))for(a.children=n,s=l-1;s>=0;--s)o.push(r=n[s]=new T(n[s])),r.parent=a,r.depth=a.depth+1;return i.eachBefore(k)}function L(e){return e.children}function j(e){return Array.isArray(e)?e[1]:null}function M(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function k(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function T(e){this.data=e,this.depth=this.height=0,this.parent=null}function z(){return 0}function F(e){return function(){return e}}function A(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function B(e,t,a,r,n){for(var s,l=e.children,i=-1,o=l.length,c=e.value&&(r-t)/e.value;++i<o;)(s=l[i]).y0=a,s.y1=n,s.x0=t,s.x1=t+=s.value*c}function N(e,t,a,r,n){for(var s,l=e.children,i=-1,o=l.length,c=e.value&&(n-a)/e.value;++i<o;)(s=l[i]).x0=t,s.x1=r,s.y0=a,s.y1=a+=s.value*c}T.prototype=$.prototype={constructor:T,count:function(){return this.eachAfter(C)},each:function(e,t){let a=-1;for(const r of this)e.call(t,r,++a,this);return this},eachAfter:function(e,t){for(var a,r,n,s=this,l=[s],i=[],o=-1;s=l.pop();)if(i.push(s),a=s.children)for(r=0,n=a.length;r<n;++r)l.push(a[r]);for(;s=i.pop();)e.call(t,s,++o,this);return this},eachBefore:function(e,t){for(var a,r,n=this,s=[n],l=-1;n=s.pop();)if(e.call(t,n,++l,this),a=n.children)for(r=a.length-1;r>=0;--r)s.push(a[r]);return this},find:function(e,t){let a=-1;for(const r of this)if(e.call(t,r,++a,this))return r},sum:function(e){return this.eachAfter(function(t){for(var a=+e(t.data)||0,r=t.children,n=r&&r.length;--n>=0;)a+=r[n].value;t.value=a})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,a=function(e,t){if(e===t)return e;var a=e.ancestors(),r=t.ancestors(),n=null;e=a.pop(),t=r.pop();for(;e===t;)n=e,e=a.pop(),t=r.pop();return n}(t,e),r=[t];t!==a;)t=t.parent,r.push(t);for(var n=r.length;e!==a;)r.splice(n,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(a){a!==e&&t.push({source:a.parent,target:a})}),t},copy:function(){return $(this).eachBefore(M)},[Symbol.iterator]:function*(){var e,t,a,r,n=this,s=[n];do{for(e=s.reverse(),s=[];n=e.pop();)if(yield n,t=n.children)for(a=0,r=t.length;a<r;++a)s.push(t[a])}while(s.length)}};var P=function e(t){function a(e,a,r,n,s){!function(e,t,a,r,n,s){for(var l,i,o,c,d,p,h,u,f,m,y,g=[],x=t.children,S=0,v=0,b=x.length,w=t.value;S<b;){o=n-a,c=s-r;do{d=x[v++].value}while(!d&&v<b);for(p=h=d,y=d*d*(m=Math.max(c/o,o/c)/(w*e)),f=Math.max(h/y,y/p);v<b;++v){if(d+=i=x[v].value,i<p&&(p=i),i>h&&(h=i),y=d*d*m,(u=Math.max(h/y,y/p))>f){d-=i;break}f=u}g.push(l={value:d,dice:o<c,children:x.slice(S,v)}),l.dice?B(l,a,r,n,w?r+=c*d/w:s):N(l,a,r,w?a+=o*d/w:n,s),w-=d,S=v}}(t,e,a,r,n,s)}return a.ratio=function(t){return e((t=+t)>1?t:1)},a}((1+Math.sqrt(5))/2);function D(){var e=P,t=!1,a=1,r=1,n=[0],s=z,l=z,i=z,o=z,c=z;function d(e){return e.x0=e.y0=0,e.x1=a,e.y1=r,e.eachBefore(p),n=[0],t&&e.eachBefore(A),e}function p(t){var a=n[t.depth],r=t.x0+a,d=t.y0+a,p=t.x1-a,h=t.y1-a;p<r&&(r=p=(r+p)/2),h<d&&(d=h=(d+h)/2),t.x0=r,t.y0=d,t.x1=p,t.y1=h,t.children&&(a=n[t.depth+1]=s(t)/2,r+=c(t)-a,d+=l(t)-a,(p-=i(t)-a)<r&&(r=p=(r+p)/2),(h-=o(t)-a)<d&&(d=h=(d+h)/2),e(t,r,d,p,h))}return d.round=function(e){return arguments.length?(t=!!e,d):t},d.size=function(e){return arguments.length?(a=+e[0],r=+e[1],d):[a,r]},d.tile=function(t){return arguments.length?(e=function(e){if("function"!=typeof e)throw new Error;return e}(t),d):e},d.padding=function(e){return arguments.length?d.paddingInner(e).paddingOuter(e):d.paddingInner()},d.paddingInner=function(e){return arguments.length?(s="function"==typeof e?e:F(+e),d):s},d.paddingOuter=function(e){return arguments.length?d.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):d.paddingTop()},d.paddingTop=function(e){return arguments.length?(l="function"==typeof e?e:F(+e),d):l},d.paddingRight=function(e){return arguments.length?(i="function"==typeof e?e:F(+e),d):i},d.paddingBottom=function(e){return arguments.length?(o="function"==typeof e?e:F(+e),d):o},d.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:F(+e),d):c},d}var E=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=c,this.getAccTitle=d,this.setDiagramTitle=p,this.getDiagramTitle=h,this.getAccDescription=u,this.setAccDescription=f}static{e(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const e=m,t=a();return r({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),0===t&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){const a=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");r&&r.forEach(e=>{y(e)&&(a?.textStyles?a.textStyles.push(e):a.textStyles=[e]),a?.styles?a.styles.push(e):a.styles=[e]}),this.classes.set(e,a)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){g(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function V(e){if(!e.length)return[];const t=[],a=[];return e.forEach(e=>{const r={name:e.name,children:"Leaf"===e.type?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),"Leaf"===e.type&&void 0!==e.value&&(r.value=e.value);a.length>0&&a[a.length-1].level>=e.level;)a.pop();if(0===a.length)t.push(r);else{const e=a[a.length-1].node;e.children?e.children.push(r):e.children=[r]}"Leaf"!==e.type&&a.push({node:r,level:e.level})}),t}e(V,"buildHierarchy");var W=e((t,a)=>{S(t,a);const r=[];for(const e of t.TreemapRows??[])"ClassDefStatement"===e.$type&&a.addClass(e.className??"",e.styleText??"");for(const e of t.TreemapRows??[]){const t=e.item;if(!t)continue;const n=e.indent?parseInt(e.indent):0,s=I(t),l=t.classSelector?a.getStylesForClass(t.classSelector):[],i=l.length>0?l:void 0,o={level:n,name:s,type:t.$type,value:t.value,classSelector:t.classSelector,cssCompiledStyles:i};r.push(o)}const n=V(r),s=e((e,t)=>{for(const r of e)a.addNode(r,t),r.children&&r.children.length>0&&s(r.children,t+1)},"addNodesRecursively");s(n,0)},"populate"),I=e(e=>e.name?String(e.name):"","getItemName"),R={parser:{yy:void 0},parse:e(async e=>{try{const t=v,a=await t("treemap",e);l.debug("Treemap AST:",a);const r=R.parser?.yy;if(!(r instanceof E))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");W(a,r)}catch(e){throw l.error("Error parsing treemap:",e),e}},"parse")},H=10,q={draw:e((t,r,c,d)=>{const p=d.db,h=p.getConfig(),u=h.padding??10,f=p.getDiagramTitle(),m=p.getRoot(),{themeVariables:y}=a();if(!m)return;const g=f?30:0,S=n(r),v=h.nodeWidth?h.nodeWidth*H:960,C=h.nodeHeight?h.nodeHeight*H:500,L=v,j=C+g;let M;S.attr("viewBox",`0 0 ${L} ${j}`),s(S,j,L,h.useMaxWidth);try{const t=h.valueFormat||",";if("$0,0"===t)M=e(e=>"$"+b(",")(e),"valueFormat");else if(t.startsWith("$")&&t.includes(",")){const a=/\.\d+/.exec(t),r=a?a[0]:"";M=e(e=>"$"+b(","+r)(e),"valueFormat")}else if(t.startsWith("$")){const a=t.substring(1);M=e(e=>"$"+b(a||"")(e),"valueFormat")}else M=b(t)}catch(e){l.error("Error creating format function:",e),M=b(",")}const k=w().range(["transparent",y.cScale0,y.cScale1,y.cScale2,y.cScale3,y.cScale4,y.cScale5,y.cScale6,y.cScale7,y.cScale8,y.cScale9,y.cScale10,y.cScale11]),T=w().range(["transparent",y.cScalePeer0,y.cScalePeer1,y.cScalePeer2,y.cScalePeer3,y.cScalePeer4,y.cScalePeer5,y.cScalePeer6,y.cScalePeer7,y.cScalePeer8,y.cScalePeer9,y.cScalePeer10,y.cScalePeer11]),z=w().range([y.cScaleLabel0,y.cScaleLabel1,y.cScaleLabel2,y.cScaleLabel3,y.cScaleLabel4,y.cScaleLabel5,y.cScaleLabel6,y.cScaleLabel7,y.cScaleLabel8,y.cScaleLabel9,y.cScaleLabel10,y.cScaleLabel11]);f&&S.append("text").attr("x",L/2).attr("y",g/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(f);const F=S.append("g").attr("transform",`translate(0, ${g})`).attr("class","treemapContainer"),A=$(m).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),B=D().size([v,C]).paddingTop(e=>e.children&&e.children.length>0?35:0).paddingInner(u).paddingLeft(e=>e.children&&e.children.length>0?H:0).paddingRight(e=>e.children&&e.children.length>0?H:0).paddingBottom(e=>e.children&&e.children.length>0?H:0).round(!0)(A),N=B.descendants().filter(e=>e.children&&e.children.length>0),P=F.selectAll(".treemapSection").data(N).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",25).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>0===e.depth?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",25),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>k(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>T(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(0===e.depth)return"display: none;";const t=i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",12.5).attr("dominant-baseline","middle").text(e=>0===e.depth?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(0===e.depth)return"display: none;";return"dominant-baseline: middle; font-size: 12px; fill:"+z(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")}).each(function(e){if(0===e.depth)return;const t=o(this),a=e.data.name;t.text(a);const r=e.x1-e.x0;let n;if(!1!==h.showValues&&e.value){n=r-10-30-10-6}else{n=r-6-6}const s=Math.max(15,n),l=t.node();if(l.getComputedTextLength()>s){const e="...";let r=a;for(;r.length>0;){if(r=a.substring(0,r.length-1),0===r.length){t.text(e),l.getComputedTextLength()>s&&t.text("");break}if(t.text(r+e),l.getComputedTextLength()<=s)break}}}),!1!==h.showValues&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",12.5).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?M(e.value):"").attr("font-style","italic").attr("style",e=>{if(0===e.depth)return"display: none;";return"text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+z(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"+i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")});const E=B.leaves(),V=F.selectAll(".treemapLeafGroup").data(E).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);V.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?k(e.parent.data.name):k(e.data.name)).attr("style",e=>i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?k(e.parent.data.name):k(e.data.name)).attr("stroke-width",3),V.append("clipPath").attr("id",(e,t)=>`clip-${r}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4));if(V.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>"text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+z(e.data.name)+";"+i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.data.name).each(function(e){const t=o(this),a=e.x1-e.x0,r=e.y1-e.y0,n=t.node(),s=a-8,l=r-8;if(s<10||l<10)return void t.style("display","none");let i=parseInt(t.style("font-size"),10);for(;n.getComputedTextLength()>s&&i>8;)i--,t.style("font-size",`${i}px`);let c=Math.max(6,Math.min(28,Math.round(.6*i))),d=i+2+c;for(;d>l&&i>8&&(i--,c=Math.max(6,Math.min(28,Math.round(.6*i))),!(c<6&&8===i));)t.style("font-size",`${i}px`),d=i+2+c;t.style("font-size",`${i}px`),(n.getComputedTextLength()>s||i<8||l<i)&&t.style("display","none")}),!1!==h.showValues){V.append("text").attr("class","treemapValue").attr("x",e=>(e.x1-e.x0)/2).attr("y",function(e){return(e.y1-e.y0)/2}).attr("style",e=>"text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+z(e.data.name)+";"+i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace("color:","fill:")).attr("clip-path",(e,t)=>`url(#clip-${r}-${t})`).text(e=>e.value?M(e.value):"").each(function(e){const t=o(this),a=this.parentNode;if(!a)return void t.style("display","none");const r=o(a).select(".treemapLabel");if(r.empty()||"none"===r.style("display"))return void t.style("display","none");const n=parseFloat(r.style("font-size")),s=Math.max(6,Math.min(28,Math.round(.6*n)));t.style("font-size",`${s}px`);const l=(e.y1-e.y0)/2+n/2+2;t.attr("y",l);const i=e.x1-e.x0,c=e.y1-e.y0-4,d=i-8;t.node().getComputedTextLength()>d||l+s>c||s<6?t.style("display","none"):t.style("display",null)})}const W=h.diagramPadding??8;x(S,W,"flowchart",h?.useMaxWidth||!1)},"draw"),getClasses:e(function(e,t){return t.db.getClasses()},"getClasses")},G={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},O=e(({treemap:e}={})=>{const n=t(),s=a(),l=r(n,s.themeVariables),i=r(G,e),o=i.titleColor??l.titleColor,c=i.labelColor??l.textColor,d=i.valueColor??l.textColor;return`\n .treemapNode.section {\n stroke: ${i.sectionStrokeColor};\n stroke-width: ${i.sectionStrokeWidth};\n fill: ${i.sectionFillColor};\n }\n .treemapNode.leaf {\n stroke: ${i.leafStrokeColor};\n stroke-width: ${i.leafStrokeWidth};\n fill: ${i.leafFillColor};\n }\n .treemapLabel {\n fill: ${c};\n font-size: ${i.labelFontSize};\n }\n .treemapValue {\n fill: ${d};\n font-size: ${i.valueFontSize};\n }\n .treemapTitle {\n fill: ${o};\n font-size: ${i.titleFontSize};\n }\n `},"getStyles"),_={parser:R,get db(){return new E},renderer:q,styles:O};export{_ as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as t,g as e,t as a,q as r,a as s,b as n,_ as i,K as o,z as l,G as c,H as p,E as m,l as d,L as g,e as u}from"./mermaid.core-BHSaFUkv.js";import{p as x}from"./chunk-4BX2VUAB-B3YOaF9V.js";import{p as h}from"./mermaid-parser.core-DanmL-Td.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";import"./map-BvlAjF4J.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";var f={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},$={axes:[],curves:[],options:f},y=structuredClone($),b=p.radar,v=i(()=>c({...b,...m().radar}),"getConfig"),w=i(()=>y.axes,"getAxes"),j=i(()=>y.curves,"getCurves"),M=i(()=>y.options,"getOptions"),C=i(t=>{y.axes=t.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),L=i(t=>{y.curves=t.map(t=>({name:t.name,label:t.label??t.name,entries:k(t.entries)}))},"setCurves"),k=i(t=>{if(null==t[0].axis)return t.map(t=>t.value);const e=w();if(0===e.length)throw new Error("Axes must be populated before curves for reference entries");return e.map(e=>{const a=t.find(t=>t.axis?.$refText===e.name);if(void 0===a)throw new Error("Missing entry for axis "+e.label);return a.value})},"computeCurveEntries"),A={getAxes:w,getCurves:j,getOptions:M,setAxes:C,setCurves:L,setOptions:i(t=>{const e=t.reduce((t,e)=>(t[e.name]=e,t),{});y.options={showLegend:e.showLegend?.value??f.showLegend,ticks:e.ticks?.value??f.ticks,max:e.max?.value??f.max,min:e.min?.value??f.min,graticule:e.graticule?.value??f.graticule}},"setOptions"),getConfig:v,clear:i(()=>{l(),y=structuredClone($)},"clear"),setAccTitle:n,getAccTitle:s,setDiagramTitle:r,getDiagramTitle:a,getAccDescription:e,setAccDescription:t},T=i(t=>{x(t,A);const{axes:e,curves:a,options:r}=t;A.setAxes(e),A.setCurves(a),A.setOptions(r)},"populate"),O={parse:i(async t=>{const e=await h("radar",t);d.debug(e),T(e)},"parse")},S=i((t,e,a,r)=>{const s=r.db,n=s.getAxes(),i=s.getCurves(),l=s.getOptions(),c=s.getConfig(),p=s.getDiagramTitle(),m=o(e),d=I(m,c),g=l.max??Math.max(...i.map(t=>Math.max(...t.entries))),u=l.min,x=Math.min(c.width,c.height)/2;z(d,n,x,l.ticks,l.graticule),E(d,n,x,c),F(d,n,i,u,g,l.graticule,c),P(d,i,l.showLegend,c),d.append("text").attr("class","radarTitle").text(p).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),I=i((t,e)=>{const a=e.width+e.marginLeft+e.marginRight,r=e.height+e.marginTop+e.marginBottom,s=e.marginLeft+e.width/2,n=e.marginTop+e.height/2;return u(t,r,a,e.useMaxWidth??!0),t.attr("viewBox",`0 0 ${a} ${r}`),t.append("g").attr("transform",`translate(${s}, ${n})`)},"drawFrame"),z=i((t,e,a,r,s)=>{if("circle"===s)for(let e=0;e<r;e++){const s=a*(e+1)/r;t.append("circle").attr("r",s).attr("class","radarGraticule")}else if("polygon"===s){const s=e.length;for(let n=0;n<r;n++){const i=a*(n+1)/r,o=e.map((t,e)=>{const a=2*e*Math.PI/s-Math.PI/2;return`${i*Math.cos(a)},${i*Math.sin(a)}`}).join(" ");t.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),E=i((t,e,a,r)=>{const s=e.length;for(let n=0;n<s;n++){const i=e[n].label,o=2*n*Math.PI/s-Math.PI/2;t.append("line").attr("x1",0).attr("y1",0).attr("x2",a*r.axisScaleFactor*Math.cos(o)).attr("y2",a*r.axisScaleFactor*Math.sin(o)).attr("class","radarAxisLine"),t.append("text").text(i).attr("x",a*r.axisLabelFactor*Math.cos(o)).attr("y",a*r.axisLabelFactor*Math.sin(o)).attr("class","radarAxisLabel")}},"drawAxes");function F(t,e,a,r,s,n,i){const o=e.length,l=Math.min(i.width,i.height)/2;a.forEach((e,a)=>{if(e.entries.length!==o)return;const c=e.entries.map((t,e)=>{const a=2*Math.PI*e/o-Math.PI/2,n=B(t,r,s,l);return{x:n*Math.cos(a),y:n*Math.sin(a)}});"circle"===n?t.append("path").attr("d",D(c,i.curveTension)).attr("class",`radarCurve-${a}`):"polygon"===n&&t.append("polygon").attr("points",c.map(t=>`${t.x},${t.y}`).join(" ")).attr("class",`radarCurve-${a}`)})}function B(t,e,a,r){return r*(Math.min(Math.max(t,e),a)-e)/(a-e)}function D(t,e){const a=t.length;let r=`M${t[0].x},${t[0].y}`;for(let s=0;s<a;s++){const n=t[(s-1+a)%a],i=t[s],o=t[(s+1)%a],l=t[(s+2)%a],c={x:i.x+(o.x-n.x)*e,y:i.y+(o.y-n.y)*e},p={x:o.x-(l.x-i.x)*e,y:o.y-(l.y-i.y)*e};r+=` C${c.x},${c.y} ${p.x},${p.y} ${o.x},${o.y}`}return`${r} Z`}function P(t,e,a,r){if(!a)return;const s=3*(r.width/2+r.marginRight)/4,n=3*-(r.height/2+r.marginTop)/4;e.forEach((e,a)=>{const r=t.append("g").attr("transform",`translate(${s}, ${n+20*a})`);r.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${a}`),r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)})}i(F,"drawCurves"),i(B,"relativeRadius"),i(D,"closedRoundCurve"),i(P,"drawLegend");var R={draw:S},G=i((t,e)=>{let a="";for(let r=0;r<t.THEME_COLOR_LIMIT;r++){const s=t[`cScale${r}`];a+=`\n\t\t.radarCurve-${r} {\n\t\t\tcolor: ${s};\n\t\t\tfill: ${s};\n\t\t\tfill-opacity: ${e.curveOpacity};\n\t\t\tstroke: ${s};\n\t\t\tstroke-width: ${e.curveStrokeWidth};\n\t\t}\n\t\t.radarLegendBox-${r} {\n\t\t\tfill: ${s};\n\t\t\tfill-opacity: ${e.curveOpacity};\n\t\t\tstroke: ${s};\n\t\t}\n\t\t`}return a},"genIndexStyles"),_=i(t=>{const e=g(),a=m(),r=c(e,a.themeVariables);return{themeVariables:r,radarOptions:c(r.radar,t)}},"buildRadarStyleOptions"),V={parser:O,db:A,renderer:R,styles:i(({radar:t}={})=>{const{themeVariables:e,radarOptions:a}=_(t);return`\n\t.radarTitle {\n\t\tfont-size: ${e.fontSize};\n\t\tcolor: ${e.titleColor};\n\t\tdominant-baseline: hanging;\n\t\ttext-anchor: middle;\n\t}\n\t.radarAxisLine {\n\t\tstroke: ${a.axisColor};\n\t\tstroke-width: ${a.axisStrokeWidth};\n\t}\n\t.radarAxisLabel {\n\t\tdominant-baseline: middle;\n\t\ttext-anchor: middle;\n\t\tfont-size: ${a.axisLabelFontSize}px;\n\t\tcolor: ${a.axisColor};\n\t}\n\t.radarGraticule {\n\t\tfill: ${a.graticuleColor};\n\t\tfill-opacity: ${a.graticuleOpacity};\n\t\tstroke: ${a.graticuleColor};\n\t\tstroke-width: ${a.graticuleStrokeWidth};\n\t}\n\t.radarLegendText {\n\t\ttext-anchor: start;\n\t\tfont-size: ${a.legendFontSize}px;\n\t\tdominant-baseline: hanging;\n\t}\n\t${G(e,a)}\n\t`},"styles")};export{V as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,G as e,K as r,e as a,l as s,b as i,a as o,q as n,t as l,g as c,s as p,H as d,E as b,z as m}from"./mermaid.core-BHSaFUkv.js";import{p as h}from"./chunk-4BX2VUAB-B3YOaF9V.js";import{p as k}from"./mermaid-parser.core-DanmL-Td.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";import"./map-BvlAjF4J.js";import"./_baseIteratee-DJNkOVK7.js";import"./isSymbol-CATEdeai.js";import"./_baseUniq-BJKKUJ6e.js";import"./min-Dc9VrJ6M.js";var g=d.packet,f=class{constructor(){this.packet=[],this.setAccTitle=i,this.getAccTitle=o,this.setDiagramTitle=n,this.getDiagramTitle=l,this.getAccDescription=c,this.setAccDescription=p}static{t(this,"PacketDB")}getConfig(){const t=e({...g,...b().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){m(),this.packet=[]}},u=t((t,e)=>{h(t,e);let r=-1,a=[],i=1;const{bitsPerRow:o}=e.getConfig();for(let{start:n,end:l,bits:c,label:p}of t.blocks){if(void 0!==n&&void 0!==l&&l<n)throw new Error(`Packet block ${n} - ${l} is invalid. End must be greater than start.`);if(n??=r+1,n!==r+1)throw new Error(`Packet block ${n} - ${l??n} is not contiguous. It should start from ${r+1}.`);if(0===c)throw new Error(`Packet block ${n} is invalid. Cannot have a zero bit field.`);for(l??=n+(c??1)-1,c??=l-n+1,r=l,s.debug(`Packet block ${n} - ${r} with label ${p}`);a.length<=o+1&&e.getPacket().length<1e4;){const[t,r]=w({start:n,end:l,bits:c,label:p},i,o);if(a.push(t),t.end+1===i*o&&(e.pushWord(a),a=[],i++),!r)break;({start:n,end:l,bits:c,label:p}=r)}}e.pushWord(a)},"populate"),w=t((t,e,r)=>{if(void 0===t.start)throw new Error("start should have been set during first phase");if(void 0===t.end)throw new Error("end should have been set during first phase");if(t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);if(t.end+1<=e*r)return[t,void 0];const a=e*r-1,s=e*r;return[{start:t.start,end:a,label:t.label,bits:a-t.start},{start:s,end:t.end,label:t.label,bits:t.end-s}]},"getNextFittingBlock"),y={parser:{yy:void 0},parse:t(async t=>{const e=await k("packet",t),r=y.parser?.yy;if(!(r instanceof f))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");s.debug(e),u(e,r)},"parse")},x=t((t,e,s,i)=>{const o=i.db,n=o.getConfig(),{rowHeight:l,paddingY:c,bitWidth:p,bitsPerRow:d}=n,b=o.getPacket(),m=o.getDiagramTitle(),h=l+c,k=h*(b.length+1)-(m?0:l),g=p*d+2,f=r(e);f.attr("viewBox",`0 0 ${g} ${k}`),a(f,k,g,n.useMaxWidth);for(const[t,e]of b.entries())j(f,e,t,n);f.append("text").text(m).attr("x",g/2).attr("y",k-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),j=t((t,e,r,{rowHeight:a,paddingX:s,paddingY:i,bitWidth:o,bitsPerRow:n,showBits:l})=>{const c=t.append("g"),p=r*(a+i)+i;for(const t of e){const e=t.start%n*o+1,r=(t.end-t.start+1)*o-s;if(c.append("rect").attr("x",e).attr("y",p).attr("width",r).attr("height",a).attr("class","packetBlock"),c.append("text").attr("x",e+r/2).attr("y",p+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(t.label),!l)continue;const i=t.end===t.start,d=p-2;c.append("text").attr("x",e+(i?r/2:0)).attr("y",d).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",i?"middle":"start").text(t.start),i||c.append("text").attr("x",e+r).attr("y",d).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(t.end)}},"drawWord"),$={draw:x},B={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},C=t(({packet:t}={})=>{const r=e(B,t);return`\n\t.packetByte {\n\t\tfont-size: ${r.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${r.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${r.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${r.labelColor};\n\t\tfont-size: ${r.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${r.titleColor};\n\t\tfont-size: ${r.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${r.blockStrokeColor};\n\t\tstroke-width: ${r.blockStrokeWidth};\n\t\tfill: ${r.blockFillColor};\n\t}\n\t`},"styles"),v={parser:y,get db(){return new f},renderer:$,styles:C};export{v as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./chunk-55IACEB6-B252J5rd.js";import{s as e}from"./chunk-EDXVE4YY-BFbj9sbF.js";import{_ as s,b as i,a as n,s as r,g as a,q as o,t as c,c as l,l as h,z as u,y,B as d,D as p,p as _,r as m,d as g,u as b}from"./mermaid.core-BHSaFUkv.js";import{c as f}from"./channel-BwWtuiHW.js";import"./index-CDfJgeHe.js";import"react/jsx-runtime";import"react";import"./settings-DgLs6IK_.js";import"./SubmissionDateField-D3AvKusK.js";import"./index-CH9DJEEq.js";import"./enums.js";import"./date-DabTuCYQ.js";import"./time-BPMFfIa-.js";import"./websocket-DCvEZ5Ma.js";import"./worksheet-ClM0CaBH.js";import"motion/react";import"react-dom";import"./index-BD_n8l03.js";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"ably/react";import"@ably/spaces/dist/mjs/react";import"./purify.es-BkjUCQC6.js";import"./string-LeDn2fkG.js";import"./memoize-CPUrcYQl.js";var E=function(){var t=s(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],i=[1,10],n=[1,11],r=[1,12],a=[1,13],o=[1,23],c=[1,24],l=[1,25],h=[1,26],u=[1,27],y=[1,19],d=[1,28],p=[1,29],_=[1,20],m=[1,18],g=[1,21],b=[1,22],f=[1,36],E=[1,37],k=[1,38],T=[1,39],O=[1,40],S=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],N=[1,45],A=[1,46],I=[1,55],C=[40,48,50,51,52,70,71],R=[1,66],x=[1,64],$=[1,61],D=[1,65],v=[1,67],L=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],w=[65,66,67,68,69],M=[1,84],B=[1,83],F=[1,81],Y=[1,82],j=[6,10,42,47],P=[6,10,13,41,42,47,48,49],z=[1,92],G=[1,91],K=[1,90],U=[19,58],Z=[1,101],W=[1,100],X=[19,58,60,62],Q={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:s(function(t,e,s,i,n,r,a){var o=r.length-1;switch(n){case 1:break;case 2:case 6:case 7:this.$=[];break;case 3:r[o-1].push(r[o]),this.$=r[o-1];break;case 4:case 5:case 55:case 56:case 57:case 58:case 81:case 65:case 66:case 69:this.$=r[o];break;case 8:i.addEntity(r[o-4]),i.addEntity(r[o-2]),i.addRelationship(r[o-4],r[o],r[o-2],r[o-3]);break;case 9:i.addEntity(r[o-8]),i.addEntity(r[o-4]),i.addRelationship(r[o-8],r[o],r[o-4],r[o-5]),i.setClass([r[o-8]],r[o-6]),i.setClass([r[o-4]],r[o-2]);break;case 10:i.addEntity(r[o-6]),i.addEntity(r[o-2]),i.addRelationship(r[o-6],r[o],r[o-2],r[o-3]),i.setClass([r[o-6]],r[o-4]);break;case 11:i.addEntity(r[o-6]),i.addEntity(r[o-4]),i.addRelationship(r[o-6],r[o],r[o-4],r[o-5]),i.setClass([r[o-4]],r[o-2]);break;case 12:i.addEntity(r[o-3]),i.addAttributes(r[o-3],r[o-1]);break;case 13:i.addEntity(r[o-5]),i.addAttributes(r[o-5],r[o-1]),i.setClass([r[o-5]],r[o-3]);break;case 14:i.addEntity(r[o-2]);break;case 15:i.addEntity(r[o-4]),i.setClass([r[o-4]],r[o-2]);break;case 16:i.addEntity(r[o]);break;case 17:i.addEntity(r[o-2]),i.setClass([r[o-2]],r[o]);break;case 18:i.addEntity(r[o-6],r[o-4]),i.addAttributes(r[o-6],r[o-1]);break;case 19:i.addEntity(r[o-8],r[o-6]),i.addAttributes(r[o-8],r[o-1]),i.setClass([r[o-8]],r[o-3]);break;case 20:i.addEntity(r[o-5],r[o-3]);break;case 21:i.addEntity(r[o-7],r[o-5]),i.setClass([r[o-7]],r[o-2]);break;case 22:i.addEntity(r[o-3],r[o-1]);break;case 23:i.addEntity(r[o-5],r[o-3]),i.setClass([r[o-5]],r[o]);break;case 24:case 25:this.$=r[o].trim(),i.setAccTitle(this.$);break;case 26:case 27:this.$=r[o].trim(),i.setAccDescription(this.$);break;case 32:i.setDirection("TB");break;case 33:i.setDirection("BT");break;case 34:i.setDirection("RL");break;case 35:i.setDirection("LR");break;case 36:this.$=r[o-3],i.addClass(r[o-2],r[o-1]);break;case 37:case 38:case 59:case 67:case 43:this.$=[r[o]];break;case 39:case 40:this.$=r[o-2].concat([r[o]]);break;case 41:this.$=r[o-2],i.setClass(r[o-1],r[o]);break;case 42:this.$=r[o-3],i.addCssStyles(r[o-2],r[o-1]);break;case 44:case 68:r[o-2].push(r[o]),this.$=r[o-2];break;case 46:this.$=r[o-1]+r[o];break;case 54:case 79:case 80:case 70:this.$=r[o].replace(/"/g,"");break;case 60:r[o].push(r[o-1]),this.$=r[o];break;case 61:this.$={type:r[o-1],name:r[o]};break;case 62:this.$={type:r[o-2],name:r[o-1],keys:r[o]};break;case 63:this.$={type:r[o-2],name:r[o-1],comment:r[o]};break;case 64:this.$={type:r[o-3],name:r[o-2],keys:r[o-1],comment:r[o]};break;case 71:this.$={cardA:r[o],relType:r[o-1],cardB:r[o-2]};break;case 72:this.$=i.Cardinality.ZERO_OR_ONE;break;case 73:this.$=i.Cardinality.ZERO_OR_MORE;break;case 74:this.$=i.Cardinality.ONE_OR_MORE;break;case 75:this.$=i.Cardinality.ONLY_ONE;break;case 76:this.$=i.Cardinality.MD_PARENT;break;case 77:this.$=i.Identification.NON_IDENTIFYING;break;case 78:this.$=i.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:i,24:n,26:r,28:a,29:14,30:15,31:16,32:17,33:o,34:c,35:l,36:h,37:u,40:y,43:d,44:p,48:_,50:m,51:g,52:b},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:30,11:9,22:i,24:n,26:r,28:a,29:14,30:15,31:16,32:17,33:o,34:c,35:l,36:h,37:u,40:y,43:d,44:p,48:_,50:m,51:g,52:b},t(e,[2,5]),t(e,[2,6]),t(e,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:f,66:E,67:k,68:T,69:O}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),t(e,[2,30]),t(e,[2,31]),t(S,[2,54]),t(S,[2,55]),t(S,[2,56]),t(S,[2,57]),t(S,[2,58]),t(e,[2,32]),t(e,[2,33]),t(e,[2,34]),t(e,[2,35]),{16:44,40:N,41:A},{16:47,40:N,41:A},{16:48,40:N,41:A},t(e,[2,4]),{11:49,40:y,48:_,50:m,51:g,52:b},{16:50,40:N,41:A},{18:51,19:[1,52],53:53,54:54,58:I},{11:56,40:y,48:_,50:m,51:g,52:b},{64:57,70:[1,58],71:[1,59]},t(C,[2,72]),t(C,[2,73]),t(C,[2,74]),t(C,[2,75]),t(C,[2,76]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),{13:R,38:60,41:x,42:$,45:62,46:63,48:D,49:v},t(L,[2,37]),t(L,[2,38]),{16:68,40:N,41:A,42:$},{13:R,38:69,41:x,42:$,45:62,46:63,48:D,49:v},{13:[1,70],15:[1,71]},t(e,[2,17],{63:35,12:72,17:[1,73],42:$,65:f,66:E,67:k,68:T,69:O}),{19:[1,74]},t(e,[2,14]),{18:75,19:[2,59],53:53,54:54,58:I},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:f,66:E,67:k,68:T,69:O},t(w,[2,77]),t(w,[2,78]),{6:M,10:B,39:80,42:F,47:Y},{40:[1,85],41:[1,86]},t(j,[2,43],{46:87,13:R,41:x,48:D,49:v}),t(P,[2,45]),t(P,[2,50]),t(P,[2,51]),t(P,[2,52]),t(P,[2,53]),t(e,[2,41],{42:$}),{6:M,10:B,39:88,42:F,47:Y},{14:89,40:z,50:G,72:K},{16:93,40:N,41:A},{11:94,40:y,48:_,50:m,51:g,52:b},{18:95,19:[1,96],53:53,54:54,58:I},t(e,[2,12]),{19:[2,60]},t(U,[2,61],{56:97,57:98,59:99,61:Z,62:W}),t([19,58,61,62],[2,66]),t(e,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(e,[2,36]),{13:R,41:x,45:104,46:63,48:D,49:v},t(e,[2,47]),t(e,[2,48]),t(e,[2,49]),t(L,[2,39]),t(L,[2,40]),t(P,[2,46]),t(e,[2,42]),t(e,[2,8]),t(e,[2,79]),t(e,[2,80]),t(e,[2,81]),{13:[1,105],42:$},{13:[1,107],15:[1,106]},{19:[1,108]},t(e,[2,15]),t(U,[2,62],{57:109,60:[1,110],62:W}),t(U,[2,63]),t(X,[2,67]),t(U,[2,70]),t(X,[2,69]),{18:111,19:[1,112],53:53,54:54,58:I},{16:113,40:N,41:A},t(j,[2,44],{46:87,13:R,41:x,48:D,49:v}),{14:114,40:z,50:G,72:K},{16:115,40:N,41:A},{14:116,40:z,50:G,72:K},t(e,[2,13]),t(U,[2,64]),{59:117,61:Z},{19:[1,118]},t(e,[2,20]),t(e,[2,23],{17:[1,119],42:$}),t(e,[2,11]),{13:[1,120],42:$},t(e,[2,10]),t(X,[2,68]),t(e,[2,18]),{18:121,19:[1,122],53:53,54:54,58:I},{14:123,40:z,50:G,72:K},{19:[1,124]},t(e,[2,21]),t(e,[2,9]),t(e,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:s(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:s(function(t){var e=this,i=[0],n=[],r=[null],a=[],o=this.table,c="",l=0,h=0,u=a.slice.call(arguments,1),y=Object.create(this.lexer),d={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(d.yy[p]=this.yy[p]);y.setInput(t,d.yy),d.yy.lexer=y,d.yy.parser=this,void 0===y.yylloc&&(y.yylloc={});var _=y.yylloc;a.push(_);var m=y.options&&y.options.ranges;function g(){var t;return"number"!=typeof(t=n.pop()||y.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,s(function(t){i.length=i.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),s(g,"lex");for(var b,f,E,k,T,O,S,N,A={};;){if(f=i[i.length-1],this.defaultActions[f]?E=this.defaultActions[f]:(null==b&&(b=g()),E=o[f]&&o[f][b]),void 0===E||!E.length||!E[0]){var I="";for(T in N=[],o[f])this.terminals_[T]&&T>2&&N.push("'"+this.terminals_[T]+"'");I=y.showPosition?"Parse error on line "+(l+1)+":\n"+y.showPosition()+"\nExpecting "+N.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:y.match,token:this.terminals_[b]||b,line:y.yylineno,loc:_,expected:N})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+b);switch(E[0]){case 1:i.push(b),r.push(y.yytext),a.push(y.yylloc),i.push(E[1]),b=null,h=y.yyleng,c=y.yytext,l=y.yylineno,_=y.yylloc;break;case 2:if(O=this.productions_[E[1]][1],A.$=r[r.length-O],A._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},m&&(A._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),void 0!==(k=this.performAction.apply(A,[c,h,l,d.yy,E[1],r,a].concat(u))))return k;O&&(i=i.slice(0,-1*O*2),r=r.slice(0,-1*O),a=a.slice(0,-1*O)),i.push(this.productions_[E[1]][0]),r.push(A.$),a.push(A._$),S=o[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0},"parse")},q=function(){return{EOF:1,parseError:s(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:s(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.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),t},"input"),unput:s(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);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);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:s(function(t){this.unput(this.match.slice(t))},"less"),pastInput:s(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:s(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,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(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:s(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:s(function(){var t=this.next();return t||this.lex()},"lex"),begin:s(function(t){this.conditionStack.push(t)},"begin"),popState:s(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:s(function(t){this.begin(t)},"pushState"),stateStackSize:s(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),24;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),26;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:case 23:case 28:case 35:break;case 13:return 8;case 14:return 50;case 15:return 72;case 16:return 4;case 17:return this.begin("block"),17;case 18:case 19:case 38:return 49;case 20:case 37:return 42;case 21:return 15;case 22:case 36:return 13;case 24:return 61;case 25:case 26:return 58;case 27:return 62;case 29:return this.popState(),19;case 30:case 77:return e.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;case 34:return this.popState(),10;case 39:return this.begin("style"),37;case 40:return 43;case 41:case 45:case 46:case 64:return 65;case 42:case 43:case 44:case 52:case 54:case 66:return 67;case 47:case 48:case 49:case 50:case 51:case 53:case 65:return 66;case 55:case 56:case 58:case 59:case 60:case 63:return 68;case 57:return 51;case 61:return 52;case 62:return 48;case 67:return 69;case 68:case 71:case 72:case 73:return 70;case 69:case 70:return 71;case 74:return 41;case 75:return 47;case 76:return 40;case 78:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,74,75],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,76,77,78],inclusive:!0}}}}();function H(){this.yy={}}return Q.lexer=q,s(H,"Parser"),H.prototype=Q,Q.Parser=H,new H}();E.parser=E;var k=E,T=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=i,this.getAccTitle=n,this.setAccDescription=r,this.getAccDescription=a,this.setDiagramTitle=o,this.getDiagramTitle=c,this.getConfig=s(()=>l().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{s(this,"ErDB")}addEntity(t,e=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&e&&(this.entities.get(t).alias=e,h.info(`Add alias '${e}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:l().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),h.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){const s=this.addEntity(t);let i;for(i=e.length-1;i>=0;i--)e[i].keys||(e[i].keys=[]),e[i].comment||(e[i].comment=""),s.attributes.push(e[i]),h.debug("Added attribute ",e[i].name)}addRelationship(t,e,s,i){const n=this.entities.get(t),r=this.entities.get(s);if(!n||!r)return;const a={entityA:n.id,roleA:e,entityB:r.id,relSpec:i};this.relationships.push(a),h.debug("Added new relationship :",a)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(const s of t){const t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(const s of t){const t=this.entities.get(s);if(!e||!t)return;for(const s of e)t.cssStyles.push(s)}}addClass(t,e){t.forEach(t=>{let s=this.classes.get(t);void 0===s&&(s={id:t,styles:[],textStyles:[]},this.classes.set(t,s)),e&&e.forEach(function(t){if(/color/.exec(t)){const e=t.replace("fill","bgFill");s.textStyles.push(e)}s.styles.push(t)})})}setClass(t,e){for(const s of t){const t=this.entities.get(s);if(t)for(const s of e)t.cssClasses+=" "+s}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],u()}getData(){const t=[],e=[],s=l();let i=0;for(const e of this.entities.keys()){const s=this.entities.get(e);s&&(s.cssCompiledStyles=this.getCompiledStyles(s.cssClasses.split(" ")),s.colorIndex=i++,t.push(s))}let n=0;for(const t of this.relationships){const i={id:y(t.entityA,t.entityB,{prefix:"id",counter:n++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:"TB"}}},O={};p(O,{draw:()=>S});var S=s(async function(s,i,n,r){h.info("REF0:"),h.info("Drawing er diagram (unified)",i);const{securityLevel:a,er:o,layout:c}=l(),u=r.db.getData(),y=t(i,a);u.type=r.type,u.layoutAlgorithm=_(c),u.config.flowchart.nodeSpacing=o?.nodeSpacing||140,u.config.flowchart.rankSpacing=o?.rankSpacing||80,u.direction=r.db.getDirection();const{config:d}=u,{look:p}=d;u.markers="neo"===p?["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:["only_one","zero_or_one","one_or_more","zero_or_more"],u.diagramId=i,await m(u,y),"elk"===u.layoutAlgorithm&&y.select(".edges").lower();const f=y.selectAll('[id*="-background"]');Array.from(f).length>0&&f.each(function(){const t=g(this),e=t.attr("id").replace("-background",""),s=y.select(`#${CSS.escape(e)}`);if(!s.empty()){const e=s.attr("transform");t.attr("transform",e)}});b.insertTitle(y,"erDiagramTitleText",o?.titleTopMargin??25,r.db.getDiagramTitle()),e(y,8,"erDiagram",o?.useMaxWidth??!0)},"draw"),N=s((t,e)=>{const s=f,i=s(t,"r"),n=s(t,"g"),r=s(t,"b");return d(i,n,r,e)},"fade"),A=new Set(["redux-color","redux-dark-color"]),I=s(t=>{const{theme:e,look:s,bkgColorArray:i,borderColorArray:n}=t;if(!A.has(e))return"";const r=i?.length>0;let a="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)a+=`\n\n [data-look="${s}"][data-color-id="color-${e}"].node path {\n stroke: ${n[e]};\n ${r?`fill: ${i[e]};`:""}\n }\n\n [data-look="${s}"][data-color-id="color-${e}"].node rect {\n stroke: ${n[e]};\n ${r?`fill: ${i[e]};`:""}\n }\n `;return a},"genColor"),C=s(t=>{const{look:e,theme:s,erEdgeLabelBackground:i,strokeWidth:n}=t;return`\n ${I(t)}\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .labelBkg {\n background-color: ${A.has(s)&&i?i:N(t.tertiaryColor,.5)};\n }\n\n .edgeLabel {\n background-color: ${A.has(s)&&i?i:t.edgeLabelBackground};\n }\n .edgeLabel .label rect {\n fill: ${A.has(s)&&i?i:t.edgeLabelBackground};\n }\n .edgeLabel .label text {\n fill: ${t.textColor};\n }\n\n .edgeLabel .label {\n fill: ${t.nodeBorder};\n font-size: 14px;\n }\n\n .label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .edge-pattern-dashed {\n stroke-dasharray: 8,8;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon\n {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: ${"neo"===e?n:"1px"};\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n stroke-width: ${"neo"===e?n:"1px"};\n fill: none;\n }\n\n .marker {\n fill: none !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n }\n [data-look=neo].labelBkg {\n background-color: ${N(t.tertiaryColor,.5)};\n }\n`},"getStyles"),R={parser:k,get db(){return new T},renderer:O,styles:C};export{R as diagram};
|