@marimo-team/frontend 0.13.7-dev41 → 0.13.7-dev5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ConnectedDataExplorerComponent-D9o6hCFF.js +22 -0
- package/dist/assets/VegaLite-COeaO8XU.js +11 -0
- package/dist/assets/_baseEach-Dipk4Qfw.js +1 -0
- package/dist/assets/_baseMap-d7_s2dxj.js +1 -0
- package/dist/assets/_baseUniq-CWPdB_dq.js +1 -0
- package/dist/assets/_createAggregator-CiiGic_e.js +1 -0
- package/dist/assets/{any-language-editor-yR7V6EtK.js → any-language-editor-Dvmn1QF2.js} +1 -3
- package/dist/assets/apl-CXdQSnD-.js +1 -1
- package/dist/assets/arc-Cuwikxov.js +1 -1
- package/dist/assets/architectureDiagram-IEHRJDOE-CU0QICJs.js +1 -0
- package/dist/assets/asciiarmor-D5V0T9Cu.js +1 -1
- package/dist/assets/asn1-DWPaVWf6.js +1 -1
- package/dist/assets/asterisk-B46aRdXb.js +1 -1
- package/dist/assets/blockDiagram-JOT3LUYC-CatesY43.js +1 -0
- package/dist/assets/brainfuck-CtZaYBKt.js +1 -1
- package/dist/assets/c4Diagram-VJAJSXHY-C4mhf3Aa.js +1 -0
- package/dist/assets/channel-DqVPz42W.js +1 -0
- package/dist/assets/chunk-4BMEZGHF-BIy5YQYp.js +1 -0
- package/dist/assets/chunk-A2AXSNBT-C_xpJ-hN.js +1 -0
- package/dist/assets/chunk-AEK57VVT-k8f1agAG.js +1 -0
- package/dist/assets/chunk-D6G4REZN--WuDmds7.js +1 -0
- package/dist/assets/chunk-RZ5BOZE2-B3GqrIXs.js +1 -0
- package/dist/assets/chunk-XZIHB7SX-Cwjiz9xg.js +1 -0
- package/dist/assets/{circle-play-xrzeLSOm.js → circle-play-B3IPtL97.js} +2 -1
- package/dist/assets/classDiagram-GIVACNV2-CDT_8kPv.js +1 -0
- package/dist/assets/classDiagram-v2-COTLJTTW-CDT_8kPv.js +1 -0
- package/dist/assets/clike-BgBwzOhw.js +1 -1
- package/dist/assets/clojure-DR_hEDJv.js +1 -1
- package/dist/assets/clone-Cei_W01Q.js +1 -0
- package/dist/assets/cmake-DXn5xaP-.js +1 -1
- package/dist/assets/cobol-stawOqaz.js +1 -1
- package/dist/assets/coffeescript-BTDxI-eT.js +1 -1
- package/dist/assets/colors-bszWmPJw.js +1 -1
- package/dist/assets/commonlisp-vq6DHwts.js +1 -1
- package/dist/assets/compile-BVb0Xhkk.js +1 -0
- package/dist/assets/crystal-CRzZ78HM.js +1 -1
- package/dist/assets/css-ZjFoif2m.js +1 -1
- package/dist/assets/cypher-gJDei3ni.js +1 -1
- package/dist/assets/cytoscape.esm-bH-fs5wT.js +9 -0
- package/dist/assets/d-BShv7fp-.js +1 -1
- package/dist/assets/dagre-OKDRZEBW-DE3xoxsa.js +1 -0
- package/dist/assets/data-editor-B622NT6D.js +1 -0
- package/dist/assets/diagram-SSKATNLV-DRGoOkB7.js +1 -0
- package/dist/assets/diagram-VNBRO52H-j3UmS0Ll.js +1 -0
- package/dist/assets/diff-UJJ5BM9S.js +1 -1
- package/dist/assets/dockerfile-knGOOxt4.js +1 -1
- package/dist/assets/dtd-DI9Herc-.js +1 -1
- package/dist/assets/dylan-CHJ5qNM_.js +1 -1
- package/dist/assets/ebnf-B-Df8AvO.js +1 -1
- package/dist/assets/ecl-DPFc0Uaf.js +1 -1
- package/dist/assets/edit-page-DBO2lLpw.js +8 -0
- package/dist/assets/eiffel-DR5c0IrL.js +1 -1
- package/dist/assets/elm-D7xaZ7Da.js +1 -1
- package/dist/assets/erDiagram-Q7BY3M3F-DWHoCgAJ.js +1 -0
- package/dist/assets/erlang-BuqgqA5h.js +1 -1
- package/dist/assets/fcl-CVaBTCzQ.js +1 -1
- package/dist/assets/flowDiagram-4HSFHLVR-D_rCoypN.js +1 -0
- package/dist/assets/forth-Dri_5nFc.js +1 -1
- package/dist/assets/fortran-DL7KluxX.js +1 -1
- package/dist/assets/ganttDiagram-APWFNJXF-CHIT-PcJ.js +1 -0
- package/dist/assets/gas-5kEe4nk0.js +1 -1
- package/dist/assets/gherkin-B6X1vGSW.js +1 -1
- package/dist/assets/gitGraphDiagram-7IBYFJ6S-ErZPaKoV.js +1 -0
- package/dist/assets/graph-UJGOb4iX.js +1 -0
- package/dist/assets/groovy-DnIzCrpZ.js +1 -1
- package/dist/assets/haskell-CmdsSjFB.js +1 -1
- package/dist/assets/haxe-D25e-2l-.js +1 -1
- package/dist/assets/home-page-CS3aipva.js +7 -0
- package/dist/assets/http-BKJkqRj4.js +1 -1
- package/dist/assets/idl-pcmmZuaN.js +1 -1
- package/dist/assets/index-57xNO1if.js +1 -0
- package/dist/assets/index-6zO4OfLS.js +1 -0
- package/dist/assets/index-BBlc_oCU.js +1 -0
- package/dist/assets/index-BFUZwCtx.js +1 -0
- package/dist/assets/index-BHXWEyd0.js +1 -0
- package/dist/assets/index-BKq2imIU.js +1 -0
- package/dist/assets/index-BTHBullW.js +87 -0
- package/dist/assets/index-BW8Zm1Wv.js +1 -0
- package/dist/assets/index-Bl3VaYjI.js +1 -0
- package/dist/assets/index-Br-JkW3g.js +1 -0
- package/dist/assets/index-C546D0ll.js +1 -0
- package/dist/assets/index-CDSif2Eo.js +1 -0
- package/dist/assets/index-CnoBeGie.js +1 -0
- package/dist/assets/index-CvPoYLZ2.js +1 -0
- package/dist/assets/index-De2hEZfe.js +1 -0
- package/dist/assets/index-KBPV2vq8.css +1 -0
- package/dist/assets/index-KXLr4M13.js +1 -0
- package/dist/assets/index-Z1O8-oVl.js +1 -0
- package/dist/assets/index-_0tY9ze_.js +1 -0
- package/dist/assets/index-qlq3rtTI.js +1 -0
- package/dist/assets/infoDiagram-PH2N3AL5-k9F5eQpB.js +1 -0
- package/dist/assets/init-DLRA0X12.js +1 -1
- package/dist/assets/javascript-D48wDJXV.js +1 -1
- package/dist/assets/jinja2-DhgKlfW7.js +1 -1
- package/dist/assets/journeyDiagram-U35MCT3I-DiK9Dw9g.js +1 -0
- package/dist/assets/julia-DjdwvFuI.js +1 -1
- package/dist/assets/kanban-definition-NDS4AKOZ-CjYNE8xn.js +1 -0
- package/dist/assets/katex-Blph-pX_.js +1 -0
- package/dist/assets/layout-BjbDeGc_.js +1 -0
- package/dist/assets/linear-O-YCKOSR.js +1 -0
- package/dist/assets/livescript-HO6ttBFx.js +1 -1
- package/dist/assets/lua-8DXOpKDz.js +1 -1
- package/dist/assets/mathematica-IIbmv7SK.js +1 -1
- package/dist/assets/mbox-DoeuZPxA.js +1 -0
- package/dist/assets/mermaid-DNVHAxFt.js +7 -0
- package/dist/assets/mhchem-9pkdwevO.js +1 -0
- package/dist/assets/min-W2JRkwEB.js +1 -0
- package/dist/assets/mindmap-definition-ALO5MXBD-Ds099Ktp.js +1 -0
- package/dist/assets/mirc-DkvFAiy5.js +1 -1
- package/dist/assets/mllike-3c2dg9RT.js +1 -1
- package/dist/assets/modelica-DSrSSXCg.js +1 -1
- package/dist/assets/mscgen-B2igx18G.js +1 -1
- package/dist/assets/mumps-zvxmGV4l.js +1 -1
- package/dist/assets/nginx-B4hAVlXN.js +1 -1
- package/dist/assets/ntriples-FFvkTduk.js +1 -1
- package/dist/assets/octave-C4hdQ5Hf.js +1 -1
- package/dist/assets/ordinal-DDUp3AbE.js +1 -1
- package/dist/assets/oz-qQq7irPq.js +1 -1
- package/dist/assets/pascal-CafrKXZF.js +1 -1
- package/dist/assets/perl-tdMlh9QA.js +1 -1
- package/dist/assets/pieDiagram-IB7DONF6--fIB0xWO.js +1 -0
- package/dist/assets/pig-CwGJVRC4.js +1 -1
- package/dist/assets/powershell-D1ly3AHC.js +1 -1
- package/dist/assets/properties-_nPj978X.js +1 -1
- package/dist/assets/protobuf-B4y9do6W.js +1 -1
- package/dist/assets/pug-_kJOm_E2.js +1 -1
- package/dist/assets/puppet-Bc-yJKzi.js +1 -1
- package/dist/assets/python-DD-Q2bae.js +1 -1
- package/dist/assets/q-B0kTJ4cI.js +1 -1
- package/dist/assets/quadrantDiagram-7GDLP6J5-DrySMa8i.js +1 -0
- package/dist/assets/r-BA4EbLKE.js +1 -1
- package/dist/assets/radar-MK3ICKWK-BJ67P_5r.js +1 -0
- package/dist/assets/range-CtcPcB_L.js +1 -1
- package/dist/assets/react-plotly-DI7dGePo.js +71 -0
- package/dist/assets/requirementDiagram-KVF5MWMF-CrGS2s0Z.js +1 -0
- package/dist/assets/rpm-DI_rRufH.js +1 -1
- package/dist/assets/ruby-CR-u2WLS.js +1 -1
- package/dist/assets/run-page-Q-WbWUmv.js +1 -0
- package/dist/assets/sankeyDiagram-QLVOVGJD-DKjckX4b.js +1 -0
- package/dist/assets/sas-Bqaci40L.js +1 -1
- package/dist/assets/save-worker-CQvBUha3.js +1 -0
- package/dist/assets/scheme-qjP0V5Ag.js +1 -1
- package/dist/assets/sequenceDiagram-X6HHIX6F-C6VC8LOY.js +1 -0
- package/dist/assets/shell-BLav31RL.js +1 -1
- package/dist/assets/sieve-r025o_jW.js +1 -1
- package/dist/assets/simple-mode-C3vEBAcb.js +1 -1
- package/dist/assets/slides-component-BqWYp_FB.js +1 -0
- package/dist/assets/smalltalk-C7J3IyEP.js +1 -1
- package/dist/assets/solr-78MBEUkU.js +1 -1
- package/dist/assets/sortBy-MHvTYKSP.js +1 -0
- package/dist/assets/sparql-BRLJFz69.js +1 -1
- package/dist/assets/spreadsheet-CGlWr0eM.js +1 -1
- package/dist/assets/sql-B3SPsWL6.js +1 -1
- package/dist/assets/stateDiagram-DGXRK772-CTMc5Gvb.js +1 -0
- package/dist/assets/stateDiagram-v2-YXO3MK2T-DnNajpIH.js +1 -0
- package/dist/assets/step-BwsUM5iJ.js +1 -1
- package/dist/assets/stylus-OdhglgkO.js +1 -1
- package/dist/assets/swift-B_XXVlXX.js +1 -1
- package/dist/assets/tcl-B2fODqDH.js +1 -1
- package/dist/assets/terminal-DVzybcfs.css +1 -0
- package/dist/assets/terminal-mbvW7Xk5.js +1 -0
- package/dist/assets/textile-BuVhTOzU.js +1 -1
- package/dist/assets/tiddlywiki-BgR6AEZu.js +1 -1
- package/dist/assets/tiki-CI-ztowC.js +1 -1
- package/dist/assets/time-B69UfemB.js +1 -0
- package/dist/assets/timeline-definition-BDJGKUSR-DxC35mOc.js +1 -0
- package/dist/assets/timer-DFzT7np-.js +1 -1
- package/dist/assets/toml-BQXy8elZ.js +1 -1
- package/dist/assets/tracing-DDaw37xD.js +8 -0
- package/dist/assets/transform-DjHZbYKP.js +1 -0
- package/dist/assets/tree-DxEOaINK.js +8 -0
- package/dist/assets/troff-Ce85hlLp.js +1 -1
- package/dist/assets/ttcn-BxnYHtq8.js +1 -1
- package/dist/assets/ttcn-cfg-CKJxb-l2.js +1 -1
- package/dist/assets/turtle-BkSuIpt-.js +1 -1
- package/dist/assets/useMarimoWebSocket-xQ57O6MQ.js +15 -0
- package/dist/assets/vb-BHgjm0DN.js +1 -1
- package/dist/assets/vbscript-Dawdd5GZ.js +1 -1
- package/dist/assets/vega-component-Cw4CVdyb.js +1 -0
- package/dist/assets/velocity-BdD_26Jv.js +1 -1
- package/dist/assets/verilog-B4LBqg_1.js +1 -1
- package/dist/assets/vhdl-CWWH2SUo.js +1 -1
- package/dist/assets/web-vitals-rCWRSGQR.js +1 -0
- package/dist/assets/webidl-CGwyPRYs.js +1 -1
- package/dist/assets/worker-DMKWnagd.js +1 -0
- package/dist/assets/worker-DXe6aoib.js +1 -0
- package/dist/assets/xquery-CVDBqZPY.js +1 -1
- package/dist/assets/xychartDiagram-VJFVF3MP-DHps7gn-.js +1 -0
- package/dist/assets/yacas-I8QjZlxf.js +1 -1
- package/dist/assets/z80-D8p3gKXp.js +1 -1
- package/dist/assets/zoom-COrs4lFh.js +1 -1
- package/dist/index.html +2 -2
- package/package.json +4 -5
- package/dist/assets/ConnectedDataExplorerComponent-BhPE_DRp.js +0 -19
- package/dist/assets/VegaLite-CyF7WA9A.js +0 -189
- package/dist/assets/_baseEach-DETfZaAU.js +0 -1
- package/dist/assets/_baseMap-ugHDs6Hq.js +0 -1
- package/dist/assets/_baseUniq-pQZnr5-m.js +0 -1
- package/dist/assets/_createAggregator-D2JVUCzP.js +0 -1
- package/dist/assets/architectureDiagram-IEHRJDOE-BFZK5_HO.js +0 -36
- package/dist/assets/blockDiagram-JOT3LUYC-Dal53NdF.js +0 -121
- package/dist/assets/c4Diagram-VJAJSXHY-Dm5zpp7Y.js +0 -10
- package/dist/assets/channel-zxk2KM6z.js +0 -1
- package/dist/assets/chunk-4BMEZGHF-BgVXpkIs.js +0 -1
- package/dist/assets/chunk-A2AXSNBT-Bu7pxhZ6.js +0 -164
- package/dist/assets/chunk-AEK57VVT-sWR3KlR7.js +0 -220
- package/dist/assets/chunk-D6G4REZN-kDGSqohH.js +0 -1
- package/dist/assets/chunk-RZ5BOZE2-CjYbIVqz.js +0 -1
- package/dist/assets/chunk-XZIHB7SX-CTcQ5asc.js +0 -1
- package/dist/assets/classDiagram-GIVACNV2-DDww3UD6.js +0 -1
- package/dist/assets/classDiagram-v2-COTLJTTW-DDww3UD6.js +0 -1
- package/dist/assets/clone-etBi8mp_.js +0 -1
- package/dist/assets/compile-DmXlmCt2.js +0 -10
- package/dist/assets/cytoscape.esm-C5gjFiAL.js +0 -10
- package/dist/assets/dagre-OKDRZEBW-D8N4SX8H.js +0 -4
- package/dist/assets/data-editor-BWxs1G52.js +0 -142
- package/dist/assets/diagram-SSKATNLV-eAju0qHf.js +0 -43
- package/dist/assets/diagram-VNBRO52H-btycJI_U.js +0 -24
- package/dist/assets/edit-page-Bludu8gI.js +0 -134
- package/dist/assets/erDiagram-Q7BY3M3F-BzfnHeQg.js +0 -60
- package/dist/assets/flowDiagram-4HSFHLVR-x-oFzxqK.js +0 -161
- package/dist/assets/ganttDiagram-APWFNJXF-BR65Gz1x.js +0 -257
- package/dist/assets/gitGraphDiagram-7IBYFJ6S-yOQN1A6K.js +0 -65
- package/dist/assets/graph-B51_e674.js +0 -1
- package/dist/assets/home-page-MshwCq4r.js +0 -9
- package/dist/assets/index-B9hMl89Z.js +0 -1
- package/dist/assets/index-BCnVBPO4.js +0 -1
- package/dist/assets/index-BM48alvr.js +0 -476
- package/dist/assets/index-BPW1rICk.js +0 -1
- package/dist/assets/index-BeONax9n.js +0 -1
- package/dist/assets/index-BhVUmk5m.js +0 -1
- package/dist/assets/index-BnGPRK8x.js +0 -19
- package/dist/assets/index-BrPqEBof.js +0 -7
- package/dist/assets/index-C2lNcQoF.js +0 -1
- package/dist/assets/index-CBi_28jM.js +0 -1
- package/dist/assets/index-CFhk8AqC.js +0 -1
- package/dist/assets/index-CjKlGdmc.js +0 -1
- package/dist/assets/index-CmskT7Gu.js +0 -1
- package/dist/assets/index-CqMmw3fb.js +0 -1
- package/dist/assets/index-DTVxS1K3.js +0 -1
- package/dist/assets/index-Dcd7YSwn.js +0 -1
- package/dist/assets/index-Dk8I06Aa.js +0 -1
- package/dist/assets/index-DmxXRwxW.js +0 -1
- package/dist/assets/index-DredxwTT.css +0 -1
- package/dist/assets/index-u0Q-JHUU.js +0 -1
- package/dist/assets/infoDiagram-PH2N3AL5-CEfqMoVj.js +0 -2
- package/dist/assets/journeyDiagram-U35MCT3I-Bjjtb4F4.js +0 -138
- package/dist/assets/kanban-definition-NDS4AKOZ-BCv-QrbZ.js +0 -88
- package/dist/assets/katex-BsnJiHtx.js +0 -261
- package/dist/assets/layout-CT5QpgGS.js +0 -1
- package/dist/assets/linear-CtmUxlJf.js +0 -1
- package/dist/assets/loro_wasm_bg-DHBNbovs.wasm +0 -0
- package/dist/assets/mbox-z_N2Mo3d.js +0 -1
- package/dist/assets/mermaid-BW54LQfk.js +0 -152
- package/dist/assets/mhchem-C_nT2J_7.js +0 -1
- package/dist/assets/min-CAJMxOOO.js +0 -1
- package/dist/assets/mindmap-definition-ALO5MXBD-DhNyZuUR.js +0 -95
- package/dist/assets/pieDiagram-IB7DONF6-BA_UP_K7.js +0 -30
- package/dist/assets/quadrantDiagram-7GDLP6J5-HELlBL5r.js +0 -7
- package/dist/assets/radar-MK3ICKWK-eNU8yMhK.js +0 -126
- package/dist/assets/react-plotly-9ySyddMa.js +0 -4074
- package/dist/assets/requirementDiagram-KVF5MWMF-BSQgxb6e.js +0 -64
- package/dist/assets/run-page-CwLfxNqb.js +0 -1
- package/dist/assets/sankeyDiagram-QLVOVGJD-gum-aL5i.js +0 -10
- package/dist/assets/save-worker-D7xNPs7e.js +0 -1
- package/dist/assets/sequenceDiagram-X6HHIX6F-BUgrAHhz.js +0 -122
- package/dist/assets/slides-component-BqpIalqg.js +0 -1
- package/dist/assets/sortBy-CKjDc2Jv.js +0 -1
- package/dist/assets/stateDiagram-DGXRK772-_Z81qrxq.js +0 -1
- package/dist/assets/stateDiagram-v2-YXO3MK2T-Blg0s-zk.js +0 -1
- package/dist/assets/terminal-WqMRJt5Z.css +0 -1
- package/dist/assets/terminal-ZnOOCWe6.js +0 -9
- package/dist/assets/time-ByQUSCbd.js +0 -1
- package/dist/assets/timeline-definition-BDJGKUSR-wlIPtBDI.js +0 -61
- package/dist/assets/tracing-CoCXSx1o.js +0 -2
- package/dist/assets/transform-Cyp0GDF-.js +0 -1
- package/dist/assets/tree-BOJA365v.js +0 -17
- package/dist/assets/useMarimoWebSocket-aoTvFmah.js +0 -27
- package/dist/assets/vega-component-Ce7y0Ooq.js +0 -1
- package/dist/assets/web-vitals-Buym0gfC.js +0 -1
- package/dist/assets/worker-BWN2kUSa.js +0 -1
- package/dist/assets/worker-D-UG5-wL.js +0 -1
- package/dist/assets/xychartDiagram-VJFVF3MP-D_qA3UEB.js +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-OKDRZEBW-DE3xoxsa.js","./graph-UJGOb4iX.js","./index-BTHBullW.js","./index-KBPV2vq8.css","./_baseUniq-CWPdB_dq.js","./_baseEach-Dipk4Qfw.js","./layout-BjbDeGc_.js","./min-W2JRkwEB.js","./_baseMap-d7_s2dxj.js","./sortBy-MHvTYKSP.js","./clone-Cei_W01Q.js","./transform-DjHZbYKP.js","./timer-DFzT7np-.js","./step-BwsUM5iJ.js","./c4Diagram-VJAJSXHY-C4mhf3Aa.js","./chunk-D6G4REZN--WuDmds7.js","./flowDiagram-4HSFHLVR-D_rCoypN.js","./chunk-RZ5BOZE2-B3GqrIXs.js","./channel-DqVPz42W.js","./erDiagram-Q7BY3M3F-DWHoCgAJ.js","./gitGraphDiagram-7IBYFJ6S-ErZPaKoV.js","./chunk-4BMEZGHF-BIy5YQYp.js","./chunk-XZIHB7SX-Cwjiz9xg.js","./radar-MK3ICKWK-BJ67P_5r.js","./_createAggregator-CiiGic_e.js","./ganttDiagram-APWFNJXF-CHIT-PcJ.js","./time-B69UfemB.js","./linear-O-YCKOSR.js","./init-DLRA0X12.js","./infoDiagram-PH2N3AL5-k9F5eQpB.js","./pieDiagram-IB7DONF6--fIB0xWO.js","./arc-Cuwikxov.js","./ordinal-DDUp3AbE.js","./quadrantDiagram-7GDLP6J5-DrySMa8i.js","./xychartDiagram-VJFVF3MP-DHps7gn-.js","./range-CtcPcB_L.js","./requirementDiagram-KVF5MWMF-CrGS2s0Z.js","./sequenceDiagram-X6HHIX6F-C6VC8LOY.js","./classDiagram-GIVACNV2-CDT_8kPv.js","./chunk-A2AXSNBT-C_xpJ-hN.js","./classDiagram-v2-COTLJTTW-CDT_8kPv.js","./stateDiagram-DGXRK772-CTMc5Gvb.js","./chunk-AEK57VVT-k8f1agAG.js","./stateDiagram-v2-YXO3MK2T-DnNajpIH.js","./journeyDiagram-U35MCT3I-DiK9Dw9g.js","./timeline-definition-BDJGKUSR-DxC35mOc.js","./mindmap-definition-ALO5MXBD-Ds099Ktp.js","./cytoscape.esm-bH-fs5wT.js","./kanban-definition-NDS4AKOZ-CjYNE8xn.js","./sankeyDiagram-QLVOVGJD-DKjckX4b.js","./colors-bszWmPJw.js","./diagram-VNBRO52H-j3UmS0Ll.js","./diagram-SSKATNLV-DRGoOkB7.js","./blockDiagram-JOT3LUYC-CatesY43.js","./architectureDiagram-IEHRJDOE-CU0QICJs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var t,e,r,i,a,o,n,s,l;import{x as h,ai as c,cS as d,d7 as u,d8 as p,cP as g,d9 as f,da as m,y,ak as x,db as b,d6 as C,dc as k,d as w,S,af as v,aE as T,L as B,j as L}from"./index-BTHBullW.js";import{s as M}from"./transform-DjHZbYKP.js";import{o as _,q as F,r as A,u as E,v as $,x as D,y as O,z as I,A as P,B as R,C as N,D as q,E as z,F as W,G as j,H,I as Y,k as U,l as V}from"./step-BwsUM5iJ.js";var G=Object.prototype.hasOwnProperty;function X(t){if(null==t)return!0;if(h(t)&&(c(t)||"string"==typeof t||"function"==typeof t.splice||d(t)||u(t)||p(t)))return!t.length;var e=g(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(f(t))return!m(t).length;for(var r in t)if(G.call(t,r))return!1;return!0}class Z{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function K(t){return new Z(t,!0)}function J(t){return new Z(t,!1)}var Q,tt={exports:{}};const et=y((Q||(Q=1,tt.exports=function(){var t=1e3,e=6e4,r=36e5,i="millisecond",a="second",o="minute",n="hour",s="day",l="week",h="month",c="quarter",d="year",u="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},x={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),a=r%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(a,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),a=e.clone().add(i,h),o=r-a<0,n=e.clone().add(i+(o?-1:1),h);return+(-(i+(r-a)/(o?a-n:n-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:h,y:d,w:l,d:s,D:u,h:n,m:o,s:a,ms:i,Q:c}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",C={};C[b]=m;var k="$isDayjsObject",w=function(t){return t instanceof B||!(!t||!t[k])},S=function t(e,r,i){var a;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();C[o]&&(a=o),r&&(C[o]=r,a=o);var n=e.split("-");if(!a&&n.length>1)return t(n[0])}else{var s=e.name;C[s]=e,a=s}return!i&&a&&(b=a),a||!i&&b},v=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new B(r)},T=x;T.l=S,T.i=w,T.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var B=function(){function m(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[k]=!0}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(g);if(i){var a=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return!(this.$d.toString()===p)},y.isSame=function(t,e){var r=v(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return v(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<v(t)},y.$g=function(t,e,r){return T.u(t)?this[e]:this.set(r,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var r=this,i=!!T.u(e)||e,c=T.p(t),p=function(t,e){var a=T.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return i?a:a.endOf(s)},g=function(t,e){return T.w(r.toDate()[t].apply(r.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},f=this.$W,m=this.$M,y=this.$D,x="set"+(this.$u?"UTC":"");switch(c){case d:return i?p(1,0):p(31,11);case h:return i?p(1,m):p(0,m+1);case l:var b=this.$locale().weekStart||0,C=(f<b?f+7:f)-b;return p(i?y-C:y+(6-C),m);case s:case u:return g(x+"Hours",0);case n:return g(x+"Minutes",1);case o:return g(x+"Seconds",2);case a:return g(x+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var r,l=T.p(t),c="set"+(this.$u?"UTC":""),p=(r={},r[s]=c+"Date",r[u]=c+"Date",r[h]=c+"Month",r[d]=c+"FullYear",r[n]=c+"Hours",r[o]=c+"Minutes",r[a]=c+"Seconds",r[i]=c+"Milliseconds",r)[l],g=l===s?this.$D+(e-this.$W):e;if(l===h||l===d){var f=this.clone().set(u,1);f.$d[p](g),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[T.p(t)]()},y.add=function(i,c){var u,p=this;i=Number(i);var g=T.p(c),f=function(t){var e=v(p);return T.w(e.date(e.date()+Math.round(t*i)),p)};if(g===h)return this.set(h,this.$M+i);if(g===d)return this.set(d,this.$y+i);if(g===s)return f(1);if(g===l)return f(7);var m=(u={},u[o]=e,u[n]=r,u[a]=t,u)[g]||1,y=this.$d.getTime()+i*m;return T.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var i=t||"YYYY-MM-DDTHH:mm:ssZ",a=T.z(this),o=this.$H,n=this.$m,s=this.$M,l=r.weekdays,h=r.months,c=r.meridiem,d=function(t,r,a,o){return t&&(t[r]||t(e,i))||a[r].slice(0,o)},u=function(t){return T.s(o%12||12,t,"0")},g=c||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(f,(function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return T.s(e.$y,4,"0");case"M":return s+1;case"MM":return T.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,h,3);case"MMMM":return d(h,s);case"D":return e.$D;case"DD":return T.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,l,2);case"ddd":return d(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return T.s(o,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return g(o,n,!0);case"A":return g(o,n,!1);case"m":return String(n);case"mm":return T.s(n,2,"0");case"s":return String(e.$s);case"ss":return T.s(e.$s,2,"0");case"SSS":return T.s(e.$ms,3,"0");case"Z":return a}return null}(t)||a.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(i,u,p){var g,f=this,m=T.p(u),y=v(i),x=(y.utcOffset()-this.utcOffset())*e,b=this-y,C=function(){return T.m(f,y)};switch(m){case d:g=C()/12;break;case h:g=C();break;case c:g=C()/3;break;case l:g=(b-x)/6048e5;break;case s:g=(b-x)/864e5;break;case n:g=b/r;break;case o:g=b/e;break;case a:g=b/t;break;default:g=b}return p?g:T.a(g)},y.daysInMonth=function(){return this.endOf(h).$D},y.$locale=function(){return C[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=S(t,e,!0);return i&&(r.$L=i),r},y.clone=function(){return T.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),L=B.prototype;return v.prototype=L,[["$ms",i],["$s",a],["$m",o],["$H",n],["$W",s],["$M",h],["$y",d],["$D",u]].forEach((function(t){L[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,B,v),t.$i=!0),v},v.locale=S,v.isDayjs=w,v.unix=function(t){return v(1e3*t)},v.en=C[b],v.Ls=C,v.p={},v}()),tt.exports)),rt={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;const a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*rt.hue2rgb(o,a,t+1/3);case"g":return 255*rt.hue2rgb(o,a,t);case"b":return 255*rt.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255,e/=255,r/=255;const a=Math.max(t,e,r),o=Math.min(t,e,r),n=(a+o)/2;if("l"===i)return 100*n;if(a===o)return 0;const s=a-o;if("s"===i)return 100*(n>.5?s/(2-a-o):s/(a+o));switch(a){case t:return 60*((e-r)/s+(e<r?6:0));case e:return 60*((r-t)/s+2);case r:return 60*((t-e)/s+4);default:return-1}}},it={channel:rt,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},at={};for(let zg=0;zg<=255;zg++)at[zg]=it.unit.dec2hex(zg);const ot=0,nt=1,st=2;class lt{constructor(){this.type=ot}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ot}is(t){return this.type===t}}const ht=new class{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new lt}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=ot,this}_ensureHSL(){const t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=it.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=it.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=it.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=it.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=it.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=it.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(st)||void 0===e?(this._ensureHSL(),it.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(st)||void 0===e?(this._ensureHSL(),it.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(st)||void 0===e?(this._ensureHSL(),it.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(nt)||void 0===e?(this._ensureRGB(),it.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(nt)||void 0===e?(this._ensureRGB(),it.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(nt)||void 0===e?(this._ensureRGB(),it.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(nt),this.changed=!0,this.data.r=t}set g(t){this.type.set(nt),this.changed=!0,this.data.g=t}set b(t){this.type.set(nt),this.changed=!0,this.data.b=t}set h(t){this.type.set(st),this.changed=!0,this.data.h=t}set s(t){this.type.set(st),this.changed=!0,this.data.s=t}set l(t){this.type.set(st),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}({r:0,g:0,b:0,a:0},"transparent"),ct={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(ct.re);if(!e)return;const r=e[1],i=parseInt(r,16),a=r.length,o=a%4==0,n=a>4,s=n?1:17,l=n?8:4,h=o?0:-1,c=n?255:15;return ht.set({r:(i>>l*(h+3)&c)*s,g:(i>>l*(h+2)&c)*s,b:(i>>l*(h+1)&c)*s,a:o?(i&c)*s/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:a}=t;return a<1?`#${at[Math.round(e)]}${at[Math.round(r)]}${at[Math.round(i)]}${at[Math.round(255*a)]}`:`#${at[Math.round(e)]}${at[Math.round(r)]}${at[Math.round(i)]}`}},dt={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(dt.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return it.channel.clamp.h(.9*parseFloat(t));case"rad":return it.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return it.channel.clamp.h(360*parseFloat(t))}}return it.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const r=t.match(dt.re);if(!r)return;const[,i,a,o,n,s]=r;return ht.set({h:dt._hue2deg(i),s:it.channel.clamp.s(parseFloat(a)),l:it.channel.clamp.l(parseFloat(o)),a:n?it.channel.clamp.a(s?parseFloat(n)/100:parseFloat(n)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a:a}=t;return a<1?`hsla(${it.lang.round(e)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%, ${a})`:`hsl(${it.lang.round(e)}, ${it.lang.round(r)}%, ${it.lang.round(i)}%)`}},ut={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=ut.colors[t];if(e)return ct.parse(e)},stringify:t=>{const e=ct.stringify(t);for(const r in ut.colors)if(ut.colors[r]===e)return r}},pt={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const r=t.match(pt.re);if(!r)return;const[,i,a,o,n,s,l,h,c]=r;return ht.set({r:it.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:it.channel.clamp.g(n?2.55*parseFloat(o):parseFloat(o)),b:it.channel.clamp.b(l?2.55*parseFloat(s):parseFloat(s)),a:h?it.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a:a}=t;return a<1?`rgba(${it.lang.round(e)}, ${it.lang.round(r)}, ${it.lang.round(i)}, ${it.lang.round(a)})`:`rgb(${it.lang.round(e)}, ${it.lang.round(r)}, ${it.lang.round(i)})`}},gt={format:{keyword:ut,hex:ct,rgb:pt,rgba:pt,hsl:dt,hsla:dt},parse:t=>{if("string"!=typeof t)return t;const e=ct.parse(t)||pt.parse(t)||dt.parse(t)||ut.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(st)||void 0===t.data.r?dt.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?pt.stringify(t):ct.stringify(t)},ft=(t,e)=>{const r=gt.parse(t);for(const i in e)r[i]=it.channel.clamp[i](e[i]);return gt.stringify(r)},mt=(t,e,r=0,i=1)=>{if("number"!=typeof t)return ft(t,{a:e});const a=ht.set({r:it.channel.clamp.r(t),g:it.channel.clamp.g(e),b:it.channel.clamp.b(r),a:it.channel.clamp.a(i)});return gt.stringify(a)},yt=t=>(t=>{const{r:e,g:r,b:i}=gt.parse(t),a=.2126*it.channel.toLinear(e)+.7152*it.channel.toLinear(r)+.0722*it.channel.toLinear(i);return it.lang.round(a)})(t)>=.5,xt=t=>!yt(t),bt=(t,e,r)=>{const i=gt.parse(t),a=i[e],o=it.channel.clamp[e](a+r);return a!==o&&(i[e]=o),gt.stringify(i)},Ct=(t,e)=>bt(t,"l",e),kt=(t,e)=>bt(t,"l",-e),wt=(t,e)=>{const r=gt.parse(t),i={};for(const a in e)e[a]&&(i[a]=r[a]+e[a]);return ft(t,i)},St=(t,e=100)=>{const r=gt.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{const{r:i,g:a,b:o,a:n}=gt.parse(t),{r:s,g:l,b:h,a:c}=gt.parse(e),d=r/100,u=2*d-1,p=n-c,g=((u*p==-1?u:(u+p)/(1+u*p))+1)/2,f=1-g;return mt(i*g+s*f,a*g+l*f,o*g+h*f,n*d+c*(1-d))})(r,t,e)},{entries:vt,setPrototypeOf:Tt,isFrozen:Bt,getPrototypeOf:Lt,getOwnPropertyDescriptor:Mt}=Object;let{freeze:_t,seal:Ft,create:At}=Object,{apply:Et,construct:$t}="undefined"!=typeof Reflect&&Reflect;_t||(_t=function(t){return t}),Ft||(Ft=function(t){return t}),Et||(Et=function(t,e,r){return t.apply(e,r)}),$t||($t=function(t,e){return new t(...e)});const Dt=Xt(Array.prototype.forEach),Ot=Xt(Array.prototype.lastIndexOf),It=Xt(Array.prototype.pop),Pt=Xt(Array.prototype.push),Rt=Xt(Array.prototype.splice),Nt=Xt(String.prototype.toLowerCase),qt=Xt(String.prototype.toString),zt=Xt(String.prototype.match),Wt=Xt(String.prototype.replace),jt=Xt(String.prototype.indexOf),Ht=Xt(String.prototype.trim),Yt=Xt(Object.prototype.hasOwnProperty),Ut=Xt(RegExp.prototype.test),Vt=(Gt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return $t(Gt,e)});var Gt;function Xt(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return Et(t,e,i)}}function Zt(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nt;Tt&&Tt(t,null);let i=e.length;for(;i--;){let a=e[i];if("string"==typeof a){const t=r(a);t!==a&&(Bt(e)||(e[i]=t),a=t)}t[a]=!0}return t}function Kt(t){for(let e=0;e<t.length;e++){Yt(t,e)||(t[e]=null)}return t}function Jt(t){const e=At(null);for(const[r,i]of vt(t)){Yt(t,r)&&(Array.isArray(i)?e[r]=Kt(i):i&&"object"==typeof i&&i.constructor===Object?e[r]=Jt(i):e[r]=i)}return e}function Qt(t,e){for(;null!==t;){const r=Mt(t,e);if(r){if(r.get)return Xt(r.get);if("function"==typeof r.value)return Xt(r.value)}t=Lt(t)}return function(){return null}}const te=_t(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ee=_t(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),re=_t(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ie=_t(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ae=_t(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),oe=_t(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ne=_t(["#text"]),se=_t(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),le=_t(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),he=_t(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ce=_t(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),de=Ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ue=Ft(/<%[\w\W]*|[\w\W]*%>/gm),pe=Ft(/\$\{[\w\W]*/gm),ge=Ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),fe=Ft(/^aria-[\-\w]+$/),me=Ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ye=Ft(/^(?:\w+script|data):/i),xe=Ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),be=Ft(/^html$/i),Ce=Ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var ke=Object.freeze({__proto__:null,ARIA_ATTR:fe,ATTR_WHITESPACE:xe,CUSTOM_ELEMENT:Ce,DATA_ATTR:ge,DOCTYPE_NAME:be,ERB_EXPR:ue,IS_ALLOWED_URI:me,IS_SCRIPT_OR_DATA:ye,MUSTACHE_EXPR:de,TMPLIT_EXPR:pe});const we=1,Se=3,ve=7,Te=8,Be=9;var Le,Me=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=e=>t(e);if(r.version="3.2.4",r.removed=[],!e||!e.document||e.document.nodeType!==Be||!e.Element)return r.isSupported=!1,r;let{document:i}=e;const a=i,o=a.currentScript,{DocumentFragment:n,HTMLTemplateElement:s,Node:l,Element:h,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:p,trustedTypes:g}=e,f=h.prototype,m=Qt(f,"cloneNode"),y=Qt(f,"remove"),x=Qt(f,"nextSibling"),b=Qt(f,"childNodes"),C=Qt(f,"parentNode");if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let k,w="";const{implementation:S,createNodeIterator:v,createDocumentFragment:T,getElementsByTagName:B}=i,{importNode:L}=a;let M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof vt&&"function"==typeof C&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:_,ERB_EXPR:F,TMPLIT_EXPR:A,DATA_ATTR:E,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:I}=ke;let{IS_ALLOWED_URI:P}=ke,R=null;const N=Zt({},[...te,...ee,...re,...ae,...ne]);let q=null;const z=Zt({},[...se,...le,...he,...ce]);let W=Object.seal(At(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,H=null,Y=!0,U=!0,V=!1,G=!0,X=!1,Z=!0,K=!1,J=!1,Q=!1,tt=!1,et=!1,rt=!1,it=!0,at=!1,ot=!0,nt=!1,st={},lt=null;const ht=Zt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ct=null;const dt=Zt({},["audio","video","img","source","image","track"]);let ut=null;const pt=Zt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gt="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let yt=mt,xt=!1,bt=null;const Ct=Zt({},[gt,ft,mt],qt);let kt=Zt({},["mi","mo","mn","ms","mtext"]),wt=Zt({},["annotation-xml"]);const St=Zt({},["title","style","font","a","script"]);let Tt=null;const Bt=["application/xhtml+xml","text/html"];let Lt=null,Mt=null;const Ft=i.createElement("form"),Et=function(t){return t instanceof RegExp||t instanceof Function},$t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Mt||Mt!==t){if(t&&"object"==typeof t||(t={}),t=Jt(t),Tt=-1===Bt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Lt="application/xhtml+xml"===Tt?qt:Nt,R=Yt(t,"ALLOWED_TAGS")?Zt({},t.ALLOWED_TAGS,Lt):N,q=Yt(t,"ALLOWED_ATTR")?Zt({},t.ALLOWED_ATTR,Lt):z,bt=Yt(t,"ALLOWED_NAMESPACES")?Zt({},t.ALLOWED_NAMESPACES,qt):Ct,ut=Yt(t,"ADD_URI_SAFE_ATTR")?Zt(Jt(pt),t.ADD_URI_SAFE_ATTR,Lt):pt,ct=Yt(t,"ADD_DATA_URI_TAGS")?Zt(Jt(dt),t.ADD_DATA_URI_TAGS,Lt):dt,lt=Yt(t,"FORBID_CONTENTS")?Zt({},t.FORBID_CONTENTS,Lt):ht,j=Yt(t,"FORBID_TAGS")?Zt({},t.FORBID_TAGS,Lt):{},H=Yt(t,"FORBID_ATTR")?Zt({},t.FORBID_ATTR,Lt):{},st=!!Yt(t,"USE_PROFILES")&&t.USE_PROFILES,Y=!1!==t.ALLOW_ARIA_ATTR,U=!1!==t.ALLOW_DATA_ATTR,V=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,X=t.SAFE_FOR_TEMPLATES||!1,Z=!1!==t.SAFE_FOR_XML,K=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,rt=t.RETURN_TRUSTED_TYPE||!1,Q=t.FORCE_BODY||!1,it=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,ot=!1!==t.KEEP_CONTENT,nt=t.IN_PLACE||!1,P=t.ALLOWED_URI_REGEXP||me,yt=t.NAMESPACE||mt,kt=t.MATHML_TEXT_INTEGRATION_POINTS||kt,wt=t.HTML_INTEGRATION_POINTS||wt,W=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Et(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(W.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Et(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(W.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(W.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(U=!1),et&&(tt=!0),st&&(R=Zt({},ne),q=[],!0===st.html&&(Zt(R,te),Zt(q,se)),!0===st.svg&&(Zt(R,ee),Zt(q,le),Zt(q,ce)),!0===st.svgFilters&&(Zt(R,re),Zt(q,le),Zt(q,ce)),!0===st.mathMl&&(Zt(R,ae),Zt(q,he),Zt(q,ce))),t.ADD_TAGS&&(R===N&&(R=Jt(R)),Zt(R,t.ADD_TAGS,Lt)),t.ADD_ATTR&&(q===z&&(q=Jt(q)),Zt(q,t.ADD_ATTR,Lt)),t.ADD_URI_SAFE_ATTR&&Zt(ut,t.ADD_URI_SAFE_ATTR,Lt),t.FORBID_CONTENTS&&(lt===ht&&(lt=Jt(lt)),Zt(lt,t.FORBID_CONTENTS,Lt)),ot&&(R["#text"]=!0),K&&Zt(R,["html","head","body"]),R.table&&(Zt(R,["tbody"]),delete j.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Vt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=t.TRUSTED_TYPES_POLICY,w=k.createHTML("")}else void 0===k&&(k=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));const a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(o){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(g,o)),null!==k&&"string"==typeof w&&(w=k.createHTML(""));_t&&_t(t),Mt=t}},Gt=Zt({},[...ee,...re,...ie]),Xt=Zt({},[...ae,...oe]),Kt=function(t){Pt(r.removed,{element:t});try{C(t).removeChild(t)}catch(e){y(t)}},de=function(t,e){try{Pt(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(i){Pt(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Kt(e)}catch(i){}else try{e.setAttribute(t,"")}catch(i){}},ue=function(t){let e=null,r=null;if(Q)t="<remove></remove>"+t;else{const e=zt(t,/^[\r\n\t ]+/);r=e&&e[0]}"application/xhtml+xml"===Tt&&yt===mt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const a=k?k.createHTML(t):t;if(yt===mt)try{e=(new p).parseFromString(a,Tt)}catch(n){}if(!e||!e.documentElement){e=S.createDocument(yt,"template",null);try{e.documentElement.innerHTML=xt?w:a}catch(n){}}const o=e.body||e.documentElement;return t&&r&&o.insertBefore(i.createTextNode(r),o.childNodes[0]||null),yt===mt?B.call(e,K?"html":"body")[0]:K?e.documentElement:o},pe=function(t){return v.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ge=function(t){return t instanceof u&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},fe=function(t){return"function"==typeof l&&t instanceof l};function ye(t,e,i){Dt(t,(t=>{t.call(r,e,i,Mt)}))}const xe=function(t){let e=null;if(ye(M.beforeSanitizeElements,t,null),ge(t))return Kt(t),!0;const i=Lt(t.nodeName);if(ye(M.uponSanitizeElement,t,{tagName:i,allowedTags:R}),t.hasChildNodes()&&!fe(t.firstElementChild)&&Ut(/<[/\w]/g,t.innerHTML)&&Ut(/<[/\w]/g,t.textContent))return Kt(t),!0;if(t.nodeType===ve)return Kt(t),!0;if(Z&&t.nodeType===Te&&Ut(/<[/\w]/g,t.data))return Kt(t),!0;if(!R[i]||j[i]){if(!j[i]&&Le(i)){if(W.tagNameCheck instanceof RegExp&&Ut(W.tagNameCheck,i))return!1;if(W.tagNameCheck instanceof Function&&W.tagNameCheck(i))return!1}if(ot&&!lt[i]){const e=C(t)||t.parentNode,r=b(t)||t.childNodes;if(r&&e){for(let i=r.length-1;i>=0;--i){const a=m(r[i],!0);a.__removalCount=(t.__removalCount||0)+1,e.insertBefore(a,x(t))}}}return Kt(t),!0}return t instanceof h&&!function(t){let e=C(t);e&&e.tagName||(e={namespaceURI:yt,tagName:"template"});const r=Nt(t.tagName),i=Nt(e.tagName);return!!bt[t.namespaceURI]&&(t.namespaceURI===ft?e.namespaceURI===mt?"svg"===r:e.namespaceURI===gt?"svg"===r&&("annotation-xml"===i||kt[i]):Boolean(Gt[r]):t.namespaceURI===gt?e.namespaceURI===mt?"math"===r:e.namespaceURI===ft?"math"===r&&wt[i]:Boolean(Xt[r]):t.namespaceURI===mt?!(e.namespaceURI===ft&&!wt[i])&&!(e.namespaceURI===gt&&!kt[i])&&!Xt[r]&&(St[r]||!Gt[r]):!("application/xhtml+xml"!==Tt||!bt[t.namespaceURI]))}(t)?(Kt(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!Ut(/<\/no(script|embed|frames)/i,t.innerHTML)?(X&&t.nodeType===Se&&(e=t.textContent,Dt([_,F,A],(t=>{e=Wt(e,t," ")})),t.textContent!==e&&(Pt(r.removed,{element:t.cloneNode()}),t.textContent=e)),ye(M.afterSanitizeElements,t,null),!1):(Kt(t),!0)},Ce=function(t,e,r){if(it&&("id"===e||"name"===e)&&(r in i||r in Ft))return!1;if(U&&!H[e]&&Ut(E,e));else if(Y&&Ut($,e));else if(!q[e]||H[e]){if(!(Le(t)&&(W.tagNameCheck instanceof RegExp&&Ut(W.tagNameCheck,t)||W.tagNameCheck instanceof Function&&W.tagNameCheck(t))&&(W.attributeNameCheck instanceof RegExp&&Ut(W.attributeNameCheck,e)||W.attributeNameCheck instanceof Function&&W.attributeNameCheck(e))||"is"===e&&W.allowCustomizedBuiltInElements&&(W.tagNameCheck instanceof RegExp&&Ut(W.tagNameCheck,r)||W.tagNameCheck instanceof Function&&W.tagNameCheck(r))))return!1}else if(ut[e]);else if(Ut(P,Wt(r,O,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==jt(r,"data:")||!ct[t]){if(V&&!Ut(D,Wt(r,O,"")));else if(r)return!1}else;return!0},Le=function(t){return"annotation-xml"!==t&&zt(t,I)},Me=function(t){ye(M.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||ge(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let a=e.length;for(;a--;){const n=e[a],{name:s,namespaceURI:l,value:h}=n,c=Lt(s);let d="value"===s?h:Ht(h);if(i.attrName=c,i.attrValue=d,i.keepAttr=!0,i.forceKeepAttr=void 0,ye(M.uponSanitizeAttribute,t,i),d=i.attrValue,!at||"id"!==c&&"name"!==c||(de(s,t),d="user-content-"+d),Z&&Ut(/((--!?|])>)|<\/(style|title)/i,d)){de(s,t);continue}if(i.forceKeepAttr)continue;if(de(s,t),!i.keepAttr)continue;if(!G&&Ut(/\/>/i,d)){de(s,t);continue}X&&Dt([_,F,A],(t=>{d=Wt(d,t," ")}));const u=Lt(t.nodeName);if(Ce(u,c,d)){if(k&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(l);else switch(g.getAttributeType(u,c)){case"TrustedHTML":d=k.createHTML(d);break;case"TrustedScriptURL":d=k.createScriptURL(d)}try{l?t.setAttributeNS(l,s,d):t.setAttribute(s,d),ge(t)?Kt(t):It(r.removed)}catch(o){}}}ye(M.afterSanitizeAttributes,t,null)},_e=function t(e){let r=null;const i=pe(e);for(ye(M.beforeSanitizeShadowDOM,e,null);r=i.nextNode();)ye(M.uponSanitizeShadowNode,r,null),xe(r),Me(r),r.content instanceof n&&t(r.content);ye(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,h=null;if(xt=!t,xt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!fe(t)){if("function"!=typeof t.toString)throw Vt("toString is not a function");if("string"!=typeof(t=t.toString()))throw Vt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(J||$t(e),r.removed=[],"string"==typeof t&&(nt=!1),nt){if(t.nodeName){const e=Lt(t.nodeName);if(!R[e]||j[e])throw Vt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)i=ue("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),o.nodeType===we&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!tt&&!X&&!K&&-1===t.indexOf("<"))return k&&rt?k.createHTML(t):t;if(i=ue(t),!i)return tt?null:rt?w:""}i&&Q&&Kt(i.firstChild);const c=pe(nt?t:i);for(;s=c.nextNode();)xe(s),Me(s),s.content instanceof n&&_e(s.content);if(nt)return t;if(tt){if(et)for(h=T.call(i.ownerDocument);i.firstChild;)h.appendChild(i.firstChild);else h=i;return(q.shadowroot||q.shadowrootmode)&&(h=L.call(a,h,!0)),h}let d=K?i.outerHTML:i.innerHTML;return K&&R["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Ut(be,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),X&&Dt([_,F,A],(t=>{d=Wt(d,t," ")})),k&&rt?k.createHTML(d):d},r.setConfig=function(){$t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},r.clearConfig=function(){Mt=null,J=!1},r.isValidAttribute=function(t,e,r){Mt||$t({});const i=Lt(t),a=Lt(e);return Ce(i,a,r)},r.addHook=function(t,e){"function"==typeof e&&Pt(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){const r=Ot(M[t],e);return-1===r?void 0:Rt(M[t],r,1)[0]}return It(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),_e=Object.defineProperty,Fe=(t,e)=>_e(t,"name",{value:e,configurable:!0}),Ae=(t,e)=>{for(var r in e)_e(t,r,{get:e[r],enumerable:!0})},Ee={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},$e={trace:Fe(((...t)=>{}),"trace"),debug:Fe(((...t)=>{}),"debug"),info:Fe(((...t)=>{}),"info"),warn:Fe(((...t)=>{}),"warn"),error:Fe(((...t)=>{}),"error"),fatal:Fe(((...t)=>{}),"fatal")},De=Fe((function(t="fatal"){let e=Ee.fatal;"string"==typeof t?t.toLowerCase()in Ee&&(e=Ee[t]):"number"==typeof t&&(e=t),$e.trace=()=>{},$e.debug=()=>{},$e.info=()=>{},$e.warn=()=>{},$e.error=()=>{},$e.fatal=()=>{},e<=Ee.fatal&&($e.fatal=console.error?console.error.bind(console,Oe("FATAL"),"color: orange"):console.log.bind(console,"[35m",Oe("FATAL"))),e<=Ee.error&&($e.error=console.error?console.error.bind(console,Oe("ERROR"),"color: orange"):console.log.bind(console,"[31m",Oe("ERROR"))),e<=Ee.warn&&($e.warn=console.warn?console.warn.bind(console,Oe("WARN"),"color: orange"):console.log.bind(console,"[33m",Oe("WARN"))),e<=Ee.info&&($e.info=console.info?console.info.bind(console,Oe("INFO"),"color: lightblue"):console.log.bind(console,"[34m",Oe("INFO"))),e<=Ee.debug&&($e.debug=console.debug?console.debug.bind(console,Oe("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",Oe("DEBUG"))),e<=Ee.trace&&($e.trace=console.debug?console.debug.bind(console,Oe("TRACE"),"color: lightgreen"):console.log.bind(console,"[32m",Oe("TRACE")))}),"setLogLevel"),Oe=Fe((t=>`%c${et().format("ss.SSS")} : ${t} : `),"format"),Ie=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Pe=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Re=/\s*%%.*\n/gm,Ne=(t=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},Fe(t,"UnknownDiagramError"),t),qe={},ze=Fe((function(t,e){t=t.replace(Ie,"").replace(Pe,"").replace(Re,"\n");for(const[r,{detector:i}]of Object.entries(qe)){if(i(t,e))return r}throw new Ne(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType"),We=Fe(((...t)=>{for(const{id:e,detector:r,loader:i}of t)je(e,r,i)}),"registerLazyLoadedDiagrams"),je=Fe(((t,e,r)=>{qe[t]&&$e.warn(`Detector with key ${t} already exists. Overwriting.`),qe[t]={detector:e,loader:r},$e.debug(`Detector with key ${t} added${r?" with loader":""}`)}),"addDetector"),He=Fe((t=>qe[t].loader),"getDiagramLoader"),Ye=Fe(((t,e,{depth:r=2,clobber:i=!1}={})=>{const a={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>Ye(t,e,a))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||r<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((a=>{"object"!=typeof e[a]||void 0!==t[a]&&"object"!=typeof t[a]?(i||"object"!=typeof t[a]&&"object"!=typeof e[a])&&(t[a]=e[a]):(void 0===t[a]&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=Ye(t[a],e[a],{depth:r-1,clobber:i}))})),t)}),"assignWithDepth"),Ue=Ye,Ve="#ffffff",Ge="#f2f2f2",Xe=Fe(((t,e)=>wt(t,e?{s:-40,l:10}:{s:-40,l:-10})),"mkBorder"),Ze=(Fe(e=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,e,r,i,a,o,n,s,l,h,c,d,u,p,g,f,m,y,x,b,C;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||wt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||wt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||St(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||St(this.tertiaryColor),this.lineColor=this.lineColor||St(this.background),this.arrowheadColor=this.arrowheadColor||St(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?kt(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||kt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||St(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Ct(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||kt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||kt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Ct(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ct(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||wt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||wt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||wt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||wt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||wt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||wt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||wt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||wt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||wt(this.primaryColor,{h:330}),this.darkMode)for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=kt(this["cScale"+w],75);else for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=kt(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||St(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||Ct(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||kt(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;const k=this.darkMode?-4:-1;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||wt(this.mainBkg,{h:180,s:-15,l:k*(5+3*w)}),this["surfacePeer"+w]=this["surfacePeer"+w]||wt(this.mainBkg,{h:180,s:-15,l:k*(8+3*w)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||wt(this.primaryColor,{h:64}),this.fillType3=this.fillType3||wt(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||wt(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||wt(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||wt(this.primaryColor,{h:128}),this.fillType7=this.fillType7||wt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||wt(this.primaryColor,{l:-10}),this.pie5=this.pie5||wt(this.secondaryColor,{l:-10}),this.pie6=this.pie6||wt(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||wt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||wt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||wt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||wt(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||wt(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||wt(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:(null==(t=this.radar)?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:(null==(e=this.radar)?void 0:e.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(i=this.radar)?void 0:i.curveOpacity)||.5,curveStrokeWidth:(null==(a=this.radar)?void 0:a.curveStrokeWidth)||2,graticuleColor:(null==(o=this.radar)?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(n=this.radar)?void 0:n.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(h=this.radar)?void 0:h.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||wt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||wt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||wt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||wt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||wt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||wt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xt(this.quadrant1Fill)?Ct(this.quadrant1Fill):kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(c=this.xyChart)?void 0:c.backgroundColor)||this.background,titleColor:(null==(d=this.xyChart)?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(u=this.xyChart)?void 0:u.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(g=this.xyChart)?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(f=this.xyChart)?void 0:f.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(m=this.xyChart)?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(y=this.xyChart)?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(x=this.xyChart)?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(b=this.xyChart)?void 0:b.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||wt(this.primaryColor,{h:-30}),this.git4=this.git4||wt(this.primaryColor,{h:-60}),this.git5=this.git5||wt(this.primaryColor,{h:-90}),this.git6=this.git6||wt(this.primaryColor,{h:60}),this.git7=this.git7||wt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ct(this.git0,25),this.git1=Ct(this.git1,25),this.git2=Ct(this.git2,25),this.git3=Ct(this.git3,25),this.git4=Ct(this.git4,25),this.git5=Ct(this.git5,25),this.git6=Ct(this.git6,25),this.git7=Ct(this.git7,25)):(this.git0=kt(this.git0,25),this.git1=kt(this.git1,25),this.git2=kt(this.git2,25),this.git3=kt(this.git3,25),this.git4=kt(this.git4,25),this.git5=kt(this.git5,25),this.git6=kt(this.git6,25),this.git7=kt(this.git7,25)),this.gitInv0=this.gitInv0||St(this.git0),this.gitInv1=this.gitInv1||St(this.git1),this.gitInv2=this.gitInv2||St(this.git2),this.gitInv3=this.gitInv3||St(this.git3),this.gitInv4=this.gitInv4||St(this.git4),this.gitInv5=this.gitInv5||St(this.git5),this.gitInv6=this.gitInv6||St(this.git6),this.gitInv7=this.gitInv7||St(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ve,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ge}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},"Theme"),e),Ke=Fe((t=>{const e=new Ze;return e.calculate(t),e}),"getThemeVariables"),Je=(Fe(r=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ct(this.primaryColor,16),this.tertiaryColor=wt(this.primaryColor,{h:-160}),this.primaryBorderColor=St(this.background),this.secondaryBorderColor=Xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=St(this.primaryColor),this.secondaryTextColor=St(this.secondaryColor),this.tertiaryTextColor=St(this.tertiaryColor),this.lineColor=St(this.background),this.textColor=St(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ct(St("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=mt(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=kt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=kt(this.sectionBkgColor,10),this.taskBorderColor=mt(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=mt(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ct(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||kt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,e,r,i,a,o,n,s,l,h,c,d,u,p,g,f,m,y,x,b,C;this.secondBkg=Ct(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Ct(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Ct(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=wt(this.primaryColor,{h:64}),this.fillType3=wt(this.secondaryColor,{h:64}),this.fillType4=wt(this.primaryColor,{h:-64}),this.fillType5=wt(this.secondaryColor,{h:-64}),this.fillType6=wt(this.primaryColor,{h:128}),this.fillType7=wt(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||wt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||wt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||wt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||wt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||wt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||wt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||wt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||wt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||wt(this.primaryColor,{h:330});for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||St(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScalePeer"+k]=this["cScalePeer"+k]||Ct(this["cScale"+k],10);for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||wt(this.mainBkg,{h:30,s:-30,l:-(4*k-10)}),this["surfacePeer"+k]=this["surfacePeer"+k]||wt(this.mainBkg,{h:30,s:-30,l:-(4*k-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["pie"+k]=this["cScale"+k];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||wt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||wt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||wt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||wt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||wt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||wt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xt(this.quadrant1Fill)?Ct(this.quadrant1Fill):kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(e=this.xyChart)?void 0:e.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(a=this.xyChart)?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(o=this.xyChart)?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(n=this.xyChart)?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(l=this.xyChart)?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(c=this.xyChart)?void 0:c.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:(null==(d=this.radar)?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:(null==(u=this.radar)?void 0:u.axisStrokeWidth)||2,axisLabelFontSize:(null==(p=this.radar)?void 0:p.axisLabelFontSize)||12,curveOpacity:(null==(g=this.radar)?void 0:g.curveOpacity)||.5,curveStrokeWidth:(null==(f=this.radar)?void 0:f.curveStrokeWidth)||2,graticuleColor:(null==(m=this.radar)?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(y=this.radar)?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(b=this.radar)?void 0:b.legendBoxSize)||12,legendFontSize:(null==(C=this.radar)?void 0:C.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?kt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ct(this.secondaryColor,20),this.git1=Ct(this.pie2||this.secondaryColor,20),this.git2=Ct(this.pie3||this.tertiaryColor,20),this.git3=Ct(this.pie4||wt(this.primaryColor,{h:-30}),20),this.git4=Ct(this.pie5||wt(this.primaryColor,{h:-60}),20),this.git5=Ct(this.pie6||wt(this.primaryColor,{h:-90}),10),this.git6=Ct(this.pie7||wt(this.primaryColor,{h:60}),10),this.git7=Ct(this.pie8||wt(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||St(this.git0),this.gitInv1=this.gitInv1||St(this.git1),this.gitInv2=this.gitInv2||St(this.git2),this.gitInv3=this.gitInv3||St(this.git3),this.gitInv4=this.gitInv4||St(this.git4),this.gitInv5=this.gitInv5||St(this.git5),this.gitInv6=this.gitInv6||St(this.git6),this.gitInv7=this.gitInv7||St(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||St(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||St(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ct(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ct(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},"Theme"),r),Qe=Fe((t=>{const e=new Je;return e.calculate(t),e}),"getThemeVariables"),tr=(Fe(i=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=wt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=wt(this.primaryColor,{h:-160}),this.primaryBorderColor=Xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=St(this.primaryColor),this.secondaryTextColor=St(this.secondaryColor),this.tertiaryTextColor=St(this.tertiaryColor),this.lineColor=St(this.background),this.textColor=St(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=mt(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,e,r,i,a,o,n,s,l,h,c,d,u,p,g,f,m,y,x,b,C;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||wt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||wt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||wt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||wt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||wt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||wt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||wt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||wt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||wt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||kt(this.tertiaryColor,40);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=kt(this["cScale"+k],10),this["cScalePeer"+k]=this["cScalePeer"+k]||kt(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||wt(this["cScale"+k],{h:180});for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||wt(this.mainBkg,{h:30,l:-(5+5*k)}),this["surfacePeer"+k]=this["surfacePeer"+k]||wt(this.mainBkg,{h:30,l:-(7+5*k)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||St(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||St(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Ct(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ct(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Ct(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=wt(this.primaryColor,{h:64}),this.fillType3=wt(this.secondaryColor,{h:64}),this.fillType4=wt(this.primaryColor,{h:-64}),this.fillType5=wt(this.secondaryColor,{h:-64}),this.fillType6=wt(this.primaryColor,{h:128}),this.fillType7=wt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||wt(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||wt(this.primaryColor,{l:-10}),this.pie5=this.pie5||wt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||wt(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||wt(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||wt(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||wt(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||wt(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||wt(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||wt(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||wt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||wt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||wt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||wt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||wt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||wt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xt(this.quadrant1Fill)?Ct(this.quadrant1Fill):kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:(null==(t=this.radar)?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:(null==(e=this.radar)?void 0:e.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(i=this.radar)?void 0:i.curveOpacity)||.5,curveStrokeWidth:(null==(a=this.radar)?void 0:a.curveStrokeWidth)||2,graticuleColor:(null==(o=this.radar)?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(n=this.radar)?void 0:n.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(h=this.radar)?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:(null==(c=this.xyChart)?void 0:c.backgroundColor)||this.background,titleColor:(null==(d=this.xyChart)?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(u=this.xyChart)?void 0:u.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(g=this.xyChart)?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(f=this.xyChart)?void 0:f.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(m=this.xyChart)?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(y=this.xyChart)?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(x=this.xyChart)?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(b=this.xyChart)?void 0:b.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||wt(this.primaryColor,{h:-30}),this.git4=this.git4||wt(this.primaryColor,{h:-60}),this.git5=this.git5||wt(this.primaryColor,{h:-90}),this.git6=this.git6||wt(this.primaryColor,{h:60}),this.git7=this.git7||wt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ct(this.git0,25),this.git1=Ct(this.git1,25),this.git2=Ct(this.git2,25),this.git3=Ct(this.git3,25),this.git4=Ct(this.git4,25),this.git5=Ct(this.git5,25),this.git6=Ct(this.git6,25),this.git7=Ct(this.git7,25)):(this.git0=kt(this.git0,25),this.git1=kt(this.git1,25),this.git2=kt(this.git2,25),this.git3=kt(this.git3,25),this.git4=kt(this.git4,25),this.git5=kt(this.git5,25),this.git6=kt(this.git6,25),this.git7=kt(this.git7,25)),this.gitInv0=this.gitInv0||kt(St(this.git0),25),this.gitInv1=this.gitInv1||St(this.git1),this.gitInv2=this.gitInv2||St(this.git2),this.gitInv3=this.gitInv3||St(this.git3),this.gitInv4=this.gitInv4||St(this.git4),this.gitInv5=this.gitInv5||St(this.git5),this.gitInv6=this.gitInv6||St(this.git6),this.gitInv7=this.gitInv7||St(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||St(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||St(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ve,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ge}calculate(t){if(Object.keys(this).forEach((t=>{"calculated"===this[t]&&(this[t]=void 0)})),"object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},"Theme"),i),er=Fe((t=>{const e=new tr;return e.calculate(t),e}),"getThemeVariables"),rr=(Fe(a=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Ct("#cde498",10),this.primaryBorderColor=Xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=St(this.primaryColor),this.secondaryTextColor=St(this.secondaryColor),this.tertiaryTextColor=St(this.primaryColor),this.lineColor=St(this.background),this.textColor=St(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,e,r,i,a,o,n,s,l,h,c,d,u,p,g,f,m,y,x,b,C;this.actorBorder=kt(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||wt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||wt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||wt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||wt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||wt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||wt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||wt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||wt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||wt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||kt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||kt(this.tertiaryColor,40);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=kt(this["cScale"+k],10),this["cScalePeer"+k]=this["cScalePeer"+k]||kt(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||wt(this["cScale"+k],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||wt(this.mainBkg,{h:30,s:-30,l:-(5+5*k)}),this["surfacePeer"+k]=this["surfacePeer"+k]||wt(this.mainBkg,{h:30,s:-30,l:-(8+5*k)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ct(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ct(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=wt(this.primaryColor,{h:64}),this.fillType3=wt(this.secondaryColor,{h:64}),this.fillType4=wt(this.primaryColor,{h:-64}),this.fillType5=wt(this.secondaryColor,{h:-64}),this.fillType6=wt(this.primaryColor,{h:128}),this.fillType7=wt(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||wt(this.primaryColor,{l:-30}),this.pie5=this.pie5||wt(this.secondaryColor,{l:-30}),this.pie6=this.pie6||wt(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||wt(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||wt(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||wt(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||wt(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||wt(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||wt(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||wt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||wt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||wt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||wt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||wt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||wt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xt(this.quadrant1Fill)?Ct(this.quadrant1Fill):kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:(null==(t=this.radar)?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:(null==(e=this.radar)?void 0:e.axisStrokeWidth)||2,axisLabelFontSize:(null==(r=this.radar)?void 0:r.axisLabelFontSize)||12,curveOpacity:(null==(i=this.radar)?void 0:i.curveOpacity)||.5,curveStrokeWidth:(null==(a=this.radar)?void 0:a.curveStrokeWidth)||2,graticuleColor:(null==(o=this.radar)?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(n=this.radar)?void 0:n.graticuleStrokeWidth)||1,graticuleOpacity:(null==(s=this.radar)?void 0:s.graticuleOpacity)||.3,legendBoxSize:(null==(l=this.radar)?void 0:l.legendBoxSize)||12,legendFontSize:(null==(h=this.radar)?void 0:h.legendFontSize)||12},this.xyChart={backgroundColor:(null==(c=this.xyChart)?void 0:c.backgroundColor)||this.background,titleColor:(null==(d=this.xyChart)?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(u=this.xyChart)?void 0:u.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(p=this.xyChart)?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(g=this.xyChart)?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(f=this.xyChart)?void 0:f.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(m=this.xyChart)?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(y=this.xyChart)?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(x=this.xyChart)?void 0:x.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(b=this.xyChart)?void 0:b.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(C=this.xyChart)?void 0:C.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||wt(this.primaryColor,{h:-30}),this.git4=this.git4||wt(this.primaryColor,{h:-60}),this.git5=this.git5||wt(this.primaryColor,{h:-90}),this.git6=this.git6||wt(this.primaryColor,{h:60}),this.git7=this.git7||wt(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ct(this.git0,25),this.git1=Ct(this.git1,25),this.git2=Ct(this.git2,25),this.git3=Ct(this.git3,25),this.git4=Ct(this.git4,25),this.git5=Ct(this.git5,25),this.git6=Ct(this.git6,25),this.git7=Ct(this.git7,25)):(this.git0=kt(this.git0,25),this.git1=kt(this.git1,25),this.git2=kt(this.git2,25),this.git3=kt(this.git3,25),this.git4=kt(this.git4,25),this.git5=kt(this.git5,25),this.git6=kt(this.git6,25),this.git7=kt(this.git7,25)),this.gitInv0=this.gitInv0||St(this.git0),this.gitInv1=this.gitInv1||St(this.git1),this.gitInv2=this.gitInv2||St(this.git2),this.gitInv3=this.gitInv3||St(this.git3),this.gitInv4=this.gitInv4||St(this.git4),this.gitInv5=this.gitInv5||St(this.git5),this.gitInv6=this.gitInv6||St(this.git6),this.gitInv7=this.gitInv7||St(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||St(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||St(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ve,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ge}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},"Theme"),a),ir=Fe((t=>{const e=new rr;return e.calculate(t),e}),"getThemeVariables"),ar=(Fe(o=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ct(this.contrast,55),this.background="#ffffff",this.tertiaryColor=wt(this.primaryColor,{h:-160}),this.primaryBorderColor=Xe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xe(this.tertiaryColor,this.darkMode),this.primaryTextColor=St(this.primaryColor),this.secondaryTextColor=St(this.secondaryColor),this.tertiaryTextColor=St(this.tertiaryColor),this.lineColor=St(this.background),this.textColor=St(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ct(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,e,r,i,a,o,n,s,l,h,c,d,u,p,g,f,m,y,x,b,C;this.secondBkg=Ct(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ct(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||St(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||Ct(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||kt(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||wt(this.mainBkg,{l:-(5+5*k)}),this["surfacePeer"+k]=this["surfacePeer"+k]||wt(this.mainBkg,{l:-(8+5*k)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=Ct(this.contrast,30),this.sectionBkgColor2=Ct(this.contrast,30),this.taskBorderColor=kt(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Ct(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=kt(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=wt(this.primaryColor,{h:64}),this.fillType3=wt(this.secondaryColor,{h:64}),this.fillType4=wt(this.primaryColor,{h:-64}),this.fillType5=wt(this.secondaryColor,{h:-64}),this.fillType6=wt(this.primaryColor,{h:128}),this.fillType7=wt(this.secondaryColor,{h:128});for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["pie"+k]=this["cScale"+k];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||wt(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||wt(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||wt(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||wt(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||wt(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||wt(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||xt(this.quadrant1Fill)?Ct(this.quadrant1Fill):kt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:(null==(t=this.xyChart)?void 0:t.backgroundColor)||this.background,titleColor:(null==(e=this.xyChart)?void 0:e.titleColor)||this.primaryTextColor,xAxisTitleColor:(null==(r=this.xyChart)?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:(null==(i=this.xyChart)?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:(null==(a=this.xyChart)?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:(null==(o=this.xyChart)?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(null==(n=this.xyChart)?void 0:n.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(null==(s=this.xyChart)?void 0:s.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(null==(l=this.xyChart)?void 0:l.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:(null==(h=this.xyChart)?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:(null==(c=this.xyChart)?void 0:c.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:(null==(d=this.radar)?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:(null==(u=this.radar)?void 0:u.axisStrokeWidth)||2,axisLabelFontSize:(null==(p=this.radar)?void 0:p.axisLabelFontSize)||12,curveOpacity:(null==(g=this.radar)?void 0:g.curveOpacity)||.5,curveStrokeWidth:(null==(f=this.radar)?void 0:f.curveStrokeWidth)||2,graticuleColor:(null==(m=this.radar)?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:(null==(y=this.radar)?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:(null==(x=this.radar)?void 0:x.graticuleOpacity)||.3,legendBoxSize:(null==(b=this.radar)?void 0:b.legendBoxSize)||12,legendFontSize:(null==(C=this.radar)?void 0:C.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=kt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||wt(this.primaryColor,{h:-30}),this.git4=this.pie5||wt(this.primaryColor,{h:-60}),this.git5=this.pie6||wt(this.primaryColor,{h:-90}),this.git6=this.pie7||wt(this.primaryColor,{h:60}),this.git7=this.pie8||wt(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||St(this.git0),this.gitInv1=this.gitInv1||St(this.git1),this.gitInv2=this.gitInv2||St(this.git2),this.gitInv3=this.gitInv3||St(this.git3),this.gitInv4=this.gitInv4||St(this.git4),this.gitInv5=this.gitInv5||St(this.git5),this.gitInv6=this.gitInv6||St(this.git6),this.gitInv7=this.gitInv7||St(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Ve,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ge}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}},"Theme"),o),or={base:{getThemeVariables:Ke},dark:{getThemeVariables:Qe},default:{getThemeVariables:er},forest:{getThemeVariables:ir},neutral:{getThemeVariables:Fe((t=>{const e=new ar;return e.calculate(t),e}),"getThemeVariables")}},nr={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},sr={...nr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:or.default.getThemeVariables(),sequence:{...nr.sequence,messageFont:Fe((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:Fe((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:Fe((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...nr.gantt,tickInterval:void 0,useWidth:void 0},c4:{...nr.c4,useWidth:void 0,personFont:Fe((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),external_personFont:Fe((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:Fe((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:Fe((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:Fe((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:Fe((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:Fe((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:Fe((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:Fe((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:Fe((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:Fe((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:Fe((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:Fe((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:Fe((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:Fe((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:Fe((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:Fe((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:Fe((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:Fe((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:Fe((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:Fe((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:Fe((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...nr.pie,useWidth:984},xyChart:{...nr.xyChart,useWidth:void 0},requirement:{...nr.requirement,useWidth:void 0},packet:{...nr.packet},radar:{...nr.radar}},lr=Fe(((t,e="")=>Object.keys(t).reduce(((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...lr(t[i],"")]:[...r,e+i]),[])),"keyify"),hr=new Set(lr(sr,"")),cr=sr,dr=Fe((t=>{if($e.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t)if(Array.isArray(t))t.forEach((t=>dr(t)));else{for(const e of Object.keys(t)){if($e.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!hr.has(e)||null==t[e]){$e.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){$e.debug("sanitizing object",e),dr(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)e.includes(i)&&($e.debug("sanitizing css option",e),t[e]=ur(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];(null==r?void 0:r.match)&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}$e.debug("After sanitization",t)}}),"sanitizeDirective"),ur=Fe((t=>{let e=0,r=0;for(const i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t}),"sanitizeCss"),pr=Object.freeze(cr),gr=Ue({},pr),fr=[],mr=Ue({},pr),yr=Fe(((t,e)=>{let r=Ue({},t),i={};for(const a of e)vr(a),i=Ue(i,a);if(r=Ue(r,i),i.theme&&i.theme in or){const t=Ue({},Le),e=Ue(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in or&&(r.themeVariables=or[r.theme].getThemeVariables(e))}return Fr(mr=r),mr}),"updateCurrentConfig"),xr=Fe((t=>(gr=Ue({},pr),gr=Ue(gr,t),t.theme&&or[t.theme]&&(gr.themeVariables=or[t.theme].getThemeVariables(t.themeVariables)),yr(gr,fr),gr)),"setSiteConfig"),br=Fe((t=>{Le=Ue({},t)}),"saveConfigFromInitialize"),Cr=Fe((t=>(gr=Ue(gr,t),yr(gr,fr),gr)),"updateSiteConfig"),kr=Fe((()=>Ue({},gr)),"getSiteConfig"),wr=Fe((t=>(Fr(t),Ue(mr,t),Sr())),"setConfig"),Sr=Fe((()=>Ue({},mr)),"getConfig"),vr=Fe((t=>{t&&(["secure",...gr.secure??[]].forEach((e=>{Object.hasOwn(t,e)&&($e.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{e.startsWith("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&vr(t[e])})))}),"sanitize"),Tr=Fe((t=>{var e;dr(t),t.fontFamily&&!(null==(e=t.themeVariables)?void 0:e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),fr.push(t),yr(gr,fr)}),"addDirective"),Br=Fe(((t=gr)=>{yr(t,fr=[])}),"reset"),Lr={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},Mr={},_r=Fe((t=>{Mr[t]||($e.warn(Lr[t]),Mr[t]=!0)}),"issueWarning"),Fr=Fe((t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&_r("LAZY_LOAD_DEPRECATED")}),"checkConfig"),Ar=/<br\s*\/?>/gi,Er=Fe((t=>{if(!t)return[""];return Wr(t).replace(/\\n/g,"#br#").split("#br#")}),"getRows"),$r=(()=>{let t=!1;return()=>{t||(Dr(),t=!0)}})();function Dr(){const t="data-temp-href-target";Me.addHook("beforeSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")})),Me.addHook("afterSanitizeAttributes",(e=>{e instanceof Element&&"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))}))}Fe(Dr,"setupDompurifyHooks");var Or=Fe((t=>{$r();return Me.sanitize(t)}),"removeScript"),Ir=Fe(((t,e)=>{var r;if(!1!==(null==(r=e.flowchart)?void 0:r.htmlLabels)){const r=e.securityLevel;"antiscript"===r||"strict"===r?t=Or(t):"loose"!==r&&(t=(t=(t=Wr(t)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"="),t=zr(t))}return t}),"sanitizeMore"),Pr=Fe(((t,e)=>t?t=e.dompurifyConfig?Me.sanitize(Ir(t,e),e.dompurifyConfig).toString():Me.sanitize(Ir(t,e),{FORBID_TAGS:["style"]}).toString():t),"sanitizeText"),Rr=Fe(((t,e)=>"string"==typeof t?Pr(t,e):t.flat().map((t=>Pr(t,e)))),"sanitizeTextOrArray"),Nr=Fe((t=>Ar.test(t)),"hasBreaks"),qr=Fe((t=>t.split(Ar)),"splitBreaks"),zr=Fe((t=>t.replace(/#br#/g,"<br/>")),"placeholderToBreak"),Wr=Fe((t=>t.replace(Ar,"#br#")),"breakToPlaceholder"),jr=Fe((t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e}),"getUrl"),Hr=Fe((t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),Yr=Fe((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax"),Ur=Fe((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin"),Vr=Fe((function(t){const e=t.split(/(,)/),r=[];for(let i=0;i<e.length;i++){let t=e[i];if(","===t&&i>0&&i+1<e.length){const a=e[i-1],o=e[i+1];Xr(a,o)&&(t=a+","+o,i++,r.pop())}r.push(Zr(t))}return r.join("")}),"parseGenericTypes"),Gr=Fe(((t,e)=>Math.max(0,t.split(e).length-1)),"countOccurrence"),Xr=Fe(((t,e)=>{const r=Gr(t,"~"),i=Gr(e,"~");return 1===r&&1===i}),"shouldCombineSets"),Zr=Fe((t=>{const e=Gr(t,"~");let r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const i=[...t];let a=i.indexOf("~"),o=i.lastIndexOf("~");for(;-1!==a&&-1!==o&&a!==o;)i[a]="<",i[o]=">",a=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")}),"processSet"),Kr=Fe((()=>void 0!==window.MathMLElement),"isMathMLSupported"),Jr=/\$\$(.*)\$\$/g,Qr=Fe((t=>{var e;return((null==(e=t.match(Jr))?void 0:e.length)??0)>0}),"hasKatex"),ti=Fe((async(t,e)=>{t=await ei(t,e);const r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");null==i||i.insertAdjacentElement("beforeend",r);const a={width:r.clientWidth,height:r.clientHeight};return r.remove(),a}),"calculateMathMLDimensions"),ei=Fe((async(t,e)=>{if(!Qr(t))return t;if(!(Kr()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Jr,"MathML is unsupported in this environment.");const{default:r}=await x((async()=>{const{default:t}=await import("./katex-Blph-pX_.js");return{default:t}}),[],import.meta.url),i=e.forceLegacyMathML||!Kr()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Ar).map((t=>Qr(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`)).join("").replace(Jr,((t,e)=>r.renderToString(e,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,"")))}),"renderKatex"),ri={getRows:Er,sanitizeText:Pr,sanitizeTextOrArray:Rr,hasBreaks:Nr,splitBreaks:qr,lineBreakRegex:Ar,removeScript:Or,getUrl:jr,evaluate:Hr,getMax:Yr,getMin:Ur},ii=Fe((function(t,e){for(let r of e)t.attr(r[0],r[1])}),"d3Attrs"),ai=Fe((function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i}),"calculateSvgSizeAttrs"),oi=Fe((function(t,e,r,i){const a=ai(e,r,i);ii(t,a)}),"configureSvgSize"),ni=Fe((function(t,e,r,i){const a=e.node().getBBox(),o=a.width,n=a.height;$e.info(`SVG bounds: ${o}x${n}`,a);let s=0,l=0;$e.info(`Graph bounds: ${s}x${l}`,t),s=o+2*r,l=n+2*r,$e.info(`Calculated bounds: ${s}x${l}`),oi(e,l,s,i);const h=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",h)}),"setupGraphViewbox"),si={},li=Fe(((t,e,r)=>{let i="";return t in si&&si[t]?i=si[t](r):$e.warn(`No theme found for ${t}`),` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${i}\n\n ${e}\n`}),"getStyles"),hi=Fe(((t,e)=>{void 0!==e&&(si[t]=e)}),"addStylesForDiagram"),ci=li,di={};Ae(di,{clear:()=>mi,getAccDescription:()=>Ci,getAccTitle:()=>xi,getDiagramTitle:()=>wi,setAccDescription:()=>bi,setAccTitle:()=>yi,setDiagramTitle:()=>ki});var ui="",pi="",gi="",fi=Fe((t=>Pr(t,Sr())),"sanitizeText"),mi=Fe((()=>{ui="",gi="",pi=""}),"clear"),yi=Fe((t=>{ui=fi(t).replace(/^\s+/g,"")}),"setAccTitle"),xi=Fe((()=>ui),"getAccTitle"),bi=Fe((t=>{gi=fi(t).replace(/\n\s+/g,"\n")}),"setAccDescription"),Ci=Fe((()=>gi),"getAccDescription"),ki=Fe((t=>{pi=fi(t)}),"setDiagramTitle"),wi=Fe((()=>pi),"getDiagramTitle"),Si=$e,vi=De,Ti=Sr,Bi=wr,Li=pr,Mi=Fe((t=>Pr(t,Ti())),"sanitizeText"),_i=ni,Fi=Fe((()=>di),"getCommonDb"),Ai={},Ei=Fe(((t,e,r)=>{var i;Ai[t]&&Si.warn(`Diagram with id ${t} already registered. Overwriting.`),Ai[t]=e,r&&je(t,r),hi(t,e.styles),null==(i=e.injectUtils)||i.call(e,Si,vi,Ti,Mi,_i,Fi(),(()=>{}))}),"registerDiagram"),$i=Fe((t=>{if(t in Ai)return Ai[t];throw new Di(t)}),"getDiagram"),Di=(n=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},Fe(n,"DiagramNotFoundError"),n);function Oi(t){return null==t}function Ii(t){return"object"==typeof t&&null!==t}function Pi(t){return Array.isArray(t)?t:Oi(t)?[]:[t]}function Ri(t,e){var r,i,a,o;if(e)for(r=0,i=(o=Object.keys(e)).length;r<i;r+=1)t[a=o[r]]=e[a];return t}function Ni(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function qi(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}Fe(Oi,"isNothing"),Fe(Ii,"isObject"),Fe(Pi,"toArray"),Fe(Ri,"extend"),Fe(Ni,"repeat"),Fe(qi,"isNegativeZero");var zi={isNothing:Oi,isObject:Ii,toArray:Pi,repeat:Ni,isNegativeZero:qi,extend:Ri};function Wi(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function ji(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Wi(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Fe(Wi,"formatError"),Fe(ji,"YAMLException$1"),ji.prototype=Object.create(Error.prototype),ji.prototype.constructor=ji,ji.prototype.toString=Fe((function(t){return this.name+": "+Wi(this,t)}),"toString");var Hi=ji;function Yi(t,e,r,i,a){var o="",n="",s=Math.floor(a/2)-1;return i-e>s&&(e=i-s+(o=" ... ").length),r-i>s&&(r=i+s-(n=" ...").length),{str:o+t.slice(e,r).replace(/\t/g,"→")+n,pos:i-e+o.length}}function Ui(t,e){return zi.repeat(" ",e-t.length)+t}function Vi(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r,i=/\r?\n|\r|\0/g,a=[0],o=[],n=-1;r=i.exec(t.buffer);)o.push(r.index),a.push(r.index+r[0].length),t.position<=r.index&&n<0&&(n=a.length-2);n<0&&(n=a.length-1);var s,l,h="",c=Math.min(t.line+e.linesAfter,o.length).toString().length,d=e.maxLength-(e.indent+c+3);for(s=1;s<=e.linesBefore&&!(n-s<0);s++)l=Yi(t.buffer,a[n-s],o[n-s],t.position-(a[n]-a[n-s]),d),h=zi.repeat(" ",e.indent)+Ui((t.line-s+1).toString(),c)+" | "+l.str+"\n"+h;for(l=Yi(t.buffer,a[n],o[n],t.position,d),h+=zi.repeat(" ",e.indent)+Ui((t.line+1).toString(),c)+" | "+l.str+"\n",h+=zi.repeat("-",e.indent+c+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(n+s>=o.length);s++)l=Yi(t.buffer,a[n+s],o[n+s],t.position-(a[n]-a[n+s]),d),h+=zi.repeat(" ",e.indent)+Ui((t.line+s+1).toString(),c)+" | "+l.str+"\n";return h.replace(/\n$/,"")}Fe(Yi,"getLine"),Fe(Ui,"padStart"),Fe(Vi,"makeSnippet");var Gi=Vi,Xi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Zi=["scalar","sequence","mapping"];function Ki(t){var e={};return null!==t&&Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))})),e}function Ji(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===Xi.indexOf(e))throw new Hi('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Ki(e.styleAliases||null),-1===Zi.indexOf(this.kind))throw new Hi('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}Fe(Ki,"compileStyleAliases"),Fe(Ji,"Type$1");var Qi=Ji;function ta(t,e){var r=[];return t[e].forEach((function(t){var e=r.length;r.forEach((function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)})),r[e]=t})),r}function ea(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for(Fe(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function ra(t){return this.extend(t)}Fe(ta,"compileList"),Fe(ea,"compileMap"),Fe(ra,"Schema$1"),ra.prototype.extend=Fe((function(t){var e=[],r=[];if(t instanceof Qi)r.push(t);else if(Array.isArray(t))r=r.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new Hi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof Qi))throw new Hi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new Hi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new Hi("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(t){if(!(t instanceof Qi))throw new Hi("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(ra.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=ta(i,"implicit"),i.compiledExplicit=ta(i,"explicit"),i.compiledTypeMap=ea(i.compiledImplicit,i.compiledExplicit),i}),"extend");var ia=new ra({explicit:[new Qi("tag:yaml.org,2002:str",{kind:"scalar",construct:Fe((function(t){return null!==t?t:""}),"construct")}),new Qi("tag:yaml.org,2002:seq",{kind:"sequence",construct:Fe((function(t){return null!==t?t:[]}),"construct")}),new Qi("tag:yaml.org,2002:map",{kind:"mapping",construct:Fe((function(t){return null!==t?t:{}}),"construct")})]});function aa(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function oa(){return null}function na(t){return null===t}Fe(aa,"resolveYamlNull"),Fe(oa,"constructYamlNull"),Fe(na,"isNull");var sa=new Qi("tag:yaml.org,2002:null",{kind:"scalar",resolve:aa,construct:oa,predicate:na,represent:{canonical:Fe((function(){return"~"}),"canonical"),lowercase:Fe((function(){return"null"}),"lowercase"),uppercase:Fe((function(){return"NULL"}),"uppercase"),camelcase:Fe((function(){return"Null"}),"camelcase"),empty:Fe((function(){return""}),"empty")},defaultStyle:"lowercase"});function la(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function ha(t){return"true"===t||"True"===t||"TRUE"===t}function ca(t){return"[object Boolean]"===Object.prototype.toString.call(t)}Fe(la,"resolveYamlBoolean"),Fe(ha,"constructYamlBoolean"),Fe(ca,"isBoolean");var da=new Qi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:la,construct:ha,predicate:ca,represent:{lowercase:Fe((function(t){return t?"true":"false"}),"lowercase"),uppercase:Fe((function(t){return t?"TRUE":"FALSE"}),"uppercase"),camelcase:Fe((function(t){return t?"True":"False"}),"camelcase")},defaultStyle:"lowercase"});function ua(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function pa(t){return 48<=t&&t<=55}function ga(t){return 48<=t&&t<=57}function fa(t){if(null===t)return!1;var e,r=t.length,i=0,a=!1;if(!r)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;a=!0}return a&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!ua(t.charCodeAt(i)))return!1;a=!0}return a&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!pa(t.charCodeAt(i)))return!1;a=!0}return a&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!ga(t.charCodeAt(i)))return!1;a=!0}return!(!a||"_"===e)}function ma(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(e=r[0])&&"+"!==e||("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function ya(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!zi.isNegativeZero(t)}Fe(ua,"isHexCode"),Fe(pa,"isOctCode"),Fe(ga,"isDecCode"),Fe(fa,"resolveYamlInteger"),Fe(ma,"constructYamlInteger"),Fe(ya,"isInteger");var xa=new Qi("tag:yaml.org,2002:int",{kind:"scalar",resolve:fa,construct:ma,predicate:ya,represent:{binary:Fe((function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)}),"binary"),octal:Fe((function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}),"octal"),decimal:Fe((function(t){return t.toString(10)}),"decimal"),hexadecimal:Fe((function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ba=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Ca(t){return null!==t&&!(!ba.test(t)||"_"===t[t.length-1])}function ka(t){var e,r;return r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}Fe(Ca,"resolveYamlFloat"),Fe(ka,"constructYamlFloat");var wa=/^[-+]?[0-9]+e/;function Sa(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(zi.isNegativeZero(t))return"-0.0";return r=t.toString(10),wa.test(r)?r.replace("e",".e"):r}function va(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||zi.isNegativeZero(t))}Fe(Sa,"representYamlFloat"),Fe(va,"isFloat");var Ta=new Qi("tag:yaml.org,2002:float",{kind:"scalar",resolve:Ca,construct:ka,predicate:va,represent:Sa,defaultStyle:"lowercase"}),Ba=ia.extend({implicit:[sa,da,xa,Ta]}),La=Ba,Ma=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),_a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Fa(t){return null!==t&&(null!==Ma.exec(t)||null!==_a.exec(t))}function Aa(t){var e,r,i,a,o,n,s,l,h=0,c=null;if(null===(e=Ma.exec(t))&&(e=_a.exec(t)),null===e)throw new Error("Date resolve error");if(r=+e[1],i=+e[2]-1,a=+e[3],!e[4])return new Date(Date.UTC(r,i,a));if(o=+e[4],n=+e[5],s=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(c=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,a,o,n,s,h)),c&&l.setTime(l.getTime()-c),l}function Ea(t){return t.toISOString()}Fe(Fa,"resolveYamlTimestamp"),Fe(Aa,"constructYamlTimestamp"),Fe(Ea,"representYamlTimestamp");var $a=new Qi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Fa,construct:Aa,instanceOf:Date,represent:Ea});function Da(t){return"<<"===t||null===t}Fe(Da,"resolveYamlMerge");var Oa=new Qi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Da}),Ia="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Pa(t){if(null===t)return!1;var e,r,i=0,a=t.length,o=Ia;for(r=0;r<a;r++)if(!((e=o.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function Ra(t){var e,r,i=t.replace(/[\r\n=]/g,""),a=i.length,o=Ia,n=0,s=[];for(e=0;e<a;e++)e%4==0&&e&&(s.push(n>>16&255),s.push(n>>8&255),s.push(255&n)),n=n<<6|o.indexOf(i.charAt(e));return 0===(r=a%4*6)?(s.push(n>>16&255),s.push(n>>8&255),s.push(255&n)):18===r?(s.push(n>>10&255),s.push(n>>2&255)):12===r&&s.push(n>>4&255),new Uint8Array(s)}function Na(t){var e,r,i="",a=0,o=t.length,n=Ia;for(e=0;e<o;e++)e%3==0&&e&&(i+=n[a>>18&63],i+=n[a>>12&63],i+=n[a>>6&63],i+=n[63&a]),a=(a<<8)+t[e];return 0===(r=o%3)?(i+=n[a>>18&63],i+=n[a>>12&63],i+=n[a>>6&63],i+=n[63&a]):2===r?(i+=n[a>>10&63],i+=n[a>>4&63],i+=n[a<<2&63],i+=n[64]):1===r&&(i+=n[a>>2&63],i+=n[a<<4&63],i+=n[64],i+=n[64]),i}function qa(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}Fe(Pa,"resolveYamlBinary"),Fe(Ra,"constructYamlBinary"),Fe(Na,"representYamlBinary"),Fe(qa,"isBinary");var za=new Qi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pa,construct:Ra,predicate:qa,represent:Na}),Wa=Object.prototype.hasOwnProperty,ja=Object.prototype.toString;function Ha(t){if(null===t)return!0;var e,r,i,a,o,n=[],s=t;for(e=0,r=s.length;e<r;e+=1){if(i=s[e],o=!1,"[object Object]"!==ja.call(i))return!1;for(a in i)if(Wa.call(i,a)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==n.indexOf(a))return!1;n.push(a)}return!0}function Ya(t){return null!==t?t:[]}Fe(Ha,"resolveYamlOmap"),Fe(Ya,"constructYamlOmap");var Ua=new Qi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ha,construct:Ya}),Va=Object.prototype.toString;function Ga(t){if(null===t)return!0;var e,r,i,a,o,n=t;for(o=new Array(n.length),e=0,r=n.length;e<r;e+=1){if(i=n[e],"[object Object]"!==Va.call(i))return!1;if(1!==(a=Object.keys(i)).length)return!1;o[e]=[a[0],i[a[0]]]}return!0}function Xa(t){if(null===t)return[];var e,r,i,a,o,n=t;for(o=new Array(n.length),e=0,r=n.length;e<r;e+=1)i=n[e],a=Object.keys(i),o[e]=[a[0],i[a[0]]];return o}Fe(Ga,"resolveYamlPairs"),Fe(Xa,"constructYamlPairs");var Za=new Qi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ga,construct:Xa}),Ka=Object.prototype.hasOwnProperty;function Ja(t){if(null===t)return!0;var e,r=t;for(e in r)if(Ka.call(r,e)&&null!==r[e])return!1;return!0}function Qa(t){return null!==t?t:{}}Fe(Ja,"resolveYamlSet"),Fe(Qa,"constructYamlSet");var to=new Qi("tag:yaml.org,2002:set",{kind:"mapping",resolve:Ja,construct:Qa}),eo=La.extend({implicit:[$a,Oa],explicit:[za,Ua,Za,to]}),ro=Object.prototype.hasOwnProperty,io=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ao=/[\x85\u2028\u2029]/,oo=/[,\[\]\{\}]/,no=/^(?:!|!!|![a-z\-]+!)$/i,so=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function lo(t){return Object.prototype.toString.call(t)}function ho(t){return 10===t||13===t}function co(t){return 9===t||32===t}function uo(t){return 9===t||32===t||10===t||13===t}function po(t){return 44===t||91===t||93===t||123===t||125===t}function go(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function fo(t){return 120===t?2:117===t?4:85===t?8:0}function mo(t){return 48<=t&&t<=57?t-48:-1}function yo(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function xo(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}Fe(lo,"_class"),Fe(ho,"is_EOL"),Fe(co,"is_WHITE_SPACE"),Fe(uo,"is_WS_OR_EOL"),Fe(po,"is_FLOW_INDICATOR"),Fe(go,"fromHexCode"),Fe(fo,"escapedHexLen"),Fe(mo,"fromDecimalCode"),Fe(yo,"simpleEscapeSequence"),Fe(xo,"charFromCodepoint");var bo,Co=new Array(256),ko=new Array(256);for(bo=0;bo<256;bo++)Co[bo]=yo(bo)?1:0,ko[bo]=yo(bo);function wo(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||eo,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function So(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Gi(r),new Hi(e,r)}function vo(t,e){throw So(t,e)}function To(t,e){t.onWarning&&t.onWarning.call(null,So(t,e))}Fe(wo,"State$1"),Fe(So,"generateError"),Fe(vo,"throwError"),Fe(To,"throwWarning");var Bo={YAML:Fe((function(t,e,r){var i,a,o;null!==t.version&&vo(t,"duplication of %YAML directive"),1!==r.length&&vo(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&vo(t,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),o=parseInt(i[2],10),1!==a&&vo(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&To(t,"unsupported YAML version of the document")}),"handleYamlDirective"),TAG:Fe((function(t,e,r){var i,a;2!==r.length&&vo(t,"TAG directive accepts exactly two arguments"),i=r[0],a=r[1],no.test(i)||vo(t,"ill-formed tag handle (first argument) of the TAG directive"),ro.call(t.tagMap,i)&&vo(t,'there is a previously declared suffix for "'+i+'" tag handle'),so.test(a)||vo(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(o){vo(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}),"handleTagDirective")};function Lo(t,e,r,i){var a,o,n,s;if(e<r){if(s=t.input.slice(e,r),i)for(a=0,o=s.length;a<o;a+=1)9===(n=s.charCodeAt(a))||32<=n&&n<=1114111||vo(t,"expected valid JSON character");else io.test(s)&&vo(t,"the stream contains non-printable characters");t.result+=s}}function Mo(t,e,r,i){var a,o,n,s;for(zi.isObject(r)||vo(t,"cannot merge mappings; the provided source object is unacceptable"),n=0,s=(a=Object.keys(r)).length;n<s;n+=1)o=a[n],ro.call(e,o)||(e[o]=r[o],i[o]=!0)}function _o(t,e,r,i,a,o,n,s,l){var h,c;if(Array.isArray(a))for(h=0,c=(a=Array.prototype.slice.call(a)).length;h<c;h+=1)Array.isArray(a[h])&&vo(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===lo(a[h])&&(a[h]="[object Object]");if("object"==typeof a&&"[object Object]"===lo(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(h=0,c=o.length;h<c;h+=1)Mo(t,e,o[h],r);else Mo(t,e,o,r);else t.json||ro.call(r,a)||!ro.call(e,a)||(t.line=n||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,vo(t,"duplicated mapping key")),"__proto__"===a?Object.defineProperty(e,a,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[a]=o,delete r[a];return e}function Fo(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):vo(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Ao(t,e,r){for(var i=0,a=t.input.charCodeAt(t.position);0!==a;){for(;co(a);)9===a&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),a=t.input.charCodeAt(++t.position);if(e&&35===a)do{a=t.input.charCodeAt(++t.position)}while(10!==a&&13!==a&&0!==a);if(!ho(a))break;for(Fo(t),a=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position)}return-1!==r&&0!==i&&t.lineIndent<r&&To(t,"deficient indentation"),i}function Eo(t){var e,r=t.position;return!(45!==(e=t.input.charCodeAt(r))&&46!==e||e!==t.input.charCodeAt(r+1)||e!==t.input.charCodeAt(r+2)||(r+=3,0!==(e=t.input.charCodeAt(r))&&!uo(e)))}function $o(t,e){1===e?t.result+=" ":e>1&&(t.result+=zi.repeat("\n",e-1))}function Do(t,e,r){var i,a,o,n,s,l,h,c,d=t.kind,u=t.result;if(uo(c=t.input.charCodeAt(t.position))||po(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(uo(i=t.input.charCodeAt(t.position+1))||r&&po(i)))return!1;for(t.kind="scalar",t.result="",a=o=t.position,n=!1;0!==c;){if(58===c){if(uo(i=t.input.charCodeAt(t.position+1))||r&&po(i))break}else if(35===c){if(uo(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Eo(t)||r&&po(c))break;if(ho(c)){if(s=t.line,l=t.lineStart,h=t.lineIndent,Ao(t,!1,-1),t.lineIndent>=e){n=!0,c=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=h;break}}n&&(Lo(t,a,o,!1),$o(t,t.line-s),a=o=t.position,n=!1),co(c)||(o=t.position+1),c=t.input.charCodeAt(++t.position)}return Lo(t,a,o,!1),!!t.result||(t.kind=d,t.result=u,!1)}function Oo(t,e){var r,i,a;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=a=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(Lo(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,a=t.position}else ho(r)?(Lo(t,i,a,!0),$o(t,Ao(t,!1,e)),i=a=t.position):t.position===t.lineStart&&Eo(t)?vo(t,"unexpected end of the document within a single quoted scalar"):(t.position++,a=t.position);vo(t,"unexpected end of the stream within a single quoted scalar")}function Io(t,e){var r,i,a,o,n,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return Lo(t,r,t.position,!0),t.position++,!0;if(92===s){if(Lo(t,r,t.position,!0),ho(s=t.input.charCodeAt(++t.position)))Ao(t,!1,e);else if(s<256&&Co[s])t.result+=ko[s],t.position++;else if((n=fo(s))>0){for(a=n,o=0;a>0;a--)(n=go(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+n:vo(t,"expected hexadecimal character");t.result+=xo(o),t.position++}else vo(t,"unknown escape sequence");r=i=t.position}else ho(s)?(Lo(t,r,i,!0),$o(t,Ao(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Eo(t)?vo(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}vo(t,"unexpected end of the stream within a double quoted scalar")}function Po(t,e){var r,i,a,o,n,s,l,h,c,d,u,p,g=!0,f=t.tag,m=t.anchor,y=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))n=93,h=!1,o=[];else{if(123!==p)return!1;n=125,h=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),p=t.input.charCodeAt(++t.position);0!==p;){if(Ao(t,!0,e),(p=t.input.charCodeAt(t.position))===n)return t.position++,t.tag=f,t.anchor=m,t.kind=h?"mapping":"sequence",t.result=o,!0;g?44===p&&vo(t,"expected the node content, but found ','"):vo(t,"missed comma between flow collection entries"),u=null,s=l=!1,63===p&&uo(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,Ao(t,!0,e)),r=t.line,i=t.lineStart,a=t.position,Ho(t,e,1,!1,!0),d=t.tag,c=t.result,Ao(t,!0,e),p=t.input.charCodeAt(t.position),!l&&t.line!==r||58!==p||(s=!0,p=t.input.charCodeAt(++t.position),Ao(t,!0,e),Ho(t,e,1,!1,!0),u=t.result),h?_o(t,o,y,d,c,u,r,i,a):s?o.push(_o(t,null,y,d,c,u,r,i,a)):o.push(c),Ao(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(g=!0,p=t.input.charCodeAt(++t.position)):g=!1}vo(t,"unexpected end of the stream within a flow collection")}function Ro(t,e){var r,i,a,o,n=1,s=!1,l=!1,h=e,c=0,d=!1;if(124===(o=t.input.charCodeAt(t.position)))i=!1;else{if(62!==o)return!1;i=!0}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)1===n?n=43===o?3:2:vo(t,"repeat of a chomping mode identifier");else{if(!((a=mo(o))>=0))break;0===a?vo(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?vo(t,"repeat of an indentation width identifier"):(h=e+a-1,l=!0)}if(co(o)){do{o=t.input.charCodeAt(++t.position)}while(co(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!ho(o)&&0!==o)}for(;0!==o;){for(Fo(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!l||t.lineIndent<h)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>h&&(h=t.lineIndent),ho(o))c++;else{if(t.lineIndent<h){3===n?t.result+=zi.repeat("\n",s?1+c:c):1===n&&s&&(t.result+="\n");break}for(i?co(o)?(d=!0,t.result+=zi.repeat("\n",s?1+c:c)):d?(d=!1,t.result+=zi.repeat("\n",c+1)):0===c?s&&(t.result+=" "):t.result+=zi.repeat("\n",c):t.result+=zi.repeat("\n",s?1+c:c),s=!0,l=!0,c=0,r=t.position;!ho(o)&&0!==o;)o=t.input.charCodeAt(++t.position);Lo(t,r,t.position,!1)}}return!0}function No(t,e){var r,i,a=t.tag,o=t.anchor,n=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=n),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,vo(t,"tab characters must not be used in indentation")),45===i)&&uo(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,Ao(t,!0,-1)&&t.lineIndent<=e)n.push(null),i=t.input.charCodeAt(t.position);else if(r=t.line,Ho(t,e,3,!1,!0),n.push(t.result),Ao(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)vo(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=a,t.anchor=o,t.kind="sequence",t.result=n,!0)}function qo(t,e,r){var i,a,o,n,s,l,h,c=t.tag,d=t.anchor,u={},p=Object.create(null),g=null,f=null,m=null,y=!1,x=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=u),h=t.input.charCodeAt(t.position);0!==h;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,vo(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,63!==h&&58!==h||!uo(i)){if(n=t.line,s=t.lineStart,l=t.position,!Ho(t,r,2,!1,!0))break;if(t.line===o){for(h=t.input.charCodeAt(t.position);co(h);)h=t.input.charCodeAt(++t.position);if(58===h)uo(h=t.input.charCodeAt(++t.position))||vo(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(_o(t,u,p,g,f,null,n,s,l),g=f=m=null),x=!0,y=!1,a=!1,g=t.tag,f=t.result;else{if(!x)return t.tag=c,t.anchor=d,!0;vo(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return t.tag=c,t.anchor=d,!0;vo(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===h?(y&&(_o(t,u,p,g,f,null,n,s,l),g=f=m=null),x=!0,y=!0,a=!0):y?(y=!1,a=!0):vo(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;if((t.line===o||t.lineIndent>e)&&(y&&(n=t.line,s=t.lineStart,l=t.position),Ho(t,e,4,!0,a)&&(y?f=t.result:m=t.result),y||(_o(t,u,p,g,f,m,n,s,l),g=f=m=null),Ao(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==h)vo(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&_o(t,u,p,g,f,null,n,s,l),x&&(t.tag=c,t.anchor=d,t.kind="mapping",t.result=u),x}function zo(t){var e,r,i,a,o=!1,n=!1;if(33!==(a=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&vo(t,"duplication of a tag property"),60===(a=t.input.charCodeAt(++t.position))?(o=!0,a=t.input.charCodeAt(++t.position)):33===a?(n=!0,r="!!",a=t.input.charCodeAt(++t.position)):r="!",e=t.position,o){do{a=t.input.charCodeAt(++t.position)}while(0!==a&&62!==a);t.position<t.length?(i=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):vo(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!uo(a);)33===a&&(n?vo(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),no.test(r)||vo(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),oo.test(i)&&vo(t,"tag suffix cannot contain flow indicator characters")}i&&!so.test(i)&&vo(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(s){vo(t,"tag name is malformed: "+i)}return o?t.tag=i:ro.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:vo(t,'undeclared tag handle "'+r+'"'),!0}function Wo(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&vo(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!uo(r)&&!po(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&vo(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function jo(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!uo(i)&&!po(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&vo(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),ro.call(t.anchorMap,r)||vo(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],Ao(t,!0,-1),!0}function Ho(t,e,r,i,a){var o,n,s,l,h,c,d,u,p,g=1,f=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=n=s=4===r||3===r,i&&Ao(t,!0,-1)&&(f=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;zo(t)||Wo(t);)Ao(t,!0,-1)?(f=!0,s=o,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):s=!1;if(s&&(s=f||a),1!==g&&4!==r||(u=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===g?s&&(No(t,p)||qo(t,p,u))||Po(t,u)?m=!0:(n&&Ro(t,u)||Oo(t,u)||Io(t,u)?m=!0:jo(t)?(m=!0,null===t.tag&&null===t.anchor||vo(t,"alias node should not have any properties")):Do(t,u,1===r)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(m=s&&No(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&vo(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((d=t.implicitTypes[l]).resolve(t.result)){t.result=d.construct(t.result),t.tag=d.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(ro.call(t.typeMap[t.kind||"fallback"],t.tag))d=t.typeMap[t.kind||"fallback"][t.tag];else for(d=null,l=0,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){d=c[l];break}d||vo(t,"unknown tag !<"+t.tag+">"),null!==t.result&&d.kind!==t.kind&&vo(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+d.kind+'", not "'+t.kind+'"'),d.resolve(t.result,t.tag)?(t.result=d.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):vo(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function Yo(t){var e,r,i,a,o=t.position,n=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(a=t.input.charCodeAt(t.position))&&(Ao(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==a));){for(n=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!uo(a);)a=t.input.charCodeAt(++t.position);for(i=[],(r=t.input.slice(e,t.position)).length<1&&vo(t,"directive name must not be less than one character in length");0!==a;){for(;co(a);)a=t.input.charCodeAt(++t.position);if(35===a){do{a=t.input.charCodeAt(++t.position)}while(0!==a&&!ho(a));break}if(ho(a))break;for(e=t.position;0!==a&&!uo(a);)a=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==a&&Fo(t),ro.call(Bo,r)?Bo[r](t,r,i):To(t,'unknown document directive "'+r+'"')}Ao(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Ao(t,!0,-1)):n&&vo(t,"directives end mark is expected"),Ho(t,t.lineIndent-1,4,!1,!0),Ao(t,!0,-1),t.checkLineBreaks&&ao.test(t.input.slice(o,t.position))&&To(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Eo(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Ao(t,!0,-1)):t.position<t.length-1&&vo(t,"end of the stream or a document separator is expected")}function Uo(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new wo(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,vo(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Yo(r);return r.documents}function Vo(t,e){var r=Uo(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new Hi("expected a single document in the stream, but found more")}}Fe(Lo,"captureSegment"),Fe(Mo,"mergeMappings"),Fe(_o,"storeMappingPair"),Fe(Fo,"readLineBreak"),Fe(Ao,"skipSeparationSpace"),Fe(Eo,"testDocumentSeparator"),Fe($o,"writeFoldedLines"),Fe(Do,"readPlainScalar"),Fe(Oo,"readSingleQuotedScalar"),Fe(Io,"readDoubleQuotedScalar"),Fe(Po,"readFlowCollection"),Fe(Ro,"readBlockScalar"),Fe(No,"readBlockSequence"),Fe(qo,"readBlockMapping"),Fe(zo,"readTagProperty"),Fe(Wo,"readAnchorProperty"),Fe(jo,"readAlias"),Fe(Ho,"composeNode"),Fe(Yo,"readDocument"),Fe(Uo,"loadDocuments"),Fe((function(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var i=Uo(t,r);if("function"!=typeof e)return i;for(var a=0,o=i.length;a<o;a+=1)e(i[a])}),"loadAll$1"),Fe(Vo,"load$1");var Go={load:Vo},Xo=Object.prototype.toString,Zo=Object.prototype.hasOwnProperty,Ko=65279,Jo={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Qo=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function en(t,e){var r,i,a,o,n,s,l;if(null===e)return{};for(r={},a=0,o=(i=Object.keys(e)).length;a<o;a+=1)n=i[a],s=String(e[n]),"!!"===n.slice(0,2)&&(n="tag:yaml.org,2002:"+n.slice(2)),(l=t.compiledTypeMap.fallback[n])&&Zo.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[n]=s;return r}function rn(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else{if(!(t<=4294967295))throw new Hi("code point within a string may not be greater than 0xFFFFFFFF");r="U",i=8}return"\\"+r+zi.repeat("0",i-e.length)+e}Fe(en,"compileStyleMap"),Fe(rn,"encodeHex");function an(t){this.schema=t.schema||eo,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=zi.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=en(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function on(t,e){for(var r,i=zi.repeat(" ",e),a=0,o=-1,n="",s=t.length;a<s;)-1===(o=t.indexOf("\n",a))?(r=t.slice(a),a=s):(r=t.slice(a,o+1),a=o+1),r.length&&"\n"!==r&&(n+=i),n+=r;return n}function nn(t,e){return"\n"+zi.repeat(" ",t.indent*e)}function sn(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function ln(t){return 32===t||9===t}function hn(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Ko||65536<=t&&t<=1114111}function cn(t){return hn(t)&&t!==Ko&&13!==t&&10!==t}function dn(t,e,r){var i=cn(t),a=i&&!ln(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!a)||cn(e)&&!ln(e)&&35===t||58===e&&a}function un(t){return hn(t)&&t!==Ko&&!ln(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function pn(t){return!ln(t)&&58!==t}function gn(t,e){var r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}function fn(t){return/^\n* /.test(t)}Fe(an,"State"),Fe(on,"indentString"),Fe(nn,"generateNextLine"),Fe(sn,"testImplicitResolving"),Fe(ln,"isWhitespace"),Fe(hn,"isPrintable"),Fe(cn,"isNsCharOrWhitespace"),Fe(dn,"isPlainSafe"),Fe(un,"isPlainSafeFirst"),Fe(pn,"isPlainSafeLast"),Fe(gn,"codePointAt"),Fe(fn,"needIndentIndicator");function mn(t,e,r,i,a,o,n,s){var l,h=0,c=null,d=!1,u=!1,p=-1!==i,g=-1,f=un(gn(t,0))&&pn(gn(t,t.length-1));if(e||n)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!hn(h=gn(t,l)))return 5;f=f&&dn(h,c,s),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=gn(t,l)))d=!0,p&&(u=u||l-g-1>i&&" "!==t[g+1],g=l);else if(!hn(h))return 5;f=f&&dn(h,c,s),c=h}u=u||p&&l-g-1>i&&" "!==t[g+1]}return d||u?r>9&&fn(t)?5:n?2===o?5:2:u?4:3:!f||n||a(t)?2===o?5:2:1}function yn(t,e,r,i,a){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==Qo.indexOf(e)||tn.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,r),n=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),s=i||t.flowLevel>-1&&r>=t.flowLevel;function l(e){return sn(t,e)}switch(Fe(l,"testAmbiguity"),mn(e,s,t.indent,n,l,t.quotingType,t.forceQuotes&&!i,a)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+xn(e,t.indent)+bn(on(e,o));case 4:return">"+xn(e,t.indent)+bn(on(Cn(e,n),o));case 5:return'"'+wn(e)+'"';default:throw new Hi("impossible error: invalid scalar style")}}()}function xn(t,e){var r=fn(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function bn(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Cn(t,e){for(var r,i,a,o=/(\n+)([^\n]*)/g,n=(r=-1!==(r=t.indexOf("\n"))?r:t.length,o.lastIndex=r,kn(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];a=o.exec(t);){var l=a[1],h=a[2];i=" "===h[0],n+=l+(s||i||""===h?"":"\n")+kn(h,e),s=i}return n}function kn(t,e){if(""===t||" "===t[0])return t;for(var r,i,a=/ [^ ]/g,o=0,n=0,s=0,l="";r=a.exec(t);)(s=r.index)-o>e&&(i=n>o?n:s,l+="\n"+t.slice(o,i),o=i+1),n=s;return l+="\n",t.length-o>e&&n>o?l+=t.slice(o,n)+"\n"+t.slice(n+1):l+=t.slice(o),l.slice(1)}function wn(t){for(var e,r="",i=0,a=0;a<t.length;i>=65536?a+=2:a++)i=gn(t,a),!(e=Jo[i])&&hn(i)?(r+=t[a],i>=65536&&(r+=t[a+1])):r+=e||rn(i);return r}function Sn(t,e,r){var i,a,o,n="",s=t.tag;for(i=0,a=r.length;i<a;i+=1)o=r[i],t.replacer&&(o=t.replacer.call(r,String(i),o)),(Mn(t,e,o,!1,!1)||void 0===o&&Mn(t,e,null,!1,!1))&&(""!==n&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=s,t.dump="["+n+"]"}function vn(t,e,r,i){var a,o,n,s="",l=t.tag;for(a=0,o=r.length;a<o;a+=1)n=r[a],t.replacer&&(n=t.replacer.call(r,String(a),n)),(Mn(t,e+1,n,!0,!0,!1,!0)||void 0===n&&Mn(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=nn(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function Tn(t,e,r){var i,a,o,n,s,l="",h=t.tag,c=Object.keys(r);for(i=0,a=c.length;i<a;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),n=r[o=c[i]],t.replacer&&(n=t.replacer.call(r,o,n)),Mn(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Mn(t,e,n,!1,!1)&&(l+=s+=t.dump));t.tag=h,t.dump="{"+l+"}"}function Bn(t,e,r,i){var a,o,n,s,l,h,c="",d=t.tag,u=Object.keys(r);if(!0===t.sortKeys)u.sort();else if("function"==typeof t.sortKeys)u.sort(t.sortKeys);else if(t.sortKeys)throw new Hi("sortKeys must be a boolean or a function");for(a=0,o=u.length;a<o;a+=1)h="",i&&""===c||(h+=nn(t,e)),s=r[n=u[a]],t.replacer&&(s=t.replacer.call(r,n,s)),Mn(t,e+1,n,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=nn(t,e)),Mn(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",c+=h+=t.dump));t.tag=d,t.dump=c||"{}"}function Ln(t,e,r){var i,a,o,n,s,l;for(o=0,n=(a=r?t.explicitTypes:t.implicitTypes).length;o<n;o+=1)if(((s=a[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===Xo.call(s.represent))i=s.represent(e,l);else{if(!Zo.call(s.represent,l))throw new Hi("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');i=s.represent[l](e,l)}t.dump=i}return!0}return!1}function Mn(t,e,r,i,a,o,n){t.tag=null,t.dump=r,Ln(t,r,!1)||Ln(t,r,!0);var s,l=Xo.call(t.dump),h=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var c,d,u="[object Object]"===l||"[object Array]"===l;if(u&&(d=-1!==(c=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||d||2!==t.indent&&e>0)&&(a=!1),d&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(u&&d&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===l)i&&0!==Object.keys(t.dump).length?(Bn(t,e,t.dump,a),d&&(t.dump="&ref_"+c+t.dump)):(Tn(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===l)i&&0!==t.dump.length?(t.noArrayIndent&&!n&&e>0?vn(t,e-1,t.dump,a):vn(t,e,t.dump,a),d&&(t.dump="&ref_"+c+t.dump)):(Sn(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else{if("[object String]"!==l){if("[object Undefined]"===l)return!1;if(t.skipInvalid)return!1;throw new Hi("unacceptable kind of an object to dump "+l)}"?"!==t.tag&&yn(t,t.dump,e,o,h)}null!==t.tag&&"?"!==t.tag&&(s=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),s="!"===t.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",t.dump=s+" "+t.dump)}return!0}function _n(t,e){var r,i,a=[],o=[];for(Fn(t,a,o),r=0,i=o.length;r<i;r+=1)e.duplicates.push(a[o[r]]);e.usedDuplicates=new Array(i)}function Fn(t,e,r){var i,a,o;if(null!==t&&"object"==typeof t)if(-1!==(a=e.indexOf(t)))-1===r.indexOf(a)&&r.push(a);else if(e.push(t),Array.isArray(t))for(a=0,o=t.length;a<o;a+=1)Fn(t[a],e,r);else for(a=0,o=(i=Object.keys(t)).length;a<o;a+=1)Fn(t[i[a]],e,r)}Fe(mn,"chooseScalarStyle"),Fe(yn,"writeScalar"),Fe(xn,"blockHeader"),Fe(bn,"dropEndingNewline"),Fe(Cn,"foldString"),Fe(kn,"foldLine"),Fe(wn,"escapeString"),Fe(Sn,"writeFlowSequence"),Fe(vn,"writeBlockSequence"),Fe(Tn,"writeFlowMapping"),Fe(Bn,"writeBlockMapping"),Fe(Ln,"detectType"),Fe(Mn,"writeNode"),Fe(_n,"getDuplicateReferences"),Fe(Fn,"inspectNode"),Fe((function(t,e){var r=new an(e=e||{});r.noRefs||_n(t,r);var i=t;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Mn(r,0,i,!0,!0)?r.dump+"\n":""}),"dump$1"),Fe((function(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}),"renamed");var An=Ba,En=Go.load,$n={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function Dn(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=On(t),e=On(e);const[r,i]=[t.x,t.y],[a,o]=[e.x,e.y],n=a-r,s=o-i;return{angle:Math.atan(s/n),deltaX:n,deltaY:s}}Fe(Dn,"calculateDeltaAndAngle");var On=Fe((t=>Array.isArray(t)?{x:t[0],y:t[1]}:t),"pointTransformer"),In=Fe((t=>({x:Fe((function(e,r,i){let a=0;const o=On(i[0]).x<On(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn($n,t.arrowTypeStart)){const{angle:e,deltaX:r}=Dn(i[0],i[1]);a=$n[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn($n,t.arrowTypeEnd)){const{angle:e,deltaX:r}=Dn(i[i.length-1],i[i.length-2]);a=$n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const n=Math.abs(On(e).x-On(i[i.length-1]).x),s=Math.abs(On(e).y-On(i[i.length-1]).y),l=Math.abs(On(e).x-On(i[0]).x),h=Math.abs(On(e).y-On(i[0]).y),c=$n[t.arrowTypeStart],d=$n[t.arrowTypeEnd];if(n<d&&n>0&&s<d){let t=d+1-n;t*="right"===o?-1:1,a-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="right"===o?-1:1,a+=t}return On(e).x+a}),"x"),y:Fe((function(e,r,i){let a=0;const o=On(i[0]).y<On(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn($n,t.arrowTypeStart)){const{angle:e,deltaY:r}=Dn(i[0],i[1]);a=$n[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn($n,t.arrowTypeEnd)){const{angle:e,deltaY:r}=Dn(i[i.length-1],i[i.length-2]);a=$n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const n=Math.abs(On(e).y-On(i[i.length-1]).y),s=Math.abs(On(e).x-On(i[i.length-1]).x),l=Math.abs(On(e).y-On(i[0]).y),h=Math.abs(On(e).x-On(i[0]).x),c=$n[t.arrowTypeStart],d=$n[t.arrowTypeEnd];if(n<d&&n>0&&s<d){let t=d+1-n;t*="up"===o?-1:1,a-=t}if(l<c&&l>0&&h<c){let t=c+1-l;t*="up"===o?-1:1,a+=t}return On(e).y+a}),"y")})),"getLineFunctionsWithOffset"),Pn=Fe((({flowchart:t})=>{var e,r;const i=(null==(e=null==t?void 0:t.subGraphTitleMargin)?void 0:e.top)??0,a=(null==(r=null==t?void 0:t.subGraphTitleMargin)?void 0:r.bottom)??0;return{subGraphTitleTopMargin:i,subGraphTitleBottomMargin:a,subGraphTitleTotalMargin:i+a}}),"getSubGraphTitleMargins");const Rn=Object.freeze({left:0,top:0,width:16,height:16}),Nn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),qn=Object.freeze({...Rn,...Nn}),zn=Object.freeze({...qn,body:"",hidden:!1}),Wn=Object.freeze({width:null,height:null}),jn=Object.freeze({...Wn,...Nn}),Hn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Yn=(t,e)=>!!t&&!(""!==t.provider&&!t.provider.match(Hn)||!(e&&""===t.prefix||t.prefix.match(Hn))||!t.name.match(Hn));function Un(t,e){const r=function(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}(t,e);for(const i in zn)i in Nn?i in t&&!(i in r)&&(r[i]=Nn[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function Vn(t,e,r){const i=t.icons,a=t.aliases||Object.create(null);let o={};function n(t){o=Un(i[t]||a[t],o)}return n(e),r.forEach(n),Un(t,o)}function Gn(t,e){if(t.icons[e])return Vn(t,e,[]);const r=function(t,e){const r=t.icons,i=t.aliases||Object.create(null),a=Object.create(null);return(e||Object.keys(r).concat(Object.keys(i))).forEach((function t(e){if(r[e])return a[e]=[];if(!(e in a)){a[e]=null;const r=i[e]&&i[e].parent,o=r&&t(r);o&&(a[e]=[r].concat(o))}return a[e]})),a}(t,[e])[e];return r?Vn(t,e,r):null}const Xn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Kn(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;const i=t.split(Xn);if(null===i||!i.length)return t;const a=[];let o=i.shift(),n=Zn.test(o);for(;;){if(n){const t=parseFloat(o);isNaN(t)?a.push(o):a.push(Math.ceil(t*e*r)/r)}else a.push(o);if(o=i.shift(),void 0===o)return a.join("");n=!n}}const Jn=/\sid="(\S+)"/g,Qn="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let ts=0;var es,rs,is={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},as=new Map,os=new Map,ns=Fe((t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if($e.debug("Registering icon pack:",e.name),"loader"in e)os.set(e.name,e.loader);else{if(!("icons"in e))throw $e.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.');as.set(e.name,e.icons)}}}),"registerIconPacks"),ss=Fe((async(t,e)=>{const r=((t,e,r,i="")=>{const a=t.split(":");if("@"===t.slice(0,1)){if(a.length<2||a.length>3)return null;i=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const t=a.pop(),e=a.pop(),r={provider:a.length>0?a[0]:i,prefix:e,name:t};return Yn(r)?r:null}const o=a[0],n=o.split("-");if(n.length>1){const t={provider:i,prefix:n.shift(),name:n.join("-")};return Yn(t)?t:null}if(r&&""===i){const t={provider:i,prefix:"",name:o};return Yn(t,r)?t:null}return null})(t,0,void 0!==e);if(!r)throw new Error(`Invalid icon name: ${t}`);const i=r.prefix||e;if(!i)throw new Error(`Icon name must contain a prefix: ${t}`);let a=as.get(i);if(!a){const t=os.get(i);if(!t)throw new Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:i},as.set(i,a)}catch(n){throw $e.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=Gn(a,r.name);if(!o)throw new Error(`Icon not found: ${t}`);return o}),"getRegisteredIconData"),ls=Fe((async(t,e)=>{let r;try{r=await ss(t,null==e?void 0:e.fallbackPrefix)}catch(a){$e.error(a),r=is}const i=function(t,e){const r={...qn,...t},i={...jn,...e},a={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach((t=>{const e=[],r=t.hFlip,i=t.vFlip;let n,s=t.rotate;switch(r?i?s+=2:(e.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),e.push("scale(-1 1)"),a.top=a.left=0):i&&(e.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),e.push("scale(1 -1)"),a.top=a.left=0),s<0&&(s-=4*Math.floor(s/4)),s%=4,s){case 1:n=a.height/2+a.top,e.unshift("rotate(90 "+n.toString()+" "+n.toString()+")");break;case 2:e.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:n=a.width/2+a.left,e.unshift("rotate(-90 "+n.toString()+" "+n.toString()+")")}s%2==1&&(a.left!==a.top&&(n=a.left,a.left=a.top,a.top=n),a.width!==a.height&&(n=a.width,a.width=a.height,a.height=n)),e.length&&(o=function(t,e,r){const i=function(t,e="defs"){let r="";const i=t.indexOf("<"+e);for(;i>=0;){const a=t.indexOf(">",i),o=t.indexOf("</"+e);if(-1===a||-1===o)break;const n=t.indexOf(">",o);if(-1===n)break;r+=t.slice(a+1,o).trim(),t=t.slice(0,i).trim()+t.slice(n+1)}return{defs:r,content:t}}(t);return a=i.defs,o=e+i.content+r,a?"<defs>"+a+"</defs>"+o:o;var a,o}(o,'<g transform="'+e.join(" ")+'">',"</g>"))}));const n=i.width,s=i.height,l=a.width,h=a.height;let c,d;null===n?(d=null===s?"1em":"auto"===s?h:s,c=Kn(d,l/h)):(c="auto"===n?l:n,d=null===s?Kn(c,h/l):"auto"===s?h:s);const u={},p=(t,e)=>{(t=>"unset"===t||"undefined"===t||"none"===t)(e)||(u[t]=e.toString())};p("width",c),p("height",d);const g=[a.left,a.top,l,h];return u.viewBox=g.join(" "),{attributes:u,viewBox:g,body:o}}(r,e);return function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)r+=" "+i+'="'+e[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t,e=Qn){const r=[];let i;for(;i=Jn.exec(t);)r.push(i[1]);if(!r.length)return t;const a="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach((r=>{const i="function"==typeof e?e(r):e+(ts++).toString(),o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+i+a+"$3")})),t=t.replace(new RegExp(a,"g"),"")}(i.body),i.attributes)}),"getIconSVG"),hs={},cs={};var ds=function(){if(rs)return hs;rs=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.sanitizeUrl=void 0;var t=(es||(es=1,Object.defineProperty(cs,"__esModule",{value:!0}),cs.BLANK_URL=cs.relativeFirstCharacters=cs.whitespaceEscapeCharsRegex=cs.urlSchemeRegex=cs.ctrlCharactersRegex=cs.htmlCtrlEntityRegex=cs.htmlEntitiesRegex=cs.invalidProtocolRegex=void 0,cs.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,cs.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,cs.htmlCtrlEntityRegex=/&(newline|tab);/gi,cs.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,cs.urlSchemeRegex=/^.+(:|:)/gim,cs.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,cs.relativeFirstCharacters=[".","/"],cs.BLANK_URL="about:blank"),cs);function e(t){try{return decodeURIComponent(t)}catch(e){return t}}return hs.sanitizeUrl=function(r){if(!r)return t.BLANK_URL;var i,a,o=e(r.trim());do{i=(o=e(o=(a=o,a.replace(t.ctrlCharactersRegex,"").replace(t.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim())).match(t.ctrlCharactersRegex)||o.match(t.htmlEntitiesRegex)||o.match(t.htmlCtrlEntityRegex)||o.match(t.whitespaceEscapeCharsRegex)}while(i&&i.length>0);var n=o;if(!n)return t.BLANK_URL;if(function(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}(n))return n;var s=n.trimStart(),l=s.match(t.urlSchemeRegex);if(!l)return n;var h=l[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(h))return t.BLANK_URL;var c=s.replace(/\\/g,"/");if("mailto:"===h||h.includes("://"))return c;if("http:"===h||"https:"===h){if(!function(t){return URL.canParse(t)}(c))return t.BLANK_URL;var d=new URL(c);return d.protocol=d.protocol.toLowerCase(),d.hostname=d.hostname.toLowerCase(),d.toString()}return c},hs}(),us="",ps={curveBasis:U,curveBasisClosed:Y,curveBasisOpen:H,curveBumpX:K,curveBumpY:J,curveBundle:j,curveCardinalClosed:W,curveCardinalOpen:z,curveCardinal:q,curveCatmullRomClosed:N,curveCatmullRomOpen:R,curveCatmullRom:P,curveLinear:I,curveLinearClosed:O,curveMonotoneX:D,curveMonotoneY:$,curveNatural:E,curveStep:A,curveStepAfter:F,curveStepBefore:_},gs=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fs=Fe((function(t,e){const r=ms(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const t=r.map((t=>t.args));dr(t),i=Ue(i,[...t])}else i=r.args;if(!i)return;let a=ze(t,e);const o="config";return void 0!==i[o]&&("flowchart-v2"===a&&(a="flowchart"),i[a]=i[o],delete i[o]),i}),"detectInit"),ms=Fe((function(t,e=null){var r,i;try{const a=new RegExp(`[%]{2}(?![{]${gs.source})(?=[}][%]{2}).*\n`,"ig");let o;t=t.trim().replace(a,"").replace(/'/gm,'"'),$e.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const n=[];for(;null!==(o=Pe.exec(t));)if(o.index===Pe.lastIndex&&Pe.lastIndex++,o&&!e||e&&(null==(r=o[1])?void 0:r.match(e))||e&&(null==(i=o[2])?void 0:i.match(e))){const t=o[1]?o[1]:o[2],e=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;n.push({type:t,args:e})}return 0===n.length?{type:t,args:null}:1===n.length?n[0]:n}catch(a){return $e.error(`ERROR: ${a.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}}),"detectDirective"),ys=Fe((function(t){return t.replace(Pe,"")}),"removeDirectives"),xs=Fe((function(t,e){for(const[r,i]of e.entries())if(i.match(t))return r;return-1}),"isSubstringInArray");function bs(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return ps[r]??e}function Cs(t,e){const r=t.trim();if(r)return"loose"!==e.securityLevel?ds.sanitizeUrl(r):r}Fe(bs,"interpolateToCurve"),Fe(Cs,"formatUrl");var ks=Fe(((t,...e)=>{const r=t.split("."),i=r.length-1,a=r[i];let o=window;for(let n=0;n<i;n++)if(o=o[r[n]],!o)return void $e.error(`Function name: ${t} not found in window`);o[a](...e)}),"runFunc");function ws(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function Ss(t){let e,r=0;t.forEach((t=>{r+=ws(t,e),e=t}));return Bs(t,r/2)}function vs(t){return 1===t.length?t[0]:Ss(t)}Fe(ws,"distance"),Fe(Ss,"traverseEdge"),Fe(vs,"calcLabelPosition");var Ts=Fe(((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r}),"roundNumber"),Bs=Fe(((t,e)=>{let r,i=e;for(const a of t){if(r){const t=ws(a,r);if(0===t)return r;if(t<i)i-=t;else{const e=i/t;if(e<=0)return r;if(e>=1)return{x:a.x,y:a.y};if(e>0&&e<1)return{x:Ts((1-e)*r.x+e*a.x,5),y:Ts((1-e)*r.y+e*a.y,5)}}}r=a}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint"),Ls=Fe(((t,e,r)=>{$e.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=Bs(e,25),a=t?10:5,o=Math.atan2(e[0].y-i.y,e[0].x-i.x),n={x:0,y:0};return n.x=Math.sin(o)*a+(e[0].x+i.x)/2,n.y=-Math.cos(o)*a+(e[0].y+i.y)/2,n}),"calcCardinalityPosition");function Ms(t,e,r){const i=structuredClone(r);$e.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();const a=Bs(i,25+t),o=10+.5*t,n=Math.atan2(i[0].y-a.y,i[0].x-a.x),s={x:0,y:0};return"start_left"===e?(s.x=Math.sin(n+Math.PI)*o+(i[0].x+a.x)/2,s.y=-Math.cos(n+Math.PI)*o+(i[0].y+a.y)/2):"end_right"===e?(s.x=Math.sin(n-Math.PI)*o+(i[0].x+a.x)/2-5,s.y=-Math.cos(n-Math.PI)*o+(i[0].y+a.y)/2-5):"end_left"===e?(s.x=Math.sin(n)*o+(i[0].x+a.x)/2-5,s.y=-Math.cos(n)*o+(i[0].y+a.y)/2-5):(s.x=Math.sin(n)*o+(i[0].x+a.x)/2,s.y=-Math.cos(n)*o+(i[0].y+a.y)/2),s}function _s(t){let e="",r="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}Fe(Ms,"calcTerminalLabelPosition"),Fe(_s,"getStylesFromArray");var Fs=0,As=Fe((()=>(Fs++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Fs)),"generateId");function Es(t){let e="";const r="0123456789abcdef";for(let i=0;i<t;i++)e+=r.charAt(Math.floor(16*Math.random()));return e}Fe(Es,"makeRandomHex");var $s=Fe((t=>Es(t.length)),"random"),Ds=Fe((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"),Os=Fe((function(t,e){const r=e.text.replace(ri.lineBreakRegex," "),[,i]=Us(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",i),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);const o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a}),"drawSimpleText"),Is=b(((t,e,r)=>{if(!t)return t;if(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),ri.lineBreakRegex.test(t))return t;const i=t.split(" ").filter(Boolean),a=[];let o="";return i.forEach(((t,n)=>{const s=Ns(`${t} `,r),l=Ns(o,r);if(s>e){const{hyphenatedStrings:i,remainingWord:n}=Ps(t,e,"-",r);a.push(o,...i),o=n}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");n+1===i.length&&a.push(o)})),a.filter((t=>""!==t)).join(r.joinWith)}),((t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`)),Ps=b(((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const a=[...t],o=[];let n="";return a.forEach(((t,s)=>{const l=`${n}${t}`;if(Ns(l,i)>=e){const t=s+1,e=a.length===t,i=`${l}${r}`;o.push(e?l:i),n=""}else n=l})),{hyphenatedStrings:o,remainingWord:n}}),((t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function Rs(t,e){return zs(t,e).height}function Ns(t,e){return zs(t,e).width}Fe(Rs,"calculateTextHeight"),Fe(Ns,"calculateTextWidth");var qs,zs=b(((t,e)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};const[,o]=Us(r),n=["sans-serif",i],s=t.split(ri.lineBreakRegex),l=[],h=M("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const d of n){let t=0;const e={width:0,height:0,lineHeight:0};for(const r of s){const i=Ds();i.text=r||"";const n=Os(c,i).style("font-size",o).style("font-weight",a).style("font-family",d),s=(n._groups||n)[0][0].getBBox();if(0===s.width&&0===s.height)throw new Error("svg element not in render tree");e.width=Math.round(Math.max(e.width,s.width)),t=Math.round(s.height),e.height+=t,e.lineHeight=Math.round(Math.max(e.lineHeight,t))}l.push(e)}c.remove();return l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`)),Ws=(Fe(s=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}},"InitIDGenerator"),s),js=Fe((function(t){return qs=qs||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),qs.innerHTML=t,unescape(qs.textContent)}),"entityDecode");function Hs(t){return"str"in t}Fe(Hs,"isDetailedError");var Ys=Fe(((t,e,r,i)=>{var a;if(!i)return;const o=null==(a=t.node())?void 0:a.getBBox();o&&t.append("text").text(i).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-r).attr("class",e)}),"insertTitle"),Us=Fe((t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]}),"parseFontSize");function Vs(t,e){return C({},t,e)}Fe(Vs,"cleanAndMerge");var Gs={assignWithDepth:Ue,wrapLabel:Is,calculateTextHeight:Rs,calculateTextWidth:Ns,calculateTextDimensions:zs,cleanAndMerge:Vs,detectInit:fs,detectDirective:ms,isSubstringInArray:xs,interpolateToCurve:bs,calcLabelPosition:vs,calcCardinalityPosition:Ls,calcTerminalLabelPosition:Ms,formatUrl:Cs,getStylesFromArray:_s,generateId:As,random:$s,runFunc:ks,entityDecode:js,insertTitle:Ys,parseFontSize:Us,InitIDGenerator:Ws},Xs=Fe((function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e}),"encodeEntities"),Zs=Fe((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities"),Ks=Fe(((t,e,{counter:r=0,prefix:i,suffix:a},o)=>o||`${i?`${i}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`),"getEdgeId");function Js(t){return t??null}function Qs(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var a=i.reduce((function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map((function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0}))):t}),[]);if(a.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,a)+"}","g");i=i.map((function(t){return t.replace(o,"\n")}))}i[0]=i[0].replace(/^\r?\n/,"");var n=i[0];return e.forEach((function(t,e){var r=n.match(/(?:^|\n)( *)$/),a=r?r[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map((function(t,e){return 0===e?t:""+a+t})).join("\n")),n+=o+i[e+1]})),n}function tl(t,{markdownAutoWrap:e}){const r=Qs(t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"));return!1===e?r.replace(/ /g," "):r}function el(t,e={}){const r=tl(t,e),i=k.lexer(r),a=[[]];let o=0;function n(t,e="normal"){if("text"===t.type){t.text.split("\n").forEach(((t,r)=>{0!==r&&(o++,a.push([])),t.split(" ").forEach((t=>{(t=t.replace(/'/g,"'"))&&a[o].push({content:t,type:e})}))}))}else"strong"===t.type||"em"===t.type?t.tokens.forEach((e=>{n(e,t.type)})):"html"===t.type&&a[o].push({content:t.text,type:"normal"})}return Fe(n,"processNode"),i.forEach((t=>{var e;"paragraph"===t.type?null==(e=t.tokens)||e.forEach((t=>{n(t)})):"html"===t.type&&a[o].push({content:t.text,type:"normal"})})),a}function rl(t,{markdownAutoWrap:e}={}){const r=k.lexer(t);function i(t){var r,a,o;return"text"===t.type?!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>"):"strong"===t.type?`<strong>${null==(r=t.tokens)?void 0:r.map(i).join("")}</strong>`:"em"===t.type?`<em>${null==(a=t.tokens)?void 0:a.map(i).join("")}</em>`:"paragraph"===t.type?`<p>${null==(o=t.tokens)?void 0:o.map(i).join("")}</p>`:"space"===t.type?"":"html"===t.type?`${t.text}`:"escape"===t.type?t.text:`Unsupported markdown: ${t.type}`}return Fe(i,"output"),r.map(i).join("")}function il(t){return Intl.Segmenter?[...(new Intl.Segmenter).segment(t)].map((t=>t.segment)):[...t]}function al(t,e){return ol(t,[],il(e.content),e.type)}function ol(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];const[a,...o]=r,n=[...e,a];return t([{content:n.join(""),type:i}])?ol(t,n,o,i):(0===e.length&&a&&(e.push(a),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function nl(t,e){if(t.some((({content:t})=>t.includes("\n"))))throw new Error("splitLineToFitWidth does not support newlines in the line");return sl(t,e)}function sl(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let a="";" "===t[0].content&&(a=" ",t.shift());const o=t.shift()??{content:" ",type:"normal"},n=[...i];if(""!==a&&n.push({content:a,type:"normal"}),n.push(o),e(n))return sl(t,e,r,n);if(i.length>0)r.push(i),t.unshift(o);else if(o.content){const[i,a]=al(e,o);r.push([i]),a.content&&t.unshift(a)}return sl(t,e,r)}function ll(t,e){e&&t.attr("style",e)}async function hl(t,e,r,i,a=!1){const o=t.append("foreignObject");o.attr("width",10*r+"px"),o.attr("height",10*r+"px");const n=o.append("xhtml:div");let s=e.label;e.label&&Qr(e.label)&&(s=await ei(e.label.replace(ri.lineBreakRegex,"\n"),Ti()));const l=e.isNode?"nodeLabel":"edgeLabel",h=n.append("span");h.html(s),ll(h,e.labelStyle),h.attr("class",`${l} ${i}`),ll(n,e.labelStyle),n.style("display","table-cell"),n.style("white-space","nowrap"),n.style("line-height","1.5"),n.style("max-width",r+"px"),n.style("text-align","center"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),a&&n.attr("class","labelBkg");let c=n.node().getBoundingClientRect();return c.width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px"),c=n.node().getBoundingClientRect()),o.node()}function cl(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function dl(t,e,r){const i=t.append("text"),a=cl(i,1,e);gl(a,r);const o=a.node().getComputedTextLength();return i.remove(),o}function ul(t,e,r){var i;const a=t.append("text"),o=cl(a,1,e);gl(o,[{content:r,type:"normal"}]);const n=null==(i=o.node())?void 0:i.getBoundingClientRect();return n&&a.remove(),n}function pl(t,e,r,i=!1){const a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),n=a.append("text").attr("y","-10.1");let s=0;for(const l of r){const e=Fe((e=>dl(a,1.1,e)<=t),"checkWidth"),r=e(l)?[l]:nl(l,e);for(const t of r){gl(cl(n,s,1.1),t),s++}}if(i){const t=n.node().getBBox(),e=2;return o.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e),a.node()}return n.node()}function gl(t,e){t.text(""),e.forEach(((e,r)=>{const i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(e.content):i.text(" "+e.content)}))}function fl(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))}Fe(Js,"handleUndefinedAttr"),Fe(tl,"preprocessMarkdown"),Fe(el,"markdownToLines"),Fe(rl,"markdownToHTML"),Fe(il,"splitTextToChars"),Fe(al,"splitWordToFitWidth"),Fe(ol,"splitWordToFitWidthRecursion"),Fe(nl,"splitLineToFitWidth"),Fe(sl,"splitLineToFitWidthRecursion"),Fe(ll,"applyStyle"),Fe(hl,"addHtmlSpan"),Fe(cl,"createTspan"),Fe(dl,"computeWidthOfText"),Fe(ul,"computeDimensionOfText"),Fe(pl,"createFormattedText"),Fe(gl,"updateTextContentAndStyles"),Fe(fl,"replaceIconSubstring");var ml=Fe((async(t,e="",{style:r="",isTitle:i=!1,classes:a="",useHtmlLabels:o=!0,isNode:n=!0,width:s=200,addSvgBackground:l=!1}={},h)=>{if($e.debug("XYZ createText",e,r,i,a,o,n,"addSvgBackground: ",l),o){const i=rl(e,h),o=fl(Zs(i)),c=e.replace(/\\\\/g,"\\"),d={isNode:n,label:Qr(e)?c:o,labelStyle:r.replace("fill:","color:")};return await hl(t,d,s,a,l)}{const i=pl(s,t,el(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),h),!!e&&l);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");M(i).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");M(i).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");M(i).select("text").attr("style",e)}return i}}),"createText");function yl(t,e,r){if(t&&t.length){const[i,a]=e,o=Math.PI/180*r,n=Math.cos(o),s=Math.sin(o);for(const e of t){const[t,r]=e;e[0]=(t-i)*n-(r-a)*s+i,e[1]=(t-i)*s+(r-a)*n+a}}}function xl(t,e){return t[0]===e[0]&&t[1]===e[1]}function bl(t,e){var r;const i=e.hachureAngle+90;let a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){const a=r,o=Math.max(e,.1),n=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(a)for(const h of n)yl(h,s,a);const l=function(t,e,r){const i=[];for(const h of t){const t=[...h];xl(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const a=[];e=Math.max(e,.1);const o=[];for(const h of i)for(let t=0;t<h.length-1;t++){const e=h[t],r=h[t+1];if(e[1]!==r[1]){const t=Math.min(e[1],r[1]);o.push({ymin:t,ymax:Math.max(e[1],r[1]),x:t===e[1]?e[0]:r[0],islope:(r[0]-e[0])/(r[1]-e[1])})}}if(o.sort(((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax))),!o.length)return a;let n=[],s=o[0].ymin,l=0;for(;n.length||o.length;){if(o.length){let t=-1;for(let e=0;e<o.length&&!(o[e].ymin>s);e++)t=e;o.splice(0,t+1).forEach((t=>{n.push({s:s,edge:t})}))}if(n=n.filter((t=>!(t.edge.ymax<=s))),n.sort(((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x))),(1!==r||l%e==0)&&n.length>1)for(let t=0;t<n.length;t+=2){const e=t+1;if(e>=n.length)break;const r=n[t].edge,i=n[e].edge;a.push([[Math.round(r.x),s],[Math.round(i.x),s]])}s+=r,n.forEach((t=>{t.edge.x=t.edge.x+r*t.edge.islope})),l++}return a}(n,o,i);if(a){for(const t of n)yl(t,s,-a);!function(t,e,r){const i=[];t.forEach((t=>i.push(...t))),yl(i,e,r)}(l,s,-a)}return l}(t,a,i,o||1)}class Cl{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=bl(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function kl(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class wl extends Cl{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const i=bl(t,Object.assign({},e,{hachureGap:r})),a=Math.PI/180*e.hachureAngle,o=[],n=.5*r*Math.cos(a),s=.5*r*Math.sin(a);for(const[l,h]of i)kl([l,h])&&o.push([[l[0]-n,l[1]+s],[...h]],[[l[0]+n,l[1]-s],[...h]]);return{type:"fillSketch",ops:this.renderLines(o,e)}}}class Sl extends Cl{fillPolygons(t,e){const r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(t,i);return r.ops=r.ops.concat(a.ops),r}}class vl{constructor(t){this.helper=t}fillPolygons(t,e){const r=bl(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);const o=i/4;for(const n of t){const t=kl(n),s=t/i,l=Math.ceil(s)-1,h=t-l*i,c=(n[0][0]+n[1][0])/2-i/4,d=Math.min(n[0][1],n[1][1]);for(let n=0;n<l;n++){const t=d+h+n*i,s=c-o+2*Math.random()*o,l=t-o+2*Math.random()*o,u=this.helper.ellipse(s,l,a,a,e);r.push(...u.ops)}}return{type:"fillSketch",ops:r}}}class Tl{constructor(t){this.helper=t}fillPolygons(t,e){const r=bl(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){const r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,a=[];return t.forEach((t=>{const o=kl(t),n=Math.floor(o/(r+i)),s=(o+i-n*(r+i))/2;let l=t[0],h=t[1];l[0]>h[0]&&(l=t[1],h=t[0]);const c=Math.atan((h[1]-l[1])/(h[0]-l[0]));for(let d=0;d<n;d++){const t=d*(r+i),o=t+r,n=[l[0]+t*Math.cos(c)+s*Math.cos(c),l[1]+t*Math.sin(c)+s*Math.sin(c)],h=[l[0]+o*Math.cos(c)+s*Math.cos(c),l[1]+o*Math.sin(c)+s*Math.sin(c)];a.push(...this.helper.doubleLineOps(n[0],n[1],h[0],h[1],e))}})),a}}class Bl{constructor(t){this.helper=t}fillPolygons(t,e){const r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,a=bl(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(a,i,e)}}zigzagLines(t,e,r){const i=[];return t.forEach((t=>{const a=kl(t),o=Math.round(a/(2*e));let n=t[0],s=t[1];n[0]>s[0]&&(n=t[1],s=t[0]);const l=Math.atan((s[1]-n[1])/(s[0]-n[0]));for(let h=0;h<o;h++){const t=2*h*e,a=2*(h+1)*e,o=Math.sqrt(2*Math.pow(e,2)),s=[n[0]+t*Math.cos(l),n[1]+t*Math.sin(l)],c=[n[0]+a*Math.cos(l),n[1]+a*Math.sin(l)],d=[s[0]+o*Math.cos(l+Math.PI/4),s[1]+o*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(s[0],s[1],d[0],d[1],r),...this.helper.doubleLineOps(d[0],d[1],c[0],c[1],r))}})),i}}const Ll={};class Ml{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const _l={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 Fl(t,e){return t.type===e}function Al(t){const e=[],r=function(t){const e=new Array;for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t);let i="BOD",a=0,o=r[a];for(;!Fl(o,2);){let n=0;const s=[];if("BOD"===i){if("M"!==o.text&&"m"!==o.text)return Al("M0,0"+t);a++,n=_l[o.text],i=o.text}else Fl(o,1)?n=_l[i]:(a++,n=_l[o.text],i=o.text);if(!(a+n<r.length))throw new Error("Path data ended short");for(let t=a;t<a+n;t++){const e=r[t];if(!Fl(e,1))throw new Error("Param not a number: "+i+","+e.text);s[s.length]=+e.text}if("number"!=typeof _l[i])throw new Error("Bad segment: "+i);{const t={key:i,data:s};e.push(t),a+=n,o=r[a],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function El(t){let e=0,r=0,i=0,a=0;const o=[];for(const{key:n,data:s}of t)switch(n){case"M":o.push({key:"M",data:[...s]}),[e,r]=s,[i,a]=s;break;case"m":e+=s[0],r+=s[1],o.push({key:"M",data:[e,r]}),i=e,a=r;break;case"L":o.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],o.push({key:"L",data:[e,r]});break;case"C":o.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{const t=s.map(((t,i)=>i%2?t+r:t+e));o.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":o.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{const t=s.map(((t,i)=>i%2?t+r:t+e));o.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":o.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":o.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{const t=s.map(((t,i)=>i%2?t+r:t+e));o.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":o.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],o.push({key:"T",data:[e,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=i,r=a}return o}function $l(t){const e=[];let r="",i=0,a=0,o=0,n=0,s=0,l=0;for(const{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,a]=c,[o,n]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],a=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,a]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,a]});break;case"V":a=c[0],e.push({key:"L",data:[i,a]});break;case"S":{let t=0,o=0;"C"===r||"S"===r?(t=i+(i-s),o=a+(a-l)):(t=i,o=a),e.push({key:"C",data:[t,o,...c]}),s=c[0],l=c[1],i=c[2],a=c[3];break}case"T":{const[t,o]=c;let n=0,h=0;"Q"===r||"T"===r?(n=i+(i-s),h=a+(a-l)):(n=i,h=a);const d=i+2*(n-i)/3,u=a+2*(h-a)/3,p=t+2*(n-t)/3,g=o+2*(h-o)/3;e.push({key:"C",data:[d,u,p,g,t,o]}),s=n,l=h,i=t,a=o;break}case"Q":{const[t,r,o,n]=c,h=i+2*(t-i)/3,d=a+2*(r-a)/3,u=o+2*(t-o)/3,p=n+2*(r-n)/3;e.push({key:"C",data:[h,d,u,p,o,n]}),s=t,l=r,i=o,a=n;break}case"A":{const t=Math.abs(c[0]),r=Math.abs(c[1]),o=c[2],n=c[3],s=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,a,l,h,l,h]}),i=l,a=h):i===l&&a===h||(Ol(i,a,l,h,t,r,o,n,s).forEach((function(t){e.push({key:"C",data:t})})),i=l,a=h);break}case"Z":e.push({key:"Z",data:[]}),i=o,a=n}r=h}return e}function Dl(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function Ol(t,e,r,i,a,o,n,s,l,h){const c=(d=n,Math.PI*d/180);var d;let u=[],p=0,g=0,f=0,m=0;if(h)[p,g,f,m]=h;else{[t,e]=Dl(t,e,-c),[r,i]=Dl(r,i,-c);const n=(t-r)/2,h=(e-i)/2;let d=n*n/(a*a)+h*h/(o*o);d>1&&(d=Math.sqrt(d),a*=d,o*=d);const u=a*a,y=o*o,x=u*y-u*h*h-y*n*n,b=u*h*h+y*n*n,C=(s===l?-1:1)*Math.sqrt(Math.abs(x/b));f=C*a*h/o+(t+r)/2,m=C*-o*n/a+(e+i)/2,p=Math.asin(parseFloat(((e-m)/o).toFixed(9))),g=Math.asin(parseFloat(((i-m)/o).toFixed(9))),t<f&&(p=Math.PI-p),r<f&&(g=Math.PI-g),p<0&&(p=2*Math.PI+p),g<0&&(g=2*Math.PI+g),l&&p>g&&(p-=2*Math.PI),!l&&g>p&&(g-=2*Math.PI)}let y=g-p;if(Math.abs(y)>120*Math.PI/180){const t=g,e=r,s=i;g=l&&g>p?p+120*Math.PI/180*1:p+120*Math.PI/180*-1,u=Ol(r=f+a*Math.cos(g),i=m+o*Math.sin(g),e,s,a,o,n,0,l,[g,t,f,m])}y=g-p;const x=Math.cos(p),b=Math.sin(p),C=Math.cos(g),k=Math.sin(g),w=Math.tan(y/4),S=4/3*a*w,v=4/3*o*w,T=[t,e],B=[t+S*b,e-v*x],L=[r+S*k,i-v*C],M=[r,i];if(B[0]=2*T[0]-B[0],B[1]=2*T[1]-B[1],h)return[B,L,M].concat(u);{u=[B,L,M].concat(u);const t=[];for(let e=0;e<u.length;e+=3){const r=Dl(u[e][0],u[e][1],c),i=Dl(u[e+1][0],u[e+1][1],c),a=Dl(u[e+2][0],u[e+2][1],c);t.push([r[0],r[1],i[0],i[1],a[0],a[1]])}return t}}const Il={randOffset:function(t,e){return Xl(t,e)},randOffsetWithRange:function(t,e,r){return Gl(t,e,r)},ellipse:function(t,e,r,i,a){return zl(t,e,a,ql(r,i,a)).opset},doubleLineOps:function(t,e,r,i,a){return Zl(t,e,r,i,a,!0)}};function Pl(t,e,r,i,a){return{type:"path",ops:Zl(t,e,r,i,a)}}function Rl(t,e,r){const i=(t||[]).length;if(i>2){const a=[];for(let e=0;e<i-1;e++)a.push(...Zl(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&a.push(...Zl(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:a}}return 2===i?Pl(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function Nl(t,e){if(t.length){const r="number"==typeof t[0][0]?[t]:t,i=Jl(r[0],1*(1+.2*e.roughness),e),a=e.disableMultiStroke?[]:Jl(r[0],1.5*(1+.22*e.roughness),Ul(e));for(let t=1;t<r.length;t++){const o=r[t];if(o.length){const t=Jl(o,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:Jl(o,1.5*(1+.22*e.roughness),Ul(e));for(const e of t)"move"!==e.op&&i.push(e);for(const e of r)"move"!==e.op&&a.push(e)}}return{type:"path",ops:i.concat(a)}}return{type:"path",ops:[]}}function ql(t,e,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),a=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/a;let n=Math.abs(t/2),s=Math.abs(e/2);const l=1-r.curveFitting;return n+=Xl(n*l,r),s+=Xl(s*l,r),{increment:o,rx:n,ry:s}}function zl(t,e,r,i){const[a,o]=th(i.increment,t,e,i.rx,i.ry,1,i.increment*Gl(.1,Gl(.4,1,r),r),r);let n=Ql(a,null,r);if(!r.disableMultiStroke&&0!==r.roughness){const[a]=th(i.increment,t,e,i.rx,i.ry,1.5,0,r),o=Ql(a,null,r);n=n.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:n}}}function Wl(t,e,r,i,a,o,n,s,l){const h=t,c=e;let d=Math.abs(r/2),u=Math.abs(i/2);d+=Xl(.01*d,l),u+=Xl(.01*u,l);let p=a,g=o;for(;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);const f=2*Math.PI/l.curveStepCount,m=Math.min(f/2,(g-p)/2),y=eh(m,h,c,d,u,p,g,1,l);if(!l.disableMultiStroke){const t=eh(m,h,c,d,u,p,g,1.5,l);y.push(...t)}return n&&(s?y.push(...Zl(h,c,h+d*Math.cos(p),c+u*Math.sin(p),l),...Zl(h,c,h+d*Math.cos(g),c+u*Math.sin(g),l)):y.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+d*Math.cos(p),c+u*Math.sin(p)]})),{type:"path",ops:y}}function jl(t,e){const r=$l(El(Al(t))),i=[];let a=[0,0],o=[0,0];for(const{key:n,data:s}of r)switch(n){case"M":o=[s[0],s[1]],a=[s[0],s[1]];break;case"L":i.push(...Zl(o[0],o[1],s[0],s[1],e)),o=[s[0],s[1]];break;case"C":{const[t,r,a,n,l,h]=s;i.push(...rh(t,r,a,n,l,h,o,e)),o=[l,h];break}case"Z":i.push(...Zl(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]]}return{type:"path",ops:i}}function Hl(t,e){const r=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+Xl(t,e),i[0][1]+Xl(t,e)]});for(let o=1;o<a;o++)r.push({op:"lineTo",data:[i[o][0]+Xl(t,e),i[o][1]+Xl(t,e)]})}}return{type:"fillPath",ops:r}}function Yl(t,e){return function(t,e){let r=t.fillStyle||"hachure";if(!Ll[r])switch(r){case"zigzag":Ll[r]||(Ll[r]=new wl(e));break;case"cross-hatch":Ll[r]||(Ll[r]=new Sl(e));break;case"dots":Ll[r]||(Ll[r]=new vl(e));break;case"dashed":Ll[r]||(Ll[r]=new Tl(e));break;case"zigzag-line":Ll[r]||(Ll[r]=new Bl(e));break;default:r="hachure",Ll[r]||(Ll[r]=new Cl(e))}return Ll[r]}(e,Il).fillPolygons(t,e)}function Ul(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function Vl(t){return t.randomizer||(t.randomizer=new Ml(t.seed||0)),t.randomizer.next()}function Gl(t,e,r,i=1){return r.roughness*i*(Vl(r)*(e-t)+t)}function Xl(t,e,r=1){return Gl(-t,t,e,r)}function Zl(t,e,r,i,a,o=!1){const n=o?a.disableMultiStrokeFill:a.disableMultiStroke,s=Kl(t,e,r,i,a,!0,!1);if(n)return s;const l=Kl(t,e,r,i,a,!0,!0);return s.concat(l)}function Kl(t,e,r,i,a,o,n){const s=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(s);let h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=a.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);const d=c/2,u=.2+.2*Vl(a);let p=a.bowing*a.maxRandomnessOffset*(i-e)/200,g=a.bowing*a.maxRandomnessOffset*(t-r)/200;p=Xl(p,a,h),g=Xl(g,a,h);const f=[],m=()=>Xl(d,a,h),y=()=>Xl(c,a,h),x=a.preserveVertices;return n?f.push({op:"move",data:[t+(x?0:m()),e+(x?0:m())]}):f.push({op:"move",data:[t+(x?0:Xl(c,a,h)),e+(x?0:Xl(c,a,h))]}),n?f.push({op:"bcurveTo",data:[p+t+(r-t)*u+m(),g+e+(i-e)*u+m(),p+t+2*(r-t)*u+m(),g+e+2*(i-e)*u+m(),r+(x?0:m()),i+(x?0:m())]}):f.push({op:"bcurveTo",data:[p+t+(r-t)*u+y(),g+e+(i-e)*u+y(),p+t+2*(r-t)*u+y(),g+e+2*(i-e)*u+y(),r+(x?0:y()),i+(x?0:y())]}),f}function Jl(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+Xl(e,r),t[0][1]+Xl(e,r)]),i.push([t[0][0]+Xl(e,r),t[0][1]+Xl(e,r)]);for(let a=1;a<t.length;a++)i.push([t[a][0]+Xl(e,r),t[a][1]+Xl(e,r)]),a===t.length-1&&i.push([t[a][0]+Xl(e,r),t[a][1]+Xl(e,r)]);return Ql(i,null,r)}function Ql(t,e,r){const i=t.length,a=[];if(i>3){const e=[],o=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let r=1;r+2<i;r++){const i=t[r];e[0]=[i[0],i[1]],e[1]=[i[0]+(o*t[r+1][0]-o*t[r-1][0])/6,i[1]+(o*t[r+1][1]-o*t[r-1][1])/6],e[2]=[t[r+1][0]+(o*t[r][0]-o*t[r+2][0])/6,t[r+1][1]+(o*t[r][1]-o*t[r+2][1])/6],e[3]=[t[r+1][0],t[r+1][1]],a.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[3][0],e[3][1]]})}}else 3===i?(a.push({op:"move",data:[t[1][0],t[1][1]]}),a.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&a.push(...Kl(t[0][0],t[0][1],t[1][0],t[1][1],r,0,!0));return a}function th(t,e,r,i,a,o,n,s){const l=[],h=[];if(0===s.roughness){t/=4,h.push([e+i*Math.cos(-t),r+a*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){const t=[e+i*Math.cos(o),r+a*Math.sin(o)];l.push(t),h.push(t)}h.push([e+i*Math.cos(0),r+a*Math.sin(0)]),h.push([e+i*Math.cos(t),r+a*Math.sin(t)])}else{const c=Xl(.5,s)-Math.PI/2;h.push([Xl(o,s)+e+.9*i*Math.cos(c-t),Xl(o,s)+r+.9*a*Math.sin(c-t)]);const d=2*Math.PI+c-.01;for(let n=c;n<d;n+=t){const t=[Xl(o,s)+e+i*Math.cos(n),Xl(o,s)+r+a*Math.sin(n)];l.push(t),h.push(t)}h.push([Xl(o,s)+e+i*Math.cos(c+2*Math.PI+.5*n),Xl(o,s)+r+a*Math.sin(c+2*Math.PI+.5*n)]),h.push([Xl(o,s)+e+.98*i*Math.cos(c+n),Xl(o,s)+r+.98*a*Math.sin(c+n)]),h.push([Xl(o,s)+e+.9*i*Math.cos(c+.5*n),Xl(o,s)+r+.9*a*Math.sin(c+.5*n)])}return[h,l]}function eh(t,e,r,i,a,o,n,s,l){const h=o+Xl(.1,l),c=[];c.push([Xl(s,l)+e+.9*i*Math.cos(h-t),Xl(s,l)+r+.9*a*Math.sin(h-t)]);for(let d=h;d<=n;d+=t)c.push([Xl(s,l)+e+i*Math.cos(d),Xl(s,l)+r+a*Math.sin(d)]);return c.push([e+i*Math.cos(n),r+a*Math.sin(n)]),c.push([e+i*Math.cos(n),r+a*Math.sin(n)]),Ql(c,0,l)}function rh(t,e,r,i,a,o,n,s){const l=[],h=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3];let c=[0,0];const d=s.disableMultiStroke?1:2,u=s.preserveVertices;for(let p=0;p<d;p++)0===p?l.push({op:"move",data:[n[0],n[1]]}):l.push({op:"move",data:[n[0]+(u?0:Xl(h[0],s)),n[1]+(u?0:Xl(h[0],s))]}),c=u?[a,o]:[a+Xl(h[p],s),o+Xl(h[p],s)],l.push({op:"bcurveTo",data:[t+Xl(h[p],s),e+Xl(h[p],s),r+Xl(h[p],s),i+Xl(h[p],s),c[0],c[1]]});return l}function ih(t){return[...t]}function ah(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(3===r)i.push(ih(t[0]),ih(t[1]),ih(t[2]),ih(t[2]));else{const r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);const a=[],o=1-e;i.push(ih(r[0]));for(let t=1;t+2<r.length;t++){const e=r[t];a[0]=[e[0],e[1]],a[1]=[e[0]+(o*r[t+1][0]-o*r[t-1][0])/6,e[1]+(o*r[t+1][1]-o*r[t-1][1])/6],a[2]=[r[t+1][0]+(o*r[t][0]-o*r[t+2][0])/6,r[t+1][1]+(o*r[t][1]-o*r[t+2][1])/6],a[3]=[r[t+1][0],r[t+1][1]],i.push(a[1],a[2],a[3])}}return i}function oh(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function nh(t,e,r){const i=oh(e,r);if(0===i)return oh(t,e);let a=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return a=Math.max(0,Math.min(1,a)),oh(t,sh(e,r,a))}function sh(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function lh(t,e,r,i){const a=i||[];if(function(t,e){const r=t[e+0],i=t[e+1],a=t[e+2],o=t[e+3];let n=3*i[0]-2*r[0]-o[0];n*=n;let s=3*i[1]-2*r[1]-o[1];s*=s;let l=3*a[0]-2*o[0]-r[0];l*=l;let h=3*a[1]-2*o[1]-r[1];return h*=h,n<l&&(n=l),s<h&&(s=h),n+s}(t,e)<r){const r=t[e+0];a.length?(o=a[a.length-1],n=r,Math.sqrt(oh(o,n))>1&&a.push(r)):a.push(r),a.push(t[e+3])}else{const i=.5,o=t[e+0],n=t[e+1],s=t[e+2],l=t[e+3],h=sh(o,n,i),c=sh(n,s,i),d=sh(s,l,i),u=sh(h,c,i),p=sh(c,d,i),g=sh(u,p,i);lh([o,h,u,g],0,r,a),lh([g,p,d,l],0,r,a)}var o,n;return a}function hh(t,e){return ch(t,0,t.length,e)}function ch(t,e,r,i,a){const o=a||[],n=t[e],s=t[r-1];let l=0,h=1;for(let c=e+1;c<r-1;++c){const e=nh(t[c],n,s);e>l&&(l=e,h=c)}return Math.sqrt(l)>i?(ch(t,e,h+1,i,o),ch(t,h,r,i,o)):(o.length||o.push(n),o.push(s)),o}function dh(t,e=.15,r){const i=[],a=(t.length-1)/3;for(let o=0;o<a;o++)lh(t,3*o,e,i);return r&&r>0?ch(i,0,i.length,r):i}const uh="none";class ph{constructor(t){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=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,a){const o=this._o(a);return this._d("line",[Pl(t,e,r,i,o)],o)}rectangle(t,e,r,i,a){const o=this._o(a),n=[],s=function(t,e,r,i,a){return Rl([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],!0,a)}(t,e,r,i,o);if(o.fill){const a=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===o.fillStyle?n.push(Hl([a],o)):n.push(Yl([a],o))}return o.stroke!==uh&&n.push(s),this._d("rectangle",n,o)}ellipse(t,e,r,i,a){const o=this._o(a),n=[],s=ql(r,i,o),l=zl(t,e,o,s);if(o.fill)if("solid"===o.fillStyle){const r=zl(t,e,o,s).opset;r.type="fillPath",n.push(r)}else n.push(Yl([l.estimatedPoints],o));return o.stroke!==uh&&n.push(l.opset),this._d("ellipse",n,o)}circle(t,e,r,i){const a=this.ellipse(t,e,r,r,i);return a.shape="circle",a}linearPath(t,e){const r=this._o(e);return this._d("linearPath",[Rl(t,!1,r)],r)}arc(t,e,r,i,a,o,n=!1,s){const l=this._o(s),h=[],c=Wl(t,e,r,i,a,o,n,!0,l);if(n&&l.fill)if("solid"===l.fillStyle){const n=Object.assign({},l);n.disableMultiStroke=!0;const s=Wl(t,e,r,i,a,o,!0,!1,n);s.type="fillPath",h.push(s)}else h.push(function(t,e,r,i,a,o,n){const s=t,l=e;let h=Math.abs(r/2),c=Math.abs(i/2);h+=Xl(.01*h,n),c+=Xl(.01*c,n);let d=a,u=o;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);const p=(u-d)/n.curveStepCount,g=[];for(let f=d;f<=u;f+=p)g.push([s+h*Math.cos(f),l+c*Math.sin(f)]);return g.push([s+h*Math.cos(u),l+c*Math.sin(u)]),g.push([s,l]),Yl([g],n)}(t,e,r,i,a,o,l));return l.stroke!==uh&&h.push(c),this._d("arc",h,l)}curve(t,e){const r=this._o(e),i=[],a=Nl(t,r);if(r.fill&&r.fill!==uh)if("solid"===r.fillStyle){const e=Nl(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],a=t;if(a.length){const t="number"==typeof a[0][0]?[a]:a;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...dh(ah([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...dh(ah(i),10,(1+r.roughness)/2))}e.length&&i.push(Yl([e],r))}return r.stroke!==uh&&i.push(a),this._d("curve",i,r)}polygon(t,e){const r=this._o(e),i=[],a=Rl(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(Hl([t],r)):i.push(Yl([t],r))),r.stroke!==uh&&i.push(a),this._d("polygon",i,r)}path(t,e){const r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=r.fill&&"transparent"!==r.fill&&r.fill!==uh,o=r.stroke!==uh,n=!!(r.simplification&&r.simplification<1),s=function(t,e,r){const i=$l(El(Al(t))),a=[];let o=[],n=[0,0],s=[];const l=()=>{s.length>=4&&o.push(...dh(s,1)),s=[]},h=()=>{l(),o.length&&(a.push(o),o=[])};for(const{key:d,data:u}of i)switch(d){case"M":h(),n=[u[0],u[1]],o.push(n);break;case"L":l(),o.push([u[0],u[1]]);break;case"C":if(!s.length){const t=o.length?o[o.length-1]:n;s.push([t[0],t[1]])}s.push([u[0],u[1]]),s.push([u[2],u[3]]),s.push([u[4],u[5]]);break;case"Z":l(),o.push([n[0],n[1]])}if(h(),!r)return a;const c=[];for(const d of a){const t=hh(d,r);t.length&&c.push(t)}return c}(t,0,n?4-4*(r.simplification||1):(1+r.roughness)/2),l=jl(t,r);if(a)if("solid"===r.fillStyle)if(1===s.length){const e=jl(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(Hl(s,r));else i.push(Yl(s,r));return o&&(n?s.forEach((t=>{i.push(Rl(t,!1,r))})):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map((t=>+t.toFixed(e))):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const a of e){let t=null;switch(a.type){case"path":t={d:this.opsToPath(a),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:uh};break;case"fillPath":t={d:this.opsToPath(a),stroke:uh,strokeWidth:0,fill:r.fill||uh};break;case"fillSketch":t=this.fillSketch(a,r)}t&&i.push(t)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||uh,strokeWidth:r,fill:uh}}_mergedShape(t){return t.filter(((t,e)=>0===e||"move"!==t.op))}}const gh="http://www.w3.org/2000/svg";class fh{constructor(t,e){this.svg=t,this.gen=new ph(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(gh,"g"),o=t.options.fixedDecimalPlaceDigits;for(const n of e){let e=null;switch(n.type){case"path":e=i.createElementNS(gh,"path"),e.setAttribute("d",this.opsToPath(n,o)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(gh,"path"),e.setAttribute("d",this.opsToPath(n,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,n,r)}e&&a.appendChild(e)}return a}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const a=t.createElementNS(gh,"path");return a.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,a){const o=this.gen.line(t,e,r,i,a);return this.draw(o)}rectangle(t,e,r,i,a){const o=this.gen.rectangle(t,e,r,i,a);return this.draw(o)}ellipse(t,e,r,i,a){const o=this.gen.ellipse(t,e,r,i,a);return this.draw(o)}circle(t,e,r,i){const a=this.gen.circle(t,e,r,i);return this.draw(a)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,a,o,n=!1,s){const l=this.gen.arc(t,e,r,i,a,o,n,s);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var mh=(t,e)=>new fh(t,e),yh=Fe((async(t,e,r)=>{var i,a;let o;const n=e.useHtmlLabels||Hr(null==(i=Ti())?void 0:i.htmlLabels);o=r||"node default";const s=t.insert("g").attr("class",o).attr("id",e.domId||e.id),l=s.insert("g").attr("class","label").attr("style",Js(e.labelStyle));let h;h=void 0===e.label?"":"string"==typeof e.label?e.label:e.label[0];const c=await ml(l,Pr(Zs(h),Ti()),{useHtmlLabels:n,width:e.width||(null==(a=Ti().flowchart)?void 0:a.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let d=c.getBBox();const u=((null==e?void 0:e.padding)??0)/2;if(n){const t=c.children[0],e=M(c),r=t.getElementsByTagName("img");if(r){const t=""===h.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((e=>new Promise((r=>{function i(){if(e.style.display="flex",e.style.flexDirection="column",t){const t=Ti().fontSize?Ti().fontSize:window.getComputedStyle(document.body).fontSize,r=5,[i=cr.fontSize]=Us(t),a=i*r+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";r(e)}Fe(i,"setupImage"),setTimeout((()=>{e.complete&&i()})),e.addEventListener("error",i),e.addEventListener("load",i)})))))}d=t.getBoundingClientRect(),e.attr("width",d.width),e.attr("height",d.height)}return n?l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):l.attr("transform","translate(0, "+-d.height/2+")"),e.centerLabel&&l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),l.insert("rect",":first-child"),{shapeSvg:s,bbox:d,halfPadding:u,label:l}}),"labelHelper"),xh=Fe((async(t,e,r)=>{var i,a,o,n,s,l;const h=r.useHtmlLabels||Hr(null==(a=null==(i=Ti())?void 0:i.flowchart)?void 0:a.htmlLabels),c=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),d=await ml(c,Pr(Zs(e),Ti()),{useHtmlLabels:h,width:r.width||(null==(n=null==(o=Ti())?void 0:o.flowchart)?void 0:n.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let u=d.getBBox();const p=r.padding/2;if(Hr(null==(l=null==(s=Ti())?void 0:s.flowchart)?void 0:l.htmlLabels)){const t=d.children[0],e=M(d);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}return h?c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):c.attr("transform","translate(0, "+-u.height/2+")"),r.centerLabel&&c.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:t,bbox:u,halfPadding:p,label:c}}),"insertLabel"),bh=Fe(((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height}),"updateNodeBounds"),Ch=Fe(((t,e)=>("handDrawn"===t.look?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")),"getNodeClasses");function kh(t){const e=t.map(((t,e)=>`${0===e?"M":"L"}${t.x},${t.y}`));return e.push("Z"),e.join(" ")}function wh(t,e,r,i,a,o){const n=[],s=r-t,l=i-e,h=s/o,c=2*Math.PI/h,d=e+l/2;for(let u=0;u<=50;u++){const e=t+u/50*s,r=d+a*Math.sin(c*(e-t));n.push({x:e,y:r})}return n}function Sh(t,e,r,i,a,o){const n=[],s=a*Math.PI/180,l=(o*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const i=s+h*l,a=t+r*Math.cos(i),o=e+r*Math.sin(i);n.push({x:-a,y:-o})}return n}Fe(kh,"createPathFromPoints"),Fe(wh,"generateFullSineWavePoints"),Fe(Sh,"generateCirclePoints");var vh=Fe(((t,e)=>{var r,i,a=t.x,o=t.y,n=e.x-a,s=e.y-o,l=t.width/2,h=t.height/2;return Math.abs(s)*l>Math.abs(n)*h?(s<0&&(h=-h),r=0===s?0:h*n/s,i=h):(n<0&&(l=-l),r=l,i=0===n?0:l*s/n),{x:a+r,y:o+i}}),"intersectRect");function Th(t,e){e&&t.attr("style",e)}async function Bh(t){const e=M(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div");let i=t.label;t.label&&Qr(t.label)&&(i=await ei(t.label.replace(ri.lineBreakRegex,"\n"),Ti()));const a=t.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+a+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),Th(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}Fe(Th,"applyStyle"),Fe(Bh,"addHtmlLabel");var Lh=Fe((async(t,e,r,i)=>{let a=t||"";if("object"==typeof a&&(a=a[0]),Hr(Ti().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),$e.info("vertexText"+a);const t={isNode:i,label:Zs(a).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e?e.replace("fill:","color:"):e};return await Bh(t)}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];i="string"==typeof a?a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?a:[];for(const e of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),r?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}}),"createLabel"),Mh=Fe(((t,e,r,i,a)=>["M",t+a,e,"H",t+r-a,"A",a,a,0,0,1,t+r,e+a,"V",e+i-a,"A",a,a,0,0,1,t+r-a,e+i,"H",t+a,"A",a,a,0,0,1,t,e+i-a,"V",e+a,"A",a,a,0,0,1,t+a,e,"Z"].join(" ")),"createRoundedRectPathD"),_h=Fe((t=>{const{handDrawnSeed:e}=Ti();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}}),"solidStateFill"),Fh=Fe((t=>{const e=Ah([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}}),"compileStyles"),Ah=Fe((t=>{const e=new Map;return t.forEach((t=>{const[r,i]=t.split(":");e.set(r.trim(),null==i?void 0:i.trim())})),e}),"styles2Map"),Eh=Fe((t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t),"isLabelStyle"),$h=Fe((t=>{const{stylesArray:e}=Fh(t),r=[],i=[],a=[],o=[];return e.forEach((t=>{const e=t[0];Eh(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&a.push(t.join(":")+" !important"),"fill"===e&&o.push(t.join(":")+" !important"))})),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:o}}),"styles2String"),Dh=Fe(((t,e)=>{var r;const{themeVariables:i,handDrawnSeed:a}=Ti(),{nodeBorder:o,mainBkg:n}=i,{stylesMap:s}=Fh(t);return Object.assign({roughness:.7,fill:s.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||o,seed:a,strokeWidth:(null==(r=s.get("stroke-width"))?void 0:r.replace("px",""))||1.3,fillLineDash:[0,0]},e)}),"userNodeOverrides"),Oh=Fe((async(t,e)=>{$e.info("Creating subgraph rect for ",e.id,e);const r=Ti(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:n}=i,{labelStyles:s,nodeStyles:l,borderStyles:h,backgroundStyles:c}=$h(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),u=Hr(r.flowchart.htmlLabels),p=d.insert("g").attr("class","cluster-label "),g=await ml(p,e.label,{style:e.labelStyle,useHtmlLabels:u,isNode:!0});let f=g.getBBox();if(Hr(r.flowchart.htmlLabels)){const t=g.children[0],e=M(g);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}const m=e.width<=f.width+e.padding?f.width+e.padding:e.width;e.width<=f.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,x=e.x-m/2,b=e.y-y/2;let C;if($e.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=mh(d),r=Dh(e,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:a}),i=t.path(Mh(x,b,m,y,0),r);C=d.insert((()=>($e.debug("Rough node insert CXC",i),i)),":first-child"),C.select("path:nth-child(2)").attr("style",h.join(";")),C.select("path").attr("style",c.join(";").replace("fill","stroke"))}else C=d.insert("rect",":first-child"),C.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",m).attr("height",y);const{subGraphTitleTopMargin:k}=Pn(r);if(p.attr("transform",`translate(${e.x-f.width/2}, ${e.y-e.height/2+k})`),s){const t=p.select("span");t&&t.attr("style",s)}const w=C.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=f.height-e.padding/2,e.intersect=function(t){return vh(e,t)},{cluster:d,labelBBox:f}}),"rect"),Ih=Fe(((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=r.insert("rect",":first-child"),a=0*e.padding,o=a/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");const n=i.node().getBBox();return e.width=n.width,e.height=n.height,e.intersect=function(t){return vh(e,t)},{cluster:r,labelBBox:{width:0,height:0}}}),"noteGroup"),Ph=Fe((async(t,e)=>{const r=Ti(),{themeVariables:i,handDrawnSeed:a}=r,{altBackground:o,compositeBackground:n,compositeTitleBackground:s,nodeBorder:l}=i,h=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),c=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label");let u=h.append("rect");const p=d.node().appendChild(await Lh(e.label,e.labelStyle,void 0,!0));let g=p.getBBox();if(Hr(r.flowchart.htmlLabels)){const t=p.children[0],e=M(p);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}const f=0*e.padding,m=f/2,y=(e.width<=g.width+e.padding?g.width+e.padding:e.width)+f;e.width<=g.width+e.padding?e.diff=(y-e.width)/2-e.padding:e.diff=-e.padding;const x=e.height+f,b=e.height+f-g.height-6,C=e.x-y/2,k=e.y-x/2;e.width=y;const w=e.y-e.height/2-m+g.height+2;let S;if("handDrawn"===e.look){const t=e.cssClasses.includes("statediagram-cluster-alt"),r=mh(h),i=e.rx||e.ry?r.path(Mh(C,k,y,x,10),{roughness:.7,fill:s,fillStyle:"solid",stroke:l,seed:a}):r.rectangle(C,k,y,x,{seed:a});S=h.insert((()=>i),":first-child");const c=r.rectangle(C,w,y,b,{fill:t?o:n,fillStyle:t?"hachure":"solid",stroke:l,seed:a});S=h.insert((()=>i),":first-child"),u=h.insert((()=>c))}else{S=c.insert("rect",":first-child");const t="outer";S.attr("class",t).attr("x",C).attr("y",k).attr("width",y).attr("height",x).attr("data-look",e.look),u.attr("class","inner").attr("x",C).attr("y",w).attr("width",y).attr("height",b)}d.attr("transform",`translate(${e.x-g.width/2}, ${k+1-(Hr(r.flowchart.htmlLabels)?0:3)})`);const v=S.node().getBBox();return e.height=v.height,e.offsetX=0,e.offsetY=g.height-e.padding/2,e.labelBBox=g,e.intersect=function(t){return vh(e,t)},{cluster:h,labelBBox:g}}),"roundedWithTitle"),Rh=Fe((async(t,e)=>{$e.info("Creating subgraph rect for ",e.id,e);const r=Ti(),{themeVariables:i,handDrawnSeed:a}=r,{clusterBkg:o,clusterBorder:n}=i,{labelStyles:s,nodeStyles:l,borderStyles:h,backgroundStyles:c}=$h(e),d=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),u=Hr(r.flowchart.htmlLabels),p=d.insert("g").attr("class","cluster-label "),g=await ml(p,e.label,{style:e.labelStyle,useHtmlLabels:u,isNode:!0,width:e.width});let f=g.getBBox();if(Hr(r.flowchart.htmlLabels)){const t=g.children[0],e=M(g);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}const m=e.width<=f.width+e.padding?f.width+e.padding:e.width;e.width<=f.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height,x=e.x-m/2,b=e.y-y/2;let C;if($e.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){const t=mh(d),r=Dh(e,{roughness:.7,fill:o,stroke:n,fillWeight:4,seed:a}),i=t.path(Mh(x,b,m,y,e.rx),r);C=d.insert((()=>($e.debug("Rough node insert CXC",i),i)),":first-child"),C.select("path:nth-child(2)").attr("style",h.join(";")),C.select("path").attr("style",c.join(";").replace("fill","stroke"))}else C=d.insert("rect",":first-child"),C.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",x).attr("y",b).attr("width",m).attr("height",y);const{subGraphTitleTopMargin:k}=Pn(r);if(p.attr("transform",`translate(${e.x-f.width/2}, ${e.y-e.height/2+k})`),s){const t=p.select("span");t&&t.attr("style",s)}const w=C.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=f.height-e.padding/2,e.intersect=function(t){return vh(e,t)},{cluster:d,labelBBox:f}}),"kanbanSection"),Nh={rect:Oh,squareRect:Oh,roundedWithTitle:Ph,noteGroup:Ih,divider:Fe(((t,e)=>{const r=Ti(),{themeVariables:i,handDrawnSeed:a}=r,{nodeBorder:o}=i,n=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),s=n.insert("g",":first-child"),l=0*e.padding,h=e.width+l;e.diff=-e.padding;const c=e.height+l,d=e.x-h/2,u=e.y-c/2;let p;if(e.width=h,"handDrawn"===e.look){const t=mh(n).rectangle(d,u,h,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:a});p=n.insert((()=>t),":first-child")}else{p=s.insert("rect",":first-child");const t="divider";p.attr("class",t).attr("x",d).attr("y",u).attr("width",h).attr("height",c).attr("data-look",e.look)}const g=p.node().getBBox();return e.height=g.height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return vh(e,t)},{cluster:n,labelBBox:{}}}),"divider"),kanbanSection:Rh},qh=new Map,zh=Fe((async(t,e)=>{const r=e.shape||"rect",i=await Nh[r](t,e);return qh.set(e.id,i),i}),"insertCluster"),Wh=Fe((()=>{qh=new Map}),"clear");function jh(t,e){return t.intersect(e)}Fe(jh,"intersectNode");var Hh=jh;function Yh(t,e,r,i){var a=t.x,o=t.y,n=a-i.x,s=o-i.y,l=Math.sqrt(e*e*s*s+r*r*n*n),h=Math.abs(e*r*n/l);i.x<a&&(h=-h);var c=Math.abs(e*r*s/l);return i.y<o&&(c=-c),{x:a+h,y:o+c}}Fe(Yh,"intersectEllipse");var Uh=Yh;function Vh(t,e,r){return Uh(t,e,e,r)}Fe(Vh,"intersectCircle");var Gh=Vh;function Xh(t,e,r,i){var a,o,n,s,l,h,c,d,u,p,g,f,m;if(a=e.y-t.y,n=t.x-e.x,l=e.x*t.y-t.x*e.y,u=a*r.x+n*r.y+l,p=a*i.x+n*i.y+l,!(0!==u&&0!==p&&Zh(u,p)||(o=i.y-r.y,s=r.x-i.x,h=i.x*r.y-r.x*i.y,c=o*t.x+s*t.y+h,d=o*e.x+s*e.y+h,0!==c&&0!==d&&Zh(c,d)||0==(g=a*s-o*n))))return f=Math.abs(g/2),{x:(m=n*h-s*l)<0?(m-f)/g:(m+f)/g,y:(m=o*l-a*h)<0?(m-f)/g:(m+f)/g}}function Zh(t,e){return t*e>0}Fe(Xh,"intersectLine"),Fe(Zh,"sameSign");var Kh=Xh;function Jh(t,e,r){let i=t.x,a=t.y,o=[],n=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){n=Math.min(n,t.x),s=Math.min(s,t.y)})):(n=Math.min(n,e.x),s=Math.min(s,e.y));let l=i-t.width/2-n,h=a-t.height/2-s;for(let c=0;c<e.length;c++){let i=e[c],a=e[c<e.length-1?c+1:0],n=Kh(t,r,{x:l+i.x,y:h+i.y},{x:l+a.x,y:h+a.y});n&&o.push(n)}return o.length?(o.length>1&&o.sort((function(t,e){let i=t.x-r.x,a=t.y-r.y,o=Math.sqrt(i*i+a*a),n=e.x-r.x,s=e.y-r.y,l=Math.sqrt(n*n+s*s);return o<l?-1:o===l?0:1})),o[0]):t}Fe(Jh,"intersectPolygon");var Qh={node:Hh,circle:Gh,ellipse:Uh,polygon:Jh,rect:vh};function tc(t,e){const{labelStyles:r}=$h(e);e.labelStyle=r;const i=Ch(e);let a=i;i||(a="anchor");const o=t.insert("g").attr("class",a).attr("id",e.domId||e.id),{cssStyles:n}=e,s=mh(o),l=Dh(e,{fill:"black",stroke:"none",fillStyle:"solid"});"handDrawn"!==e.look&&(l.roughness=0);const h=s.circle(0,0,2,l),c=o.insert((()=>h),":first-child");return c.attr("class","anchor").attr("style",Js(n)),bh(e,c),e.intersect=function(t){return $e.info("Circle intersect",e,1,t),Qh.circle(e,1,t)},o}function ec(t,e,r,i,a,o,n){const s=(t+r)/2,l=(e+i)/2,h=Math.atan2(i-e,r-t),c=(r-t)/2/a,d=(i-e)/2/o,u=Math.sqrt(c**2+d**2);if(u>1)throw new Error("The given radii are too small to create an arc between the points.");const p=Math.sqrt(1-u**2),g=s+p*o*Math.sin(h)*(n?-1:1),f=l-p*a*Math.cos(h)*(n?-1:1),m=Math.atan2((e-f)/o,(t-g)/a);let y=Math.atan2((i-f)/o,(r-g)/a)-m;n&&y<0&&(y+=2*Math.PI),!n&&y>0&&(y-=2*Math.PI);const x=[];for(let b=0;b<20;b++){const t=m+b/19*y,e=g+a*Math.cos(t),r=f+o*Math.sin(t);x.push({x:e,y:r})}return x}async function rc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=o.width+e.padding+20,s=o.height+e.padding,l=s/2,h=l/(2.5+s/50),{cssStyles:c}=e,d=[{x:n/2,y:-s/2},{x:-n/2,y:-s/2},...ec(-n/2,-s/2,-n/2,s/2,h,l,!1),{x:n/2,y:s/2},...ec(n/2,s/2,n/2,-s/2,h,l,!0)],u=mh(a),p=Dh(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=kh(d),f=u.path(g,p),m=a.insert((()=>f),":first-child");return m.attr("class","basic label-container"),c&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(${h/2}, 0)`),bh(e,m),e.intersect=function(t){return Qh.polygon(e,d,t)},a}function ic(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}async function ac(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=o.height+e.padding,s=o.width+e.padding+12,l=-n,h=[{x:12,y:l},{x:s,y:l},{x:s,y:0},{x:0,y:0},{x:0,y:l+12},{x:12,y:l}];let c;const{cssStyles:d}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=kh(h),o=t.path(i,r);c=a.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${n/2})`),d&&c.attr("style",d)}else c=ic(a,s,n,h);return i&&c.attr("style",i),bh(e,c),e.intersect=function(t){return Qh.polygon(e,h,t)},a}function oc(t,e){const{nodeStyles:r}=$h(e);e.label="";const i=t.insert("g").attr("class",Ch(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,o=Math.max(28,e.width??0),n=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],s=mh(i),l=Dh(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=kh(n),c=s.path(h,l),d=i.insert((()=>c),":first-child");return a&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",a),r&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(t){return Qh.polygon(e,n,t)},i}async function nc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,halfPadding:n}=await yh(t,e,Ch(e)),s=o.width/2+n;let l;const{cssStyles:h}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=t.circle(0,0,2*s,r);l=a.insert((()=>i),":first-child"),l.attr("class","basic label-container").attr("style",Js(h))}else l=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",s).attr("cx",0).attr("cy",0);return bh(e,l),e.intersect=function(t){return $e.info("Circle intersect",e,s,t),Qh.circle(e,s,t)},a}function sc(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=2*t;return`M ${-i/2*e},${i/2*r} L ${i/2*e},${-i/2*r}\n M ${i/2*e},${i/2*r} L ${-i/2*e},${-i/2*r}`}function lc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r,e.label="";const a=t.insert("g").attr("class",Ch(e)).attr("id",e.domId??e.id),o=Math.max(30,(null==e?void 0:e.width)??0),{cssStyles:n}=e,s=mh(a),l=Dh(e,{});"handDrawn"!==e.look&&(l.roughness=0,l.fillStyle="solid");const h=s.circle(0,0,2*o,l),c=sc(o),d=s.path(c,l),u=a.insert((()=>h),":first-child");return u.insert((()=>d)),n&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",n),i&&"handDrawn"!==e.look&&u.selectAll("path").attr("style",i),bh(e,u),e.intersect=function(t){$e.info("crossedCircle intersect",e,{radius:o,point:t});return Qh.circle(e,o,t)},a}function hc(t,e,r,i=100,a=0,o=180){const n=[],s=a*Math.PI/180,l=(o*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const i=s+h*l,a=t+r*Math.cos(i),o=e+r*Math.sin(i);n.push({x:-a,y:-o})}return n}async function cc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=o.width+(e.padding??0),l=o.height+(e.padding??0),h=Math.max(5,.1*l),{cssStyles:c}=e,d=[...hc(s/2,-l/2,h,30,-90,0),{x:-s/2-h,y:h},...hc(s/2+2*h,-h,h,20,-180,-270),...hc(s/2+2*h,h,h,20,-90,-180),{x:-s/2-h,y:-l/2},...hc(s/2,l/2,h,20,0,90)],u=[{x:s/2,y:-l/2-h},{x:-s/2,y:-l/2-h},...hc(s/2,-l/2,h,20,-90,0),{x:-s/2-h,y:-h},...hc(s/2+.1*s,-h,h,20,-180,-270),...hc(s/2+.1*s,h,h,20,-90,-180),{x:-s/2-h,y:l/2},...hc(s/2,l/2,h,20,0,90),{x:-s/2,y:l/2+h},{x:s/2,y:l/2+h}],p=mh(a),g=Dh(e,{fill:"none"});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=kh(d).replace("Z",""),m=p.path(f,g),y=kh(u),x=p.path(y,{...g}),b=a.insert("g",":first-child");return b.insert((()=>x),":first-child").attr("stroke-opacity",0),b.insert((()=>m),":first-child"),b.attr("class","text"),c&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${h}, 0)`),n.attr("transform",`translate(${-s/2+h-(o.x-(o.left??0))},${-l/2+(e.padding??0)/2-(o.y-(o.top??0))})`),bh(e,b),e.intersect=function(t){return Qh.polygon(e,u,t)},a}function dc(t,e,r,i=100,a=0,o=180){const n=[],s=a*Math.PI/180,l=(o*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const i=s+h*l,a=t+r*Math.cos(i),o=e+r*Math.sin(i);n.push({x:a,y:o})}return n}async function uc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=o.width+(e.padding??0),l=o.height+(e.padding??0),h=Math.max(5,.1*l),{cssStyles:c}=e,d=[...dc(s/2,-l/2,h,20,-90,0),{x:s/2+h,y:-h},...dc(s/2+2*h,-h,h,20,-180,-270),...dc(s/2+2*h,h,h,20,-90,-180),{x:s/2+h,y:l/2},...dc(s/2,l/2,h,20,0,90)],u=[{x:-s/2,y:-l/2-h},{x:s/2,y:-l/2-h},...dc(s/2,-l/2,h,20,-90,0),{x:s/2+h,y:-h},...dc(s/2+2*h,-h,h,20,-180,-270),...dc(s/2+2*h,h,h,20,-90,-180),{x:s/2+h,y:l/2},...dc(s/2,l/2,h,20,0,90),{x:s/2,y:l/2+h},{x:-s/2,y:l/2+h}],p=mh(a),g=Dh(e,{fill:"none"});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=kh(d).replace("Z",""),m=p.path(f,g),y=kh(u),x=p.path(y,{...g}),b=a.insert("g",":first-child");return b.insert((()=>x),":first-child").attr("stroke-opacity",0),b.insert((()=>m),":first-child"),b.attr("class","text"),c&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(${-h}, 0)`),n.attr("transform",`translate(${-s/2+(e.padding??0)/2-(o.x-(o.left??0))},${-l/2+(e.padding??0)/2-(o.y-(o.top??0))})`),bh(e,b),e.intersect=function(t){return Qh.polygon(e,u,t)},a}function pc(t,e,r,i=100,a=0,o=180){const n=[],s=a*Math.PI/180,l=(o*Math.PI/180-s)/(i-1);for(let h=0;h<i;h++){const i=s+h*l,a=t+r*Math.cos(i),o=e+r*Math.sin(i);n.push({x:-a,y:-o})}return n}async function gc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=o.width+(e.padding??0),l=o.height+(e.padding??0),h=Math.max(5,.1*l),{cssStyles:c}=e,d=[...pc(s/2,-l/2,h,30,-90,0),{x:-s/2-h,y:h},...pc(s/2+2*h,-h,h,20,-180,-270),...pc(s/2+2*h,h,h,20,-90,-180),{x:-s/2-h,y:-l/2},...pc(s/2,l/2,h,20,0,90)],u=[...pc(-s/2+h+h/2,-l/2,h,20,-90,-180),{x:s/2-h/2,y:h},...pc(-s/2-h/2,-h,h,20,0,90),...pc(-s/2-h/2,h,h,20,-90,0),{x:s/2-h/2,y:-h},...pc(-s/2+h+h/2,l/2,h,30,-180,-270)],p=[{x:s/2,y:-l/2-h},{x:-s/2,y:-l/2-h},...pc(s/2,-l/2,h,20,-90,0),{x:-s/2-h,y:-h},...pc(s/2+2*h,-h,h,20,-180,-270),...pc(s/2+2*h,h,h,20,-90,-180),{x:-s/2-h,y:l/2},...pc(s/2,l/2,h,20,0,90),{x:-s/2,y:l/2+h},{x:s/2-h-h/2,y:l/2+h},...pc(-s/2+h+h/2,-l/2,h,20,-90,-180),{x:s/2-h/2,y:h},...pc(-s/2-h/2,-h,h,20,0,90),...pc(-s/2-h/2,h,h,20,-90,0),{x:s/2-h/2,y:-h},...pc(-s/2+h+h/2,l/2,h,30,-180,-270)],g=mh(a),f=Dh(e,{fill:"none"});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const m=kh(d).replace("Z",""),y=g.path(m,f),x=kh(u).replace("Z",""),b=g.path(x,f),C=kh(p),k=g.path(C,{...f}),w=a.insert("g",":first-child");return w.insert((()=>k),":first-child").attr("stroke-opacity",0),w.insert((()=>y),":first-child"),w.insert((()=>b),":first-child"),w.attr("class","text"),c&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",c),i&&"handDrawn"!==e.look&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${h-h/4}, 0)`),n.attr("transform",`translate(${-s/2+(e.padding??0)/2-(o.x-(o.left??0))},${-l/2+(e.padding??0)/2-(o.y-(o.top??0))})`),bh(e,w),e.intersect=function(t){return Qh.polygon(e,p,t)},a}async function fc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(80,1.25*(o.width+2*(e.padding??0)),(null==e?void 0:e.width)??0),s=Math.max(20,o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=s/2,{cssStyles:h}=e,c=mh(a),d=Dh(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=n-l,p=s/4,g=[{x:u,y:0},{x:p,y:0},{x:0,y:s/2},{x:p,y:s},{x:u,y:s},...Sh(-u,-s/2,l,50,270,90)],f=kh(g),m=c.path(f,d),y=a.insert((()=>m),":first-child");return y.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",i),y.attr("transform",`translate(${-n/2}, ${-s/2})`),bh(e,y),e.intersect=function(t){return Qh.polygon(e,g,t)},a}Fe(tc,"anchor"),Fe(ec,"generateArcPoints"),Fe(rc,"bowTieRect"),Fe(ic,"insertPolygonShape"),Fe(ac,"card"),Fe(oc,"choice"),Fe(nc,"circle"),Fe(sc,"createLine"),Fe(lc,"crossedCircle"),Fe(hc,"generateCirclePoints"),Fe(cc,"curlyBraceLeft"),Fe(dc,"generateCirclePoints"),Fe(uc,"curlyBraceRight"),Fe(pc,"generateCirclePoints"),Fe(gc,"curlyBraces"),Fe(fc,"curvedTrapezoid");var mc=Fe(((t,e,r,i,a,o)=>[`M${t},${e+o}`,`a${a},${o} 0,0,0 ${r},0`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,"l0,"+-i].join(" ")),"createCylinderPathD"),yc=Fe(((t,e,r,i,a,o)=>[`M${t},${e+o}`,`M${t+r},${e+o}`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,"l0,"+-i].join(" ")),"createOuterCylinderPathD"),xc=Fe(((t,e,r,i,a,o)=>[`M${t-r/2},${-i/2}`,`a${a},${o} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function bc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+e.padding,e.width??0),l=s/2,h=l/(2.5+s/50),c=Math.max(o.height+h+e.padding,e.height??0);let d;const{cssStyles:u}=e;if("handDrawn"===e.look){const t=mh(a),r=yc(0,0,s,c,l,h),i=xc(0,h,s,c,l,h),o=t.path(r,Dh(e,{})),n=t.path(i,Dh(e,{fill:"none"}));d=a.insert((()=>n),":first-child"),d=a.insert((()=>o),":first-child"),d.attr("class","basic label-container"),u&&d.attr("style",u)}else{const t=mc(0,0,s,c,l,h);d=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Js(u)).attr("style",i)}return d.attr("label-offset-y",h),d.attr("transform",`translate(${-s/2}, ${-(c/2+h)})`),bh(e,d),n.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-o.height/2+(e.padding??0)/1.5-(o.y-(o.top??0))})`),e.intersect=function(t){const r=Qh.rect(e,t),i=r.x-(e.x??0);if(0!=l&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-h)){let a=h*h*(1-i*i/(l*l));a>0&&(a=Math.sqrt(a)),a=h-a,t.y-(e.y??0)>0&&(a=-a),r.y+=a}return r},a}async function Cc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=o.width+e.padding,l=o.height+e.padding,h=.2*l,c=-s/2,d=-l/2-h/2,{cssStyles:u}=e,p=mh(a),g=Dh(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:c,y:d+h},{x:-c,y:d+h},{x:-c,y:-d},{x:c,y:-d},{x:c,y:d},{x:-c,y:d},{x:-c,y:d+h}],m=p.polygon(f.map((t=>[t.x,t.y])),g),y=a.insert((()=>m),":first-child");return y.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),n.attr("transform",`translate(${c+(e.padding??0)/2-(o.x-(o.left??0))}, ${d+h+(e.padding??0)/2-(o.y-(o.top??0))})`),bh(e,y),e.intersect=function(t){return Qh.rect(e,t)},a}async function kc(t,e){var r,i;const{labelStyles:a,nodeStyles:o}=$h(e);e.labelStyle=a;const{shapeSvg:n,bbox:s,halfPadding:l}=await yh(t,e,Ch(e)),h=s.width/2+l+5,c=s.width/2+l;let d;const{cssStyles:u}=e;if("handDrawn"===e.look){const t=mh(n),a=Dh(e,{roughness:.2,strokeWidth:2.5}),o=Dh(e,{roughness:.2,strokeWidth:1.5}),s=t.circle(0,0,2*h,a),l=t.circle(0,0,2*c,o);d=n.insert("g",":first-child"),d.attr("class",Js(e.cssClasses)).attr("style",Js(u)),null==(r=d.node())||r.appendChild(s),null==(i=d.node())||i.appendChild(l)}else{d=n.insert("g",":first-child");const t=d.insert("circle",":first-child"),e=d.insert("circle");d.attr("class","basic label-container").attr("style",o),t.attr("class","outer-circle").attr("style",o).attr("r",h).attr("cx",0).attr("cy",0),e.attr("class","inner-circle").attr("style",o).attr("r",c).attr("cx",0).attr("cy",0)}return bh(e,d),e.intersect=function(t){return $e.info("DoubleCircle intersect",e,h,t),Qh.circle(e,h,t)},n}function wc(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=$h(e);e.label="",e.labelStyle=i;const o=t.insert("g").attr("class",Ch(e)).attr("id",e.domId??e.id),{cssStyles:n}=e,s=mh(o),{nodeBorder:l}=r,h=Dh(e,{fillStyle:"solid"});"handDrawn"!==e.look&&(h.roughness=0);const c=s.circle(0,0,14,h),d=o.insert((()=>c),":first-child");return d.selectAll("path").attr("style",`fill: ${l} !important;`),n&&n.length>0&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",n),a&&"handDrawn"!==e.look&&d.selectAll("path").attr("style",a),bh(e,d),e.intersect=function(t){$e.info("filledCircle intersect",e,{radius:7,point:t});return Qh.circle(e,7,t)},o}async function Sc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=o.width+(e.padding??0),l=s+o.height,h=s+o.height,c=[{x:0,y:-l},{x:h,y:-l},{x:h/2,y:0}],{cssStyles:d}=e,u=mh(a),p=Dh(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=kh(c),f=u.path(g,p),m=a.insert((()=>f),":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return d&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectChildren("path").attr("style",i),e.width=s,e.height=l,bh(e,m),n.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-l/2+(e.padding??0)/2+(o.y-(o.top??0))})`),e.intersect=function(t){return $e.info("Triangle intersect",e,c,t),Qh.polygon(e,c,t)},a}function vc(t,e,{dir:r,config:{state:i,themeVariables:a}}){const{nodeStyles:o}=$h(e);e.label="";const n=t.insert("g").attr("class",Ch(e)).attr("id",e.domId??e.id),{cssStyles:s}=e;let l=Math.max(70,(null==e?void 0:e.width)??0),h=Math.max(10,(null==e?void 0:e.height)??0);"LR"===r&&(l=Math.max(10,(null==e?void 0:e.width)??0),h=Math.max(70,(null==e?void 0:e.height)??0));const c=-1*l/2,d=-1*h/2,u=mh(n),p=Dh(e,{stroke:a.lineColor,fill:a.lineColor});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=u.rectangle(c,d,l,h,p),f=n.insert((()=>g),":first-child");s&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",s),o&&"handDrawn"!==e.look&&f.selectAll("path").attr("style",o),bh(e,f);const m=(null==i?void 0:i.padding)??0;return e.width&&e.height&&(e.width+=m/2||0,e.height+=m/2||0),e.intersect=function(t){return Qh.rect(e,t)},n}async function Tc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(80,o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(50,o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=s/2,{cssStyles:h}=e,c=mh(a),d=Dh(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=[{x:-n/2,y:-s/2},{x:n/2-l,y:-s/2},...Sh(-n/2+l,0,l,50,90,270),{x:n/2-l,y:s/2},{x:-n/2,y:s/2}],p=kh(u),g=c.path(p,d),f=a.insert((()=>g),":first-child");return f.attr("class","basic label-container"),h&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",h),i&&"handDrawn"!==e.look&&f.selectChildren("path").attr("style",i),bh(e,f),e.intersect=function(t){$e.info("Pill intersect",e,{radius:l,point:t});return Qh.polygon(e,u,t)},a}Fe(bc,"cylinder"),Fe(Cc,"dividedRectangle"),Fe(kc,"doublecircle"),Fe(wc,"filledCircle"),Fe(Sc,"flippedTriangle"),Fe(vc,"forkJoin"),Fe(Tc,"halfRoundedRectangle");var Bc=Fe(((t,e,r,i,a)=>[`M${t+a},${e}`,`L${t+r-a},${e}`,`L${t+r},${e-i/2}`,`L${t+r-a},${e-i}`,`L${t+a},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" ")),"createHexagonPathD");async function Lc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=o.height+e.padding,s=n/4,l=o.width+2*s+e.padding,h=[{x:s,y:0},{x:l-s,y:0},{x:l,y:-n/2},{x:l-s,y:-n},{x:s,y:-n},{x:0,y:-n/2}];let c;const{cssStyles:d}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=Bc(0,0,l,n,s),o=t.path(i,r);c=a.insert((()=>o),":first-child").attr("transform",`translate(${-l/2}, ${n/2})`),d&&c.attr("style",d)}else c=ic(a,l,n,h);return i&&c.attr("style",i),e.width=l,e.height=n,bh(e,c),e.intersect=function(t){return Qh.polygon(e,h,t)},a}async function Mc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.label="",e.labelStyle=r;const{shapeSvg:a}=await yh(t,e,Ch(e)),o=Math.max(30,(null==e?void 0:e.width)??0),n=Math.max(30,(null==e?void 0:e.height)??0),{cssStyles:s}=e,l=mh(a),h=Dh(e,{});"handDrawn"!==e.look&&(h.roughness=0,h.fillStyle="solid");const c=[{x:0,y:0},{x:o,y:0},{x:0,y:n},{x:o,y:n}],d=kh(c),u=l.path(d,h),p=a.insert((()=>u),":first-child");return p.attr("class","basic label-container"),s&&"handDrawn"!==e.look&&p.selectChildren("path").attr("style",s),i&&"handDrawn"!==e.look&&p.selectChildren("path").attr("style",i),p.attr("transform",`translate(${-o/2}, ${-n/2})`),bh(e,p),e.intersect=function(t){$e.info("Pill intersect",e,{points:c});return Qh.polygon(e,c,t)},a}async function _c(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=$h(e);e.labelStyle=a;const o=e.assetHeight??48,n=e.assetWidth??48,s=Math.max(o,n),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,label:d}=await yh(t,e,"icon-shape default"),u="t"===e.pos,p=s,g=s,{nodeBorder:f}=r,{stylesMap:m}=Fh(e),y=-g/2,x=-p/2,b=e.label?8:0,C=mh(h),k=Dh(e,{stroke:"none",fill:"none"});"handDrawn"!==e.look&&(k.roughness=0,k.fillStyle="solid");const w=C.rectangle(y,x,g,p,k),S=Math.max(g,c.width),v=p+c.height+b,T=C.rectangle(-S/2,-v/2,S,v,{...k,fill:"transparent",stroke:"none"}),B=h.insert((()=>w),":first-child"),L=h.insert((()=>T));if(e.icon){const t=h.append("g");t.html(`<g>${await ls(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,n=r.y;t.attr("transform",`translate(${-i/2-o},${u?c.height/2+b/2-a/2-n:-c.height/2-b/2-a/2-n})`),t.attr("style",`color: ${m.get("stroke")??f};`)}return d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${u?-v/2:v/2-c.height})`),B.attr("transform",`translate(0,${u?c.height/2+b/2:-c.height/2-b/2})`),bh(e,L),e.intersect=function(t){if($e.info("iconSquare intersect",e,t),!e.label)return Qh.rect(e,t);const r=e.x??0,i=e.y??0,a=e.height??0;let o=[];o=u?[{x:r-c.width/2,y:i-a/2},{x:r+c.width/2,y:i-a/2},{x:r+c.width/2,y:i-a/2+c.height+b},{x:r+g/2,y:i-a/2+c.height+b},{x:r+g/2,y:i+a/2},{x:r-g/2,y:i+a/2},{x:r-g/2,y:i-a/2+c.height+b},{x:r-c.width/2,y:i-a/2+c.height+b}]:[{x:r-g/2,y:i-a/2},{x:r+g/2,y:i-a/2},{x:r+g/2,y:i-a/2+p},{x:r+c.width/2,y:i-a/2+p},{x:r+c.width/2/2,y:i+a/2},{x:r-c.width/2,y:i+a/2},{x:r-c.width/2,y:i-a/2+p},{x:r-g/2,y:i-a/2+p}];return Qh.polygon(e,o,t)},h}async function Fc(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=$h(e);e.labelStyle=a;const o=e.assetHeight??48,n=e.assetWidth??48,s=Math.max(o,n),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,label:d}=await yh(t,e,"icon-shape default"),u=e.label?8:0,p="t"===e.pos,{nodeBorder:g,mainBkg:f}=r,{stylesMap:m}=Fh(e),y=mh(h),x=Dh(e,{});"handDrawn"!==e.look&&(x.roughness=0,x.fillStyle="solid");const b=m.get("fill");x.stroke=b??f;const C=h.append("g");e.icon&&C.html(`<g>${await ls(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const k=C.node().getBBox(),w=k.width,S=k.height,v=k.x,T=k.y,B=Math.max(w,S)*Math.SQRT2+40,L=y.circle(0,0,B,x),M=Math.max(B,c.width),_=B+c.height+u,F=y.rectangle(-M/2,-_/2,M,_,{...x,fill:"transparent",stroke:"none"}),A=h.insert((()=>L),":first-child"),E=h.insert((()=>F));return C.attr("transform",`translate(${-w/2-v},${p?c.height/2+u/2-S/2-T:-c.height/2-u/2-S/2-T})`),C.attr("style",`color: ${m.get("stroke")??g};`),d.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-_/2:_/2-c.height})`),A.attr("transform",`translate(0,${p?c.height/2+u/2:-c.height/2-u/2})`),bh(e,E),e.intersect=function(t){$e.info("iconSquare intersect",e,t);return Qh.rect(e,t)},h}async function Ac(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=$h(e);e.labelStyle=a;const o=e.assetHeight??48,n=e.assetWidth??48,s=Math.max(o,n),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:u}=await yh(t,e,"icon-shape default"),p="t"===e.pos,g=s+2*d,f=s+2*d,{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=Fh(e),b=-f/2,C=-g/2,k=e.label?8:0,w=mh(h),S=Dh(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const v=x.get("fill");S.stroke=v??y;const T=w.path(Mh(b,C,f,g,5),S),B=Math.max(f,c.width),L=g+c.height+k,M=w.rectangle(-B/2,-L/2,B,L,{...S,fill:"transparent",stroke:"none"}),_=h.insert((()=>T),":first-child").attr("class","icon-shape2"),F=h.insert((()=>M));if(e.icon){const t=h.append("g");t.html(`<g>${await ls(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,n=r.y;t.attr("transform",`translate(${-i/2-o},${p?c.height/2+k/2-a/2-n:-c.height/2-k/2-a/2-n})`),t.attr("style",`color: ${x.get("stroke")??m};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-L/2:L/2-c.height})`),_.attr("transform",`translate(0,${p?c.height/2+k/2:-c.height/2-k/2})`),bh(e,F),e.intersect=function(t){if($e.info("iconSquare intersect",e,t),!e.label)return Qh.rect(e,t);const r=e.x??0,i=e.y??0,a=e.height??0;let o=[];o=p?[{x:r-c.width/2,y:i-a/2},{x:r+c.width/2,y:i-a/2},{x:r+c.width/2,y:i-a/2+c.height+k},{x:r+f/2,y:i-a/2+c.height+k},{x:r+f/2,y:i+a/2},{x:r-f/2,y:i+a/2},{x:r-f/2,y:i-a/2+c.height+k},{x:r-c.width/2,y:i-a/2+c.height+k}]:[{x:r-f/2,y:i-a/2},{x:r+f/2,y:i-a/2},{x:r+f/2,y:i-a/2+g},{x:r+c.width/2,y:i-a/2+g},{x:r+c.width/2/2,y:i+a/2},{x:r-c.width/2,y:i+a/2},{x:r-c.width/2,y:i-a/2+g},{x:r-f/2,y:i-a/2+g}];return Qh.polygon(e,o,t)},h}async function Ec(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:a}=$h(e);e.labelStyle=a;const o=e.assetHeight??48,n=e.assetWidth??48,s=Math.max(o,n),l=null==i?void 0:i.wrappingWidth;e.width=Math.max(s,l??0);const{shapeSvg:h,bbox:c,halfPadding:d,label:u}=await yh(t,e,"icon-shape default"),p="t"===e.pos,g=s+2*d,f=s+2*d,{nodeBorder:m,mainBkg:y}=r,{stylesMap:x}=Fh(e),b=-f/2,C=-g/2,k=e.label?8:0,w=mh(h),S=Dh(e,{});"handDrawn"!==e.look&&(S.roughness=0,S.fillStyle="solid");const v=x.get("fill");S.stroke=v??y;const T=w.path(Mh(b,C,f,g,.1),S),B=Math.max(f,c.width),L=g+c.height+k,M=w.rectangle(-B/2,-L/2,B,L,{...S,fill:"transparent",stroke:"none"}),_=h.insert((()=>T),":first-child"),F=h.insert((()=>M));if(e.icon){const t=h.append("g");t.html(`<g>${await ls(e.icon,{height:s,width:s,fallbackPrefix:""})}</g>`);const r=t.node().getBBox(),i=r.width,a=r.height,o=r.x,n=r.y;t.attr("transform",`translate(${-i/2-o},${p?c.height/2+k/2-a/2-n:-c.height/2-k/2-a/2-n})`),t.attr("style",`color: ${x.get("stroke")??m};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-L/2:L/2-c.height})`),_.attr("transform",`translate(0,${p?c.height/2+k/2:-c.height/2-k/2})`),bh(e,F),e.intersect=function(t){if($e.info("iconSquare intersect",e,t),!e.label)return Qh.rect(e,t);const r=e.x??0,i=e.y??0,a=e.height??0;let o=[];o=p?[{x:r-c.width/2,y:i-a/2},{x:r+c.width/2,y:i-a/2},{x:r+c.width/2,y:i-a/2+c.height+k},{x:r+f/2,y:i-a/2+c.height+k},{x:r+f/2,y:i+a/2},{x:r-f/2,y:i+a/2},{x:r-f/2,y:i-a/2+c.height+k},{x:r-c.width/2,y:i-a/2+c.height+k}]:[{x:r-f/2,y:i-a/2},{x:r+f/2,y:i-a/2},{x:r+f/2,y:i-a/2+g},{x:r+c.width/2,y:i-a/2+g},{x:r+c.width/2/2,y:i+a/2},{x:r-c.width/2,y:i+a/2},{x:r-c.width/2,y:i-a/2+g},{x:r-f/2,y:i-a/2+g}];return Qh.polygon(e,o,t)},h}async function $c(t,e,{config:{flowchart:r}}){const i=new Image;i.src=(null==e?void 0:e.img)??"",await i.decode();const a=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/o;const{labelStyles:n}=$h(e);e.labelStyle=n;const s=null==r?void 0:r.wrappingWidth;e.defaultWidth=null==r?void 0:r.wrappingWidth;const l=Math.max(e.label?s??0:0,(null==e?void 0:e.assetWidth)??a),h="on"===e.constraint&&(null==e?void 0:e.assetHeight)?e.assetHeight*e.imageAspectRatio:l,c="on"===e.constraint?h/e.imageAspectRatio:(null==e?void 0:e.assetHeight)??o;e.width=Math.max(h,s??0);const{shapeSvg:d,bbox:u,label:p}=await yh(t,e,"image-shape default"),g="t"===e.pos,f=-h/2,m=-c/2,y=e.label?8:0,x=mh(d),b=Dh(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const C=x.rectangle(f,m,h,c,b),k=Math.max(h,u.width),w=c+u.height+y,S=x.rectangle(-k/2,-w/2,k,w,{...b,fill:"none",stroke:"none"}),v=d.insert((()=>C),":first-child"),T=d.insert((()=>S));if(e.img){const t=d.append("image");t.attr("href",e.img),t.attr("width",h),t.attr("height",c),t.attr("preserveAspectRatio","none"),t.attr("transform",`translate(${-h/2},${g?w/2-c:-w/2})`)}return p.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${g?-c/2-u.height/2-y/2:c/2-u.height/2+y/2})`),v.attr("transform",`translate(0,${g?u.height/2+y/2:-u.height/2-y/2})`),bh(e,T),e.intersect=function(t){if($e.info("iconSquare intersect",e,t),!e.label)return Qh.rect(e,t);const r=e.x??0,i=e.y??0,a=e.height??0;let o=[];o=g?[{x:r-u.width/2,y:i-a/2},{x:r+u.width/2,y:i-a/2},{x:r+u.width/2,y:i-a/2+u.height+y},{x:r+h/2,y:i-a/2+u.height+y},{x:r+h/2,y:i+a/2},{x:r-h/2,y:i+a/2},{x:r-h/2,y:i-a/2+u.height+y},{x:r-u.width/2,y:i-a/2+u.height+y}]:[{x:r-h/2,y:i-a/2},{x:r+h/2,y:i-a/2},{x:r+h/2,y:i-a/2+c},{x:r+u.width/2,y:i-a/2+c},{x:r+u.width/2/2,y:i+a/2},{x:r-u.width/2,y:i+a/2},{x:r-u.width/2,y:i-a/2+c},{x:r-h/2,y:i-a/2+c}];return Qh.polygon(e,o,t)},d}async function Dc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=[{x:0,y:0},{x:n,y:0},{x:n+3*s/6,y:-s},{x:-3*s/6,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=kh(l),o=t.path(i,r);h=a.insert((()=>o),":first-child").attr("transform",`translate(${-n/2}, ${s/2})`),c&&h.attr("style",c)}else h=ic(a,n,s,l);return i&&h.attr("style",i),e.width=n,e.height=s,bh(e,h),e.intersect=function(t){return Qh.polygon(e,l,t)},a}async function Oc(t,e,r){const{labelStyles:i,nodeStyles:a}=$h(e);e.labelStyle=i;const{shapeSvg:o,bbox:n}=await yh(t,e,Ch(e)),s=Math.max(n.width+2*r.labelPaddingX,(null==e?void 0:e.width)||0),l=Math.max(n.height+2*r.labelPaddingY,(null==e?void 0:e.height)||0),h=-s/2,c=-l/2;let d,{rx:u,ry:p}=e;const{cssStyles:g}=e;if((null==r?void 0:r.rx)&&r.ry&&(u=r.rx,p=r.ry),"handDrawn"===e.look){const t=mh(o),r=Dh(e,{}),i=u||p?t.path(Mh(h,c,s,l,u||0),r):t.rectangle(h,c,s,l,r);d=o.insert((()=>i),":first-child"),d.attr("class","basic label-container").attr("style",Js(g))}else d=o.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",a).attr("rx",Js(u)).attr("ry",Js(p)).attr("x",h).attr("y",c).attr("width",s).attr("height",l);return bh(e,d),e.intersect=function(t){return Qh.rect(e,t)},o}async function Ic(t,e){const{shapeSvg:r,bbox:i,label:a}=await yh(t,e,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),a.attr("transform",`translate(${-i.width/2-(i.x-(i.left??0))}, ${-i.height/2-(i.y-(i.top??0))})`),bh(e,o),e.intersect=function(t){return Qh.rect(e,t)},r}async function Pc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(o.width+(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(o.height+(e.padding??0),(null==e?void 0:e.height)??0),l=[{x:0,y:0},{x:n+3*s/6,y:0},{x:n,y:-s},{x:-3*s/6,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=kh(l),o=t.path(i,r);h=a.insert((()=>o),":first-child").attr("transform",`translate(${-n/2}, ${s/2})`),c&&h.attr("style",c)}else h=ic(a,n,s,l);return i&&h.attr("style",i),e.width=n,e.height=s,bh(e,h),e.intersect=function(t){return Qh.polygon(e,l,t)},a}async function Rc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(o.width+(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(o.height+(e.padding??0),(null==e?void 0:e.height)??0),l=[{x:-3*s/6,y:0},{x:n,y:0},{x:n+3*s/6,y:-s},{x:0,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=kh(l),o=t.path(i,r);h=a.insert((()=>o),":first-child").attr("transform",`translate(${-n/2}, ${s/2})`),c&&h.attr("style",c)}else h=ic(a,n,s,l);return i&&h.attr("style",i),e.width=n,e.height=s,bh(e,h),e.intersect=function(t){return Qh.polygon(e,l,t)},a}function Nc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.label="",e.labelStyle=r;const a=t.insert("g").attr("class",Ch(e)).attr("id",e.domId??e.id),{cssStyles:o}=e,n=Math.max(35,(null==e?void 0:e.width)??0),s=Math.max(35,(null==e?void 0:e.height)??0),l=[{x:n,y:0},{x:0,y:s+3.5},{x:n-14,y:s+3.5},{x:0,y:2*s},{x:n,y:s-3.5},{x:14,y:s-3.5}],h=mh(a),c=Dh(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");const d=kh(l),u=h.path(d,c),p=a.insert((()=>u),":first-child");return o&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",o),i&&"handDrawn"!==e.look&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${n/2},${-s})`),bh(e,p),e.intersect=function(t){$e.info("lightningBolt intersect",e,t);return Qh.polygon(e,l,t)},a}Fe(Lc,"hexagon"),Fe(Mc,"hourglass"),Fe(_c,"icon"),Fe(Fc,"iconCircle"),Fe(Ac,"iconRounded"),Fe(Ec,"iconSquare"),Fe($c,"imageSquare"),Fe(Dc,"inv_trapezoid"),Fe(Oc,"drawRect"),Fe(Ic,"labelRect"),Fe(Pc,"lean_left"),Fe(Rc,"lean_right"),Fe(Nc,"lightningBolt");var qc=Fe(((t,e,r,i,a,o,n)=>[`M${t},${e+o}`,`a${a},${o} 0,0,0 ${r},0`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+o+n}`,`a${a},${o} 0,0,0 ${r},0`].join(" ")),"createCylinderPathD"),zc=Fe(((t,e,r,i,a,o,n)=>[`M${t},${e+o}`,`M${t+r},${e+o}`,`a${a},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${o} 0,0,0 ${r},0`,"l0,"+-i,`M${t},${e+o+n}`,`a${a},${o} 0,0,0 ${r},0`].join(" ")),"createOuterCylinderPathD"),Wc=Fe(((t,e,r,i,a,o)=>[`M${t-r/2},${-i/2}`,`a${a},${o} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function jc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+(e.padding??0),e.width??0),l=s/2,h=l/(2.5+s/50),c=Math.max(o.height+h+(e.padding??0),e.height??0),d=.1*c;let u;const{cssStyles:p}=e;if("handDrawn"===e.look){const t=mh(a),r=zc(0,0,s,c,l,h,d),i=Wc(0,h,s,c,l,h),o=Dh(e,{}),n=t.path(r,o),g=t.path(i,o);a.insert((()=>g),":first-child").attr("class","line"),u=a.insert((()=>n),":first-child"),u.attr("class","basic label-container"),p&&u.attr("style",p)}else{const t=qc(0,0,s,c,l,h,d);u=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Js(p)).attr("style",i)}return u.attr("label-offset-y",h),u.attr("transform",`translate(${-s/2}, ${-(c/2+h)})`),bh(e,u),n.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-o.height/2+h-(o.y-(o.top??0))})`),e.intersect=function(t){const r=Qh.rect(e,t),i=r.x-(e.x??0);if(0!=l&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-h)){let a=h*h*(1-i*i/(l*l));a>0&&(a=Math.sqrt(a)),a=h-a,t.y-(e.y??0)>0&&(a=-a),r.y+=a}return r},a}async function Hc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/4,c=l+h,{cssStyles:d}=e,u=mh(a),p=Dh(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-s/2-s/2*.1,y:-c/2},{x:-s/2-s/2*.1,y:c/2},...wh(-s/2-s/2*.1,c/2,s/2+s/2*.1,c/2,h,.8),{x:s/2+s/2*.1,y:-c/2},{x:-s/2-s/2*.1,y:-c/2},{x:-s/2,y:-c/2},{x:-s/2,y:c/2*1.1},{x:-s/2,y:-c/2}],f=u.polygon(g.map((t=>[t.x,t.y])),p),m=a.insert((()=>f),":first-child");return m.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(0,${-h/2})`),n.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(o.x-(o.left??0))},${-l/2+(e.padding??0)-h/2-(o.y-(o.top??0))})`),bh(e,m),e.intersect=function(t){return Qh.polygon(e,g,t)},a}async function Yc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=-s/2,c=-l/2,{cssStyles:d}=e,u=mh(a),p=Dh(e,{}),g=[{x:h-5,y:c+5},{x:h-5,y:c+l+5},{x:h+s-5,y:c+l+5},{x:h+s-5,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c+l-5},{x:h+s+5,y:c+l-5},{x:h+s+5,y:c-5},{x:h+5,y:c-5},{x:h+5,y:c},{x:h,y:c},{x:h,y:c+5}],f=[{x:h,y:c+5},{x:h+s-5,y:c+5},{x:h+s-5,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c},{x:h,y:c}];"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const m=kh(g),y=u.path(m,p),x=kh(f),b=u.path(x,{...p,fill:"none"}),C=a.insert((()=>b),":first-child");return C.insert((()=>y),":first-child"),C.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&C.selectAll("path").attr("style",i),n.attr("transform",`translate(${-o.width/2-5-(o.x-(o.left??0))}, ${-o.height/2+5-(o.y-(o.top??0))})`),bh(e,C),e.intersect=function(t){return Qh.polygon(e,g,t)},a}async function Uc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/4,c=l+h,d=-s/2,u=-c/2,{cssStyles:p}=e,g=wh(d-5,u+c+5,d+s-5,u+c+5,h,.8),f=null==g?void 0:g[g.length-1],m=[{x:d-5,y:u+5},{x:d-5,y:u+c+5},...g,{x:d+s-5,y:f.y-5},{x:d+s,y:f.y-5},{x:d+s,y:f.y-10},{x:d+s+5,y:f.y-10},{x:d+s+5,y:u-5},{x:d+5,y:u-5},{x:d+5,y:u},{x:d,y:u},{x:d,y:u+5}],y=[{x:d,y:u+5},{x:d+s-5,y:u+5},{x:d+s-5,y:f.y-5},{x:d+s,y:f.y-5},{x:d+s,y:u},{x:d,y:u}],x=mh(a),b=Dh(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const C=kh(m),k=x.path(C,b),w=kh(y),S=x.path(w,b),v=a.insert((()=>k),":first-child");return v.insert((()=>S)),v.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-h/2})`),n.attr("transform",`translate(${-o.width/2-5-(o.x-(o.left??0))}, ${-o.height/2+5-h/2-(o.y-(o.top??0))})`),bh(e,v),e.intersect=function(t){return Qh.polygon(e,m,t)},a}async function Vc(t,e,{config:{themeVariables:r}}){var i;const{labelStyles:a,nodeStyles:o}=$h(e);e.labelStyle=a;e.useHtmlLabels||!1!==(null==(i=Sr().flowchart)?void 0:i.htmlLabels)||(e.centerLabel=!0);const{shapeSvg:n,bbox:s}=await yh(t,e,Ch(e)),l=Math.max(s.width+2*(e.padding??0),(null==e?void 0:e.width)??0),h=Math.max(s.height+2*(e.padding??0),(null==e?void 0:e.height)??0),c=-l/2,d=-h/2,{cssStyles:u}=e,p=mh(n),g=Dh(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=p.rectangle(c,d,l,h,g),m=n.insert((()=>f),":first-child");return m.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",u),o&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",o),bh(e,m),e.intersect=function(t){return Qh.rect(e,t)},n}Fe(jc,"linedCylinder"),Fe(Hc,"linedWaveEdgedRect"),Fe(Yc,"multiRect"),Fe(Uc,"multiWaveEdgedRectangle"),Fe(Vc,"note");var Gc=Fe(((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function Xc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=o.width+e.padding+(o.height+e.padding),s=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];let l;const{cssStyles:h}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=Gc(0,0,n),o=t.path(i,r);l=a.insert((()=>o),":first-child").attr("transform",`translate(${-n/2}, ${n/2})`),h&&l.attr("style",h)}else l=ic(a,n,n,s);return i&&l.attr("style",i),bh(e,l),e.intersect=function(t){return $e.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",Qh.polygon(e,s,t)),Qh.polygon(e,s,t)},a}async function Zc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=-Math.max(o.width+(e.padding??0),(null==e?void 0:e.width)??0)/2,l=-Math.max(o.height+(e.padding??0),(null==e?void 0:e.height)??0)/2,h=l/2,c=[{x:s+h,y:l},{x:s,y:0},{x:s+h,y:-l},{x:-s,y:-l},{x:-s,y:l}],{cssStyles:d}=e,u=mh(a),p=Dh(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=kh(c),f=u.path(g,p),m=a.insert((()=>f),":first-child");return m.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(${-h/2},0)`),n.attr("transform",`translate(${-h/2-o.width/2-(o.x-(o.left??0))}, ${-o.height/2-(o.y-(o.top??0))})`),bh(e,m),e.intersect=function(t){return Qh.polygon(e,c,t)},a}async function Kc(t,e){var r,i;const{labelStyles:a,nodeStyles:o}=$h(e);let n;e.labelStyle=a,n=e.cssClasses?"node "+e.cssClasses:"node default";const s=t.insert("g").attr("class",n).attr("id",e.domId||e.id),l=s.insert("g"),h=s.insert("g").attr("class","label").attr("style",o),c=e.description,d=e.label,u=h.node().appendChild(await Lh(d,e.labelStyle,!0,!0));let p={width:0,height:0};if(Hr(null==(i=null==(r=Ti())?void 0:r.flowchart)?void 0:i.htmlLabels)){const t=u.children[0],e=M(u);p=t.getBoundingClientRect(),e.attr("width",p.width),e.attr("height",p.height)}$e.info("Text 2",c);const g=c||[],f=u.getBBox(),m=h.node().appendChild(await Lh(g.join?g.join("<br/>"):g,e.labelStyle,!0,!0)),y=m.children[0],x=M(m);p=y.getBoundingClientRect(),x.attr("width",p.width),x.attr("height",p.height);const b=(e.padding||0)/2;M(m).attr("transform","translate( "+(p.width>f.width?0:(f.width-p.width)/2)+", "+(f.height+b+5)+")"),M(u).attr("transform","translate( "+(p.width<f.width?0:-(f.width-p.width)/2)+", 0)"),p=h.node().getBBox(),h.attr("transform","translate("+-p.width/2+", "+(-p.height/2-b+3)+")");const C=p.width+(e.padding||0),k=p.height+(e.padding||0),w=-p.width/2-b,S=-p.height/2-b;let v,T;if("handDrawn"===e.look){const t=mh(s),r=Dh(e,{}),i=t.path(Mh(w,S,C,k,e.rx||0),r),a=t.line(-p.width/2-b,-p.height/2-b+f.height+b,p.width/2+b,-p.height/2-b+f.height+b,r);T=s.insert((()=>($e.debug("Rough node insert CXC",i),a)),":first-child"),v=s.insert((()=>($e.debug("Rough node insert CXC",i),i)),":first-child")}else v=l.insert("rect",":first-child"),T=l.insert("line"),v.attr("class","outer title-state").attr("style",o).attr("x",-p.width/2-b).attr("y",-p.height/2-b).attr("width",p.width+(e.padding||0)).attr("height",p.height+(e.padding||0)),T.attr("class","divider").attr("x1",-p.width/2-b).attr("x2",p.width/2+b).attr("y1",-p.height/2-b+f.height+b).attr("y2",-p.height/2-b+f.height+b);return bh(e,v),e.intersect=function(t){return Qh.rect(e,t)},s}async function Jc(t,e){return Oc(t,e,{rx:5,ry:5,labelPaddingX:1*((null==e?void 0:e.padding)||0),labelPaddingY:1*((null==e?void 0:e.padding)||0)})}async function Qc(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=(null==e?void 0:e.padding)??0,l=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),h=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),c=-o.width/2-s,d=-o.height/2-s,{cssStyles:u}=e,p=mh(a),g=Dh(e,{});"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const f=[{x:c,y:d},{x:c+l+8,y:d},{x:c+l+8,y:d+h},{x:c-8,y:d+h},{x:c-8,y:d},{x:c,y:d},{x:c,y:d+h}],m=p.polygon(f.map((t=>[t.x,t.y])),g),y=a.insert((()=>m),":first-child");return y.attr("class","basic label-container").attr("style",Js(u)),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),u&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),n.attr("transform",`translate(${-l/2+4+(e.padding??0)-(o.x-(o.left??0))},${-h/2+(e.padding??0)-(o.y-(o.top??0))})`),bh(e,y),e.intersect=function(t){return Qh.rect(e,t)},a}async function td(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=-s/2,c=-l/2,{cssStyles:d}=e,u=mh(a),p=Dh(e,{});"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const g=[{x:h,y:c},{x:h,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c-l/2}],f=kh(g),m=u.path(f,p),y=a.insert((()=>m),":first-child");return y.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectChildren("path").attr("style",i),y.attr("transform",`translate(0, ${l/4})`),n.attr("transform",`translate(${-s/2+(e.padding??0)-(o.x-(o.left??0))}, ${-l/4+(e.padding??0)-(o.y-(o.top??0))})`),bh(e,y),e.intersect=function(t){return Qh.polygon(e,g,t)},a}async function ed(t,e){return Oc(t,e,{rx:0,ry:0,labelPaddingX:2*((null==e?void 0:e.padding)||0),labelPaddingY:1*((null==e?void 0:e.padding)||0)})}async function rd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=o.height+e.padding,s=o.width+n/4+e.padding;let l;const{cssStyles:h}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=Mh(-s/2,-n/2,s,n,n/2),o=t.path(i,r);l=a.insert((()=>o),":first-child"),l.attr("class","basic label-container").attr("style",Js(h))}else l=a.insert("rect",":first-child"),l.attr("class","basic label-container").attr("style",i).attr("rx",n/2).attr("ry",n/2).attr("x",-s/2).attr("y",-n/2).attr("width",s).attr("height",n);return bh(e,l),e.intersect=function(t){return Qh.rect(e,t)},a}async function id(t,e){return Oc(t,e,{rx:5,ry:5})}function ad(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=$h(e);e.labelStyle=i;const{cssStyles:o}=e,{lineColor:n,stateBorder:s,nodeBorder:l}=r,h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),c=mh(h),d=Dh(e,{});"handDrawn"!==e.look&&(d.roughness=0,d.fillStyle="solid");const u=c.circle(0,0,14,{...d,stroke:n,strokeWidth:2}),p=s??l,g=c.circle(0,0,5,{...d,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),f=h.insert((()=>u),":first-child");return f.insert((()=>g)),o&&f.selectAll("path").attr("style",o),a&&f.selectAll("path").attr("style",a),bh(e,f),e.intersect=function(t){return Qh.circle(e,7,t)},h}function od(t,e,{config:{themeVariables:r}}){const{lineColor:i}=r,a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let o;if("handDrawn"===e.look){const t=mh(a).circle(0,0,14,_h(i));o=a.insert((()=>t)),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else o=a.insert("circle",":first-child"),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return bh(e,o),e.intersect=function(t){return Qh.circle(e,7,t)},a}async function nd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=((null==e?void 0:e.padding)||0)/2,s=o.width+e.padding,l=o.height+e.padding,h=-o.width/2-n,c=-o.height/2-n,d=[{x:0,y:0},{x:s,y:0},{x:s,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=t.rectangle(h-8,c,s+16,l,r),o=t.line(h,c,h,c+l,r),n=t.line(h+s,c,h+s,c+l,r);a.insert((()=>o),":first-child"),a.insert((()=>n),":first-child");const d=a.insert((()=>i),":first-child"),{cssStyles:u}=e;d.attr("class","basic label-container").attr("style",Js(u)),bh(e,d)}else{const t=ic(a,s,l,d);i&&t.attr("style",i),bh(e,t)}return e.intersect=function(t){return Qh.polygon(e,d,t)},a}async function sd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=-n/2,h=-s/2,c=.2*s,d=.2*s,{cssStyles:u}=e,p=mh(a),g=Dh(e,{}),f=[{x:l-c/2,y:h},{x:l+n+c/2,y:h},{x:l+n+c/2,y:h+s},{x:l-c/2,y:h+s}],m=[{x:l+n-c/2,y:h+s},{x:l+n+c/2,y:h+s},{x:l+n+c/2,y:h+s-d}];"handDrawn"!==e.look&&(g.roughness=0,g.fillStyle="solid");const y=kh(f),x=p.path(y,g),b=kh(m),C=p.path(b,{...g,fillStyle:"solid"}),k=a.insert((()=>C),":first-child");return k.insert((()=>x),":first-child"),k.attr("class","basic label-container"),u&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",u),i&&"handDrawn"!==e.look&&k.selectAll("path").attr("style",i),bh(e,k),e.intersect=function(t){return Qh.polygon(e,f,t)},a}async function ld(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/4,c=.2*s,d=.2*l,u=l+h,{cssStyles:p}=e,g=mh(a),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const m=[{x:-s/2-s/2*.1,y:u/2},...wh(-s/2-s/2*.1,u/2,s/2+s/2*.1,u/2,h,.8),{x:s/2+s/2*.1,y:-u/2},{x:-s/2-s/2*.1,y:-u/2}],y=-s/2+s/2*.1,x=-u/2-.4*d,b=[{x:y+s-c,y:1.4*(x+l)},{x:y+s,y:x+l-d},{x:y+s,y:.9*(x+l)},...wh(y+s,1.3*(x+l),y+s-c,1.5*(x+l),.03*-l,.5)],C=kh(m),k=g.path(C,f),w=kh(b),S=g.path(w,{...f,fillStyle:"solid"}),v=a.insert((()=>S),":first-child");return v.insert((()=>k),":first-child"),v.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&v.selectAll("path").attr("style",i),v.attr("transform",`translate(0,${-h/2})`),n.attr("transform",`translate(${-s/2+(e.padding??0)-(o.x-(o.left??0))},${-l/2+(e.padding??0)-h/2-(o.y-(o.top??0))})`),bh(e,v),e.intersect=function(t){return Qh.polygon(e,m,t)},a}async function hd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(o.width+e.padding,(null==e?void 0:e.width)||0),s=Math.max(o.height+e.padding,(null==e?void 0:e.height)||0),l=-n/2,h=-s/2,c=a.insert("rect",":first-child");return c.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",h).attr("width",n).attr("height",s),bh(e,c),e.intersect=function(t){return Qh.rect(e,t)},a}Fe(Xc,"question"),Fe(Zc,"rect_left_inv_arrow"),Fe(Kc,"rectWithTitle"),Fe(Jc,"roundedRect"),Fe(Qc,"shadedProcess"),Fe(td,"slopedRect"),Fe(ed,"squareRect"),Fe(rd,"stadium"),Fe(id,"state"),Fe(ad,"stateEnd"),Fe(od,"stateStart"),Fe(nd,"subroutine"),Fe(sd,"taggedRect"),Fe(ld,"taggedWaveEdgedRectangle"),Fe(hd,"text");var cd=Fe(((t,e,r,i,a,o)=>`M${t},${e}\n a${a},${o} 0,0,1 0,${-i}\n l${r},0\n a${a},${o} 0,0,1 0,${i}\n M${r},${-i}\n a${a},${o} 0,0,0 0,${i}\n l${-r},0`),"createCylinderPathD"),dd=Fe(((t,e,r,i,a,o)=>[`M${t},${e}`,`M${t+r},${e}`,`a${a},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${a},${o} 0,0,0 0,${i}`,`l${r},0`].join(" ")),"createOuterCylinderPathD"),ud=Fe(((t,e,r,i,a,o)=>[`M${t+r/2},${-i/2}`,`a${a},${o} 0,0,0 0,${i}`].join(" ")),"createInnerCylinderPathD");async function pd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n,halfPadding:s}=await yh(t,e,Ch(e)),l="neo"===e.look?2*s:s,h=o.height+l,c=h/2,d=c/(2.5+h/50),u=o.width+d+l,{cssStyles:p}=e;let g;if("handDrawn"===e.look){const t=mh(a),r=dd(0,0,u,h,d,c),i=ud(0,0,u,h,d,c),o=t.path(r,Dh(e,{})),n=t.path(i,Dh(e,{fill:"none"}));g=a.insert((()=>n),":first-child"),g=a.insert((()=>o),":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const t=cd(0,0,u,h,d,c);g=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",Js(p)).attr("style",i),g.attr("class","basic label-container"),p&&g.selectAll("path").attr("style",p),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",d),g.attr("transform",`translate(${-u/2}, ${h/2} )`),n.attr("transform",`translate(${-o.width/2-d-(o.x-(o.left??0))}, ${-o.height/2-(o.y-(o.top??0))})`),bh(e,g),e.intersect=function(t){const r=Qh.rect(e,t),i=r.y-(e.y??0);if(0!=c&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-d)){let a=d*d*(1-i*i/(c*c));0!=a&&(a=Math.sqrt(Math.abs(a))),a=d-a,t.x-(e.x??0)>0&&(a=-a),r.x+=a}return r},a}async function gd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=o.width+e.padding,s=o.height+e.padding,l=[{x:-3*s/6,y:0},{x:n+3*s/6,y:0},{x:n,y:-s},{x:0,y:-s}];let h;const{cssStyles:c}=e;if("handDrawn"===e.look){const t=mh(a),r=Dh(e,{}),i=kh(l),o=t.path(i,r);h=a.insert((()=>o),":first-child").attr("transform",`translate(${-n/2}, ${s/2})`),c&&h.attr("style",c)}else h=ic(a,n,s,l);return i&&h.attr("style",i),e.width=n,e.height=s,bh(e,h),e.intersect=function(t){return Qh.polygon(e,l,t)},a}async function fd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(60,o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(20,o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),{cssStyles:l}=e,h=mh(a),c=Dh(e,{});"handDrawn"!==e.look&&(c.roughness=0,c.fillStyle="solid");const d=[{x:-n/2*.8,y:-s/2},{x:n/2*.8,y:-s/2},{x:n/2,y:-s/2*.6},{x:n/2,y:s/2},{x:-n/2,y:s/2},{x:-n/2,y:-s/2*.6}],u=kh(d),p=h.path(u,c),g=a.insert((()=>p),":first-child");return g.attr("class","basic label-container"),l&&"handDrawn"!==e.look&&g.selectChildren("path").attr("style",l),i&&"handDrawn"!==e.look&&g.selectChildren("path").attr("style",i),bh(e,g),e.intersect=function(t){return Qh.polygon(e,d,t)},a}async function md(t,e){var r;const{labelStyles:i,nodeStyles:a}=$h(e);e.labelStyle=i;const{shapeSvg:o,bbox:n,label:s}=await yh(t,e,Ch(e)),l=Hr(null==(r=Ti().flowchart)?void 0:r.htmlLabels),h=n.width+(e.padding??0),c=h+n.height,d=h+n.height,u=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-c}],{cssStyles:p}=e,g=mh(o),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const m=kh(u),y=g.path(m,f),x=o.insert((()=>y),":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return p&&"handDrawn"!==e.look&&x.selectChildren("path").attr("style",p),a&&"handDrawn"!==e.look&&x.selectChildren("path").attr("style",a),e.width=h,e.height=c,bh(e,x),s.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${c/2-(n.height+(e.padding??0)/(l?2:1)-(n.y-(n.top??0)))})`),e.intersect=function(t){return $e.info("Triangle intersect",e,u,t),Qh.polygon(e,u,t)},o}async function yd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=l/8,c=l+h,{cssStyles:d}=e,u=70-s,p=u>0?u/2:0,g=mh(a),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const m=[{x:-s/2-p,y:c/2},...wh(-s/2-p,c/2,s/2+p,c/2,h,.8),{x:s/2+p,y:-c/2},{x:-s/2-p,y:-c/2}],y=kh(m),x=g.path(y,f),b=a.insert((()=>x),":first-child");return b.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(0,${-h/2})`),n.attr("transform",`translate(${-s/2+(e.padding??0)-(o.x-(o.left??0))},${-l/2+(e.padding??0)-h-(o.y-(o.top??0))})`),bh(e,b),e.intersect=function(t){return Qh.polygon(e,m,t)},a}async function xd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o}=await yh(t,e,Ch(e)),n=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),s=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),l=n/s;let h=n,c=s;h>c*l?c=h/l:h=c*l,h=Math.max(h,100),c=Math.max(c,50);const d=Math.min(.2*c,c/4),u=c+2*d,{cssStyles:p}=e,g=mh(a),f=Dh(e,{});"handDrawn"!==e.look&&(f.roughness=0,f.fillStyle="solid");const m=[{x:-h/2,y:u/2},...wh(-h/2,u/2,h/2,u/2,d,1),{x:h/2,y:-u/2},...wh(h/2,-u/2,-h/2,-u/2,d,-1)],y=kh(m),x=g.path(y,f),b=a.insert((()=>x),":first-child");return b.attr("class","basic label-container"),p&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",p),i&&"handDrawn"!==e.look&&b.selectAll("path").attr("style",i),bh(e,b),e.intersect=function(t){return Qh.polygon(e,m,t)},a}async function bd(t,e){const{labelStyles:r,nodeStyles:i}=$h(e);e.labelStyle=r;const{shapeSvg:a,bbox:o,label:n}=await yh(t,e,Ch(e)),s=Math.max(o.width+2*(e.padding??0),(null==e?void 0:e.width)??0),l=Math.max(o.height+2*(e.padding??0),(null==e?void 0:e.height)??0),h=-s/2,c=-l/2,{cssStyles:d}=e,u=mh(a),p=Dh(e,{}),g=[{x:h-5,y:c-5},{x:h-5,y:c+l},{x:h+s,y:c+l},{x:h+s,y:c-5}],f=`M${h-5},${c-5} L${h+s},${c-5} L${h+s},${c+l} L${h-5},${c+l} L${h-5},${c-5}\n M${h-5},${c} L${h+s},${c}\n M${h},${c-5} L${h},${c+l}`;"handDrawn"!==e.look&&(p.roughness=0,p.fillStyle="solid");const m=u.path(f,p),y=a.insert((()=>m),":first-child");return y.attr("transform","translate(2.5, 2.5)"),y.attr("class","basic label-container"),d&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",d),i&&"handDrawn"!==e.look&&y.selectAll("path").attr("style",i),n.attr("transform",`translate(${-o.width/2+2.5-(o.x-(o.left??0))}, ${-o.height/2+2.5-(o.y-(o.top??0))})`),bh(e,y),e.intersect=function(t){return Qh.polygon(e,g,t)},a}async function Cd(t,e){var r,i,a;const o=e;if(o.alias&&(e.label=o.alias),"handDrawn"===e.look){const{themeVariables:r}=Sr(),{background:i}=r,a={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await Cd(t,a)}const n=Sr();e.useHtmlLabels=n.htmlLabels;let s=(null==(r=n.er)?void 0:r.diagramPadding)??10,l=(null==(i=n.er)?void 0:i.entityPadding)??6;const{cssStyles:h}=e,{labelStyles:c}=$h(e);if(0===o.attributes.length&&e.label){const r={rx:0,ry:0,labelPaddingX:s,labelPaddingY:1.5*s};Ns(e.label,n)+2*r.labelPaddingX<n.er.minEntityWidth&&(e.width=n.er.minEntityWidth);const i=await Oc(t,e,r);if(!Hr(n.htmlLabels)){const t=i.select("text"),e=null==(a=t.node())?void 0:a.getBBox();t.attr("transform",`translate(${-e.width/2}, 0)`)}return i}n.htmlLabels||(s*=1.25,l*=1.25);let d=Ch(e);d||(d="node default");const u=t.insert("g").attr("class",d).attr("id",e.domId||e.id),p=await kd(u,e.label??"",n,0,0,["name"],c);p.height+=l;let g=0;const f=[];let m=0,y=0,x=0,b=0,C=!0,k=!0;for(const M of o.attributes){const t=await kd(u,M.type,n,0,g,["attribute-type"],c);m=Math.max(m,t.width+s);const e=await kd(u,M.name,n,0,g,["attribute-name"],c);y=Math.max(y,e.width+s);const r=await kd(u,M.keys.join(),n,0,g,["attribute-keys"],c);x=Math.max(x,r.width+s);const i=await kd(u,M.comment,n,0,g,["attribute-comment"],c);b=Math.max(b,i.width+s),g+=Math.max(t.height,e.height,r.height,i.height)+l,f.push(g)}f.pop();let w=4;x<=s&&(C=!1,x=0,w--),b<=s&&(k=!1,b=0,w--);const S=u.node().getBBox();if(p.width+2*s-(m+y+x+b)>0){const t=p.width+2*s-(m+y+x+b);m+=t/w,y+=t/w,x>0&&(x+=t/w),b>0&&(b+=t/w)}const v=m+y+x+b,T=mh(u),B=Dh(e,{});"handDrawn"!==e.look&&(B.roughness=0,B.fillStyle="solid");const L=Math.max(S.width+2*s,(null==e?void 0:e.width)||0,v),_=Math.max(S.height+(f[0]||g)+l,(null==e?void 0:e.height)||0),F=-L/2,A=-_/2;u.selectAll("g:not(:first-child)").each(((t,e,r)=>{const i=M(r[e]),a=i.attr("transform");let o=0,n=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);t&&(o=parseFloat(t[1]),n=parseFloat(t[2]),i.attr("class").includes("attribute-name")?o+=m:i.attr("class").includes("attribute-keys")?o+=m+y:i.attr("class").includes("attribute-comment")&&(o+=m+y+x))}i.attr("transform",`translate(${F+s/2+o}, ${n+A+p.height+l/2})`)})),u.select(".name").attr("transform","translate("+-p.width/2+", "+(A+l/2)+")");const E=T.rectangle(F,A,L,_,B),$=u.insert((()=>E),":first-child").attr("style",h.join("")),{themeVariables:D}=Sr(),{rowEven:O,rowOdd:I,nodeBorder:P}=D;f.push(0);for(const[M,N]of f.entries()){if(0===M&&f.length>1)continue;const t=M%2==0&&0!==N,e=T.rectangle(F,p.height+A+N,L,p.height,{...B,fill:t?O:I,stroke:P});u.insert((()=>e),"g.label").attr("style",h.join("")).attr("class","row-rect-"+(M%2==0?"even":"odd"))}let R=T.line(F,p.height+A,L+F,p.height+A,B);u.insert((()=>R)).attr("class","divider"),R=T.line(m+F,p.height+A,m+F,_+A,B),u.insert((()=>R)).attr("class","divider"),C&&(R=T.line(m+y+F,p.height+A,m+y+F,_+A,B),u.insert((()=>R)).attr("class","divider")),k&&(R=T.line(m+y+x+F,p.height+A,m+y+x+F,_+A,B),u.insert((()=>R)).attr("class","divider"));for(const M of f)R=T.line(F,p.height+A+M,L+F,p.height+A+M,B),u.insert((()=>R)).attr("class","divider");return bh(e,$),e.intersect=function(t){return Qh.rect(e,t)},u}async function kd(t,e,r,i=0,a=0,o=[],n=""){const s=t.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",n);e!==Vr(e)&&(e=(e=Vr(e)).replaceAll("<","<").replaceAll(">",">"));const l=s.node().appendChild(await ml(s,e,{width:Ns(e,r)+100,style:n,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let t=l.children[0];for(t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");t.childNodes[0];)t=t.childNodes[0],t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}let h=l.getBBox();if(Hr(r.htmlLabels)){const t=l.children[0];t.style.textAlign="start";const e=M(l);h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}return h}async function wd(t,e,r,i,a=r.class.padding??12){const o=i?0:3,n=t.insert("g").attr("class",Ch(e)).attr("id",e.domId||e.id);let s=null,l=null,h=null,c=null,d=0,u=0,p=0;if(s=n.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const t=e.annotations[0];await Sd(s,{text:`«${t}»`},0);d=s.node().getBBox().height}l=n.insert("g").attr("class","label-group text"),await Sd(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();u=g.height,h=n.insert("g").attr("class","members-group text");let f=0;for(const x of e.members){f+=await Sd(h,x,f,[x.parseClassifier()])+o}p=h.node().getBBox().height,p<=0&&(p=a/2),c=n.insert("g").attr("class","methods-group text");let m=0;for(const x of e.methods){m+=await Sd(c,x,m,[x.parseClassifier()])+o}let y=n.node().getBBox();if(null!==s){const t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${d})`),y=n.node().getBBox(),h.attr("transform",`translate(0, ${d+u+2*a})`),y=n.node().getBBox(),c.attr("transform",`translate(0, ${d+u+(p?p+4*a:2*a)})`),y=n.node().getBBox(),{shapeSvg:n,bbox:y}}async function Sd(t,e,r,i=[]){const a=t.insert("g").attr("class","label").attr("style",i.join("; ")),o=Sr();let n="useHtmlLabels"in e?e.useHtmlLabels:Hr(o.htmlLabels)??!0,s="";s="text"in e?e.text:e.label,!n&&s.startsWith("\\")&&(s=s.substring(1)),Qr(s)&&(n=!0);const l=await ml(a,Mi(Zs(s)),{width:Ns(s,o)+50,classes:"markdown-node-label",useHtmlLabels:n},o);let h,c=1;if(n){const t=l.children[0],e=M(l);c=t.innerHTML.split("<br>").length,t.innerHTML.includes("</math>")&&(c+=t.innerHTML.split("<mrow>").length-1);const r=t.getElementsByTagName("img");if(r){const t=""===s.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((e=>new Promise((r=>{function i(){var i;if(e.style.display="flex",e.style.flexDirection="column",t){const t=(null==(i=o.fontSize)?void 0:i.toString())??window.getComputedStyle(document.body).fontSize,r=5,a=parseInt(t,10)*r+"px";e.style.minWidth=a,e.style.maxWidth=a}else e.style.width="100%";r(e)}Fe(i,"setupImage"),setTimeout((()=>{e.complete&&i()})),e.addEventListener("error",i),e.addEventListener("load",i)})))))}h=t.getBoundingClientRect(),e.attr("width",h.width),e.attr("height",h.height)}else{i.includes("font-weight: bolder")&&M(l).selectAll("tspan").attr("font-weight",""),c=l.children.length;const t=l.children[0];if(""===l.textContent||l.textContent.includes(">")){t.textContent=s[0]+s.substring(1).replaceAll(">",">").replaceAll("<","<").trim();" "===s[1]&&(t.textContent=t.textContent[0]+" "+t.textContent.substring(1))}"undefined"===t.textContent&&(t.textContent=""),h=l.getBBox()}return a.attr("transform","translate(0,"+(-h.height/(2*c)+r)+")"),h.height}async function vd(t,e){var r,i;const a=Ti(),o=a.class.padding??12,n=o,s=e.useHtmlLabels??Hr(a.htmlLabels)??!0,l=e;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:h,bbox:c}=await wd(t,e,a,s,n),{labelStyles:d,nodeStyles:u}=$h(e);e.labelStyle=d,e.cssStyles=l.styles||"";const p=(null==(r=l.styles)?void 0:r.join(";"))||u||"";e.cssStyles||(e.cssStyles=p.replaceAll("!important","").split(";"));const g=0===l.members.length&&0===l.methods.length&&!(null==(i=a.class)?void 0:i.hideEmptyMembersBox),f=mh(h),m=Dh(e,{});"handDrawn"!==e.look&&(m.roughness=0,m.fillStyle="solid");const y=c.width;let x=c.height;0===l.members.length&&0===l.methods.length?x+=n:l.members.length>0&&0===l.methods.length&&(x+=2*n);const b=-y/2,C=-x/2,k=f.rectangle(b-o,C-o-(g?o:0===l.members.length&&0===l.methods.length?-o/2:0),y+2*o,x+2*o+(g?2*o:0===l.members.length&&0===l.methods.length?-o:0),m),w=h.insert((()=>k),":first-child");w.attr("class","basic label-container");const S=w.node().getBBox();h.selectAll(".text").each(((t,e,r)=>{var i;const a=M(r[e]),n=a.attr("transform");let c=0;if(n){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(n);t&&(c=parseFloat(t[2]))}let d=c+C+o-(g?o:0===l.members.length&&0===l.methods.length?-o/2:0);s||(d-=4);let u=b;(a.attr("class").includes("label-group")||a.attr("class").includes("annotation-group"))&&(u=-(null==(i=a.node())?void 0:i.getBBox().width)/2||0,h.selectAll("text").each((function(t,e,r){"middle"===window.getComputedStyle(r[e]).textAnchor&&(u=0)}))),a.attr("transform",`translate(${u}, ${d})`)}));const v=h.select(".annotation-group").node().getBBox().height-(g?o/2:0)||0,T=h.select(".label-group").node().getBBox().height-(g?o/2:0)||0,B=h.select(".members-group").node().getBBox().height-(g?o/2:0)||0;if(l.members.length>0||l.methods.length>0||g){const t=f.line(S.x,v+T+C+o,S.x+S.width,v+T+C+o,m);h.insert((()=>t)).attr("class","divider").attr("style",p)}if(g||l.members.length>0||l.methods.length>0){const t=f.line(S.x,v+T+B+C+2*n+o,S.x+S.width,v+T+B+C+o+2*n,m);h.insert((()=>t)).attr("class","divider").attr("style",p)}if("handDrawn"!==l.look&&h.selectAll("path").attr("style",p),w.select(":nth-child(2)").attr("style",p),h.selectAll(".divider").select("path").attr("style",p),e.labelStyle?h.selectAll("span").attr("style",e.labelStyle):h.selectAll("span").attr("style",p),!s){const t=RegExp(/color\s*:\s*([^;]*)/),e=t.exec(p);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(d){const e=t.exec(d);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}return bh(e,w),e.intersect=function(t){return Qh.rect(e,t)},h}async function Td(t,e){var r,i;const{labelStyles:a,nodeStyles:o}=$h(e);e.labelStyle=a;const n=e,s=e,l="verifyMethod"in e,h=Ch(e),c=t.insert("g").attr("class",h).attr("id",e.domId??e.id);let d;d=l?await Bd(c,`<<${n.type}>>`,0,e.labelStyle):await Bd(c,"<<Element>>",0,e.labelStyle);let u=d;const p=await Bd(c,n.name,u,e.labelStyle+"; font-weight: bold;");if(u+=p+20,l){u+=await Bd(c,""+(n.requirementId?`Id: ${n.requirementId}`:""),u,e.labelStyle);u+=await Bd(c,""+(n.text?`Text: ${n.text}`:""),u,e.labelStyle);u+=await Bd(c,""+(n.risk?`Risk: ${n.risk}`:""),u,e.labelStyle),await Bd(c,""+(n.verifyMethod?`Verification: ${n.verifyMethod}`:""),u,e.labelStyle)}else{u+=await Bd(c,""+(s.type?`Type: ${s.type}`:""),u,e.labelStyle),await Bd(c,""+(s.docRef?`Doc Ref: ${s.docRef}`:""),u,e.labelStyle)}const g=((null==(r=c.node())?void 0:r.getBBox().width)??200)+20,f=((null==(i=c.node())?void 0:i.getBBox().height)??200)+20,m=-g/2,y=-f/2,x=mh(c),b=Dh(e,{});"handDrawn"!==e.look&&(b.roughness=0,b.fillStyle="solid");const C=x.rectangle(m,y,g,f,b),k=c.insert((()=>C),":first-child");if(k.attr("class","basic label-container").attr("style",o),c.selectAll(".label").each(((t,e,r)=>{const i=M(r[e]),a=i.attr("transform");let o=0,n=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(a);t&&(o=parseFloat(t[1]),n=parseFloat(t[2]))}const s=n-f/2;let l=m+10;0!==e&&1!==e||(l=o),i.attr("transform",`translate(${l}, ${s+20})`)})),u>d+p+20){const t=x.line(m,y+d+p+20,m+g,y+d+p+20,b);c.insert((()=>t)).attr("style",o)}return bh(e,k),e.intersect=function(t){return Qh.rect(e,t)},c}async function Bd(t,e,r,i=""){if(""===e)return 0;const a=t.insert("g").attr("class","label").attr("style",i),o=Ti(),n=o.htmlLabels??!0,s=await ml(a,Mi(Zs(e)),{width:Ns(e,o)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},o);let l;if(n){const t=s.children[0],e=M(s);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}else{const t=s.children[0];for(const e of t.children)e.textContent=e.textContent.replaceAll(">",">").replaceAll("<","<"),i&&e.setAttribute("style",i);l=s.getBBox(),l.height+=6}return a.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}Fe(pd,"tiltedCylinder"),Fe(gd,"trapezoid"),Fe(fd,"trapezoidalPentagon"),Fe(md,"triangle"),Fe(yd,"waveEdgedRectangle"),Fe(xd,"waveRectangle"),Fe(bd,"windowPane"),Fe(Cd,"erBox"),Fe(kd,"addText"),Fe(wd,"textHelper"),Fe(Sd,"addText"),Fe(vd,"classBox"),Fe(Td,"requirementBox"),Fe(Bd,"addText");var Ld=Fe((t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function Md(t,e,{config:r}){var i,a;const{labelStyles:o,nodeStyles:n}=$h(e);e.labelStyle=o||"";const s=e.width;e.width=(e.width??200)-10;const{shapeSvg:l,bbox:h,label:c}=await yh(t,e,Ch(e)),d=e.padding||10;let u,p="";"ticket"in e&&e.ticket&&(null==(i=null==r?void 0:r.kanban)?void 0:i.ticketBaseUrl)&&(p=null==(a=null==r?void 0:r.kanban)?void 0:a.ticketBaseUrl.replace("#TICKET#",e.ticket),u=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const g={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let f,m;({label:f,bbox:m}=u?await xh(u,"ticket"in e&&e.ticket||"",g):await xh(l,"ticket"in e&&e.ticket||"",g));const{label:y,bbox:x}=await xh(l,"assigned"in e&&e.assigned||"",g);e.width=s;const b=(null==e?void 0:e.width)||0,C=Math.max(m.height,x.height)/2,k=Math.max(h.height+20,(null==e?void 0:e.height)||0)+C,w=-b/2,S=-k/2;let v;c.attr("transform","translate("+(d-b/2)+", "+(-C-h.height/2)+")"),f.attr("transform","translate("+(d-b/2)+", "+(-C+h.height/2)+")"),y.attr("transform","translate("+(d+b/2-x.width-20)+", "+(-C+h.height/2)+")");const{rx:T,ry:B}=e,{cssStyles:L}=e;if("handDrawn"===e.look){const t=mh(l),r=Dh(e,{}),i=T||B?t.path(Mh(w,S,b,k,T||0),r):t.rectangle(w,S,b,k,r);v=l.insert((()=>i),":first-child"),v.attr("class","basic label-container").attr("style",L||null)}else{v=l.insert("rect",":first-child"),v.attr("class","basic label-container __APA__").attr("style",n).attr("rx",T??5).attr("ry",B??5).attr("x",w).attr("y",S).attr("width",b).attr("height",k);const t="priority"in e&&e.priority;if(t){const e=l.append("line"),r=w+2,i=S+Math.floor((T??0)/2),a=S+k-Math.floor((T??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",a).attr("stroke-width","4").attr("stroke",Ld(t))}}return bh(e,v),e.height=k,e.intersect=function(t){return Qh.rect(e,t)},l}Fe(Md,"kanbanItem");var _d=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ed},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Jc},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:rd},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:nd},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:bc},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:nc},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Xc},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Lc},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Rc},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Pc},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:gd},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Dc},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:kc},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:hd},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ac},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Qc},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:od},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ad},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:vc},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Mc},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:cc},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:uc},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:gc},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Nc},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:yd},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Tc},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:pd},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:jc},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:fc},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Cc},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:md},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:bd},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:wc},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:fd},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Sc},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:td},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Uc},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Yc},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:rc},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:lc},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ld},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:sd},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:xd},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Zc},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Hc}],Fd=Fe((()=>{const t={state:id,choice:oc,note:Vc,rectWithTitle:Kc,labelRect:Ic,iconSquare:Ec,iconCircle:Fc,icon:_c,iconRounded:Ac,imageSquare:$c,anchor:tc,kanbanItem:Md,classBox:vd,erBox:Cd,requirementBox:Td},e=[...Object.entries(t),..._d.flatMap((t=>[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]].map((e=>[e,t.handler]))))];return Object.fromEntries(e)}),"generateShapeMap")();function Ad(t){return t in Fd}Fe(Ad,"isValidShape");var Ed=new Map;async function $d(t,e,r){let i,a;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const o=e.shape?Fd[e.shape]:void 0;if(!o)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let n;"sandbox"===r.config.securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n??null),a=await o(i,e,r)}else a=await o(t,e,r),i=a;return e.tooltip&&a.attr("title",e.tooltip),Ed.set(e.id,i),e.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}Fe($d,"insertNode");var Dd=Fe(((t,e)=>{Ed.set(e.id,t)}),"setNodeElem"),Od=Fe((()=>{Ed.clear()}),"clear"),Id=Fe((t=>{const e=Ed.get(t.id);$e.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r}),"positionNode"),Pd=Fe(((t,e,r,i,a,o)=>{e.arrowTypeStart&&Nd(t,"start",e.arrowTypeStart,r,i,a,o),e.arrowTypeEnd&&Nd(t,"end",e.arrowTypeEnd,r,i,a,o)}),"addEdgeMarkers"),Rd={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}},Nd=Fe(((t,e,r,i,a,o,n)=>{var s;const l=Rd[r];if(!l)return void $e.warn(`Unknown arrow type: ${r}`);const h=`${a}_${o}-${l.type}${"start"===e?"Start":"End"}`;if(n&&""!==n.trim()){const r=`${h}_${n.replace(/[^\dA-Za-z]/g,"_")}`;if(!document.getElementById(r)){const t=document.getElementById(h);if(t){const e=t.cloneNode(!0);e.id=r;e.querySelectorAll("path, circle, line").forEach((t=>{t.setAttribute("stroke",n),l.fill&&t.setAttribute("fill",n)})),null==(s=t.parentNode)||s.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${r})`)}else t.attr(`marker-${e}`,`url(${i}#${h})`)}),"addEdgeMarker"),qd=new Map,zd=new Map,Wd=Fe((()=>{qd.clear(),zd.clear()}),"clear"),jd=Fe((t=>t?t.reduce(((t,e)=>t+";"+e),""):""),"getLabelStyles"),Hd=Fe((async(t,e)=>{let r=Hr(Ti().flowchart.htmlLabels);const i=await ml(t,e.label,{style:jd(e.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});$e.info("abc82",e,e.labelType);const a=t.insert("g").attr("class","edgeLabel"),o=a.insert("g").attr("class","label");o.node().appendChild(i);let n,s=i.getBBox();if(r){const t=i.children[0],e=M(i);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}if(o.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),qd.set(e.id,a),e.width=s.width,e.height=s.height,e.startLabelLeft){const r=await Lh(e.startLabelLeft,jd(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");n=a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),zd.get(e.id)||zd.set(e.id,{}),zd.get(e.id).startLeft=i,Yd(n,e.startLabelLeft)}if(e.startLabelRight){const r=await Lh(e.startLabelRight,jd(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");n=i.node().appendChild(r),a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),zd.get(e.id)||zd.set(e.id,{}),zd.get(e.id).startRight=i,Yd(n,e.startLabelRight)}if(e.endLabelLeft){const r=await Lh(e.endLabelLeft,jd(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");n=a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.node().appendChild(r),zd.get(e.id)||zd.set(e.id,{}),zd.get(e.id).endLeft=i,Yd(n,e.endLabelLeft)}if(e.endLabelRight){const r=await Lh(e.endLabelRight,jd(e.labelStyle)),i=t.insert("g").attr("class","edgeTerminals"),a=i.insert("g").attr("class","inner");n=a.node().appendChild(r);const o=r.getBBox();a.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.node().appendChild(r),zd.get(e.id)||zd.set(e.id,{}),zd.get(e.id).endRight=i,Yd(n,e.endLabelRight)}return i}),"insertEdgeLabel");function Yd(t,e){Ti().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}Fe(Yd,"setTerminalWidth");var Ud=Fe(((t,e)=>{$e.debug("Moving label abc88 ",t.id,t.label,qd.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=Ti(),{subGraphTitleTotalMargin:a}=Pn(i);if(t.label){const i=qd.get(t.id);let o=t.x,n=t.y;if(r){const i=Gs.calcLabelPosition(r);$e.debug("Moving label "+t.label+" from (",o,",",n,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(o=i.x,n=i.y)}i.attr("transform",`translate(${o}, ${n+a/2})`)}if(t.startLabelLeft){const e=zd.get(t.id).startLeft;let i=t.x,a=t.y;if(r){const e=Gs.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.startLabelRight){const e=zd.get(t.id).startRight;let i=t.x,a=t.y;if(r){const e=Gs.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelLeft){const e=zd.get(t.id).endLeft;let i=t.x,a=t.y;if(r){const e=Gs.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelRight){const e=zd.get(t.id).endRight;let i=t.x,a=t.y;if(r){const e=Gs.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);i=e.x,a=e.y}e.attr("transform",`translate(${i}, ${a})`)}}),"positionEdgeLabel"),Vd=Fe(((t,e)=>{const r=t.x,i=t.y,a=Math.abs(e.x-r),o=Math.abs(e.y-i),n=t.width/2,s=t.height/2;return a>=n||o>=s}),"outsideNode"),Gd=Fe(((t,e,r)=>{$e.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,a=t.y,o=Math.abs(i-r.x),n=t.width/2;let s=r.x<e.x?n-o:n+o;const l=t.height/2,h=Math.abs(e.y-r.y),c=Math.abs(e.x-r.x);if(Math.abs(a-e.y)*n>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-a:a-l-e.y;s=c*t/h;const i={x:r.x<e.x?r.x+s:r.x-c+s,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===s&&(i.x=e.x,i.y=e.y),0===c&&(i.x=e.x),0===h&&(i.y=e.y),$e.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${c}, r ${s}`,i),i}{s=r.x<e.x?e.x-n-i:i-n-e.x;let t=h*s/c,a=r.x<e.x?r.x+c-s:r.x-c+s,o=r.y<e.y?r.y+t:r.y-t;return $e.debug(`sides calc abc89, Q ${h}, q ${t}, R ${c}, r ${s}`,{_x:a,_y:o}),0===s&&(a=e.x,o=e.y),0===c&&(a=e.x),0===h&&(o=e.y),{x:a,y:o}}}),"intersection"),Xd=Fe(((t,e)=>{$e.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],a=!1;return t.forEach((t=>{if($e.info("abc88 checking point",t,e),Vd(e,t)||a)$e.warn("abc88 outside",t,i),i=t,a||r.push(t);else{const o=Gd(e,i,t);$e.debug("abc88 inside",t,i,o),$e.debug("abc88 intersection",o,e);let n=!1;r.forEach((t=>{n=n||t.x===o.x&&t.y===o.y})),r.some((t=>t.x===o.x&&t.y===o.y))?$e.warn("abc88 no intersect",o,r):r.push(o),a=!0}})),$e.debug("returning points",r),r}),"cutPathAtIntersect");function Zd(t){const e=[],r=[];for(let i=1;i<t.length-1;i++){const a=t[i-1],o=t[i],n=t[i+1];(a.x===o.x&&o.y===n.y&&Math.abs(o.x-n.x)>5&&Math.abs(o.y-a.y)>5||a.y===o.y&&o.x===n.x&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-n.y)>5)&&(e.push(o),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}Fe(Zd,"extractCornerPoints");var Kd=Fe((function(t,e,r){const i=e.x-t.x,a=e.y-t.y,o=r/Math.sqrt(i*i+a*a);return{x:e.x-o*i,y:e.y-o*a}}),"findAdjacentPoint"),Jd=Fe((function(t){const{cornerPointPositions:e}=Zd(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){const e=t[i-1],a=t[i+1],o=t[i],n=Kd(e,o,5),s=Kd(a,o,5),l=s.x-n.x,h=s.y-n.y;r.push(n);const c=2*Math.sqrt(2);let d={x:o.x,y:o.y};if(Math.abs(a.x-e.x)>10&&Math.abs(a.y-e.y)>=10){$e.debug("Corner point fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y));const t=5;d=o.x===n.x?{x:l<0?n.x-t+c:n.x+t-c,y:h<0?n.y-c:n.y+c}:{x:l<0?n.x-c:n.x+c,y:h<0?n.y-t+c:n.y+t-c}}else $e.debug("Corner point skipping fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y));r.push(d,s)}else r.push(t[i]);return r}),"fixCorners"),Qd=Fe((function(t,e,r,i,a,o,n){var s;const{handDrawnSeed:l}=Ti();let h=e.points,c=!1;const d=a;var u=o;const p=[];for(const B in e.cssCompiledStyles)Eh(B)||p.push(e.cssCompiledStyles[B]);u.intersect&&d.intersect&&(h=h.slice(1,e.points.length-1),h.unshift(d.intersect(h[0])),$e.debug("Last point APA12",e.start,"--\x3e",e.end,h[h.length-1],u,u.intersect(h[h.length-1])),h.push(u.intersect(h[h.length-1]))),e.toCluster&&($e.info("to cluster abc88",r.get(e.toCluster)),h=Xd(e.points,r.get(e.toCluster).node),c=!0),e.fromCluster&&($e.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(h,null,2)),h=Xd(h.reverse(),r.get(e.fromCluster).node).reverse(),c=!0);let g=h.filter((t=>!Number.isNaN(t.y)));g=Jd(g);let f=U;switch(f=I,e.curve){case"linear":f=I;break;case"basis":default:f=U;break;case"cardinal":f=q;break;case"bumpX":f=K;break;case"bumpY":f=J;break;case"catmullRom":f=P;break;case"monotoneX":f=D;break;case"monotoneY":f=$;break;case"natural":f=E;break;case"step":f=A;break;case"stepAfter":f=F;break;case"stepBefore":f=_}const{x:m,y:y}=In(e),x=V().x(m).y(y).curve(f);let b,C;switch(e.thickness){case"normal":default:b="edge-thickness-normal";break;case"thick":b="edge-thickness-thick";break;case"invisible":b="edge-thickness-invisible"}switch(e.pattern){case"solid":default:b+=" edge-pattern-solid";break;case"dotted":b+=" edge-pattern-dotted";break;case"dashed":b+=" edge-pattern-dashed"}let k=x(g);const w=Array.isArray(e.style)?e.style:[e.style];let S=w.find((t=>null==t?void 0:t.startsWith("stroke:")));if("handDrawn"===e.look){const r=mh(t);Object.assign([],g);const i=r.path(k,{roughness:.3,seed:l});b+=" transition",C=M(i).select("path").attr("id",e.id).attr("class"," "+b+(e.classes?" "+e.classes:"")).attr("style",w?w.reduce(((t,e)=>t+";"+e),""):"");let a=C.attr("d");C.attr("d",a),t.node().appendChild(C.node())}else{const r=p.join(";"),i=w?w.reduce(((t,e)=>t+e+";"),""):"";let a="";e.animate&&(a=" edge-animation-fast"),e.animation&&(a=" edge-animation-"+e.animation);const o=r?r+";"+i+";":i;C=t.append("path").attr("d",k).attr("id",e.id).attr("class"," "+b+(e.classes?" "+e.classes:"")+(a??"")).attr("style",o),S=null==(s=o.match(/stroke:([^;]+)/))?void 0:s[1]}let v="";(Ti().flowchart.arrowMarkerAbsolute||Ti().state.arrowMarkerAbsolute)&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),$e.info("arrowTypeStart",e.arrowTypeStart),$e.info("arrowTypeEnd",e.arrowTypeEnd),Pd(C,e,v,n,i,S);let T={};return c&&(T.updatedPath=h),T.originalPath=e.points,T}),"insertEdge"),tu=Fe(((t,e,r,i)=>{e.forEach((e=>{eu[e](t,r,i)}))}),"insertMarkers"),eu={extension:Fe(((t,e,r)=>{$e.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).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:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).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:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).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:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).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:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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:Fe(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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:Fe(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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:Fe(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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:Fe(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),a.append("path").attr("d","M21,0 L21,18")}),"zero_or_one"),one_or_more:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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:Fe(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}),"zero_or_more"),requirement_arrow:Fe(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d","M0,0\n L20,10\n M20,10\n L0,20")}),"requirement_arrow"),requirement_contains:Fe(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)}),"requirement_contains")},ru=tu,iu={common:ri,getConfig:Sr,insertCluster:zh,insertEdge:Qd,insertEdgeLabel:Hd,insertMarkers:ru,insertNode:$d,interpolateToCurve:bs,labelHelper:yh,log:$e,positionEdgeLabel:Ud},au={},ou=Fe((t=>{for(const e of t)au[e.name]=e}),"registerLayoutLoaders");Fe((()=>{ou([{name:"dagre",loader:Fe((async()=>await x((()=>import("./dagre-OKDRZEBW-DE3xoxsa.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url)),"loader")}])}),"registerDefaultLayoutLoaders")();var nu=Fe((async(t,e)=>{if(!(t.layoutAlgorithm in au))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=au[t.layoutAlgorithm];return(await r.loader()).render(t,e,iu,{algorithm:r.algorithm})}),"render"),su=Fe(((t="",{fallback:e="dagre"}={})=>{if(t in au)return t;if(e in au)return $e.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)}),"getRegisteredLayoutAlgorithm"),lu={name:"mermaid",version:"11.6.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},hu=Fe((t=>{var e;const{securityLevel:r}=Ti();let i=M("body");if("sandbox"===r){const r=(null==(e=M(`#i${t}`).node())?void 0:e.contentDocument)??document;i=M(r.body)}return i.select(`#${t}`)}),"selectSvgElement"),cu="comm",du="rule",uu="decl",pu=Math.abs,gu=String.fromCharCode;function fu(t){return t.trim()}function mu(t,e,r){return t.replace(e,r)}function yu(t,e,r){return t.indexOf(e,r)}function xu(t,e){return 0|t.charCodeAt(e)}function bu(t,e,r){return t.slice(e,r)}function Cu(t){return t.length}function ku(t,e){return e.push(t),t}var wu=1,Su=1,vu=0,Tu=0,Bu=0,Lu="";function Mu(t,e,r,i,a,o,n,s){return{value:t,root:e,parent:r,type:i,props:a,children:o,line:wu,column:Su,length:n,return:"",siblings:s}}function _u(){return Bu=Tu<vu?xu(Lu,Tu++):0,Su++,10===Bu&&(Su=1,wu++),Bu}function Fu(){return xu(Lu,Tu)}function Au(){return Tu}function Eu(t,e){return bu(Lu,t,e)}function $u(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Du(t){return fu(Eu(Tu-1,Pu(91===t?t+2:40===t?t+1:t)))}function Ou(t){for(;(Bu=Fu())&&Bu<33;)_u();return $u(t)>2||$u(Bu)>3?"":" "}function Iu(t,e){for(;--e&&_u()&&!(Bu<48||Bu>102||Bu>57&&Bu<65||Bu>70&&Bu<97););return Eu(t,Au()+(e<6&&32==Fu()&&32==_u()))}function Pu(t){for(;_u();)switch(Bu){case t:return Tu;case 34:case 39:34!==t&&39!==t&&Pu(Bu);break;case 40:41===t&&Pu(t);break;case 92:_u()}return Tu}function Ru(t,e){for(;_u()&&t+Bu!==57&&(t+Bu!==84||47!==Fu()););return"/*"+Eu(e,Tu-1)+"*"+gu(47===t?t:_u())}function Nu(t){for(;!$u(Fu());)_u();return Eu(t,Tu)}function qu(t){return function(t){return Lu="",t}(zu("",null,null,null,[""],t=function(t){return wu=Su=1,vu=Cu(Lu=t),Tu=0,[]}(t),0,[0],t))}function zu(t,e,r,i,a,o,n,s,l){for(var h=0,c=0,d=n,u=0,p=0,g=0,f=1,m=1,y=1,x=0,b="",C=a,k=o,w=i,S=b;m;)switch(g=x,x=_u()){case 40:if(108!=g&&58==xu(S,d-1)){-1!=yu(S+=mu(Du(x),"&","&\f"),"&\f",pu(h?s[h-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=Du(x);break;case 9:case 10:case 13:case 32:S+=Ou(g);break;case 92:S+=Iu(Au()-1,7);continue;case 47:switch(Fu()){case 42:case 47:ku(ju(Ru(_u(),Au()),e,r,l),l),5!=$u(g||1)&&5!=$u(Fu()||1)||!Cu(S)||" "===bu(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*f:s[h++]=Cu(S)*y;case 125*f:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+c:-1==y&&(S=mu(S,/\f/g,"")),p>0&&(Cu(S)-d||0===f&&47===g)&&ku(p>32?Hu(S+";",i,r,d-1,l):Hu(mu(S," ","")+";",i,r,d-2,l),l);break;case 59:S+=";";default:if(ku(w=Wu(S,e,r,h,c,a,s,b,C=[],k=[],d,o),o),123===x)if(0===c)zu(S,e,w,w,C,o,d,s,k);else{switch(u){case 99:if(110===xu(S,3))break;case 108:if(97===xu(S,2))break;default:c=0;case 100:case 109:case 115:}c?zu(t,w,w,i&&ku(Wu(t,w,w,0,0,a,s,b,a,C=[],d,k),k),a,k,d,s,i?C:k):zu(S,w,w,w,[""],k,0,s,k)}}h=c=p=0,f=y=1,b=S="",d=n;break;case 58:d=1+Cu(S),p=g;default:if(f<1)if(123==x)--f;else if(125==x&&0==f++&&125==(Bu=Tu>0?xu(Lu,--Tu):0,Su--,10===Bu&&(Su=1,wu--),Bu))continue;switch(S+=gu(x),x*f){case 38:y=c>0?1:(S+="\f",-1);break;case 44:s[h++]=(Cu(S)-1)*y,y=1;break;case 64:45===Fu()&&(S+=Du(_u())),u=Fu(),c=d=Cu(b=S+=Nu(Au())),x++;break;case 45:45===g&&2==Cu(S)&&(f=0)}}return o}function Wu(t,e,r,i,a,o,n,s,l,h,c,d){for(var u=a-1,p=0===a?o:[""],g=function(t){return t.length}(p),f=0,m=0,y=0;f<i;++f)for(var x=0,b=bu(t,u+1,u=pu(m=n[f])),C=t;x<g;++x)(C=fu(m>0?p[x]+" "+b:mu(b,/&\f/g,p[x])))&&(l[y++]=C);return Mu(t,e,r,0===a?du:s,l,h,c,d)}function ju(t,e,r,i){return Mu(t,e,r,cu,gu(Bu),bu(t,2,-2),0,i)}function Hu(t,e,r,i,a){return Mu(t,e,r,uu,bu(t,0,i),bu(t,i+1,-1),i,a)}function Yu(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function Uu(t,e,r,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case uu:return t.return=t.return||t.value;case cu:return"";case"@keyframes":return t.return=t.value+"{"+Yu(t.children,i)+"}";case du:if(!Cu(t.value=t.props.join(",")))return""}return Cu(r=Yu(t.children,i))?t.return=t.value+"{"+r+"}":""}var Vu={id:"c4",detector:Fe((t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./c4Diagram-VJAJSXHY-C4mhf3Aa.js");return{diagram:t}}),__vite__mapDeps([14,15,11,12,2,3,13]),import.meta.url);return{id:"c4",diagram:t}}),"loader")},Gu="flowchart",Xu={id:Gu,detector:Fe(((t,e)=>{var r,i;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&/^\s*graph/.test(t)}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-D_rCoypN.js");return{diagram:t}}),__vite__mapDeps([16,17,11,12,18,2,3,13]),import.meta.url);return{id:Gu,diagram:t}}),"loader")},Zu="flowchart-v2",Ku={id:Zu,detector:Fe(((t,e)=>{var r,i,a;return"dagre-d3"!==(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer)&&("elk"===(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&(e.layout="elk"),!(!/^\s*graph/.test(t)||"dagre-wrapper"!==(null==(a=null==e?void 0:e.flowchart)?void 0:a.defaultRenderer))||/^\s*flowchart/.test(t))}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-D_rCoypN.js");return{diagram:t}}),__vite__mapDeps([16,17,11,12,18,2,3,13]),import.meta.url);return{id:Zu,diagram:t}}),"loader")},Ju={id:"er",detector:Fe((t=>/^\s*erDiagram/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./erDiagram-Q7BY3M3F-DWHoCgAJ.js");return{diagram:t}}),__vite__mapDeps([19,17,11,12,18,2,3,13]),import.meta.url);return{id:"er",diagram:t}}),"loader")},Qu="gitGraph",tp={id:Qu,detector:Fe((t=>/^\s*gitGraph/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./gitGraphDiagram-7IBYFJ6S-ErZPaKoV.js");return{diagram:t}}),__vite__mapDeps([20,21,22,23,2,3,5,4,7,8,10,24,11,12,13]),import.meta.url);return{id:Qu,diagram:t}}),"loader")},ep="gantt",rp={id:ep,detector:Fe((t=>/^\s*gantt/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./ganttDiagram-APWFNJXF-CHIT-PcJ.js");return{diagram:t}}),__vite__mapDeps([25,2,3,11,12,26,27,28,13]),import.meta.url);return{id:ep,diagram:t}}),"loader")},ip="info",ap={id:ip,detector:Fe((t=>/^\s*info/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./infoDiagram-PH2N3AL5-k9F5eQpB.js");return{diagram:t}}),__vite__mapDeps([29,23,2,3,5,4,7,8,10,24,11,12,13]),import.meta.url);return{id:ip,diagram:t}}),"loader")},op={id:"pie",detector:Fe((t=>/^\s*pie/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./pieDiagram-IB7DONF6--fIB0xWO.js");return{diagram:t}}),__vite__mapDeps([30,21,23,2,3,5,4,7,8,10,24,11,12,31,13,32,28]),import.meta.url);return{id:"pie",diagram:t}}),"loader")},np="quadrantChart",sp={id:np,detector:Fe((t=>/^\s*quadrantChart/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./quadrantDiagram-7GDLP6J5-DrySMa8i.js");return{diagram:t}}),__vite__mapDeps([33,11,12,27,2,3,28,13]),import.meta.url);return{id:np,diagram:t}}),"loader")},lp="xychart",hp={id:lp,detector:Fe((t=>/^\s*xychart-beta/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./xychartDiagram-VJFVF3MP-DHps7gn-.js");return{diagram:t}}),__vite__mapDeps([34,11,12,28,32,35,27,2,3,13]),import.meta.url);return{id:lp,diagram:t}}),"loader")},cp="requirement",dp={id:cp,detector:Fe((t=>/^\s*requirement(Diagram)?/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./requirementDiagram-KVF5MWMF-CrGS2s0Z.js");return{diagram:t}}),__vite__mapDeps([36,17,11,12,2,3,13]),import.meta.url);return{id:cp,diagram:t}}),"loader")},up="sequence",pp={id:up,detector:Fe((t=>/^\s*sequenceDiagram/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./sequenceDiagram-X6HHIX6F-C6VC8LOY.js");return{diagram:t}}),__vite__mapDeps([37,15,22,11,12,2,3,13]),import.meta.url);return{id:up,diagram:t}}),"loader")},gp="class",fp={id:gp,detector:Fe(((t,e)=>{var r;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.class)?void 0:r.defaultRenderer)&&/^\s*classDiagram/.test(t)}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./classDiagram-GIVACNV2-CDT_8kPv.js");return{diagram:t}}),__vite__mapDeps([38,39,17,11,12,2,3,13]),import.meta.url);return{id:gp,diagram:t}}),"loader")},mp="classDiagram",yp={id:mp,detector:Fe(((t,e)=>{var r;return!(!/^\s*classDiagram/.test(t)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.class)?void 0:r.defaultRenderer))||/^\s*classDiagram-v2/.test(t)}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./classDiagram-v2-COTLJTTW-CDT_8kPv.js");return{diagram:t}}),__vite__mapDeps([40,39,17,11,12,2,3,13]),import.meta.url);return{id:mp,diagram:t}}),"loader")},xp="state",bp={id:xp,detector:Fe(((t,e)=>{var r;return"dagre-wrapper"!==(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer)&&/^\s*stateDiagram/.test(t)}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./stateDiagram-DGXRK772-CTMc5Gvb.js");return{diagram:t}}),__vite__mapDeps([41,42,17,11,12,1,2,3,4,5,6,7,8,9,13]),import.meta.url);return{id:xp,diagram:t}}),"loader")},Cp="stateDiagram",kp={id:Cp,detector:Fe(((t,e)=>{var r;return!!/^\s*stateDiagram-v2/.test(t)||!(!/^\s*stateDiagram/.test(t)||"dagre-wrapper"!==(null==(r=null==e?void 0:e.state)?void 0:r.defaultRenderer))}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./stateDiagram-v2-YXO3MK2T-DnNajpIH.js");return{diagram:t}}),__vite__mapDeps([43,42,17,11,12,2,3,13]),import.meta.url);return{id:Cp,diagram:t}}),"loader")},wp="journey",Sp={id:wp,detector:Fe((t=>/^\s*journey/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./journeyDiagram-U35MCT3I-DiK9Dw9g.js");return{diagram:t}}),__vite__mapDeps([44,15,11,12,31,13,2,3]),import.meta.url);return{id:wp,diagram:t}}),"loader")},vp={draw:Fe(((t,e,r)=>{$e.debug("rendering svg for syntax error\n");const i=hu(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),oi(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)}),"draw")},Tp=vp,Bp={db:{},renderer:vp,parser:{parse:Fe((()=>{}),"parse")}},Lp="flowchart-elk",Mp={id:Lp,detector:Fe(((t,e={})=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&"elk"===(null==(r=null==e?void 0:e.flowchart)?void 0:r.defaultRenderer))&&(e.layout="elk",!0)}),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./flowDiagram-4HSFHLVR-D_rCoypN.js");return{diagram:t}}),__vite__mapDeps([16,17,11,12,18,2,3,13]),import.meta.url);return{id:Lp,diagram:t}}),"loader")},_p="timeline",Fp={id:_p,detector:Fe((t=>/^\s*timeline/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./timeline-definition-BDJGKUSR-DxC35mOc.js");return{diagram:t}}),__vite__mapDeps([45,11,12,31,13,2,3]),import.meta.url);return{id:_p,diagram:t}}),"loader")},Ap="mindmap",Ep={id:Ap,detector:Fe((t=>/^\s*mindmap/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./mindmap-definition-ALO5MXBD-Ds099Ktp.js");return{diagram:t}}),__vite__mapDeps([46,47,2,3,11,12,13]),import.meta.url);return{id:Ap,diagram:t}}),"loader")},$p="kanban",Dp={id:$p,detector:Fe((t=>/^\s*kanban/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./kanban-definition-NDS4AKOZ-CjYNE8xn.js");return{diagram:t}}),__vite__mapDeps([48,2,3,11,12,13]),import.meta.url);return{id:$p,diagram:t}}),"loader")},Op="sankey",Ip={id:Op,detector:Fe((t=>/^\s*sankey-beta/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./sankeyDiagram-QLVOVGJD-DKjckX4b.js");return{diagram:t}}),__vite__mapDeps([49,11,12,32,28,50,2,3,13]),import.meta.url);return{id:Op,diagram:t}}),"loader")},Pp="packet",Rp={id:Pp,detector:Fe((t=>/^\s*packet-beta/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./diagram-VNBRO52H-j3UmS0Ll.js");return{diagram:t}}),__vite__mapDeps([51,21,23,2,3,5,4,7,8,10,24,11,12,13]),import.meta.url);return{id:Pp,diagram:t}}),"loader")},Np="radar",qp={id:Np,detector:Fe((t=>/^\s*radar-beta/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./diagram-SSKATNLV-DRGoOkB7.js");return{diagram:t}}),__vite__mapDeps([52,21,23,2,3,5,4,7,8,10,24,11,12,13]),import.meta.url);return{id:Np,diagram:t}}),"loader")},zp="block",Wp={id:zp,detector:Fe((t=>/^\s*block-beta/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./blockDiagram-JOT3LUYC-CatesY43.js");return{diagram:t}}),__vite__mapDeps([53,10,4,2,3,5,11,12,1,18,13]),import.meta.url);return{id:zp,diagram:t}}),"loader")},jp="architecture",Hp={id:jp,detector:Fe((t=>/^\s*architecture/.test(t)),"detector"),loader:Fe((async()=>{const{diagram:t}=await x((async()=>{const{diagram:t}=await import("./architectureDiagram-IEHRJDOE-CU0QICJs.js");return{diagram:t}}),__vite__mapDeps([54,21,22,23,2,3,5,4,7,8,10,24,47,11,12,13]),import.meta.url);return{id:jp,diagram:t}}),"loader")},Yp=!1,Up=Fe((()=>{Yp||(Yp=!0,Ei("error",Bp,(t=>"error"===t.toLowerCase().trim())),Ei("---",{db:{clear:Fe((()=>{}),"clear")},styles:{},renderer:{draw:Fe((()=>{}),"draw")},parser:{parse:Fe((()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}),"parse")},init:Fe((()=>null),"init")},(t=>t.toLowerCase().trimStart().startsWith("---"))),We(Vu,Dp,yp,fp,Ju,rp,ap,op,dp,pp,Mp,Ku,Xu,Ep,Fp,tp,kp,bp,Sp,sp,Ip,Rp,hp,Wp,Hp,qp))}),"addDiagrams"),Vp=Fe((async()=>{$e.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(qe).map((async([t,{detector:e,loader:r}])=>{if(r)try{$i(t)}catch{try{const{diagram:t,id:i}=await r();Ei(i,t,e)}catch(i){throw $e.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete qe[t],i}}})))).filter((t=>"rejected"===t.status));if(t.length>0){$e.error(`Failed to load ${t.length} external diagrams`);for(const e of t)$e.error(e);throw new Error(`Failed to load ${t.length} external diagrams`)}}),"loadRegisteredDiagrams");function Gp(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function Xp(t,e,r,i){if(void 0!==t.insert){if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}Fe(Gp,"setA11yDiagramInfo"),Fe(Xp,"addSVGa11yTitleDescription");var Zp=(Fe(l=class{constructor(t,e,r,i,a){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=a}static async fromText(t,e={}){var r,i;const a=Sr(),o=ze(t,a);t=Xs(t)+"\n";try{$i(o)}catch{const t=He(o);if(!t)throw new Ne(`Diagram ${o} not found.`);const{id:e,diagram:r}=await t();Ei(e,r)}const{db:n,parser:s,renderer:h,init:c}=$i(o);return s.parser&&(s.parser.yy=n),null==(r=n.clear)||r.call(n),null==c||c(a),e.title&&(null==(i=n.setDiagramTitle)||i.call(n,e.title)),await s.parse(t),new l(o,t,n,s,h)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},"Diagram"),l),Kp=[],Jp=Fe((()=>{Kp.forEach((t=>{t()})),Kp=[]}),"attachFunctions"),Qp=Fe((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function tg(t){const e=t.match(Ie);if(!e)return{text:t,metadata:{}};let r=En(e[1],{schema:An})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}Fe(tg,"extractFrontMatter");var eg=Fe((t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText"),rg=Fe((t=>{const{text:e,metadata:r}=tg(t),{displayMode:i,title:a,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:a,config:o,text:e}}),"processFrontmatter"),ig=Fe((t=>{const e=Gs.detectInit(t)??{},r=Gs.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some((({type:t})=>"wrap"===t)):"wrap"===(null==r?void 0:r.type)&&(e.wrap=!0),{text:ys(t),directive:e}}),"processDirectives");function ag(t){const e=eg(t),r=rg(e),i=ig(r.text),a=Vs(r.config,i.directive);return{code:t=Qp(i.text),title:r.title,config:a}}function og(t){const e=(new TextEncoder).encode(t),r=Array.from(e,(t=>String.fromCodePoint(t))).join("");return btoa(r)}Fe(ag,"preprocessDiagram"),Fe(og,"toBase64");var ng=["foreignobject"],sg=["dominant-baseline"];function lg(t){const e=ag(t);return Br(),Tr(e.config??{}),e}async function hg(t,e){Up();try{const{code:e,config:r}=lg(t);return{diagramType:(await Cg(e)).type,config:r}}catch(r){if(null==e?void 0:e.suppressErrors)return!1;throw r}}Fe(lg,"processAndSetConfigs"),Fe(hg,"parse");var cg=Fe(((t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`),"cssImportantStyles"),dg=Fe(((t,e=new Map)=>{var r;let i="";if(void 0!==t.themeCSS&&(i+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(i+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(i+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const a=t.htmlLabels??(null==(r=t.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach((t=>{X(t.styles)||a.forEach((e=>{i+=cg(t.id,e,t.styles)})),X(t.textStyles)||(i+=cg(t.id,"tspan",((null==t?void 0:t.textStyles)||[]).map((t=>t.replace("color","fill")))))}))}return i}),"createCssStyles"),ug=Fe(((t,e,r,i)=>{const a=dg(t,r);return Yu(qu(`${i}{${ci(e,a,t.themeVariables)}}`),Uu)}),"createUserStyles"),pg=Fe(((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Zs(i),i=i.replace(/<br>/g,"<br/>"),i}),"cleanUpSvgCode"),gg=Fe(((t="",e)=>{var r,i;return`<iframe style="width:100%;height:${(null==(i=null==(r=null==e?void 0:e.viewBox)?void 0:r.baseVal)?void 0:i.height)?e.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${og(`<body style="margin:0">${t}</body>`)}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n The "iframe" tag is not supported by your browser.\n</iframe>`}),"putIntoIFrame"),fg=Fe(((t,e,r,i,a)=>{const o=t.append("div");o.attr("id",r),i&&o.attr("style",i);const n=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return a&&n.attr("xmlns:xlink",a),n.append("g"),t}),"appendDivSvgG");function mg(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}Fe(mg,"sandboxedIframe");var yg=Fe(((t,e,r,i)=>{var a,o,n;null==(a=t.getElementById(e))||a.remove(),null==(o=t.getElementById(r))||o.remove(),null==(n=t.getElementById(i))||n.remove()}),"removeExistingElements"),xg=Fe((async function(t,e,r){var i,a,o,n,s,l;Up();const h=lg(e);e=h.code;const c=Sr();$e.debug(c),e.length>((null==c?void 0:c.maxTextSize)??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");const d="#"+t,u="i"+t,p="#"+u,g="d"+t,f="#"+g,m=Fe((()=>{const t=M(x?p:f).node();t&&"remove"in t&&t.remove()}),"removeTempElements");let y=M("body");const x="sandbox"===c.securityLevel,b="loose"===c.securityLevel,C=c.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),x){const t=mg(M(r),u);y=M(t.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=M(r);fg(y,t,g,`font-family: ${C}`,"http://www.w3.org/1999/xlink")}else{if(yg(document,t,g,u),x){const t=mg(M("body"),u);y=M(t.nodes()[0].contentDocument.body),y.node().style.margin=0}else y=M("body");fg(y,t,g)}let k,w;try{k=await Zp.fromText(e,{title:h.title})}catch(E){if(c.suppressErrorRendering)throw m(),E;k=await Zp.fromText("error"),w=E}const S=y.select(f).node(),v=k.type,T=S.firstChild,B=T.firstChild,L=null==(a=(i=k.renderer).getClasses)?void 0:a.call(i,e,k),_=ug(c,v,L,d),F=document.createElement("style");F.innerHTML=_,T.insertBefore(F,B);try{await k.renderer.draw(e,t,lu.version,k)}catch($){throw c.suppressErrorRendering?m():Tp.draw(e,t,lu.version),$}kg(v,y.select(`${f} svg`),null==(n=(o=k.db).getAccTitle)?void 0:n.call(o),null==(l=(s=k.db).getAccDescription)?void 0:l.call(s)),y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let A=y.select(f).node().innerHTML;if($e.debug("config.arrowMarkerAbsolute",c.arrowMarkerAbsolute),A=pg(A,x,Hr(c.arrowMarkerAbsolute)),x){const t=y.select(f+" svg").node();A=gg(A,t)}else b||(A=Me.sanitize(A,{ADD_TAGS:ng,ADD_ATTR:sg,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(Jp(),w)throw w;return m(),{diagramType:v,svg:A,bindFunctions:k.db.bindFunctions}}),"render");function bg(t={}){var e;const r=Ue({},t);(null==r?void 0:r.fontFamily)&&!(null==(e=r.themeVariables)?void 0:e.fontFamily)&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),br(r),(null==r?void 0:r.theme)&&r.theme in or?r.themeVariables=or[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=or.default.getThemeVariables(r.themeVariables));const i="object"==typeof r?xr(r):kr();De(i.logLevel),Up()}Fe(bg,"initialize");var Cg=Fe(((t,e={})=>{const{code:r}=ag(t);return Zp.fromText(r,e)}),"getDiagramFromText");function kg(t,e,r,i){Gp(e,t),Xp(e,r,i,e.attr("id"))}Fe(kg,"addA11yInfo");var wg=Object.freeze({render:xg,parse:hg,getDiagramFromText:Cg,initialize:bg,getConfig:Sr,setConfig:wr,getSiteConfig:kr,updateSiteConfig:Cr,reset:Fe((()=>{Br()}),"reset"),globalReset:Fe((()=>{Br(pr)}),"globalReset"),defaultConfig:pr});De(Sr().logLevel),Br(Sr());var Sg=Fe(((t,e,r)=>{$e.warn(t),Hs(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))}),"handleError"),vg=Fe((async function(t={querySelector:".mermaid"}){try{await Tg(t)}catch(e){if(Hs(e)&&$e.error(e.str),Ig.parseError&&Ig.parseError(e),!t.suppressErrors)throw $e.error("Use the suppressErrors option to suppress these errors"),e}}),"run"),Tg=Fe((async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=wg.getConfig();let a;if($e.debug((t?"":"No ")+"Callback function found"),r)a=r;else{if(!e)throw new Error("Nodes and querySelector are both undefined");a=document.querySelectorAll(e)}$e.debug(`Found ${a.length} diagrams`),void 0!==(null==i?void 0:i.startOnLoad)&&($e.debug("Start On Load: "+(null==i?void 0:i.startOnLoad)),wg.updateSiteConfig({startOnLoad:null==i?void 0:i.startOnLoad}));const o=new Gs.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let n;const s=[];for(const h of Array.from(a)){if($e.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const e=`mermaid-${o.next()}`;n=h.innerHTML,n=Qs(Gs.entityDecode(n)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=Gs.detectInit(n);r&&$e.debug("Detected early reinit: ",r);try{const{svg:r,bindFunctions:i}=await Og(e,n,h);h.innerHTML=r,t&&await t(e),i&&i(h)}catch(l){Sg(l,s,Ig.parseError)}}if(s.length>0)throw s[0]}),"runThrowsErrors"),Bg=Fe((function(t){wg.initialize(t)}),"initialize"),Lg=Fe((async function(t,e,r){$e.warn("mermaid.init is deprecated. Please use run instead."),t&&Bg(t);const i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await vg(i)}),"init"),Mg=Fe((async(t,{lazyLoad:e=!0}={})=>{Up(),We(...t),!1===e&&await Vp()}),"registerExternalDiagrams"),_g=Fe((function(){if(Ig.startOnLoad){const{startOnLoad:t}=wg.getConfig();t&&Ig.run().catch((t=>$e.error("Mermaid failed to initialize",t)))}}),"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",_g,!1);var Fg=Fe((function(t){Ig.parseError=t}),"setParseErrorHandler"),Ag=[],Eg=!1,$g=Fe((async()=>{if(!Eg){for(Eg=!0;Ag.length>0;){const e=Ag.shift();if(e)try{await e()}catch(t){$e.error("Error executing queue",t)}}Eg=!1}}),"executeQueue"),Dg=Fe((async(t,e)=>new Promise(((r,i)=>{const a=Fe((()=>new Promise(((a,o)=>{wg.parse(t,e).then((t=>{a(t),r(t)}),(t=>{var e;$e.error("Error parsing",t),null==(e=Ig.parseError)||e.call(Ig,t),o(t),i(t)}))}))),"performCall");Ag.push(a),$g().catch(i)}))),"parse"),Og=Fe(((t,e,r)=>new Promise(((i,a)=>{const o=Fe((()=>new Promise(((o,n)=>{wg.render(t,e,r).then((t=>{o(t),i(t)}),(t=>{var e;$e.error("Error parsing",t),null==(e=Ig.parseError)||e.call(Ig,t),n(t),a(t)}))}))),"performCall");Ag.push(o),$g().catch(a)}))),"render"),Ig={startOnLoad:!0,mermaidAPI:wg,parse:Dg,render:Og,init:Lg,run:vg,registerExternalDiagrams:Mg,registerLayoutLoaders:ou,initialize:Bg,parseError:void 0,contentLoaded:_g,setParseErrorHandler:Fg,detectType:ze,registerIconPacks:ns},Pg=Ig;
|
|
3
|
+
/*! Check if previously processed */
|
|
4
|
+
/*!
|
|
5
|
+
* Wait for document loaded before starting the execution
|
|
6
|
+
*/
|
|
7
|
+
const Rg={startOnLoad:!0,theme:"forest",logLevel:"fatal",securityLevel:"strict",fontFamily:"var(--text-font)",arrowMarkerAbsolute:!1,flowchart:{htmlLabels:!0,curve:"linear"},sequence:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d"}};function Ng(){return function(){const t="abcdefghijklmnopqrstuvwxyz";return Array.from({length:6},(()=>t[Math.floor(26*Math.random())])).join("")}()}const qg=Object.freeze(Object.defineProperty({__proto__:null,default:t=>{const e=w.c(9),{diagram:r}=t,[i]=S.useState(Ng),a="dark"===v().theme;let o,n;Pg.initialize({...Rg,theme:a?"dark":"forest",darkMode:a}),e[0]!==r||e[1]!==i?(o=async()=>(await Pg.render(i,r,void 0).catch((t=>{var e;throw null==(e=document.getElementById(i))||e.remove(),B.warn("Failed to render mermaid diagram",t),t}))).svg,e[0]=r,e[1]=i,e[2]=o):o=e[2],e[3]!==a||e[4]!==r||e[5]!==i?(n=[r,i,a],e[3]=a,e[4]=r,e[5]=i,e[6]=n):n=e[6];const{data:s}=T(o,n);if(!s)return null;let l;return e[7]!==s?(l=L.jsx("div",{dangerouslySetInnerHTML:{__html:s}}),e[7]=s,e[8]=l):l=e[8],l}},Symbol.toStringTag,{value:"Module"}));export{$d as $,mt as A,Ae as B,gt as C,_i as D,Vs as E,Sr as F,cr as G,$s as H,hu as I,An as J,lu as K,er as L,Qr as M,ti as N,Us as O,ei as P,Vr as Q,As as R,ni as S,xt as T,it as U,Ct as V,kt as W,di as X,zh as Y,us as Z,Fe as _,xi as a,Id as a0,In as a1,Hr as a2,ml as a3,Pn as a4,fl as a5,Zs as a6,_s as a7,ul as a8,X as a9,ru as aa,Od as ab,Wd as ac,Wh as ad,bh as ae,Dd as af,Qd as ag,Ud as ah,Hd as ai,ls as aj,ns as ak,is as al,et as am,qg as an,yi as b,Ti as c,oi as d,Ue as e,Ns as f,Ci as g,Pr as h,ds as i,ri as j,Rs as k,$e as l,Ar as m,Bi as n,su as o,ki as p,wi as q,nu as r,bi as s,En as t,Gs as u,Ad as v,Is as w,Ks as x,mi as y,Li as z};
|