@spteck/react-controls-v2 2.3.91 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LocalizationProvider-BbfcY9z3.cjs +2 -0
- package/dist/{LocalizationProvider-te5iu_6z.js → LocalizationProvider-CvSHuk0e.js} +46 -46
- package/dist/{ar-Blifx2MN.js → ar-BPzd6WER.js} +1 -1
- package/dist/ar-CBSdRr5Q.cjs +2 -0
- package/dist/az-DoZjCfF0.cjs +2 -0
- package/dist/{az-CMhDjtnj.js → az-MWX-WDgc.js} +1 -1
- package/dist/{bg-C96WirSv.js → bg-CvRGS4sF.js} +1 -1
- package/dist/bg-DI8UD_HF.cjs +2 -0
- package/dist/bs-DQhZlEEo.cjs +2 -0
- package/dist/{bs-_St1wBE_.js → bs-aXQgChJT.js} +1 -1
- package/dist/{ca-QlLcV4wf.js → ca-BCXCXzgh.js} +1 -1
- package/dist/ca-DSC32tOX.cjs +2 -0
- package/dist/components/dropDownField/IOption.d.ts +2 -0
- package/dist/components/iconButton/IconButtonProps.d.ts +2 -0
- package/dist/cs-B0C33FJt.cjs +2 -0
- package/dist/{cs-MrS2bH7F.js → cs-VHWnqXwJ.js} +1 -1
- package/dist/cy-BNabORao.cjs +2 -0
- package/dist/{cy-BX97Tgwk.js → cy-qF-aNCW-.js} +1 -1
- package/dist/da-BmgXTEXm.cjs +2 -0
- package/dist/{da-BnewPPrh.js → da-rR5TnSBw.js} +1 -1
- package/dist/de-B4w38-0d.cjs +2 -0
- package/dist/{de-BSZuzGTL.js → de-DbeDjRNp.js} +1 -1
- package/dist/el-Cgk6VsxL.cjs +2 -0
- package/dist/{el-DrOk3N7-.js → el-DDeD6FiX.js} +1 -1
- package/dist/es-3ugMIZuA.cjs +2 -0
- package/dist/{es-CGqzubZ2.js → es-dvKffn6Q.js} +1 -1
- package/dist/et-CIIzxbat.cjs +2 -0
- package/dist/{et-DGqkocuq.js → et-DgZFBtK7.js} +1 -1
- package/dist/eu-BUNUOJ7E.cjs +2 -0
- package/dist/{eu-DEo7fdTW.js → eu-C6r1_PRy.js} +1 -1
- package/dist/{fi-DxErwnd5.js → fi-CzOKgmjK.js} +1 -1
- package/dist/fi-q6BFPHtt.cjs +2 -0
- package/dist/fr-BEnCZ733.cjs +2 -0
- package/dist/{fr-zrtSZX0o.js → fr-D0cDkdbn.js} +1 -1
- package/dist/{ga-CbHxGc9_.js → ga-0A7ndSzw.js} +1 -1
- package/dist/ga-BXyKTnJr.cjs +2 -0
- package/dist/{gl--w0P3RY4.js → gl-BNwj4XAu.js} +1 -1
- package/dist/gl-DR1C-hSi.cjs +2 -0
- package/dist/{he-DY19lzWp.js → he-BPiZ6D5h.js} +1 -1
- package/dist/he-OD1Ex2Fw.cjs +2 -0
- package/dist/{hi-CFSsoO_8.js → hi-CSgtp9Yg.js} +1 -1
- package/dist/hi-Dt9FvBmh.cjs +2 -0
- package/dist/{hr-DIRJ1Z8e.js → hr-CDSSj52Q.js} +1 -1
- package/dist/hr-DMzwNhar.cjs +2 -0
- package/dist/hu-Bc-rChfV.cjs +2 -0
- package/dist/{hu-DqYPRWZh.js → hu-TDJYiDOB.js} +1 -1
- package/dist/{id-Dgj7SUCi.js → id-B3IF5pnh.js} +1 -1
- package/dist/id-CwndN9HH.cjs +2 -0
- package/dist/index.cjs +105 -114
- package/dist/index.js +6162 -18503
- package/dist/{it-QdChHqVN.js → it-BLET318M.js} +1 -1
- package/dist/it-DaYS5Vil.cjs +2 -0
- package/dist/ja-BYA2LXHy.cjs +2 -0
- package/dist/{ja-BNS0BbY-.js → ja-NxwXLaKV.js} +1 -1
- package/dist/{kk-Dhkax68h.js → kk-CceJcjtl.js} +1 -1
- package/dist/kk-Ctrvuqlz.cjs +2 -0
- package/dist/{ko-heRMHZWp.js → ko-cS_OE967.js} +1 -1
- package/dist/ko-evIcpTG8.cjs +2 -0
- package/dist/lt-CYTLGgh6.cjs +2 -0
- package/dist/{lt-Decqbo8S.js → lt-CZ-kk_5b.js} +1 -1
- package/dist/{lv-wZASv0Lw.js → lv-BTvPpEjc.js} +1 -1
- package/dist/lv-COjitD3w.cjs +2 -0
- package/dist/mk-B-LF5gVL.cjs +2 -0
- package/dist/{mk-BTsLGTJT.js → mk-CSSyI3El.js} +1 -1
- package/dist/ms-CzEvkib0.cjs +2 -0
- package/dist/{ms-C0cVNwky.js → ms-Dz5JnKJ1.js} +1 -1
- package/dist/nb-B1KWSX94.cjs +2 -0
- package/dist/{nb-DGX4q4tS.js → nb-DkgTg1et.js} +1 -1
- package/dist/{nl-CnXZa8tZ.js → nl-CQ5eoxw2.js} +1 -1
- package/dist/nl-knWqo2aX.cjs +2 -0
- package/dist/{pl-DbIdTNpg.js → pl-BQJfOizT.js} +1 -1
- package/dist/pl-Ce6dq53t.cjs +2 -0
- package/dist/providers.cjs +1 -1
- package/dist/providers.js +1 -1
- package/dist/pt-BVqTnGkF.cjs +2 -0
- package/dist/{pt-CcKYweQk.js → pt-b0p7DoD0.js} +1 -1
- package/dist/ro-DqJMfhmX.cjs +2 -0
- package/dist/{ro-C-8tiqgA.js → ro-sbBtUVJV.js} +1 -1
- package/dist/ru-Dm2NAQyK.cjs +2 -0
- package/dist/{ru-Dhnz96q2.js → ru-ofzbka6D.js} +1 -1
- package/dist/sk-BNe6CHG-.cjs +2 -0
- package/dist/{sk-BU-Z5EsC.js → sk-BtpdNCPC.js} +1 -1
- package/dist/{sl-CcfjJFxo.js → sl-B4GsKLu6.js} +1 -1
- package/dist/sl-BKmEUGyu.cjs +2 -0
- package/dist/{sr-S53unrLA.js → sr-C76YVpkQ.js} +1 -1
- package/dist/sr-Dwya5lwF.cjs +2 -0
- package/dist/sv-BGL2G9Vm.cjs +2 -0
- package/dist/{sv-BiJrVfZr.js → sv-PesX57cX.js} +1 -1
- package/dist/{th-vQ7LQ7nD.js → th-CbCNOBnR.js} +1 -1
- package/dist/th-DEv6shFI.cjs +2 -0
- package/dist/{tr-C5RrNGLz.js → tr-B0TPxXKS.js} +1 -1
- package/dist/tr-BB-QonGE.cjs +2 -0
- package/dist/uk-B-3fLKpR.cjs +2 -0
- package/dist/{uk-WGCFH0fY.js → uk-_9cNoBNe.js} +1 -1
- package/dist/{vi-Waa7HkXq.js → vi-B8SfqLW6.js} +1 -1
- package/dist/vi-Dx6pJ0ir.cjs +2 -0
- package/dist/zh-DD0ml2HG.cjs +2 -0
- package/dist/{zh-BmUS7Wn_.js → zh-DqHnbp6B.js} +1 -1
- package/package.json +6 -3
- package/dist/LocalizationProvider-B6NxHbu2.cjs +0 -2
- package/dist/_arrayEach-BuSFKyFt.js +0 -54
- package/dist/_arrayEach-ChR-TejB.cjs +0 -2
- package/dist/_getTag-BRuLtYrv.js +0 -28
- package/dist/_getTag-D6VVyrEu.cjs +0 -2
- package/dist/ar-ip3bGOX3.cjs +0 -2
- package/dist/arc-4yb49ncY.js +0 -82
- package/dist/arc-djsA8IT0.cjs +0 -2
- package/dist/architecture-PBZL5I3N-CvTfVLFi.js +0 -3
- package/dist/architecture-PBZL5I3N-wZIE3ggH.cjs +0 -1
- package/dist/architectureDiagram-2XIMDMQ5-DFEvJNx1.cjs +0 -37
- package/dist/architectureDiagram-2XIMDMQ5-g-HotzpG.js +0 -4047
- package/dist/array-BNB_vRFv.cjs +0 -2
- package/dist/array-DP0duYiO.js +0 -8
- package/dist/az-CyVLdUDz.cjs +0 -2
- package/dist/bg-Bexoz3hL.cjs +0 -2
- package/dist/blockDiagram-WCTKOSBZ-DWgb5Ghz.js +0 -3165
- package/dist/blockDiagram-WCTKOSBZ-Dl04FBAy.cjs +0 -133
- package/dist/bs-MMcvhwLv.cjs +0 -2
- package/dist/c4Diagram-IC4MRINW-ClZvialQ.js +0 -2966
- package/dist/c4Diagram-IC4MRINW-ZFE2cGZP.cjs +0 -11
- package/dist/ca-BspMSeHN.cjs +0 -2
- package/dist/channel-2Bqnb1FY.js +0 -7
- package/dist/channel-5_aP1EVB.cjs +0 -2
- package/dist/chunk-4BX2VUAB-B5Va_oZz.js +0 -10
- package/dist/chunk-4BX2VUAB-BWDW-gYk.cjs +0 -2
- package/dist/chunk-55IACEB6-4ind_ByS.cjs +0 -2
- package/dist/chunk-55IACEB6-Pcyz_aR_.js +0 -10
- package/dist/chunk-7E7YKBS2-Sw9_w4gt.cjs +0 -2
- package/dist/chunk-7E7YKBS2-VHdgsed6.js +0 -25
- package/dist/chunk-7R4GIKGN-BKoqTTU_.cjs +0 -81
- package/dist/chunk-7R4GIKGN-CaQJ0QBF.js +0 -2598
- package/dist/chunk-C72U2L5F-CCvi6jiy.cjs +0 -2
- package/dist/chunk-C72U2L5F-MjJQTOMh.js +0 -25
- package/dist/chunk-D-IZpNpi.cjs +0 -1
- package/dist/chunk-EGIJ26TM-Bffl84Wq.cjs +0 -2
- package/dist/chunk-EGIJ26TM-DLMAfvpZ.js +0 -25
- package/dist/chunk-FMBD7UC4-BvqqU04Z.cjs +0 -16
- package/dist/chunk-FMBD7UC4-xjRtkFXe.js +0 -7
- package/dist/chunk-GEFDOKGD-BNgT40Ex.js +0 -1302
- package/dist/chunk-GEFDOKGD-BOwd6Jqp.cjs +0 -3
- package/dist/chunk-GLR3WWYH-DdNAJNRC.cjs +0 -2
- package/dist/chunk-GLR3WWYH-kyo6BUtq.js +0 -43
- package/dist/chunk-HHEYEP7N-DO1AYIZw.js +0 -11
- package/dist/chunk-HHEYEP7N-pdmgQZzP.cjs +0 -2
- package/dist/chunk-JSJVCQXG-Ci0seBb4.cjs +0 -2
- package/dist/chunk-JSJVCQXG-DowfYWcD.js +0 -62
- package/dist/chunk-KX2RTZJC-BJeOHReu.cjs +0 -2
- package/dist/chunk-KX2RTZJC-D-bUTSNy.js +0 -27
- package/dist/chunk-KYZI473N-DEPuSXaW.js +0 -3436
- package/dist/chunk-KYZI473N-DzBMFOER.cjs +0 -54
- package/dist/chunk-L3YUKLVL-BDGCTzmy.js +0 -25
- package/dist/chunk-L3YUKLVL-BZ17sqh5.cjs +0 -2
- package/dist/chunk-MX3YWQON-CAsnAj2e.js +0 -82
- package/dist/chunk-MX3YWQON-DulrBJdn.cjs +0 -2
- package/dist/chunk-NBPlniwU.js +0 -23
- package/dist/chunk-NQ4KR5QH-BJBAT2kM.cjs +0 -221
- package/dist/chunk-NQ4KR5QH-DFem-ORD.js +0 -2004
- package/dist/chunk-O4XLMI2P-BQF7MAo7.cjs +0 -8
- package/dist/chunk-O4XLMI2P-DA4TPzPG.js +0 -513
- package/dist/chunk-OZEHJAEY-CAiiXJUP.cjs +0 -2
- package/dist/chunk-OZEHJAEY-D7SX2SbR.js +0 -66
- package/dist/chunk-PQ6SQG4A-BZnW4-Sd.cjs +0 -2
- package/dist/chunk-PQ6SQG4A-ObFGkauo.js +0 -69
- package/dist/chunk-PU5JKC2W-BM5NPS-q.js +0 -1887
- package/dist/chunk-PU5JKC2W-eRU8wnTH.cjs +0 -71
- package/dist/chunk-QZHKN3VN-Dhli_tM0.cjs +0 -2
- package/dist/chunk-QZHKN3VN-x258g6EH.js +0 -17
- package/dist/chunk-R5LLSJPH-CNTEucEd.cjs +0 -2
- package/dist/chunk-R5LLSJPH-Gt27ml2m.js +0 -37
- package/dist/chunk-WL4C6EOR-CQXw6d0l.cjs +0 -190
- package/dist/chunk-WL4C6EOR-DuM6QmqM.js +0 -3196
- package/dist/chunk-XIRO2GV7-CswC9CO8.cjs +0 -2
- package/dist/chunk-XIRO2GV7-DXlO8X82.js +0 -32
- package/dist/chunk-XPW4576I-Bpsr4SZJ.js +0 -1148
- package/dist/chunk-XPW4576I-C68T-WIW.cjs +0 -33
- package/dist/chunk-XZSTWKYB-DJv9rEVU.cjs +0 -95
- package/dist/chunk-XZSTWKYB-jD9M1izK.js +0 -16132
- package/dist/chunk-YBOYWFTD-B6CeuteH.js +0 -34
- package/dist/chunk-YBOYWFTD-CiLW6HW_.cjs +0 -2
- package/dist/classDiagram-VBA2DB6C-Us0kuDfz.cjs +0 -2
- package/dist/classDiagram-VBA2DB6C-VOsE3gN0.js +0 -31
- package/dist/classDiagram-v2-RAHNMMFH-BWsm3ea6.cjs +0 -2
- package/dist/classDiagram-v2-RAHNMMFH-DPqMNfOz.js +0 -31
- package/dist/cose-bilkent-S5V4N54A-CKhwzobJ.js +0 -2252
- package/dist/cose-bilkent-S5V4N54A-DmyaRQ6l.cjs +0 -2
- package/dist/cs-FZSeHYld.cjs +0 -2
- package/dist/cy-CzQmM2lQ.cjs +0 -2
- package/dist/cytoscape.esm-CcJAI0wG.cjs +0 -322
- package/dist/cytoscape.esm-D9EjU25_.js +0 -18102
- package/dist/da-CexFt-Oj.cjs +0 -2
- package/dist/dagre-CpEPaL3r.cjs +0 -2
- package/dist/dagre-Dd8wCGc6.js +0 -1305
- package/dist/dagre-KLK3FWXG-BpxkjvB3.js +0 -294
- package/dist/dagre-KLK3FWXG-DIznPQl_.cjs +0 -5
- package/dist/de-B68HwuYu.cjs +0 -2
- package/dist/defaultLocale-CYOzCjwh.js +0 -203
- package/dist/defaultLocale-DSgylVA1.cjs +0 -2
- package/dist/diagram-E7M64L7V-dXqTi77U.cjs +0 -25
- package/dist/diagram-E7M64L7V-oX07GVAD.js +0 -529
- package/dist/diagram-IFDJBPK2-CriVAAmI.cjs +0 -44
- package/dist/diagram-IFDJBPK2-lCNF06_S.js +0 -215
- package/dist/diagram-P4PSJMXO-TfwVJh4S.js +0 -135
- package/dist/diagram-P4PSJMXO-k7F0lH6Q.cjs +0 -25
- package/dist/dist-CV9Ez7cn.js +0 -52
- package/dist/dist-DVthN7lF.cjs +0 -2
- package/dist/el-DQc4jSMd.cjs +0 -2
- package/dist/erDiagram-INFDFZHY-CDt3mOSU.cjs +0 -71
- package/dist/erDiagram-INFDFZHY-Ds_R2Ds4.js +0 -1668
- package/dist/es-DI8Y4Bv1.cjs +0 -2
- package/dist/et-DfaryKvp.cjs +0 -2
- package/dist/eu-BVOSXciF.cjs +0 -2
- package/dist/fi-C5L-OzaI.cjs +0 -2
- package/dist/flowDiagram-PKNHOUZH-7XJG07fo.cjs +0 -163
- package/dist/flowDiagram-PKNHOUZH-CkeYebJ5.js +0 -4163
- package/dist/fr-yFvjqx8B.cjs +0 -2
- package/dist/ga-6mVQhlWi.cjs +0 -2
- package/dist/ganttDiagram-A5KZAMGK-Bbck1pyM.cjs +0 -293
- package/dist/ganttDiagram-A5KZAMGK-CFT3Xn_r.js +0 -3074
- package/dist/gitGraph-HDMCJU4V-BKE04oIl.js +0 -3
- package/dist/gitGraph-HDMCJU4V-C9GYfOYb.cjs +0 -1
- package/dist/gitGraphDiagram-K3NZZRJ6-CXz9SHBX.js +0 -627
- package/dist/gitGraphDiagram-K3NZZRJ6-Dt4D-ig1.cjs +0 -66
- package/dist/gl-BJzJe1sq.cjs +0 -2
- package/dist/graphlib-CPo7oIsu.js +0 -223
- package/dist/graphlib-CmUS4Qin.cjs +0 -2
- package/dist/he-B3Bw3qr0.cjs +0 -2
- package/dist/hi-kofL-mD8.cjs +0 -2
- package/dist/hr-CDxqA9Jm.cjs +0 -2
- package/dist/hu-Defen_75.cjs +0 -2
- package/dist/id-DcwMRgmX.cjs +0 -2
- package/dist/identity-6JlhFhuM.cjs +0 -2
- package/dist/identity-C1jKsMoW.js +0 -395
- package/dist/info-3K5VOQVL-DfN_3mKd.js +0 -3
- package/dist/info-3K5VOQVL-d6J9FY0_.cjs +0 -1
- package/dist/infoDiagram-LFFYTUFH-Bp9btqnA.cjs +0 -3
- package/dist/infoDiagram-LFFYTUFH-DnvgRFnx.js +0 -21
- package/dist/init-BAFZAp9S.cjs +0 -2
- package/dist/init-m0TwgR4W.js +0 -17
- package/dist/isEmpty-BTp1uKIj.cjs +0 -2
- package/dist/isEmpty-uXVYZZYe.js +0 -17
- package/dist/ishikawaDiagram-PHBUUO56-DLaOkz38.js +0 -719
- package/dist/ishikawaDiagram-PHBUUO56-DmqObwMZ.cjs +0 -71
- package/dist/it-D5nM6KCi.cjs +0 -2
- package/dist/ja-BtuHirv7.cjs +0 -2
- package/dist/journeyDiagram-4ABVD52K-Cv0DbLMi.cjs +0 -140
- package/dist/journeyDiagram-4ABVD52K-DYmmcNK4.js +0 -885
- package/dist/kanban-definition-K7BYSVSG-BdQLAMeB.cjs +0 -90
- package/dist/kanban-definition-K7BYSVSG-CLEYqSz5.js +0 -973
- package/dist/katex-B-Nju2J8.js +0 -22002
- package/dist/katex-WY67Rp7A.cjs +0 -266
- package/dist/kk-BSl8IqgQ.cjs +0 -2
- package/dist/ko-eplb1GD0.cjs +0 -2
- package/dist/line-CbEBKCYr.js +0 -36
- package/dist/line-DqSdvtRR.cjs +0 -2
- package/dist/linear-DvLDpS6A.cjs +0 -2
- package/dist/linear-Eb79THx6.js +0 -291
- package/dist/lt-DsYAWFbF.cjs +0 -2
- package/dist/lv-DHmTjCb8.cjs +0 -2
- package/dist/maplibre-gl-qSrG75fp.js +0 -33003
- package/dist/maplibre-gl-tm_pVdmb.cjs +0 -757
- package/dist/math-DR9t6ixc.cjs +0 -2
- package/dist/math-DyURnvXC.js +0 -12
- package/dist/mermaid-parser.core-BdTB9qx-.js +0 -61
- package/dist/mermaid-parser.core-BlzF5RRD.cjs +0 -4
- package/dist/mindmap-definition-YRQLILUH-CzcVgr-U.js +0 -966
- package/dist/mindmap-definition-YRQLILUH-zWN_YXC3.cjs +0 -69
- package/dist/mk-CCV_308U.cjs +0 -2
- package/dist/ms-CH83xVYN.cjs +0 -2
- package/dist/nb-DZ-DlwcL.cjs +0 -2
- package/dist/nl-Xdf-A19i.cjs +0 -2
- package/dist/ordinal-BAWGEQkf.js +0 -67
- package/dist/ordinal-CL2X4e2C.cjs +0 -2
- package/dist/packet-RMMSAZCW-Bek1stRX.cjs +0 -1
- package/dist/packet-RMMSAZCW-DUN6t9lN.js +0 -3
- package/dist/path-Bt6guLtL.cjs +0 -2
- package/dist/path-DSzKK8fH.js +0 -87
- package/dist/pie-UPGHQEXC-DjqNO54R.js +0 -3
- package/dist/pie-UPGHQEXC-pJq6_YgE.cjs +0 -1
- package/dist/pieDiagram-SKSYHLDU-Ba-c0fRA.cjs +0 -31
- package/dist/pieDiagram-SKSYHLDU-ya07MTY-.js +0 -167
- package/dist/pl-BStql1S-.cjs +0 -2
- package/dist/pt-Dk4jELuZ.cjs +0 -2
- package/dist/quadrantDiagram-337W2JSQ-CQQEVC49.cjs +0 -8
- package/dist/quadrantDiagram-337W2JSQ-Dp_QyIEO.js +0 -1976
- package/dist/radar-KQ55EAFF-Bid2hXXI.cjs +0 -1
- package/dist/radar-KQ55EAFF-C6zhEkCz.js +0 -3
- package/dist/requirementDiagram-Z7DCOOCP-CRl2914V.js +0 -2203
- package/dist/requirementDiagram-Z7DCOOCP-CeMYhXEm.cjs +0 -74
- package/dist/ro-BvhMyTKh.cjs +0 -2
- package/dist/rough.esm-BjJ_weyP.cjs +0 -2
- package/dist/rough.esm-DBHP55VQ.js +0 -1354
- package/dist/ru-BQosng8l.cjs +0 -2
- package/dist/sankeyDiagram-WA2Y5GQK-BFrF47Iv.js +0 -922
- package/dist/sankeyDiagram-WA2Y5GQK-DDfjtQ4G.cjs +0 -11
- package/dist/sequenceDiagram-2WXFIKYE-B-zWyr9f.cjs +0 -146
- package/dist/sequenceDiagram-2WXFIKYE-BAd8OVlz.js +0 -4111
- package/dist/sk-BhA7UeAk.cjs +0 -2
- package/dist/sl-6Mczv4jG.cjs +0 -2
- package/dist/sr-CxObZdu0.cjs +0 -2
- package/dist/src-DFxq-N5I.cjs +0 -2
- package/dist/src-Dm6r9c7l.js +0 -2148
- package/dist/stateDiagram-RAJIS63D-C-tfqeC-.js +0 -219
- package/dist/stateDiagram-RAJIS63D-C1Aj8vJQ.cjs +0 -2
- package/dist/stateDiagram-v2-FVOUBMTO-C-w53gXL.js +0 -29
- package/dist/stateDiagram-v2-FVOUBMTO-VoIE_KVn.cjs +0 -2
- package/dist/sv-BfiunVuX.cjs +0 -2
- package/dist/th-BqLGltZi.cjs +0 -2
- package/dist/timeline-definition-YZTLITO2-CE1y2S_r.js +0 -832
- package/dist/timeline-definition-YZTLITO2-D8aFfnYE.cjs +0 -62
- package/dist/tr-Brwl4o_Z.cjs +0 -2
- package/dist/treemap-KZPCXAKY-D2v0uStP.cjs +0 -1
- package/dist/treemap-KZPCXAKY-DLE_f1Bk.js +0 -3
- package/dist/uk-CV49TRvS.cjs +0 -2
- package/dist/vennDiagram-LZ73GAT5-BSpVMORX.js +0 -1860
- package/dist/vennDiagram-LZ73GAT5-DvnB0e7u.cjs +0 -35
- package/dist/vi-JzM7bjn_.cjs +0 -2
- package/dist/xychartDiagram-JWTSCODW-0qbVGrDs.cjs +0 -8
- package/dist/xychartDiagram-JWTSCODW-DpIry-th.js +0 -2043
- package/dist/zh-DEm0SGzZ.cjs +0 -2
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const e=require(`./src-DFxq-N5I.cjs`),t=require(`./chunk-7R4GIKGN-BKoqTTU_.cjs`),n=require(`./chunk-GEFDOKGD-BOwd6Jqp.cjs`),r=require(`./chunk-YBOYWFTD-CiLW6HW_.cjs`),i=require(`./chunk-PQ6SQG4A-BZnW4-Sd.cjs`),a=require(`./chunk-PU5JKC2W-eRU8wnTH.cjs`),o=require(`./rough.esm-BjJ_weyP.cjs`);var s=e.h(async(i,o,s)=>{let c,l=o.useHtmlLabels||t.h(t.b()?.htmlLabels);c=s||`node default`;let u=i.insert(`g`).attr(`class`,c).attr(`id`,o.domId||o.id),d=u.insert(`g`).attr(`class`,`label`).attr(`style`,n.l(o.labelStyle)),f;f=o.label===void 0?``:typeof o.label==`string`?o.label:o.label[0];let p=!!o.icon||!!o.img,m=o.labelType===`markdown`,h=await a.n(d,t.L(n.i(f),t.b()),{useHtmlLabels:l,width:o.width||t.b().flowchart?.wrappingWidth,cssClasses:m?`markdown-node-label`:void 0,style:o.labelStyle,addSvgBackground:p,markdown:m},t.b()),g=h.getBBox(),_=(o?.padding??0)/2;if(l){let t=h.children[0],n=e.p(h);await r.t(t,f),g=t.getBoundingClientRect(),n.attr(`width`,g.width),n.attr(`height`,g.height)}return l?d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`):d.attr(`transform`,`translate(0, `+-g.height/2+`)`),o.centerLabel&&d.attr(`transform`,`translate(`+-g.width/2+`, `+-g.height/2+`)`),d.insert(`rect`,`:first-child`),{shapeSvg:u,bbox:g,halfPadding:_,label:d}},`labelHelper`),c=e.h(async(r,i,o)=>{let s=o.useHtmlLabels??t.w(t.b()),c=r.insert(`g`).attr(`class`,`label`).attr(`style`,o.labelStyle||``),l=await a.n(c,t.L(n.i(i),t.b()),{useHtmlLabels:s,width:o.width||t.b()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),u=l.getBBox(),d=o.padding/2;if(t.w(t.b())){let t=l.children[0],n=e.p(l);u=t.getBoundingClientRect(),n.attr(`width`,u.width),n.attr(`height`,u.height)}return s?c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`):c.attr(`transform`,`translate(0, `+-u.height/2+`)`),o.centerLabel&&c.attr(`transform`,`translate(`+-u.width/2+`, `+-u.height/2+`)`),c.insert(`rect`,`:first-child`),{shapeSvg:r,bbox:u,halfPadding:d,label:c}},`insertLabel`),l=e.h((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),u=e.h((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function d(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}e.h(d,`createPathFromPoints`);function f(e,t,n,r,i,a){let o=[],s=n-e,c=r-t,l=s/a,u=2*Math.PI/l,d=t+c/2;for(let t=0;t<=50;t++){let n=e+t/50*s,r=d+i*Math.sin(u*(n-e));o.push({x:n,y:r})}return o}e.h(f,`generateFullSineWavePoints`);function p(e,t,n,r,i,a){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.h(p,`generateCirclePoints`);var m=e.h((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=a===0?0:s*i/a,l=s):(i<0&&(o=-o),c=o,l=i===0?0:o*a/i),{x:n+c,y:r+l}},`intersectRect`),h=e.h(async(e,n,r,i=!1,o=!1)=>{let s=n||``;typeof s==`object`&&(s=s[0]);let c=t.b(),l=t.w(c);return await a.n(e,s,{style:r,isTitle:i,useHtmlLabels:l,markdown:!1,isNode:o,width:1/0},c)},`createLabel`),g=e.h((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),_=e.h(async(n,s)=>{e.g.info(`Creating subgraph rect for `,s.id,s);let c=t.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:_,borderStyles:v,backgroundStyles:y}=i.i(s),b=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.id).attr(`data-look`,s.look),x=t.w(c),S=b.insert(`g`).attr(`class`,`cluster-label `),C;C=s.labelType===`markdown`?await a.n(S,s.label,{style:s.labelStyle,useHtmlLabels:x,isNode:!0,width:s.width}):await h(S,s.label,s.labelStyle||``,!1,!0);let w=C.getBBox();if(t.w(c)){let t=C.children[0],n=e.p(C);w=t.getBoundingClientRect(),n.attr(`width`,w.width),n.attr(`height`,w.height)}let T=s.width<=w.width+s.padding?w.width+s.padding:s.width;s.width<=w.width+s.padding?s.diff=(T-s.width)/2-s.padding:s.diff=-s.padding;let E=s.height,D=s.x-T/2,O=s.y-E/2;e.g.trace(`Data `,s,JSON.stringify(s));let k;if(s.look===`handDrawn`){let t=o.t.svg(b),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:3,seed:u}),r=t.path(g(D,O,T,E,0),n);k=b.insert(()=>(e.g.debug(`Rough node insert CXC`,r),r),`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,v.join(`;`)),k.select(`path`).attr(`style`,y.join(`;`).replace(`fill`,`stroke`))}else k=b.insert(`rect`,`:first-child`),k.attr(`style`,_).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,D).attr(`y`,O).attr(`width`,T).attr(`height`,E);let{subGraphTitleTopMargin:A}=r.n(c);if(S.attr(`transform`,`translate(${s.x-w.width/2}, ${s.y-s.height/2+A})`),p){let e=S.select(`span`);e&&e.attr(`style`,p)}let j=k.node().getBBox();return s.offsetX=0,s.width=j.width,s.height=j.height,s.offsetY=w.height-s.padding/2,s.intersect=function(e){return m(s,e)},{cluster:b,labelBBox:w}},`rect`),v={rect:_,squareRect:_,roundedWithTitle:e.h(async(n,r)=>{let i=t.b(),{themeVariables:a,handDrawnSeed:s}=i,{altBackground:c,compositeBackground:l,compositeTitleBackground:u,nodeBorder:d}=a,f=n.insert(`g`).attr(`class`,r.cssClasses).attr(`id`,r.id).attr(`data-id`,r.id).attr(`data-look`,r.look),p=f.insert(`g`,`:first-child`),_=f.insert(`g`).attr(`class`,`cluster-label`),v=f.append(`rect`),y=await h(_,r.label,r.labelStyle,void 0,!0),b=y.getBBox();if(t.w(i)){let t=y.children[0],n=e.p(y);b=t.getBoundingClientRect(),n.attr(`width`,b.width),n.attr(`height`,b.height)}let x=0*r.padding,S=x/2,C=(r.width<=b.width+r.padding?b.width+r.padding:r.width)+x;r.width<=b.width+r.padding?r.diff=(C-r.width)/2-r.padding:r.diff=-r.padding;let w=r.height+x,T=r.height+x-b.height-6,E=r.x-C/2,D=r.y-w/2;r.width=C;let O=r.y-r.height/2-S+b.height+2,k;if(r.look===`handDrawn`){let e=r.cssClasses.includes(`statediagram-cluster-alt`),t=o.t.svg(f),n=r.rx||r.ry?t.path(g(E,D,C,w,10),{roughness:.7,fill:u,fillStyle:`solid`,stroke:d,seed:s}):t.rectangle(E,D,C,w,{seed:s});k=f.insert(()=>n,`:first-child`);let i=t.rectangle(E,O,C,T,{fill:e?c:l,fillStyle:e?`hachure`:`solid`,stroke:d,seed:s});k=f.insert(()=>n,`:first-child`),v=f.insert(()=>i)}else k=p.insert(`rect`,`:first-child`),k.attr(`class`,`outer`).attr(`x`,E).attr(`y`,D).attr(`width`,C).attr(`height`,w).attr(`data-look`,r.look),v.attr(`class`,`inner`).attr(`x`,E).attr(`y`,O).attr(`width`,C).attr(`height`,T);return _.attr(`transform`,`translate(${r.x-b.width/2}, ${D+1-(t.w(i)?0:3)})`),r.height=k.node().getBBox().height,r.offsetX=0,r.offsetY=b.height-r.padding/2,r.labelBBox=b,r.intersect=function(e){return m(r,e)},{cluster:f,labelBBox:b}},`roundedWithTitle`),noteGroup:e.h((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.id),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return m(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:e.h((e,n)=>{let{themeVariables:r,handDrawnSeed:i}=t.b(),{nodeBorder:a}=r,s=e.insert(`g`).attr(`class`,n.cssClasses).attr(`id`,n.id).attr(`data-look`,n.look),c=s.insert(`g`,`:first-child`),l=0*n.padding,u=n.width+l;n.diff=-n.padding;let d=n.height+l,f=n.x-u/2,p=n.y-d/2;n.width=u;let h;if(n.look===`handDrawn`){let e=o.t.svg(s).rectangle(f,p,u,d,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:a,seed:i});h=s.insert(()=>e,`:first-child`)}else h=c.insert(`rect`,`:first-child`),h.attr(`class`,`divider`).attr(`x`,f).attr(`y`,p).attr(`width`,u).attr(`height`,d).attr(`data-look`,n.look);return n.height=h.node().getBBox().height,n.offsetX=0,n.offsetY=0,n.intersect=function(e){return m(n,e)},{cluster:s,labelBBox:{}}},`divider`),kanbanSection:e.h(async(n,s)=>{e.g.info(`Creating subgraph rect for `,s.id,s);let c=t.b(),{themeVariables:l,handDrawnSeed:u}=c,{clusterBkg:d,clusterBorder:f}=l,{labelStyles:p,nodeStyles:h,borderStyles:_,backgroundStyles:v}=i.i(s),y=n.insert(`g`).attr(`class`,`cluster `+s.cssClasses).attr(`id`,s.id).attr(`data-look`,s.look),b=t.w(c),x=y.insert(`g`).attr(`class`,`cluster-label `),S=await a.n(x,s.label,{style:s.labelStyle,useHtmlLabels:b,isNode:!0,width:s.width}),C=S.getBBox();if(t.w(c)){let t=S.children[0],n=e.p(S);C=t.getBoundingClientRect(),n.attr(`width`,C.width),n.attr(`height`,C.height)}let w=s.width<=C.width+s.padding?C.width+s.padding:s.width;s.width<=C.width+s.padding?s.diff=(w-s.width)/2-s.padding:s.diff=-s.padding;let T=s.height,E=s.x-w/2,D=s.y-T/2;e.g.trace(`Data `,s,JSON.stringify(s));let O;if(s.look===`handDrawn`){let t=o.t.svg(y),n=i.a(s,{roughness:.7,fill:d,stroke:f,fillWeight:4,seed:u}),r=t.path(g(E,D,w,T,s.rx),n);O=y.insert(()=>(e.g.debug(`Rough node insert CXC`,r),r),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,_.join(`;`)),O.select(`path`).attr(`style`,v.join(`;`).replace(`fill`,`stroke`))}else O=y.insert(`rect`,`:first-child`),O.attr(`style`,h).attr(`rx`,s.rx).attr(`ry`,s.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=r.n(c);if(x.attr(`transform`,`translate(${s.x-C.width/2}, ${s.y-s.height/2+k})`),p){let e=x.select(`span`);e&&e.attr(`style`,p)}let A=O.node().getBBox();return s.offsetX=0,s.width=A.width,s.height=A.height,s.offsetY=C.height-s.padding/2,s.intersect=function(e){return m(s,e)},{cluster:y,labelBBox:C}},`kanbanSection`)},y=new Map,b=e.h(async(e,t)=>{let n=await v[t.shape||`rect`](e,t);return y.set(t.id,n),n},`insertCluster`),x=e.h(()=>{y=new Map},`clear`);function S(e,t){return e.intersect(t)}e.h(S,`intersectNode`);var C=S;function w(e,t,n,r){var i=e.x,a=e.y,o=i-r.x,s=a-r.y,c=Math.sqrt(t*t*s*s+n*n*o*o),l=Math.abs(t*n*o/c);r.x<i&&(l=-l);var u=Math.abs(t*n*s/c);return r.y<a&&(u=-u),{x:i+l,y:a+u}}e.h(w,`intersectEllipse`);var T=w;function E(e,t,n){return T(e,t,t,n)}e.h(E,`intersectCircle`);var D=E;function O(e,t,n,r){{let i=t.y-e.y,a=e.x-t.x,o=t.x*e.y-e.x*t.y,s=i*n.x+a*n.y+o,c=i*r.x+a*r.y+o,l=1e-6;if(s!==0&&c!==0&&k(s,c))return;let u=r.y-n.y,d=n.x-r.x,f=r.x*n.y-n.x*r.y,p=u*e.x+d*e.y+f,m=u*t.x+d*t.y+f;if(Math.abs(p)<l&&Math.abs(m)<l&&k(p,m))return;let h=i*d-u*a;if(h===0)return;let g=Math.abs(h/2),_=a*f-d*o,v=_<0?(_-g)/h:(_+g)/h;return _=u*o-i*f,{x:v,y:_<0?(_-g)/h:(_+g)/h}}}e.h(O,`intersectLine`);function k(e,t){return e*t>0}e.h(k,`sameSign`);var A=O;function j(e,t,n){let r=e.x,i=e.y,a=[],o=1/0,s=1/0;typeof t.forEach==`function`?t.forEach(function(e){o=Math.min(o,e.x),s=Math.min(s,e.y)}):(o=Math.min(o,t.x),s=Math.min(s,t.y));let c=r-e.width/2-o,l=i-e.height/2-s;for(let r=0;r<t.length;r++){let i=t[r],o=t[r<t.length-1?r+1:0],s=A(e,n,{x:c+i.x,y:l+i.y},{x:c+o.x,y:l+o.y});s&&a.push(s)}return a.length?(a.length>1&&a.sort(function(e,t){let r=e.x-n.x,i=e.y-n.y,a=Math.sqrt(r*r+i*i),o=t.x-n.x,s=t.y-n.y,c=Math.sqrt(o*o+s*s);return a<c?-1:a===c?0:1}),a[0]):e}e.h(j,`intersectPolygon`);var M={node:C,circle:D,ellipse:T,polygon:j,rect:m};function N(t,r){let{labelStyles:a}=i.i(r);r.labelStyle=a;let s=u(r),c=s;s||(c=`anchor`);let d=t.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),{cssStyles:f}=r,p=o.t.svg(d),m=i.a(r,{fill:`black`,stroke:`none`,fillStyle:`solid`});r.look!==`handDrawn`&&(m.roughness=0);let h=p.circle(0,0,2,m),g=d.insert(()=>h,`:first-child`);return g.attr(`class`,`anchor`).attr(`style`,n.l(f)),l(r,g),r.intersect=function(t){return e.g.info(`Circle intersect`,r,1,t),M.circle(r,1,t)},d}e.h(N,`anchor`);function P(e,t,n,r,i,a,o){let s=(e+n)/2,c=(t+r)/2,l=Math.atan2(r-t,n-e),u=(n-e)/2,d=(r-t)/2,f=u/i,p=d/a,m=Math.sqrt(f**2+p**2);if(m>1)throw Error(`The given radii are too small to create an arc between the points.`);let h=Math.sqrt(1-m**2),g=s+h*a*Math.sin(l)*(o?-1:1),_=c-h*i*Math.cos(l)*(o?-1:1),v=Math.atan2((t-_)/a,(e-g)/i),y=Math.atan2((r-_)/a,(n-g)/i)-v;o&&y<0&&(y+=2*Math.PI),!o&&y>0&&(y-=2*Math.PI);let b=[];for(let e=0;e<20;e++){let t=v+e/19*y,n=g+i*Math.cos(t),r=_+a*Math.sin(t);b.push({x:n,y:r})}return b}e.h(P,`generateArcPoints`);async function F(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=c.width+t.padding+20,p=c.height+t.padding,m=p/2,h=m/(2.5+p/50),{cssStyles:g}=t,_=[{x:f/2,y:-p/2},{x:-f/2,y:-p/2},...P(-f/2,-p/2,-f/2,p/2,h,m,!1),{x:f/2,y:p/2},...P(f/2,p/2,f/2,-p/2,h,m,!0)],v=o.t.svg(a),y=i.a(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=d(_),x=v.path(b,y),S=a.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(${h/2}, 0)`),l(t,S),t.intersect=function(e){return M.polygon(t,_,e)},a}e.h(F,`bowTieRect`);function I(e,t,n,r){return e.insert(`polygon`,`:first-child`).attr(`points`,r.map(function(e){return e.x+`,`+e.y}).join(` `)).attr(`class`,`label-container`).attr(`transform`,`translate(`+-t/2+`,`+n/2+`)`)}e.h(I,`insertPolygonShape`);async function L(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=c.height+t.padding,p=c.width+t.padding+12,m=p,h=-f,g=[{x:12,y:h},{x:m,y:h},{x:m,y:0},{x:0,y:0},{x:0,y:h+12},{x:12,y:h}],_,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=d(g),s=e.path(r,n);_=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-p/2}, ${f/2})`),v&&_.attr(`style`,v)}else _=I(a,p,f,g);return r&&_.attr(`style`,r),l(t,_),t.intersect=function(e){return M.polygon(t,g,e)},a}e.h(L,`card`);function R(e,t){let{nodeStyles:n}=i.i(t);t.label=``;let r=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:a}=t,s=Math.max(28,t.width??0),c=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=o.t.svg(r),f=i.a(t,{});t.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=d(c),m=l.path(p,f),h=r.insert(()=>m,`:first-child`);return a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),n&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return M.polygon(t,c,e)},r}e.h(R,`choice`);async function z(t,r,a){let{labelStyles:c,nodeStyles:d}=i.i(r);r.labelStyle=c;let{shapeSvg:f,bbox:p,halfPadding:m}=await s(t,r,u(r)),h=a?.padding??m,g=p.width/2+h,_,{cssStyles:v}=r;if(r.look===`handDrawn`){let e=o.t.svg(f),t=i.a(r,{}),a=e.circle(0,0,g*2,t);_=f.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container`).attr(`style`,n.l(v))}else _=f.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,d).attr(`r`,g).attr(`cx`,0).attr(`cy`,0);return l(r,_),r.calcIntersect=function(e,t){let n=e.width/2;return M.circle(e,n,t)},r.intersect=function(t){return e.g.info(`Circle intersect`,r,g,t),M.circle(r,g,t)},f}e.h(z,`circle`);function B(e){let t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),r=e*2,i={x:r/2*t,y:r/2*n},a={x:-(r/2)*t,y:r/2*n},o={x:-(r/2)*t,y:-(r/2)*n},s={x:r/2*t,y:-(r/2)*n};return`M ${a.x},${a.y} L ${s.x},${s.y}
|
|
2
|
-
M ${i.x},${i.y} L ${o.x},${o.y}`}e.h(B,`createLine`);function V(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r,n.label=``;let s=t.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),c=Math.max(30,n?.width??0),{cssStyles:d}=n,f=o.t.svg(s),p=i.a(n,{});n.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.circle(0,0,c*2,p),h=B(c),g=f.path(h,p),_=s.insert(()=>m,`:first-child`);return _.insert(()=>g),d&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,d),a&&n.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,a),l(n,_),n.intersect=function(t){return e.g.info(`crossedCircle intersect`,n,{radius:c,point:t}),M.circle(n,c,t)},s}e.h(V,`crossedCircle`);function H(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.h(H,`generateCirclePoints`);async function U(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=c.width+(t.padding??0),m=c.height+(t.padding??0),h=Math.max(5,m*.1),{cssStyles:g}=t,_=[...H(p/2,-m/2,h,30,-90,0),{x:-p/2-h,y:h},...H(p/2+h*2,-h,h,20,-180,-270),...H(p/2+h*2,h,h,20,-90,-180),{x:-p/2-h,y:-m/2},...H(p/2,m/2,h,20,0,90)],v=[{x:p/2,y:-m/2-h},{x:-p/2,y:-m/2-h},...H(p/2,-m/2,h,20,-90,0),{x:-p/2-h,y:-h},...H(p/2+p*.1,-h,h,20,-180,-270),...H(p/2+p*.1,h,h,20,-90,-180),{x:-p/2-h,y:m/2},...H(p/2,m/2,h,20,0,90),{x:-p/2,y:m/2+h},{x:p/2,y:m/2+h}],y=o.t.svg(a),b=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=d(_).replace(`Z`,``),S=y.path(x,b),C=d(v),w=y.path(C,{...b}),T=a.insert(`g`,`:first-child`);return T.insert(()=>w,`:first-child`).attr(`stroke-opacity`,0),T.insert(()=>S,`:first-child`),T.attr(`class`,`text`),g&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(${h}, 0)`),f.attr(`transform`,`translate(${-p/2+h-(c.x-(c.left??0))},${-m/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,T),t.intersect=function(e){return M.polygon(t,v,e)},a}e.h(U,`curlyBraceLeft`);function W(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:a,y:l})}return o}e.h(W,`generateCirclePoints`);async function G(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=c.width+(t.padding??0),m=c.height+(t.padding??0),h=Math.max(5,m*.1),{cssStyles:g}=t,_=[...W(p/2,-m/2,h,20,-90,0),{x:p/2+h,y:-h},...W(p/2+h*2,-h,h,20,-180,-270),...W(p/2+h*2,h,h,20,-90,-180),{x:p/2+h,y:m/2},...W(p/2,m/2,h,20,0,90)],v=[{x:-p/2,y:-m/2-h},{x:p/2,y:-m/2-h},...W(p/2,-m/2,h,20,-90,0),{x:p/2+h,y:-h},...W(p/2+h*2,-h,h,20,-180,-270),...W(p/2+h*2,h,h,20,-90,-180),{x:p/2+h,y:m/2},...W(p/2,m/2,h,20,0,90),{x:p/2,y:m/2+h},{x:-p/2,y:m/2+h}],y=o.t.svg(a),b=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=d(_).replace(`Z`,``),S=y.path(x,b),C=d(v),w=y.path(C,{...b}),T=a.insert(`g`,`:first-child`);return T.insert(()=>w,`:first-child`).attr(`stroke-opacity`,0),T.insert(()=>S,`:first-child`),T.attr(`class`,`text`),g&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&T.selectAll(`path`).attr(`style`,r),T.attr(`transform`,`translate(${-h}, 0)`),f.attr(`transform`,`translate(${-p/2+(t.padding??0)/2-(c.x-(c.left??0))},${-m/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,T),t.intersect=function(e){return M.polygon(t,v,e)},a}e.h(G,`curlyBraceRight`);function K(e,t,n,r=100,i=0,a=180){let o=[],s=i*Math.PI/180,c=(a*Math.PI/180-s)/(r-1);for(let i=0;i<r;i++){let r=s+i*c,a=e+n*Math.cos(r),l=t+n*Math.sin(r);o.push({x:-a,y:-l})}return o}e.h(K,`generateCirclePoints`);async function ee(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=c.width+(t.padding??0),m=c.height+(t.padding??0),h=Math.max(5,m*.1),{cssStyles:g}=t,_=[...K(p/2,-m/2,h,30,-90,0),{x:-p/2-h,y:h},...K(p/2+h*2,-h,h,20,-180,-270),...K(p/2+h*2,h,h,20,-90,-180),{x:-p/2-h,y:-m/2},...K(p/2,m/2,h,20,0,90)],v=[...K(-p/2+h+h/2,-m/2,h,20,-90,-180),{x:p/2-h/2,y:h},...K(-p/2-h/2,-h,h,20,0,90),...K(-p/2-h/2,h,h,20,-90,0),{x:p/2-h/2,y:-h},...K(-p/2+h+h/2,m/2,h,30,-180,-270)],y=[{x:p/2,y:-m/2-h},{x:-p/2,y:-m/2-h},...K(p/2,-m/2,h,20,-90,0),{x:-p/2-h,y:-h},...K(p/2+h*2,-h,h,20,-180,-270),...K(p/2+h*2,h,h,20,-90,-180),{x:-p/2-h,y:m/2},...K(p/2,m/2,h,20,0,90),{x:-p/2,y:m/2+h},{x:p/2-h-h/2,y:m/2+h},...K(-p/2+h+h/2,-m/2,h,20,-90,-180),{x:p/2-h/2,y:h},...K(-p/2-h/2,-h,h,20,0,90),...K(-p/2-h/2,h,h,20,-90,0),{x:p/2-h/2,y:-h},...K(-p/2+h+h/2,m/2,h,30,-180,-270)],b=o.t.svg(a),x=i.a(t,{fill:`none`});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=d(_).replace(`Z`,``),C=b.path(S,x),w=d(v).replace(`Z`,``),T=b.path(w,x),E=d(y),D=b.path(E,{...x}),O=a.insert(`g`,`:first-child`);return O.insert(()=>D,`:first-child`).attr(`stroke-opacity`,0),O.insert(()=>C,`:first-child`),O.insert(()=>T,`:first-child`),O.attr(`class`,`text`),g&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&O.selectAll(`path`).attr(`style`,r),O.attr(`transform`,`translate(${h-h/4}, 0)`),f.attr(`transform`,`translate(${-p/2+(t.padding??0)/2-(c.x-(c.left??0))},${-m/2+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,O),t.intersect=function(e){return M.polygon(t,y,e)},a}e.h(ee,`curlyBraces`);async function te(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=Math.max(80,(c.width+(t.padding??0)*2)*1.25,t?.width??0),m=Math.max(20,c.height+(t.padding??0)*2,t?.height??0),h=m/2,{cssStyles:g}=t,_=o.t.svg(a),v=i.a(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=f,b=m,x=y-h,S=b/4,C=[{x,y:0},{x:S,y:0},{x:0,y:b/2},{x:S,y:b},{x,y:b},...p(-x,-b/2,h,50,270,90)],w=d(C),T=_.path(w,v),E=a.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),g&&t.look!==`handDrawn`&&E.selectChildren(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&E.selectChildren(`path`).attr(`style`,r),E.attr(`transform`,`translate(${-f/2}, ${-m/2})`),l(t,E),t.intersect=function(e){return M.polygon(t,C,e)},a}e.h(te,`curvedTrapezoid`);var ne=e.h((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),re=e.h((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),ie=e.h((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`);async function ae(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{shapeSvg:c,bbox:d,label:f}=await s(e,t,u(t)),p=Math.max(d.width+t.padding,t.width??0),m=p/2,h=m/(2.5+p/50),g=Math.max(d.height+h+t.padding,t.height??0),_,{cssStyles:v}=t;if(t.look===`handDrawn`){let e=o.t.svg(c),n=re(0,0,p,g,m,h),r=ie(0,h,p,g,m,h),a=e.path(n,i.a(t,{})),s=e.path(r,i.a(t,{fill:`none`}));_=c.insert(()=>s,`:first-child`),_=c.insert(()=>a,`:first-child`),_.attr(`class`,`basic label-container`),v&&_.attr(`style`,v)}else{let e=ne(0,0,p,g,m,h);_=c.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,n.l(v)).attr(`style`,a)}return _.attr(`label-offset-y`,h),_.attr(`transform`,`translate(${-p/2}, ${-(g/2+h)})`),l(t,_),f.attr(`transform`,`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+(t.padding??0)/1.5-(d.y-(d.top??0))})`),t.intersect=function(e){let n=M.rect(t,e),r=n.x-(t.x??0);if(m!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-h)){let i=h*h*(1-r*r/(m*m));i>0&&(i=Math.sqrt(i)),i=h-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},c}e.h(ae,`cylinder`);async function oe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:d}=await s(e,t,u(t)),f=c.width+t.padding,p=c.height+t.padding,m=p*.2,h=-f/2,g=-p/2-m/2,{cssStyles:_}=t,v=o.t.svg(a),y=i.a(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g+m},{x:-h,y:g+m},{x:-h,y:-g},{x:h,y:-g},{x:h,y:g},{x:-h,y:g},{x:-h,y:g+m}],x=v.polygon(b.map(e=>[e.x,e.y]),y),S=a.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container`),_&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),d.attr(`transform`,`translate(${h+(t.padding??0)/2-(c.x-(c.left??0))}, ${g+m+(t.padding??0)/2-(c.y-(c.top??0))})`),l(t,S),t.intersect=function(e){return M.rect(t,e)},a}e.h(oe,`dividedRectangle`);async function se(t,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let{shapeSvg:d,bbox:f,halfPadding:p}=await s(t,r,u(r)),m=f.width/2+p+5,h=f.width/2+p,g,{cssStyles:_}=r;if(r.look===`handDrawn`){let e=o.t.svg(d),t=i.a(r,{roughness:.2,strokeWidth:2.5}),a=i.a(r,{roughness:.2,strokeWidth:1.5}),s=e.circle(0,0,m*2,t),c=e.circle(0,0,h*2,a);g=d.insert(`g`,`:first-child`),g.attr(`class`,n.l(r.cssClasses)).attr(`style`,n.l(_)),g.node()?.appendChild(s),g.node()?.appendChild(c)}else{g=d.insert(`g`,`:first-child`);let e=g.insert(`circle`,`:first-child`),t=g.insert(`circle`);g.attr(`class`,`basic label-container`).attr(`style`,c),e.attr(`class`,`outer-circle`).attr(`style`,c).attr(`r`,m).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,c).attr(`r`,h).attr(`cx`,0).attr(`cy`,0)}return l(r,g),r.intersect=function(t){return e.g.info(`DoubleCircle intersect`,r,m,t),M.circle(r,m,t)},d}e.h(se,`doublecircle`);function ce(t,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:s}=i.i(n);n.label=``,n.labelStyle=a;let c=t.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),{cssStyles:d}=n,f=o.t.svg(c),{nodeBorder:p}=r,m=i.a(n,{fillStyle:`solid`});n.look!==`handDrawn`&&(m.roughness=0);let h=f.circle(0,0,14,m),g=c.insert(()=>h,`:first-child`);return g.selectAll(`path`).attr(`style`,`fill: ${p} !important;`),d&&d.length>0&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,d),s&&n.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,s),l(n,g),n.intersect=function(t){return e.g.info(`filledCircle intersect`,n,{radius:7,point:t}),M.circle(n,7,t)},c}e.h(ce,`filledCircle`);async function le(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let{shapeSvg:c,bbox:f,label:p}=await s(t,n,u(n)),m=f.width+(n.padding??0),h=m+f.height,g=m+f.height,_=[{x:0,y:-h},{x:g,y:-h},{x:g/2,y:0}],{cssStyles:v}=n,y=o.t.svg(c),b=i.a(n,{});n.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=d(_),S=y.path(x,b),C=c.insert(()=>S,`:first-child`).attr(`transform`,`translate(${-h/2}, ${h/2})`);return v&&n.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,v),a&&n.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,a),n.width=m,n.height=h,l(n,C),p.attr(`transform`,`translate(${-f.width/2-(f.x-(f.left??0))}, ${-h/2+(n.padding??0)/2+(f.y-(f.top??0))})`),n.intersect=function(t){return e.g.info(`Triangle intersect`,n,_,t),M.polygon(n,_,t)},c}e.h(le,`flippedTriangle`);function ue(e,t,{dir:n,config:{state:r,themeVariables:a}}){let{nodeStyles:s}=i.i(t);t.label=``;let c=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId??t.id),{cssStyles:d}=t,f=Math.max(70,t?.width??0),p=Math.max(10,t?.height??0);n===`LR`&&(f=Math.max(10,t?.width??0),p=Math.max(70,t?.height??0));let m=-1*f/2,h=-1*p/2,g=o.t.svg(c),_=i.a(t,{stroke:a.lineColor,fill:a.lineColor});t.look!==`handDrawn`&&(_.roughness=0,_.fillStyle=`solid`);let v=g.rectangle(m,h,f,p,_),y=c.insert(()=>v,`:first-child`);d&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,d),s&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,s),l(t,y);let b=r?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(e){return M.rect(t,e)},c}e.h(ue,`forkJoin`);async function de(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let{shapeSvg:c,bbox:f}=await s(t,n,u(n)),m=Math.max(80,f.width+(n.padding??0)*2,n?.width??0),h=Math.max(50,f.height+(n.padding??0)*2,n?.height??0),g=h/2,{cssStyles:_}=n,v=o.t.svg(c),y=i.a(n,{});n.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:-m/2,y:-h/2},{x:m/2-g,y:-h/2},...p(-m/2+g,0,g,50,90,270),{x:m/2-g,y:h/2},{x:-m/2,y:h/2}],x=d(b),S=v.path(x,y),C=c.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container`),_&&n.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),a&&n.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,a),l(n,C),n.intersect=function(t){return e.g.info(`Pill intersect`,n,{radius:g,point:t}),M.polygon(n,b,t)},c}e.h(de,`halfRoundedRectangle`);var fe=e.h((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`);async function pe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),d=c.height+t.padding,f=d/4,p=c.width+2*f+t.padding,m=[{x:f,y:0},{x:p-f,y:0},{x:p,y:-d/2},{x:p-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=fe(0,0,p,d,f),s=e.path(r,n);h=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-p/2}, ${d/2})`),g&&h.attr(`style`,g)}else h=I(a,p,d,m);return r&&h.attr(`style`,r),t.width=p,t.height=d,l(t,h),t.intersect=function(e){return M.polygon(t,m,e)},a}e.h(pe,`hexagon`);async function me(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let{shapeSvg:c}=await s(t,n,u(n)),f=Math.max(30,n?.width??0),p=Math.max(30,n?.height??0),{cssStyles:m}=n,h=o.t.svg(c),g=i.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:0,y:0},{x:f,y:0},{x:0,y:p},{x:f,y:p}],v=d(_),y=h.path(v,g),b=c.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container`),m&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),a&&n.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,a),b.attr(`transform`,`translate(${-f/2}, ${-p/2})`),l(n,b),n.intersect=function(t){return e.g.info(`Pill intersect`,n,{points:_}),M.polygon(n,_,t)},c}e.h(me,`hourglass`);async function he(t,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await s(t,n,`icon-shape default`),v=n.pos===`t`,y=p,b=p,{nodeBorder:x}=r,{stylesMap:S}=i.t(n),C=-b/2,w=-y/2,T=n.label?8:0,E=o.t.svg(h),D=i.a(n,{stroke:`none`,fill:`none`});n.look!==`handDrawn`&&(D.roughness=0,D.fillStyle=`solid`);let O=E.rectangle(C,w,b,y,D),k=Math.max(b,g.width),A=y+g.height+T,j=E.rectangle(-k/2,-A/2,k,A,{...D,fill:`transparent`,stroke:`none`}),N=h.insert(()=>O,`:first-child`),P=h.insert(()=>j);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${v?g.height/2+T/2-i/2-s:-g.height/2-T/2-i/2-s})`),e.attr(`style`,`color: ${S.get(`stroke`)??x};`)}return _.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${v?-A/2:A/2-g.height})`),N.attr(`transform`,`translate(0,${v?g.height/2+T/2:-g.height/2-T/2})`),l(n,P),n.intersect=function(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return M.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=v?[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+T},{x:r+b/2,y:i-a/2+g.height+T},{x:r+b/2,y:i+a/2},{x:r-b/2,y:i+a/2},{x:r-b/2,y:i-a/2+g.height+T},{x:r-g.width/2,y:i-a/2+g.height+T}]:[{x:r-b/2,y:i-a/2},{x:r+b/2,y:i-a/2},{x:r+b/2,y:i-a/2+y},{x:r+g.width/2,y:i-a/2+y},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+y},{x:r-b/2,y:i-a/2+y}],M.polygon(n,o,t)},h}e.h(he,`icon`);async function ge(t,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:g,label:_}=await s(t,n,`icon-shape default`),v=n.label?8:0,y=n.pos===`t`,{nodeBorder:b,mainBkg:x}=r,{stylesMap:S}=i.t(n),C=o.t.svg(h),w=i.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`),w.stroke=S.get(`fill`)??x;let T=h.append(`g`);n.icon&&T.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let E=T.node().getBBox(),D=E.width,O=E.height,k=E.x,A=E.y,j=Math.max(D,O)*Math.SQRT2+40,N=C.circle(0,0,j,w),P=Math.max(j,g.width),F=j+g.height+v,I=C.rectangle(-P/2,-F/2,P,F,{...w,fill:`transparent`,stroke:`none`}),L=h.insert(()=>N,`:first-child`),R=h.insert(()=>I);return T.attr(`transform`,`translate(${-D/2-k},${y?g.height/2+v/2-O/2-A:-g.height/2-v/2-O/2-A})`),T.attr(`style`,`color: ${S.get(`stroke`)??b};`),_.attr(`transform`,`translate(${-g.width/2-(g.x-(g.left??0))},${y?-F/2:F/2-g.height})`),L.attr(`transform`,`translate(0,${y?g.height/2+v/2:-g.height/2-v/2})`),l(n,R),n.intersect=function(t){return e.g.info(`iconSquare intersect`,n,t),M.rect(n,t)},h}e.h(ge,`iconCircle`);async function _e(t,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:_,halfPadding:v,label:y}=await s(t,n,`icon-shape default`),b=n.pos===`t`,x=p+v*2,S=p+v*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=i.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=o.t.svg(h),A=i.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(g(E,D,S,x,5),A),N=Math.max(S,_.width),P=x+_.height+O,F=k.rectangle(-N/2,-P/2,N,P,{...A,fill:`transparent`,stroke:`none`}),I=h.insert(()=>j,`:first-child`).attr(`class`,`icon-shape2`),L=h.insert(()=>F);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?_.height/2+O/2-i/2-s:-_.height/2-O/2-i/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return y.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${b?-P/2:P/2-_.height})`),I.attr(`transform`,`translate(0,${b?_.height/2+O/2:-_.height/2-O/2})`),l(n,L),n.intersect=function(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return M.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+O},{x:r+S/2,y:i-a/2+_.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+_.height+O},{x:r-_.width/2,y:i-a/2+_.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+_.width/2,y:i-a/2+x},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],M.polygon(n,o,t)},h}e.h(_e,`iconRounded`);async function ve(t,n,{config:{themeVariables:r,flowchart:c}}){let{labelStyles:u}=i.i(n);n.labelStyle=u;let d=n.assetHeight??48,f=n.assetWidth??48,p=Math.max(d,f),m=c?.wrappingWidth;n.width=Math.max(p,m??0);let{shapeSvg:h,bbox:_,halfPadding:v,label:y}=await s(t,n,`icon-shape default`),b=n.pos===`t`,x=p+v*2,S=p+v*2,{nodeBorder:C,mainBkg:w}=r,{stylesMap:T}=i.t(n),E=-S/2,D=-x/2,O=n.label?8:0,k=o.t.svg(h),A=i.a(n,{});n.look!==`handDrawn`&&(A.roughness=0,A.fillStyle=`solid`),A.stroke=T.get(`fill`)??w;let j=k.path(g(E,D,S,x,.1),A),N=Math.max(S,_.width),P=x+_.height+O,F=k.rectangle(-N/2,-P/2,N,P,{...A,fill:`transparent`,stroke:`none`}),I=h.insert(()=>j,`:first-child`),L=h.insert(()=>F);if(n.icon){let e=h.append(`g`);e.html(`<g>${await a.r(n.icon,{height:p,width:p,fallbackPrefix:``})}</g>`);let t=e.node().getBBox(),r=t.width,i=t.height,o=t.x,s=t.y;e.attr(`transform`,`translate(${-r/2-o},${b?_.height/2+O/2-i/2-s:-_.height/2-O/2-i/2-s})`),e.attr(`style`,`color: ${T.get(`stroke`)??C};`)}return y.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${b?-P/2:P/2-_.height})`),I.attr(`transform`,`translate(0,${b?_.height/2+O/2:-_.height/2-O/2})`),l(n,L),n.intersect=function(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return M.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=b?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+O},{x:r+S/2,y:i-a/2+_.height+O},{x:r+S/2,y:i+a/2},{x:r-S/2,y:i+a/2},{x:r-S/2,y:i-a/2+_.height+O},{x:r-_.width/2,y:i-a/2+_.height+O}]:[{x:r-S/2,y:i-a/2},{x:r+S/2,y:i-a/2},{x:r+S/2,y:i-a/2+x},{x:r+_.width/2,y:i-a/2+x},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+x},{x:r-S/2,y:i-a/2+x}],M.polygon(n,o,t)},h}e.h(ve,`iconSquare`);async function ye(t,n,{config:{flowchart:r}}){let a=new Image;a.src=n?.img??``,await a.decode();let c=Number(a.naturalWidth.toString().replace(`px`,``)),u=Number(a.naturalHeight.toString().replace(`px`,``));n.imageAspectRatio=c/u;let{labelStyles:d}=i.i(n);n.labelStyle=d;let f=r?.wrappingWidth;n.defaultWidth=r?.wrappingWidth;let p=Math.max(n.label?f??0:0,n?.assetWidth??c),m=n.constraint===`on`&&n?.assetHeight?n.assetHeight*n.imageAspectRatio:p,h=n.constraint===`on`?m/n.imageAspectRatio:n?.assetHeight??u;n.width=Math.max(m,f??0);let{shapeSvg:g,bbox:_,label:v}=await s(t,n,`image-shape default`),y=n.pos===`t`,b=-m/2,x=-h/2,S=n.label?8:0,C=o.t.svg(g),w=i.a(n,{});n.look!==`handDrawn`&&(w.roughness=0,w.fillStyle=`solid`);let T=C.rectangle(b,x,m,h,w),E=Math.max(m,_.width),D=h+_.height+S,O=C.rectangle(-E/2,-D/2,E,D,{...w,fill:`none`,stroke:`none`}),k=g.insert(()=>T,`:first-child`),A=g.insert(()=>O);if(n.img){let e=g.append(`image`);e.attr(`href`,n.img),e.attr(`width`,m),e.attr(`height`,h),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-m/2},${y?D/2-h:-D/2})`)}return v.attr(`transform`,`translate(${-_.width/2-(_.x-(_.left??0))},${y?-h/2-_.height/2-S/2:h/2-_.height/2+S/2})`),k.attr(`transform`,`translate(0,${y?_.height/2+S/2:-_.height/2-S/2})`),l(n,A),n.intersect=function(t){if(e.g.info(`iconSquare intersect`,n,t),!n.label)return M.rect(n,t);let r=n.x??0,i=n.y??0,a=n.height??0,o=[];return o=y?[{x:r-_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2},{x:r+_.width/2,y:i-a/2+_.height+S},{x:r+m/2,y:i-a/2+_.height+S},{x:r+m/2,y:i+a/2},{x:r-m/2,y:i+a/2},{x:r-m/2,y:i-a/2+_.height+S},{x:r-_.width/2,y:i-a/2+_.height+S}]:[{x:r-m/2,y:i-a/2},{x:r+m/2,y:i-a/2},{x:r+m/2,y:i-a/2+h},{x:r+_.width/2,y:i-a/2+h},{x:r+_.width/2/2,y:i+a/2},{x:r-_.width/2,y:i+a/2},{x:r-_.width/2,y:i-a/2+h},{x:r-m/2,y:i-a/2+h}],M.polygon(n,o,t)},g}e.h(ye,`imageSquare`);async function be(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=Math.max(c.width+(t.padding??0)*2,t?.width??0),p=Math.max(c.height+(t.padding??0)*2,t?.height??0),m=[{x:0,y:0},{x:f,y:0},{x:f+3*p/6,y:-p},{x:-3*p/6,y:-p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=d(m),s=e.path(r,n);h=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-f/2}, ${p/2})`),g&&h.attr(`style`,g)}else h=I(a,f,p,m);return r&&h.attr(`style`,r),t.width=f,t.height=p,l(t,h),t.intersect=function(e){return M.polygon(t,m,e)},a}e.h(be,`inv_trapezoid`);async function q(e,t,r){let{labelStyles:a,nodeStyles:c}=i.i(t);t.labelStyle=a;let{shapeSvg:d,bbox:f}=await s(e,t,u(t)),p=Math.max(f.width+r.labelPaddingX*2,t?.width||0),m=Math.max(f.height+r.labelPaddingY*2,t?.height||0),h=-p/2,_=-m/2,v,{rx:y,ry:b}=t,{cssStyles:x}=t;if(r?.rx&&r.ry&&(y=r.rx,b=r.ry),t.look===`handDrawn`){let e=o.t.svg(d),r=i.a(t,{}),a=y||b?e.path(g(h,_,p,m,y||0),r):e.rectangle(h,_,p,m,r);v=d.insert(()=>a,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,n.l(x))}else v=d.insert(`rect`,`:first-child`),v.attr(`class`,`basic label-container`).attr(`style`,c).attr(`rx`,n.l(y)).attr(`ry`,n.l(b)).attr(`x`,h).attr(`y`,_).attr(`width`,p).attr(`height`,m);return l(t,v),t.calcIntersect=function(e,t){return M.rect(e,t)},t.intersect=function(e){return M.rect(t,e)},d}e.h(q,`drawRect`);async function xe(e,t){let{shapeSvg:n,bbox:r,label:i}=await s(e,t,`label`),a=n.insert(`rect`,`:first-child`);return a.attr(`width`,.1).attr(`height`,.1),n.attr(`class`,`label edgeLabel`),i.attr(`transform`,`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),l(t,a),t.intersect=function(e){return M.rect(t,e)},n}e.h(xe,`labelRect`);async function Se(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=Math.max(c.width+(t.padding??0),t?.width??0),p=Math.max(c.height+(t.padding??0),t?.height??0),m=[{x:0,y:0},{x:f+3*p/6,y:0},{x:f,y:-p},{x:-(3*p)/6,y:-p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=d(m),s=e.path(r,n);h=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-f/2}, ${p/2})`),g&&h.attr(`style`,g)}else h=I(a,f,p,m);return r&&h.attr(`style`,r),t.width=f,t.height=p,l(t,h),t.intersect=function(e){return M.polygon(t,m,e)},a}e.h(Se,`lean_left`);async function Ce(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=Math.max(c.width+(t.padding??0),t?.width??0),p=Math.max(c.height+(t.padding??0),t?.height??0),m=[{x:-3*p/6,y:0},{x:f,y:0},{x:f+3*p/6,y:-p},{x:0,y:-p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=d(m),s=e.path(r,n);h=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-f/2}, ${p/2})`),g&&h.attr(`style`,g)}else h=I(a,f,p,m);return r&&h.attr(`style`,r),t.width=f,t.height=p,l(t,h),t.intersect=function(e){return M.polygon(t,m,e)},a}e.h(Ce,`lean_right`);function J(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.label=``,n.labelStyle=r;let s=t.insert(`g`).attr(`class`,u(n)).attr(`id`,n.domId??n.id),{cssStyles:c}=n,f=Math.max(35,n?.width??0),p=Math.max(35,n?.height??0),m=[{x:f,y:0},{x:0,y:p+7/2},{x:f-14,y:p+7/2},{x:0,y:2*p},{x:f,y:p-7/2},{x:14,y:p-7/2}],h=o.t.svg(s),g=i.a(n,{});n.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=d(m),v=h.path(_,g),y=s.insert(()=>v,`:first-child`);return c&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,c),a&&n.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,a),y.attr(`transform`,`translate(-${f/2},${-p})`),l(n,y),n.intersect=function(t){return e.g.info(`lightningBolt intersect`,n,t),M.polygon(n,m,t)},s}e.h(J,`lightningBolt`);var we=e.h((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),Te=e.h((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),Ee=e.h((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`);async function De(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{shapeSvg:c,bbox:d,label:f}=await s(e,t,u(t)),p=Math.max(d.width+(t.padding??0),t.width??0),m=p/2,h=m/(2.5+p/50),g=Math.max(d.height+h+(t.padding??0),t.height??0),_=g*.1,v,{cssStyles:y}=t;if(t.look===`handDrawn`){let e=o.t.svg(c),n=Te(0,0,p,g,m,h,_),r=Ee(0,h,p,g,m,h),a=i.a(t,{}),s=e.path(n,a),l=e.path(r,a);c.insert(()=>l,`:first-child`).attr(`class`,`line`),v=c.insert(()=>s,`:first-child`),v.attr(`class`,`basic label-container`),y&&v.attr(`style`,y)}else{let e=we(0,0,p,g,m,h,_);v=c.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,n.l(y)).attr(`style`,a)}return v.attr(`label-offset-y`,h),v.attr(`transform`,`translate(${-p/2}, ${-(g/2+h)})`),l(t,v),f.attr(`transform`,`translate(${-(d.width/2)-(d.x-(d.left??0))}, ${-(d.height/2)+h-(d.y-(d.top??0))})`),t.intersect=function(e){let n=M.rect(t,e),r=n.x-(t.x??0);if(m!=0&&(Math.abs(r)<(t.width??0)/2||Math.abs(r)==(t.width??0)/2&&Math.abs(n.y-(t.y??0))>(t.height??0)/2-h)){let i=h*h*(1-r*r/(m*m));i>0&&(i=Math.sqrt(i)),i=h-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},c}e.h(De,`linedCylinder`);async function Oe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:d}=await s(e,t,u(t)),p=Math.max(c.width+(t.padding??0)*2,t?.width??0),m=Math.max(c.height+(t.padding??0)*2,t?.height??0),h=m/4,g=m+h,{cssStyles:_}=t,v=o.t.svg(a),y=i.a(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:-p/2-p/2*.1,y:-g/2},{x:-p/2-p/2*.1,y:g/2},...f(-p/2-p/2*.1,g/2,p/2+p/2*.1,g/2,h,.8),{x:p/2+p/2*.1,y:-g/2},{x:-p/2-p/2*.1,y:-g/2},{x:-p/2,y:-g/2},{x:-p/2,y:g/2*1.1},{x:-p/2,y:-g/2}],x=v.polygon(b.map(e=>[e.x,e.y]),y),S=a.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container`),_&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),S.attr(`transform`,`translate(0,${-h/2})`),d.attr(`transform`,`translate(${-p/2+(t.padding??0)+p/2*.1/2-(c.x-(c.left??0))},${-m/2+(t.padding??0)-h/2-(c.y-(c.top??0))})`),l(t,S),t.intersect=function(e){return M.polygon(t,b,e)},a}e.h(Oe,`linedWaveEdgedRect`);async function ke(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=Math.max(c.width+(t.padding??0)*2,t?.width??0),m=Math.max(c.height+(t.padding??0)*2,t?.height??0),h=-p/2,g=-m/2,{cssStyles:_}=t,v=o.t.svg(a),y=i.a(t,{}),b=[{x:h-5,y:g+5},{x:h-5,y:g+m+5},{x:h+p-5,y:g+m+5},{x:h+p-5,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g+m-5},{x:h+p+5,y:g+m-5},{x:h+p+5,y:g-5},{x:h+5,y:g-5},{x:h+5,y:g},{x:h,y:g},{x:h,y:g+5}],x=[{x:h,y:g+5},{x:h+p-5,y:g+5},{x:h+p-5,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g},{x:h,y:g}];t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=d(b),C=v.path(S,y),w=d(x),T=v.path(w,{...y,fill:`none`}),E=a.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container`),_&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),f.attr(`transform`,`translate(${-(c.width/2)-5-(c.x-(c.left??0))}, ${-(c.height/2)+5-(c.y-(c.top??0))})`),l(t,E),t.intersect=function(e){return M.polygon(t,b,e)},a}e.h(ke,`multiRect`);async function Ae(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),g=h/4,_=h+g,v=-m/2,y=-_/2,{cssStyles:b}=t,x=f(v-5,y+_+5,v+m-5,y+_+5,g,.8),S=x?.[x.length-1],C=[{x:v-5,y:y+5},{x:v-5,y:y+_+5},...x,{x:v+m-5,y:S.y-5},{x:v+m,y:S.y-5},{x:v+m,y:S.y-10},{x:v+m+5,y:S.y-10},{x:v+m+5,y:y-5},{x:v+5,y:y-5},{x:v+5,y},{x:v,y},{x:v,y:y+5}],w=[{x:v,y:y+5},{x:v+m-5,y:y+5},{x:v+m-5,y:S.y-5},{x:v+m,y:S.y-5},{x:v+m,y},{x:v,y}],T=o.t.svg(a),E=i.a(t,{});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=d(C),O=T.path(D,E),k=d(w),A=T.path(k,E),j=a.insert(()=>O,`:first-child`);return j.insert(()=>A),j.attr(`class`,`basic label-container`),b&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),p.attr(`transform`,`translate(${-(c.width/2)-5-(c.x-(c.left??0))}, ${-(c.height/2)+5-g/2-(c.y-(c.top??0))})`),l(t,j),t.intersect=function(e){return M.polygon(t,C,e)},a}e.h(Ae,`multiWaveEdgedRectangle`);async function je(e,n,{config:{themeVariables:r}}){let{labelStyles:a,nodeStyles:c}=i.i(n);n.labelStyle=a,n.useHtmlLabels||t.w(t.y())||(n.centerLabel=!0);let{shapeSvg:d,bbox:f,label:p}=await s(e,n,u(n)),m=Math.max(f.width+(n.padding??0)*2,n?.width??0),h=Math.max(f.height+(n.padding??0)*2,n?.height??0),g=-m/2,_=-h/2,{cssStyles:v}=n,y=o.t.svg(d),b=i.a(n,{fill:r.noteBkgColor,stroke:r.noteBorderColor});n.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=y.rectangle(g,_,m,h,b),S=d.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container`),v&&n.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,v),c&&n.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,c),p.attr(`transform`,`translate(${-f.width/2-(f.x-(f.left??0))}, ${-(f.height/2)-(f.y-(f.top??0))})`),l(n,S),n.intersect=function(e){return M.rect(n,e)},d}e.h(je,`note`);var Me=e.h((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`);async function Ne(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),d=c.width+t.padding+(c.height+t.padding),f=.5,p=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}],m,{cssStyles:h}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=Me(0,0,d),s=e.path(r,n);m=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-d/2+f}, ${d/2})`),h&&m.attr(`style`,h)}else m=I(a,d,d,p),m.attr(`transform`,`translate(${-d/2+f}, ${d/2})`);return r&&m.attr(`style`,r),l(t,m),t.calcIntersect=function(e,t){let n=e.width,r=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}],i=M.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},a}e.h(Ne,`question`);async function Pe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=Math.max(c.width+(t.padding??0),t?.width??0),m=Math.max(c.height+(t.padding??0),t?.height??0),h=-p/2,g=-m/2,_=g/2,v=[{x:h+_,y:g},{x:h,y:0},{x:h+_,y:-g},{x:-h,y:-g},{x:-h,y:g}],{cssStyles:y}=t,b=o.t.svg(a),x=i.a(t,{});t.look!==`handDrawn`&&(x.roughness=0,x.fillStyle=`solid`);let S=d(v),C=b.path(S,x),w=a.insert(()=>C,`:first-child`);return w.attr(`class`,`basic label-container`),y&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,y),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(${-_/2},0)`),f.attr(`transform`,`translate(${-_/2-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),l(t,w),t.intersect=function(e){return M.polygon(t,v,e)},a}e.h(Pe,`rect_left_inv_arrow`);async function Fe(n,r){let{labelStyles:a,nodeStyles:s}=i.i(r);r.labelStyle=a;let c;c=r.cssClasses?`node `+r.cssClasses:`node default`;let u=n.insert(`g`).attr(`class`,c).attr(`id`,r.domId||r.id),d=u.insert(`g`),f=u.insert(`g`).attr(`class`,`label`).attr(`style`,s),p=r.description,m=r.label,_=await h(f,m,r.labelStyle,!0,!0),v={width:0,height:0};if(t.w(t.b())){let t=_.children[0],n=e.p(_);v=t.getBoundingClientRect(),n.attr(`width`,v.width),n.attr(`height`,v.height)}e.g.info(`Text 2`,p);let y=p||[],b=_.getBBox(),x=await h(f,Array.isArray(y)?y.join(`<br/>`):y,r.labelStyle,!0,!0),S=x.children[0],C=e.p(x);v=S.getBoundingClientRect(),C.attr(`width`,v.width),C.attr(`height`,v.height);let w=(r.padding||0)/2;e.p(x).attr(`transform`,`translate( `+(v.width>b.width?0:(b.width-v.width)/2)+`, `+(b.height+w+5)+`)`),e.p(_).attr(`transform`,`translate( `+(v.width<b.width?0:-(b.width-v.width)/2)+`, 0)`),v=f.node().getBBox(),f.attr(`transform`,`translate(`+-v.width/2+`, `+(-v.height/2-w+3)+`)`);let T=v.width+(r.padding||0),E=v.height+(r.padding||0),D=-v.width/2-w,O=-v.height/2-w,k,A;if(r.look===`handDrawn`){let t=o.t.svg(u),n=i.a(r,{}),a=t.path(g(D,O,T,E,r.rx||0),n),s=t.line(-v.width/2-w,-v.height/2-w+b.height+w,v.width/2+w,-v.height/2-w+b.height+w,n);A=u.insert(()=>(e.g.debug(`Rough node insert CXC`,a),s),`:first-child`),k=u.insert(()=>(e.g.debug(`Rough node insert CXC`,a),a),`:first-child`)}else k=d.insert(`rect`,`:first-child`),A=d.insert(`line`),k.attr(`class`,`outer title-state`).attr(`style`,s).attr(`x`,-v.width/2-w).attr(`y`,-v.height/2-w).attr(`width`,v.width+(r.padding||0)).attr(`height`,v.height+(r.padding||0)),A.attr(`class`,`divider`).attr(`x1`,-v.width/2-w).attr(`x2`,v.width/2+w).attr(`y1`,-v.height/2-w+b.height+w).attr(`y2`,-v.height/2-w+b.height+w);return l(r,k),r.intersect=function(e){return M.rect(r,e)},u}e.h(Fe,`rectWithTitle`);async function Ie(e,t){return q(e,t,{rx:5,ry:5,classes:``,labelPaddingX:(t?.padding||0)*1,labelPaddingY:(t?.padding||0)*1})}e.h(Ie,`roundedRect`);async function Le(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{shapeSvg:c,bbox:d,label:f}=await s(e,t,u(t)),p=t?.padding??0,m=Math.max(d.width+(t.padding??0)*2,t?.width??0),h=Math.max(d.height+(t.padding??0)*2,t?.height??0),g=-d.width/2-p,_=-d.height/2-p,{cssStyles:v}=t,y=o.t.svg(c),b=i.a(t,{});t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let x=[{x:g,y:_},{x:g+m+8,y:_},{x:g+m+8,y:_+h},{x:g-8,y:_+h},{x:g-8,y:_},{x:g,y:_},{x:g,y:_+h}],S=y.polygon(x.map(e=>[e.x,e.y]),b),C=c.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container`).attr(`style`,n.l(v)),a&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),v&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,a),f.attr(`transform`,`translate(${-m/2+4+(t.padding??0)-(d.x-(d.left??0))},${-h/2+(t.padding??0)-(d.y-(d.top??0))})`),l(t,C),t.intersect=function(e){return M.rect(t,e)},c}e.h(Le,`shadedProcess`);async function Re(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:f}=await s(e,t,u(t)),p=Math.max(c.width+(t.padding??0)*2,t?.width??0),m=Math.max(c.height+(t.padding??0)*2,t?.height??0),h=-p/2,g=-m/2,{cssStyles:_}=t,v=o.t.svg(a),y=i.a(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=[{x:h,y:g},{x:h,y:g+m},{x:h+p,y:g+m},{x:h+p,y:g-m/2}],x=d(b),S=v.path(x,y),C=a.insert(()=>S,`:first-child`);return C.attr(`class`,`basic label-container`),_&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,_),r&&t.look!==`handDrawn`&&C.selectChildren(`path`).attr(`style`,r),C.attr(`transform`,`translate(0, ${m/4})`),f.attr(`transform`,`translate(${-p/2+(t.padding??0)-(c.x-(c.left??0))}, ${-m/4+(t.padding??0)-(c.y-(c.top??0))})`),l(t,C),t.intersect=function(e){return M.polygon(t,b,e)},a}e.h(Re,`slopedRect`);async function ze(e,t){return q(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1})}e.h(ze,`squareRect`);async function Be(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=c.height+t.padding,m=c.width+f/4+t.padding,h=f/2,{cssStyles:g}=t,_=o.t.svg(a),v=i.a(t,{});t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let y=[{x:-m/2+h,y:-f/2},{x:m/2-h,y:-f/2},...p(-m/2+h,0,h,50,90,270),{x:m/2-h,y:f/2},...p(m/2-h,0,h,50,270,450)],b=d(y),x=_.path(b,v),S=a.insert(()=>x,`:first-child`);return S.attr(`class`,`basic label-container outer-path`),g&&t.look!==`handDrawn`&&S.selectChildren(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectChildren(`path`).attr(`style`,r),l(t,S),t.intersect=function(e){return M.polygon(t,y,e)},a}e.h(Be,`stadium`);async function Ve(e,t){return q(e,t,{rx:5,ry:5,classes:`flowchart-node`})}e.h(Ve,`state`);function He(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{cssStyles:s}=t,{lineColor:c,stateBorder:u,nodeBorder:d}=n,f=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),p=o.t.svg(f),m=i.a(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.circle(0,0,14,{...m,stroke:c,strokeWidth:2}),g=u??d,_=p.circle(0,0,5,{...m,fill:g,stroke:g,strokeWidth:2,fillStyle:`solid`}),v=f.insert(()=>h,`:first-child`);return v.insert(()=>_),s&&v.selectAll(`path`).attr(`style`,s),a&&v.selectAll(`path`).attr(`style`,a),l(t,v),t.intersect=function(e){return M.circle(t,7,e)},f}e.h(He,`stateEnd`);function Ue(e,t,{config:{themeVariables:n}}){let{lineColor:r}=n,a=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),s;if(t.look===`handDrawn`){let e=o.t.svg(a).circle(0,0,14,i.r(r));s=a.insert(()=>e),s.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14)}else s=a.insert(`circle`,`:first-child`),s.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14);return l(t,s),t.intersect=function(e){return M.circle(t,7,e)},a}e.h(Ue,`stateStart`);async function We(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{shapeSvg:c,bbox:d}=await s(e,t,u(t)),f=(t?.padding||0)/2,p=d.width+t.padding,m=d.height+t.padding,h=-d.width/2-f,g=-d.height/2-f,_=[{x:0,y:0},{x:p,y:0},{x:p,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:p+8,y:0},{x:p+8,y:-m},{x:-8,y:-m},{x:-8,y:0}];if(t.look===`handDrawn`){let e=o.t.svg(c),r=i.a(t,{}),a=e.rectangle(h-8,g,p+16,m,r),s=e.line(h,g,h,g+m,r),u=e.line(h+p,g,h+p,g+m,r);c.insert(()=>s,`:first-child`),c.insert(()=>u,`:first-child`);let d=c.insert(()=>a,`:first-child`),{cssStyles:f}=t;d.attr(`class`,`basic label-container`).attr(`style`,n.l(f)),l(t,d)}else{let e=I(c,p,m,_);a&&e.attr(`style`,a),l(t,e)}return t.intersect=function(e){return M.polygon(t,_,e)},c}e.h(We,`subroutine`);async function Ge(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=Math.max(c.width+(t.padding??0)*2,t?.width??0),p=Math.max(c.height+(t.padding??0)*2,t?.height??0),m=-f/2,h=-p/2,g=.2*p,_=.2*p,{cssStyles:v}=t,y=o.t.svg(a),b=i.a(t,{}),x=[{x:m-g/2,y:h},{x:m+f+g/2,y:h},{x:m+f+g/2,y:h+p},{x:m-g/2,y:h+p}],S=[{x:m+f-g/2,y:h+p},{x:m+f+g/2,y:h+p},{x:m+f+g/2,y:h+p-_}];t.look!==`handDrawn`&&(b.roughness=0,b.fillStyle=`solid`);let C=d(x),w=y.path(C,b),T=d(S),E=y.path(T,{...b,fillStyle:`solid`}),D=a.insert(()=>E,`:first-child`);return D.insert(()=>w,`:first-child`),D.attr(`class`,`basic label-container`),v&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&D.selectAll(`path`).attr(`style`,r),l(t,D),t.intersect=function(e){return M.polygon(t,x,e)},a}e.h(Ge,`taggedRect`);async function Ke(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),g=h/4,_=.2*m,v=.2*h,y=h+g,{cssStyles:b}=t,x=o.t.svg(a),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-m/2-m/2*.1,y:y/2},...f(-m/2-m/2*.1,y/2,m/2+m/2*.1,y/2,g,.8),{x:m/2+m/2*.1,y:-y/2},{x:-m/2-m/2*.1,y:-y/2}],w=-m/2+m/2*.1,T=-y/2-v*.4,E=[{x:w+m-_,y:(T+h)*1.4},{x:w+m,y:T+h-v},{x:w+m,y:(T+h)*.9},...f(w+m,(T+h)*1.3,w+m-_,(T+h)*1.5,-h*.03,.5)],D=d(C),O=x.path(D,S),k=d(E),A=x.path(k,{...S,fillStyle:`solid`}),j=a.insert(()=>A,`:first-child`);return j.insert(()=>O,`:first-child`),j.attr(`class`,`basic label-container`),b&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&j.selectAll(`path`).attr(`style`,r),j.attr(`transform`,`translate(0,${-g/2})`),p.attr(`transform`,`translate(${-m/2+(t.padding??0)-(c.x-(c.left??0))},${-h/2+(t.padding??0)-g/2-(c.y-(c.top??0))})`),l(t,j),t.intersect=function(e){return M.polygon(t,C,e)},a}e.h(Ke,`taggedWaveEdgedRectangle`);async function qe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:o}=await s(e,t,u(t)),c=Math.max(o.width+t.padding,t?.width||0),d=Math.max(o.height+t.padding,t?.height||0),f=-c/2,p=-d/2,m=a.insert(`rect`,`:first-child`);return m.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,f).attr(`y`,p).attr(`width`,c).attr(`height`,d),l(t,m),t.intersect=function(e){return M.rect(t,e)},a}e.h(qe,`text`);var Je=e.h((e,t,n,r,i,a)=>`M${e},${t}
|
|
3
|
-
a${i},${a} 0,0,1 0,${-r}
|
|
4
|
-
l${n},0
|
|
5
|
-
a${i},${a} 0,0,1 0,${r}
|
|
6
|
-
M${n},${-r}
|
|
7
|
-
a${i},${a} 0,0,0 0,${r}
|
|
8
|
-
l${-n},0`,`createCylinderPathD`),Ye=e.h((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),Xe=e.h((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`);async function Ze(e,t){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r;let{shapeSvg:c,bbox:d,label:f,halfPadding:p}=await s(e,t,u(t)),m=t.look===`neo`?p*2:p,h=d.height+m,g=h/2,_=g/(2.5+h/50),v=d.width+_+m,{cssStyles:y}=t,b;if(t.look===`handDrawn`){let e=o.t.svg(c),n=Ye(0,0,v,h,_,g),r=Xe(0,0,v,h,_,g),a=e.path(n,i.a(t,{})),s=e.path(r,i.a(t,{fill:`none`}));b=c.insert(()=>s,`:first-child`),b=c.insert(()=>a,`:first-child`),b.attr(`class`,`basic label-container`),y&&b.attr(`style`,y)}else{let e=Je(0,0,v,h,_,g);b=c.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,n.l(y)).attr(`style`,a),b.attr(`class`,`basic label-container`),y&&b.selectAll(`path`).attr(`style`,y),a&&b.selectAll(`path`).attr(`style`,a)}return b.attr(`label-offset-x`,_),b.attr(`transform`,`translate(${-v/2}, ${h/2} )`),f.attr(`transform`,`translate(${-(d.width/2)-_-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),l(t,b),t.intersect=function(e){let n=M.rect(t,e),r=n.y-(t.y??0);if(g!=0&&(Math.abs(r)<(t.height??0)/2||Math.abs(r)==(t.height??0)/2&&Math.abs(n.x-(t.x??0))>(t.width??0)/2-_)){let i=_*_*(1-r*r/(g*g));i!=0&&(i=Math.sqrt(Math.abs(i))),i=_-i,e.x-(t.x??0)>0&&(i=-i),n.x+=i}return n},c}e.h(Ze,`tiltedCylinder`);async function Qe(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=c.width+t.padding,p=c.height+t.padding,m=[{x:-3*p/6,y:0},{x:f+3*p/6,y:0},{x:f,y:-p},{x:0,y:-p}],h,{cssStyles:g}=t;if(t.look===`handDrawn`){let e=o.t.svg(a),n=i.a(t,{}),r=d(m),s=e.path(r,n);h=a.insert(()=>s,`:first-child`).attr(`transform`,`translate(${-f/2}, ${p/2})`),g&&h.attr(`style`,g)}else h=I(a,f,p,m);return r&&h.attr(`style`,r),t.width=f,t.height=p,l(t,h),t.intersect=function(e){return M.polygon(t,m,e)},a}e.h(Qe,`trapezoid`);async function $e(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),f=Math.max(60,c.width+(t.padding??0)*2,t?.width??0),p=Math.max(20,c.height+(t.padding??0)*2,t?.height??0),{cssStyles:m}=t,h=o.t.svg(a),g=i.a(t,{});t.look!==`handDrawn`&&(g.roughness=0,g.fillStyle=`solid`);let _=[{x:-f/2*.8,y:-p/2},{x:f/2*.8,y:-p/2},{x:f/2,y:-p/2*.6},{x:f/2,y:p/2},{x:-f/2,y:p/2},{x:-f/2,y:-p/2*.6}],v=d(_),y=h.path(v,g),b=a.insert(()=>y,`:first-child`);return b.attr(`class`,`basic label-container`),m&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,m),r&&t.look!==`handDrawn`&&b.selectChildren(`path`).attr(`style`,r),l(t,b),t.intersect=function(e){return M.polygon(t,_,e)},a}e.h($e,`trapezoidalPentagon`);async function et(n,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let{shapeSvg:f,bbox:p,label:m}=await s(n,r,u(r)),h=r.useHtmlLabels||t.w(t.b()),g=p.width+(r.padding??0),_=g+p.height,v=g+p.height,y=[{x:0,y:0},{x:v,y:0},{x:v/2,y:-_}],{cssStyles:b}=r,x=o.t.svg(f),S=i.a(r,{});r.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=d(y),w=x.path(C,S),T=f.insert(()=>w,`:first-child`).attr(`transform`,`translate(${-_/2}, ${_/2})`);return b&&r.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,b),c&&r.look!==`handDrawn`&&T.selectChildren(`path`).attr(`style`,c),r.width=g,r.height=_,l(r,T),m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))}, ${_/2-(p.height+(r.padding??0)/(h?2:1)-(p.y-(p.top??0)))})`),r.intersect=function(t){return e.g.info(`Triangle intersect`,r,y,t),M.polygon(r,y,t)},f}e.h(et,`triangle`);async function tt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:p}=await s(e,t,u(t)),m=Math.max(c.width+(t.padding??0)*2,t?.width??0),h=Math.max(c.height+(t.padding??0)*2,t?.height??0),g=h/8,_=h+g,{cssStyles:v}=t,y=70-m,b=y>0?y/2:0,x=o.t.svg(a),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-m/2-b,y:_/2},...f(-m/2-b,_/2,m/2+b,_/2,g,.8),{x:m/2+b,y:-_/2},{x:-m/2-b,y:-_/2}],w=d(C),T=x.path(w,S),E=a.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),v&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,v),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),E.attr(`transform`,`translate(0,${-g/2})`),p.attr(`transform`,`translate(${-m/2+(t.padding??0)-(c.x-(c.left??0))},${-h/2+(t.padding??0)-g-(c.y-(c.top??0))})`),l(t,E),t.intersect=function(e){return M.polygon(t,C,e)},a}e.h(tt,`waveEdgedRectangle`);async function nt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c}=await s(e,t,u(t)),p=Math.max(c.width+(t.padding??0)*2,t?.width??0),m=Math.max(c.height+(t.padding??0)*2,t?.height??0),h=p/m,g=p,_=m;g>_*h?_=g/h:g=_*h,g=Math.max(g,100),_=Math.max(_,50);let v=Math.min(_*.2,_/4),y=_+v*2,{cssStyles:b}=t,x=o.t.svg(a),S=i.a(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=[{x:-g/2,y:y/2},...f(-g/2,y/2,g/2,y/2,v,1),{x:g/2,y:-y/2},...f(g/2,-y/2,-g/2,-y/2,v,-1)],w=d(C),T=x.path(w,S),E=a.insert(()=>T,`:first-child`);return E.attr(`class`,`basic label-container`),b&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,b),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),l(t,E),t.intersect=function(e){return M.polygon(t,C,e)},a}e.h(nt,`waveRectangle`);async function rt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:c,label:d}=await s(e,t,u(t)),f=Math.max(c.width+(t.padding??0)*2,t?.width??0),p=Math.max(c.height+(t.padding??0)*2,t?.height??0),m=-f/2,h=-p/2,{cssStyles:g}=t,_=o.t.svg(a),v=i.a(t,{}),y=[{x:m-5,y:h-5},{x:m-5,y:h+p},{x:m+f,y:h+p},{x:m+f,y:h-5}],b=`M${m-5},${h-5} L${m+f},${h-5} L${m+f},${h+p} L${m-5},${h+p} L${m-5},${h-5}
|
|
9
|
-
M${m-5},${h} L${m+f},${h}
|
|
10
|
-
M${m},${h-5} L${m},${h+p}`;t.look!==`handDrawn`&&(v.roughness=0,v.fillStyle=`solid`);let x=_.path(b,v),S=a.insert(()=>x,`:first-child`);return S.attr(`transform`,`translate(${5/2}, ${5/2})`),S.attr(`class`,`basic label-container`),g&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,g),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),d.attr(`transform`,`translate(${-(c.width/2)+5/2-(c.x-(c.left??0))}, ${-(c.height/2)+5/2-(c.y-(c.top??0))})`),l(t,S),t.intersect=function(e){return M.polygon(t,y,e)},a}e.h(rt,`windowPane`);async function Y(r,a){let s=a;if(s.alias&&(a.label=s.alias),a.look===`handDrawn`){let{themeVariables:e}=t.y(),{background:n}=e;await Y(r,{...a,id:a.id+`-background`,look:`default`,cssStyles:[`stroke: none`,`fill: ${n}`]})}let c=t.y();a.useHtmlLabels=c.htmlLabels;let d=c.er?.diagramPadding??10,f=c.er?.entityPadding??6,{cssStyles:p}=a,{labelStyles:m,nodeStyles:h}=i.i(a);if(s.attributes.length===0&&a.label){let e={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5,classes:``};n.n(a.label,c)+e.labelPaddingX*2<c.er.minEntityWidth&&(a.width=c.er.minEntityWidth);let i=await q(r,a,e);if(!t.h(c.htmlLabels)){let e=i.select(`text`),t=e.node()?.getBBox();e.attr(`transform`,`translate(${-t.width/2}, 0)`)}return i}c.htmlLabels||(d*=1.25,f*=1.25);let g=u(a);g||=`node default`;let _=r.insert(`g`).attr(`class`,g).attr(`id`,a.domId||a.id),v=await X(_,a.label??``,c,0,0,[`name`],m);v.height+=f;let y=0,b=[],x=[],S=0,C=0,w=0,T=0,E=!0,D=!0;for(let e of s.attributes){let t=await X(_,e.type,c,0,y,[`attribute-type`],m);S=Math.max(S,t.width+d);let n=await X(_,e.name,c,0,y,[`attribute-name`],m);C=Math.max(C,n.width+d);let r=await X(_,e.keys.join(),c,0,y,[`attribute-keys`],m);w=Math.max(w,r.width+d);let i=await X(_,e.comment,c,0,y,[`attribute-comment`],m);T=Math.max(T,i.width+d);let a=Math.max(t.height,n.height,r.height,i.height)+f;x.push({yOffset:y,rowHeight:a}),y+=a}let O=4;w<=d&&(E=!1,w=0,O--),T<=d&&(D=!1,T=0,O--);let k=_.node().getBBox();if(v.width+d*2-(S+C+w+T)>0){let e=v.width+d*2-(S+C+w+T);S+=e/O,C+=e/O,w>0&&(w+=e/O),T>0&&(T+=e/O)}let A=S+C+w+T,j=o.t.svg(_),N=i.a(a,{});a.look!==`handDrawn`&&(N.roughness=0,N.fillStyle=`solid`);let P=0;x.length>0&&(P=x.reduce((e,t)=>e+(t?.rowHeight??0),0));let F=Math.max(k.width+d*2,a?.width||0,A),I=Math.max((P??0)+v.height,a?.height||0),L=-F/2,R=-I/2;_.selectAll(`g:not(:first-child)`).each((t,n,r)=>{let i=e.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]),i.attr(`class`).includes(`attribute-name`)?o+=S:i.attr(`class`).includes(`attribute-keys`)?o+=S+C:i.attr(`class`).includes(`attribute-comment`)&&(o+=S+C+w))}i.attr(`transform`,`translate(${L+d/2+o}, ${s+R+v.height+f/2})`)}),_.select(`.name`).attr(`transform`,`translate(`+-v.width/2+`, `+(R+f/2)+`)`);let z=j.rectangle(L,R,F,I,N),B=_.insert(()=>z,`:first-child`).attr(`style`,p.join(``)),{themeVariables:V}=t.y(),{rowEven:H,rowOdd:U,nodeBorder:W}=V;b.push(0);for(let[e,t]of x.entries()){let n=(e+1)%2==0&&t.yOffset!==0,r=j.rectangle(L,v.height+R+t?.yOffset,F,t?.rowHeight,{...N,fill:n?H:U,stroke:W});_.insert(()=>r,`g.label`).attr(`style`,p.join(``)).attr(`class`,`row-rect-${n?`even`:`odd`}`)}let G=j.line(L,v.height+R,F+L,v.height+R,N);_.insert(()=>G).attr(`class`,`divider`),G=j.line(S+L,v.height+R,S+L,I+R,N),_.insert(()=>G).attr(`class`,`divider`),E&&(G=j.line(S+C+L,v.height+R,S+C+L,I+R,N),_.insert(()=>G).attr(`class`,`divider`)),D&&(G=j.line(S+C+w+L,v.height+R,S+C+w+L,I+R,N),_.insert(()=>G).attr(`class`,`divider`));for(let e of b)G=j.line(L,v.height+R+e,F+L,v.height+R+e,N),_.insert(()=>G).attr(`class`,`divider`);if(l(a,B),h&&a.look!==`handDrawn`){let e=h.split(`;`)?.filter(e=>e.includes(`stroke`))?.map(e=>`${e}`).join(`; `);_.selectAll(`path`).attr(`style`,e??``),_.selectAll(`.row-rect-even path`).attr(`style`,h)}return a.intersect=function(e){return M.rect(a,e)},_}e.h(Y,`erBox`);async function X(r,i,o,s=0,c=0,l=[],u=``){let d=r.insert(`g`).attr(`class`,`label ${l.join(` `)}`).attr(`transform`,`translate(${s}, ${c})`).attr(`style`,u);i!==t.j(i)&&(i=t.j(i),i=i.replaceAll(`<`,`<`).replaceAll(`>`,`>`));let f=d.node().appendChild(await a.n(d,i,{width:n.n(i,o)+100,style:u,useHtmlLabels:o.htmlLabels},o));if(i.includes(`<`)||i.includes(`>`)){let e=f.children[0];for(e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`);e.childNodes[0];)e=e.childNodes[0],e.textContent=e.textContent.replaceAll(`<`,`<`).replaceAll(`>`,`>`)}let p=f.getBBox();if(t.h(o.htmlLabels)){let t=f.children[0];t.style.textAlign=`start`;let n=e.p(f);p=t.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}return p}e.h(X,`addText`);async function it(e,t,n,r,i=n.class.padding??12){let a=r?0:3,o=e.insert(`g`).attr(`class`,u(t)).attr(`id`,t.domId||t.id),s=null,c=null,l=null,d=null,f=0,p=0,m=0;if(s=o.insert(`g`).attr(`class`,`annotation-group text`),t.annotations.length>0){let e=t.annotations[0];await Z(s,{text:`\xAB${e}\xBB`},0),f=s.node().getBBox().height}c=o.insert(`g`).attr(`class`,`label-group text`),await Z(c,t,0,[`font-weight: bolder`]);let h=c.node().getBBox();p=h.height,l=o.insert(`g`).attr(`class`,`members-group text`);let g=0;for(let e of t.members){let t=await Z(l,e,g,[e.parseClassifier()]);g+=t+a}m=l.node().getBBox().height,m<=0&&(m=i/2),d=o.insert(`g`).attr(`class`,`methods-group text`);let _=0;for(let e of t.methods){let t=await Z(d,e,_,[e.parseClassifier()]);_+=t+a}let v=o.node().getBBox();if(s!==null){let e=s.node().getBBox();s.attr(`transform`,`translate(${-e.width/2})`)}return c.attr(`transform`,`translate(${-h.width/2}, ${f})`),v=o.node().getBBox(),l.attr(`transform`,`translate(0, ${f+p+i*2})`),v=o.node().getBBox(),d.attr(`transform`,`translate(0, ${f+p+(m?m+i*4:i*2)})`),v=o.node().getBBox(),{shapeSvg:o,bbox:v}}e.h(it,`textHelper`);async function Z(r,i,o,s=[]){let c=r.insert(`g`).attr(`class`,`label`).attr(`style`,s.join(`; `)),l=t.y(),u=`useHtmlLabels`in i?i.useHtmlLabels:t.h(l.htmlLabels)??!0,d=``;d=`text`in i?i.text:i.label,!u&&d.startsWith(`\\`)&&(d=d.substring(1)),t.k(d)&&(u=!0);let f=await a.n(c,t.R(n.i(d)),{width:n.n(d,l)+50,classes:`markdown-node-label`,useHtmlLabels:u},l),p,m=1;if(u){let t=f.children[0],n=e.p(f);m=t.innerHTML.split(`<br>`).length,t.innerHTML.includes(`</math>`)&&(m+=t.innerHTML.split(`<mrow>`).length-1);let r=t.getElementsByTagName(`img`);if(r){let t=d.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...r].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,t){let e=l.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,t=parseInt(e,10)*5+`px`;n.style.minWidth=t,n.style.maxWidth=t}else n.style.width=`100%`;r(n)}e.h(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}p=t.getBoundingClientRect(),n.attr(`width`,p.width),n.attr(`height`,p.height)}else{s.includes(`font-weight: bolder`)&&e.p(f).selectAll(`tspan`).attr(`font-weight`,``),m=f.children.length;let t=f.children[0];(f.textContent===``||f.textContent.includes(`>`))&&(t.textContent=d[0]+d.substring(1).replaceAll(`>`,`>`).replaceAll(`<`,`<`).trim(),d[1]===` `&&(t.textContent=t.textContent[0]+` `+t.textContent.substring(1))),t.textContent===`undefined`&&(t.textContent=``),p=f.getBBox()}return c.attr(`transform`,`translate(0,`+(-p.height/(2*m)+o)+`)`),p.height}e.h(Z,`addText`);async function at(n,r){let a=t.b(),s=a.class.padding??12,c=s,u=r.useHtmlLabels??t.h(a.htmlLabels)??!0,d=r;d.annotations=d.annotations??[],d.members=d.members??[],d.methods=d.methods??[];let{shapeSvg:f,bbox:p}=await it(n,r,a,u,c),{labelStyles:m,nodeStyles:h}=i.i(r);r.labelStyle=m,r.cssStyles=d.styles||``;let g=d.styles?.join(`;`)||h||``;r.cssStyles||=g.replaceAll(`!important`,``).split(`;`);let _=d.members.length===0&&d.methods.length===0&&!a.class?.hideEmptyMembersBox,v=o.t.svg(f),y=i.a(r,{});r.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let b=p.width,x=p.height;d.members.length===0&&d.methods.length===0?x+=c:d.members.length>0&&d.methods.length===0&&(x+=c*2);let S=-b/2,C=-x/2,w=v.rectangle(S-s,C-s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0),b+2*s,x+2*s+(_?s*2:d.members.length===0&&d.methods.length===0?-s:0),y),T=f.insert(()=>w,`:first-child`);T.attr(`class`,`basic label-container`);let E=T.node().getBBox();f.selectAll(`.text`).each((t,n,r)=>{let i=e.p(r[n]),a=i.attr(`transform`),o=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[2]))}let c=o+C+s-(_?s:d.members.length===0&&d.methods.length===0?-s/2:0);u||(c-=4);let l=S;(i.attr(`class`).includes(`label-group`)||i.attr(`class`).includes(`annotation-group`))&&(l=-i.node()?.getBBox().width/2||0,f.selectAll(`text`).each(function(e,t,n){window.getComputedStyle(n[t]).textAnchor===`middle`&&(l=0)})),i.attr(`transform`,`translate(${l}, ${c})`)});let D=f.select(`.annotation-group`).node().getBBox().height-(_?s/2:0)||0,O=f.select(`.label-group`).node().getBBox().height-(_?s/2:0)||0,k=f.select(`.members-group`).node().getBBox().height-(_?s/2:0)||0;if(d.members.length>0||d.methods.length>0||_){let e=v.line(E.x,D+O+C+s,E.x+E.width,D+O+C+s,y);f.insert(()=>e).attr(`class`,`divider`).attr(`style`,g)}if(_||d.members.length>0||d.methods.length>0){let e=v.line(E.x,D+O+k+C+c*2+s,E.x+E.width,D+O+k+C+s+c*2,y);f.insert(()=>e).attr(`class`,`divider`).attr(`style`,g)}if(d.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,g),T.select(`:nth-child(2)`).attr(`style`,g),f.selectAll(`.divider`).select(`path`).attr(`style`,g),r.labelStyle?f.selectAll(`span`).attr(`style`,r.labelStyle):f.selectAll(`span`).attr(`style`,g),!u){let e=RegExp(/color\s*:\s*([^;]*)/),t=e.exec(g);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}else if(m){let t=e.exec(m);if(t){let e=t[0].replace(`color`,`fill`);f.selectAll(`tspan`).attr(`style`,e)}}}return l(r,T),r.intersect=function(e){return M.rect(r,e)},f}e.h(at,`classBox`);async function ot(t,n){let{labelStyles:r,nodeStyles:a}=i.i(n);n.labelStyle=r;let s=n,c=n,d=`verifyMethod`in n,f=u(n),p=t.insert(`g`).attr(`class`,f).attr(`id`,n.domId??n.id),m;m=d?await Q(p,`<<${s.type}>>`,0,n.labelStyle):await Q(p,`<<Element>>`,0,n.labelStyle);let h=m,g=await Q(p,s.name,h,n.labelStyle+`; font-weight: bold;`);if(h+=g+20,d){let e=await Q(p,`${s.requirementId?`ID: ${s.requirementId}`:``}`,h,n.labelStyle);h+=e;let t=await Q(p,`${s.text?`Text: ${s.text}`:``}`,h,n.labelStyle);h+=t;let r=await Q(p,`${s.risk?`Risk: ${s.risk}`:``}`,h,n.labelStyle);h+=r,await Q(p,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:``}`,h,n.labelStyle)}else{let e=await Q(p,`${c.type?`Type: ${c.type}`:``}`,h,n.labelStyle);h+=e,await Q(p,`${c.docRef?`Doc Ref: ${c.docRef}`:``}`,h,n.labelStyle)}let _=(p.node()?.getBBox().width??200)+20,v=(p.node()?.getBBox().height??200)+20,y=-_/2,b=-v/2,x=o.t.svg(p),S=i.a(n,{});n.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=x.rectangle(y,b,_,v,S),w=p.insert(()=>C,`:first-child`);if(w.attr(`class`,`basic label-container`).attr(`style`,a),p.selectAll(`.label`).each((t,n,r)=>{let i=e.p(r[n]),a=i.attr(`transform`),o=0,s=0;if(a){let e=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);e&&(o=parseFloat(e[1]),s=parseFloat(e[2]))}let c=s-v/2,l=y+20/2;(n===0||n===1)&&(l=o),i.attr(`transform`,`translate(${l}, ${c+20})`)}),h>m+g+20){let e=x.line(y,b+m+g+20,y+_,b+m+g+20,S);p.insert(()=>e).attr(`style`,a)}return l(n,w),n.intersect=function(e){return M.rect(n,e)},p}e.h(ot,`requirementBox`);async function Q(r,i,o,s=``){if(i===``)return 0;let c=r.insert(`g`).attr(`class`,`label`).attr(`style`,s),l=t.b(),u=l.htmlLabels??!0,d=await a.n(c,t.R(n.i(i)),{width:n.n(i,l)+50,classes:`markdown-node-label`,useHtmlLabels:u,style:s},l),f;if(u){let t=d.children[0],n=e.p(d);f=t.getBoundingClientRect(),n.attr(`width`,f.width),n.attr(`height`,f.height)}else{let e=d.children[0];for(let t of e.children)t.textContent=t.textContent.replaceAll(`>`,`>`).replaceAll(`<`,`<`),s&&t.setAttribute(`style`,s);f=d.getBBox(),f.height+=6}return c.attr(`transform`,`translate(${-f.width/2},${-f.height/2+o})`),f.height}e.h(Q,`addText`);var st=e.h(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`);async function ct(e,t,{config:n}){let{labelStyles:r,nodeStyles:a}=i.i(t);t.labelStyle=r||``;let d=t.width;t.width=(t.width??200)-10;let{shapeSvg:f,bbox:p,label:m}=await s(e,t,u(t)),h=t.padding||10,_=``,v;`ticket`in t&&t.ticket&&n?.kanban?.ticketBaseUrl&&(_=n?.kanban?.ticketBaseUrl.replace(`#TICKET#`,t.ticket),v=f.insert(`svg:a`,`:first-child`).attr(`class`,`kanban-ticket-link`).attr(`xlink:href`,_).attr(`target`,`_blank`));let y={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||``,width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},b,x;v?{label:b,bbox:x}=await c(v,`ticket`in t&&t.ticket||``,y):{label:b,bbox:x}=await c(f,`ticket`in t&&t.ticket||``,y);let{label:S,bbox:C}=await c(f,`assigned`in t&&t.assigned||``,y);t.width=d;let w=t?.width||0,T=Math.max(x.height,C.height)/2,E=Math.max(p.height+20,t?.height||0)+T,D=-w/2,O=-E/2;m.attr(`transform`,`translate(`+(h-w/2)+`, `+(-T-p.height/2)+`)`),b.attr(`transform`,`translate(`+(h-w/2)+`, `+(-T+p.height/2)+`)`),S.attr(`transform`,`translate(`+(h+w/2-C.width-20)+`, `+(-T+p.height/2)+`)`);let k,{rx:A,ry:j}=t,{cssStyles:N}=t;if(t.look===`handDrawn`){let e=o.t.svg(f),n=i.a(t,{}),r=A||j?e.path(g(D,O,w,E,A||0),n):e.rectangle(D,O,w,E,n);k=f.insert(()=>r,`:first-child`),k.attr(`class`,`basic label-container`).attr(`style`,N||null)}else{k=f.insert(`rect`,`:first-child`),k.attr(`class`,`basic label-container __APA__`).attr(`style`,a).attr(`rx`,A??5).attr(`ry`,j??5).attr(`x`,D).attr(`y`,O).attr(`width`,w).attr(`height`,E);let e=`priority`in t&&t.priority;if(e){let t=f.append(`line`),n=D+2,r=O+Math.floor((A??0)/2),i=O+E-Math.floor((A??0)/2);t.attr(`x1`,n).attr(`y1`,r).attr(`x2`,n).attr(`y2`,i).attr(`stroke-width`,`4`).attr(`stroke`,st(e))}}return l(t,k),t.height=E,t.intersect=function(e){return M.rect(t,e)},f}e.h(ct,`kanbanItem`);async function lt(t,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let{shapeSvg:d,bbox:f,halfPadding:p,label:m}=await s(t,r,u(r)),h=f.width+10*p,g=f.height+8*p,_=.15*h,{cssStyles:v}=r,y=f.width+20,b=f.height+20,x=Math.max(h,y),S=Math.max(g,b);m.attr(`transform`,`translate(${-f.width/2}, ${-f.height/2})`);let C,w=`M0 0
|
|
11
|
-
a${_},${_} 1 0,0 ${x*.25},${-1*S*.1}
|
|
12
|
-
a${_},${_} 1 0,0 ${x*.25},0
|
|
13
|
-
a${_},${_} 1 0,0 ${x*.25},0
|
|
14
|
-
a${_},${_} 1 0,0 ${x*.25},${S*.1}
|
|
15
|
-
|
|
16
|
-
a${_},${_} 1 0,0 ${x*.15},${S*.33}
|
|
17
|
-
a${_*.8},${_*.8} 1 0,0 0,${S*.34}
|
|
18
|
-
a${_},${_} 1 0,0 ${-1*x*.15},${S*.33}
|
|
19
|
-
|
|
20
|
-
a${_},${_} 1 0,0 ${-1*x*.25},${S*.15}
|
|
21
|
-
a${_},${_} 1 0,0 ${-1*x*.25},0
|
|
22
|
-
a${_},${_} 1 0,0 ${-1*x*.25},0
|
|
23
|
-
a${_},${_} 1 0,0 ${-1*x*.25},${-1*S*.15}
|
|
24
|
-
|
|
25
|
-
a${_},${_} 1 0,0 ${-1*x*.1},${-1*S*.33}
|
|
26
|
-
a${_*.8},${_*.8} 1 0,0 0,${-1*S*.34}
|
|
27
|
-
a${_},${_} 1 0,0 ${x*.1},${-1*S*.33}
|
|
28
|
-
H0 V0 Z`;if(r.look===`handDrawn`){let e=o.t.svg(d),t=i.a(r,{}),a=e.path(w,t);C=d.insert(()=>a,`:first-child`),C.attr(`class`,`basic label-container`).attr(`style`,n.l(v))}else C=d.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,c).attr(`d`,w);return C.attr(`transform`,`translate(${-x/2}, ${-S/2})`),l(r,C),r.calcIntersect=function(e,t){return M.rect(e,t)},r.intersect=function(t){return e.g.info(`Bang intersect`,r,t),M.rect(r,t)},d}e.h(lt,`bang`);async function ut(t,r){let{labelStyles:a,nodeStyles:c}=i.i(r);r.labelStyle=a;let{shapeSvg:d,bbox:f,halfPadding:p,label:m}=await s(t,r,u(r)),h=f.width+2*p,g=f.height+2*p,_=.15*h,v=.25*h,y=.35*h,b=.2*h,{cssStyles:x}=r,S,C=`M0 0
|
|
29
|
-
a${_},${_} 0 0,1 ${h*.25},${-1*h*.1}
|
|
30
|
-
a${y},${y} 1 0,1 ${h*.4},${-1*h*.1}
|
|
31
|
-
a${v},${v} 1 0,1 ${h*.35},${h*.2}
|
|
32
|
-
|
|
33
|
-
a${_},${_} 1 0,1 ${h*.15},${g*.35}
|
|
34
|
-
a${b},${b} 1 0,1 ${-1*h*.15},${g*.65}
|
|
35
|
-
|
|
36
|
-
a${v},${_} 1 0,1 ${-1*h*.25},${h*.15}
|
|
37
|
-
a${y},${y} 1 0,1 ${-1*h*.5},0
|
|
38
|
-
a${_},${_} 1 0,1 ${-1*h*.25},${-1*h*.15}
|
|
39
|
-
|
|
40
|
-
a${_},${_} 1 0,1 ${-1*h*.1},${-1*g*.35}
|
|
41
|
-
a${b},${b} 1 0,1 ${h*.1},${-1*g*.65}
|
|
42
|
-
H0 V0 Z`;if(r.look===`handDrawn`){let e=o.t.svg(d),t=i.a(r,{}),a=e.path(C,t);S=d.insert(()=>a,`:first-child`),S.attr(`class`,`basic label-container`).attr(`style`,n.l(x))}else S=d.insert(`path`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,c).attr(`d`,C);return m.attr(`transform`,`translate(${-f.width/2}, ${-f.height/2})`),S.attr(`transform`,`translate(${-h/2}, ${-g/2})`),l(r,S),r.calcIntersect=function(e,t){return M.rect(e,t)},r.intersect=function(t){return e.g.info(`Cloud intersect`,r,t),M.rect(r,t)},d}e.h(ut,`cloud`);async function dt(e,t){let{labelStyles:n,nodeStyles:r}=i.i(t);t.labelStyle=n;let{shapeSvg:a,bbox:o,halfPadding:c,label:d}=await s(e,t,u(t)),f=o.width+8*c,p=o.height+2*c,m=`
|
|
43
|
-
M${-f/2} ${p/2-5}
|
|
44
|
-
v${-p+10}
|
|
45
|
-
q0,-5 5,-5
|
|
46
|
-
h${f-10}
|
|
47
|
-
q5,0 5,5
|
|
48
|
-
v${p-10}
|
|
49
|
-
q0,5 -5,5
|
|
50
|
-
h${-f+10}
|
|
51
|
-
q-5,0 -5,-5
|
|
52
|
-
Z
|
|
53
|
-
`,h=a.append(`path`).attr(`id`,`node-`+t.id).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,m);return a.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-f/2).attr(`y1`,p/2).attr(`x2`,f/2).attr(`y2`,p/2),d.attr(`transform`,`translate(${-o.width/2}, ${-o.height/2})`),a.append(()=>d.node()),l(t,h),t.calcIntersect=function(e,t){return M.rect(e,t)},t.intersect=function(e){return M.rect(t,e)},a}e.h(dt,`defaultMindmapNode`);async function ft(e,t){return z(e,t,{padding:t.padding??0})}e.h(ft,`mindmapCircle`);var pt=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:ze},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Ie},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:Be},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:We},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:ae},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:z},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:lt},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:ut},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:Ne},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:pe},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:Ce},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:Se},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Qe},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:be},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:se},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:qe},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:L},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:Le},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:Ue},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:He},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ue},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:me},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:U},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:G},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:ee},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:J},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:tt},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:de},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:Ze},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:De},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:te},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:oe},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:et},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:rt},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:ce},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:$e},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:le},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:Re},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Ae},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:ke},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:F},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:V},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:Ke},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:Ge},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:nt},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:Pe},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:Oe}],mt=e.h(()=>{let e=[...Object.entries({state:Ve,choice:R,note:je,rectWithTitle:Fe,labelRect:xe,iconSquare:ve,iconCircle:ge,icon:he,iconRounded:_e,imageSquare:ye,anchor:N,kanbanItem:ct,mindmapCircle:ft,defaultMindmapNode:dt,classBox:at,erBox:Y,requirementBox:ot}),...pt.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)();function ht(e){return e in mt}e.h(ht,`isValidShape`);var $=new Map;async function gt(e,t,n){let r,i;t.shape===`rect`&&(t.rx&&t.ry?t.shape=`roundedRect`:t.shape=`squareRect`);let a=t.shape?mt[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return t.tooltip&&i.attr(`title`,t.tooltip),$.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}e.h(gt,`insertNode`);var _t=e.h((e,t)=>{$.set(t.id,e)},`setNodeElem`),vt=e.h(()=>{$.clear()},`clear`),yt=e.h(t=>{let n=$.get(t.id);e.g.trace(`Transforming node`,t.diff,t,`translate(`+(t.x-t.width/2-5)+`, `+t.width/2+`)`);let r=t.diff||0;return t.clusterNode?n.attr(`transform`,`translate(`+(t.x+r-t.width/2)+`, `+(t.y-t.height/2-8)+`)`):n.attr(`transform`,`translate(`+t.x+`, `+t.y+`)`),r},`positionNode`);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return l}});
|
|
54
|
-
//# sourceMappingURL=chunk-KYZI473N-DzBMFOER.cjs.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { f as e, g as t, h as n, i as r, m as i, p as a, s as o, t as s, u as c } from "./chunk-XZSTWKYB-jD9M1izK.js";
|
|
2
|
-
//#region node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-L3YUKLVL.mjs
|
|
3
|
-
var l = class extends s {
|
|
4
|
-
static {
|
|
5
|
-
e(this, "RadarTokenBuilder");
|
|
6
|
-
}
|
|
7
|
-
constructor() {
|
|
8
|
-
super(["radar-beta"]);
|
|
9
|
-
}
|
|
10
|
-
}, u = { parser: {
|
|
11
|
-
TokenBuilder: /* @__PURE__ */ e(() => new l(), "TokenBuilder"),
|
|
12
|
-
ValueConverter: /* @__PURE__ */ e(() => new r(), "ValueConverter")
|
|
13
|
-
} };
|
|
14
|
-
function d(e = a) {
|
|
15
|
-
let r = i(t(e), o), s = i(n({ shared: r }), c, u);
|
|
16
|
-
return r.ServiceRegistry.register(s), {
|
|
17
|
-
shared: r,
|
|
18
|
-
Radar: s
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
e(d, "createRadarServices");
|
|
22
|
-
//#endregion
|
|
23
|
-
export { d as n, u as t };
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=chunk-L3YUKLVL-BDGCTzmy.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-XZSTWKYB-DJv9rEVU.cjs`);var t=class extends e.t{static{e.f(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},n={parser:{TokenBuilder:e.f(()=>new t,`TokenBuilder`),ValueConverter:e.f(()=>new e.i,`ValueConverter`)}};function r(t=e.p){let r=e.m(e.g(t),e.s),i=e.m(e.h({shared:r}),e.u,n);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}e.f(r,`createRadarServices`),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
2
|
-
//# sourceMappingURL=chunk-L3YUKLVL-BZ17sqh5.cjs.map
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { h as e } from "./src-Dm6r9c7l.js";
|
|
2
|
-
//#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-MX3YWQON.mjs
|
|
3
|
-
var t = /* @__PURE__ */ e((e, t) => {
|
|
4
|
-
if (t) return "translate(" + -e.width / 2 + ", " + -e.height / 2 + ")";
|
|
5
|
-
let n = e.x ?? 0, r = e.y ?? 0;
|
|
6
|
-
return "translate(" + -(n + e.width / 2) + ", " + -(r + e.height / 2) + ")";
|
|
7
|
-
}, "computeLabelTransform"), n = {
|
|
8
|
-
aggregation: 17.25,
|
|
9
|
-
extension: 17.25,
|
|
10
|
-
composition: 17.25,
|
|
11
|
-
dependency: 6,
|
|
12
|
-
lollipop: 13.5,
|
|
13
|
-
arrow_point: 4
|
|
14
|
-
}, r = {
|
|
15
|
-
arrow_point: 9,
|
|
16
|
-
arrow_cross: 12.5,
|
|
17
|
-
arrow_circle: 12.5
|
|
18
|
-
};
|
|
19
|
-
function i(e, t) {
|
|
20
|
-
if (e === void 0 || t === void 0) return {
|
|
21
|
-
angle: 0,
|
|
22
|
-
deltaX: 0,
|
|
23
|
-
deltaY: 0
|
|
24
|
-
};
|
|
25
|
-
e = a(e), t = a(t);
|
|
26
|
-
let [n, r] = [e.x, e.y], [i, o] = [t.x, t.y], s = i - n, c = o - r;
|
|
27
|
-
return {
|
|
28
|
-
angle: Math.atan(c / s),
|
|
29
|
-
deltaX: s,
|
|
30
|
-
deltaY: c
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
e(i, "calculateDeltaAndAngle");
|
|
34
|
-
var a = /* @__PURE__ */ e((e) => Array.isArray(e) ? {
|
|
35
|
-
x: e[0],
|
|
36
|
-
y: e[1]
|
|
37
|
-
} : e, "pointTransformer"), o = /* @__PURE__ */ e((t) => ({
|
|
38
|
-
x: /* @__PURE__ */ e(function(e, r, o) {
|
|
39
|
-
let s = 0, c = a(o[0]).x < a(o[o.length - 1]).x ? "left" : "right";
|
|
40
|
-
if (r === 0 && Object.hasOwn(n, t.arrowTypeStart)) {
|
|
41
|
-
let { angle: e, deltaX: r } = i(o[0], o[1]);
|
|
42
|
-
s = n[t.arrowTypeStart] * Math.cos(e) * (r >= 0 ? 1 : -1);
|
|
43
|
-
} else if (r === o.length - 1 && Object.hasOwn(n, t.arrowTypeEnd)) {
|
|
44
|
-
let { angle: e, deltaX: r } = i(o[o.length - 1], o[o.length - 2]);
|
|
45
|
-
s = n[t.arrowTypeEnd] * Math.cos(e) * (r >= 0 ? 1 : -1);
|
|
46
|
-
}
|
|
47
|
-
let l = Math.abs(a(e).x - a(o[o.length - 1]).x), u = Math.abs(a(e).y - a(o[o.length - 1]).y), d = Math.abs(a(e).x - a(o[0]).x), f = Math.abs(a(e).y - a(o[0]).y), p = n[t.arrowTypeStart], m = n[t.arrowTypeEnd];
|
|
48
|
-
if (l < m && l > 0 && u < m) {
|
|
49
|
-
let e = m + 1 - l;
|
|
50
|
-
e *= c === "right" ? -1 : 1, s -= e;
|
|
51
|
-
}
|
|
52
|
-
if (d < p && d > 0 && f < p) {
|
|
53
|
-
let e = p + 1 - d;
|
|
54
|
-
e *= c === "right" ? -1 : 1, s += e;
|
|
55
|
-
}
|
|
56
|
-
return a(e).x + s;
|
|
57
|
-
}, "x"),
|
|
58
|
-
y: /* @__PURE__ */ e(function(e, r, o) {
|
|
59
|
-
let s = 0, c = a(o[0]).y < a(o[o.length - 1]).y ? "down" : "up";
|
|
60
|
-
if (r === 0 && Object.hasOwn(n, t.arrowTypeStart)) {
|
|
61
|
-
let { angle: e, deltaY: r } = i(o[0], o[1]);
|
|
62
|
-
s = n[t.arrowTypeStart] * Math.abs(Math.sin(e)) * (r >= 0 ? 1 : -1);
|
|
63
|
-
} else if (r === o.length - 1 && Object.hasOwn(n, t.arrowTypeEnd)) {
|
|
64
|
-
let { angle: e, deltaY: r } = i(o[o.length - 1], o[o.length - 2]);
|
|
65
|
-
s = n[t.arrowTypeEnd] * Math.abs(Math.sin(e)) * (r >= 0 ? 1 : -1);
|
|
66
|
-
}
|
|
67
|
-
let l = Math.abs(a(e).y - a(o[o.length - 1]).y), u = Math.abs(a(e).x - a(o[o.length - 1]).x), d = Math.abs(a(e).y - a(o[0]).y), f = Math.abs(a(e).x - a(o[0]).x), p = n[t.arrowTypeStart], m = n[t.arrowTypeEnd];
|
|
68
|
-
if (l < m && l > 0 && u < m) {
|
|
69
|
-
let e = m + 1 - l;
|
|
70
|
-
e *= c === "up" ? -1 : 1, s -= e;
|
|
71
|
-
}
|
|
72
|
-
if (d < p && d > 0 && f < p) {
|
|
73
|
-
let e = p + 1 - d;
|
|
74
|
-
e *= c === "up" ? -1 : 1, s += e;
|
|
75
|
-
}
|
|
76
|
-
return a(e).y + s;
|
|
77
|
-
}, "y")
|
|
78
|
-
}), "getLineFunctionsWithOffset");
|
|
79
|
-
//#endregion
|
|
80
|
-
export { r as i, o as n, n as r, t };
|
|
81
|
-
|
|
82
|
-
//# sourceMappingURL=chunk-MX3YWQON-CAsnAj2e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const e=require(`./src-DFxq-N5I.cjs`);var t=e.h((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},r={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function i(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-n,c=o-r;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}e.h(i,`calculateDeltaAndAngle`);var a=e.h(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),o=e.h(t=>({x:e.h(function(e,r,o){let s=0,c=a(o[0]).x<a(o[o.length-1]).x?`left`:`right`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaX:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let l=Math.abs(a(e).x-a(o[o.length-1]).x),u=Math.abs(a(e).y-a(o[o.length-1]).y),d=Math.abs(a(e).x-a(o[0]).x),f=Math.abs(a(e).y-a(o[0]).y),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`right`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`right`?-1:1,s+=e}return a(e).x+s},`x`),y:e.h(function(e,r,o){let s=0,c=a(o[0]).y<a(o[o.length-1]).y?`down`:`up`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaY:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let l=Math.abs(a(e).y-a(o[o.length-1]).y),u=Math.abs(a(e).x-a(o[o.length-1]).x),d=Math.abs(a(e).y-a(o[0]).y),f=Math.abs(a(e).x-a(o[0]).x),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`up`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`up`?-1:1,s+=e}return a(e).y+s},`y`)}),`getLineFunctionsWithOffset`);Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
2
|
-
//# sourceMappingURL=chunk-MX3YWQON-DulrBJdn.cjs.map
|
package/dist/chunk-NBPlniwU.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (e && (t = e(e = 0)), t), s = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), c = (e, n) => {
|
|
3
|
-
let r = {};
|
|
4
|
-
for (var i in e) t(r, i, {
|
|
5
|
-
get: e[i],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
}, l = (e, i, o, s) => {
|
|
10
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
11
|
-
get: ((e) => i[e]).bind(null, d),
|
|
12
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
|
-
});
|
|
14
|
-
return e;
|
|
15
|
-
}, u = (e, t, n) => (l(e, t, "default"), n && l(n, t, "default")), d = (n, r, a) => (a = n == null ? {} : e(i(n)), l(r || !n || !n.__esModule ? t(a, "default", {
|
|
16
|
-
value: n,
|
|
17
|
-
enumerable: !0
|
|
18
|
-
}) : a, n)), f = (e) => a.call(e, "module.exports") ? e["module.exports"] : l(t({}, "__esModule", { value: !0 }), e), p = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
19
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
20
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
21
|
-
});
|
|
22
|
-
//#endregion
|
|
23
|
-
export { p as a, u as i, o as n, f as o, c as r, d as s, s as t };
|