@mcpc-tech/unplugin-dev-inspector-mcp 0.1.25 → 0.1.26
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/client/dist/PromptParamsDialog-CtCaLYaq.js +5218 -0
- package/client/dist/{_basePickBy-VajNci9y.js → _basePickBy-CO2jbuKs.js} +1 -1
- package/client/dist/{_baseUniq-CDC7r2eu.js → _baseUniq-DrKsbT7-.js} +1 -1
- package/client/dist/angular-html-B_cenFSN.js +1 -0
- package/client/dist/{angular-html-CYi310U8.js → angular-html-Cth2LqBf.js} +1 -1
- package/client/dist/{angular-ts-CqnqKzvX.js → angular-ts-D6GgngEL.js} +1 -1
- package/client/dist/{apl-DkPJsNcI.js → apl-8Q3duBRO.js} +1 -1
- package/client/dist/{arc-DQdfxxUS.js → arc-1IuUEc3l.js} +1 -1
- package/client/dist/architecture-U656AL7Q-BbnkeEk-.js +1 -0
- package/client/dist/{architectureDiagram-VXUJARFQ-CMr0m5it.js → architectureDiagram-VXUJARFQ-mTEFN4g1.js} +1 -1
- package/client/dist/{astro-BCO6O3oM.js → astro-CEzd2gSX.js} +1 -1
- package/client/dist/{blade-BGI2i8dn.js → blade-BiESHVEE.js} +1 -1
- package/client/dist/{blockDiagram-VD42YOAC-DB4rjLow.js → blockDiagram-VD42YOAC-DuZyDGXz.js} +1 -1
- package/client/dist/{bsl-fQRX_jWV.js → bsl-CgIWHY2F.js} +1 -1
- package/client/dist/c-C71qyMdz.js +1 -0
- package/client/dist/{c4Diagram-YG6GDRKO-C-OvxJNF.js → c4Diagram-YG6GDRKO-GpSiJ-09.js} +1 -1
- package/client/dist/{cairo-3ac5zVq8.js → cairo-DeB79q5_.js} +1 -1
- package/client/dist/channel-DU5N8yz4.js +1 -0
- package/client/dist/{chunk-4BX2VUAB-Di4LZGaH.js → chunk-4BX2VUAB-CnDqYS75.js} +1 -1
- package/client/dist/{chunk-55IACEB6-C41LdCQI.js → chunk-55IACEB6-Cno6J5VV.js} +1 -1
- package/client/dist/{chunk-76Q3JFCE-Cx-JYVsg.js → chunk-76Q3JFCE-naB4GsSN.js} +1 -1
- package/client/dist/{chunk-ABZYJK2D-CjFwXoDd.js → chunk-ABZYJK2D-B-uQQBad.js} +2 -2
- package/client/dist/{chunk-ATLVNIR6-iDd5WiFs.js → chunk-ATLVNIR6-06VCvgCA.js} +1 -1
- package/client/dist/{chunk-B4BG7PRW-B1LszEWJ.js → chunk-B4BG7PRW-CaYT2kjb.js} +1 -1
- package/client/dist/{chunk-CVBHYZKI-CUI-n_Tq.js → chunk-CVBHYZKI-C8bYjiGm.js} +1 -1
- package/client/dist/{chunk-DI55MBZ5-LZJU-R6o.js → chunk-DI55MBZ5-4NKIyaAY.js} +1 -1
- package/client/dist/chunk-EXTU4WIE-hA6kjEor.js +1 -0
- package/client/dist/{chunk-FMBD7UC4-DfDwyPfJ.js → chunk-FMBD7UC4-z8oIKcMh.js} +1 -1
- package/client/dist/{chunk-FPAJGGOC-Br6MAcFg.js → chunk-FPAJGGOC-_ax7LrI6.js} +1 -1
- package/client/dist/{chunk-FWNWRKHM-BVtcM6yk.js → chunk-FWNWRKHM-DESdnxaO.js} +1 -1
- package/client/dist/{chunk-HN2XXSSU-BYdnnbel.js → chunk-HN2XXSSU-CwOdrF1j.js} +1 -1
- package/client/dist/{chunk-JA3XYJ7Z-B_pLt1VO.js → chunk-JA3XYJ7Z-B2ggvruF.js} +1 -1
- package/client/dist/{chunk-JZLCHNYA-4gstbahU.js → chunk-JZLCHNYA-CkNAdoyb.js} +1 -1
- package/client/dist/{chunk-LBM3YZW2-g1Vy7H47.js → chunk-LBM3YZW2-D1UaPZ0s.js} +1 -1
- package/client/dist/{chunk-LHMN2FUI-DwRziK7j.js → chunk-LHMN2FUI-DvMeDi1w.js} +1 -1
- package/client/dist/{chunk-MI3HLSF2-DYwJlrsV.js → chunk-MI3HLSF2-C6Pm8cQC.js} +1 -1
- package/client/dist/{chunk-N4CR4FBY-Cx9rvJkZ.js → chunk-N4CR4FBY-CESp_hlr.js} +1 -1
- package/client/dist/{chunk-O7ZBX7Z2-D79B2A-4.js → chunk-O7ZBX7Z2-CzEL6GEY.js} +1 -1
- package/client/dist/{chunk-QN33PNHL-DhA65vkt.js → chunk-QN33PNHL-O3aN_XUL.js} +1 -1
- package/client/dist/{chunk-QXUST7PY-Wnp3VURs.js → chunk-QXUST7PY-BHpud-vy.js} +1 -1
- package/client/dist/chunk-QZHKN3VN-Cor-573y.js +1 -0
- package/client/dist/{chunk-S3R3BYOJ-DoqDNp4C.js → chunk-S3R3BYOJ-CQpHdWQs.js} +1 -1
- package/client/dist/{chunk-S6J4BHB3-EUOFpaV8.js → chunk-S6J4BHB3-dkKq153Y.js} +1 -1
- package/client/dist/{chunk-T53DSG4Q-CO1WsO85.js → chunk-T53DSG4Q-m8YxcxT5.js} +1 -1
- package/client/dist/{chunk-TZMSLE5B-e9hcNU0P.js → chunk-TZMSLE5B-KitBzjA6.js} +1 -1
- package/client/dist/classDiagram-2ON5EDUG-CG9xuA-s.js +1 -0
- package/client/dist/classDiagram-v2-WZHVMYZB-BqQco41Z.js +1 -0
- package/client/dist/clone-DaCWoOD3.js +1 -0
- package/client/dist/{cobol-Bh5O3QYW.js → cobol-CtnoUhpi.js} +1 -1
- package/client/dist/{coffee-CibAxXBQ.js → coffee-D63VVNN6.js} +1 -1
- package/client/dist/{cose-bilkent-S5V4N54A-BN6AIcys.js → cose-bilkent-S5V4N54A-DAl-qmUx.js} +1 -1
- package/client/dist/{cpp-C1RL7g4a.js → cpp-BXPFxrHd.js} +1 -1
- package/client/dist/cpp-Cb8PUfPp.js +1 -0
- package/client/dist/{crystal-COtPWwkm.js → crystal-qpW1qy1j.js} +1 -1
- package/client/dist/css-D_BsqRYw.js +1 -0
- package/client/dist/{dagre-6UL2VRFP-RxjSyDlS.js → dagre-6UL2VRFP-BzQ9vB_e.js} +1 -1
- package/client/dist/{dagre-DWEIVqUm.js → dagre-DLEkL_Zs.js} +1 -1
- package/client/dist/{diagram-PSM6KHXK-SZBdSkvQ.js → diagram-PSM6KHXK-BxJGiGPe.js} +1 -1
- package/client/dist/{diagram-QEK2KX5R-CLGGdlpf.js → diagram-QEK2KX5R-DYp7ZFqv.js} +1 -1
- package/client/dist/{diagram-S2PKOQOG-BRCVMVaG.js → diagram-S2PKOQOG-DJkha_WW.js} +1 -1
- package/client/dist/{edge-gnkqOgnq.js → edge-CP_fR0O2.js} +1 -1
- package/client/dist/{elixir-DkJ5dmQi.js → elixir-DMAcWBTu.js} +1 -1
- package/client/dist/{elm-DbERawtE.js → elm-CbfCFGpu.js} +1 -1
- package/client/dist/{erDiagram-Q2GNP2WA-Crx5hK6P.js → erDiagram-Q2GNP2WA-6XtwsRni.js} +1 -1
- package/client/dist/{erb-Ba5ePOhy.js → erb-tgtMjjw7.js} +1 -1
- package/client/dist/{erlang-DvggRTyY.js → erlang-B0ruUFZX.js} +1 -1
- package/client/dist/{flowDiagram-NV44I4VS-Dgft2jlf.js → flowDiagram-NV44I4VS-CelHIHjn.js} +1 -1
- package/client/dist/{fortran-fixed-form-V47soKQs.js → fortran-fixed-form-axN74ijH.js} +1 -1
- package/client/dist/{fsharp-BGnN6XqY.js → fsharp-BbXO1JyA.js} +1 -1
- package/client/dist/{ganttDiagram-LVOFAZNH-CeMyq5ly.js → ganttDiagram-LVOFAZNH-Cvj1uEfB.js} +1 -1
- package/client/dist/{gdresource-CTqCmzm8.js → gdresource-Cloq6T1D.js} +1 -1
- package/client/dist/{git-commit-D--jujpE.js → git-commit-CPVxcpY7.js} +1 -1
- package/client/dist/{git-rebase-ew-n6N0S.js → git-rebase-D69XtsSv.js} +1 -1
- package/client/dist/gitGraph-F6HP7TQM-KAtjK5Ox.js +1 -0
- package/client/dist/{gitGraphDiagram-NY62KEGX-D_IQEgv3.js → gitGraphDiagram-NY62KEGX-Cr6_VXUM.js} +1 -1
- package/client/dist/{glimmer-js-CvHkyQW8.js → glimmer-js-CoeADt6M.js} +1 -1
- package/client/dist/{glimmer-ts-yUPvOhqX.js → glimmer-ts-BlmV-Y9-.js} +1 -1
- package/client/dist/glsl-BTo0Z16q.js +1 -0
- package/client/dist/{glsl-BFy28U-g.js → glsl-Biu0K-6p.js} +1 -1
- package/client/dist/{graphlib-DHCf1ZPq.js → graphlib-CScjOeSi.js} +1 -1
- package/client/dist/graphql-DN6CkYdl.js +1 -0
- package/client/dist/{graphql-CHCDiMKU.js → graphql-hAKdRMip.js} +1 -1
- package/client/dist/{hack-Dfku4leT.js → hack-D1duHfqL.js} +1 -1
- package/client/dist/{haml-Bt-cM6Kf.js → haml-CiZU0d5H.js} +1 -1
- package/client/dist/haml-DPWY5s1M.js +1 -0
- package/client/dist/{handlebars-D4Rqe7kb.js → handlebars-Dp_cDcAt.js} +1 -1
- package/client/dist/{html-BIgIDTTk.js → html-BT5um7nF.js} +1 -1
- package/client/dist/html-C31JlaJ-.js +1 -0
- package/client/dist/{html-derivative-Cr3u945w.js → html-derivative-Cx1PsJxD.js} +1 -1
- package/client/dist/html-derivative-wg2-hYIg.js +1 -0
- package/client/dist/{http-GGX7qjOU.js → http-BW75yjvO.js} +1 -1
- package/client/dist/{hurl-DK4p4h12.js → hurl-DrbkG80a.js} +1 -1
- package/client/dist/{hxml-ChVmPQtH.js → hxml-VlQN6FkD.js} +1 -1
- package/client/dist/info-NVLQJR56-DiZxlu_o.js +1 -0
- package/client/dist/infoDiagram-ER5ION4S-CtrGb0So.js +2 -0
- package/client/dist/inspector.css +212 -0
- package/client/dist/inspector.js +35 -5035
- package/client/dist/{isEmpty-CAzzI-9E.js → isEmpty-CokRQ2Nu.js} +1 -1
- package/client/dist/java-H4bqYiqZ.js +1 -0
- package/client/dist/javascript-DH63jrE3.js +1 -0
- package/client/dist/{jinja-BatEiZah.js → jinja-CHSC99qg.js} +1 -1
- package/client/dist/{jison-5s-QNhI1.js → jison-DqMkPOAC.js} +1 -1
- package/client/dist/{journeyDiagram-XKPGCS4Q-Dep3D8p0.js → journeyDiagram-XKPGCS4Q-CdZJjun-.js} +1 -1
- package/client/dist/json-DOslWoX1.js +1 -0
- package/client/dist/jsx-CjK28ufS.js +1 -0
- package/client/dist/{julia-hmN1VBxQ.js → julia-cA-yAml8.js} +1 -1
- package/client/dist/{kanban-definition-3W4ZIXB7-DaDrLIUQ.js → kanban-definition-3W4ZIXB7-B3nQllvM.js} +1 -1
- package/client/dist/katex-D7PU7xG4.js +1 -0
- package/client/dist/{latex-B2ZV4OQ3.js → latex-CbkKCm2d.js} +1 -1
- package/client/dist/{line-BUOKh-HE.js → line-D9fEXxLg.js} +1 -1
- package/client/dist/{linear-BMBwG6lD.js → linear-CFKbUwXk.js} +1 -1
- package/client/dist/{liquid-tVoFpvBO.js → liquid-BpMC_Fqt.js} +1 -1
- package/client/dist/{lua-C4zcr4Rq.js → lua-C77CXP4F.js} +1 -1
- package/client/dist/lua-CRueSYXF.js +1 -0
- package/client/dist/{marko-DsvPyZf5.js → marko-CrC0ANF-.js} +1 -1
- package/client/dist/{mdc-CzHGal8T.js → mdc-NdIm27xk.js} +1 -1
- package/client/dist/{mermaid-parser.core-ow7sqQkB.js → mermaid-parser.core-lVkskdol.js} +1 -1
- package/client/dist/{mermaid.core-DbNkaVXi.js → mermaid.core-DfenwpGd.js} +2 -2
- package/client/dist/{mindmap-definition-VGOIOE7T-DVRq1RYX.js → mindmap-definition-VGOIOE7T-E51zBHdA.js} +1 -1
- package/client/dist/{nginx-DellYz9Y.js → nginx-BQI27kLq.js} +1 -1
- package/client/dist/{nim-B-AWUKTE.js → nim-qigkNB2O.js} +1 -1
- package/client/dist/{ordinal-A1CyKHQ4.js → ordinal-NoUKjW5R.js} +1 -1
- package/client/dist/packet-BFZMPI3H-Co0kmFAY.js +1 -0
- package/client/dist/{perl-pXXQBt-A.js → perl-CWZ9Tx7Z.js} +1 -1
- package/client/dist/{php-DOGKACDF.js → php-C_izhi_N.js} +1 -1
- package/client/dist/pie-7BOR55EZ-27A0zi3z.js +1 -0
- package/client/dist/{pieDiagram-ADFJNKIX-5wOv-Sou.js → pieDiagram-ADFJNKIX-10ENr3pD.js} +1 -1
- package/client/dist/{pug-BEuydwIY.js → pug-DiALhKYN.js} +1 -1
- package/client/dist/{qml-6blpd43-.js → qml-C9j4g26c.js} +1 -1
- package/client/dist/{quadrantDiagram-AYHSOK5B-BHjR7ccN.js → quadrantDiagram-AYHSOK5B-lMjtU4jB.js} +1 -1
- package/client/dist/r-BIGEI86X.js +1 -0
- package/client/dist/radar-NHE76QYJ-BNuOm017.js +1 -0
- package/client/dist/{razor-DszTWfYs.js → razor-A0q1Asj9.js} +1 -1
- package/client/dist/regexp-oqAv1t88.js +1 -0
- package/client/dist/{requirementDiagram-UZGBJVZJ-DUqqAwgE.js → requirementDiagram-UZGBJVZJ-BANZB6Iz.js} +1 -1
- package/client/dist/{rst-DHsi4jEF.js → rst-Cev6-qlZ.js} +1 -1
- package/client/dist/{ruby-Br8kAlMV.js → ruby-CcAYYGRU.js} +1 -1
- package/client/dist/{sankeyDiagram-TZEHDZUN-CxJnP2LU.js → sankeyDiagram-TZEHDZUN-C6vl5I45.js} +1 -1
- package/client/dist/{sas-Fm1ez35-.js → sas-BGlfoPrs.js} +1 -1
- package/client/dist/{scss--EPB2qJk.js → scss-A6Xwb3sB.js} +1 -1
- package/client/dist/scss-CZuLwQ6L.js +1 -0
- package/client/dist/{sequenceDiagram-WL72ISMW-Bqy7huq2.js → sequenceDiagram-WL72ISMW-DnnKpwi7.js} +1 -1
- package/client/dist/{shaderlab-mRjR82Iw.js → shaderlab-CMErLCd1.js} +1 -1
- package/client/dist/shellscript-XfxS4mi1.js +1 -0
- package/client/dist/{shellsession-BwWJX0k2.js → shellsession-QiegSG75.js} +1 -1
- package/client/dist/sidebar.css +4736 -0
- package/client/dist/sidebar.js +1 -0
- package/client/dist/{soy-ZvAEekaL.js → soy-BoMAIRkx.js} +1 -1
- package/client/dist/{sparql-DUJ_UkED.js → sparql-DhHvB3Dp.js} +1 -1
- package/client/dist/sql-Dga86kBP.js +1 -0
- package/client/dist/{stata-B4dQ_ds2.js → stata-CIv2IgqT.js} +1 -1
- package/client/dist/{stateDiagram-FKZM4ZOC-BDuxTD97.js → stateDiagram-FKZM4ZOC-iYM8j2jN.js} +1 -1
- package/client/dist/stateDiagram-v2-4FDKWEC3-CzW1Ir10.js +1 -0
- package/client/dist/{svelte-DP3P9hTU.js → svelte-BPdTtTW_.js} +1 -1
- package/client/dist/{templ-DzU4X84Z.js → templ-Bu1xjVjb.js} +1 -1
- package/client/dist/{tex-DmK8sLqk.js → tex-BrGV_a00.js} +1 -1
- package/client/dist/{timeline-definition-IT6M3QCI-X2Zr6sAz.js → timeline-definition-IT6M3QCI-DVa8bOe8.js} +1 -1
- package/client/dist/treemap-KMMF4GRG-Cs32ogTY.js +1 -0
- package/client/dist/{ts-tags-DQicFPeT.js → ts-tags-C2KZ65Bb.js} +1 -1
- package/client/dist/tsx-Dy5oGylO.js +1 -0
- package/client/dist/{twig-DMpkralp.js → twig-CAdzRXFv.js} +1 -1
- package/client/dist/typescript-BCL2cVvE.js +1 -0
- package/client/dist/{vue-html-D8cmRA9A.js → vue-html-ClbUAPY3.js} +1 -1
- package/client/dist/{vue-CXnTHxsh.js → vue-m_9UuRcq.js} +1 -1
- package/client/dist/{vue-vine-DKxJMTV4.js → vue-vine-BhY0kO3x.js} +1 -1
- package/client/dist/{xml-DdBhobiL.js → xml-BCPOgRQ8.js} +1 -1
- package/client/dist/xml-LiQIKAk-.js +1 -0
- package/client/dist/{xsl-rnFMNj5T.js → xsl-CiacnBum.js} +1 -1
- package/client/dist/{xychartDiagram-PRI3JC2R-Bkdy-d61.js → xychartDiagram-PRI3JC2R-CSHRJA-w.js} +1 -1
- package/client/dist/yaml-x21mtn6r.js +1 -0
- package/dist/cli.cjs +135 -129
- package/dist/cli.js +135 -129
- package/dist/config-updater.cjs +84 -0
- package/dist/config-updater.js +84 -0
- package/dist/index.d.cts +4 -4
- package/dist/react/react.d.ts +203 -0
- package/dist/react/react.js +1177 -0
- package/package.json +9 -2
- package/client/dist/angular-html-d0m67Y5J.js +0 -1
- package/client/dist/architecture-U656AL7Q-MgtP82yP.js +0 -1
- package/client/dist/c-3wGWaCKl.js +0 -1
- package/client/dist/channel-Dq37Efc1.js +0 -1
- package/client/dist/chunk-EXTU4WIE-ChqGChCy.js +0 -1
- package/client/dist/chunk-QZHKN3VN-DdT5lUD2.js +0 -1
- package/client/dist/classDiagram-2ON5EDUG-C7nmW2OD.js +0 -1
- package/client/dist/classDiagram-v2-WZHVMYZB-D1OZs5dX.js +0 -1
- package/client/dist/clone-CmMu9STX.js +0 -1
- package/client/dist/cpp-BnxWAOSJ.js +0 -1
- package/client/dist/css-D_nzbeA8.js +0 -1
- package/client/dist/gitGraph-F6HP7TQM-DYc7wArC.js +0 -1
- package/client/dist/glsl-CGxWHcVc.js +0 -1
- package/client/dist/graphql-565U4wbG.js +0 -1
- package/client/dist/haml-BHYOha9I.js +0 -1
- package/client/dist/html-CYUobRUD.js +0 -1
- package/client/dist/html-derivative-DgGbkyuK.js +0 -1
- package/client/dist/info-NVLQJR56-Bvqp73xD.js +0 -1
- package/client/dist/infoDiagram-ER5ION4S-BDBCikE4.js +0 -2
- package/client/dist/java-DmkKjtyZ.js +0 -1
- package/client/dist/javascript-CkCLGt8x.js +0 -1
- package/client/dist/json-C3HKuiPJ.js +0 -1
- package/client/dist/jsx-Cb_Ywdgo.js +0 -1
- package/client/dist/katex-BQxtjXbf.js +0 -1
- package/client/dist/lua-BL1jjzZD.js +0 -1
- package/client/dist/packet-BFZMPI3H-BGenTAod.js +0 -1
- package/client/dist/pie-7BOR55EZ-Clb9mYfc.js +0 -1
- package/client/dist/r-FsqRuzNL.js +0 -1
- package/client/dist/radar-NHE76QYJ-DKi0Armo.js +0 -1
- package/client/dist/regexp-BTE6Swxv.js +0 -1
- package/client/dist/scss-Cmb4RaIv.js +0 -1
- package/client/dist/shellscript-DuJfYg8R.js +0 -1
- package/client/dist/sql-D5NpKK-X.js +0 -1
- package/client/dist/stateDiagram-v2-4FDKWEC3-BxmkJjbP.js +0 -1
- package/client/dist/treemap-KMMF4GRG-BJ7jSaqo.js +0 -1
- package/client/dist/tsx-QMnwGbeN.js +0 -1
- package/client/dist/typescript-JBzxF6Qj.js +0 -1
- package/client/dist/xml-BzQ8r2Jc.js +0 -1
- package/client/dist/yaml-DF6vsW46.js +0 -1
- /package/client/dist/{abap-BdPhiG-3.js → abap-BUoW4mq0.js} +0 -0
- /package/client/dist/{actionscript-3-4lsAJric.js → actionscript-3-CDsNmykd.js} +0 -0
- /package/client/dist/{ada-DcGdSDNe.js → ada-EgRVL2g9.js} +0 -0
- /package/client/dist/{andromeeda-D4fdrr4S.js → andromeeda-GPgN43QN.js} +0 -0
- /package/client/dist/{apache-BfNtzv3H.js → apache-C_ty8NzZ.js} +0 -0
- /package/client/dist/{apex-COUYbqxw.js → apex-BO_xUY2-.js} +0 -0
- /package/client/dist/{applescript-DZy9r0Tx.js → applescript-DQAS9zcd.js} +0 -0
- /package/client/dist/{ara-BuNu-Hkp.js → ara-DIjuS0gF.js} +0 -0
- /package/client/dist/{array-Dz4ZVbz2.js → array-BgcdGrkc.js} +0 -0
- /package/client/dist/{asciidoc-CRgFazCG.js → asciidoc-BxG7ZQrc.js} +0 -0
- /package/client/dist/{asm-DMOLEIzq.js → asm-PnON5mRP.js} +0 -0
- /package/client/dist/{aurora-x-CMrxRU0F.js → aurora-x-CqQ7QmKq.js} +0 -0
- /package/client/dist/{awk-CsRJBxn5.js → awk-BVO8fiUv.js} +0 -0
- /package/client/dist/{ayu-dark-y6Bf9zzc.js → ayu-dark-n_FrPZjA.js} +0 -0
- /package/client/dist/{ballerina-DaMt4nBf.js → ballerina-BJsKgOB8.js} +0 -0
- /package/client/dist/{bat-DFR5wrFi.js → bat-DRIwbK7_.js} +0 -0
- /package/client/dist/{beancount-BrwuSNB3.js → beancount-BTo4XwaG.js} +0 -0
- /package/client/dist/{berry-DRXw-ZNq.js → berry-B5o92twl.js} +0 -0
- /package/client/dist/{bibtex-CQd7fyYH.js → bibtex-DuLtVC8l.js} +0 -0
- /package/client/dist/{bicep-B14cKy0e.js → bicep-BfIj04_h.js} +0 -0
- /package/client/dist/{c-Cu5Jn1Jp.js → c-BL138DB5.js} +0 -0
- /package/client/dist/{cadence-B7jHVQ8u.js → cadence-CnLw1Pon.js} +0 -0
- /package/client/dist/{catppuccin-frappe-BMyWp_6O.js → catppuccin-frappe-D7hlMtXo.js} +0 -0
- /package/client/dist/{catppuccin-latte-nZzsPBPu.js → catppuccin-latte-D2-cwLAh.js} +0 -0
- /package/client/dist/{catppuccin-macchiato-BzBCE9F0.js → catppuccin-macchiato-Dt-n4vTY.js} +0 -0
- /package/client/dist/{catppuccin-mocha-DbBzL313.js → catppuccin-mocha-pJ9gr9o9.js} +0 -0
- /package/client/dist/{chunk-6MN3ZHY7-Bw7GUOel.js → chunk-6MN3ZHY7-B86W-RmZ.js} +0 -0
- /package/client/dist/{clarity-BaaRo_dO.js → clarity-B1loWXVz.js} +0 -0
- /package/client/dist/{clojure-Cryf_rtB.js → clojure-BuPCnGPH.js} +0 -0
- /package/client/dist/{cmake-Drlfezq0.js → cmake-fD9kB-N_.js} +0 -0
- /package/client/dist/{codeowners-Bhm5vPJA.js → codeowners-C_VH6Ljx.js} +0 -0
- /package/client/dist/{codeql-eIV9UcRt.js → codeql-DhWjL8Kq.js} +0 -0
- /package/client/dist/{common-lisp-Dends_YH.js → common-lisp-CruE29WJ.js} +0 -0
- /package/client/dist/{coq-KkkUzLyU.js → coq-Bx_cXDWL.js} +0 -0
- /package/client/dist/{csharp-CPdyP2VR.js → csharp-BGiDklkX.js} +0 -0
- /package/client/dist/{css-B5e7W8LB.js → css-D3eCZIjt.js} +0 -0
- /package/client/dist/{csv-DYwX6NEn.js → csv-TlCvaDUb.js} +0 -0
- /package/client/dist/{cue-DW0ynfCq.js → cue-CMZTYgU5.js} +0 -0
- /package/client/dist/{cypher-Bmq5NZ59.js → cypher-BMGc7dGe.js} +0 -0
- /package/client/dist/{cytoscape.esm-5hlfDxlN.js → cytoscape.esm-COkX_sb7.js} +0 -0
- /package/client/dist/{d-BTh8oGLC.js → d-CZehDVN6.js} +0 -0
- /package/client/dist/{dark-plus-DzCrhcx4.js → dark-plus-CGcVEdxm.js} +0 -0
- /package/client/dist/{dart-B45K8wV9.js → dart-BfQboB_J.js} +0 -0
- /package/client/dist/{dax-BdHYj1Ue.js → dax-Bba5a30x.js} +0 -0
- /package/client/dist/{defaultLocale-wBfqlpfB.js → defaultLocale-S7fGF81p.js} +0 -0
- /package/client/dist/{desktop-BMuYANPV.js → desktop-DyR7Z7D7.js} +0 -0
- /package/client/dist/{diff-BxwcTI8k.js → diff-CWN81QQV.js} +0 -0
- /package/client/dist/{dist-DDGIHxz4.js → dist-Bz_xenUc.js} +0 -0
- /package/client/dist/{docker-CSoMkU3O.js → docker-Dv8_2ppU.js} +0 -0
- /package/client/dist/{dotenv-i_QlcFUp.js → dotenv-DCISGmUs.js} +0 -0
- /package/client/dist/{dracula-BTpR5_Te.js → dracula-D76yIU1-.js} +0 -0
- /package/client/dist/{dracula-soft-D_6f0jsH.js → dracula-soft-txtzq0a7.js} +0 -0
- /package/client/dist/{dream-maker-DtVNo9em.js → dream-maker-DA4WbaAF.js} +0 -0
- /package/client/dist/{emacs-lisp-BnCZgkUr.js → emacs-lisp-tzsjo5DB.js} +0 -0
- /package/client/dist/{everforest-dark-BB8iY9dl.js → everforest-dark-CJDH8s0z.js} +0 -0
- /package/client/dist/{everforest-light-BG7kqcrd.js → everforest-light-C6xhm1QL.js} +0 -0
- /package/client/dist/{fennel-B3HXE7FJ.js → fennel-DA_rS4S7.js} +0 -0
- /package/client/dist/{fish-ogOvUHoU.js → fish-BrLZQvoa.js} +0 -0
- /package/client/dist/{fluent-B4l8qlbd.js → fluent-DntAoeEC.js} +0 -0
- /package/client/dist/{fortran-free-form-BA0vVvYt.js → fortran-free-form-c4So7WT8.js} +0 -0
- /package/client/dist/{gdscript-BA3jq6mQ.js → gdscript-Djzzged5.js} +0 -0
- /package/client/dist/{gdshader-dB9N4Ao3.js → gdshader-CJeNXdA2.js} +0 -0
- /package/client/dist/{genie-CZngrDjU.js → genie-C9fU7PiA.js} +0 -0
- /package/client/dist/{gherkin-BzRYJufi.js → gherkin-DDlBNjNG.js} +0 -0
- /package/client/dist/{github-dark-CRKj4hAt.js → github-dark-Ckt6nlQx.js} +0 -0
- /package/client/dist/{github-dark-default-DIQY-h5g.js → github-dark-default-DfCBMOYz.js} +0 -0
- /package/client/dist/{github-dark-dimmed-BEpLsuRj.js → github-dark-dimmed-BKiErX1j.js} +0 -0
- /package/client/dist/{github-dark-high-contrast-CVTJFdKj.js → github-dark-high-contrast-DVxoJyHI.js} +0 -0
- /package/client/dist/{github-light-CpZwDIg7.js → github-light-BZC_cQ4W.js} +0 -0
- /package/client/dist/{github-light-default-DHtzD_-y.js → github-light-default-BY0m_WyP.js} +0 -0
- /package/client/dist/{github-light-high-contrast-CaLb5Zh9.js → github-light-high-contrast-DcWq4z9I.js} +0 -0
- /package/client/dist/{gleam-C6DPFaBN.js → gleam-cWmrDEMg.js} +0 -0
- /package/client/dist/{gnuplot-CdwpsLMX.js → gnuplot-BHRhuGLx.js} +0 -0
- /package/client/dist/{go-BEgA9rS0.js → go-BaSASZlM.js} +0 -0
- /package/client/dist/{groovy-DKhzsnBi.js → groovy-BjidEaDx.js} +0 -0
- /package/client/dist/{gruvbox-dark-hard-B34oe0Ej.js → gruvbox-dark-hard-gIGwkeSY.js} +0 -0
- /package/client/dist/{gruvbox-dark-medium-D5sKuUU6.js → gruvbox-dark-medium-V93T0amg.js} +0 -0
- /package/client/dist/{gruvbox-dark-soft-FrQ3F5LW.js → gruvbox-dark-soft-DWvGTPhe.js} +0 -0
- /package/client/dist/{gruvbox-light-hard-DtpNIMu0.js → gruvbox-light-hard-CDR7jAaS.js} +0 -0
- /package/client/dist/{gruvbox-light-medium-DXqc1yk8.js → gruvbox-light-medium-BH05YZpj.js} +0 -0
- /package/client/dist/{gruvbox-light-soft-CBWPsdg8.js → gruvbox-light-soft-_FpHi3hq.js} +0 -0
- /package/client/dist/{haskell-COHrgR9O.js → haskell-D6diK_o1.js} +0 -0
- /package/client/dist/{haxe-Bl1c-ZNb.js → haxe-B5pmXmLa.js} +0 -0
- /package/client/dist/{hcl-awf4jn86.js → hcl-BPPiC6Ub.js} +0 -0
- /package/client/dist/{hjson-DfFUNltF.js → hjson-BYqpFKnP.js} +0 -0
- /package/client/dist/{hlsl-CtcTTmYG.js → hlsl-BjNae5So.js} +0 -0
- /package/client/dist/{houston-CNv85-6f.js → houston-CTP0HFka.js} +0 -0
- /package/client/dist/{hy-CshaiMZE.js → hy-DkwVZxUW.js} +0 -0
- /package/client/dist/{imba-C2bpAlb9.js → imba-pxRlZERz.js} +0 -0
- /package/client/dist/{ini-BMqmGKBw.js → ini-B_rjZOXj.js} +0 -0
- /package/client/dist/{init-CyS92-Wc.js → init-BnPQj6aR.js} +0 -0
- /package/client/dist/{isArrayLikeObject-BtcNYc4X.js → isArrayLikeObject-CgiDz5DP.js} +0 -0
- /package/client/dist/{java-CvxUKxx6.js → java-DeUXjYQU.js} +0 -0
- /package/client/dist/{javascript-BIsIt0kc.js → javascript-DpvUI8vq.js} +0 -0
- /package/client/dist/{json-h7zTKPSW.js → json-cDpc1bY6.js} +0 -0
- /package/client/dist/{json5-CDsqIwN6.js → json5-D1op8XDc.js} +0 -0
- /package/client/dist/{jsonc-C_H6KdCM.js → jsonc-TsBL8Zw4.js} +0 -0
- /package/client/dist/{jsonl-CYEL_JbB.js → jsonl-VehePL7r.js} +0 -0
- /package/client/dist/{jsonnet-DvezpFew.js → jsonnet-gOuuHn0J.js} +0 -0
- /package/client/dist/{jssm-DGCQVTMl.js → jssm-Ccle0HAR.js} +0 -0
- /package/client/dist/{jsx-B3fSgSFr.js → jsx-aZzZib73.js} +0 -0
- /package/client/dist/{kanagawa-dragon-C9NBfuIt.js → kanagawa-dragon-CSKAbSka.js} +0 -0
- /package/client/dist/{kanagawa-lotus-B_6UdT6p.js → kanagawa-lotus-DN7DspOm.js} +0 -0
- /package/client/dist/{kanagawa-wave-C2OIICwW.js → kanagawa-wave-Dberk7yB.js} +0 -0
- /package/client/dist/{katex-BnRKOLw6.js → katex-C3zESuch.js} +0 -0
- /package/client/dist/{katex.min-DRkgVcya.css → katex.min-DkVKOBvG.css} +0 -0
- /package/client/dist/{katex.min-DidvNX82.js → katex.min-RTO9ag3H.js} +0 -0
- /package/client/dist/{kdl-BkuYp80m.js → kdl-ghIqIEqx.js} +0 -0
- /package/client/dist/{kotlin-D1eKjLwq.js → kotlin-CGg4-W_M.js} +0 -0
- /package/client/dist/{kusto-CvOu21Cj.js → kusto-DCV3owQ6.js} +0 -0
- /package/client/dist/{laserwave-DQxwrmJt.js → laserwave-DHr_OdQx.js} +0 -0
- /package/client/dist/{lean-IA1_MsWd.js → lean-981kZEaB.js} +0 -0
- /package/client/dist/{less-B7zZlgJh.js → less-BsrVljrL.js} +0 -0
- /package/client/dist/{light-plus-Cy89fA56.js → light-plus-Bc9BLT5A.js} +0 -0
- /package/client/dist/{llvm-CAuHI5e8.js → llvm-DyE_X-oq.js} +0 -0
- /package/client/dist/{log-tguHOLzV.js → log-CJNm4UbC.js} +0 -0
- /package/client/dist/{logo-4FQxpkt4.js → logo-DKbdyqt-.js} +0 -0
- /package/client/dist/{luau-sRWHo1Up.js → luau-MmBwuyT2.js} +0 -0
- /package/client/dist/{make-DkNT42IA.js → make-D1C6Tiwy.js} +0 -0
- /package/client/dist/{markdown-CzS3ZP7I.js → markdown-DBA3Mmim.js} +0 -0
- /package/client/dist/{marked.esm-CTdAAA_v.js → marked.esm-DUB0uiru.js} +0 -0
- /package/client/dist/{material-theme-BfWYt0TZ.js → material-theme-Bv8yLSP0.js} +0 -0
- /package/client/dist/{material-theme-darker-DtkmIcAA.js → material-theme-darker-1AqpNdZt.js} +0 -0
- /package/client/dist/{material-theme-lighter-BH0j90Oh.js → material-theme-lighter-DPdC5l8C.js} +0 -0
- /package/client/dist/{material-theme-ocean-DmKabesL.js → material-theme-ocean-37Kook8Q.js} +0 -0
- /package/client/dist/{material-theme-palenight-DZ7uHLju.js → material-theme-palenight-C27iD4SF.js} +0 -0
- /package/client/dist/{math-CBcHHeVd.js → math-XICenNyA.js} +0 -0
- /package/client/dist/{matlab-CpkpzR_d.js → matlab-Ck3HEU2k.js} +0 -0
- /package/client/dist/{mdx-CKC34rlC.js → mdx-C1PRejio.js} +0 -0
- /package/client/dist/{mermaid-Ct_09yAh.js → mermaid-BckVcVXX.js} +0 -0
- /package/client/dist/{min-dark-iCM7syk7.js → min-dark-anAUOToK.js} +0 -0
- /package/client/dist/{min-light-C8rThYym.js → min-light-CvG_iQWP.js} +0 -0
- /package/client/dist/{mipsasm-Cty6G9T2.js → mipsasm-BM_FQj2A.js} +0 -0
- /package/client/dist/{mojo-Xauqc8AX.js → mojo-BR-LqNeT.js} +0 -0
- /package/client/dist/{monokai-Bjch1Bhl.js → monokai-DYv3rk-A.js} +0 -0
- /package/client/dist/{move-CXMREC6M.js → move-m3_5UNfo.js} +0 -0
- /package/client/dist/{narrat-BaBjazI9.js → narrat-DYFj8Q6-.js} +0 -0
- /package/client/dist/{nextflow-_c6uqgsv.js → nextflow-ZIzFDe2m.js} +0 -0
- /package/client/dist/{night-owl-BJrjdpga.js → night-owl-DkBbLKGE.js} +0 -0
- /package/client/dist/{nix-DrpzwZYz.js → nix-17F0HB0G.js} +0 -0
- /package/client/dist/{nord-D0Fqg42Q.js → nord-Be97_T58.js} +0 -0
- /package/client/dist/{nushell-PwLzyrh4.js → nushell-njEJEBNK.js} +0 -0
- /package/client/dist/{objective-c-B316WMPD.js → objective-c-DcpJ0eV7.js} +0 -0
- /package/client/dist/{objective-cpp-sh3AkVQi.js → objective-cpp-CXgpfRIb.js} +0 -0
- /package/client/dist/{ocaml-CT2O122u.js → ocaml-RYuU9VTm.js} +0 -0
- /package/client/dist/{one-dark-pro-CWCqr3AC.js → one-dark-pro-Ci-bUEIf.js} +0 -0
- /package/client/dist/{one-light-DTgkXOoh.js → one-light-BtoBaJgF.js} +0 -0
- /package/client/dist/{pascal-BfdV161T.js → pascal-HLRSlJ2v.js} +0 -0
- /package/client/dist/{path-Dqo4FhGl.js → path-CoY9QgOk.js} +0 -0
- /package/client/dist/{pkl-CIdtaeNd.js → pkl-D0LsOQD5.js} +0 -0
- /package/client/dist/{plastic-CLpeNc9-.js → plastic-BHBVdpN4.js} +0 -0
- /package/client/dist/{plsql-BuKM571s.js → plsql-Ckotkn8G.js} +0 -0
- /package/client/dist/{po-Dxsk_XzY.js → po-Qix2N2fA.js} +0 -0
- /package/client/dist/{poimandres-CoZ0vKOg.js → poimandres-DCZ4zCH5.js} +0 -0
- /package/client/dist/{polar-DTkh7YGI.js → polar-DHAM8Rqb.js} +0 -0
- /package/client/dist/{postcss-BoVDzDIq.js → postcss-8wrDfWlb.js} +0 -0
- /package/client/dist/{powerquery-C7UUl55u.js → powerquery-sXjCytsm.js} +0 -0
- /package/client/dist/{powershell-7fisTB1Z.js → powershell-Br9y9LlC.js} +0 -0
- /package/client/dist/{prisma-CKBKGf6P.js → prisma-COBUUaqE.js} +0 -0
- /package/client/dist/{prolog-DEUEVLMg.js → prolog-BbJTvtA-.js} +0 -0
- /package/client/dist/{proto-BI7m_T-K.js → proto-Dn7PeVbf.js} +0 -0
- /package/client/dist/{puppet-1QKvlfLG.js → puppet-CNdK406T.js} +0 -0
- /package/client/dist/{purescript-BeTyiTEN.js → purescript-Cgw06S43.js} +0 -0
- /package/client/dist/{python-BY6XMItz.js → python-DioJsT9z.js} +0 -0
- /package/client/dist/{qmldir-BJRdxGUb.js → qmldir-tOWyMniz.js} +0 -0
- /package/client/dist/{qss-CgpUCiqI.js → qss-CQ_tB_vx.js} +0 -0
- /package/client/dist/{r-DO0FNojz.js → r-omh8Ou_K.js} +0 -0
- /package/client/dist/{racket-DOfMsQ-m.js → racket-xM_JlWdJ.js} +0 -0
- /package/client/dist/{raku-BpVGnEOk.js → raku-CsjbV0q-.js} +0 -0
- /package/client/dist/{red-Dtjys_cC.js → red-B8qD19HM.js} +0 -0
- /package/client/dist/{reg-BFwQ42iU.js → reg-CDO-JwKW.js} +0 -0
- /package/client/dist/{regexp-71-eZjwK.js → regexp-ZL8WsoEe.js} +0 -0
- /package/client/dist/{rel-DgV0LP0F.js → rel-Lnk3efq_.js} +0 -0
- /package/client/dist/{riscv-CMDCoJxM.js → riscv-B6rT4cSG.js} +0 -0
- /package/client/dist/{rose-pine-BXrntRdT.js → rose-pine-Dh-EMol0.js} +0 -0
- /package/client/dist/{rose-pine-dawn-tFiW2rRe.js → rose-pine-dawn-BqC-N8fL.js} +0 -0
- /package/client/dist/{rose-pine-moon-DrIxqQYd.js → rose-pine-moon-vcuVc4Xx.js} +0 -0
- /package/client/dist/{rosmsg-Cewq0GIU.js → rosmsg-CkrEKNqZ.js} +0 -0
- /package/client/dist/{rust-DUqlQOJa.js → rust-BJsQV1yN.js} +0 -0
- /package/client/dist/{sass-B6etFGcc.js → sass-DUMhS7Ul.js} +0 -0
- /package/client/dist/{scala-DO7Y6ZnG.js → scala-QIWWuOfJ.js} +0 -0
- /package/client/dist/{scheme-DRfbr32a.js → scheme-DUaTpimf.js} +0 -0
- /package/client/dist/{sdbl-Cwj938jR.js → sdbl-ByziAReF.js} +0 -0
- /package/client/dist/{shellscript-6ddxflCk.js → shellscript-C_4ahoKK.js} +0 -0
- /package/client/dist/{slack-dark-MJ2tXQFU.js → slack-dark-BStzxS3X.js} +0 -0
- /package/client/dist/{slack-ochin-JiV8dnc5.js → slack-ochin-2x4WQR0g.js} +0 -0
- /package/client/dist/{smalltalk-n98K00NG.js → smalltalk-BgOCST23.js} +0 -0
- /package/client/dist/{snazzy-light-Diadm8ds.js → snazzy-light-D0wXjU0P.js} +0 -0
- /package/client/dist/{solarized-dark-E9lKu8O9.js → solarized-dark-YpFNWaFw.js} +0 -0
- /package/client/dist/{solarized-light-DUxZ3u6U.js → solarized-light-7a4AqvZ7.js} +0 -0
- /package/client/dist/{solidity-TIGR-FLA.js → solidity-oQ4hiwc0.js} +0 -0
- /package/client/dist/{splunk-BQx3McES.js → splunk-C8Rf4xma.js} +0 -0
- /package/client/dist/{sql-Dmd5GQHa.js → sql-5h2ZDb6r.js} +0 -0
- /package/client/dist/{src-DyiU8SPu.js → src-CoWzf9ks.js} +0 -0
- /package/client/dist/{ssh-config-fbfk9ZS-.js → ssh-config-BK2cOZ3H.js} +0 -0
- /package/client/dist/{stylus-BojZhyRk.js → stylus-y5-4LTjW.js} +0 -0
- /package/client/dist/{swift-BQSJcvSP.js → swift-BgxBD2YR.js} +0 -0
- /package/client/dist/{synthwave-84-JxbjaS25.js → synthwave-84-BkPcWg5x.js} +0 -0
- /package/client/dist/{system-verilog-B92pMEOF.js → system-verilog--HBRY74c.js} +0 -0
- /package/client/dist/{systemd-Ce42yWog.js → systemd-CEGf-MNr.js} +0 -0
- /package/client/dist/{talonscript-DJHwn0Oo.js → talonscript-DxfF5wgQ.js} +0 -0
- /package/client/dist/{tasl-CjWGKv7Q.js → tasl-Bs3WmVDT.js} +0 -0
- /package/client/dist/{tcl-nr6oYQi-.js → tcl-sj44Uys6.js} +0 -0
- /package/client/dist/{terraform-BmtGXZe8.js → terraform-Dk3Frx3Z.js} +0 -0
- /package/client/dist/{tokyo-night-gi5ylZcS.js → tokyo-night-jks_2THM.js} +0 -0
- /package/client/dist/{toml-BJ91txE7.js → toml-58T5lJMb.js} +0 -0
- /package/client/dist/{tsv-DptZ_IAJ.js → tsv-Be6q89a5.js} +0 -0
- /package/client/dist/{tsx-zaCZdc_j.js → tsx-S_sG4GSd.js} +0 -0
- /package/client/dist/{turtle-KObLSigr.js → turtle-D3vlU2OK.js} +0 -0
- /package/client/dist/{typescript-BK0CyBaL.js → typescript-DCWwSN3O.js} +0 -0
- /package/client/dist/{typespec-Dixzl_0-.js → typespec-DOAqMqZd.js} +0 -0
- /package/client/dist/{typst-Ca21Y7Pn.js → typst-eQZesfAU.js} +0 -0
- /package/client/dist/{v-Bw8_1WxQ.js → v-CjxftokX.js} +0 -0
- /package/client/dist/{vala-Da3xMxIP.js → vala-BY4gOu9x.js} +0 -0
- /package/client/dist/{vb-DT5W8f2u.js → vb-jHsx6ydV.js} +0 -0
- /package/client/dist/{verilog-B1qcJjpT.js → verilog-uRed-ROJ.js} +0 -0
- /package/client/dist/{vesper-v8GRJVTp.js → vesper-IPbSDcY9.js} +0 -0
- /package/client/dist/{vhdl-BbOu44s9.js → vhdl-BpuKDOPO.js} +0 -0
- /package/client/dist/{viml-rl1TVVjI.js → viml-CVGu2R7N.js} +0 -0
- /package/client/dist/{vitesse-black-D6O93llO.js → vitesse-black-CvxMZcbe.js} +0 -0
- /package/client/dist/{vitesse-dark-BGTXnHSp.js → vitesse-dark-BO9bSnXr.js} +0 -0
- /package/client/dist/{vitesse-light-B8rxnpw3.js → vitesse-light-UtuwVwQJ.js} +0 -0
- /package/client/dist/{vyper-CCGDUHkP.js → vyper-DBdOKuCY.js} +0 -0
- /package/client/dist/{wasm-D9kcNmzo.js → wasm-Ded3y1Or.js} +0 -0
- /package/client/dist/{wasm-60TGlqXX.js → wasm-Dxuep-_m.js} +0 -0
- /package/client/dist/{wenyan-BBpTXpp6.js → wenyan-DsdZPJPl.js} +0 -0
- /package/client/dist/{wgsl-C3K1t-VI.js → wgsl-DkPKK0zn.js} +0 -0
- /package/client/dist/{wikitext-IKeinUQo.js → wikitext-C2JOdtm0.js} +0 -0
- /package/client/dist/{wit-DjseqtIO.js → wit-BFX5-EUh.js} +0 -0
- /package/client/dist/{wolfram-2yhZCbpX.js → wolfram-DkXQ7ZMv.js} +0 -0
- /package/client/dist/{yaml-CIUMmuno.js → yaml-ZSEnqUIp.js} +0 -0
- /package/client/dist/{zenscript--Fzj1TA1.js → zenscript-ITj6Wa64.js} +0 -0
- /package/client/dist/{zig-DSc-j2rQ.js → zig-1Mlf-trN.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,p as t,r as n,u as r}from"./chunk-S3R3BYOJ-DoqDNp4C.js";import{g as i,h as a,p as o}from"./src-DyiU8SPu.js";import{A as s,I as c,L as l,N as u,O as d,b as f,d as p,h as m,s as h,y as g}from"./chunk-ABZYJK2D-CjFwXoDd.js";import{n as _,r as v}from"./chunk-JA3XYJ7Z-B_pLt1VO.js";import{t as y}from"./chunk-CVBHYZKI-CUI-n_Tq.js";import{a as b,i as x,r as S,t as C}from"./chunk-ATLVNIR6-iDd5WiFs.js";function w(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function T(e,t){return e[0]===t[0]&&e[1]===t[1]}function E(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)w(e,s,i);let c=function(e,t,n){let r=[];for(let t of e){let e=[...t];T(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);a.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(a.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return i;let o=[],s=a[0].ymin,c=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;t<a.length&&!(a[t].ymin>s);t++)e=t;a.splice(0,e+1).forEach((e=>{o.push({s,edge:e})}))}if(o=o.filter((e=>!(e.edge.ymax<=s))),o.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(n!==1||c%t==0)&&o.length>1)for(let e=0;e<o.length;e+=2){let t=e+1;if(t>=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),c++}return i}(o,a,r);if(i){for(let e of o)w(e,s,-i);(function(e,t,n){let r=[];e.forEach((e=>r.push(...e))),w(r,t,n)})(c,s,-i)}return c}function D(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),E(e,r,n,i||1)}var O=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=D(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function k(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var A=class extends O{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=D(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(let[e,t]of r)k([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},j=class extends O{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},M=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=D(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=k(o),s=e/r,c=Math.ceil(s)-1,l=e-c*r,u=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e<c;e++){let o=d+l+e*r,s=u-a+2*Math.random()*a,c=o-a+2*Math.random()*a,f=this.helper.ellipse(s,c,i,i,t);n.push(...f.ops)}}return{type:`fillSketch`,ops:n}}},N=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=D(e,t);return{type:`fillSketch`,ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{let a=k(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,c=e[0],l=e[1];c[0]>l[0]&&(c=e[1],l=e[0]);let u=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let e=0;e<o;e++){let a=e*(n+r),o=a+n,l=[c[0]+a*Math.cos(u)+s*Math.cos(u),c[1]+a*Math.sin(u)+s*Math.sin(u)],d=[c[0]+o*Math.cos(u)+s*Math.cos(u),c[1]+o*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(l[0],l[1],d[0],d[1],t))}})),i}},P=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,i=D(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:`fillSketch`,ops:this.zigzagLines(i,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach((e=>{let i=k(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e<a;e++){let i=2*e*t,a=2*(e+1)*t,s=Math.sqrt(2*t**2),l=[o[0]+i*Math.cos(c),o[1]+i*Math.sin(c)],u=[o[0]+a*Math.cos(c),o[1]+a*Math.sin(c)],d=[l[0]+s*Math.cos(c+Math.PI/4),l[1]+s*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(l[0],l[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],u[0],u[1],n))}})),r}};const F={};var I=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const ee={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function te(e,t){return e.type===t}function ne(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!te(a,2);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return ne(`M0,0`+e);i++,o=ee[a.text],r=a.text}else te(a,1)?o=ee[r]:(i++,o=ee[a.text],r=a.text);if(!(i+o<n.length))throw Error(`Path data ended short`);for(let e=i;e<i+o;e++){let t=n[e];if(!te(t,1))throw Error(`Param not a number: `+r+`,`+t.text);s[s.length]=+t.text}if(typeof ee[r]!=`number`)throw Error(`Bad segment: `+r);{let e={key:r,data:s};t.push(e),i+=o,a=n[i],r===`M`&&(r=`L`),r===`m`&&(r=`l`)}}return t}function re(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:o,data:s}of e)switch(o){case`M`:a.push({key:`M`,data:[...s]}),[t,n]=s,[r,i]=s;break;case`m`:t+=s[0],n+=s[1],a.push({key:`M`,data:[t,n]}),r=t,i=n;break;case`L`:a.push({key:`L`,data:[...s]}),[t,n]=s;break;case`l`:t+=s[0],n+=s[1],a.push({key:`L`,data:[t,n]});break;case`C`:a.push({key:`C`,data:[...s]}),t=s[4],n=s[5];break;case`c`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function ie(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(L(r,i,c,l,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}function ae(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function L(e,t,n,r,i,a,o,s,c,l){let u=(d=o,Math.PI*d/180);var d;let f=[],p=0,m=0,h=0,g=0;if(l)[p,m,h,g]=l;else{[e,t]=ae(e,t,-u),[n,r]=ae(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i*=d,a*=d);let f=i*i,_=a*a,v=f*_-f*l*l-_*o*o,y=f*l*l+_*o*o,b=(s===c?-1:1)*Math.sqrt(Math.abs(v/y));h=b*i*l/a+(e+n)/2,g=b*-a*o/i+(t+r)/2,p=Math.asin(parseFloat(((t-g)/a).toFixed(9))),m=Math.asin(parseFloat(((r-g)/a).toFixed(9))),e<h&&(p=Math.PI-p),n<h&&(m=Math.PI-m),p<0&&(p=2*Math.PI+p),m<0&&(m=2*Math.PI+m),c&&p>m&&(p-=2*Math.PI),!c&&m>p&&(m-=2*Math.PI)}let _=m-p;if(Math.abs(_)>120*Math.PI/180){let e=m,t=n,s=r;m=c&&m>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=L(n=h+i*Math.cos(m),r=g+a*Math.sin(m),t,s,i,a,o,0,c,[m,e,h,g])}_=m-p;let v=Math.cos(p),y=Math.sin(p),b=Math.cos(m),x=Math.sin(m),S=Math.tan(_/4),C=4/3*i*S,w=4/3*a*S,T=[e,t],E=[e+C*y,t-w*v],D=[n+C*x,r-w*b],O=[n,r];if(E[0]=2*T[0]-E[0],E[1]=2*T[1]-E[1],l)return[E,D,O].concat(f);{f=[E,D,O].concat(f);let e=[];for(let t=0;t<f.length;t+=3){let n=ae(f[t][0],f[t][1],u),r=ae(f[t+1][0],f[t+1][1],u),i=ae(f[t+2][0],f[t+2][1],u);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}const oe={randOffset:function(e,t){return R(e,t)},randOffsetWithRange:function(e,t,n){return ye(e,t,n)},ellipse:function(e,t,n,r,i){return fe(e,t,i,de(n,r,i)).opset},doubleLineOps:function(e,t,n,r,i){return z(e,t,n,r,i,!0)}};function se(e,t,n,r,i){return{type:`path`,ops:z(e,t,n,r,i)}}function ce(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...z(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...z(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:`path`,ops:i}}return r===2?se(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:`path`,ops:[]}}function le(e,t,n,r,i){return function(e,t){return ce(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}function ue(e,t){if(e.length){let n=typeof e[0][0]==`number`?[e]:e,r=xe(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:xe(n[0],1.5*(1+.22*t.roughness),_e(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=xe(a,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:xe(a,1.5*(1+.22*t.roughness),_e(t));for(let t of e)t.op!==`move`&&r.push(t);for(let e of n)e.op!==`move`&&i.push(e)}}return{type:`path`,ops:r.concat(i)}}return{type:`path`,ops:[]}}function de(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt(((e/2)**2+(t/2)**2)/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=2*Math.PI/i,o=Math.abs(e/2),s=Math.abs(t/2),c=1-n.curveFitting;return o+=R(o*c,n),s+=R(s*c,n),{increment:a,rx:o,ry:s}}function fe(e,t,n,r){let[i,a]=Ce(r.increment,e,t,r.rx,r.ry,1,r.increment*ye(.1,ye(.4,1,n),n),n),o=Se(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){let[i]=Ce(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=Se(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:`path`,ops:o}}}function pe(e,t,n,r,i,a,o,s,c){let l=e,u=t,d=Math.abs(n/2),f=Math.abs(r/2);d+=R(.01*d,c),f+=R(.01*f,c);let p=i,m=a;for(;p<0;)p+=2*Math.PI,m+=2*Math.PI;m-p>2*Math.PI&&(p=0,m=2*Math.PI);let h=2*Math.PI/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=we(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=we(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...z(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...z(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function me(e,t){let n=ie(re(ne(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...z(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...Te(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...z(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function he(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+R(e,t),r[0][1]+R(e,t)]});for(let a=1;a<i;a++)n.push({op:`lineTo`,data:[r[a][0]+R(e,t),r[a][1]+R(e,t)]})}}return{type:`fillPath`,ops:n}}function ge(e,t){return function(e,t){let n=e.fillStyle||`hachure`;if(!F[n])switch(n){case`zigzag`:F[n]||(F[n]=new A(t));break;case`cross-hatch`:F[n]||(F[n]=new j(t));break;case`dots`:F[n]||(F[n]=new M(t));break;case`dashed`:F[n]||(F[n]=new N(t));break;case`zigzag-line`:F[n]||(F[n]=new P(t));break;default:n=`hachure`,F[n]||(F[n]=new O(t))}return F[n]}(t,oe).fillPolygons(e,t)}function _e(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function ve(e){return e.randomizer||=new I(e.seed||0),e.randomizer.next()}function ye(e,t,n,r=1){return n.roughness*r*(ve(n)*(t-e)+e)}function R(e,t,n=1){return ye(-e,e,t,n)}function z(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=be(e,t,n,r,i,!0,!1);if(o)return s;let c=be(e,t,n,r,i,!0,!0);return s.concat(c)}function be(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+.2*ve(i),p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=R(p,i,l),m=R(m,i,l);let h=[],g=()=>R(d,i,l),_=()=>R(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:R(u,i,l)),t+(v?0:R(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function xe(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]),r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+R(t,n),e[i][1]+R(t,n)]),i===e.length-1&&r.push([e[i][0]+R(t,n),e[i][1]+R(t,n)]);return Se(r,null,n)}function Se(e,t,n){let r=e.length,i=[];if(r>3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*e[t+1][0]-o*e[t-1][0])/6,n[1]+(o*e[t+1][1]-o*e[t-1][1])/6],a[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:`bcurveTo`,data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&t.length===2){let e=n.maxRandomnessOffset;i.push({op:`lineTo`,data:[t[0]+R(e,n),t[1]+R(e,n)]})}}else r===3?(i.push({op:`move`,data:[e[1][0],e[1][1]]}),i.push({op:`bcurveTo`,data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&i.push(...be(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function Ce(e,t,n,r,i,a,o,s){let c=[],l=[];if(s.roughness===0){e/=4,l.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];c.push(e),l.push(e)}l.push([t+r*Math.cos(0),n+i*Math.sin(0)]),l.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=R(.5,s)-Math.PI/2;l.push([R(a,s)+t+.9*r*Math.cos(u-e),R(a,s)+n+.9*i*Math.sin(u-e)]);let d=2*Math.PI+u-.01;for(let o=u;o<d;o+=e){let e=[R(a,s)+t+r*Math.cos(o),R(a,s)+n+i*Math.sin(o)];c.push(e),l.push(e)}l.push([R(a,s)+t+r*Math.cos(u+2*Math.PI+.5*o),R(a,s)+n+i*Math.sin(u+2*Math.PI+.5*o)]),l.push([R(a,s)+t+.98*r*Math.cos(u+o),R(a,s)+n+.98*i*Math.sin(u+o)]),l.push([R(a,s)+t+.9*r*Math.cos(u+.5*o),R(a,s)+n+.9*i*Math.sin(u+.5*o)])}return[l,c]}function we(e,t,n,r,i,a,o,s,c){let l=a+R(.1,c),u=[];u.push([R(s,c)+t+.9*r*Math.cos(l-e),R(s,c)+n+.9*i*Math.sin(l-e)]);for(let a=l;a<=o;a+=e)u.push([R(s,c)+t+r*Math.cos(a),R(s,c)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),Se(u,null,c)}function Te(e,t,n,r,i,a,o,s){let c=[],l=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],d=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<d;p++)p===0?c.push({op:`move`,data:[o[0],o[1]]}):c.push({op:`move`,data:[o[0]+(f?0:R(l[0],s)),o[1]+(f?0:R(l[0],s))]}),u=f?[i,a]:[i+R(l[p],s),a+R(l[p],s)],c.push({op:`bcurveTo`,data:[e+R(l[p],s),t+R(l[p],s),n+R(l[p],s),r+R(l[p],s),u[0],u[1]]});return c}function Ee(e){return[...e]}function De(e,t=0){let n=e.length;if(n<3)throw Error(`A curve must have at least three points.`);let r=[];if(n===3)r.push(Ee(e[0]),Ee(e[1]),Ee(e[2]),Ee(e[2]));else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push(Ee(n[0]));for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function Oe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}function ke(e,t,n){let r=Oe(t,n);if(r===0)return Oe(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),Oe(e,Ae(t,n,i))}function Ae(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function je(e,t,n,r){let i=r||[];if(function(e,t){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3],o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let c=3*i[0]-2*a[0]-n[0];c*=c;let l=3*i[1]-2*a[1]-n[1];return l*=l,o<c&&(o=c),s<l&&(s=l),o+s}(e,t)<n){let n=e[t+0];i.length?(a=i[i.length-1],o=n,Math.sqrt(Oe(a,o)))>1&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=Ae(a,o,r),u=Ae(o,s,r),d=Ae(s,c,r),f=Ae(l,u,r),p=Ae(u,d,r),m=Ae(f,p,r);je([a,l,f,m],0,n,i),je([m,p,d,c],0,n,i)}var a,o;return i}function Me(e,t){return Ne(e,0,e.length,t)}function Ne(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=ke(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(Ne(e,t,l+1,r,a),Ne(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function Pe(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)je(e,3*n,t,r);return n&&n>0?Ne(r,0,r.length,n):r}const B=`none`;var Fe=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[se(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=le(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(he([i],a)):o.push(ge([i],a))}return a.stroke!==B&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=de(n,r,a),c=fe(e,t,a,s);if(a.fill)if(a.fillStyle===`solid`){let n=fe(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(ge([c.estimatedPoints],a));return a.stroke!==B&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[ce(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=pe(e,t,n,r,i,a,o,!0,c);if(o&&c.fill)if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=pe(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(function(e,t,n,r,i,a,o){let s=e,c=t,l=Math.abs(n/2),u=Math.abs(r/2);l+=R(.01*l,o),u+=R(.01*u,o);let d=i,f=a;for(;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),ge([m],o)}(e,t,n,r,i,a,c));return c.stroke!==B&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=ue(e,n);if(n.fill&&n.fill!==B)if(n.fillStyle===`solid`){let t=ue(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...Pe(De([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...Pe(De(r),10,(1+n.roughness)/2))}t.length&&r.push(ge([t],n))}return n.stroke!==B&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=ce(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(he([e],n)):r.push(ge([e],n))),n.stroke!==B&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==B,a=n.stroke!==B,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=ie(re(ne(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(...Pe(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]])}if(l(),!n)return i;let u=[];for(let e of i){let t=Me(e,n);t.length&&u.push(t)}return u}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),c=me(e,n);if(i)if(n.fillStyle===`solid`)if(s.length===1){let t=me(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(he(s,n));else r.push(ge(s,n));return a&&(o?s.forEach((e=>{r.push(ce(e,!1,n))})):r.push(c)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:B};break;case`fillPath`:t={d:this.opsToPath(e),stroke:B,strokeWidth:0,fill:n.fill||B};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||B,strokeWidth:n,fill:B}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},Ie=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new Fe(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c),c}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}};const Le=`http://www.w3.org/2000/svg`;var Re=class{constructor(e,t){this.svg=e,this.gen=new Fe(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(Le,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS(Le,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS(Le,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(Le,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},V={canvas:(e,t)=>new Ie(e,t),svg:(e,t)=>new Re(e,t),generator:e=>new Fe(e),newSeed:()=>Fe.newSeed()},H=a(async(n,i,s)=>{let l,u=i.useHtmlLabels||m(f()?.htmlLabels);l=s||`node default`;let d=n.insert(`g`).attr(`class`,l).attr(`id`,i.domId||i.id),h=d.insert(`g`).attr(`class`,`label`).attr(`style`,r(i.labelStyle)),g;g=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let v=await _(h,c(e(g),f()),{useHtmlLabels:u,width:i.width||f().flowchart?.wrappingWidth,cssClasses:`markdown-node-label`,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),y=v.getBBox(),b=(i?.padding??0)/2;if(u){let e=v.children[0],n=o(v),r=e.getElementsByTagName(`img`);if(r){let e=g.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...r].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,e){let[e=p.fontSize]=t(f().fontSize?f().fontSize:window.getComputedStyle(document.body).fontSize),r=e*5+`px`;n.style.minWidth=r,n.style.maxWidth=r}else n.style.width=`100%`;r(n)}a(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}y=e.getBoundingClientRect(),n.attr(`width`,y.width),n.attr(`height`,y.height)}return u?h.attr(`transform`,`translate(`+-y.width/2+`, `+-y.height/2+`)`):h.attr(`transform`,`translate(0, `+-y.height/2+`)`),i.centerLabel&&h.attr(`transform`,`translate(`+-y.width/2+`, `+-y.height/2+`)`),h.insert(`rect`,`:first-child`),{shapeSvg:d,bbox:y,halfPadding:b,label:h}},`labelHelper`),ze=a(async(t,n,r)=>{let i=r.useHtmlLabels||m(f()?.flowchart?.htmlLabels),a=t.insert(`g`).attr(`class`,`label`).attr(`style`,r.labelStyle||``),s=await _(a,c(e(n),f()),{useHtmlLabels:i,width:r.width||f()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),l=s.getBBox(),u=r.padding/2;if(m(f()?.flowchart?.htmlLabels)){let e=s.children[0],t=o(s);l=e.getBoundingClientRect(),t.attr(`width`,l.width),t.attr(`height`,l.height)}return i?a.attr(`transform`,`translate(`+-l.width/2+`, `+-l.height/2+`)`):a.attr(`transform`,`translate(0, `+-l.height/2+`)`),r.centerLabel&&a.attr(`transform`,`translate(`+-l.width/2+`, `+-l.height/2+`)`),a.insert(`rect`,`:first-child`),{shapeSvg:t,bbox:l,halfPadding:u,label:a}},`insertLabel`),U=a((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),W=a((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function G(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}a(G,`createPathFromPoints`);function K(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}a(K,`generateFullSineWavePoints`);function Be(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}a(Be,`generateCirclePoints`);var Ve=a((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`);function He(e,t){t&&e.attr(`style`,t)}a(He,`applyStyle`);async function Ue(e){let t=o(document.createElementNS(`http://www.w3.org/2000/svg`,`foreignObject`)),n=t.append(`xhtml:div`),r=f(),i=e.label;e.label&&d(e.label)&&(i=await u(e.label.replace(h.lineBreakRegex,`
|
|
1
|
+
import{a as e,p as t,r as n,u as r}from"./chunk-S3R3BYOJ-CQpHdWQs.js";import{g as i,h as a,p as o}from"./src-CoWzf9ks.js";import{A as s,I as c,L as l,N as u,O as d,b as f,d as p,h as m,s as h,y as g}from"./chunk-ABZYJK2D-B-uQQBad.js";import{n as _,r as v}from"./chunk-JA3XYJ7Z-B2ggvruF.js";import{t as y}from"./chunk-CVBHYZKI-C8bYjiGm.js";import{a as b,i as x,r as S,t as C}from"./chunk-ATLVNIR6-06VCvgCA.js";function w(e,t,n){if(e&&e.length){let[r,i]=t,a=Math.PI/180*n,o=Math.cos(a),s=Math.sin(a);for(let t of e){let[e,n]=t;t[0]=(e-r)*o-(n-i)*s+r,t[1]=(e-r)*s+(n-i)*o+i}}}function T(e,t){return e[0]===t[0]&&e[1]===t[1]}function E(e,t,n,r=1){let i=n,a=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]==`number`?[e]:e,s=[0,0];if(i)for(let e of o)w(e,s,i);let c=function(e,t,n){let r=[];for(let t of e){let e=[...t];T(e[0],e[e.length-1])||e.push([e[0][0],e[0][1]]),e.length>2&&r.push(e)}let i=[];t=Math.max(t,.1);let a=[];for(let e of r)for(let t=0;t<e.length-1;t++){let n=e[t],r=e[t+1];if(n[1]!==r[1]){let e=Math.min(n[1],r[1]);a.push({ymin:e,ymax:Math.max(n[1],r[1]),x:e===n[1]?n[0]:r[0],islope:(r[0]-n[0])/(r[1]-n[1])})}}if(a.sort(((e,t)=>e.ymin<t.ymin?-1:e.ymin>t.ymin?1:e.x<t.x?-1:e.x>t.x?1:e.ymax===t.ymax?0:(e.ymax-t.ymax)/Math.abs(e.ymax-t.ymax))),!a.length)return i;let o=[],s=a[0].ymin,c=0;for(;o.length||a.length;){if(a.length){let e=-1;for(let t=0;t<a.length&&!(a[t].ymin>s);t++)e=t;a.splice(0,e+1).forEach((e=>{o.push({s,edge:e})}))}if(o=o.filter((e=>!(e.edge.ymax<=s))),o.sort(((e,t)=>e.edge.x===t.edge.x?0:(e.edge.x-t.edge.x)/Math.abs(e.edge.x-t.edge.x))),(n!==1||c%t==0)&&o.length>1)for(let e=0;e<o.length;e+=2){let t=e+1;if(t>=o.length)break;let n=o[e].edge,r=o[t].edge;i.push([[Math.round(n.x),s],[Math.round(r.x),s]])}s+=n,o.forEach((e=>{e.edge.x=e.edge.x+n*e.edge.islope})),c++}return i}(o,a,r);if(i){for(let e of o)w(e,s,-i);(function(e,t,n){let r=[];e.forEach((e=>r.push(...e))),w(r,t,n)})(c,s,-i)}return c}function D(e,t){let n=t.hachureAngle+90,r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let i=1;return t.roughness>=1&&(t.randomizer?.next()||Math.random())>.7&&(i=r),E(e,r,n,i||1)}var O=class{constructor(e){this.helper=e}fillPolygons(e,t){return this._fillPolygons(e,t)}_fillPolygons(e,t){let n=D(e,t);return{type:`fillSketch`,ops:this.renderLines(n,t)}}renderLines(e,t){let n=[];for(let r of e)n.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],t));return n}};function k(e){let t=e[0],n=e[1];return Math.sqrt((t[0]-n[0])**2+(t[1]-n[1])**2)}var A=class extends O{fillPolygons(e,t){let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.max(n,.1);let r=D(e,Object.assign({},t,{hachureGap:n})),i=Math.PI/180*t.hachureAngle,a=[],o=.5*n*Math.cos(i),s=.5*n*Math.sin(i);for(let[e,t]of r)k([e,t])&&a.push([[e[0]-o,e[1]+s],[...t]],[[e[0]+o,e[1]-s],[...t]]);return{type:`fillSketch`,ops:this.renderLines(a,t)}}},j=class extends O{fillPolygons(e,t){let n=this._fillPolygons(e,t),r=Object.assign({},t,{hachureAngle:t.hachureAngle+90}),i=this._fillPolygons(e,r);return n.ops=n.ops.concat(i.ops),n}},M=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=D(e,t=Object.assign({},t,{hachureAngle:0}));return this.dotsOnLines(n,t)}dotsOnLines(e,t){let n=[],r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.max(r,.1);let i=t.fillWeight;i<0&&(i=t.strokeWidth/2);let a=r/4;for(let o of e){let e=k(o),s=e/r,c=Math.ceil(s)-1,l=e-c*r,u=(o[0][0]+o[1][0])/2-r/4,d=Math.min(o[0][1],o[1][1]);for(let e=0;e<c;e++){let o=d+l+e*r,s=u-a+2*Math.random()*a,c=o-a+2*Math.random()*a,f=this.helper.ellipse(s,c,i,i,t);n.push(...f.ops)}}return{type:`fillSketch`,ops:n}}},N=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=D(e,t);return{type:`fillSketch`,ops:this.dashedLine(n,t)}}dashedLine(e,t){let n=t.dashOffset<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashOffset,r=t.dashGap<0?t.hachureGap<0?4*t.strokeWidth:t.hachureGap:t.dashGap,i=[];return e.forEach((e=>{let a=k(e),o=Math.floor(a/(n+r)),s=(a+r-o*(n+r))/2,c=e[0],l=e[1];c[0]>l[0]&&(c=e[1],l=e[0]);let u=Math.atan((l[1]-c[1])/(l[0]-c[0]));for(let e=0;e<o;e++){let a=e*(n+r),o=a+n,l=[c[0]+a*Math.cos(u)+s*Math.cos(u),c[1]+a*Math.sin(u)+s*Math.sin(u)],d=[c[0]+o*Math.cos(u)+s*Math.cos(u),c[1]+o*Math.sin(u)+s*Math.sin(u)];i.push(...this.helper.doubleLineOps(l[0],l[1],d[0],d[1],t))}})),i}},P=class{constructor(e){this.helper=e}fillPolygons(e,t){let n=t.hachureGap<0?4*t.strokeWidth:t.hachureGap,r=t.zigzagOffset<0?n:t.zigzagOffset,i=D(e,t=Object.assign({},t,{hachureGap:n+r}));return{type:`fillSketch`,ops:this.zigzagLines(i,r,t)}}zigzagLines(e,t,n){let r=[];return e.forEach((e=>{let i=k(e),a=Math.round(i/(2*t)),o=e[0],s=e[1];o[0]>s[0]&&(o=e[1],s=e[0]);let c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let e=0;e<a;e++){let i=2*e*t,a=2*(e+1)*t,s=Math.sqrt(2*t**2),l=[o[0]+i*Math.cos(c),o[1]+i*Math.sin(c)],u=[o[0]+a*Math.cos(c),o[1]+a*Math.sin(c)],d=[l[0]+s*Math.cos(c+Math.PI/4),l[1]+s*Math.sin(c+Math.PI/4)];r.push(...this.helper.doubleLineOps(l[0],l[1],d[0],d[1],n),...this.helper.doubleLineOps(d[0],d[1],u[0],u[1],n))}})),r}};const F={};var I=class{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const ee={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function te(e,t){return e.type===t}function ne(e){let t=[],n=function(e){let t=[];for(;e!==``;)if(e.match(/^([ \t\r\n,]+)/))e=e.substr(RegExp.$1.length);else if(e.match(/^([aAcChHlLmMqQsStTvVzZ])/))t[t.length]={type:0,text:RegExp.$1},e=e.substr(RegExp.$1.length);else{if(!e.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];t[t.length]={type:1,text:`${parseFloat(RegExp.$1)}`},e=e.substr(RegExp.$1.length)}return t[t.length]={type:2,text:``},t}(e),r=`BOD`,i=0,a=n[i];for(;!te(a,2);){let o=0,s=[];if(r===`BOD`){if(a.text!==`M`&&a.text!==`m`)return ne(`M0,0`+e);i++,o=ee[a.text],r=a.text}else te(a,1)?o=ee[r]:(i++,o=ee[a.text],r=a.text);if(!(i+o<n.length))throw Error(`Path data ended short`);for(let e=i;e<i+o;e++){let t=n[e];if(!te(t,1))throw Error(`Param not a number: `+r+`,`+t.text);s[s.length]=+t.text}if(typeof ee[r]!=`number`)throw Error(`Bad segment: `+r);{let e={key:r,data:s};t.push(e),i+=o,a=n[i],r===`M`&&(r=`L`),r===`m`&&(r=`l`)}}return t}function re(e){let t=0,n=0,r=0,i=0,a=[];for(let{key:o,data:s}of e)switch(o){case`M`:a.push({key:`M`,data:[...s]}),[t,n]=s,[r,i]=s;break;case`m`:t+=s[0],n+=s[1],a.push({key:`M`,data:[t,n]}),r=t,i=n;break;case`L`:a.push({key:`L`,data:[...s]}),[t,n]=s;break;case`l`:t+=s[0],n+=s[1],a.push({key:`L`,data:[t,n]});break;case`C`:a.push({key:`C`,data:[...s]}),t=s[4],n=s[5];break;case`c`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`C`,data:e}),t=e[4],n=e[5];break}case`Q`:a.push({key:`Q`,data:[...s]}),t=s[2],n=s[3];break;case`q`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`Q`,data:e}),t=e[2],n=e[3];break}case`A`:a.push({key:`A`,data:[...s]}),t=s[5],n=s[6];break;case`a`:t+=s[5],n+=s[6],a.push({key:`A`,data:[s[0],s[1],s[2],s[3],s[4],t,n]});break;case`H`:a.push({key:`H`,data:[...s]}),t=s[0];break;case`h`:t+=s[0],a.push({key:`H`,data:[t]});break;case`V`:a.push({key:`V`,data:[...s]}),n=s[0];break;case`v`:n+=s[0],a.push({key:`V`,data:[n]});break;case`S`:a.push({key:`S`,data:[...s]}),t=s[2],n=s[3];break;case`s`:{let e=s.map(((e,r)=>r%2?e+n:e+t));a.push({key:`S`,data:e}),t=e[2],n=e[3];break}case`T`:a.push({key:`T`,data:[...s]}),t=s[0],n=s[1];break;case`t`:t+=s[0],n+=s[1],a.push({key:`T`,data:[t,n]});break;case`Z`:case`z`:a.push({key:`Z`,data:[]}),t=r,n=i}return a}function ie(e){let t=[],n=``,r=0,i=0,a=0,o=0,s=0,c=0;for(let{key:l,data:u}of e){switch(l){case`M`:t.push({key:`M`,data:[...u]}),[r,i]=u,[a,o]=u;break;case`C`:t.push({key:`C`,data:[...u]}),r=u[4],i=u[5],s=u[2],c=u[3];break;case`L`:t.push({key:`L`,data:[...u]}),[r,i]=u;break;case`H`:r=u[0],t.push({key:`L`,data:[r,i]});break;case`V`:i=u[0],t.push({key:`L`,data:[r,i]});break;case`S`:{let e=0,a=0;n===`C`||n===`S`?(e=r+(r-s),a=i+(i-c)):(e=r,a=i),t.push({key:`C`,data:[e,a,...u]}),s=u[0],c=u[1],r=u[2],i=u[3];break}case`T`:{let[e,a]=u,o=0,l=0;n===`Q`||n===`T`?(o=r+(r-s),l=i+(i-c)):(o=r,l=i);let d=r+2*(o-r)/3,f=i+2*(l-i)/3,p=e+2*(o-e)/3,m=a+2*(l-a)/3;t.push({key:`C`,data:[d,f,p,m,e,a]}),s=o,c=l,r=e,i=a;break}case`Q`:{let[e,n,a,o]=u,l=r+2*(e-r)/3,d=i+2*(n-i)/3,f=a+2*(e-a)/3,p=o+2*(n-o)/3;t.push({key:`C`,data:[l,d,f,p,a,o]}),s=e,c=n,r=a,i=o;break}case`A`:{let e=Math.abs(u[0]),n=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],c=u[5],l=u[6];e===0||n===0?(t.push({key:`C`,data:[r,i,c,l,c,l]}),r=c,i=l):(r!==c||i!==l)&&(L(r,i,c,l,e,n,a,o,s).forEach((function(e){t.push({key:`C`,data:e})})),r=c,i=l);break}case`Z`:t.push({key:`Z`,data:[]}),r=a,i=o}n=l}return t}function ae(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function L(e,t,n,r,i,a,o,s,c,l){let u=(d=o,Math.PI*d/180);var d;let f=[],p=0,m=0,h=0,g=0;if(l)[p,m,h,g]=l;else{[e,t]=ae(e,t,-u),[n,r]=ae(n,r,-u);let o=(e-n)/2,l=(t-r)/2,d=o*o/(i*i)+l*l/(a*a);d>1&&(d=Math.sqrt(d),i*=d,a*=d);let f=i*i,_=a*a,v=f*_-f*l*l-_*o*o,y=f*l*l+_*o*o,b=(s===c?-1:1)*Math.sqrt(Math.abs(v/y));h=b*i*l/a+(e+n)/2,g=b*-a*o/i+(t+r)/2,p=Math.asin(parseFloat(((t-g)/a).toFixed(9))),m=Math.asin(parseFloat(((r-g)/a).toFixed(9))),e<h&&(p=Math.PI-p),n<h&&(m=Math.PI-m),p<0&&(p=2*Math.PI+p),m<0&&(m=2*Math.PI+m),c&&p>m&&(p-=2*Math.PI),!c&&m>p&&(m-=2*Math.PI)}let _=m-p;if(Math.abs(_)>120*Math.PI/180){let e=m,t=n,s=r;m=c&&m>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,f=L(n=h+i*Math.cos(m),r=g+a*Math.sin(m),t,s,i,a,o,0,c,[m,e,h,g])}_=m-p;let v=Math.cos(p),y=Math.sin(p),b=Math.cos(m),x=Math.sin(m),S=Math.tan(_/4),C=4/3*i*S,w=4/3*a*S,T=[e,t],E=[e+C*y,t-w*v],D=[n+C*x,r-w*b],O=[n,r];if(E[0]=2*T[0]-E[0],E[1]=2*T[1]-E[1],l)return[E,D,O].concat(f);{f=[E,D,O].concat(f);let e=[];for(let t=0;t<f.length;t+=3){let n=ae(f[t][0],f[t][1],u),r=ae(f[t+1][0],f[t+1][1],u),i=ae(f[t+2][0],f[t+2][1],u);e.push([n[0],n[1],r[0],r[1],i[0],i[1]])}return e}}const oe={randOffset:function(e,t){return R(e,t)},randOffsetWithRange:function(e,t,n){return ye(e,t,n)},ellipse:function(e,t,n,r,i){return fe(e,t,i,de(n,r,i)).opset},doubleLineOps:function(e,t,n,r,i){return z(e,t,n,r,i,!0)}};function se(e,t,n,r,i){return{type:`path`,ops:z(e,t,n,r,i)}}function ce(e,t,n){let r=(e||[]).length;if(r>2){let i=[];for(let t=0;t<r-1;t++)i.push(...z(e[t][0],e[t][1],e[t+1][0],e[t+1][1],n));return t&&i.push(...z(e[r-1][0],e[r-1][1],e[0][0],e[0][1],n)),{type:`path`,ops:i}}return r===2?se(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:`path`,ops:[]}}function le(e,t,n,r,i){return function(e,t){return ce(e,!0,t)}([[e,t],[e+n,t],[e+n,t+r],[e,t+r]],i)}function ue(e,t){if(e.length){let n=typeof e[0][0]==`number`?[e]:e,r=xe(n[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:xe(n[0],1.5*(1+.22*t.roughness),_e(t));for(let e=1;e<n.length;e++){let a=n[e];if(a.length){let e=xe(a,1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:xe(a,1.5*(1+.22*t.roughness),_e(t));for(let t of e)t.op!==`move`&&r.push(t);for(let e of n)e.op!==`move`&&i.push(e)}}return{type:`path`,ops:r.concat(i)}}return{type:`path`,ops:[]}}function de(e,t,n){let r=Math.sqrt(2*Math.PI*Math.sqrt(((e/2)**2+(t/2)**2)/2)),i=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*r)),a=2*Math.PI/i,o=Math.abs(e/2),s=Math.abs(t/2),c=1-n.curveFitting;return o+=R(o*c,n),s+=R(s*c,n),{increment:a,rx:o,ry:s}}function fe(e,t,n,r){let[i,a]=Ce(r.increment,e,t,r.rx,r.ry,1,r.increment*ye(.1,ye(.4,1,n),n),n),o=Se(i,null,n);if(!n.disableMultiStroke&&n.roughness!==0){let[i]=Ce(r.increment,e,t,r.rx,r.ry,1.5,0,n),a=Se(i,null,n);o=o.concat(a)}return{estimatedPoints:a,opset:{type:`path`,ops:o}}}function pe(e,t,n,r,i,a,o,s,c){let l=e,u=t,d=Math.abs(n/2),f=Math.abs(r/2);d+=R(.01*d,c),f+=R(.01*f,c);let p=i,m=a;for(;p<0;)p+=2*Math.PI,m+=2*Math.PI;m-p>2*Math.PI&&(p=0,m=2*Math.PI);let h=2*Math.PI/c.curveStepCount,g=Math.min(h/2,(m-p)/2),_=we(g,l,u,d,f,p,m,1,c);if(!c.disableMultiStroke){let e=we(g,l,u,d,f,p,m,1.5,c);_.push(...e)}return o&&(s?_.push(...z(l,u,l+d*Math.cos(p),u+f*Math.sin(p),c),...z(l,u,l+d*Math.cos(m),u+f*Math.sin(m),c)):_.push({op:`lineTo`,data:[l,u]},{op:`lineTo`,data:[l+d*Math.cos(p),u+f*Math.sin(p)]})),{type:`path`,ops:_}}function me(e,t){let n=ie(re(ne(e))),r=[],i=[0,0],a=[0,0];for(let{key:e,data:o}of n)switch(e){case`M`:a=[o[0],o[1]],i=[o[0],o[1]];break;case`L`:r.push(...z(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case`C`:{let[e,n,i,s,c,l]=o;r.push(...Te(e,n,i,s,c,l,a,t)),a=[c,l];break}case`Z`:r.push(...z(a[0],a[1],i[0],i[1],t)),a=[i[0],i[1]]}return{type:`path`,ops:r}}function he(e,t){let n=[];for(let r of e)if(r.length){let e=t.maxRandomnessOffset||0,i=r.length;if(i>2){n.push({op:`move`,data:[r[0][0]+R(e,t),r[0][1]+R(e,t)]});for(let a=1;a<i;a++)n.push({op:`lineTo`,data:[r[a][0]+R(e,t),r[a][1]+R(e,t)]})}}return{type:`fillPath`,ops:n}}function ge(e,t){return function(e,t){let n=e.fillStyle||`hachure`;if(!F[n])switch(n){case`zigzag`:F[n]||(F[n]=new A(t));break;case`cross-hatch`:F[n]||(F[n]=new j(t));break;case`dots`:F[n]||(F[n]=new M(t));break;case`dashed`:F[n]||(F[n]=new N(t));break;case`zigzag-line`:F[n]||(F[n]=new P(t));break;default:n=`hachure`,F[n]||(F[n]=new O(t))}return F[n]}(t,oe).fillPolygons(e,t)}function _e(e){let t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function ve(e){return e.randomizer||=new I(e.seed||0),e.randomizer.next()}function ye(e,t,n,r=1){return n.roughness*r*(ve(n)*(t-e)+e)}function R(e,t,n=1){return ye(-e,e,t,n)}function z(e,t,n,r,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=be(e,t,n,r,i,!0,!1);if(o)return s;let c=be(e,t,n,r,i,!0,!0);return s.concat(c)}function be(e,t,n,r,i,a,o){let s=(e-n)**2+(t-r)**2,c=Math.sqrt(s),l=1;l=c<200?1:c>500?.4:-.0016668*c+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=c/10);let d=u/2,f=.2+.2*ve(i),p=i.bowing*i.maxRandomnessOffset*(r-t)/200,m=i.bowing*i.maxRandomnessOffset*(e-n)/200;p=R(p,i,l),m=R(m,i,l);let h=[],g=()=>R(d,i,l),_=()=>R(u,i,l),v=i.preserveVertices;return a&&(o?h.push({op:`move`,data:[e+(v?0:g()),t+(v?0:g())]}):h.push({op:`move`,data:[e+(v?0:R(u,i,l)),t+(v?0:R(u,i,l))]})),o?h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+g(),m+t+(r-t)*f+g(),p+e+2*(n-e)*f+g(),m+t+2*(r-t)*f+g(),n+(v?0:g()),r+(v?0:g())]}):h.push({op:`bcurveTo`,data:[p+e+(n-e)*f+_(),m+t+(r-t)*f+_(),p+e+2*(n-e)*f+_(),m+t+2*(r-t)*f+_(),n+(v?0:_()),r+(v?0:_())]}),h}function xe(e,t,n){if(!e.length)return[];let r=[];r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]),r.push([e[0][0]+R(t,n),e[0][1]+R(t,n)]);for(let i=1;i<e.length;i++)r.push([e[i][0]+R(t,n),e[i][1]+R(t,n)]),i===e.length-1&&r.push([e[i][0]+R(t,n),e[i][1]+R(t,n)]);return Se(r,null,n)}function Se(e,t,n){let r=e.length,i=[];if(r>3){let a=[],o=1-n.curveTightness;i.push({op:`move`,data:[e[1][0],e[1][1]]});for(let t=1;t+2<r;t++){let n=e[t];a[0]=[n[0],n[1]],a[1]=[n[0]+(o*e[t+1][0]-o*e[t-1][0])/6,n[1]+(o*e[t+1][1]-o*e[t-1][1])/6],a[2]=[e[t+1][0]+(o*e[t][0]-o*e[t+2][0])/6,e[t+1][1]+(o*e[t][1]-o*e[t+2][1])/6],a[3]=[e[t+1][0],e[t+1][1]],i.push({op:`bcurveTo`,data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(t&&t.length===2){let e=n.maxRandomnessOffset;i.push({op:`lineTo`,data:[t[0]+R(e,n),t[1]+R(e,n)]})}}else r===3?(i.push({op:`move`,data:[e[1][0],e[1][1]]}),i.push({op:`bcurveTo`,data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):r===2&&i.push(...be(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return i}function Ce(e,t,n,r,i,a,o,s){let c=[],l=[];if(s.roughness===0){e/=4,l.push([t+r*Math.cos(-e),n+i*Math.sin(-e)]);for(let a=0;a<=2*Math.PI;a+=e){let e=[t+r*Math.cos(a),n+i*Math.sin(a)];c.push(e),l.push(e)}l.push([t+r*Math.cos(0),n+i*Math.sin(0)]),l.push([t+r*Math.cos(e),n+i*Math.sin(e)])}else{let u=R(.5,s)-Math.PI/2;l.push([R(a,s)+t+.9*r*Math.cos(u-e),R(a,s)+n+.9*i*Math.sin(u-e)]);let d=2*Math.PI+u-.01;for(let o=u;o<d;o+=e){let e=[R(a,s)+t+r*Math.cos(o),R(a,s)+n+i*Math.sin(o)];c.push(e),l.push(e)}l.push([R(a,s)+t+r*Math.cos(u+2*Math.PI+.5*o),R(a,s)+n+i*Math.sin(u+2*Math.PI+.5*o)]),l.push([R(a,s)+t+.98*r*Math.cos(u+o),R(a,s)+n+.98*i*Math.sin(u+o)]),l.push([R(a,s)+t+.9*r*Math.cos(u+.5*o),R(a,s)+n+.9*i*Math.sin(u+.5*o)])}return[l,c]}function we(e,t,n,r,i,a,o,s,c){let l=a+R(.1,c),u=[];u.push([R(s,c)+t+.9*r*Math.cos(l-e),R(s,c)+n+.9*i*Math.sin(l-e)]);for(let a=l;a<=o;a+=e)u.push([R(s,c)+t+r*Math.cos(a),R(s,c)+n+i*Math.sin(a)]);return u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),u.push([t+r*Math.cos(o),n+i*Math.sin(o)]),Se(u,null,c)}function Te(e,t,n,r,i,a,o,s){let c=[],l=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],d=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let p=0;p<d;p++)p===0?c.push({op:`move`,data:[o[0],o[1]]}):c.push({op:`move`,data:[o[0]+(f?0:R(l[0],s)),o[1]+(f?0:R(l[0],s))]}),u=f?[i,a]:[i+R(l[p],s),a+R(l[p],s)],c.push({op:`bcurveTo`,data:[e+R(l[p],s),t+R(l[p],s),n+R(l[p],s),r+R(l[p],s),u[0],u[1]]});return c}function Ee(e){return[...e]}function De(e,t=0){let n=e.length;if(n<3)throw Error(`A curve must have at least three points.`);let r=[];if(n===3)r.push(Ee(e[0]),Ee(e[1]),Ee(e[2]),Ee(e[2]));else{let n=[];n.push(e[0],e[0]);for(let t=1;t<e.length;t++)n.push(e[t]),t===e.length-1&&n.push(e[t]);let i=[],a=1-t;r.push(Ee(n[0]));for(let e=1;e+2<n.length;e++){let t=n[e];i[0]=[t[0],t[1]],i[1]=[t[0]+(a*n[e+1][0]-a*n[e-1][0])/6,t[1]+(a*n[e+1][1]-a*n[e-1][1])/6],i[2]=[n[e+1][0]+(a*n[e][0]-a*n[e+2][0])/6,n[e+1][1]+(a*n[e][1]-a*n[e+2][1])/6],i[3]=[n[e+1][0],n[e+1][1]],r.push(i[1],i[2],i[3])}}return r}function Oe(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2}function ke(e,t,n){let r=Oe(t,n);if(r===0)return Oe(e,t);let i=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r;return i=Math.max(0,Math.min(1,i)),Oe(e,Ae(t,n,i))}function Ae(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function je(e,t,n,r){let i=r||[];if(function(e,t){let n=e[t+0],r=e[t+1],i=e[t+2],a=e[t+3],o=3*r[0]-2*n[0]-a[0];o*=o;let s=3*r[1]-2*n[1]-a[1];s*=s;let c=3*i[0]-2*a[0]-n[0];c*=c;let l=3*i[1]-2*a[1]-n[1];return l*=l,o<c&&(o=c),s<l&&(s=l),o+s}(e,t)<n){let n=e[t+0];i.length?(a=i[i.length-1],o=n,Math.sqrt(Oe(a,o)))>1&&i.push(n):i.push(n),i.push(e[t+3])}else{let r=.5,a=e[t+0],o=e[t+1],s=e[t+2],c=e[t+3],l=Ae(a,o,r),u=Ae(o,s,r),d=Ae(s,c,r),f=Ae(l,u,r),p=Ae(u,d,r),m=Ae(f,p,r);je([a,l,f,m],0,n,i),je([m,p,d,c],0,n,i)}var a,o;return i}function Me(e,t){return Ne(e,0,e.length,t)}function Ne(e,t,n,r,i){let a=i||[],o=e[t],s=e[n-1],c=0,l=1;for(let r=t+1;r<n-1;++r){let t=ke(e[r],o,s);t>c&&(c=t,l=r)}return Math.sqrt(c)>r?(Ne(e,t,l+1,r,a),Ne(e,l,n,r,a)):(a.length||a.push(o),a.push(s)),a}function Pe(e,t=.15,n){let r=[],i=(e.length-1)/3;for(let n=0;n<i;n++)je(e,3*n,t,r);return n&&n>0?Ne(r,0,r.length,n):r}const B=`none`;var Fe=class{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:`#000`,strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:`hachure`,fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,t,n){return{shape:e,sets:t||[],options:n||this.defaultOptions}}line(e,t,n,r,i){let a=this._o(i);return this._d(`line`,[se(e,t,n,r,a)],a)}rectangle(e,t,n,r,i){let a=this._o(i),o=[],s=le(e,t,n,r,a);if(a.fill){let i=[[e,t],[e+n,t],[e+n,t+r],[e,t+r]];a.fillStyle===`solid`?o.push(he([i],a)):o.push(ge([i],a))}return a.stroke!==B&&o.push(s),this._d(`rectangle`,o,a)}ellipse(e,t,n,r,i){let a=this._o(i),o=[],s=de(n,r,a),c=fe(e,t,a,s);if(a.fill)if(a.fillStyle===`solid`){let n=fe(e,t,a,s).opset;n.type=`fillPath`,o.push(n)}else o.push(ge([c.estimatedPoints],a));return a.stroke!==B&&o.push(c.opset),this._d(`ellipse`,o,a)}circle(e,t,n,r){let i=this.ellipse(e,t,n,n,r);return i.shape=`circle`,i}linearPath(e,t){let n=this._o(t);return this._d(`linearPath`,[ce(e,!1,n)],n)}arc(e,t,n,r,i,a,o=!1,s){let c=this._o(s),l=[],u=pe(e,t,n,r,i,a,o,!0,c);if(o&&c.fill)if(c.fillStyle===`solid`){let o=Object.assign({},c);o.disableMultiStroke=!0;let s=pe(e,t,n,r,i,a,!0,!1,o);s.type=`fillPath`,l.push(s)}else l.push(function(e,t,n,r,i,a,o){let s=e,c=t,l=Math.abs(n/2),u=Math.abs(r/2);l+=R(.01*l,o),u+=R(.01*u,o);let d=i,f=a;for(;d<0;)d+=2*Math.PI,f+=2*Math.PI;f-d>2*Math.PI&&(d=0,f=2*Math.PI);let p=(f-d)/o.curveStepCount,m=[];for(let e=d;e<=f;e+=p)m.push([s+l*Math.cos(e),c+u*Math.sin(e)]);return m.push([s+l*Math.cos(f),c+u*Math.sin(f)]),m.push([s,c]),ge([m],o)}(e,t,n,r,i,a,c));return c.stroke!==B&&l.push(u),this._d(`arc`,l,c)}curve(e,t){let n=this._o(t),r=[],i=ue(e,n);if(n.fill&&n.fill!==B)if(n.fillStyle===`solid`){let t=ue(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else{let t=[],i=e;if(i.length){let e=typeof i[0][0]==`number`?[i]:i;for(let r of e)r.length<3?t.push(...r):r.length===3?t.push(...Pe(De([r[0],r[0],r[1],r[2]]),10,(1+n.roughness)/2)):t.push(...Pe(De(r),10,(1+n.roughness)/2))}t.length&&r.push(ge([t],n))}return n.stroke!==B&&r.push(i),this._d(`curve`,r,n)}polygon(e,t){let n=this._o(t),r=[],i=ce(e,!0,n);return n.fill&&(n.fillStyle===`solid`?r.push(he([e],n)):r.push(ge([e],n))),n.stroke!==B&&r.push(i),this._d(`polygon`,r,n)}path(e,t){let n=this._o(t),r=[];if(!e)return this._d(`path`,r,n);e=(e||``).replace(/\n/g,` `).replace(/(-\s)/g,`-`).replace(`/(ss)/g`,` `);let i=n.fill&&n.fill!==`transparent`&&n.fill!==B,a=n.stroke!==B,o=!!(n.simplification&&n.simplification<1),s=function(e,t,n){let r=ie(re(ne(e))),i=[],a=[],o=[0,0],s=[],c=()=>{s.length>=4&&a.push(...Pe(s,t)),s=[]},l=()=>{c(),a.length&&(i.push(a),a=[])};for(let{key:e,data:t}of r)switch(e){case`M`:l(),o=[t[0],t[1]],a.push(o);break;case`L`:c(),a.push([t[0],t[1]]);break;case`C`:if(!s.length){let e=a.length?a[a.length-1]:o;s.push([e[0],e[1]])}s.push([t[0],t[1]]),s.push([t[2],t[3]]),s.push([t[4],t[5]]);break;case`Z`:c(),a.push([o[0],o[1]])}if(l(),!n)return i;let u=[];for(let e of i){let t=Me(e,n);t.length&&u.push(t)}return u}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),c=me(e,n);if(i)if(n.fillStyle===`solid`)if(s.length===1){let t=me(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));r.push({type:`fillPath`,ops:this._mergedShape(t.ops)})}else r.push(he(s,n));else r.push(ge(s,n));return a&&(o?s.forEach((e=>{r.push(ce(e,!1,n))})):r.push(c)),this._d(`path`,r,n)}opsToPath(e,t){let n=``;for(let r of e.ops){let e=typeof t==`number`&&t>=0?r.data.map((e=>+e.toFixed(t))):r.data;switch(r.op){case`move`:n+=`M${e[0]} ${e[1]} `;break;case`bcurveTo`:n+=`C${e[0]} ${e[1]}, ${e[2]} ${e[3]}, ${e[4]} ${e[5]} `;break;case`lineTo`:n+=`L${e[0]} ${e[1]} `}}return n.trim()}toPaths(e){let t=e.sets||[],n=e.options||this.defaultOptions,r=[];for(let e of t){let t=null;switch(e.type){case`path`:t={d:this.opsToPath(e),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:B};break;case`fillPath`:t={d:this.opsToPath(e),stroke:B,strokeWidth:0,fill:n.fill||B};break;case`fillSketch`:t=this.fillSketch(e,n)}t&&r.push(t)}return r}fillSketch(e,t){let n=t.fillWeight;return n<0&&(n=t.strokeWidth/2),{d:this.opsToPath(e),stroke:t.fill||B,strokeWidth:n,fill:B}}_mergedShape(e){return e.filter(((e,t)=>t===0||e.op!==`move`))}},Ie=class{constructor(e,t){this.canvas=e,this.ctx=this.canvas.getContext(`2d`),this.gen=new Fe(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.ctx,i=e.options.fixedDecimalPlaceDigits;for(let a of t)switch(a.type){case`path`:r.save(),r.strokeStyle=n.stroke===`none`?`transparent`:n.stroke,r.lineWidth=n.strokeWidth,n.strokeLineDash&&r.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(r.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(r,a,i),r.restore();break;case`fillPath`:{r.save(),r.fillStyle=n.fill||``;let t=e.shape===`curve`||e.shape===`polygon`||e.shape===`path`?`evenodd`:`nonzero`;this._drawToContext(r,a,i,t),r.restore();break}case`fillSketch`:this.fillSketch(r,a,n)}}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||``,e.lineWidth=r,this._drawToContext(e,t,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,t,n,r=`nonzero`){e.beginPath();for(let r of t.ops){let t=typeof n==`number`&&n>=0?r.data.map((e=>+e.toFixed(n))):r.data;switch(r.op){case`move`:e.moveTo(t[0],t[1]);break;case`bcurveTo`:e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]);break;case`lineTo`:e.lineTo(t[0],t[1])}}t.type===`fillPath`?e.fill(r):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a),a}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a),a}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a),a}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i),i}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n),n}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n),n}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c),c}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n),n}path(e,t){let n=this.gen.path(e,t);return this.draw(n),n}};const Le=`http://www.w3.org/2000/svg`;var Re=class{constructor(e,t){this.svg=e,this.gen=new Fe(t)}draw(e){let t=e.sets||[],n=e.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,i=r.createElementNS(Le,`g`),a=e.options.fixedDecimalPlaceDigits;for(let o of t){let t=null;switch(o.type){case`path`:t=r.createElementNS(Le,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,n.stroke),t.setAttribute(`stroke-width`,n.strokeWidth+``),t.setAttribute(`fill`,`none`),n.strokeLineDash&&t.setAttribute(`stroke-dasharray`,n.strokeLineDash.join(` `).trim()),n.strokeLineDashOffset&&t.setAttribute(`stroke-dashoffset`,`${n.strokeLineDashOffset}`);break;case`fillPath`:t=r.createElementNS(Le,`path`),t.setAttribute(`d`,this.opsToPath(o,a)),t.setAttribute(`stroke`,`none`),t.setAttribute(`stroke-width`,`0`),t.setAttribute(`fill`,n.fill||``),e.shape!==`curve`&&e.shape!==`polygon`||t.setAttribute(`fill-rule`,`evenodd`);break;case`fillSketch`:t=this.fillSketch(r,o,n)}t&&i.appendChild(t)}return i}fillSketch(e,t,n){let r=n.fillWeight;r<0&&(r=n.strokeWidth/2);let i=e.createElementNS(Le,`path`);return i.setAttribute(`d`,this.opsToPath(t,n.fixedDecimalPlaceDigits)),i.setAttribute(`stroke`,n.fill||``),i.setAttribute(`stroke-width`,r+``),i.setAttribute(`fill`,`none`),n.fillLineDash&&i.setAttribute(`stroke-dasharray`,n.fillLineDash.join(` `).trim()),n.fillLineDashOffset&&i.setAttribute(`stroke-dashoffset`,`${n.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,t){return this.gen.opsToPath(e,t)}line(e,t,n,r,i){let a=this.gen.line(e,t,n,r,i);return this.draw(a)}rectangle(e,t,n,r,i){let a=this.gen.rectangle(e,t,n,r,i);return this.draw(a)}ellipse(e,t,n,r,i){let a=this.gen.ellipse(e,t,n,r,i);return this.draw(a)}circle(e,t,n,r){let i=this.gen.circle(e,t,n,r);return this.draw(i)}linearPath(e,t){let n=this.gen.linearPath(e,t);return this.draw(n)}polygon(e,t){let n=this.gen.polygon(e,t);return this.draw(n)}arc(e,t,n,r,i,a,o=!1,s){let c=this.gen.arc(e,t,n,r,i,a,o,s);return this.draw(c)}curve(e,t){let n=this.gen.curve(e,t);return this.draw(n)}path(e,t){let n=this.gen.path(e,t);return this.draw(n)}},V={canvas:(e,t)=>new Ie(e,t),svg:(e,t)=>new Re(e,t),generator:e=>new Fe(e),newSeed:()=>Fe.newSeed()},H=a(async(n,i,s)=>{let l,u=i.useHtmlLabels||m(f()?.htmlLabels);l=s||`node default`;let d=n.insert(`g`).attr(`class`,l).attr(`id`,i.domId||i.id),h=d.insert(`g`).attr(`class`,`label`).attr(`style`,r(i.labelStyle)),g;g=i.label===void 0?``:typeof i.label==`string`?i.label:i.label[0];let v=await _(h,c(e(g),f()),{useHtmlLabels:u,width:i.width||f().flowchart?.wrappingWidth,cssClasses:`markdown-node-label`,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),y=v.getBBox(),b=(i?.padding??0)/2;if(u){let e=v.children[0],n=o(v),r=e.getElementsByTagName(`img`);if(r){let e=g.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...r].map(n=>new Promise(r=>{function i(){if(n.style.display=`flex`,n.style.flexDirection=`column`,e){let[e=p.fontSize]=t(f().fontSize?f().fontSize:window.getComputedStyle(document.body).fontSize),r=e*5+`px`;n.style.minWidth=r,n.style.maxWidth=r}else n.style.width=`100%`;r(n)}a(i,`setupImage`),setTimeout(()=>{n.complete&&i()}),n.addEventListener(`error`,i),n.addEventListener(`load`,i)})))}y=e.getBoundingClientRect(),n.attr(`width`,y.width),n.attr(`height`,y.height)}return u?h.attr(`transform`,`translate(`+-y.width/2+`, `+-y.height/2+`)`):h.attr(`transform`,`translate(0, `+-y.height/2+`)`),i.centerLabel&&h.attr(`transform`,`translate(`+-y.width/2+`, `+-y.height/2+`)`),h.insert(`rect`,`:first-child`),{shapeSvg:d,bbox:y,halfPadding:b,label:h}},`labelHelper`),ze=a(async(t,n,r)=>{let i=r.useHtmlLabels||m(f()?.flowchart?.htmlLabels),a=t.insert(`g`).attr(`class`,`label`).attr(`style`,r.labelStyle||``),s=await _(a,c(e(n),f()),{useHtmlLabels:i,width:r.width||f()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),l=s.getBBox(),u=r.padding/2;if(m(f()?.flowchart?.htmlLabels)){let e=s.children[0],t=o(s);l=e.getBoundingClientRect(),t.attr(`width`,l.width),t.attr(`height`,l.height)}return i?a.attr(`transform`,`translate(`+-l.width/2+`, `+-l.height/2+`)`):a.attr(`transform`,`translate(0, `+-l.height/2+`)`),r.centerLabel&&a.attr(`transform`,`translate(`+-l.width/2+`, `+-l.height/2+`)`),a.insert(`rect`,`:first-child`),{shapeSvg:t,bbox:l,halfPadding:u,label:a}},`insertLabel`),U=a((e,t)=>{let n=t.node().getBBox();e.width=n.width,e.height=n.height},`updateNodeBounds`),W=a((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`);function G(e){let t=e.map((e,t)=>`${t===0?`M`:`L`}${e.x},${e.y}`);return t.push(`Z`),t.join(` `)}a(G,`createPathFromPoints`);function K(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}a(K,`generateFullSineWavePoints`);function Be(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}a(Be,`generateCirclePoints`);var Ve=a((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`);function He(e,t){t&&e.attr(`style`,t)}a(He,`applyStyle`);async function Ue(e){let t=o(document.createElementNS(`http://www.w3.org/2000/svg`,`foreignObject`)),n=t.append(`xhtml:div`),r=f(),i=e.label;e.label&&d(e.label)&&(i=await u(e.label.replace(h.lineBreakRegex,`
|
|
2
2
|
`),r));let a=`<span class="`+(e.isNode?`nodeLabel`:`edgeLabel`)+`" `+(e.labelStyle?`style="`+e.labelStyle+`"`:``)+`>`+i+`</span>`;return n.html(c(a,r)),He(n,e.labelStyle),n.style(`display`,`inline-block`),n.style(`padding-right`,`1px`),n.style(`white-space`,`nowrap`),n.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),t.node()}a(Ue,`addHtmlLabel`);var We=a(async(t,n,r,a)=>{let o=t||``;if(typeof o==`object`&&(o=o[0]),m(f().flowchart.htmlLabels))return o=o.replace(/\\n|\n/g,`<br />`),i.info(`vertexText`+o),await Ue({isNode:a,label:e(o).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(`:`,` `)}'></i>`),labelStyle:n&&n.replace(`fill:`,`color:`)});{let e=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);e.setAttribute(`style`,n.replace(`color:`,`fill:`));let t=[];t=typeof o==`string`?o.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(o)?o:[];for(let n of t){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),t.setAttribute(`dy`,`1em`),t.setAttribute(`x`,`0`),r?t.setAttribute(`class`,`title-row`):t.setAttribute(`class`,`row`),t.textContent=n.trim(),e.appendChild(t)}return e}},`createLabel`),q=a((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`),Ge=a(async(e,t)=>{i.info(`Creating subgraph rect for `,t.id,t);let n=f(),{themeVariables:r,handDrawnSeed:a}=n,{clusterBkg:s,clusterBorder:c}=r,{labelStyles:l,nodeStyles:u,borderStyles:d,backgroundStyles:p}=x(t),h=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.id).attr(`data-look`,t.look),g=m(n.flowchart.htmlLabels),v=h.insert(`g`).attr(`class`,`cluster-label `),S=await _(v,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0}),C=S.getBBox();if(m(n.flowchart.htmlLabels)){let e=S.children[0],t=o(S);C=e.getBoundingClientRect(),t.attr(`width`,C.width),t.attr(`height`,C.height)}let w=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let T=t.height,E=t.x-w/2,D=t.y-T/2;i.trace(`Data `,t,JSON.stringify(t));let O;if(t.look===`handDrawn`){let e=V.svg(h),n=b(t,{roughness:.7,fill:s,stroke:c,fillWeight:3,seed:a}),r=e.path(q(E,D,w,T,0),n);O=h.insert(()=>(i.debug(`Rough node insert CXC`,r),r),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),O.select(`path`).attr(`style`,p.join(`;`).replace(`fill`,`stroke`))}else O=h.insert(`rect`,`:first-child`),O.attr(`style`,u).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=y(n);if(v.attr(`transform`,`translate(${t.x-C.width/2}, ${t.y-t.height/2+k})`),l){let e=v.select(`span`);e&&e.attr(`style`,l)}let A=O.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=C.height-t.padding/2,t.intersect=function(e){return Ve(t,e)},{cluster:h,labelBBox:C}},`rect`),Ke={rect:Ge,squareRect:Ge,roundedWithTitle:a(async(e,t)=>{let n=f(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:a,compositeBackground:s,compositeTitleBackground:c,nodeBorder:l}=r,u=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.id).attr(`data-id`,t.id).attr(`data-look`,t.look),d=u.insert(`g`,`:first-child`),p=u.insert(`g`).attr(`class`,`cluster-label`),h=u.append(`rect`),g=p.node().appendChild(await We(t.label,t.labelStyle,void 0,!0)),_=g.getBBox();if(m(n.flowchart.htmlLabels)){let e=g.children[0],t=o(g);_=e.getBoundingClientRect(),t.attr(`width`,_.width),t.attr(`height`,_.height)}let v=0*t.padding,y=v/2,b=(t.width<=_.width+t.padding?_.width+t.padding:t.width)+v;t.width<=_.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let x=t.height+v,S=t.height+v-_.height-6,C=t.x-b/2,w=t.y-x/2;t.width=b;let T=t.y-t.height/2-y+_.height+2,E;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=V.svg(u),r=t.rx||t.ry?n.path(q(C,w,b,x,10),{roughness:.7,fill:c,fillStyle:`solid`,stroke:l,seed:i}):n.rectangle(C,w,b,x,{seed:i});E=u.insert(()=>r,`:first-child`);let o=n.rectangle(C,T,b,S,{fill:e?a:s,fillStyle:e?`hachure`:`solid`,stroke:l,seed:i});E=u.insert(()=>r,`:first-child`),h=u.insert(()=>o)}else E=d.insert(`rect`,`:first-child`),E.attr(`class`,`outer`).attr(`x`,C).attr(`y`,w).attr(`width`,b).attr(`height`,x).attr(`data-look`,t.look),h.attr(`class`,`inner`).attr(`x`,C).attr(`y`,T).attr(`width`,b).attr(`height`,S);return p.attr(`transform`,`translate(${t.x-_.width/2}, ${w+1-(m(n.flowchart.htmlLabels)?0:3)})`),t.height=E.node().getBBox().height,t.offsetX=0,t.offsetY=_.height-t.padding/2,t.labelBBox=_,t.intersect=function(e){return Ve(t,e)},{cluster:u,labelBBox:_}},`roundedWithTitle`),noteGroup:a((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 Ve(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:a((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=f(),{nodeBorder:i}=n,a=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.id).attr(`data-look`,t.look),o=a.insert(`g`,`:first-child`),s=0*t.padding,c=t.width+s;t.diff=-t.padding;let l=t.height+s,u=t.x-c/2,d=t.y-l/2;t.width=c;let p;if(t.look===`handDrawn`){let e=V.svg(a).rectangle(u,d,c,l,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:i,seed:r});p=a.insert(()=>e,`:first-child`)}else p=o.insert(`rect`,`:first-child`),p.attr(`class`,`divider`).attr(`x`,u).attr(`y`,d).attr(`width`,c).attr(`height`,l).attr(`data-look`,t.look);return t.height=p.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return Ve(t,e)},{cluster:a,labelBBox:{}}},`divider`),kanbanSection:a(async(e,t)=>{i.info(`Creating subgraph rect for `,t.id,t);let n=f(),{themeVariables:r,handDrawnSeed:a}=n,{clusterBkg:s,clusterBorder:c}=r,{labelStyles:l,nodeStyles:u,borderStyles:d,backgroundStyles:p}=x(t),h=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.id).attr(`data-look`,t.look),g=m(n.flowchart.htmlLabels),v=h.insert(`g`).attr(`class`,`cluster-label `),S=await _(v,t.label,{style:t.labelStyle,useHtmlLabels:g,isNode:!0,width:t.width}),C=S.getBBox();if(m(n.flowchart.htmlLabels)){let e=S.children[0],t=o(S);C=e.getBoundingClientRect(),t.attr(`width`,C.width),t.attr(`height`,C.height)}let w=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;let T=t.height,E=t.x-w/2,D=t.y-T/2;i.trace(`Data `,t,JSON.stringify(t));let O;if(t.look===`handDrawn`){let e=V.svg(h),n=b(t,{roughness:.7,fill:s,stroke:c,fillWeight:4,seed:a}),r=e.path(q(E,D,w,T,t.rx),n);O=h.insert(()=>(i.debug(`Rough node insert CXC`,r),r),`:first-child`),O.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),O.select(`path`).attr(`style`,p.join(`;`).replace(`fill`,`stroke`))}else O=h.insert(`rect`,`:first-child`),O.attr(`style`,u).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,E).attr(`y`,D).attr(`width`,w).attr(`height`,T);let{subGraphTitleTopMargin:k}=y(n);if(v.attr(`transform`,`translate(${t.x-C.width/2}, ${t.y-t.height/2+k})`),l){let e=v.select(`span`);e&&e.attr(`style`,l)}let A=O.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=C.height-t.padding/2,t.intersect=function(e){return Ve(t,e)},{cluster:h,labelBBox:C}},`kanbanSection`)},qe=new Map,Je=a(async(e,t)=>{let n=await Ke[t.shape||`rect`](e,t);return qe.set(t.id,n),n},`insertCluster`),Ye=a(()=>{qe=new Map},`clear`);function Xe(e,t){return e.intersect(t)}a(Xe,`intersectNode`);var Ze=Xe;function Qe(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}}a(Qe,`intersectEllipse`);var $e=Qe;function et(e,t,n){return $e(e,t,t,n)}a(et,`intersectCircle`);var tt=et;function nt(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&&rt(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&&rt(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}}}a(nt,`intersectLine`);function rt(e,t){return e*t>0}a(rt,`sameSign`);var it=nt;function at(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=it(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}a(at,`intersectPolygon`);var J={node:Ze,circle:tt,ellipse:$e,polygon:at,rect:Ve};function ot(e,t){let{labelStyles:n}=x(t);t.labelStyle=n;let a=W(t),o=a;a||(o=`anchor`);let s=e.insert(`g`).attr(`class`,o).attr(`id`,t.domId||t.id),{cssStyles:c}=t,l=V.svg(s),u=b(t,{fill:`black`,stroke:`none`,fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let d=l.circle(0,0,2,u),f=s.insert(()=>d,`:first-child`);return f.attr(`class`,`anchor`).attr(`style`,r(c)),U(t,f),t.intersect=function(e){return i.info(`Circle intersect`,t,1,e),J.circle(t,1,e)},s}a(ot,`anchor`);function st(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}a(st,`generateArcPoints`);async function ct(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=a.width+t.padding+20,s=a.height+t.padding,c=s/2,l=c/(2.5+s/50),{cssStyles:u}=t,d=[{x:o/2,y:-s/2},{x:-o/2,y:-s/2},...st(-o/2,-s/2,-o/2,s/2,l,c,!1),{x:o/2,y:s/2},...st(o/2,s/2,o/2,-s/2,l,c,!0)],f=V.svg(i),p=b(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=G(d),h=f.path(m,p),g=i.insert(()=>h,`:first-child`);return g.attr(`class`,`basic label-container`),u&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,u),r&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,r),g.attr(`transform`,`translate(${l/2}, 0)`),U(t,g),t.intersect=function(e){return J.polygon(t,d,e)},i}a(ct,`bowTieRect`);function Y(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+`)`)}a(Y,`insertPolygonShape`);async function lt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=a.height+t.padding,s=a.width+t.padding+12,c=s,l=-o,u=[{x:12,y:l},{x:c,y:l},{x:c,y:0},{x:0,y:0},{x:0,y:l+12},{x:12,y:l}],d,{cssStyles:f}=t;if(t.look===`handDrawn`){let e=V.svg(i),n=b(t,{}),r=G(u),a=e.path(r,n);d=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-s/2}, ${o/2})`),f&&d.attr(`style`,f)}else d=Y(i,s,o,u);return r&&d.attr(`style`,r),U(t,d),t.intersect=function(e){return J.polygon(t,u,e)},i}a(lt,`card`);function ut(e,t){let{nodeStyles:n}=x(t);t.label=``;let r=e.insert(`g`).attr(`class`,W(t)).attr(`id`,t.domId??t.id),{cssStyles:i}=t,a=Math.max(28,t.width??0),o=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],s=V.svg(r),c=b(t,{});t.look!==`handDrawn`&&(c.roughness=0,c.fillStyle=`solid`);let l=G(o),u=s.path(l,c),d=r.insert(()=>u,`:first-child`);return i&&t.look!==`handDrawn`&&d.selectAll(`path`).attr(`style`,i),n&&t.look!==`handDrawn`&&d.selectAll(`path`).attr(`style`,n),t.width=28,t.height=28,t.intersect=function(e){return J.polygon(t,o,e)},r}a(ut,`choice`);async function dt(e,t,n){let{labelStyles:a,nodeStyles:o}=x(t);t.labelStyle=a;let{shapeSvg:s,bbox:c,halfPadding:l}=await H(e,t,W(t)),u=n?.padding??l,d=c.width/2+u,f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=V.svg(s),n=b(t,{}),i=e.circle(0,0,d*2,n);f=s.insert(()=>i,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,r(p))}else f=s.insert(`circle`,`:first-child`).attr(`class`,`basic label-container`).attr(`style`,o).attr(`r`,d).attr(`cx`,0).attr(`cy`,0);return U(t,f),t.calcIntersect=function(e,t){let n=e.width/2;return J.circle(e,n,t)},t.intersect=function(e){return i.info(`Circle intersect`,t,d,e),J.circle(t,d,e)},s}a(dt,`circle`);function ft(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}
|
|
3
3
|
M ${i.x},${i.y} L ${o.x},${o.y}`}a(ft,`createLine`);function pt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n,t.label=``;let a=e.insert(`g`).attr(`class`,W(t)).attr(`id`,t.domId??t.id),o=Math.max(30,t?.width??0),{cssStyles:s}=t,c=V.svg(a),l=b(t,{});t.look!==`handDrawn`&&(l.roughness=0,l.fillStyle=`solid`);let u=c.circle(0,0,o*2,l),d=ft(o),f=c.path(d,l),p=a.insert(()=>u,`:first-child`);return p.insert(()=>f),s&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,s),r&&t.look!==`handDrawn`&&p.selectAll(`path`).attr(`style`,r),U(t,p),t.intersect=function(e){return i.info(`crossedCircle intersect`,t,{radius:o,point:e}),J.circle(t,o,e)},a}a(pt,`crossedCircle`);function X(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}a(X,`generateCirclePoints`);async function mt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),l=Math.max(5,c*.1),{cssStyles:u}=t,d=[...X(s/2,-c/2,l,30,-90,0),{x:-s/2-l,y:l},...X(s/2+l*2,-l,l,20,-180,-270),...X(s/2+l*2,l,l,20,-90,-180),{x:-s/2-l,y:-c/2},...X(s/2,c/2,l,20,0,90)],f=[{x:s/2,y:-c/2-l},{x:-s/2,y:-c/2-l},...X(s/2,-c/2,l,20,-90,0),{x:-s/2-l,y:-l},...X(s/2+s*.1,-l,l,20,-180,-270),...X(s/2+s*.1,l,l,20,-90,-180),{x:-s/2-l,y:c/2},...X(s/2,c/2,l,20,0,90),{x:-s/2,y:c/2+l},{x:s/2,y:c/2+l}],p=V.svg(i),m=b(t,{fill:`none`});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=G(d).replace(`Z`,``),g=p.path(h,m),_=G(f),v=p.path(_,{...m}),y=i.insert(`g`,`:first-child`);return y.insert(()=>v,`:first-child`).attr(`stroke-opacity`,0),y.insert(()=>g,`:first-child`),y.attr(`class`,`text`),u&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,u),r&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,r),y.attr(`transform`,`translate(${l}, 0)`),o.attr(`transform`,`translate(${-s/2+l-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),U(t,y),t.intersect=function(e){return J.polygon(t,f,e)},i}a(mt,`curlyBraceLeft`);function Z(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}a(Z,`generateCirclePoints`);async function ht(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),l=Math.max(5,c*.1),{cssStyles:u}=t,d=[...Z(s/2,-c/2,l,20,-90,0),{x:s/2+l,y:-l},...Z(s/2+l*2,-l,l,20,-180,-270),...Z(s/2+l*2,l,l,20,-90,-180),{x:s/2+l,y:c/2},...Z(s/2,c/2,l,20,0,90)],f=[{x:-s/2,y:-c/2-l},{x:s/2,y:-c/2-l},...Z(s/2,-c/2,l,20,-90,0),{x:s/2+l,y:-l},...Z(s/2+l*2,-l,l,20,-180,-270),...Z(s/2+l*2,l,l,20,-90,-180),{x:s/2+l,y:c/2},...Z(s/2,c/2,l,20,0,90),{x:s/2,y:c/2+l},{x:-s/2,y:c/2+l}],p=V.svg(i),m=b(t,{fill:`none`});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=G(d).replace(`Z`,``),g=p.path(h,m),_=G(f),v=p.path(_,{...m}),y=i.insert(`g`,`:first-child`);return y.insert(()=>v,`:first-child`).attr(`stroke-opacity`,0),y.insert(()=>g,`:first-child`),y.attr(`class`,`text`),u&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,u),r&&t.look!==`handDrawn`&&y.selectAll(`path`).attr(`style`,r),y.attr(`transform`,`translate(${-l}, 0)`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),U(t,y),t.intersect=function(e){return J.polygon(t,f,e)},i}a(ht,`curlyBraceRight`);function Q(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}a(Q,`generateCirclePoints`);async function gt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=a.width+(t.padding??0),c=a.height+(t.padding??0),l=Math.max(5,c*.1),{cssStyles:u}=t,d=[...Q(s/2,-c/2,l,30,-90,0),{x:-s/2-l,y:l},...Q(s/2+l*2,-l,l,20,-180,-270),...Q(s/2+l*2,l,l,20,-90,-180),{x:-s/2-l,y:-c/2},...Q(s/2,c/2,l,20,0,90)],f=[...Q(-s/2+l+l/2,-c/2,l,20,-90,-180),{x:s/2-l/2,y:l},...Q(-s/2-l/2,-l,l,20,0,90),...Q(-s/2-l/2,l,l,20,-90,0),{x:s/2-l/2,y:-l},...Q(-s/2+l+l/2,c/2,l,30,-180,-270)],p=[{x:s/2,y:-c/2-l},{x:-s/2,y:-c/2-l},...Q(s/2,-c/2,l,20,-90,0),{x:-s/2-l,y:-l},...Q(s/2+l*2,-l,l,20,-180,-270),...Q(s/2+l*2,l,l,20,-90,-180),{x:-s/2-l,y:c/2},...Q(s/2,c/2,l,20,0,90),{x:-s/2,y:c/2+l},{x:s/2-l-l/2,y:c/2+l},...Q(-s/2+l+l/2,-c/2,l,20,-90,-180),{x:s/2-l/2,y:l},...Q(-s/2-l/2,-l,l,20,0,90),...Q(-s/2-l/2,l,l,20,-90,0),{x:s/2-l/2,y:-l},...Q(-s/2+l+l/2,c/2,l,30,-180,-270)],m=V.svg(i),h=b(t,{fill:`none`});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=G(d).replace(`Z`,``),_=m.path(g,h),v=G(f).replace(`Z`,``),y=m.path(v,h),S=G(p),C=m.path(S,{...h}),w=i.insert(`g`,`:first-child`);return w.insert(()=>C,`:first-child`).attr(`stroke-opacity`,0),w.insert(()=>_,`:first-child`),w.insert(()=>y,`:first-child`),w.attr(`class`,`text`),u&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,u),r&&t.look!==`handDrawn`&&w.selectAll(`path`).attr(`style`,r),w.attr(`transform`,`translate(${l-l/4}, 0)`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),U(t,w),t.intersect=function(e){return J.polygon(t,p,e)},i}a(gt,`curlyBraces`);async function _t(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=Math.max(80,(a.width+(t.padding??0)*2)*1.25,t?.width??0),s=Math.max(20,a.height+(t.padding??0)*2,t?.height??0),c=s/2,{cssStyles:l}=t,u=V.svg(i),d=b(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=o,p=s,m=f-c,h=p/4,g=[{x:m,y:0},{x:h,y:0},{x:0,y:p/2},{x:h,y:p},{x:m,y:p},...Be(-m,-p/2,c,50,270,90)],_=G(g),v=u.path(_,d),y=i.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container`),l&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,l),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),y.attr(`transform`,`translate(${-o/2}, ${-s/2})`),U(t,y),t.intersect=function(e){return J.polygon(t,g,e)},i}a(_t,`curvedTrapezoid`);var vt=a((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`),yt=a((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`),bt=a((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`);async function xt(e,t){let{labelStyles:n,nodeStyles:i}=x(t);t.labelStyle=n;let{shapeSvg:a,bbox:o,label:s}=await H(e,t,W(t)),c=Math.max(o.width+t.padding,t.width??0),l=c/2,u=l/(2.5+c/50),d=Math.max(o.height+u+t.padding,t.height??0),f,{cssStyles:p}=t;if(t.look===`handDrawn`){let e=V.svg(a),n=yt(0,0,c,d,l,u),r=bt(0,u,c,d,l,u),i=e.path(n,b(t,{})),o=e.path(r,b(t,{fill:`none`}));f=a.insert(()=>o,`:first-child`),f=a.insert(()=>i,`:first-child`),f.attr(`class`,`basic label-container`),p&&f.attr(`style`,p)}else{let e=vt(0,0,c,d,l,u);f=a.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,r(p)).attr(`style`,i)}return f.attr(`label-offset-y`,u),f.attr(`transform`,`translate(${-c/2}, ${-(d/2+u)})`),U(t,f),s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+(t.padding??0)/1.5-(o.y-(o.top??0))})`),t.intersect=function(e){let n=J.rect(t,e),r=n.x-(t.x??0);if(l!=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-u)){let i=u*u*(1-r*r/(l*l));i>0&&(i=Math.sqrt(i)),i=u-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},a}a(xt,`cylinder`);async function St(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=a.width+t.padding,c=a.height+t.padding,l=c*.2,u=-s/2,d=-c/2-l/2,{cssStyles:f}=t,p=V.svg(i),m=b(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:u,y:d+l},{x:-u,y:d+l},{x:-u,y:-d},{x:u,y:-d},{x:u,y:d},{x:-u,y:d},{x:-u,y:d+l}],g=p.polygon(h.map(e=>[e.x,e.y]),m),_=i.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container`),f&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,r),o.attr(`transform`,`translate(${u+(t.padding??0)/2-(a.x-(a.left??0))}, ${d+l+(t.padding??0)/2-(a.y-(a.top??0))})`),U(t,_),t.intersect=function(e){return J.rect(t,e)},i}a(St,`dividedRectangle`);async function Ct(e,t){let{labelStyles:n,nodeStyles:a}=x(t);t.labelStyle=n;let{shapeSvg:o,bbox:s,halfPadding:c}=await H(e,t,W(t)),l=s.width/2+c+5,u=s.width/2+c,d,{cssStyles:f}=t;if(t.look===`handDrawn`){let e=V.svg(o),n=b(t,{roughness:.2,strokeWidth:2.5}),i=b(t,{roughness:.2,strokeWidth:1.5}),a=e.circle(0,0,l*2,n),s=e.circle(0,0,u*2,i);d=o.insert(`g`,`:first-child`),d.attr(`class`,r(t.cssClasses)).attr(`style`,r(f)),d.node()?.appendChild(a),d.node()?.appendChild(s)}else{d=o.insert(`g`,`:first-child`);let e=d.insert(`circle`,`:first-child`),t=d.insert(`circle`);d.attr(`class`,`basic label-container`).attr(`style`,a),e.attr(`class`,`outer-circle`).attr(`style`,a).attr(`r`,l).attr(`cx`,0).attr(`cy`,0),t.attr(`class`,`inner-circle`).attr(`style`,a).attr(`r`,u).attr(`cx`,0).attr(`cy`,0)}return U(t,d),t.intersect=function(e){return i.info(`DoubleCircle intersect`,t,l,e),J.circle(t,l,e)},o}a(Ct,`doublecircle`);function wt(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:a}=x(t);t.label=``,t.labelStyle=r;let o=e.insert(`g`).attr(`class`,W(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,c=V.svg(o),{nodeBorder:l}=n,u=b(t,{fillStyle:`solid`});t.look!==`handDrawn`&&(u.roughness=0);let d=c.circle(0,0,14,u),f=o.insert(()=>d,`:first-child`);return f.selectAll(`path`).attr(`style`,`fill: ${l} !important;`),s&&s.length>0&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&f.selectAll(`path`).attr(`style`,a),U(t,f),t.intersect=function(e){return i.info(`filledCircle intersect`,t,{radius:7,point:e}),J.circle(t,7,e)},o}a(wt,`filledCircle`);async function Tt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:a,bbox:o,label:s}=await H(e,t,W(t)),c=o.width+(t.padding??0),l=c+o.height,u=c+o.height,d=[{x:0,y:-l},{x:u,y:-l},{x:u/2,y:0}],{cssStyles:f}=t,p=V.svg(a),m=b(t,{});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=G(d),g=p.path(h,m),_=a.insert(()=>g,`:first-child`).attr(`transform`,`translate(${-l/2}, ${l/2})`);return f&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,r),t.width=c,t.height=l,U(t,_),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-l/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(e){return i.info(`Triangle intersect`,t,d,e),J.polygon(t,d,e)},a}a(Tt,`flippedTriangle`);function Et(e,t,{dir:n,config:{state:r,themeVariables:i}}){let{nodeStyles:a}=x(t);t.label=``;let o=e.insert(`g`).attr(`class`,W(t)).attr(`id`,t.domId??t.id),{cssStyles:s}=t,c=Math.max(70,t?.width??0),l=Math.max(10,t?.height??0);n===`LR`&&(c=Math.max(10,t?.width??0),l=Math.max(70,t?.height??0));let u=-1*c/2,d=-1*l/2,f=V.svg(o),p=b(t,{stroke:i.lineColor,fill:i.lineColor});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=f.rectangle(u,d,c,l,p),h=o.insert(()=>m,`:first-child`);s&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,s),a&&t.look!==`handDrawn`&&h.selectAll(`path`).attr(`style`,a),U(t,h);let g=r?.padding??0;return t.width&&t.height&&(t.width+=g/2||0,t.height+=g/2||0),t.intersect=function(e){return J.rect(t,e)},o}a(Et,`forkJoin`);async function Dt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:a,bbox:o}=await H(e,t,W(t)),s=Math.max(80,o.width+(t.padding??0)*2,t?.width??0),c=Math.max(50,o.height+(t.padding??0)*2,t?.height??0),l=c/2,{cssStyles:u}=t,d=V.svg(a),f=b(t,{});t.look!==`handDrawn`&&(f.roughness=0,f.fillStyle=`solid`);let p=[{x:-s/2,y:-c/2},{x:s/2-l,y:-c/2},...Be(-s/2+l,0,l,50,90,270),{x:s/2-l,y:c/2},{x:-s/2,y:c/2}],m=G(p),h=d.path(m,f),g=a.insert(()=>h,`:first-child`);return g.attr(`class`,`basic label-container`),u&&t.look!==`handDrawn`&&g.selectChildren(`path`).attr(`style`,u),r&&t.look!==`handDrawn`&&g.selectChildren(`path`).attr(`style`,r),U(t,g),t.intersect=function(e){return i.info(`Pill intersect`,t,{radius:l,point:e}),J.polygon(t,p,e)},a}a(Dt,`halfRoundedRectangle`);async function Ot(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=a.height+(t.padding??0),s=a.width+(t.padding??0)*2.5,{cssStyles:c}=t,l=V.svg(i),u=b(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=s/2,f=d/6;d+=f;let p=o/2,m=p/2,h=d-m,g=[{x:-h,y:-p},{x:0,y:-p},{x:h,y:-p},{x:d,y:0},{x:h,y:p},{x:0,y:p},{x:-h,y:p},{x:-d,y:0}],_=G(g),v=l.path(_,u),y=i.insert(()=>v,`:first-child`);return y.attr(`class`,`basic label-container`),c&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,c),r&&t.look!==`handDrawn`&&y.selectChildren(`path`).attr(`style`,r),t.width=s,t.height=o,U(t,y),t.intersect=function(e){return J.polygon(t,g,e)},i}a(Ot,`hexagon`);async function kt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.label=``,t.labelStyle=n;let{shapeSvg:a}=await H(e,t,W(t)),o=Math.max(30,t?.width??0),s=Math.max(30,t?.height??0),{cssStyles:c}=t,l=V.svg(a),u=b(t,{});t.look!==`handDrawn`&&(u.roughness=0,u.fillStyle=`solid`);let d=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],f=G(d),p=l.path(f,u),m=a.insert(()=>p,`:first-child`);return m.attr(`class`,`basic label-container`),c&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,c),r&&t.look!==`handDrawn`&&m.selectChildren(`path`).attr(`style`,r),m.attr(`transform`,`translate(${-o/2}, ${-s/2})`),U(t,m),t.intersect=function(e){return i.info(`Pill intersect`,t,{points:d}),J.polygon(t,d,e)},a}a(kt,`hourglass`);async function At(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:a}=x(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=r?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,label:f}=await H(e,t,`icon-shape default`),p=t.pos===`t`,m=c,h=c,{nodeBorder:g}=n,{stylesMap:_}=C(t),y=-h/2,S=-m/2,w=t.label?8:0,T=V.svg(u),E=b(t,{stroke:`none`,fill:`none`});t.look!==`handDrawn`&&(E.roughness=0,E.fillStyle=`solid`);let D=T.rectangle(y,S,h,m,E),O=Math.max(h,d.width),k=m+d.height+w,A=T.rectangle(-O/2,-k/2,O,k,{...E,fill:`transparent`,stroke:`none`}),j=u.insert(()=>D,`:first-child`),M=u.insert(()=>A);if(t.icon){let e=u.append(`g`);e.html(`<g>${await v(t.icon,{height:c,width:c,fallbackPrefix:``})}</g>`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${p?d.height/2+w/2-i/2-o:-d.height/2-w/2-i/2-o})`),e.attr(`style`,`color: ${_.get(`stroke`)??g};`)}return f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${p?-k/2:k/2-d.height})`),j.attr(`transform`,`translate(0,${p?d.height/2+w/2:-d.height/2-w/2})`),U(t,M),t.intersect=function(e){if(i.info(`iconSquare intersect`,t,e),!t.label)return J.rect(t,e);let n=t.x??0,r=t.y??0,a=t.height??0,o=[];return o=p?[{x:n-d.width/2,y:r-a/2},{x:n+d.width/2,y:r-a/2},{x:n+d.width/2,y:r-a/2+d.height+w},{x:n+h/2,y:r-a/2+d.height+w},{x:n+h/2,y:r+a/2},{x:n-h/2,y:r+a/2},{x:n-h/2,y:r-a/2+d.height+w},{x:n-d.width/2,y:r-a/2+d.height+w}]:[{x:n-h/2,y:r-a/2},{x:n+h/2,y:r-a/2},{x:n+h/2,y:r-a/2+m},{x:n+d.width/2,y:r-a/2+m},{x:n+d.width/2/2,y:r+a/2},{x:n-d.width/2,y:r+a/2},{x:n-d.width/2,y:r-a/2+m},{x:n-h/2,y:r-a/2+m}],J.polygon(t,o,e)},u}a(At,`icon`);async function jt(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:a}=x(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=r?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,label:f}=await H(e,t,`icon-shape default`),p=t.label?8:0,m=t.pos===`t`,{nodeBorder:h,mainBkg:g}=n,{stylesMap:_}=C(t),y=V.svg(u),S=b(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`),S.stroke=_.get(`fill`)??g;let w=u.append(`g`);t.icon&&w.html(`<g>${await v(t.icon,{height:c,width:c,fallbackPrefix:``})}</g>`);let T=w.node().getBBox(),E=T.width,D=T.height,O=T.x,k=T.y,A=Math.max(E,D)*Math.SQRT2+40,j=y.circle(0,0,A,S),M=Math.max(A,d.width),N=A+d.height+p,P=y.rectangle(-M/2,-N/2,M,N,{...S,fill:`transparent`,stroke:`none`}),F=u.insert(()=>j,`:first-child`),I=u.insert(()=>P);return w.attr(`transform`,`translate(${-E/2-O},${m?d.height/2+p/2-D/2-k:-d.height/2-p/2-D/2-k})`),w.attr(`style`,`color: ${_.get(`stroke`)??h};`),f.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-N/2:N/2-d.height})`),F.attr(`transform`,`translate(0,${m?d.height/2+p/2:-d.height/2-p/2})`),U(t,I),t.intersect=function(e){return i.info(`iconSquare intersect`,t,e),J.rect(t,e)},u}a(jt,`iconCircle`);async function Mt(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:a}=x(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=r?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await H(e,t,`icon-shape default`),m=t.pos===`t`,h=c+f*2,g=c+f*2,{nodeBorder:_,mainBkg:y}=n,{stylesMap:S}=C(t),w=-g/2,T=-h/2,E=t.label?8:0,D=V.svg(u),O=b(t,{});t.look!==`handDrawn`&&(O.roughness=0,O.fillStyle=`solid`),O.stroke=S.get(`fill`)??y;let k=D.path(q(w,T,g,h,5),O),A=Math.max(g,d.width),j=h+d.height+E,M=D.rectangle(-A/2,-j/2,A,j,{...O,fill:`transparent`,stroke:`none`}),N=u.insert(()=>k,`:first-child`).attr(`class`,`icon-shape2`),P=u.insert(()=>M);if(t.icon){let e=u.append(`g`);e.html(`<g>${await v(t.icon,{height:c,width:c,fallbackPrefix:``})}</g>`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+E/2-i/2-o:-d.height/2-E/2-i/2-o})`),e.attr(`style`,`color: ${S.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-j/2:j/2-d.height})`),N.attr(`transform`,`translate(0,${m?d.height/2+E/2:-d.height/2-E/2})`),U(t,P),t.intersect=function(e){if(i.info(`iconSquare intersect`,t,e),!t.label)return J.rect(t,e);let n=t.x??0,r=t.y??0,a=t.height??0,o=[];return o=m?[{x:n-d.width/2,y:r-a/2},{x:n+d.width/2,y:r-a/2},{x:n+d.width/2,y:r-a/2+d.height+E},{x:n+g/2,y:r-a/2+d.height+E},{x:n+g/2,y:r+a/2},{x:n-g/2,y:r+a/2},{x:n-g/2,y:r-a/2+d.height+E},{x:n-d.width/2,y:r-a/2+d.height+E}]:[{x:n-g/2,y:r-a/2},{x:n+g/2,y:r-a/2},{x:n+g/2,y:r-a/2+h},{x:n+d.width/2,y:r-a/2+h},{x:n+d.width/2/2,y:r+a/2},{x:n-d.width/2,y:r+a/2},{x:n-d.width/2,y:r-a/2+h},{x:n-g/2,y:r-a/2+h}],J.polygon(t,o,e)},u}a(Mt,`iconRounded`);async function Nt(e,t,{config:{themeVariables:n,flowchart:r}}){let{labelStyles:a}=x(t);t.labelStyle=a;let o=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(o,s),l=r?.wrappingWidth;t.width=Math.max(c,l??0);let{shapeSvg:u,bbox:d,halfPadding:f,label:p}=await H(e,t,`icon-shape default`),m=t.pos===`t`,h=c+f*2,g=c+f*2,{nodeBorder:_,mainBkg:y}=n,{stylesMap:S}=C(t),w=-g/2,T=-h/2,E=t.label?8:0,D=V.svg(u),O=b(t,{});t.look!==`handDrawn`&&(O.roughness=0,O.fillStyle=`solid`),O.stroke=S.get(`fill`)??y;let k=D.path(q(w,T,g,h,.1),O),A=Math.max(g,d.width),j=h+d.height+E,M=D.rectangle(-A/2,-j/2,A,j,{...O,fill:`transparent`,stroke:`none`}),N=u.insert(()=>k,`:first-child`),P=u.insert(()=>M);if(t.icon){let e=u.append(`g`);e.html(`<g>${await v(t.icon,{height:c,width:c,fallbackPrefix:``})}</g>`);let n=e.node().getBBox(),r=n.width,i=n.height,a=n.x,o=n.y;e.attr(`transform`,`translate(${-r/2-a},${m?d.height/2+E/2-i/2-o:-d.height/2-E/2-i/2-o})`),e.attr(`style`,`color: ${S.get(`stroke`)??_};`)}return p.attr(`transform`,`translate(${-d.width/2-(d.x-(d.left??0))},${m?-j/2:j/2-d.height})`),N.attr(`transform`,`translate(0,${m?d.height/2+E/2:-d.height/2-E/2})`),U(t,P),t.intersect=function(e){if(i.info(`iconSquare intersect`,t,e),!t.label)return J.rect(t,e);let n=t.x??0,r=t.y??0,a=t.height??0,o=[];return o=m?[{x:n-d.width/2,y:r-a/2},{x:n+d.width/2,y:r-a/2},{x:n+d.width/2,y:r-a/2+d.height+E},{x:n+g/2,y:r-a/2+d.height+E},{x:n+g/2,y:r+a/2},{x:n-g/2,y:r+a/2},{x:n-g/2,y:r-a/2+d.height+E},{x:n-d.width/2,y:r-a/2+d.height+E}]:[{x:n-g/2,y:r-a/2},{x:n+g/2,y:r-a/2},{x:n+g/2,y:r-a/2+h},{x:n+d.width/2,y:r-a/2+h},{x:n+d.width/2/2,y:r+a/2},{x:n-d.width/2,y:r+a/2},{x:n-d.width/2,y:r-a/2+h},{x:n-g/2,y:r-a/2+h}],J.polygon(t,o,e)},u}a(Nt,`iconSquare`);async function Pt(e,t,{config:{flowchart:n}}){let r=new Image;r.src=t?.img??``,await r.decode();let a=Number(r.naturalWidth.toString().replace(`px`,``)),o=Number(r.naturalHeight.toString().replace(`px`,``));t.imageAspectRatio=a/o;let{labelStyles:s}=x(t);t.labelStyle=s;let c=n?.wrappingWidth;t.defaultWidth=n?.wrappingWidth;let l=Math.max(t.label?c??0:0,t?.assetWidth??a),u=t.constraint===`on`&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:l,d=t.constraint===`on`?u/t.imageAspectRatio:t?.assetHeight??o;t.width=Math.max(u,c??0);let{shapeSvg:f,bbox:p,label:m}=await H(e,t,`image-shape default`),h=t.pos===`t`,g=-u/2,_=-d/2,v=t.label?8:0,y=V.svg(f),S=b(t,{});t.look!==`handDrawn`&&(S.roughness=0,S.fillStyle=`solid`);let C=y.rectangle(g,_,u,d,S),w=Math.max(u,p.width),T=d+p.height+v,E=y.rectangle(-w/2,-T/2,w,T,{...S,fill:`none`,stroke:`none`}),D=f.insert(()=>C,`:first-child`),O=f.insert(()=>E);if(t.img){let e=f.append(`image`);e.attr(`href`,t.img),e.attr(`width`,u),e.attr(`height`,d),e.attr(`preserveAspectRatio`,`none`),e.attr(`transform`,`translate(${-u/2},${h?T/2-d:-T/2})`)}return m.attr(`transform`,`translate(${-p.width/2-(p.x-(p.left??0))},${h?-d/2-p.height/2-v/2:d/2-p.height/2+v/2})`),D.attr(`transform`,`translate(0,${h?p.height/2+v/2:-p.height/2-v/2})`),U(t,O),t.intersect=function(e){if(i.info(`iconSquare intersect`,t,e),!t.label)return J.rect(t,e);let n=t.x??0,r=t.y??0,a=t.height??0,o=[];return o=h?[{x:n-p.width/2,y:r-a/2},{x:n+p.width/2,y:r-a/2},{x:n+p.width/2,y:r-a/2+p.height+v},{x:n+u/2,y:r-a/2+p.height+v},{x:n+u/2,y:r+a/2},{x:n-u/2,y:r+a/2},{x:n-u/2,y:r-a/2+p.height+v},{x:n-p.width/2,y:r-a/2+p.height+v}]:[{x:n-u/2,y:r-a/2},{x:n+u/2,y:r-a/2},{x:n+u/2,y:r-a/2+d},{x:n+p.width/2,y:r-a/2+d},{x:n+p.width/2/2,y:r+a/2},{x:n-p.width/2,y:r+a/2},{x:n-p.width/2,y:r-a/2+d},{x:n-u/2,y:r-a/2+d}],J.polygon(t,o,e)},f}a(Pt,`imageSquare`);async function Ft(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),s=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}],l,{cssStyles:u}=t;if(t.look===`handDrawn`){let e=V.svg(i),n=b(t,{}),r=G(c),a=e.path(r,n);l=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2}, ${s/2})`),u&&l.attr(`style`,u)}else l=Y(i,o,s,c);return r&&l.attr(`style`,r),t.width=o,t.height=s,U(t,l),t.intersect=function(e){return J.polygon(t,c,e)},i}a(Ft,`inv_trapezoid`);async function It(e,t,n){let{labelStyles:i,nodeStyles:a}=x(t);t.labelStyle=i;let{shapeSvg:o,bbox:s}=await H(e,t,W(t)),c=Math.max(s.width+n.labelPaddingX*2,t?.width||0),l=Math.max(s.height+n.labelPaddingY*2,t?.height||0),u=-c/2,d=-l/2,f,{rx:p,ry:m}=t,{cssStyles:h}=t;if(n?.rx&&n.ry&&(p=n.rx,m=n.ry),t.look===`handDrawn`){let e=V.svg(o),n=b(t,{}),i=p||m?e.path(q(u,d,c,l,p||0),n):e.rectangle(u,d,c,l,n);f=o.insert(()=>i,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,r(h))}else f=o.insert(`rect`,`:first-child`),f.attr(`class`,`basic label-container`).attr(`style`,a).attr(`rx`,r(p)).attr(`ry`,r(m)).attr(`x`,u).attr(`y`,d).attr(`width`,c).attr(`height`,l);return U(t,f),t.calcIntersect=function(e,t){return J.rect(e,t)},t.intersect=function(e){return J.rect(t,e)},o}a(It,`drawRect`);async function Lt(e,t){let{shapeSvg:n,bbox:r,label:i}=await H(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))})`),U(t,a),t.intersect=function(e){return J.rect(t,e)},n}a(Lt,`labelRect`);async function Rt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=Math.max(a.width+(t.padding??0),t?.width??0),s=Math.max(a.height+(t.padding??0),t?.height??0),c=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-(3*s)/6,y:-s}],l,{cssStyles:u}=t;if(t.look===`handDrawn`){let e=V.svg(i),n=b(t,{}),r=G(c),a=e.path(r,n);l=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2}, ${s/2})`),u&&l.attr(`style`,u)}else l=Y(i,o,s,c);return r&&l.attr(`style`,r),t.width=o,t.height=s,U(t,l),t.intersect=function(e){return J.polygon(t,c,e)},i}a(Rt,`lean_left`);async function zt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=Math.max(a.width+(t.padding??0),t?.width??0),s=Math.max(a.height+(t.padding??0),t?.height??0),c=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}],l,{cssStyles:u}=t;if(t.look===`handDrawn`){let e=V.svg(i),n=b(t,{}),r=G(c),a=e.path(r,n);l=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2}, ${s/2})`),u&&l.attr(`style`,u)}else l=Y(i,o,s,c);return r&&l.attr(`style`,r),t.width=o,t.height=s,U(t,l),t.intersect=function(e){return J.polygon(t,c,e)},i}a(zt,`lean_right`);function Bt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.label=``,t.labelStyle=n;let a=e.insert(`g`).attr(`class`,W(t)).attr(`id`,t.domId??t.id),{cssStyles:o}=t,s=Math.max(35,t?.width??0),c=Math.max(35,t?.height??0),l=[{x:s,y:0},{x:0,y:c+7/2},{x:s-14,y:c+7/2},{x:0,y:2*c},{x:s,y:c-7/2},{x:14,y:c-7/2}],u=V.svg(a),d=b(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=G(l),p=u.path(f,d),m=a.insert(()=>p,`:first-child`);return o&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,o),r&&t.look!==`handDrawn`&&m.selectAll(`path`).attr(`style`,r),m.attr(`transform`,`translate(-${s/2},${-c})`),U(t,m),t.intersect=function(e){return i.info(`lightningBolt intersect`,t,e),J.polygon(t,l,e)},a}a(Bt,`lightningBolt`);var Vt=a((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`),Ht=a((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`),Ut=a((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`);async function Wt(e,t){let{labelStyles:n,nodeStyles:i}=x(t);t.labelStyle=n;let{shapeSvg:a,bbox:o,label:s}=await H(e,t,W(t)),c=Math.max(o.width+(t.padding??0),t.width??0),l=c/2,u=l/(2.5+c/50),d=Math.max(o.height+u+(t.padding??0),t.height??0),f=d*.1,p,{cssStyles:m}=t;if(t.look===`handDrawn`){let e=V.svg(a),n=Ht(0,0,c,d,l,u,f),r=Ut(0,u,c,d,l,u),i=b(t,{}),o=e.path(n,i),s=e.path(r,i);a.insert(()=>s,`:first-child`).attr(`class`,`line`),p=a.insert(()=>o,`:first-child`),p.attr(`class`,`basic label-container`),m&&p.attr(`style`,m)}else{let e=Vt(0,0,c,d,l,u,f);p=a.insert(`path`,`:first-child`).attr(`d`,e).attr(`class`,`basic label-container`).attr(`style`,r(m)).attr(`style`,i)}return p.attr(`label-offset-y`,u),p.attr(`transform`,`translate(${-c/2}, ${-(d/2+u)})`),U(t,p),s.attr(`transform`,`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+u-(o.y-(o.top??0))})`),t.intersect=function(e){let n=J.rect(t,e),r=n.x-(t.x??0);if(l!=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-u)){let i=u*u*(1-r*r/(l*l));i>0&&(i=Math.sqrt(i)),i=u-i,e.y-(t.y??0)>0&&(i=-i),n.y+=i}return n},a}a(Wt,`linedCylinder`);async function Gt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=c/4,u=c+l,{cssStyles:d}=t,f=V.svg(i),p=b(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=[{x:-s/2-s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:u/2},...K(-s/2-s/2*.1,u/2,s/2+s/2*.1,u/2,l,.8),{x:s/2+s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:-u/2},{x:-s/2,y:-u/2},{x:-s/2,y:u/2*1.1},{x:-s/2,y:-u/2}],h=f.polygon(m.map(e=>[e.x,e.y]),p),g=i.insert(()=>h,`:first-child`);return g.attr(`class`,`basic label-container`),d&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,d),r&&t.look!==`handDrawn`&&g.selectAll(`path`).attr(`style`,r),g.attr(`transform`,`translate(0,${-l/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)+s/2*.1/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l/2-(a.y-(a.top??0))})`),U(t,g),t.intersect=function(e){return J.polygon(t,m,e)},i}a(Gt,`linedWaveEdgedRect`);async function Kt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=-s/2,u=-c/2,{cssStyles:d}=t,f=V.svg(i),p=b(t,{}),m=[{x:l-5,y:u+5},{x:l-5,y:u+c+5},{x:l+s-5,y:u+c+5},{x:l+s-5,y:u+c},{x:l+s,y:u+c},{x:l+s,y:u+c-5},{x:l+s+5,y:u+c-5},{x:l+s+5,y:u-5},{x:l+5,y:u-5},{x:l+5,y:u},{x:l,y:u},{x:l,y:u+5}],h=[{x:l,y:u+5},{x:l+s-5,y:u+5},{x:l+s-5,y:u+c},{x:l+s,y:u+c},{x:l+s,y:u},{x:l,y:u}];t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let g=G(m),_=f.path(g,p),v=G(h),y=f.path(v,{...p,fill:`none`}),S=i.insert(()=>y,`:first-child`);return S.insert(()=>_,`:first-child`),S.attr(`class`,`basic label-container`),d&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,d),r&&t.look!==`handDrawn`&&S.selectAll(`path`).attr(`style`,r),o.attr(`transform`,`translate(${-(a.width/2)-5-(a.x-(a.left??0))}, ${-(a.height/2)+5-(a.y-(a.top??0))})`),U(t,S),t.intersect=function(e){return J.polygon(t,m,e)},i}a(Kt,`multiRect`);async function qt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=c/4,u=c+l,d=-s/2,f=-u/2,{cssStyles:p}=t,m=K(d-5,f+u+5,d+s-5,f+u+5,l,.8),h=m?.[m.length-1],g=[{x:d-5,y:f+5},{x:d-5,y:f+u+5},...m,{x:d+s-5,y:h.y-5},{x:d+s,y:h.y-5},{x:d+s,y:h.y-10},{x:d+s+5,y:h.y-10},{x:d+s+5,y:f-5},{x:d+5,y:f-5},{x:d+5,y:f},{x:d,y:f},{x:d,y:f+5}],_=[{x:d,y:f+5},{x:d+s-5,y:f+5},{x:d+s-5,y:h.y-5},{x:d+s,y:h.y-5},{x:d+s,y:f},{x:d,y:f}],v=V.svg(i),y=b(t,{});t.look!==`handDrawn`&&(y.roughness=0,y.fillStyle=`solid`);let S=G(g),C=v.path(S,y),w=G(_),T=v.path(w,y),E=i.insert(()=>C,`:first-child`);return E.insert(()=>T),E.attr(`class`,`basic label-container`),p&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),E.attr(`transform`,`translate(0,${-l/2})`),o.attr(`transform`,`translate(${-(a.width/2)-5-(a.x-(a.left??0))}, ${-(a.height/2)+5-l/2-(a.y-(a.top??0))})`),U(t,E),t.intersect=function(e){return J.polygon(t,g,e)},i}a(qt,`multiWaveEdgedRectangle`);async function Jt(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=x(t);t.labelStyle=r,t.useHtmlLabels||g().flowchart?.htmlLabels!==!1||(t.centerLabel=!0);let{shapeSvg:a,bbox:o,label:s}=await H(e,t,W(t)),c=Math.max(o.width+(t.padding??0)*2,t?.width??0),l=Math.max(o.height+(t.padding??0)*2,t?.height??0),u=-c/2,d=-l/2,{cssStyles:f}=t,p=V.svg(a),m=b(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=p.rectangle(u,d,c,l,m),_=a.insert(()=>h,`:first-child`);return _.attr(`class`,`basic label-container`),f&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,f),i&&t.look!==`handDrawn`&&_.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),U(t,_),t.intersect=function(e){return J.rect(t,e)},a}a(Jt,`note`);var Yt=a((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 Xt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=a.width+t.padding+(a.height+t.padding),s=.5,c=[{x:o/2,y:0},{x:o,y:-o/2},{x:o/2,y:-o},{x:0,y:-o/2}],l,{cssStyles:u}=t;if(t.look===`handDrawn`){let e=V.svg(i),n=b(t,{}),r=Yt(0,0,o),a=e.path(r,n);l=i.insert(()=>a,`:first-child`).attr(`transform`,`translate(${-o/2+s}, ${o/2})`),u&&l.attr(`style`,u)}else l=Y(i,o,o,c),l.attr(`transform`,`translate(${-o/2+s}, ${o/2})`);return r&&l.attr(`style`,r),U(t,l),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=J.polygon(e,r,t);return{x:i.x-.5,y:i.y-.5}},t.intersect=function(e){return this.calcIntersect(t,e)},i}a(Xt,`question`);async function Zt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=Math.max(a.width+(t.padding??0),t?.width??0),c=Math.max(a.height+(t.padding??0),t?.height??0),l=-s/2,u=-c/2,d=u/2,f=[{x:l+d,y:u},{x:l,y:0},{x:l+d,y:-u},{x:-l,y:-u},{x:-l,y:u}],{cssStyles:p}=t,m=V.svg(i),h=b(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=G(f),_=m.path(g,h),v=i.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container`),p&&t.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,r),v.attr(`transform`,`translate(${-d/2},0)`),o.attr(`transform`,`translate(${-d/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),U(t,v),t.intersect=function(e){return J.polygon(t,f,e)},i}a(Zt,`rect_left_inv_arrow`);async function Qt(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let a;a=t.cssClasses?`node `+t.cssClasses:`node default`;let s=e.insert(`g`).attr(`class`,a).attr(`id`,t.domId||t.id),c=s.insert(`g`),l=s.insert(`g`).attr(`class`,`label`).attr(`style`,r),u=t.description,d=t.label,p=l.node().appendChild(await We(d,t.labelStyle,!0,!0)),h={width:0,height:0};if(m(f()?.flowchart?.htmlLabels)){let e=p.children[0],t=o(p);h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}i.info(`Text 2`,u);let g=u||[],_=p.getBBox(),v=l.node().appendChild(await We(g.join?g.join(`<br/>`):g,t.labelStyle,!0,!0)),y=v.children[0],S=o(v);h=y.getBoundingClientRect(),S.attr(`width`,h.width),S.attr(`height`,h.height);let C=(t.padding||0)/2;o(v).attr(`transform`,`translate( `+(h.width>_.width?0:(_.width-h.width)/2)+`, `+(_.height+C+5)+`)`),o(p).attr(`transform`,`translate( `+(h.width<_.width?0:-(_.width-h.width)/2)+`, 0)`),h=l.node().getBBox(),l.attr(`transform`,`translate(`+-h.width/2+`, `+(-h.height/2-C+3)+`)`);let w=h.width+(t.padding||0),T=h.height+(t.padding||0),E=-h.width/2-C,D=-h.height/2-C,O,k;if(t.look===`handDrawn`){let e=V.svg(s),n=b(t,{}),r=e.path(q(E,D,w,T,t.rx||0),n),a=e.line(-h.width/2-C,-h.height/2-C+_.height+C,h.width/2+C,-h.height/2-C+_.height+C,n);k=s.insert(()=>(i.debug(`Rough node insert CXC`,r),a),`:first-child`),O=s.insert(()=>(i.debug(`Rough node insert CXC`,r),r),`:first-child`)}else O=c.insert(`rect`,`:first-child`),k=c.insert(`line`),O.attr(`class`,`outer title-state`).attr(`style`,r).attr(`x`,-h.width/2-C).attr(`y`,-h.height/2-C).attr(`width`,h.width+(t.padding||0)).attr(`height`,h.height+(t.padding||0)),k.attr(`class`,`divider`).attr(`x1`,-h.width/2-C).attr(`x2`,h.width/2+C).attr(`y1`,-h.height/2-C+_.height+C).attr(`y2`,-h.height/2-C+_.height+C);return U(t,O),t.intersect=function(e){return J.rect(t,e)},s}a(Qt,`rectWithTitle`);function $t(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}a($t,`generateArcPoints`);async function en(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=t?.padding??0,s=t?.padding??0,c=(t?.width?t?.width:a.width)+o*2,l=(t?.height?t?.height:a.height)+s*2,u=t.radius||5,d=t.taper||5,{cssStyles:f}=t,p=V.svg(i),m=b(t,{});t.stroke&&(m.stroke=t.stroke),t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let h=[{x:-c/2+d,y:-l/2},{x:c/2-d,y:-l/2},...$t(c/2-d,-l/2,c/2,-l/2+d,u,u,!0),{x:c/2,y:-l/2+d},{x:c/2,y:l/2-d},...$t(c/2,l/2-d,c/2-d,l/2,u,u,!0),{x:c/2-d,y:l/2},{x:-c/2+d,y:l/2},...$t(-c/2+d,l/2,-c/2,l/2-d,u,u,!0),{x:-c/2,y:l/2-d},{x:-c/2,y:-l/2+d},...$t(-c/2,-l/2+d,-c/2+d,-l/2,u,u,!0)],g=G(h),_=p.path(g,m),v=i.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container outer-path`),f&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&v.selectChildren(`path`).attr(`style`,r),U(t,v),t.intersect=function(e){return J.polygon(t,h,e)},i}a(en,`roundedRect`);async function tn(e,t){let{labelStyles:n,nodeStyles:i}=x(t);t.labelStyle=n;let{shapeSvg:a,bbox:o,label:s}=await H(e,t,W(t)),c=t?.padding??0,l=Math.max(o.width+(t.padding??0)*2,t?.width??0),u=Math.max(o.height+(t.padding??0)*2,t?.height??0),d=-o.width/2-c,f=-o.height/2-c,{cssStyles:p}=t,m=V.svg(a),h=b(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:d,y:f},{x:d+l+8,y:f},{x:d+l+8,y:f+u},{x:d-8,y:f+u},{x:d-8,y:f},{x:d,y:f},{x:d,y:f+u}],_=m.polygon(g.map(e=>[e.x,e.y]),h),v=a.insert(()=>_,`:first-child`);return v.attr(`class`,`basic label-container`).attr(`style`,r(p)),i&&t.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,i),p&&t.look!==`handDrawn`&&v.selectAll(`path`).attr(`style`,i),s.attr(`transform`,`translate(${-l/2+4+(t.padding??0)-(o.x-(o.left??0))},${-u/2+(t.padding??0)-(o.y-(o.top??0))})`),U(t,v),t.intersect=function(e){return J.rect(t,e)},a}a(tn,`shadedProcess`);async function nn(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=-s/2,u=-c/2,{cssStyles:d}=t,f=V.svg(i),p=b(t,{});t.look!==`handDrawn`&&(p.roughness=0,p.fillStyle=`solid`);let m=[{x:l,y:u},{x:l,y:u+c},{x:l+s,y:u+c},{x:l+s,y:u-c/2}],h=G(m),g=f.path(h,p),_=i.insert(()=>g,`:first-child`);return _.attr(`class`,`basic label-container`),d&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,d),r&&t.look!==`handDrawn`&&_.selectChildren(`path`).attr(`style`,r),_.attr(`transform`,`translate(0, ${c/4})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))}, ${-c/4+(t.padding??0)-(a.y-(a.top??0))})`),U(t,_),t.intersect=function(e){return J.polygon(t,m,e)},i}a(nn,`slopedRect`);async function rn(e,t){return It(e,t,{rx:0,ry:0,classes:``,labelPaddingX:t.labelPaddingX??(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1})}a(rn,`squareRect`);async function an(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=a.height+t.padding,s=a.width+o/4+t.padding,c=o/2,{cssStyles:l}=t,u=V.svg(i),d=b(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=[{x:-s/2+c,y:-o/2},{x:s/2-c,y:-o/2},...Be(-s/2+c,0,c,50,90,270),{x:s/2-c,y:o/2},...Be(s/2-c,0,c,50,270,450)],p=G(f),m=u.path(p,d),h=i.insert(()=>m,`:first-child`);return h.attr(`class`,`basic label-container outer-path`),l&&t.look!==`handDrawn`&&h.selectChildren(`path`).attr(`style`,l),r&&t.look!==`handDrawn`&&h.selectChildren(`path`).attr(`style`,r),U(t,h),t.intersect=function(e){return J.polygon(t,f,e)},i}a(an,`stadium`);async function on(e,t){return It(e,t,{rx:5,ry:5,classes:`flowchart-node`})}a(on,`state`);function sn(e,t,{config:{themeVariables:n}}){let{labelStyles:r,nodeStyles:i}=x(t);t.labelStyle=r;let{cssStyles:a}=t,{lineColor:o,stateBorder:s,nodeBorder:c}=n,l=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),u=V.svg(l),d=b(t,{});t.look!==`handDrawn`&&(d.roughness=0,d.fillStyle=`solid`);let f=u.circle(0,0,14,{...d,stroke:o,strokeWidth:2}),p=s??c,m=u.circle(0,0,5,{...d,fill:p,stroke:p,strokeWidth:2,fillStyle:`solid`}),h=l.insert(()=>f,`:first-child`);return h.insert(()=>m),a&&h.selectAll(`path`).attr(`style`,a),i&&h.selectAll(`path`).attr(`style`,i),U(t,h),t.intersect=function(e){return J.circle(t,7,e)},l}a(sn,`stateEnd`);function cn(e,t,{config:{themeVariables:n}}){let{lineColor:r}=n,i=e.insert(`g`).attr(`class`,`node default`).attr(`id`,t.domId||t.id),a;if(t.look===`handDrawn`){let e=V.svg(i).circle(0,0,14,S(r));a=i.insert(()=>e),a.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14)}else a=i.insert(`circle`,`:first-child`),a.attr(`class`,`state-start`).attr(`r`,7).attr(`width`,14).attr(`height`,14);return U(t,a),t.intersect=function(e){return J.circle(t,7,e)},i}a(cn,`stateStart`);async function ln(e,t){let{labelStyles:n,nodeStyles:i}=x(t);t.labelStyle=n;let{shapeSvg:a,bbox:o}=await H(e,t,W(t)),s=(t?.padding||0)/2,c=o.width+t.padding,l=o.height+t.padding,u=-o.width/2-s,d=-o.height/2-s,f=[{x:0,y:0},{x:c,y:0},{x:c,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(t.look===`handDrawn`){let e=V.svg(a),n=b(t,{}),i=e.rectangle(u-8,d,c+16,l,n),o=e.line(u,d,u,d+l,n),s=e.line(u+c,d,u+c,d+l,n);a.insert(()=>o,`:first-child`),a.insert(()=>s,`:first-child`);let f=a.insert(()=>i,`:first-child`),{cssStyles:p}=t;f.attr(`class`,`basic label-container`).attr(`style`,r(p)),U(t,f)}else{let e=Y(a,c,l,f);i&&e.attr(`style`,i),U(t,e)}return t.intersect=function(e){return J.polygon(t,f,e)},a}a(ln,`subroutine`);async function un(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=Math.max(a.width+(t.padding??0)*2,t?.width??0),s=Math.max(a.height+(t.padding??0)*2,t?.height??0),c=-o/2,l=-s/2,u=.2*s,d=.2*s,{cssStyles:f}=t,p=V.svg(i),m=b(t,{}),h=[{x:c-u/2,y:l},{x:c+o+u/2,y:l},{x:c+o+u/2,y:l+s},{x:c-u/2,y:l+s}],g=[{x:c+o-u/2,y:l+s},{x:c+o+u/2,y:l+s},{x:c+o+u/2,y:l+s-d}];t.look!==`handDrawn`&&(m.roughness=0,m.fillStyle=`solid`);let _=G(h),v=p.path(_,m),y=G(g),S=p.path(y,{...m,fillStyle:`solid`}),C=i.insert(()=>S,`:first-child`);return C.insert(()=>v,`:first-child`),C.attr(`class`,`basic label-container`),f&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,f),r&&t.look!==`handDrawn`&&C.selectAll(`path`).attr(`style`,r),U(t,C),t.intersect=function(e){return J.polygon(t,h,e)},i}a(un,`taggedRect`);async function dn(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a,label:o}=await H(e,t,W(t)),s=Math.max(a.width+(t.padding??0)*2,t?.width??0),c=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=c/4,u=.2*s,d=.2*c,f=c+l,{cssStyles:p}=t,m=V.svg(i),h=b(t,{});t.look!==`handDrawn`&&(h.roughness=0,h.fillStyle=`solid`);let g=[{x:-s/2-s/2*.1,y:f/2},...K(-s/2-s/2*.1,f/2,s/2+s/2*.1,f/2,l,.8),{x:s/2+s/2*.1,y:-f/2},{x:-s/2-s/2*.1,y:-f/2}],_=-s/2+s/2*.1,v=-f/2-d*.4,y=[{x:_+s-u,y:(v+c)*1.4},{x:_+s,y:v+c-d},{x:_+s,y:(v+c)*.9},...K(_+s,(v+c)*1.3,_+s-u,(v+c)*1.5,-c*.03,.5)],S=G(g),C=m.path(S,h),w=G(y),T=m.path(w,{...h,fillStyle:`solid`}),E=i.insert(()=>T,`:first-child`);return E.insert(()=>C,`:first-child`),E.attr(`class`,`basic label-container`),p&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,p),r&&t.look!==`handDrawn`&&E.selectAll(`path`).attr(`style`,r),E.attr(`transform`,`translate(0,${-l/2})`),o.attr(`transform`,`translate(${-s/2+(t.padding??0)-(a.x-(a.left??0))},${-c/2+(t.padding??0)-l/2-(a.y-(a.top??0))})`),U(t,E),t.intersect=function(e){return J.polygon(t,g,e)},i}a(dn,`taggedWaveEdgedRectangle`);async function fn(e,t){let{labelStyles:n,nodeStyles:r}=x(t);t.labelStyle=n;let{shapeSvg:i,bbox:a}=await H(e,t,W(t)),o=Math.max(a.width+t.padding,t?.width||0),s=Math.max(a.height+t.padding,t?.height||0),c=-o/2,l=-s/2,u=i.insert(`rect`,`:first-child`);return u.attr(`class`,`text`).attr(`style`,r).attr(`rx`,0).attr(`ry`,0).attr(`x`,c).attr(`y`,l).attr(`width`,o).attr(`height`,s),U(t,u),t.intersect=function(e){return J.rect(t,e)},i}a(fn,`text`);var pn=a((e,t,n,r,i,a)=>`M${e},${t}
|
|
4
4
|
a${i},${a} 0,0,1 0,${-r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,g as t,h as n,i as r,m as i,o as a,p as o,s,t as c}from"./chunk-FPAJGGOC-
|
|
1
|
+
import{f as e,g as t,h as n,i as r,m as i,o as a,p as o,s,t as c}from"./chunk-FPAJGGOC-_ax7LrI6.js";var l=class extends c{static{e(this,`InfoTokenBuilder`)}constructor(){super([`info`,`showInfo`])}},u={parser:{TokenBuilder:e(()=>new l,`TokenBuilder`),ValueConverter:e(()=>new r,`ValueConverter`)}};function d(e=o){let r=i(t(e),s),c=i(n({shared:r}),a,u);return r.ServiceRegistry.register(c),{shared:r,Info:c}}e(d,`createInfoServices`);export{d as n,u as t};
|
|
@@ -1 +1 @@
|
|
|
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-FPAJGGOC-
|
|
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-FPAJGGOC-_ax7LrI6.js";var l=class extends s{static{e(this,`RadarTokenBuilder`)}constructor(){super([`radar-beta`])}},u={parser:{TokenBuilder:e(()=>new l,`TokenBuilder`),ValueConverter:e(()=>new r,`ValueConverter`)}};function d(e=a){let r=i(t(e),o),s=i(n({shared:r}),c,u);return r.ServiceRegistry.register(s),{shared:r,Radar:s}}e(d,`createRadarServices`);export{d as n,u as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as e}from"./src-
|
|
1
|
+
import{h as e}from"./src-CoWzf9ks.js";function t(e){return e==null}e(t,`isNothing`);function n(e){return typeof e==`object`&&!!e}e(n,`isObject`);function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}e(r,`toArray`);function i(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}e(i,`extend`);function a(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}e(a,`repeat`);function o(e){return e===0&&1/e==-1/0}e(o,`isNegativeZero`);var s={isNothing:t,isObject:n,toArray:r,repeat:a,isNegativeZero:o,extend:i};function c(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
|
|
2
2
|
|
|
3
3
|
`+e.mark.snippet),r+` `+n):r}e(c,`formatError`);function l(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}e(l,`YAMLException$1`),l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l.prototype.toString=e(function(e){return this.name+`: `+c(this,e)},`toString`);var u=l;function d(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}e(d,`getLine`);function f(e,t){return s.repeat(` `,t-e.length)+e}e(f,`padStart`);function p(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var c=``,l,u,p=Math.min(e.line+t.linesAfter,i.length).toString().length,m=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)u=d(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),m),c=s.repeat(` `,t.indent)+f((e.line-l+1).toString(),p)+` | `+u.str+`
|
|
4
4
|
`+c;for(u=d(e.buffer,r[o],i[o],e.position,m),c+=s.repeat(` `,t.indent)+f((e.line+1).toString(),p)+` | `+u.str+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e}from"./chunk-S3R3BYOJ-
|
|
1
|
+
import{d as e}from"./chunk-S3R3BYOJ-CQpHdWQs.js";import{g as t,h as n}from"./src-CoWzf9ks.js";import{s as r,y as i}from"./chunk-ABZYJK2D-B-uQQBad.js";import{a,i as o,s}from"./chunk-JZLCHNYA-CkNAdoyb.js";import{a as c,i as l,n as u,r as d}from"./chunk-QXUST7PY-BHpud-vy.js";var f={common:r,getConfig:i,insertCluster:o,insertEdge:u,insertEdgeLabel:d,insertMarkers:l,insertNode:a,interpolateToCurve:e,labelHelper:s,log:t,positionEdgeLabel:c},p={},m=n(e=>{for(let t of e)p[t.name]=t},`registerLayoutLoaders`);n(()=>{m([{name:`dagre`,loader:n(async()=>await import(`./dagre-6UL2VRFP-BzQ9vB_e.js`),`loader`)},...[{name:`cose-bilkent`,loader:n(async()=>await import(`./cose-bilkent-S5V4N54A-DAl-qmUx.js`),`loader`)}]])},`registerDefaultLayoutLoaders`)();var h=n(async(e,t)=>{if(!(e.layoutAlgorithm in p))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let n=p[e.layoutAlgorithm];return(await n.loader()).render(e,t,f,{algorithm:n.algorithm})},`render`),g=n((e=``,{fallback:n=`dagre`}={})=>{if(e in p)return e;if(n in p)return t.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`),n;throw Error(`Both layout algorithms ${e} and ${n} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{m as n,h as r,g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,g as t,h as n,m as r,n as i,p as a,r as o,s,t as c}from"./chunk-FPAJGGOC-
|
|
1
|
+
import{f as e,g as t,h as n,m as r,n as i,p as a,r as o,s,t as c}from"./chunk-FPAJGGOC-_ax7LrI6.js";var l=class extends c{static{e(this,`ArchitectureTokenBuilder`)}constructor(){super([`architecture`])}},u=class extends i{static{e(this,`ArchitectureValueConverter`)}runCustomConverter(e,t,n){if(e.name===`ARCH_ICON`)return t.replace(/[()]/g,``).trim();if(e.name===`ARCH_TEXT_ICON`)return t.replace(/["()]/g,``);if(e.name===`ARCH_TITLE`)return t.replace(/[[\]]/g,``).trim()}},d={parser:{TokenBuilder:e(()=>new l,`TokenBuilder`),ValueConverter:e(()=>new u,`ValueConverter`)}};function f(e=a){let i=r(t(e),s),c=r(n({shared:i}),o,d);return i.ServiceRegistry.register(c),{shared:i,Architecture:c}}e(f,`createArchitectureServices`);export{f as n,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e,h as t}from"./src-
|
|
1
|
+
import{g as e,h as t}from"./src-CoWzf9ks.js";import{c as n}from"./chunk-ABZYJK2D-B-uQQBad.js";var r=t((t,r,o,s)=>{t.attr(`class`,o);let{width:c,height:l,x:u,y:d}=i(t,r);n(t,l,c,s);let f=a(u,d,c,l,r);t.attr(`viewBox`,f),e.debug(`viewBox configured: ${f} with padding: ${r}`)},`setupViewPortForSVG`),i=t((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}},`calculateDimensionsWithPadding`),a=t((e,t,n,r,i)=>`${e-i} ${t-i} ${n} ${r}`,`createViewBox`);export{r as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{C as e,D as t,E as n,O as r,S as i,T as a,b as o,g as s,k as c,v as l,w as u,x as d,y as f}from"./chunk-S3R3BYOJ-
|
|
1
|
+
import{C as e,D as t,E as n,O as r,S as i,T as a,b as o,g as s,k as c,v as l,w as u,x as d,y as f}from"./chunk-S3R3BYOJ-CQpHdWQs.js";import{g as p,h as m,p as h}from"./src-CoWzf9ks.js";import{b as g,h as _}from"./chunk-ABZYJK2D-B-uQQBad.js";import{t as v}from"./line-D9fEXxLg.js";import{n as y}from"./chunk-JA3XYJ7Z-B2ggvruF.js";import{n as b,r as x,t as S}from"./chunk-HN2XXSSU-CwOdrF1j.js";import{t as C}from"./chunk-CVBHYZKI-C8bYjiGm.js";import{i as w,n as T}from"./chunk-ATLVNIR6-06VCvgCA.js";import{d as E,r as D}from"./chunk-JZLCHNYA-CkNAdoyb.js";var ee=m((e,t,n,r,i,a)=>{t.arrowTypeStart&&k(e,`start`,t.arrowTypeStart,n,r,i,a),t.arrowTypeEnd&&k(e,`end`,t.arrowTypeEnd,n,r,i,a)},`addEdgeMarkers`),O={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},k=m((e,t,n,r,i,a,o)=>{let s=O[n];if(!s){p.warn(`Unknown arrow type: ${n}`);return}let c=`${i}_${a}-${s.type}${t===`start`?`Start`:`End`}`;if(o&&o.trim()!==``){let n=`${c}_${o.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(c);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,o),s.fill&&e.setAttribute(`fill`,o)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${c})`)},`addEdgeMarker`),A=new Map,j=new Map,M=m(()=>{A.clear(),j.clear()},`clear`),N=m(e=>e?e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),P=m(async(e,t)=>{let n=_(g().flowchart.htmlLabels),{labelStyles:r}=w(t);t.labelStyle=r;let i=await y(e,t.label,{style:t.labelStyle,useHtmlLabels:n,addSvgBackground:!0,isNode:!1});p.info(`abc82`,t,t.labelType);let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id);o.node().appendChild(i);let s=i.getBBox();if(n){let e=i.children[0],t=h(i);s=e.getBoundingClientRect(),t.attr(`width`,s.width),t.attr(`height`,s.height)}o.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),A.set(t.id,a),t.width=s.width,t.height=s.height;let c;if(t.startLabelLeft){let n=await D(t.startLabelLeft,N(t.labelStyle)),r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`);c=i.node().appendChild(n);let a=n.getBBox();i.attr(`transform`,`translate(`+-a.width/2+`, `+-a.height/2+`)`),j.get(t.id)||j.set(t.id,{}),j.get(t.id).startLeft=r,F(c,t.startLabelLeft)}if(t.startLabelRight){let n=await D(t.startLabelRight,N(t.labelStyle)),r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`);c=r.node().appendChild(n),i.node().appendChild(n);let a=n.getBBox();i.attr(`transform`,`translate(`+-a.width/2+`, `+-a.height/2+`)`),j.get(t.id)||j.set(t.id,{}),j.get(t.id).startRight=r,F(c,t.startLabelRight)}if(t.endLabelLeft){let n=await D(t.endLabelLeft,N(t.labelStyle)),r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`);c=i.node().appendChild(n);let a=n.getBBox();i.attr(`transform`,`translate(`+-a.width/2+`, `+-a.height/2+`)`),r.node().appendChild(n),j.get(t.id)||j.set(t.id,{}),j.get(t.id).endLeft=r,F(c,t.endLabelLeft)}if(t.endLabelRight){let n=await D(t.endLabelRight,N(t.labelStyle)),r=e.insert(`g`).attr(`class`,`edgeTerminals`),i=r.insert(`g`).attr(`class`,`inner`);c=i.node().appendChild(n);let a=n.getBBox();i.attr(`transform`,`translate(`+-a.width/2+`, `+-a.height/2+`)`),r.node().appendChild(n),j.get(t.id)||j.set(t.id,{}),j.get(t.id).endRight=r,F(c,t.endLabelRight)}return i},`insertEdgeLabel`);function F(e,t){g().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}m(F,`setTerminalWidth`);var I=m((e,t)=>{p.debug(`Moving label abc88 `,e.id,e.label,A.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,{subGraphTitleTotalMargin:r}=C(g());if(e.label){let i=A.get(e.id),a=e.x,o=e.y;if(n){let r=s.calcLabelPosition(n);p.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(a=r.x,o=r.y)}i.attr(`transform`,`translate(${a}, ${o+r/2})`)}if(e.startLabelLeft){let t=j.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=s.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=j.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=s.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=j.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=s.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=j.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=s.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),L=m((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),R=m((e,t,n)=>{p.debug(`intersection calc abc89:
|
|
2
2
|
outsidePoint: ${JSON.stringify(t)}
|
|
3
3
|
insidePoint : ${JSON.stringify(n)}
|
|
4
4
|
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.x<t.x?o-a:o+a,c=e.height/2,l=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*c){let e=n.y<t.y?t.y-c-i:i-c-t.y;s=u*e/l;let r={x:n.x<t.x?n.x+s:n.x-u+s,y:n.y<t.y?n.y+l-e:n.y-l+e};return s===0&&(r.x=t.x,r.y=t.y),u===0&&(r.x=t.x),l===0&&(r.y=t.y),p.debug(`abc89 top/bottom calc, Q ${l}, q ${e}, R ${u}, r ${s}`,r),r}else{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=l*s/u,i=n.x<t.x?n.x+u-s:n.x-u+s,a=n.y<t.y?n.y+e:n.y-e;return p.debug(`sides calc abc89, Q ${l}, q ${e}, R ${u}, r ${s}`,{_x:i,_y:a}),s===0&&(i=t.x,a=t.y),u===0&&(i=t.x),l===0&&(a=t.y),{x:i,y:a}}},`intersection`),z=m((e,t)=>{p.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(p.info(`abc88 checking point`,e,t),!L(t,e)&&!i){let a=R(t,r,e);p.debug(`abc88 inside`,e,r,a),p.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?p.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else p.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),p.debug(`returning points`,n),n},`cutPathAtIntersect`);function B(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}m(B,`extractCornerPoints`);var V=m(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),H=m(function(e){let{cornerPointPositions:t}=B(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],o=V(t,a,5),s=V(i,a,5),c=s.x-o.x,l=s.y-o.y;n.push(o);let u=Math.sqrt(2)*2,d={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(p.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),d=a.x===o.x?{x:c<0?o.x-5+u:o.x+5-u,y:l<0?o.y-u:o.y+u}:{x:c<0?o.x-u:o.x+u,y:l<0?o.y-5+u:o.y+5-u}):p.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(d,s)}else n.push(e[r]);return n},`fixCorners`),U=m((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(i).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),W=m(function(m,_,y,b,C,w,D,O=!1){let{handDrawnSeed:k}=g(),A=_.points,j=!1,M=C;var N=w;let P=[];for(let e in _.cssCompiledStyles)T(e)||P.push(_.cssCompiledStyles[e]);p.debug(`UIO intersect check`,_.points,N.x,M.x),N.intersect&&M.intersect&&!O&&(A=A.slice(1,_.points.length-1),A.unshift(M.intersect(A[0])),p.debug(`Last point UIO`,_.start,`-->`,_.end,A[A.length-1],N,N.intersect(A[A.length-1])),A.push(N.intersect(A[A.length-1])));let F=btoa(JSON.stringify(A));_.toCluster&&(p.info(`to cluster abc88`,y.get(_.toCluster)),A=z(_.points,y.get(_.toCluster).node),j=!0),_.fromCluster&&(p.debug(`from cluster abc88`,y.get(_.fromCluster),JSON.stringify(A,null,2)),A=z(A.reverse(),y.get(_.fromCluster).node).reverse(),j=!0);let I=A.filter(e=>!Number.isNaN(e.y));I=H(I);let L=n;switch(L=c,_.curve){case`linear`:L=c;break;case`basis`:L=n;break;case`cardinal`:L=a;break;case`bumpX`:L=t;break;case`bumpY`:L=r;break;case`catmullRom`:L=u;break;case`monotoneX`:L=i;break;case`monotoneY`:L=e;break;case`natural`:L=d;break;case`step`:L=o;break;case`stepAfter`:L=l;break;case`stepBefore`:L=f;break;default:L=n}let{x:R,y:B}=S(_),V=v().x(R).y(B).curve(L),W;switch(_.thickness){case`normal`:W=`edge-thickness-normal`;break;case`thick`:W=`edge-thickness-thick`;break;case`invisible`:W=`edge-thickness-invisible`;break;default:W=`edge-thickness-normal`}switch(_.pattern){case`solid`:W+=` edge-pattern-solid`;break;case`dotted`:W+=` edge-pattern-dotted`;break;case`dashed`:W+=` edge-pattern-dashed`;break;default:W+=` edge-pattern-solid`}let K,J=_.curve===`rounded`?G(q(I,_),5):V(I),Y=Array.isArray(_.style)?_.style:[_.style],X=Y.find(e=>e?.startsWith(`stroke:`)),Z=!1;if(_.look===`handDrawn`){let e=E.svg(m);Object.assign([],I);let t=e.path(J,{roughness:.3,seed:k});W+=` transition`,K=h(t).select(`path`).attr(`id`,_.id).attr(`class`,` `+W+(_.classes?` `+_.classes:``)).attr(`style`,Y?Y.reduce((e,t)=>e+`;`+t,``):``);let n=K.attr(`d`);K.attr(`d`,n),m.node().appendChild(K.node())}else{let e=P.join(`;`),t=Y?Y.reduce((e,t)=>e+t+`;`,``):``,n=``;_.animate&&(n=` edge-animation-fast`),_.animation&&(n=` edge-animation-`+_.animation);let r=(e?e+`;`+t+`;`:t)+`;`+(Y?Y.reduce((e,t)=>e+`;`+t,``):``);K=m.append(`path`).attr(`d`,J).attr(`id`,_.id).attr(`class`,` `+W+(_.classes?` `+_.classes:``)+(n??``)).attr(`style`,r),X=r.match(/stroke:([^;]+)/)?.[1],Z=_.animate===!0||!!_.animation||e.includes(`animation`);let i=K.node(),a=typeof i.getTotalLength==`function`?i.getTotalLength():0,o=x[_.arrowTypeStart]||0,s=x[_.arrowTypeEnd]||0;if(_.look===`neo`&&!Z){let e=`stroke-dasharray: ${_.pattern===`dotted`||_.pattern===`dashed`?U(a,o,s):`0 ${o} ${a-o-s} ${s}`}; stroke-dashoffset: 0;`;K.attr(`style`,e+K.attr(`style`))}}K.attr(`data-edge`,!0),K.attr(`data-et`,`edge`),K.attr(`data-id`,_.id),K.attr(`data-points`,F),_.showPoints&&I.forEach(e=>{m.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,e.x).attr(`cy`,e.y)});let Q=``;(g().flowchart.arrowMarkerAbsolute||g().state.arrowMarkerAbsolute)&&(Q=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,Q=Q.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),p.info(`arrowTypeStart`,_.arrowTypeStart),p.info(`arrowTypeEnd`,_.arrowTypeEnd),ee(K,_,Q,D,b,X);let te=Math.floor(A.length/2),ne=A[te];s.isLabelCoordinateInPath(ne,K.attr(`d`))||(j=!0);let $={};return j&&($.updatedPath=A),$.originalPath=_.points,$},`insertEdge`);function G(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],c=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=c.x-o.x,l=c.y-o.y,u=Math.hypot(e,r),d=Math.hypot(a,l);if(u<i||d<i){n+=`L${o.x},${o.y}`;continue}let f=e/u,p=r/u,m=a/d,h=l/d,g=f*m+p*h,_=Math.max(-1,Math.min(1,g)),v=Math.acos(_);if(v<i||Math.abs(Math.PI-v)<i){n+=`L${o.x},${o.y}`;continue}let y=Math.min(t/Math.sin(v/2),u/2,d/2),b=o.x-f*y,x=o.y-p*y,S=o.x+m*y,C=o.y+h*y;n+=`L${b},${x}`,n+=`Q${o.x},${o.y} ${S},${C}`}}return n}m(G,`generateRoundedPath`);function K(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}m(K,`calculateDeltaAndAngle`);function q(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&b[t.arrowTypeStart]){let r=b[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=K(i,a),s=r*Math.cos(o),c=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+c}let r=e.length;if(r>=2&&b[t.arrowTypeEnd]){let i=b[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=K(o,a),c=i*Math.cos(s),l=i*Math.sin(s);n[r-1].x=a.x-c,n[r-1].y=a.y-l}return n}m(q,`applyMarkerOffsetsToPoints`);var J=m((e,t,n,r)=>{t.forEach(t=>{Y[t](e,n,r)})},`insertMarkers`),Y={extension:m((e,t,n)=>{p.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`)},`extension`),composition:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`stroke`,`black`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6)},`lollipop`),point:m((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`point`),circle:m((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`)},`circle`),cross:m((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`)},`cross`),barb:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),only_one:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:m((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:m((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),requirement_arrow:m((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./src-CoWzf9ks.js";var t=class{constructor(e){this.init=e,this.records=this.init()}static{e(this,`ImperativeState`)}reset(){this.records=this.init()}};export{t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as e,B as t,F as n,H as r,O as i,R as a,S as o,U as s,V as c,b as l,c as u,g as ee,i as te,j as d,l as f,n as p,p as m,r as ne,s as re,t as ie,u as h,y as ae}from"./isArrayLikeObject-BtcNYc4X.js";import{g,h as _,p as v}from"./src-DyiU8SPu.js";import{F as y,f as oe,m as b,r as se,s as x}from"./chunk-ABZYJK2D-CjFwXoDd.js";import{o as S}from"./math-CBcHHeVd.js";import{t as ce}from"./dist-DDGIHxz4.js";var le=`[object Object]`,ue=Function.prototype,de=Object.prototype,fe=ue.toString,pe=de.hasOwnProperty,me=fe.call(Object);function he(e){if(!r(e)||s(e)!=le)return!1;var t=f(e);if(t===null)return!0;var n=pe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&fe.call(n)==me}var ge=he;function _e(t,n,r){(r!==void 0&&!e(t[n],r)||r===void 0&&!(n in t))&&d(t,n,r)}var C=_e;function ve(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var w=ve;function ye(e){return i(e,m(e))}var be=ye;function xe(e,r,i,o,s,u,d){var f=w(e,i),p=w(r,i),m=d.get(p);if(m){C(e,i,m);return}var h=u?u(f,p,i+``,e,r,d):void 0,g=h===void 0;if(g){var _=c(p),v=!_&&ae(p),y=!_&&!v&&ee(p);h=p,_||v||y?c(f)?h=f:ie(f)?h=n(f):v?(g=!1,h=re(p,!0)):y?(g=!1,h=te(p,!0)):h=[]:ge(p)||l(p)?(h=f,l(f)?h=be(f):(!t(f)||a(f))&&(h=ne(p))):g=!1}g&&(d.set(p,h),s(h,p,o,u,d),d.delete(p)),C(e,i,h)}var Se=xe;function T(e,n,r,i,a){e!==n&&p(n,function(o,s){if(a||=new u,t(o))Se(e,n,s,r,T,i,a);else{var c=i?i(w(e,s),o,s+``,e,n,a):void 0;c===void 0&&(c=o),C(e,s,c)}},m)}var Ce=T,we=o(function(e,t,n){Ce(e,t,n)});function E(e){this._context=e}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function D(e){return new E(e)}var O=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function k(e){return new O(e,!0)}function A(e){return new O(e,!1)}function j(){}function M(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function N(e){this._context=e}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:M(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:M(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Te(e){return new N(e)}function Ee(e){this._context=e}Ee.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:M(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function De(e){return new Ee(e)}function Oe(e){this._context=e}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:M(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ke(e){return new Oe(e)}function Ae(e,t){this._basis=new N(e),this._beta=t}Ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var je=(function e(t){function n(e){return t===1?new N(e):new Ae(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function P(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function F(e,t){this._context=e,this._k=(1-t)/6}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:P(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:P(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Me=(function e(t){function n(e){return new F(e,t)}return n.tension=function(t){return e(+t)},n})(0);function I(e,t){this._context=e,this._k=(1-t)/6}I.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:P(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ne=(function e(t){function n(e){return new I(e,t)}return n.tension=function(t){return e(+t)},n})(0);function L(e,t){this._context=e,this._k=(1-t)/6}L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:P(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pe=(function e(t){function n(e){return new L(e,t)}return n.tension=function(t){return e(+t)},n})(0);function R(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>S){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>S){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Fe(e,t){this._context=e,this._alpha=t}Fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:R(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ie=(function e(t){function n(e){return t?new Fe(e,t):new F(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Le(e,t){this._context=e,this._alpha=t}Le.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:R(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Re=(function e(t){function n(e){return t?new Le(e,t):new I(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ze(e,t){this._context=e,this._alpha=t}ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:R(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Be=(function e(t){function n(e){return t?new ze(e,t):new L(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Ve(e){this._context=e}Ve.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function He(e){return new Ve(e)}function Ue(e){return e<0?-1:1}function We(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Ue(a)+Ue(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function z(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function B(e){this._context=e}B.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:z(this,this._t0,Ge(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,z(this,Ge(this,n=We(this,e,t)),n);break;default:z(this,this._t0,n=We(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ke(e){this._context=new qe(e)}(Ke.prototype=Object.create(B.prototype)).point=function(e,t){B.prototype.point.call(this,t,e)};function qe(e){this._context=e}qe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Je(e){return new B(e)}function Ye(e){return new Ke(e)}function Xe(e){this._context=e}Xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=V(e),i=V(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function V(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ze(e){return new Xe(e)}function H(e,t){this._context=e,this._t=t}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Qe(e){return new H(e,.5)}function $e(e){return new H(e,0)}function et(e){return new H(e,1)}var tt=ce(),nt=``,rt={curveBasis:Te,curveBasisClosed:De,curveBasisOpen:ke,curveBumpX:k,curveBumpY:A,curveBundle:je,curveCardinalClosed:Ne,curveCardinalOpen:Pe,curveCardinal:Me,curveCatmullRomClosed:Re,curveCatmullRomOpen:Be,curveCatmullRom:Ie,curveLinear:D,curveLinearClosed:He,curveMonotoneX:Je,curveMonotoneY:Ye,curveNatural:Ze,curveStep:Qe,curveStepAfter:et,curveStepBefore:$e},it=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,at=_(function(e,t){let n=ot(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);y(e),r=se(r,[...e])}else r=n.args;if(!r)return;let i=oe(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),ot=_(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${it.source})(?=[}][%]{2}).*
|
|
1
|
+
import{A as e,B as t,F as n,H as r,O as i,R as a,S as o,U as s,V as c,b as l,c as u,g as ee,i as te,j as d,l as f,n as p,p as m,r as ne,s as re,t as ie,u as h,y as ae}from"./isArrayLikeObject-CgiDz5DP.js";import{g,h as _,p as v}from"./src-CoWzf9ks.js";import{F as y,f as oe,m as b,r as se,s as x}from"./chunk-ABZYJK2D-B-uQQBad.js";import{o as S}from"./math-XICenNyA.js";import{t as ce}from"./dist-Bz_xenUc.js";var le=`[object Object]`,ue=Function.prototype,de=Object.prototype,fe=ue.toString,pe=de.hasOwnProperty,me=fe.call(Object);function he(e){if(!r(e)||s(e)!=le)return!1;var t=f(e);if(t===null)return!0;var n=pe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&fe.call(n)==me}var ge=he;function _e(t,n,r){(r!==void 0&&!e(t[n],r)||r===void 0&&!(n in t))&&d(t,n,r)}var C=_e;function ve(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}var w=ve;function ye(e){return i(e,m(e))}var be=ye;function xe(e,r,i,o,s,u,d){var f=w(e,i),p=w(r,i),m=d.get(p);if(m){C(e,i,m);return}var h=u?u(f,p,i+``,e,r,d):void 0,g=h===void 0;if(g){var _=c(p),v=!_&&ae(p),y=!_&&!v&&ee(p);h=p,_||v||y?c(f)?h=f:ie(f)?h=n(f):v?(g=!1,h=re(p,!0)):y?(g=!1,h=te(p,!0)):h=[]:ge(p)||l(p)?(h=f,l(f)?h=be(f):(!t(f)||a(f))&&(h=ne(p))):g=!1}g&&(d.set(p,h),s(h,p,o,u,d),d.delete(p)),C(e,i,h)}var Se=xe;function T(e,n,r,i,a){e!==n&&p(n,function(o,s){if(a||=new u,t(o))Se(e,n,s,r,T,i,a);else{var c=i?i(w(e,s),o,s+``,e,n,a):void 0;c===void 0&&(c=o),C(e,s,c)}},m)}var Ce=T,we=o(function(e,t,n){Ce(e,t,n)});function E(e){this._context=e}E.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function D(e){return new E(e)}var O=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function k(e){return new O(e,!0)}function A(e){return new O(e,!1)}function j(){}function M(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function N(e){this._context=e}N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:M(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:M(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Te(e){return new N(e)}function Ee(e){this._context=e}Ee.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:M(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function De(e){return new Ee(e)}function Oe(e){this._context=e}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:M(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ke(e){return new Oe(e)}function Ae(e,t){this._basis=new N(e),this._beta=t}Ae.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var je=(function e(t){function n(e){return t===1?new N(e):new Ae(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function P(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function F(e,t){this._context=e,this._k=(1-t)/6}F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:P(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:P(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Me=(function e(t){function n(e){return new F(e,t)}return n.tension=function(t){return e(+t)},n})(0);function I(e,t){this._context=e,this._k=(1-t)/6}I.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:P(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ne=(function e(t){function n(e){return new I(e,t)}return n.tension=function(t){return e(+t)},n})(0);function L(e,t){this._context=e,this._k=(1-t)/6}L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:P(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pe=(function e(t){function n(e){return new L(e,t)}return n.tension=function(t){return e(+t)},n})(0);function R(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>S){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>S){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Fe(e,t){this._context=e,this._alpha=t}Fe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:R(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ie=(function e(t){function n(e){return t?new Fe(e,t):new F(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Le(e,t){this._context=e,this._alpha=t}Le.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:R(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Re=(function e(t){function n(e){return t?new Le(e,t):new I(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ze(e,t){this._context=e,this._alpha=t}ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:R(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Be=(function e(t){function n(e){return t?new ze(e,t):new L(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Ve(e){this._context=e}Ve.prototype={areaStart:j,areaEnd:j,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function He(e){return new Ve(e)}function Ue(e){return e<0?-1:1}function We(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Ue(a)+Ue(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ge(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function z(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function B(e){this._context=e}B.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:z(this,this._t0,Ge(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,z(this,Ge(this,n=We(this,e,t)),n);break;default:z(this,this._t0,n=We(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ke(e){this._context=new qe(e)}(Ke.prototype=Object.create(B.prototype)).point=function(e,t){B.prototype.point.call(this,t,e)};function qe(e){this._context=e}qe.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Je(e){return new B(e)}function Ye(e){return new Ke(e)}function Xe(e){this._context=e}Xe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=V(e),i=V(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function V(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ze(e){return new Xe(e)}function H(e,t){this._context=e,this._t=t}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function Qe(e){return new H(e,.5)}function $e(e){return new H(e,0)}function et(e){return new H(e,1)}var tt=ce(),nt=``,rt={curveBasis:Te,curveBasisClosed:De,curveBasisOpen:ke,curveBumpX:k,curveBumpY:A,curveBundle:je,curveCardinalClosed:Ne,curveCardinalOpen:Pe,curveCardinal:Me,curveCatmullRomClosed:Re,curveCatmullRomOpen:Be,curveCatmullRom:Ie,curveLinear:D,curveLinearClosed:He,curveMonotoneX:Je,curveMonotoneY:Ye,curveNatural:Ze,curveStep:Qe,curveStepAfter:et,curveStepBefore:$e},it=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,at=_(function(e,t){let n=ot(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);y(e),r=se(r,[...e])}else r=n.args;if(!r)return;let i=oe(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),ot=_(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${it.source})(?=[}][%]{2}).*
|
|
2
2
|
`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),g.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=b.exec(e))!==null;)if(r.index===b.lastIndex&&b.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return g.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),st=_(function(e){return e.replace(b,``)},`removeDirectives`),ct=_(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`);function U(e,t){return e?rt[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}_(U,`interpolateToCurve`);function lt(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,tt.sanitizeUrl)(n)}_(lt,`formatUrl`);var ut=_((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t<r;t++)if(a=a[n[t]],!a){g.error(`Function name: ${e} not found in window`);return}a[i](...t)},`runFunc`);function W(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}_(W,`distance`);function dt(e){let t,n=0;return e.forEach(e=>{n+=W(e,t),t=e}),G(e,n/2)}_(dt,`traverseEdge`);function ft(e){return e.length===1?e[0]:dt(e)}_(ft,`calcLabelPosition`);var pt=_((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),G=_((e,t)=>{let n,r=t;for(let t of e){if(n){let e=W(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:pt((1-i)*n.x+i*t.x,5),y:pt((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),mt=_((e,t,n)=>{g.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=G(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`);function ht(e,t,n){let r=structuredClone(n);g.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=G(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):t===`end_left`?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}_(ht,`calcTerminalLabelPosition`);function K(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}_(K,`getStylesFromArray`);var gt=0,_t=_(()=>(gt++,`id-`+Math.random().toString(36).substr(2,12)+`-`+gt),`generateId`);function vt(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}_(vt,`makeRandomHex`);var yt=_(e=>vt(e.length),`random`),bt=_(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),xt=_(function(e,t){let n=t.text.replace(x.lineBreakRegex,` `),[,r]=Z(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),St=h((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},n),x.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=J(`${e} `,n),c=J(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=Ct(e,t,`-`,n);i.push(a,...r),a=o}else c+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),Ct=h((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let c=`${o}${e}`;if(J(c,r)>=t){let e=s+1,t=i.length===e,r=`${c}${n}`;a.push(t?c:r),o=``}else o=c}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function q(e,t){return Y(e,t).height}_(q,`calculateTextHeight`);function J(e,t){return Y(e,t).width}_(J,`calculateTextWidth`);var Y=h((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=Z(n),o=[`sans-serif`,r],s=e.split(x.lineBreakRegex),c=[],l=v(`body`);if(!l.remove)return{width:0,height:0,lineHeight:0};let u=l.append(`svg`);for(let e of o){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let o=bt();o.text=r||nt;let s=xt(u,o).style(`font-size`,a).style(`font-weight`,i).style(`font-family`,e),c=(s._groups||s)[0][0].getBBox();if(c.width===0&&c.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,c.width)),t=Math.round(c.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}c.push(n)}return u.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),wt=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{_(this,`InitIDGenerator`)}},X,Tt=_(function(e){return X||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),X.innerHTML=e,unescape(X.textContent)},`entityDecode`);function Et(e){return`str`in e}_(Et,`isDetailedError`);var Dt=_((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),Z=_(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`);function Q(e,t){return we({},e,t)}_(Q,`cleanAndMerge`);var Ot={assignWithDepth:se,wrapLabel:St,calculateTextHeight:q,calculateTextWidth:J,calculateTextDimensions:Y,cleanAndMerge:Q,detectInit:at,detectDirective:ot,isSubstringInArray:ct,interpolateToCurve:U,calcLabelPosition:ft,calcCardinalityPosition:mt,calcTerminalLabelPosition:ht,formatUrl:lt,getStylesFromArray:K,generateId:_t,random:yt,runFunc:ut,entityDecode:Tt,insertTitle:Dt,isLabelCoordinateInPath:$,parseFontSize:Z,InitIDGenerator:wt},kt=_(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),At=_(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),jt=_((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`);function Mt(e){return e??null}_(Mt,`handleUndefinedAttr`);function $(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}_($,`isLabelCoordinateInPath`);export{we as A,Ye as C,k as D,Te as E,A as O,Je as S,Me as T,St as _,At as a,Qe as b,jt as c,U as d,Et as f,Ot as g,st as h,Q as i,D as k,K as l,yt as m,q as n,kt as o,Z as p,J as r,_t as s,nt as t,Mt as u,et as v,Ie as w,Ze as x,$e as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,f as t,g as n,h as r,i,m as a,p as o,s,t as c}from"./chunk-FPAJGGOC-
|
|
1
|
+
import{a as e,f as t,g as n,h as r,i,m as a,p as o,s,t as c}from"./chunk-FPAJGGOC-_ax7LrI6.js";var l=class extends c{static{t(this,`GitGraphTokenBuilder`)}constructor(){super([`gitGraph`])}},u={parser:{TokenBuilder:t(()=>new l,`TokenBuilder`),ValueConverter:t(()=>new i,`ValueConverter`)}};function d(t=o){let i=a(n(t),s),c=a(r({shared:i}),e,u);return i.ServiceRegistry.register(c),{shared:i,GitGraph:c}}t(d,`createGitGraphServices`);export{d as n,u as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,g as t,h as n,l as r,m as i,n as a,p as o,s,t as c}from"./chunk-FPAJGGOC-
|
|
1
|
+
import{f as e,g as t,h as n,l as r,m as i,n as a,p as o,s,t as c}from"./chunk-FPAJGGOC-_ax7LrI6.js";var l=class extends c{static{e(this,`PieTokenBuilder`)}constructor(){super([`pie`,`showData`])}},u=class extends a{static{e(this,`PieValueConverter`)}runCustomConverter(e,t,n){if(e.name===`PIE_SECTION_LABEL`)return t.replace(/"/g,``).trim()}},d={parser:{TokenBuilder:e(()=>new l,`TokenBuilder`),ValueConverter:e(()=>new u,`ValueConverter`)}};function f(e=o){let a=i(t(e),s),c=i(n({shared:a}),r,d);return a.ServiceRegistry.register(c),{shared:a,Pie:c}}e(f,`createPieServices`);export{f as n,d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./src-
|
|
1
|
+
import{h as e}from"./src-CoWzf9ks.js";import{k as t}from"./chunk-ABZYJK2D-B-uQQBad.js";import{t as n}from"./dist-Bz_xenUc.js";var r=n(),i=e((e,t)=>{let n=e.append(`rect`);if(n.attr(`x`,t.x),n.attr(`y`,t.y),n.attr(`fill`,t.fill),n.attr(`stroke`,t.stroke),n.attr(`width`,t.width),n.attr(`height`,t.height),t.name&&n.attr(`name`,t.name),t.rx&&n.attr(`rx`,t.rx),t.ry&&n.attr(`ry`,t.ry),t.attrs!==void 0)for(let e in t.attrs)n.attr(e,t.attrs[e]);return t.class&&n.attr(`class`,t.class),n},`drawRect`),a=e((e,t)=>{i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:`rect`}).lower()},`drawBackgroundRect`),o=e((e,n)=>{let r=n.text.replace(t,` `),i=e.append(`text`);i.attr(`x`,n.x),i.attr(`y`,n.y),i.attr(`class`,`legend`),i.style(`text-anchor`,n.anchor),n.class&&i.attr(`class`,n.class);let a=i.append(`tspan`);return a.attr(`x`,n.x+n.textMargin*2),a.text(r),i},`drawText`),s=e((e,t,n,i)=>{let a=e.append(`image`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,r.sanitizeUrl)(i);a.attr(`xlink:href`,o)},`drawImage`),c=e((e,t,n,i)=>{let a=e.append(`use`);a.attr(`x`,t),a.attr(`y`,n);let o=(0,r.sanitizeUrl)(i);a.attr(`xlink:href`,`#${o}`)},`drawEmbeddedImage`),l=e(()=>({x:0,y:0,width:100,height:100,fill:`#EDF2AE`,stroke:`#666`,anchor:`start`,rx:0,ry:0}),`getNoteRect`),u=e(()=>({x:0,y:0,width:100,height:100,"text-anchor":`start`,style:`#666`,textMargin:0,rx:0,ry:0,tspan:!0}),`getTextObj`);export{o as a,i,c as n,l as o,s as r,u as s,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./marked.esm-DUB0uiru.js";import"./chunk-S3R3BYOJ-CQpHdWQs.js";import{h as e}from"./src-CoWzf9ks.js";import"./chunk-ABZYJK2D-B-uQQBad.js";import"./dist-Bz_xenUc.js";import"./chunk-JA3XYJ7Z-B2ggvruF.js";import"./chunk-FMBD7UC4-z8oIKcMh.js";import"./chunk-HN2XXSSU-CwOdrF1j.js";import"./chunk-CVBHYZKI-C8bYjiGm.js";import"./chunk-55IACEB6-Cno6J5VV.js";import"./chunk-QN33PNHL-O3aN_XUL.js";import"./chunk-ATLVNIR6-06VCvgCA.js";import"./chunk-JZLCHNYA-CkNAdoyb.js";import"./chunk-QXUST7PY-BHpud-vy.js";import"./chunk-N4CR4FBY-CESp_hlr.js";import{i as t,n,r,t as i}from"./chunk-B4BG7PRW-CaYT2kjb.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./marked.esm-DUB0uiru.js";import"./chunk-S3R3BYOJ-CQpHdWQs.js";import{h as e}from"./src-CoWzf9ks.js";import"./chunk-ABZYJK2D-B-uQQBad.js";import"./dist-Bz_xenUc.js";import"./chunk-JA3XYJ7Z-B2ggvruF.js";import"./chunk-FMBD7UC4-z8oIKcMh.js";import"./chunk-HN2XXSSU-CwOdrF1j.js";import"./chunk-CVBHYZKI-C8bYjiGm.js";import"./chunk-55IACEB6-Cno6J5VV.js";import"./chunk-QN33PNHL-O3aN_XUL.js";import"./chunk-ATLVNIR6-06VCvgCA.js";import"./chunk-JZLCHNYA-CkNAdoyb.js";import"./chunk-QXUST7PY-BHpud-vy.js";import"./chunk-N4CR4FBY-CESp_hlr.js";import{i as t,n,r,t as i}from"./chunk-B4BG7PRW-CaYT2kjb.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as e}from"./_baseUniq-DrKsbT7-.js";var t=4;function n(n){return e(n,t)}var r=n;export{r as t};
|