ranui 0.2.0-alpha.7 → 0.2.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
- package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
- package/dist/arc-D25LhgTs.cjs +1 -0
- package/dist/arc-DRPGof21.js +82 -0
- package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
- package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
- package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
- package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
- package/dist/array-By5736M5.js +7 -0
- package/dist/array-C3cbN3GY.cjs +1 -0
- package/dist/arrow-down-Bi5kqUrX.js +12 -0
- package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
- package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
- package/dist/builder.d.ts +4 -4
- package/dist/builder.js +39 -30
- package/dist/builtin-BkM0LLof.js +416 -0
- package/dist/button-D0zcnKnG.js +117 -0
- package/dist/button.js +1 -1
- package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
- package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
- package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
- package/dist/card.js +1 -1
- package/dist/channel-C9WSNwcS.cjs +1 -0
- package/dist/channel-k5-UxdcV.js +5 -0
- package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
- package/dist/checkbox.js +1 -1
- package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
- package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
- package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
- package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
- package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
- package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
- package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
- package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
- package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
- package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
- package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
- package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
- package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
- package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
- package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
- package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
- package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
- package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
- package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
- package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
- package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
- package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
- package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
- package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
- package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
- package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
- package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
- package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
- package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
- package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
- package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
- package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
- package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
- package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
- package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
- package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
- package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
- package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
- package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
- package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
- package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
- package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
- package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
- package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
- package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
- package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
- package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
- package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
- package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
- package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
- package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
- package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
- package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
- package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
- package/dist/colorpicker.js +1 -1
- package/dist/components/colorpicker/index.d.ts +3 -3
- package/dist/components/glass/index.d.ts +52 -0
- package/dist/components/icon/builtin.d.ts +9 -0
- package/dist/components/icon/core-icons.d.ts +13 -0
- package/dist/components/icon/index.d.ts +8 -0
- package/dist/components/mermaid/index.d.ts +52 -0
- package/dist/components/modal/index.d.ts +9 -0
- package/dist/components/route/index.d.ts +10 -4
- package/dist/components/router/index.d.ts +3 -0
- package/dist/content-Rry-U6ir.js +39 -0
- package/dist/content.js +5 -0
- package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
- package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
- package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
- package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
- package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
- package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
- package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
- package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
- package/dist/dagre-D1-W1tt6.cjs +1 -0
- package/dist/dagre-D8GLTwuf.js +1578 -0
- package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
- package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
- package/dist/defaultLocale-0M_kMcEH.js +184 -0
- package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
- package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
- package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
- package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
- package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
- package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
- package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
- package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
- package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
- package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
- package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
- package/dist/dist-C0Fwsvsq.js +70 -0
- package/dist/dist-C20XxSsP.cjs +1 -0
- package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
- package/dist/dropdown.js +1 -1
- package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
- package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
- package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
- package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
- package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
- package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
- package/dist/factory-BkvRcCOx.js +482 -0
- package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
- package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
- package/dist/form.js +1 -1
- package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
- package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
- package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
- package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
- package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
- package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
- package/dist/glass-Bj1Zf8Hy.js +115 -0
- package/dist/glass.js +5 -0
- package/dist/graphlib-CCKThIKP.js +1104 -0
- package/dist/graphlib-Du-578Js.cjs +1 -0
- package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
- package/dist/icon.js +4 -3
- package/dist/icons.js +5 -0
- package/dist/iife/button.iife.js +1 -1
- package/dist/iife/card.iife.js +1 -1
- package/dist/iife/checkbox.iife.js +1 -1
- package/dist/iife/colorpicker.iife.js +2 -2
- package/dist/iife/content.iife.js +1 -0
- package/dist/iife/dropdown.iife.js +1 -1
- package/dist/iife/form.iife.js +1 -1
- package/dist/iife/glass.iife.js +1 -0
- package/dist/iife/icon.iife.js +1 -1
- package/dist/iife/image.iife.js +1 -1
- package/dist/iife/input.iife.js +1 -1
- package/dist/iife/loading.iife.js +1 -1
- package/dist/iife/math.iife.js +14 -14
- package/dist/iife/mermaid.iife.js +3535 -0
- package/dist/iife/message.iife.js +1 -1
- package/dist/iife/modal.iife.js +1 -1
- package/dist/iife/player.iife.js +8 -8
- package/dist/iife/popover.iife.js +1 -1
- package/dist/iife/progress.iife.js +1 -1
- package/dist/iife/radar.iife.js +1 -1
- package/dist/iife/route.iife.js +1 -1
- package/dist/iife/router.iife.js +1 -1
- package/dist/iife/scratch.iife.js +1 -1
- package/dist/iife/section.iife.js +1 -1
- package/dist/iife/select.iife.js +2 -2
- package/dist/iife/skeleton.iife.js +1 -1
- package/dist/iife/tab.iife.js +1 -1
- package/dist/iife/tabpane.iife.js +1 -1
- package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
- package/dist/image.js +1 -1
- package/dist/index.cjs +257 -23
- package/dist/index.d.ts +11 -1
- package/dist/index.iife.js +3842 -74
- package/dist/index.js +86 -78
- package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
- package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
- package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
- package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
- package/dist/init-1VpIn1S3.js +16 -0
- package/dist/init-CbDwVtpO.cjs +1 -0
- package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
- package/dist/input.js +1 -1
- package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
- package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
- package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
- package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
- package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
- package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
- package/dist/katex-Cq3Y8cmK.cjs +257 -0
- package/dist/katex-Pg2EqTH0.js +23485 -0
- package/dist/line-BIPmUVxO.js +33 -0
- package/dist/line-CAB5QHC6.cjs +1 -0
- package/dist/linear-B2AM4ZBe.js +259 -0
- package/dist/linear-CSAfNEpl.cjs +1 -0
- package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
- package/dist/link.js +1 -1
- package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
- package/dist/loading.js +1 -1
- package/dist/map-BC2bk_rV.cjs +1 -0
- package/dist/map-DMSWkcq6.js +208 -0
- package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
- package/dist/math.js +1 -1
- package/dist/mermaid-CMhm7npE.js +261 -0
- package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
- package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
- package/dist/mermaid.core-B2d5lQW2.js +1085 -0
- package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
- package/dist/mermaid.js +5 -0
- package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
- package/dist/message.js +1 -1
- package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
- package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
- package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
- package/dist/modal.js +1 -1
- package/dist/ordinal-BMN81JG2.js +64 -0
- package/dist/ordinal-BplLHIij.cjs +1 -0
- package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
- package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
- package/dist/path-Bja5PoYn.js +82 -0
- package/dist/path-DmfWsuKi.cjs +1 -0
- package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
- package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
- package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
- package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
- package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
- package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
- package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
- package/dist/player.js +1 -1
- package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
- package/dist/popover.js +1 -1
- package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
- package/dist/progress.js +1 -1
- package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
- package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
- package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
- package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
- package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
- package/dist/radar.js +1 -1
- package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
- package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
- package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
- package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
- package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
- package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
- package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
- package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
- package/dist/ranui.css +1 -1
- package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
- package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
- package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
- package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
- package/dist/rough.esm-BWe9E0Nz.js +1387 -0
- package/dist/rough.esm-BfSi6CZE.cjs +1 -0
- package/dist/route-pR5P4ann.js +116 -0
- package/dist/route.js +1 -1
- package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
- package/dist/router.js +1 -1
- package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
- package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
- package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
- package/dist/scratch.js +1 -1
- package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
- package/dist/section.js +1 -1
- package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
- package/dist/select.js +1 -1
- package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
- package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
- package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
- package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
- package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
- package/dist/skeleton.js +1 -1
- package/dist/src-C9EhKhbk.cjs +1 -0
- package/dist/src-DtRLxcYO.js +2104 -0
- package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
- package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
- package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
- package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
- package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
- package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
- package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
- package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
- package/dist/tab.js +1 -1
- package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
- package/dist/tabpane.js +1 -1
- package/dist/test/unit/icon.builtin.test.d.ts +1 -0
- package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
- package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
- package/dist/test/unit/utils.router.match.test.d.ts +1 -0
- package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
- package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
- package/dist/theme-switch.js +1 -1
- package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
- package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
- package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
- package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
- package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
- package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
- package/dist/utils/builder/core.d.ts +153 -16
- package/dist/utils/builder/factory.d.ts +1 -1
- package/dist/utils/builder/index.d.ts +3 -3
- package/dist/utils/builder/signal.d.ts +93 -64
- package/dist/utils/router/index.d.ts +13 -3
- package/dist/utils/router.js +95 -54
- package/dist/utils/theme.d.ts +1 -1
- package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
- package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
- package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
- package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
- package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
- package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
- package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
- package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
- package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
- package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
- package/docs/BUILDER.md +383 -0
- package/docs/COMPONENTS.md +21 -3
- package/package.json +31 -3
- package/dist/button-Be_uHDZG.js +0 -117
- package/dist/factory-BdsO0dEW.js +0 -165
- package/dist/route-MQZpn2BP.js +0 -88
- package/dist/signal-CSSZxlK5.js +0 -57
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const p=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),Rt=require("./src-C9EhKhbk.cjs"),B=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),we=require("./dist-C20XxSsP.cjs"),H=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),_e=require("./chunk-32BRIVSS-BXVdG_nV.cjs");var Te=we.require_dist(),jt=(function(){var e=p.__name(function(b,x,O,v){for(O=O||{},v=b.length;v--;O[b[v]]=x);return O},"o"),t=[1,24],r=[1,25],o=[1,26],l=[1,27],s=[1,28],a=[1,63],i=[1,64],n=[1,65],d=[1,66],u=[1,67],_=[1,68],y=[1,69],w=[1,29],R=[1,30],D=[1,31],L=[1,32],X=[1,33],F=[1,34],K=[1,35],J=[1,36],Z=[1,37],$=[1,38],tt=[1,39],et=[1,40],at=[1,41],nt=[1,42],it=[1,43],rt=[1,44],st=[1,45],lt=[1,46],ot=[1,47],ct=[1,48],ht=[1,50],ut=[1,51],dt=[1,52],_t=[1,53],ft=[1,54],pt=[1,55],yt=[1,56],gt=[1,57],mt=[1,58],bt=[1,59],xt=[1,60],Tt=[14,42],Xt=[14,34,36,37,38,39,40,41,42,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,74],St=[12,14,34,36,37,38,39,40,41,42,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,74],E=[1,82],A=[1,83],k=[1,84],C=[1,85],T=[12,14,42],re=[12,14,33,42],It=[12,14,33,42,76,77,79,80],At=[12,33],zt=[34,36,37,38,39,40,41,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,74],Qt={trace:p.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:p.__name(function(x,O,v,g,S,h,Dt){var f=h.length-1;switch(S){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let kt={};kt[h[f-1].trim()]=h[f].trim(),this.$=kt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:r,24:o,26:l,28:s,29:49,30:61,32:62,34:a,36:i,37:n,38:d,39:u,40:_,41:y,43:23,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt},{13:70,19:20,20:21,21:22,22:t,23:r,24:o,26:l,28:s,29:49,30:61,32:62,34:a,36:i,37:n,38:d,39:u,40:_,41:y,43:23,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt},{13:71,19:20,20:21,21:22,22:t,23:r,24:o,26:l,28:s,29:49,30:61,32:62,34:a,36:i,37:n,38:d,39:u,40:_,41:y,43:23,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt},{13:72,19:20,20:21,21:22,22:t,23:r,24:o,26:l,28:s,29:49,30:61,32:62,34:a,36:i,37:n,38:d,39:u,40:_,41:y,43:23,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt},{13:73,19:20,20:21,21:22,22:t,23:r,24:o,26:l,28:s,29:49,30:61,32:62,34:a,36:i,37:n,38:d,39:u,40:_,41:y,43:23,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt},{14:[1,74]},e(Tt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:i,37:n,38:d,39:u,40:_,41:y,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt}),e(Tt,[2,14]),e(Xt,[2,16],{12:[1,76]}),e(Tt,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:E,77:A,79:k,80:C},{35:86,75:81,76:E,77:A,79:k,80:C},{35:87,75:81,76:E,77:A,79:k,80:C},{35:88,75:81,76:E,77:A,79:k,80:C},{35:89,75:81,76:E,77:A,79:k,80:C},{35:90,75:81,76:E,77:A,79:k,80:C},{35:91,75:81,76:E,77:A,79:k,80:C},{35:92,75:81,76:E,77:A,79:k,80:C},{35:93,75:81,76:E,77:A,79:k,80:C},{35:94,75:81,76:E,77:A,79:k,80:C},{35:95,75:81,76:E,77:A,79:k,80:C},{35:96,75:81,76:E,77:A,79:k,80:C},{35:97,75:81,76:E,77:A,79:k,80:C},{35:98,75:81,76:E,77:A,79:k,80:C},{35:99,75:81,76:E,77:A,79:k,80:C},{35:100,75:81,76:E,77:A,79:k,80:C},{35:101,75:81,76:E,77:A,79:k,80:C},{35:102,75:81,76:E,77:A,79:k,80:C},{35:103,75:81,76:E,77:A,79:k,80:C},{35:104,75:81,76:E,77:A,79:k,80:C},e(T,[2,59]),{35:105,75:81,76:E,77:A,79:k,80:C},{35:106,75:81,76:E,77:A,79:k,80:C},{35:107,75:81,76:E,77:A,79:k,80:C},{35:108,75:81,76:E,77:A,79:k,80:C},{35:109,75:81,76:E,77:A,79:k,80:C},{35:110,75:81,76:E,77:A,79:k,80:C},{35:111,75:81,76:E,77:A,79:k,80:C},{35:112,75:81,76:E,77:A,79:k,80:C},{35:113,75:81,76:E,77:A,79:k,80:C},{35:114,75:81,76:E,77:A,79:k,80:C},{35:115,75:81,76:E,77:A,79:k,80:C},{20:116,29:49,30:61,32:62,34:a,36:i,37:n,38:d,39:u,40:_,41:y,43:23,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt},{12:[1,118],33:[1,117]},{35:119,75:81,76:E,77:A,79:k,80:C},{35:120,75:81,76:E,77:A,79:k,80:C},{35:121,75:81,76:E,77:A,79:k,80:C},{35:122,75:81,76:E,77:A,79:k,80:C},{35:123,75:81,76:E,77:A,79:k,80:C},{35:124,75:81,76:E,77:A,79:k,80:C},{35:125,75:81,76:E,77:A,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Tt,[2,15]),e(Xt,[2,17],{21:22,19:130,22:t,23:r,24:o,26:l,28:s}),e(Tt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:o,26:l,28:s,34:a,36:i,37:n,38:d,39:u,40:_,41:y,44:w,45:R,46:D,47:L,48:X,49:F,50:K,51:J,52:Z,53:$,54:tt,55:et,56:at,57:nt,58:it,59:rt,60:st,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:_t,68:ft,69:pt,70:yt,71:gt,72:mt,73:bt,74:xt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(re,[2,71],{75:81,35:132,76:E,77:A,79:k,80:C}),e(It,[2,73]),{78:[1,133]},e(It,[2,75]),e(It,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(At,[2,28]),e(At,[2,29]),e(At,[2,30]),e(At,[2,31]),e(At,[2,32]),e(At,[2,33]),e(At,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Xt,[2,18]),e(Tt,[2,38]),e(re,[2,72]),e(It,[2,74]),e(T,[2,24]),e(T,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:p.__name(function(x,O){if(O.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=O,v}},"parseError"),parse:p.__name(function(x){var O=this,v=[0],g=[],S=[null],h=[],Dt=this.table,f="",kt=0,se=0,le=0,Ee=2,oe=1,Ae=h.slice.call(arguments,1),P=Object.create(this.lexer),Ct={yy:{}};for(var qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,qt)&&(Ct.yy[qt]=this.yy[qt]);P.setInput(x,Ct.yy),Ct.yy.lexer=P,Ct.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var Ht=P.yylloc;h.push(Ht);var ke=P.options&&P.options.ranges;typeof Ct.yy.parseError=="function"?this.parseError=Ct.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ce(N){v.length=v.length-2*N,S.length=S.length-N,h.length=h.length-N}p.__name(Ce,"popStack");function ce(){var N=g.pop()||P.lex()||oe;return typeof N!="number"&&(N instanceof Array&&(g=N,N=g.pop()),N=O.symbols_[N]||N),N}p.__name(ce,"lex");for(var I,Gt,wt,Y,Kt,Ot={},Lt,q,he,Yt;;){if(wt=v[v.length-1],this.defaultActions[wt]?Y=this.defaultActions[wt]:((I===null||typeof I>"u")&&(I=ce()),Y=Dt[wt]&&Dt[wt][I]),typeof Y>"u"||!Y.length||!Y[0]){var Jt="";Yt=[];for(Lt in Dt[wt])this.terminals_[Lt]&&Lt>Ee&&Yt.push("'"+this.terminals_[Lt]+"'");P.showPosition?Jt="Parse error on line "+(kt+1)+`:
|
|
2
|
+
`+P.showPosition()+`
|
|
3
|
+
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Jt="Parse error on line "+(kt+1)+": Unexpected "+(I==oe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Jt,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:Ht,expected:Yt})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+wt+", token: "+I);switch(Y[0]){case 1:v.push(I),S.push(P.yytext),h.push(P.yylloc),v.push(Y[1]),I=null,Gt?(I=Gt,Gt=null):(se=P.yyleng,f=P.yytext,kt=P.yylineno,Ht=P.yylloc,le>0&&le--);break;case 2:if(q=this.productions_[Y[1]][1],Ot.$=S[S.length-q],Ot._$={first_line:h[h.length-(q||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(q||1)].first_column,last_column:h[h.length-1].last_column},ke&&(Ot._$.range=[h[h.length-(q||1)].range[0],h[h.length-1].range[1]]),Kt=this.performAction.apply(Ot,[f,se,kt,Ct.yy,Y[1],S,h].concat(Ae)),typeof Kt<"u")return Kt;q&&(v=v.slice(0,-1*q*2),S=S.slice(0,-1*q),h=h.slice(0,-1*q)),v.push(this.productions_[Y[1]][0]),S.push(Ot.$),h.push(Ot._$),he=Dt[v[v.length-2]][v[v.length-1]],v.push(he);break;case 3:return!0}}return!0},"parse")};Qt.lexer=(function(){return{EOF:1,parseError:p.__name(function(x,O){if(this.yy.parser)this.yy.parser.parseError(x,O);else throw new Error(x)},"parseError"),setInput:p.__name(function(b,x){return this.yy=x||this.yy||{},this._input=b,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:p.__name(function(){var b=this._input[0];return this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b,b.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),b},"input"),unput:p.__name(function(b){var x=b.length,O=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var v=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),O.length-1&&(this.yylineno-=O.length-1);var g=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:O?(O.length===v.length?this.yylloc.first_column:0)+v[v.length-O.length].length-O[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:p.__name(function(){return this._more=!0,this},"more"),reject:p.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:p.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p.__name(function(){var b=this.pastInput(),x=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
5
|
+
`+x+"^"},"showPosition"),test_match:p.__name(function(b,x){var O,v,g;if(this.options.backtrack_lexer&&(g={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&&(g.yylloc.range=this.yylloc.range.slice(0))),v=b[0].match(/(?:\r\n?|\n).*/g),v&&(this.yylineno+=v.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,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(b[0].length),this.matched+=b[0],O=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),O)return O;if(this._backtrack){for(var S in g)this[S]=g[S];return!1}return!1},"test_match"),next:p.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,x,O,v;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),S=0;S<g.length;S++)if(O=this._input.match(this.rules[g[S]]),O&&(!x||O[0].length>x[0].length)){if(x=O,v=S,this.options.backtrack_lexer){if(b=this.test_match(O,g[S]),b!==!1)return b;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(b=this.test_match(x,g[v]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:p.__name(function(){var x=this.next();return x||this.lex()},"lex"),begin:p.__name(function(x){this.conditionStack.push(x)},"begin"),popState:p.__name(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:p.__name(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:p.__name(function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},"topState"),pushState:p.__name(function(x){this.begin(x)},"pushState"),stateStackSize:p.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:p.__name(function(x,O,v,g){switch(v){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,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,81,82,83,84,85],inclusive:!0}}}})();function Mt(){this.yy={}}return p.__name(Mt,"Parser"),Mt.prototype=Qt,Qt.Parser=Mt,new Mt})();jt.parser=jt;var Oe=jt,W=[],vt=[""],M="global",V="",Q=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],Bt=[],Zt="",ae=!1,Ut=4,Ft=2,fe,Re=p.__name(function(){return fe},"getC4Type"),Se=p.__name(function(e){fe=B.sanitizeText(e,B.getConfig2())},"setC4Type"),De=p.__name(function(e,t,r,o,l,s,a,i,n){if(e==null||t===void 0||t===null||r===void 0||r===null||o===void 0||o===null)return;let d={};const u=Bt.find(_=>_.from===t&&_.to===r);if(u?d=u:Bt.push(d),d.type=e,d.from=t,d.to=r,d.label={text:o},l==null)d.techn={text:""};else if(typeof l=="object"){let[_,y]=Object.entries(l)[0];d[_]={text:y}}else d.techn={text:l};if(s==null)d.descr={text:""};else if(typeof s=="object"){let[_,y]=Object.entries(s)[0];d[_]={text:y}}else d.descr={text:s};if(typeof a=="object"){let[_,y]=Object.entries(a)[0];d[_]=y}else d.sprite=a;if(typeof i=="object"){let[_,y]=Object.entries(i)[0];d[_]=y}else d.tags=i;if(typeof n=="object"){let[_,y]=Object.entries(n)[0];d[_]=y}else d.link=n;d.wrap=Et()},"addRel"),Pe=p.__name(function(e,t,r,o,l,s,a){if(t===null||r===null)return;let i={};const n=W.find(d=>d.alias===t);if(n&&t===n.alias?i=n:(i.alias=t,W.push(i)),r==null?i.label={text:""}:i.label={text:r},o==null)i.descr={text:""};else if(typeof o=="object"){let[d,u]=Object.entries(o)[0];i[d]={text:u}}else i.descr={text:o};if(typeof l=="object"){let[d,u]=Object.entries(l)[0];i[d]=u}else i.sprite=l;if(typeof s=="object"){let[d,u]=Object.entries(s)[0];i[d]=u}else i.tags=s;if(typeof a=="object"){let[d,u]=Object.entries(a)[0];i[d]=u}else i.link=a;i.typeC4Shape={text:e},i.parentBoundary=M,i.wrap=Et()},"addPersonOrSystem"),Be=p.__name(function(e,t,r,o,l,s,a,i){if(t===null||r===null)return;let n={};const d=W.find(u=>u.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,W.push(n)),r==null?n.label={text:""}:n.label={text:r},o==null)n.techn={text:""};else if(typeof o=="object"){let[u,_]=Object.entries(o)[0];n[u]={text:_}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[u,_]=Object.entries(l)[0];n[u]={text:_}}else n.descr={text:l};if(typeof s=="object"){let[u,_]=Object.entries(s)[0];n[u]=_}else n.sprite=s;if(typeof a=="object"){let[u,_]=Object.entries(a)[0];n[u]=_}else n.tags=a;if(typeof i=="object"){let[u,_]=Object.entries(i)[0];n[u]=_}else n.link=i;n.wrap=Et(),n.typeC4Shape={text:e},n.parentBoundary=M},"addContainer"),Ie=p.__name(function(e,t,r,o,l,s,a,i){if(t===null||r===null)return;let n={};const d=W.find(u=>u.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,W.push(n)),r==null?n.label={text:""}:n.label={text:r},o==null)n.techn={text:""};else if(typeof o=="object"){let[u,_]=Object.entries(o)[0];n[u]={text:_}}else n.techn={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[u,_]=Object.entries(l)[0];n[u]={text:_}}else n.descr={text:l};if(typeof s=="object"){let[u,_]=Object.entries(s)[0];n[u]=_}else n.sprite=s;if(typeof a=="object"){let[u,_]=Object.entries(a)[0];n[u]=_}else n.tags=a;if(typeof i=="object"){let[u,_]=Object.entries(i)[0];n[u]=_}else n.link=i;n.wrap=Et(),n.typeC4Shape={text:e},n.parentBoundary=M},"addComponent"),Me=p.__name(function(e,t,r,o,l){if(e===null||t===null)return;let s={};const a=Q.find(i=>i.alias===e);if(a&&e===a.alias?s=a:(s.alias=e,Q.push(s)),t==null?s.label={text:""}:s.label={text:t},r==null)s.type={text:"system"};else if(typeof r=="object"){let[i,n]=Object.entries(r)[0];s[i]={text:n}}else s.type={text:r};if(typeof o=="object"){let[i,n]=Object.entries(o)[0];s[i]=n}else s.tags=o;if(typeof l=="object"){let[i,n]=Object.entries(l)[0];s[i]=n}else s.link=l;s.parentBoundary=M,s.wrap=Et(),V=M,M=e,vt.push(V)},"addPersonOrSystemBoundary"),Le=p.__name(function(e,t,r,o,l){if(e===null||t===null)return;let s={};const a=Q.find(i=>i.alias===e);if(a&&e===a.alias?s=a:(s.alias=e,Q.push(s)),t==null?s.label={text:""}:s.label={text:t},r==null)s.type={text:"container"};else if(typeof r=="object"){let[i,n]=Object.entries(r)[0];s[i]={text:n}}else s.type={text:r};if(typeof o=="object"){let[i,n]=Object.entries(o)[0];s[i]=n}else s.tags=o;if(typeof l=="object"){let[i,n]=Object.entries(l)[0];s[i]=n}else s.link=l;s.parentBoundary=M,s.wrap=Et(),V=M,M=e,vt.push(V)},"addContainerBoundary"),Ye=p.__name(function(e,t,r,o,l,s,a,i){if(t===null||r===null)return;let n={};const d=Q.find(u=>u.alias===t);if(d&&t===d.alias?n=d:(n.alias=t,Q.push(n)),r==null?n.label={text:""}:n.label={text:r},o==null)n.type={text:"node"};else if(typeof o=="object"){let[u,_]=Object.entries(o)[0];n[u]={text:_}}else n.type={text:o};if(l==null)n.descr={text:""};else if(typeof l=="object"){let[u,_]=Object.entries(l)[0];n[u]={text:_}}else n.descr={text:l};if(typeof a=="object"){let[u,_]=Object.entries(a)[0];n[u]=_}else n.tags=a;if(typeof i=="object"){let[u,_]=Object.entries(i)[0];n[u]=_}else n.link=i;n.nodeType=e,n.parentBoundary=M,n.wrap=Et(),V=M,M=t,vt.push(V)},"addDeploymentNode"),Ne=p.__name(function(){M=V,vt.pop(),V=vt.pop(),vt.push(V)},"popBoundaryParseStack"),je=p.__name(function(e,t,r,o,l,s,a,i,n,d,u){let _=W.find(y=>y.alias===t);if(!(_===void 0&&(_=Q.find(y=>y.alias===t),_===void 0))){if(r!=null)if(typeof r=="object"){let[y,w]=Object.entries(r)[0];_[y]=w}else _.bgColor=r;if(o!=null)if(typeof o=="object"){let[y,w]=Object.entries(o)[0];_[y]=w}else _.fontColor=o;if(l!=null)if(typeof l=="object"){let[y,w]=Object.entries(l)[0];_[y]=w}else _.borderColor=l;if(s!=null)if(typeof s=="object"){let[y,w]=Object.entries(s)[0];_[y]=w}else _.shadowing=s;if(a!=null)if(typeof a=="object"){let[y,w]=Object.entries(a)[0];_[y]=w}else _.shape=a;if(i!=null)if(typeof i=="object"){let[y,w]=Object.entries(i)[0];_[y]=w}else _.sprite=i;if(n!=null)if(typeof n=="object"){let[y,w]=Object.entries(n)[0];_[y]=w}else _.techn=n;if(d!=null)if(typeof d=="object"){let[y,w]=Object.entries(d)[0];_[y]=w}else _.legendText=d;if(u!=null)if(typeof u=="object"){let[y,w]=Object.entries(u)[0];_[y]=w}else _.legendSprite=u}},"updateElStyle"),Ue=p.__name(function(e,t,r,o,l,s,a){const i=Bt.find(n=>n.from===t&&n.to===r);if(i!==void 0){if(o!=null)if(typeof o=="object"){let[n,d]=Object.entries(o)[0];i[n]=d}else i.textColor=o;if(l!=null)if(typeof l=="object"){let[n,d]=Object.entries(l)[0];i[n]=d}else i.lineColor=l;if(s!=null)if(typeof s=="object"){let[n,d]=Object.entries(s)[0];i[n]=parseInt(d)}else i.offsetX=parseInt(s);if(a!=null)if(typeof a=="object"){let[n,d]=Object.entries(a)[0];i[n]=parseInt(d)}else i.offsetY=parseInt(a)}},"updateRelStyle"),Fe=p.__name(function(e,t,r){let o=Ut,l=Ft;if(typeof t=="object"){const s=Object.values(t)[0];o=parseInt(s)}else o=parseInt(t);if(typeof r=="object"){const s=Object.values(r)[0];l=parseInt(s)}else l=parseInt(r);o>=1&&(Ut=o),l>=1&&(Ft=l)},"updateLayoutConfig"),Ve=p.__name(function(){return Ut},"getC4ShapeInRow"),We=p.__name(function(){return Ft},"getC4BoundaryInRow"),Xe=p.__name(function(){return M},"getCurrentBoundaryParse"),ze=p.__name(function(){return V},"getParentBoundaryParse"),pe=p.__name(function(e){return e==null?W:W.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),Qe=p.__name(function(e){return W.find(t=>t.alias===e)},"getC4Shape"),qe=p.__name(function(e){return Object.keys(pe(e))},"getC4ShapeKeys"),ye=p.__name(function(e){return e==null?Q:Q.filter(t=>t.parentBoundary===e)},"getBoundaries"),He=ye,Ge=p.__name(function(){return Bt},"getRels"),Ke=p.__name(function(){return Zt},"getTitle"),Je=p.__name(function(e){ae=e},"setWrap"),Et=p.__name(function(){return ae},"autoWrap"),$t={addPersonOrSystem:Pe,addPersonOrSystemBoundary:Me,addContainer:Be,addContainerBoundary:Le,addComponent:Ie,addDeploymentNode:Ye,popBoundaryParseStack:Ne,addRel:De,updateElStyle:je,updateRelStyle:Ue,updateLayoutConfig:Fe,autoWrap:Et,setWrap:Je,getC4ShapeArray:pe,getC4Shape:Qe,getC4ShapeKeys:qe,getBoundaries:ye,getBoundarys:He,getCurrentBoundaryParse:Xe,getParentBoundaryParse:ze,getRels:Ge,getTitle:Ke,getC4Type:Re,getC4ShapeInRow:Ve,getC4BoundaryInRow:We,setAccTitle:B.setAccTitle,getAccTitle:B.getAccTitle,getAccDescription:B.getAccDescription,setAccDescription:B.setAccDescription,getConfig:p.__name(()=>B.getConfig2().c4,"getConfig"),clear:p.__name(function(){W=[],Q=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],V="",M="global",vt=[""],Bt=[],vt=[""],Zt="",ae=!1,Ut=4,Ft=2},"clear"),LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:p.__name(function(e){Zt=B.sanitizeText(e,B.getConfig2())},"setTitle"),setC4Type:Se},ne=p.__name(function(e,t){return _e.drawRect(e,t)},"drawRect"),ge=p.__name(function(e,t,r,o,l,s){const a=e.append("image");a.attr("width",t),a.attr("height",r),a.attr("x",o),a.attr("y",l);let i=s.startsWith("data:image/png;base64")?s:(0,Te.sanitizeUrl)(s);a.attr("xlink:href",i)},"drawImage"),Ze=p.__name((e,t,r,o)=>{const l=e.append("g");let s=0;for(let a of t){let i=a.textColor?a.textColor:"#444444",n=a.lineColor?a.lineColor:"#444444",d=a.offsetX?parseInt(a.offsetX):0,u=a.offsetY?parseInt(a.offsetY):0;if(s===0){let y=l.append("line");y.attr("x1",a.startPoint.x),y.attr("y1",a.startPoint.y),y.attr("x2",a.endPoint.x),y.attr("y2",a.endPoint.y),y.attr("stroke-width","1"),y.attr("stroke",n),y.style("fill","none"),a.type!=="rel_b"&&y.attr("marker-end","url(#"+o+"-arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&y.attr("marker-start","url(#"+o+"-arrowend)"),s=-1}else{let y=l.append("path");y.attr("fill","none").attr("stroke-width","1").attr("stroke",n).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",a.startPoint.x).replaceAll("starty",a.startPoint.y).replaceAll("controlx",a.startPoint.x+(a.endPoint.x-a.startPoint.x)/2-(a.endPoint.x-a.startPoint.x)/4).replaceAll("controly",a.startPoint.y+(a.endPoint.y-a.startPoint.y)/2).replaceAll("stopx",a.endPoint.x).replaceAll("stopy",a.endPoint.y)),a.type!=="rel_b"&&y.attr("marker-end","url(#"+o+"-arrowhead)"),(a.type==="birel"||a.type==="rel_b")&&y.attr("marker-start","url(#"+o+"-arrowend)")}let _=r.messageFont();G(r)(a.label.text,l,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+d,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+u,a.label.width,a.label.height,{fill:i},_),a.techn&&a.techn.text!==""&&(_=r.messageFont(),G(r)("["+a.techn.text+"]",l,Math.min(a.startPoint.x,a.endPoint.x)+Math.abs(a.endPoint.x-a.startPoint.x)/2+d,Math.min(a.startPoint.y,a.endPoint.y)+Math.abs(a.endPoint.y-a.startPoint.y)/2+r.messageFontSize+5+u,Math.max(a.label.width,a.techn.width),a.techn.height,{fill:i,"font-style":"italic"},_))}},"drawRels"),$e=p.__name(function(e,t,r){const o=e.append("g");let l=t.bgColor?t.bgColor:"none",s=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black",i={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(i={"stroke-width":1}),ne(o,{x:t.x,y:t.y,fill:l,stroke:s,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:i});let n=r.boundaryFont();n.fontWeight="bold",n.fontSize=n.fontSize+2,n.fontColor=a,G(r)(t.label.text,o,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},n),t.type&&t.type.text!==""&&(n=r.boundaryFont(),n.fontColor=a,G(r)(t.type.text,o,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},n)),t.descr&&t.descr.text!==""&&(n=r.boundaryFont(),n.fontSize=n.fontSize-2,n.fontColor=a,G(r)(t.descr.text,o,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},n))},"drawBoundary"),t0=p.__name(function(e,t,r){let o=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],l=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const i=e.append("g");i.attr("class","person-man");const n=_e.getNoteRect();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":n.x=t.x,n.y=t.y,n.fill=o,n.width=t.width,n.height=t.height,n.stroke=l,n.rx=2.5,n.ry=2.5,n.attrs={"stroke-width":.5},ne(i,n);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":i.append("path").attr("fill",o).attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),i.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":i.append("path").attr("fill",o).attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),i.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",l).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let d=o0(r,t.typeC4Shape.text);switch(i.append("text").attr("fill",s).attr("font-family",d.fontFamily).attr("font-size",d.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":ge(i,48,48,t.x+t.width/2-24,t.y+t.image.Y,a);break}let u=r[t.typeC4Shape.text+"Font"]();return u.fontWeight="bold",u.fontSize=u.fontSize+2,u.fontColor=s,G(r)(t.label.text,i,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},u),u=r[t.typeC4Shape.text+"Font"](),u.fontColor=s,t.techn&&t.techn?.text!==""?G(r)(t.techn.text,i,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},u):t.type&&t.type.text!==""&&G(r)(t.type.text,i,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},u),t.descr&&t.descr.text!==""&&(u=r.personFont(),u.fontColor=s,G(r)(t.descr.text,i,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},u)),t.height},"drawC4Shape"),e0=p.__name(function(e,t){e.append("defs").append("symbol").attr("id",t+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),a0=p.__name(function(e,t){e.append("defs").append("symbol").attr("id",t+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),n0=p.__name(function(e,t){e.append("defs").append("symbol").attr("id",t+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),i0=p.__name(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),r0=p.__name(function(e,t){e.append("defs").append("marker").attr("id",t+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),s0=p.__name(function(e,t){e.append("defs").append("marker").attr("id",t+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),l0=p.__name(function(e,t){const r=e.append("defs").append("marker").attr("id",t+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),r.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),o0=p.__name((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),G=(function(){function e(l,s,a,i,n,d,u){o(s.append("text").attr("x",a+n/2).attr("y",i+d/2+5).style("text-anchor","middle").text(l),u)}p.__name(e,"byText");function t(l,s,a,i,n,d,u,_){const{fontSize:y,fontFamily:w,fontWeight:R}=_,D=l.split(B.common_default.lineBreakRegex);for(let L=0;L<D.length;L++){const X=L*y-y*(D.length-1)/2,F=s.append("text").attr("x",a+n/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",y).style("font-weight",R).style("font-family",w);F.append("tspan").attr("dy",X).text(D[L]).attr("alignment-baseline","mathematical"),o(F,u)}}p.__name(t,"byTspan");function r(l,s,a,i,n,d,u,_){const y=s.append("switch"),w=y.append("foreignObject").attr("x",a).attr("y",i).attr("width",n).attr("height",d).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");w.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(l),t(l,y,a,i,n,d,u,_),o(w,u)}p.__name(r,"byFo");function o(l,s){for(const a in s)s.hasOwnProperty(a)&&l.attr(a,s[a])}return p.__name(o,"_setTextAttrs"),function(l){return l.textPlacement==="fo"?r:l.textPlacement==="old"?e:t}})(),z={drawRect:ne,drawBoundary:$e,drawC4Shape:t0,drawRels:Ze,drawImage:ge,insertArrowHead:i0,insertArrowEnd:r0,insertArrowFilledHead:s0,insertArrowCrossHead:l0,insertDatabaseIcon:e0,insertComputerIcon:a0,insertClockIcon:n0},Vt=0,Wt=0,me=4,te=2;jt.yy=$t;var m={},be=class{static{p.__name(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,ee(e.db.getConfig())}setData(e,t,r,o){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=r,this.nextData.stopy=this.data.stopy=o}updateVal(e,t,r,o){e[t]===void 0?e[t]=r:e[t]=o(r,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+e.margin*2,r=t+e.width,o=this.nextData.starty+e.margin*2,l=o+e.height;(t>=this.data.widthLimit||r>=this.data.widthLimit||this.nextData.cnt>me)&&(t=this.nextData.startx+e.margin+m.nextLinePaddingX,o=this.nextData.stopy+e.margin*2,this.nextData.stopx=r=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=l=o+e.height,this.nextData.cnt=1),e.x=t,e.y=o,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",o,Math.min),this.updateVal(this.data,"stopx",r,Math.max),this.updateVal(this.data,"stopy",l,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",o,Math.min),this.updateVal(this.nextData,"stopx",r,Math.max),this.updateVal(this.nextData,"stopy",l,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ee(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},ee=p.__name(function(e){B.assignWithDepth_default(m,e),e.fontFamily&&(m.personFontFamily=m.systemFontFamily=m.messageFontFamily=e.fontFamily),e.fontSize&&(m.personFontSize=m.systemFontSize=m.messageFontSize=e.fontSize),e.fontWeight&&(m.personFontWeight=m.systemFontWeight=m.messageFontWeight=e.fontWeight)},"setConf"),Pt=p.__name((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),Nt=p.__name(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),c0=p.__name(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");function U(e,t,r,o,l){if(!t[e].width)if(r)t[e].text=H.wrapLabel(t[e].text,l,o),t[e].textLines=t[e].text.split(B.common_default.lineBreakRegex).length,t[e].width=l,t[e].height=H.calculateTextHeight(t[e].text,o);else{let s=t[e].text.split(B.common_default.lineBreakRegex);t[e].textLines=s.length;let a=0;t[e].height=0,t[e].width=0;for(const i of s)t[e].width=Math.max(H.calculateTextWidth(i,o),t[e].width),a=H.calculateTextHeight(i,o),t[e].height=t[e].height+a}}p.__name(U,"calcC4ShapeTextWH");var xe=p.__name(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=m.c4ShapeMargin-35;let o=t.wrap&&m.wrap,l=Nt(m);l.fontSize=l.fontSize+2,l.fontWeight="bold",U("label",t,o,l,H.calculateTextWidth(t.label.text,l)),z.drawBoundary(e,t,m)},"drawBoundary"),ve=p.__name(function(e,t,r,o){let l=0;for(const s of o){l=0;const a=r[s];let i=Pt(m,a.typeC4Shape.text);switch(i.fontSize=i.fontSize-2,a.typeC4Shape.width=H.calculateTextWidth("«"+a.typeC4Shape.text+"»",i),a.typeC4Shape.height=i.fontSize+2,a.typeC4Shape.Y=m.c4ShapePadding,l=a.typeC4Shape.Y+a.typeC4Shape.height-4,a.image={width:0,height:0,Y:0},a.typeC4Shape.text){case"person":case"external_person":a.image.width=48,a.image.height=48,a.image.Y=l,l=a.image.Y+a.image.height;break}a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=l,l=a.image.Y+a.image.height);let n=a.wrap&&m.wrap,d=m.width-m.c4ShapePadding*2,u=Pt(m,a.typeC4Shape.text);u.fontSize=u.fontSize+2,u.fontWeight="bold",U("label",a,n,u,d),a.label.Y=l+8,l=a.label.Y+a.label.height,a.type&&a.type.text!==""?(a.type.text="["+a.type.text+"]",U("type",a,n,Pt(m,a.typeC4Shape.text),d),a.type.Y=l+5,l=a.type.Y+a.type.height):a.techn&&a.techn.text!==""&&(a.techn.text="["+a.techn.text+"]",U("techn",a,n,Pt(m,a.techn.text),d),a.techn.Y=l+5,l=a.techn.Y+a.techn.height);let _=l,y=a.label.width;a.descr&&a.descr.text!==""&&(U("descr",a,n,Pt(m,a.typeC4Shape.text),d),a.descr.Y=l+20,l=a.descr.Y+a.descr.height,y=Math.max(a.label.width,a.descr.width),_=l-a.descr.textLines*5),y=y+m.c4ShapePadding,a.width=Math.max(a.width||m.width,y,m.width),a.height=Math.max(a.height||m.height,_,m.height),a.margin=a.margin||m.c4ShapeMargin,e.insert(a),z.drawC4Shape(t,a,m)}e.bumpLastMargin(m.c4ShapeMargin)},"drawC4ShapeArray"),j=class{static{p.__name(this,"Point")}constructor(e,t){this.x=e,this.y=t}},ue=p.__name(function(e,t){let r=e.x,o=e.y,l=t.x,s=t.y,a=r+e.width/2,i=o+e.height/2,n=Math.abs(r-l),d=Math.abs(o-s),u=d/n,_=e.height/e.width,y=null;return o==s&&r<l?y=new j(r+e.width,i):o==s&&r>l?y=new j(r,i):r==l&&o<s?y=new j(a,o+e.height):r==l&&o>s&&(y=new j(a,o)),r>l&&o<s?_>=u?y=new j(r,i+u*e.width/2):y=new j(a-n/d*e.height/2,o+e.height):r<l&&o<s?_>=u?y=new j(r+e.width,i+u*e.width/2):y=new j(a+n/d*e.height/2,o+e.height):r<l&&o>s?_>=u?y=new j(r+e.width,i-u*e.width/2):y=new j(a+e.height/2*n/d,o):r>l&&o>s&&(_>=u?y=new j(r,i-e.width/2*u):y=new j(a-e.height/2*n/d,o)),y},"getIntersectPoint"),h0=p.__name(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let o=ue(e,r);return r.x=e.x+e.width/2,r.y=e.y+e.height/2,{startPoint:o,endPoint:ue(t,r)}},"getIntersectPoints"),u0=p.__name(function(e,t,r,o,l){let s=0;for(let a of t){s=s+1;let i=a.wrap&&m.wrap,n=c0(m);o.db.getC4Type()==="C4Dynamic"&&(a.label.text=s+": "+a.label.text);let d=H.calculateTextWidth(a.label.text,n);U("label",a,i,n,d),a.techn&&a.techn.text!==""&&(d=H.calculateTextWidth(a.techn.text,n),U("techn",a,i,n,d)),a.descr&&a.descr.text!==""&&(d=H.calculateTextWidth(a.descr.text,n),U("descr",a,i,n,d));let u=h0(r(a.from),r(a.to));a.startPoint=u.startPoint,a.endPoint=u.endPoint}z.drawRels(e,t,m,l)},"drawRels");function ie(e,t,r,o,l){let s=new be(l);s.data.widthLimit=r.data.widthLimit/Math.min(te,o.length);for(let[a,i]of o.entries()){let n=0;i.image={width:0,height:0,Y:0},i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=n,n=i.image.Y+i.image.height);let d=i.wrap&&m.wrap,u=Nt(m);if(u.fontSize=u.fontSize+2,u.fontWeight="bold",U("label",i,d,u,s.data.widthLimit),i.label.Y=n+8,n=i.label.Y+i.label.height,i.type&&i.type.text!==""&&(i.type.text="["+i.type.text+"]",U("type",i,d,Nt(m),s.data.widthLimit),i.type.Y=n+5,n=i.type.Y+i.type.height),i.descr&&i.descr.text!==""){let R=Nt(m);R.fontSize=R.fontSize-2,U("descr",i,d,R,s.data.widthLimit),i.descr.Y=n+20,n=i.descr.Y+i.descr.height}if(a==0||a%te===0){let R=r.data.startx+m.diagramMarginX,D=r.data.stopy+m.diagramMarginY+n;s.setData(R,R,D,D)}else{let R=s.data.stopx!==s.data.startx?s.data.stopx+m.diagramMarginX:s.data.startx,D=s.data.starty;s.setData(R,R,D,D)}s.name=i.alias;let _=l.db.getC4ShapeArray(i.alias),y=l.db.getC4ShapeKeys(i.alias);y.length>0&&ve(s,e,_,y),t=i.alias;let w=l.db.getBoundaries(t);w.length>0&&ie(e,t,s,w,l),i.alias!=="global"&&xe(e,i,s),r.data.stopy=Math.max(s.data.stopy+m.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(s.data.stopx+m.c4ShapeMargin,r.data.stopx),Vt=Math.max(Vt,r.data.stopx),Wt=Math.max(Wt,r.data.stopy)}}p.__name(ie,"drawInsideBoundary");var de={drawPersonOrSystemArray:ve,drawBoundary:xe,setConf:ee,draw:p.__name(function(e,t,r,o){m=B.getConfig2().c4;const l=B.getConfig2().securityLevel;let s;l==="sandbox"&&(s=Rt.select_default("#i"+t));const a=l==="sandbox"?Rt.select_default(s.nodes()[0].contentDocument.body):Rt.select_default("body");let i=o.db;o.db.setWrap(m.wrap),me=i.getC4ShapeInRow(),te=i.getC4BoundaryInRow(),Rt.log.debug(`C:${JSON.stringify(m,null,2)}`);const n=l==="sandbox"?a.select(`[id="${t}"]`):Rt.select_default(`[id="${t}"]`);z.insertComputerIcon(n,t),z.insertDatabaseIcon(n,t),z.insertClockIcon(n,t);let d=new be(o);d.setData(m.diagramMarginX,m.diagramMarginX,m.diagramMarginY,m.diagramMarginY),d.data.widthLimit=screen.availWidth,Vt=m.diagramMarginX,Wt=m.diagramMarginY;const u=o.db.getTitle();ie(n,"",d,o.db.getBoundaries(""),o),z.insertArrowHead(n,t),z.insertArrowEnd(n,t),z.insertArrowCrossHead(n,t),z.insertArrowFilledHead(n,t),u0(n,o.db.getRels(),o.db.getC4Shape,o,t),d.data.stopx=Vt,d.data.stopy=Wt;const _=d.data;let y=_.stopy-_.starty+2*m.diagramMarginY;const w=_.stopx-_.startx+2*m.diagramMarginX;u&&n.append("text").text(u).attr("x",(_.stopx-_.startx)/2-4*m.diagramMarginX).attr("y",_.starty+m.diagramMarginY),B.configureSvgSize(n,y,w,m.useMaxWidth);const R=u?60:0;n.attr("viewBox",_.startx-m.diagramMarginX+" -"+(m.diagramMarginY+R)+" "+w+" "+(y+R)),Rt.log.debug("models:",_)},"draw")},d0={parser:Oe,db:$t,renderer:de,styles:p.__name(e=>`.person {
|
|
7
|
+
stroke: ${e.personBorder};
|
|
8
|
+
fill: ${e.personBkg};
|
|
9
|
+
}
|
|
10
|
+
`,"getStyles"),init:p.__name(({c4:e,wrap:t})=>{de.setConf(e),$t.setWrap(t)},"init")};exports.diagram=d0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a
|
|
2
|
-
import { i as t, p as o } from "./factory-
|
|
1
|
+
import { a, n as d, o as n, r as i, t as c } from "./utils-D1iZnChu.js";
|
|
2
|
+
import { i as t, p as o } from "./factory-BkvRcCOx.js";
|
|
3
3
|
import { a as l, n as h } from "./ssr-DSGwPtEd.js";
|
|
4
4
|
var p = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-card-display, block);box-sizing:border-box;min-height:var(--ran-card-min-height, 0)}:host([hoverable]:hover) .ran-card{border-color:var(--ran-card-hover-border-color, var(--ran-color-border-hover, #c9c9c9));box-shadow:var(--ran-card-hover-shadow, var(--ran-shadow-elevated, 0 1px 2px rgba(0, 0, 0, .04)))}.ran-card{display:grid;align-content:start;gap:var(--ran-card-gap, 14px);height:100%;min-width:0;padding:var(--ran-card-padding, 16px);border-width:var(--ran-skin-border-width, 1px);border-style:var(--ran-skin-border-style, solid);border-color:var(--ran-card-border-color, var(--ran-color-border, #eaeaea));border-radius:var(--ran-card-radius, var(--ran-radius-md));background:var(--ran-card-background, var(--ran-color-bg));box-shadow:var(--ran-card-shadow, none);box-sizing:border-box}.ran-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.ran-card-title-area{flex:1;min-width:0}.ran-card-title{margin:0;color:var(--ran-card-title-color, var(--ran-color-text));font-size:var(--ran-card-title-font-size, 16px);font-weight:var(--ran-card-title-font-weight, 600);line-height:1.3}.ran-card-title:empty{display:none}.ran-card-description{margin:4px 0 0;color:var(--ran-card-description-color, var(--ran-color-text-secondary));font-size:var(--ran-card-description-font-size, 14px);line-height:1.5}.ran-card-description:empty{display:none}.ran-card-body,.ran-card-footer{min-width:0}:host(:not([title]):not([description])) .ran-card-header{display:none}", b = class extends h {
|
|
5
5
|
_shadowDom;
|
package/dist/card.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-WYO6CB5R-u4mJNOcO.cjs");var t=(r,n)=>e.Utils.lang.round(e.Color.parse(r)[n]);Object.defineProperty(exports,"channel",{enumerable:!0,get:function(){return t}});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as o, c as i,
|
|
1
|
+
import { a as o, c as i, l as s, n as h, o as b, p as d, r as l, s as t, t as k } from "./utils-D1iZnChu.js";
|
|
2
2
|
import { t as x } from "./events-C59wGdni.js";
|
|
3
|
-
import { i as a, m as c, p
|
|
3
|
+
import { i as a, m as c, p, s as u } from "./factory-BkvRcCOx.js";
|
|
4
4
|
import { a as v, n as f } from "./ssr-DSGwPtEd.js";
|
|
5
|
-
var g = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{position:var(--ran-checkbox-host-position, relative);display:var(--ran-checkbox-host-display, inline-flex);margin:var(--ran-checkbox-host-margin, 0);padding:var(--ran-checkbox-host-padding, 0);box-sizing:var(--ran-checkbox-host-box-sizing, border-box);list-style:var(--ran-checkbox-host-list-style, none)}:host([disabled]){opacity:var(--ran-checkbox-disabled-opacity, .6)}:host([disabled]) .ran-checkbox-input{cursor:var(--ran-checkbox-disabled-cursor, not-allowed);pointer-events:var(--ran-checkbox-disabled-pointer-events, all)}:host([disabled]) .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-bg-muted, #f2f2f2));border:1px solid var(--ran-color-border, #eaeaea)}:host([disabled]) .ran-checkbox-inner:after{cursor:not-allowed;pointer-events:none;opacity:var(--ran-checkbox-checked-after-opacity, 1)}:host([disabled]) .ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-bg-muted, #f2f2f2))}:host([disabled]) .ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-checked-after-opacity, 0)}.ran-checkbox-wrapper{display:inline-flex;align-items:center;gap:var(--ran-checkbox-label-gap, 8px);cursor:pointer;line-height:1}.ran-checkbox-label{color:var(--ran-checkbox-label-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-checkbox-label-font-size, 14px);font-family:var(--ran-checkbox-label-font-family, var(--ran-skin-font-family, inherit));line-height:var(--ran-checkbox-label-line-height, 1.5);-webkit-user-select:none;user-select:none}.ran-checkbox{position:var(--ran-checkbox-position, relative);display:var(--ran-checkbox-display, block);box-sizing:var(--ran-checkbox-box-sizing, border-box);margin:var(--ran-checkbox-margin, 0);width:var(--ran-checkbox-width, 16px);height:var(--ran-checkbox-height, 16px);padding:var(--ran-checkbox-padding, 0);color:var(--ran-checkbox-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-checkbox-font-size, 14px);line-height:var(--ran-checkbox-line-height, 1);list-style:var(--ran-checkbox-list-style, none);font-family:var(--ran-checkbox-font-family, var(--ran-skin-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"));white-space:var(--ran-checkbox-white-space, nowrap);cursor:var(--ran-checkbox-cursor, pointer);border-radius:var(--ran-checkbox-border-radius, 4px)}.ran-checkbox-input{position:var(--ran-checkbox-input-position, absolute);inset:var(--ran-checkbox-input-inset, 0);z-index:var(--ran-checkbox-input-z-index, 1);cursor:var(--ran-checkbox-input-cursor, pointer);opacity:var(--ran-checkbox-input-opacity, 0);margin:var(--ran-checkbox-input-margin, 0)}.ran-checkbox-inner{box-sizing:var(--ran-checkbox-inner-box-sizing, border-box);display:var(--ran-checkbox-inner-display, block);width:var(--ran-checkbox-inner-width, 16px);height:var(--ran-checkbox-inner-height, 16px);direction:var(--ran-checkbox-inner-direction, ltr);background-color:var(--ran-checkbox-inner-background-color, var(--ran-color-bg-elevated, #fff));border:var(--ran-checkbox-inner-border, 1px solid var(--ran-color-border, #eaeaea));border-image-source:var(--ran-checkbox-inner-border-image-source, none);border-image-slice:var(--ran-checkbox-inner-border-image-slice, 8);border-image-width:var(--ran-checkbox-inner-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-checkbox-inner-border-radius, 4px);border-collapse:var(--ran-checkbox-inner-border-collapse, separate)}.ran-checkbox-inner:after{box-sizing:var(--ran-checkbox-inner-after-box-sizing, border-box);position:var(--ran-checkbox-inner-after-position, absolute);top:var(--ran-checkbox-inner-after-top, 50%);inset-inline-start:var(--ran-checkbox-inner-after-inset-inline-start, 25%);display:var(--ran-checkbox-inner-after-display, table);width:var(--ran-checkbox-inner-after-width, calc(16px / 14 * 5));height:var(--ran-checkbox-inner-after-height, calc(16px / 14 * 8));border:var(--ran-checkbox-inner-after-border, 2px solid #fff);border-top:var(--ran-checkbox-inner-after-border-top, 0);border-inline-start:var(--ran-checkbox-inner-after-border-inline-start, 0);opacity:var(--ran-checkbox-inner-after-opacity, 0);content:var(--ran-checkbox-inner-after-content, "");transition:var(--ran-checkbox-inner-after-transition, transform .1s cubic-bezier(.71, -.46, .88, .6), opacity .1s);transform:var(--ran-checkbox-inner-after-transform, rotate(45deg) scale(1) translate(-50%, -50%))}.ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-primary, #006bff));background-image:var(--ran-checkbox-checked-background-image, none);border:var(--ran-checkbox-checked-border, 1px solid var(--ran-color-primary, #006bff))}.ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-checked-after-opacity, 1)}.ran-checkbox:focus-within .ran-checkbox-inner{box-shadow:var(--ran-checkbox-focus-box-shadow, 0 0 0 2px var(--ran-blue-400, #cae7ff));border-color:var(--ran-checkbox-focus-border-color, var(--ran-color-primary, #006bff))}', m = class extends f {
|
|
5
|
+
var g = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{position:var(--ran-checkbox-host-position, relative);display:var(--ran-checkbox-host-display, inline-flex);margin:var(--ran-checkbox-host-margin, 0);padding:var(--ran-checkbox-host-padding, 0);box-sizing:var(--ran-checkbox-host-box-sizing, border-box);list-style:var(--ran-checkbox-host-list-style, none)}:host([disabled]){opacity:var(--ran-checkbox-disabled-opacity, .6)}:host([disabled]) .ran-checkbox-input{cursor:var(--ran-checkbox-disabled-cursor, not-allowed);pointer-events:var(--ran-checkbox-disabled-pointer-events, all)}:host([disabled]) .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-bg-muted, #f2f2f2));border:1px solid var(--ran-color-border, #eaeaea)}:host([disabled]) .ran-checkbox-inner:after{cursor:not-allowed;pointer-events:none;opacity:var(--ran-checkbox-checked-after-opacity, 1)}:host([disabled]) .ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-bg-muted, #f2f2f2))}:host([disabled]) .ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-checked-after-opacity, 0)}.ran-checkbox-wrapper{display:inline-flex;align-items:center;gap:var(--ran-checkbox-label-gap, 8px);cursor:pointer;line-height:1}.ran-checkbox-label{color:var(--ran-checkbox-label-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-checkbox-label-font-size, 14px);font-family:var(--ran-checkbox-label-font-family, var(--ran-skin-font-family, inherit));line-height:var(--ran-checkbox-label-line-height, 1.5);-webkit-user-select:none;user-select:none}.ran-checkbox{position:var(--ran-checkbox-position, relative);display:var(--ran-checkbox-display, block);box-sizing:var(--ran-checkbox-box-sizing, border-box);margin:var(--ran-checkbox-margin, 0);width:var(--ran-checkbox-width, 16px);height:var(--ran-checkbox-height, 16px);padding:var(--ran-checkbox-padding, 0);color:var(--ran-checkbox-color, var(--ran-color-text, rgba(0, 0, 0, .88)));font-size:var(--ran-checkbox-font-size, 14px);line-height:var(--ran-checkbox-line-height, 1);list-style:var(--ran-checkbox-list-style, none);font-family:var(--ran-checkbox-font-family, var(--ran-skin-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"));white-space:var(--ran-checkbox-white-space, nowrap);cursor:var(--ran-checkbox-cursor, pointer);border-radius:var(--ran-checkbox-border-radius, 4px)}.ran-checkbox-input{position:var(--ran-checkbox-input-position, absolute);inset:var(--ran-checkbox-input-inset, 0);z-index:var(--ran-checkbox-input-z-index, 1);cursor:var(--ran-checkbox-input-cursor, pointer);opacity:var(--ran-checkbox-input-opacity, 0);margin:var(--ran-checkbox-input-margin, 0)}.ran-checkbox-inner{box-sizing:var(--ran-checkbox-inner-box-sizing, border-box);display:var(--ran-checkbox-inner-display, block);width:var(--ran-checkbox-inner-width, 16px);height:var(--ran-checkbox-inner-height, 16px);direction:var(--ran-checkbox-inner-direction, ltr);background-color:var(--ran-checkbox-inner-background-color, var(--ran-color-bg-elevated, #fff));border:var(--ran-checkbox-inner-border, 1px solid var(--ran-color-border, #eaeaea));border-image-source:var(--ran-checkbox-inner-border-image-source, none);border-image-slice:var(--ran-checkbox-inner-border-image-slice, 8);border-image-width:var(--ran-checkbox-inner-border-image-width, 4px);border-image-outset:0;border-image-repeat:stretch;border-radius:var(--ran-checkbox-inner-border-radius, 4px);border-collapse:var(--ran-checkbox-inner-border-collapse, separate)}.ran-checkbox-inner:after{box-sizing:var(--ran-checkbox-inner-after-box-sizing, border-box);position:var(--ran-checkbox-inner-after-position, absolute);top:var(--ran-checkbox-inner-after-top, 50%);inset-inline-start:var(--ran-checkbox-inner-after-inset-inline-start, 25%);display:var(--ran-checkbox-inner-after-display, table);width:var(--ran-checkbox-inner-after-width, calc(16px / 14 * 5));height:var(--ran-checkbox-inner-after-height, calc(16px / 14 * 8));border:var(--ran-checkbox-inner-after-border, 2px solid #fff);border-top:var(--ran-checkbox-inner-after-border-top, 0);border-inline-start:var(--ran-checkbox-inner-after-border-inline-start, 0);opacity:var(--ran-checkbox-inner-after-opacity, 0);content:var(--ran-checkbox-inner-after-content, "");transition:var(--ran-checkbox-inner-after-transition, transform .1s cubic-bezier(.71, -.46, .88, .6), opacity .1s);transform:var(--ran-checkbox-inner-after-transform, rotate(45deg) scale(1) translate(-50%, -50%))}.ran-checkbox-checked .ran-checkbox-inner{background-color:var(--ran-checkbox-checked-background-color, var(--ran-color-primary, #006bff));background-image:var(--ran-checkbox-checked-background-image, none);border:var(--ran-checkbox-checked-border, 1px solid var(--ran-color-primary, #006bff));animation:var(--ran-checkbox-pop-animation, ran-checkbox-pop var(--ran-motion-duration-base, .2s) var(--ran-motion-ease-bouncy, cubic-bezier(.34, 1.56, .64, 1)))}.ran-checkbox-checked .ran-checkbox-inner:after{opacity:var(--ran-checkbox-checked-after-opacity, 1)}.ran-checkbox:focus-within .ran-checkbox-inner{box-shadow:var(--ran-checkbox-focus-box-shadow, 0 0 0 2px var(--ran-blue-400, #cae7ff));border-color:var(--ran-checkbox-focus-border-color, var(--ran-color-primary, #006bff))}@keyframes ran-checkbox-pop{0%{transform:scale(1)}45%{transform:scale(1.14)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.ran-checkbox-checked .ran-checkbox-inner{animation:none}}', m = class extends f {
|
|
6
6
|
static formAssociated = !0;
|
|
7
7
|
_events = new x();
|
|
8
8
|
_internals;
|
|
@@ -26,12 +26,12 @@ var g = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
26
26
|
} catch {
|
|
27
27
|
this._internals = void 0;
|
|
28
28
|
}
|
|
29
|
-
this._shadowDom =
|
|
30
|
-
const e = k(this._shadowDom, ".ran-checkbox-wrapper", () => a().class("ran-checkbox-wrapper").part("wrapper").children(a().class("ran-checkbox").part("checkbox").children(
|
|
29
|
+
this._shadowDom = h(this, g);
|
|
30
|
+
const e = k(this._shadowDom, ".ran-checkbox-wrapper", () => a().class("ran-checkbox-wrapper").part("wrapper").children(a().class("ran-checkbox").part("checkbox").children(u().class("ran-checkbox-input").part("input").attr("type", "checkbox"), c().class("ran-checkbox-inner").part("inner")), c().class("ran-checkbox-label").part("label").children(p())).build());
|
|
31
31
|
this.container = e.querySelector(".ran-checkbox"), this.checkInput = e.querySelector(".ran-checkbox-input"), this.checkInner = e.querySelector(".ran-checkbox-inner"), this.checkInput.setAttribute("aria-hidden", "true"), this.checkInput.tabIndex = -1, this.context = { checked: !1 };
|
|
32
32
|
}
|
|
33
33
|
get disabled() {
|
|
34
|
-
return
|
|
34
|
+
return i(this);
|
|
35
35
|
}
|
|
36
36
|
set disabled(e) {
|
|
37
37
|
t.includes(e) ? this.removeAttribute("disabled") : this.setAttribute("disabled", "");
|
|
@@ -51,17 +51,17 @@ var g = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transpar
|
|
|
51
51
|
t.includes(e) ? (this.setAttribute("checked", "false"), this.context.checked = !1) : (this.setAttribute("checked", "true"), this.context.checked = !0), this.updateChecked();
|
|
52
52
|
}
|
|
53
53
|
get sheet() {
|
|
54
|
-
return
|
|
54
|
+
return l(this, "sheet");
|
|
55
55
|
}
|
|
56
56
|
set sheet(e) {
|
|
57
|
-
|
|
57
|
+
o(this, "sheet", e);
|
|
58
58
|
}
|
|
59
59
|
handlerExternalCss = () => {
|
|
60
|
-
|
|
60
|
+
b(this, this._shadowDom, "sheet", null, this.sheet);
|
|
61
61
|
};
|
|
62
62
|
updateChecked = () => {
|
|
63
63
|
const { checked: e } = this.context;
|
|
64
|
-
e ? (this.setAttribute("checked", "true"), this.setAttribute("value", "true"),
|
|
64
|
+
e ? (this.setAttribute("checked", "true"), this.setAttribute("value", "true"), s(this.container, "ran-checkbox-checked")) : (this.setAttribute("checked", "false"), this.setAttribute("value", "false"), d(this.container, "ran-checkbox-checked")), this.syncA11yAndForm();
|
|
65
65
|
};
|
|
66
66
|
syncA11yAndForm = () => {
|
|
67
67
|
const { checked: e } = this.context;
|
package/dist/checkbox.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs");var r=class{constructor(t){this.init=t,this.records=this.init()}static{e.__name(this,"ImperativeState")}reset(){this.records=this.init()}};Object.defineProperty(exports,"ImperativeState",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { n as i } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
var r = class {
|
|
3
|
+
constructor(t) {
|
|
4
|
+
this.init = t, this.records = this.init();
|
|
5
|
+
}
|
|
6
|
+
static {
|
|
7
|
+
i(this, "ImperativeState");
|
|
8
|
+
}
|
|
9
|
+
reset() {
|
|
10
|
+
this.records = this.init();
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
r as t
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),l=require("./src-C9EhKhbk.cjs"),c=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),u=require("./dist-C20XxSsP.cjs");var o=u.require_dist(),d=a.__name((n,e)=>{const t=n.append("rect");if(t.attr("x",e.x),t.attr("y",e.y),t.attr("fill",e.fill),t.attr("stroke",e.stroke),t.attr("width",e.width),t.attr("height",e.height),e.name&&t.attr("name",e.name),e.rx&&t.attr("rx",e.rx),e.ry&&t.attr("ry",e.ry),e.attrs!==void 0)for(const r in e.attrs)t.attr(r,e.attrs[r]);return e.class&&t.attr("class",e.class),t},"drawRect"),m=a.__name((n,e)=>{d(n,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},"drawBackgroundRect"),p=a.__name((n,e)=>{const t=e.text.replace(c.lineBreakRegex," "),r=n.append("text");r.attr("x",e.x),r.attr("y",e.y),r.attr("class","legend"),r.style("text-anchor",e.anchor),e.class&&r.attr("class",e.class);const i=r.append("tspan");return i.attr("x",e.x+e.textMargin*2),i.text(t),r},"drawText"),y=a.__name((n,e,t,r)=>{const i=n.append("image");i.attr("x",e),i.attr("y",t);const s=(0,o.sanitizeUrl)(r);i.attr("xlink:href",s)},"drawImage"),f=a.__name((n,e,t,r)=>{const i=n.append("use");i.attr("x",e),i.attr("y",t);const s=(0,o.sanitizeUrl)(r);i.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),g=a.__name(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),x=a.__name(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),_=a.__name(()=>{let n=l.select_default(".mermaidTooltip");return n.empty()&&(n=l.select_default("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")),n},"createTooltip");Object.defineProperty(exports,"createTooltip",{enumerable:!0,get:function(){return _}});Object.defineProperty(exports,"drawBackgroundRect",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"drawEmbeddedImage",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"drawImage",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"drawRect",{enumerable:!0,get:function(){return d}});Object.defineProperty(exports,"drawText",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"getNoteRect",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"getTextObj",{enumerable:!0,get:function(){return x}});
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { n as i } from "./chunk-Y2CYZVJY-0JxdZxki.js";
|
|
2
|
+
import { p as n } from "./src-DtRLxcYO.js";
|
|
3
|
+
import { j as d } from "./chunk-WYO6CB5R-DDHkKowO.js";
|
|
4
|
+
import { t as p } from "./dist-C0Fwsvsq.js";
|
|
5
|
+
var o = p(), x = /* @__PURE__ */ i((s, t) => {
|
|
6
|
+
const e = s.append("rect");
|
|
7
|
+
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0) for (const r in t.attrs) e.attr(r, t.attrs[r]);
|
|
8
|
+
return t.class && e.attr("class", t.class), e;
|
|
9
|
+
}, "drawRect"), g = /* @__PURE__ */ i((s, t) => {
|
|
10
|
+
x(s, {
|
|
11
|
+
x: t.startx,
|
|
12
|
+
y: t.starty,
|
|
13
|
+
width: t.stopx - t.startx,
|
|
14
|
+
height: t.stopy - t.starty,
|
|
15
|
+
fill: t.fill,
|
|
16
|
+
stroke: t.stroke,
|
|
17
|
+
class: "rect"
|
|
18
|
+
}).lower();
|
|
19
|
+
}, "drawBackgroundRect"), h = /* @__PURE__ */ i((s, t) => {
|
|
20
|
+
const e = t.text.replace(d, " "), r = s.append("text");
|
|
21
|
+
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class && r.attr("class", t.class);
|
|
22
|
+
const a = r.append("tspan");
|
|
23
|
+
return a.attr("x", t.x + t.textMargin * 2), a.text(e), r;
|
|
24
|
+
}, "drawText"), w = /* @__PURE__ */ i((s, t, e, r) => {
|
|
25
|
+
const a = s.append("image");
|
|
26
|
+
a.attr("x", t), a.attr("y", e);
|
|
27
|
+
const l = (0, o.sanitizeUrl)(r);
|
|
28
|
+
a.attr("xlink:href", l);
|
|
29
|
+
}, "drawImage"), k = /* @__PURE__ */ i((s, t, e, r) => {
|
|
30
|
+
const a = s.append("use");
|
|
31
|
+
a.attr("x", t), a.attr("y", e);
|
|
32
|
+
const l = (0, o.sanitizeUrl)(r);
|
|
33
|
+
a.attr("xlink:href", `#${l}`);
|
|
34
|
+
}, "drawEmbeddedImage"), v = /* @__PURE__ */ i(() => ({
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 100,
|
|
38
|
+
height: 100,
|
|
39
|
+
fill: "#EDF2AE",
|
|
40
|
+
stroke: "#666",
|
|
41
|
+
anchor: "start",
|
|
42
|
+
rx: 0,
|
|
43
|
+
ry: 0
|
|
44
|
+
}), "getNoteRect"), E = /* @__PURE__ */ i(() => ({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
width: 100,
|
|
48
|
+
height: 100,
|
|
49
|
+
"text-anchor": "start",
|
|
50
|
+
style: "#666",
|
|
51
|
+
textMargin: 0,
|
|
52
|
+
rx: 0,
|
|
53
|
+
ry: 0,
|
|
54
|
+
tspan: !0
|
|
55
|
+
}), "getTextObj"), T = /* @__PURE__ */ i(() => {
|
|
56
|
+
let s = n(".mermaidTooltip");
|
|
57
|
+
return s.empty() && (s = n("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")), s;
|
|
58
|
+
}, "createTooltip");
|
|
59
|
+
export {
|
|
60
|
+
x as a,
|
|
61
|
+
E as c,
|
|
62
|
+
w as i,
|
|
63
|
+
g as n,
|
|
64
|
+
h as o,
|
|
65
|
+
k as r,
|
|
66
|
+
v as s,
|
|
67
|
+
T as t
|
|
68
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const d=require("./chunk-Y2CYZVJY-DPaYLFFP.cjs"),u=require("./src-C9EhKhbk.cjs"),O=require("./chunk-WYO6CB5R-u4mJNOcO.cjs"),_=require("./chunk-ICXQ74PX-BbT9JaEW.cjs"),lt=require("./line-CAB5QHC6.cjs"),ct=require("./chunk-Q4XR5HBZ-aBnPq509.cjs"),E=require("./chunk-7BUUIJ7U-DMv_UkjI.cjs"),dt=require("./chunk-OGEWGWER-DX8sW1dT.cjs"),tt=require("./chunk-C7G6YPKG-CKEeW9TM.cjs"),pt=require("./rough.esm-BfSi6CZE.cjs"),I=require("./chunk-ZGVPDNZ5-Cw5_HJba.cjs");var ft=d.__name((r,t,a,e,n,s=!1,o)=>{t.arrowTypeStart&&J(r,"start",t.arrowTypeStart,a,e,n,s,o),t.arrowTypeEnd&&J(r,"end",t.arrowTypeEnd,a,e,n,s,o)},"addEdgeMarkers"),ht={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},mt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],J=d.__name((r,t,a,e,n,s,o=!1,i)=>{const h=ht[a],m=h&&mt.includes(h.type);if(!h){u.log.warn(`Unknown arrow type: ${a}`);return}const l=`${n}_${s}-${h.type}${t==="start"?"Start":"End"}${o&&m?"-margin":""}`;if(i&&i.trim()!==""){const p=`${l}_${i.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(p)){const c=document.getElementById(l);if(c){const f=c.cloneNode(!0);f.id=p,f.querySelectorAll("path, circle, line").forEach(k=>{k.setAttribute("stroke",i),h.fill&&k.setAttribute("fill",i)}),c.parentNode?.appendChild(f)}}r.attr(`marker-${t}`,`url(${e}#${p})`)}else r.attr(`marker-${t}`,`url(${e}#${l})`)},"addEdgeMarker"),kt=d.__name(r=>typeof r=="string"?r:O.getConfig2()?.flowchart?.curve,"resolveEdgeCurveType"),A=new Map,w=new Map,ut=d.__name(()=>{A.clear(),w.clear()},"clear"),P=d.__name(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),gt=d.__name(async(r,t)=>{const a=O.getConfig2();let e=O.getEffectiveHtmlLabels(a);const{labelStyles:n}=tt.styles2String(t);t.labelStyle=n;const s=r.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",h=await ct.createText(r,t.label,{style:P(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:void 0},a);o.node().appendChild(h),u.log.info("abc82",t,t.labelType);let m=h.getBBox(),l=m;if(e){const c=h.children[0],f=u.select_default(h);m=c.getBoundingClientRect(),l=m,f.attr("width",m.width),f.attr("height",m.height)}else{const c=u.select_default(h).select("text").node();c&&typeof c.getBBox=="function"&&(l=c.getBBox())}o.attr("transform",E.computeLabelTransform(l,e)),A.set(t.id,s),t.width=m.width,t.height=m.height;let p;if(t.startLabelLeft){const c=r.insert("g").attr("class","edgeTerminals"),f=c.insert("g").attr("class","inner"),k=await I.createLabel_default(f,t.startLabelLeft,P(t.labelStyle)||"",!1,!1);p=k;let g=k.getBBox();if(e){const L=k.children[0],x=u.select_default(k);g=L.getBoundingClientRect(),x.attr("width",g.width),x.attr("height",g.height)}f.attr("transform",E.computeLabelTransform(g,e)),w.get(t.id)||w.set(t.id,{}),w.get(t.id).startLeft=c,R(p,t.startLabelLeft)}if(t.startLabelRight){const c=r.insert("g").attr("class","edgeTerminals"),f=c.insert("g").attr("class","inner"),k=await I.createLabel_default(f,t.startLabelRight,P(t.labelStyle)||"",!1,!1);p=k;let g=k.getBBox();if(e){const L=k.children[0],x=u.select_default(k);g=L.getBoundingClientRect(),x.attr("width",g.width),x.attr("height",g.height)}f.attr("transform",E.computeLabelTransform(g,e)),w.get(t.id)||w.set(t.id,{}),w.get(t.id).startRight=c,R(p,t.startLabelRight)}if(t.endLabelLeft){const c=r.insert("g").attr("class","edgeTerminals"),f=c.insert("g").attr("class","inner"),k=await I.createLabel_default(c,t.endLabelLeft,P(t.labelStyle)||"",!1,!1);p=k;let g=k.getBBox();if(e){const L=k.children[0],x=u.select_default(k);g=L.getBoundingClientRect(),x.attr("width",g.width),x.attr("height",g.height)}f.attr("transform",E.computeLabelTransform(g,e)),w.get(t.id)||w.set(t.id,{}),w.get(t.id).endLeft=c,R(p,t.endLabelLeft)}if(t.endLabelRight){const c=r.insert("g").attr("class","edgeTerminals"),f=c.insert("g").attr("class","inner"),k=await I.createLabel_default(c,t.endLabelRight,P(t.labelStyle)||"",!1,!1);p=k;let g=k.getBBox();if(e){const L=k.children[0],x=u.select_default(k);g=L.getBoundingClientRect(),x.attr("width",g.width),x.attr("height",g.height)}f.attr("transform",E.computeLabelTransform(g,e)),w.get(t.id)||w.set(t.id,{}),w.get(t.id).endRight=c,R(p,t.endLabelRight)}return h},"insertEdgeLabel");function R(r,t){O.getEffectiveHtmlLabels(O.getConfig2())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}d.__name(R,"setTerminalWidth");var _t=d.__name((r,t)=>{u.log.debug("Moving label abc88 ",r.id,r.label,A.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath;const{subGraphTitleTotalMargin:e}=dt.getSubGraphTitleMargins(O.getConfig2());if(r.label){const n=A.get(r.id);let s=r.x,o=r.y;if(a){const i=_.utils_default.calcLabelPosition(a);u.log.debug("Moving label "+r.label+" from (",s,",",o,") to (",i.x,",",i.y,") abc88"),t.updatedPath&&(s=i.x,o=i.y)}n.attr("transform",`translate(${s}, ${o+e/2})`)}if(r.startLabelLeft){const n=w.get(r.id).startLeft;let s=r.x,o=r.y;if(a){const i=_.utils_default.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=i.x,o=i.y}n.attr("transform",`translate(${s}, ${o})`)}if(r.startLabelRight){const n=w.get(r.id).startRight;let s=r.x,o=r.y;if(a){const i=_.utils_default.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=i.x,o=i.y}n.attr("transform",`translate(${s}, ${o})`)}if(r.endLabelLeft){const n=w.get(r.id).endLeft;let s=r.x,o=r.y;if(a){const i=_.utils_default.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=i.x,o=i.y}n.attr("transform",`translate(${s}, ${o})`)}if(r.endLabelRight){const n=w.get(r.id).endRight;let s=r.x,o=r.y;if(a){const i=_.utils_default.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=i.x,o=i.y}n.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),yt=d.__name((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;const[a,e]=t,n=Math.abs(e.x-a.x),s=Math.abs(e.y-a.y);return n<.001||s<.001?t:s>=n?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),xt=d.__name((r,t)=>{const a=r.x,e=r.y,n=Math.abs(t.x-a),s=Math.abs(t.y-e),o=r.width/2,i=r.height/2;return n>=o||s>=i},"outsideNode"),bt=d.__name((r,t,a)=>{u.log.debug(`intersection calc abc89:
|
|
2
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
3
|
+
insidePoint : ${JSON.stringify(a)}
|
|
4
|
+
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const e=r.x,n=r.y,s=Math.abs(e-a.x),o=r.width/2;let i=a.x<t.x?o-s:o+s;const h=r.height/2,m=Math.abs(t.y-a.y),l=Math.abs(t.x-a.x);if(Math.abs(n-t.y)*o>Math.abs(e-t.x)*h){let p=a.y<t.y?t.y-h-n:n-h-t.y;i=l*p/m;const c={x:a.x<t.x?a.x+i:a.x-l+i,y:a.y<t.y?a.y+m-p:a.y-m+p};return i===0&&(c.x=t.x,c.y=t.y),l===0&&(c.x=t.x),m===0&&(c.y=t.y),u.log.debug(`abc89 top/bottom calc, Q ${m}, q ${p}, R ${l}, r ${i}`,c),c}else{a.x<t.x?i=t.x-o-e:i=e-o-t.x;let p=m*i/l,c=a.x<t.x?a.x+l-i:a.x-l+i,f=a.y<t.y?a.y+p:a.y-p;return u.log.debug(`sides calc abc89, Q ${m}, q ${p}, R ${l}, r ${i}`,{_x:c,_y:f}),i===0&&(c=t.x,f=t.y),l===0&&(c=t.x),m===0&&(f=t.y),{x:c,y:f}}},"intersection"),F=d.__name((r,t)=>{u.log.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],n=!1;return r.forEach(s=>{if(u.log.info("abc88 checking point",s,t),!xt(t,s)&&!n){const o=bt(t,e,s);u.log.debug("abc88 inside",s,e,o),u.log.debug("abc88 intersection",o,t);let i=!1;a.forEach(h=>{i=i||h.x===o.x&&h.y===o.y}),a.some(h=>h.x===o.x&&h.y===o.y)?u.log.warn("abc88 no intersect",o,a):a.push(o),n=!0}else u.log.warn("abc88 outside",s,e),e=s,n||a.push(s)}),u.log.debug("returning points",a),a},"cutPathAtIntersect");function rt(r){const t=[],a=[];for(let e=1;e<r.length-1;e++){const n=r[e-1],s=r[e],o=r[e+1];(n.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5||n.y===s.y&&s.x===o.x&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5)&&(t.push(s),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}d.__name(rt,"extractCornerPoints");var K=d.__name(function(r,t,a){const e=t.x-r.x,n=t.y-r.y,s=a/Math.sqrt(e*e+n*n);return{x:t.x-s*e,y:t.y-s*n}},"findAdjacentPoint"),wt=d.__name(function(r){const{cornerPointPositions:t}=rt(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){const n=r[e-1],s=r[e+1],o=r[e],i=K(n,o,5),h=K(s,o,5),m=h.x-i.x,l=h.y-i.y;a.push(i);const p=Math.sqrt(2)*2;let c={x:o.x,y:o.y};if(Math.abs(s.x-n.x)>10&&Math.abs(s.y-n.y)>=10){u.log.debug("Corner point fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));const f=5;o.x===i.x?c={x:m<0?i.x-f+p:i.x+f-p,y:l<0?i.y-p:i.y+p}:c={x:m<0?i.x-p:i.x+p,y:l<0?i.y-f+p:i.y+f-p}}else u.log.debug("Corner point skipping fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));a.push(c,h)}else a.push(r[e]);return a},"fixCorners"),Lt=d.__name((r,t,a)=>{const e=r-t-a,n=2,s=2,o=Math.floor(e/4);return`0 ${t} ${Array(o).fill(`${n} ${s}`).join(" ")} ${a}`},"generateDashArray"),Mt=d.__name(function(r,t,a,e,n,s,o,i=!1){if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:h,layout:m}=O.getConfig2();let l=t.points,p=!1;const c=n;var f=s;const k=[];for(const y in t.cssCompiledStyles)tt.isLabelStyle(y)||k.push(t.cssCompiledStyles[y]);if(m==="swimlane"){if(f.intersect&&c.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[c.intersect(l[0]),f.intersect(l[1])];else{const y=l.slice(1,-1),W=y[0],$=y[y.length-1],U=.5,q=Math.abs(l[l.length-1].x-$.x)<U&&Math.abs(l[l.length-1].y-$.y)<U,Y=c.intersect(W),X=q?$:f.intersect($),H=Math.abs(X.x-$.x)<U&&Math.abs(X.y-$.y)<U,z=Math.abs(Y.x-W.x)<U&&Math.abs(Y.y-W.y)<U?[]:[Y],it=H?[]:[X];l=[...z,...y,...it]}l=yt(t,l)}else f.intersect&&c.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(c.intersect(l[0])),l.push(f.intersect(l[l.length-1])));const g=btoa(JSON.stringify(l));t.toCluster&&(u.log.info("to cluster abc88",a.get(t.toCluster)),l=F(t.points,a.get(t.toCluster).node),p=!0),t.fromCluster&&(u.log.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=F(l.reverse(),a.get(t.fromCluster).node).reverse(),p=!0);let L=l.filter(y=>!Number.isNaN(y.y));const x=kt(t.curve);x!=="rounded"&&(L=wt(L));let b=_.linear_default;switch(x){case"linear":b=_.linear_default;break;case"basis":b=_.basis_default;break;case"cardinal":b=_.cardinal_default;break;case"bumpX":b=_.bumpX;break;case"bumpY":b=_.bumpY;break;case"catmullRom":b=_.catmullRom_default;break;case"monotoneX":b=_.monotoneX;break;case"monotoneY":b=_.monotoneY;break;case"natural":b=_.natural_default;break;case"step":b=_.step_default;break;case"stepAfter":b=_.stepAfter;break;case"stepBefore":b=_.stepBefore;break;case"rounded":b=_.linear_default;break;default:b=_.basis_default}const{x:N,y:B}=E.getLineFunctionsWithOffset(t),T=lt.line_default().x(N).y(B).curve(b);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let M,Q=x==="rounded"?at(et(L,t),5):T(L);const v=Array.isArray(t.style)?t.style:[t.style];let G=v.find(y=>y?.startsWith("stroke:")),C="";t.animate&&(C="edge-animation-fast"),t.animation&&(C="edge-animation-"+t.animation);let j=!1;if(t.look==="handDrawn"){const y=pt.at.svg(r);Object.assign([],L);const W=y.path(Q,{roughness:.3,seed:h});S+=" transition",M=u.select_default(W).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",v?v.reduce((U,q)=>U+";"+q,""):"");let $=M.attr("d");M.attr("d",$),r.node().appendChild(M.node())}else{const y=k.join(";"),W=v?v.reduce((H,z)=>H+z+";",""):"",$=(y?y+";"+W+";":W)+";"+(v?v.reduce((H,z)=>H+";"+z,""):"");M=r.append("path").attr("d",Q).attr("id",`${o}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(C?" "+C:"")).attr("style",$),G=$.match(/stroke:([^;]+)/)?.[1],j=t.animate===!0||!!t.animation||y.includes("animation");const U=M.node(),q=typeof U.getTotalLength=="function"?U.getTotalLength():0,Y=E.markerOffsets2[t.arrowTypeStart]||0,X=E.markerOffsets2[t.arrowTypeEnd]||0;if(t.look==="neo"&&!j){const H=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Lt(q,Y,X):`0 ${Y} ${q-Y-X} ${X}`}; stroke-dashoffset: 0;`;M.attr("style",H+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",g),M.attr("data-look",_.handleUndefinedAttr(t.look)),t.showPoints&&L.forEach(y=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",y.x).attr("cy",y.y)});let Z="";(O.getConfig2().flowchart.arrowMarkerAbsolute||O.getConfig2().state.arrowMarkerAbsolute)&&(Z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Z=Z.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),u.log.info("arrowTypeStart",t.arrowTypeStart),u.log.info("arrowTypeEnd",t.arrowTypeEnd);const nt=!j&&t?.look==="neo";ft(M,t,Z,o,e,nt,G);const st=Math.floor(l.length/2),ot=l[st];_.utils_default.isLabelCoordinateInPath(ot,M.attr("d"))||(p=!0);let V={};return p&&(V.updatedPath=l),V.originalPath=t.points,V},"insertEdge");function at(r,t){if(r.length<2)return"";let a="";const e=r.length,n=1e-5;for(let s=0;s<e;s++){const o=r[s],i=r[s-1],h=r[s+1];if(s===0)a+=`M${o.x},${o.y}`;else if(s===e-1)a+=`L${o.x},${o.y}`;else{const m=o.x-i.x,l=o.y-i.y,p=h.x-o.x,c=h.y-o.y,f=Math.hypot(m,l),k=Math.hypot(p,c);if(f<n||k<n){a+=`L${o.x},${o.y}`;continue}const g=m/f,L=l/f,x=p/k,b=c/k,N=g*x+L*b,B=Math.acos(Math.max(-1,Math.min(1,N)));if(B<n||Math.abs(Math.PI-B)<n){a+=`L${o.x},${o.y}`;continue}const T=Math.min(t/Math.sin(B/2),f/2,k/2),S=o.x-g*T,M=o.y-L*T,Q=o.x+x*T,v=o.y+b*T;a+=`L${S},${M}`,a+=`Q${o.x},${o.y} ${Q},${v}`}}return a}d.__name(at,"generateRoundedPath");function D(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};const a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}d.__name(D,"calculateDeltaAndAngle");function et(r,t){const a=r.map(n=>({...n}));if(r.length>=2&&E.markerOffsets[t.arrowTypeStart]){const n=E.markerOffsets[t.arrowTypeStart],s=r[0],o=r[1],{angle:i}=D(s,o),h=n*Math.cos(i),m=n*Math.sin(i);a[0].x=s.x+h,a[0].y=s.y+m}const e=r.length;if(e>=2&&E.markerOffsets[t.arrowTypeEnd]){const n=E.markerOffsets[t.arrowTypeEnd],s=r[e-1],o=r[e-2],{angle:i}=D(o,s),h=n*Math.cos(i),m=n*Math.sin(i);a[e-1].x=s.x-h,a[e-1].y=s.y-m}return a}d.__name(et,"applyMarkerOffsetsToPoints");var Ot=d.__name((r,t,a,e)=>{t.forEach(n=>{St[n](r,a,e)})},"insertMarkers"),St={extension:d.__name((r,t,a)=>{u.log.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),composition:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),aggregation:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),dependency:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),lollipop:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),point:d.__name((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),circle:d.__name((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),cross:d.__name((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),barb:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),barbNeo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{transitionColor:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),only_one:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),zero_or_one:d.__name((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");const n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),one_or_more:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),zero_or_more:d.__name((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),only_one_neo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),zero_or_one_neo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{strokeWidth:n,mainBkg:s}=e,o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);const i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),one_or_more_neo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),zero_or_more_neo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{strokeWidth:n,mainBkg:s}=e,o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);const i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),requirement_arrow:d.__name((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
5
|
+
L20,10
|
|
6
|
+
M20,10
|
|
7
|
+
L0,20`)},"requirement_arrow"),requirement_contains:d.__name((r,t,a)=>{const e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{strokeWidth:n}=e;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
8
|
+
L20,10
|
|
9
|
+
M20,10
|
|
10
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),requirement_contains_neo:d.__name((r,t,a)=>{const{themeVariables:e}=O.getConfig(),{strokeWidth:n}=e,s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo")},Et=Ot;Object.defineProperty(exports,"clear",{enumerable:!0,get:function(){return ut}});Object.defineProperty(exports,"edgeLabels",{enumerable:!0,get:function(){return A}});Object.defineProperty(exports,"insertEdge",{enumerable:!0,get:function(){return Mt}});Object.defineProperty(exports,"insertEdgeLabel",{enumerable:!0,get:function(){return gt}});Object.defineProperty(exports,"markers_default",{enumerable:!0,get:function(){return Et}});Object.defineProperty(exports,"positionEdgeLabel",{enumerable:!0,get:function(){return _t}});Object.defineProperty(exports,"terminalLabels",{enumerable:!0,get:function(){return w}});
|