vibe-splain 1.0.0
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/commands/install.d.ts +1 -0
- package/dist/commands/install.js +78 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/mcp/server.d.ts +1 -0
- package/dist/mcp/server.js +72 -0
- package/dist/mcp/tools/get_file_context.d.ts +19 -0
- package/dist/mcp/tools/get_file_context.js +48 -0
- package/dist/mcp/tools/get_strategic_overview.d.ts +15 -0
- package/dist/mcp/tools/get_strategic_overview.js +45 -0
- package/dist/mcp/tools/get_wild_discoveries.d.ts +15 -0
- package/dist/mcp/tools/get_wild_discoveries.js +29 -0
- package/dist/mcp/tools/inspect_pillar.d.ts +19 -0
- package/dist/mcp/tools/inspect_pillar.js +37 -0
- package/dist/mcp/tools/mark_stale.d.ts +22 -0
- package/dist/mcp/tools/mark_stale.js +51 -0
- package/dist/mcp/tools/scan_project.d.ts +15 -0
- package/dist/mcp/tools/scan_project.js +66 -0
- package/dist/mcp/tools/write_decision_card.d.ts +57 -0
- package/dist/mcp/tools/write_decision_card.js +118 -0
- package/dist/ui/assets/abap-DsBKuouk.js +1 -0
- package/dist/ui/assets/actionscript-3-D_z4Izcz.js +1 -0
- package/dist/ui/assets/ada-727ZlQH0.js +1 -0
- package/dist/ui/assets/andromeeda-C3khCPGq.js +1 -0
- package/dist/ui/assets/angular-html-LfdN0zeE.js +1 -0
- package/dist/ui/assets/angular-ts-CKsD7JZE.js +1 -0
- package/dist/ui/assets/apache-Dn00JSTd.js +1 -0
- package/dist/ui/assets/apex-COJ4H7py.js +1 -0
- package/dist/ui/assets/apl-BBq3IX1j.js +1 -0
- package/dist/ui/assets/applescript-Bu5BbsvL.js +1 -0
- package/dist/ui/assets/ara-7O62HKoU.js +1 -0
- package/dist/ui/assets/arc-Bq1jVAKi.js +1 -0
- package/dist/ui/assets/architectureDiagram-3BPJPVTR-R4fhdlee.js +36 -0
- package/dist/ui/assets/asciidoc-BPT9niGB.js +1 -0
- package/dist/ui/assets/asm-Dhn9LcZ4.js +1 -0
- package/dist/ui/assets/astro-CqkE3fuf.js +1 -0
- package/dist/ui/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/ui/assets/awk-eg146-Ew.js +1 -0
- package/dist/ui/assets/ayu-dark-Cv9koXgw.js +1 -0
- package/dist/ui/assets/ballerina-Du268qiB.js +1 -0
- package/dist/ui/assets/bat-fje9CFhw.js +1 -0
- package/dist/ui/assets/beancount-BwXTMy5W.js +1 -0
- package/dist/ui/assets/berry-3xVqZejG.js +1 -0
- package/dist/ui/assets/bibtex-xW4inM5L.js +1 -0
- package/dist/ui/assets/bicep-DHo0CJ0O.js +1 -0
- package/dist/ui/assets/blade-a8OxSdnT.js +1 -0
- package/dist/ui/assets/blockDiagram-GPEHLZMM-5XkEXQwI.js +132 -0
- package/dist/ui/assets/bsl-Dgyn0ogV.js +1 -0
- package/dist/ui/assets/c-C3t2pwGQ.js +1 -0
- package/dist/ui/assets/c4Diagram-AAUBKEIU-CVMRi7xO.js +10 -0
- package/dist/ui/assets/cadence-DNquZEk8.js +1 -0
- package/dist/ui/assets/cairo--RitsXJZ.js +1 -0
- package/dist/ui/assets/catppuccin-frappe-CD_QflpE.js +1 -0
- package/dist/ui/assets/catppuccin-latte-DRW-0cLl.js +1 -0
- package/dist/ui/assets/catppuccin-macchiato-C-_shW-Y.js +1 -0
- package/dist/ui/assets/catppuccin-mocha-LGGdnPYs.js +1 -0
- package/dist/ui/assets/channel-DskATRfv.js +1 -0
- package/dist/ui/assets/chunk-2J33WTMH-CjoczKe2.js +1 -0
- package/dist/ui/assets/chunk-4BX2VUAB-zlxS7kMe.js +1 -0
- package/dist/ui/assets/chunk-55IACEB6-u-aLoWTA.js +1 -0
- package/dist/ui/assets/chunk-727SXJPM-CPXGcGn3.js +206 -0
- package/dist/ui/assets/chunk-AQP2D5EJ-DSRK_fjR.js +231 -0
- package/dist/ui/assets/chunk-FMBD7UC4-BhHjdiID.js +15 -0
- package/dist/ui/assets/chunk-ND2GUHAM-Dt_b_VFL.js +1 -0
- package/dist/ui/assets/chunk-QZHKN3VN-ljd83veX.js +1 -0
- package/dist/ui/assets/clarity-BHOwM8T6.js +1 -0
- package/dist/ui/assets/classDiagram-4FO5ZUOK-C45wsrAC.js +1 -0
- package/dist/ui/assets/classDiagram-v2-Q7XG4LA2-C45wsrAC.js +1 -0
- package/dist/ui/assets/clojure-DxSadP1t.js +1 -0
- package/dist/ui/assets/cmake-DbXoA79R.js +1 -0
- package/dist/ui/assets/cobol-PTqiYgYu.js +1 -0
- package/dist/ui/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/ui/assets/codeql-sacFqUAJ.js +1 -0
- package/dist/ui/assets/coffee-dyiR41kL.js +1 -0
- package/dist/ui/assets/common-lisp-C7gG9l05.js +1 -0
- package/dist/ui/assets/coq-Dsg_Bt_b.js +1 -0
- package/dist/ui/assets/cose-bilkent-S5V4N54A-B47jq-Qy.js +1 -0
- package/dist/ui/assets/cpp-BksuvNSY.js +1 -0
- package/dist/ui/assets/crystal-DtDmRg-F.js +1 -0
- package/dist/ui/assets/csharp-D9R-vmeu.js +1 -0
- package/dist/ui/assets/css-BPhBrDlE.js +1 -0
- package/dist/ui/assets/csv-B0qRVHPH.js +1 -0
- package/dist/ui/assets/cue-DtFQj3wx.js +1 -0
- package/dist/ui/assets/cypher-m2LEI-9-.js +1 -0
- package/dist/ui/assets/cytoscape.esm-CUqq0XTU.js +331 -0
- package/dist/ui/assets/d-BoXegm-a.js +1 -0
- package/dist/ui/assets/dagre-BM42HDAG-B8S6fvC9.js +4 -0
- package/dist/ui/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/ui/assets/dart-B9wLZaAG.js +1 -0
- package/dist/ui/assets/dax-ClGRhx96.js +1 -0
- package/dist/ui/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/ui/assets/desktop-DEIpsLCJ.js +1 -0
- package/dist/ui/assets/diagram-2AECGRRQ-DdSf8QGx.js +43 -0
- package/dist/ui/assets/diagram-5GNKFQAL-DjNbvgIh.js +10 -0
- package/dist/ui/assets/diagram-KO2AKTUF-C_EbhXEU.js +3 -0
- package/dist/ui/assets/diagram-LMA3HP47-fkQGkC6F.js +24 -0
- package/dist/ui/assets/diagram-OG6HWLK6-ild2cowO.js +24 -0
- package/dist/ui/assets/diff-BgYniUM_.js +1 -0
- package/dist/ui/assets/docker-COcR7UxN.js +1 -0
- package/dist/ui/assets/dotenv-BjQB5zDj.js +1 -0
- package/dist/ui/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/ui/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/ui/assets/dream-maker-C-nORZOA.js +1 -0
- package/dist/ui/assets/edge-D5gP-w-T.js +1 -0
- package/dist/ui/assets/elixir-CLiX3zqd.js +1 -0
- package/dist/ui/assets/elm-CmHSxxaM.js +1 -0
- package/dist/ui/assets/emacs-lisp-BX77sIaO.js +1 -0
- package/dist/ui/assets/erDiagram-TEJ5UH35-Cx3ooJxy.js +85 -0
- package/dist/ui/assets/erb-BYTLMnw6.js +1 -0
- package/dist/ui/assets/erlang-B-DoSBHF.js +1 -0
- package/dist/ui/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/ui/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/ui/assets/fennel-bCA53EVm.js +1 -0
- package/dist/ui/assets/fish-w-ucz2PV.js +1 -0
- package/dist/ui/assets/flowDiagram-I6XJVG4X-BijjyFdb.js +162 -0
- package/dist/ui/assets/fluent-Dayu4EKP.js +1 -0
- package/dist/ui/assets/fortran-fixed-form-TqA4NnZg.js +1 -0
- package/dist/ui/assets/fortran-free-form-DKXYxT9g.js +1 -0
- package/dist/ui/assets/fsharp-XplgxFYe.js +1 -0
- package/dist/ui/assets/ganttDiagram-6RSMTGT7-BYSSlI1j.js +292 -0
- package/dist/ui/assets/gdresource-BHYsBjWJ.js +1 -0
- package/dist/ui/assets/gdscript-DfxzS6Rs.js +1 -0
- package/dist/ui/assets/gdshader-SKMF96pI.js +1 -0
- package/dist/ui/assets/genie-ajMbGru0.js +1 -0
- package/dist/ui/assets/gherkin--30QC5Em.js +1 -0
- package/dist/ui/assets/git-commit-i4q6IMui.js +1 -0
- package/dist/ui/assets/git-rebase-B-v9cOL2.js +1 -0
- package/dist/ui/assets/gitGraphDiagram-PVQCEYII-BeQbA8KU.js +106 -0
- package/dist/ui/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/ui/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/ui/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/ui/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/ui/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/ui/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/ui/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/ui/assets/gleam-B430Bg39.js +1 -0
- package/dist/ui/assets/glimmer-js-D-cwc0-E.js +1 -0
- package/dist/ui/assets/glimmer-ts-pgjy16dm.js +1 -0
- package/dist/ui/assets/glsl-DBO2IWDn.js +1 -0
- package/dist/ui/assets/gnuplot-CM8KxXT1.js +1 -0
- package/dist/ui/assets/go-B1SYOhNW.js +1 -0
- package/dist/ui/assets/graph-BlwPajkw.js +1 -0
- package/dist/ui/assets/graphql-cDcHW_If.js +1 -0
- package/dist/ui/assets/groovy-DkBy-JyN.js +1 -0
- package/dist/ui/assets/hack-D1yCygmZ.js +1 -0
- package/dist/ui/assets/haml-B2EZWmdv.js +1 -0
- package/dist/ui/assets/handlebars-BQGss363.js +1 -0
- package/dist/ui/assets/haskell-BILxekzW.js +1 -0
- package/dist/ui/assets/haxe-C5wWYbrZ.js +1 -0
- package/dist/ui/assets/hcl-HzYwdGDm.js +1 -0
- package/dist/ui/assets/hjson-T-Tgc4AT.js +1 -0
- package/dist/ui/assets/hlsl-ifBTmRxC.js +1 -0
- package/dist/ui/assets/houston-DnULxvSX.js +1 -0
- package/dist/ui/assets/html-C2L_23MC.js +1 -0
- package/dist/ui/assets/html-derivative-CSfWNPLT.js +1 -0
- package/dist/ui/assets/http-FRrOvY1W.js +1 -0
- package/dist/ui/assets/hxml-TIA70rKU.js +1 -0
- package/dist/ui/assets/hy-BMj5Y0dO.js +1 -0
- package/dist/ui/assets/imba-bv_oIlVt.js +1 -0
- package/dist/ui/assets/index-DCM2k-QB.js +149 -0
- package/dist/ui/assets/index-DeSCjOUR.js +350 -0
- package/dist/ui/assets/index-Xf-qrRKj.css +1 -0
- package/dist/ui/assets/infoDiagram-5YYISTIA-C_uVe1ld.js +2 -0
- package/dist/ui/assets/ini-BjABl1g7.js +1 -0
- package/dist/ui/assets/init-Gi6I4Gst.js +1 -0
- package/dist/ui/assets/ishikawaDiagram-YF4QCWOH-hzDmyxpo.js +70 -0
- package/dist/ui/assets/java-xI-RfyKK.js +1 -0
- package/dist/ui/assets/javascript-ySlJ1b_l.js +1 -0
- package/dist/ui/assets/jinja-DGy0s7-h.js +1 -0
- package/dist/ui/assets/jison-BqZprYcd.js +1 -0
- package/dist/ui/assets/journeyDiagram-JHISSGLW-B7NJ1JZJ.js +139 -0
- package/dist/ui/assets/json-BQoSv7ci.js +1 -0
- package/dist/ui/assets/json5-w8dY5SsB.js +1 -0
- package/dist/ui/assets/jsonc-TU54ms6u.js +1 -0
- package/dist/ui/assets/jsonl-DREVFZK8.js +1 -0
- package/dist/ui/assets/jsonnet-BfivnA6A.js +1 -0
- package/dist/ui/assets/jssm-P4WzXJd0.js +1 -0
- package/dist/ui/assets/jsx-BAng5TT0.js +1 -0
- package/dist/ui/assets/julia-BBuGR-5E.js +1 -0
- package/dist/ui/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/ui/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/ui/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/ui/assets/kanban-definition-UN3LZRKU-B6pVc1c6.js +89 -0
- package/dist/ui/assets/katex-C5jXJg4s.js +257 -0
- package/dist/ui/assets/kotlin-B5lbUyaz.js +1 -0
- package/dist/ui/assets/kusto-mebxcVVE.js +1 -0
- package/dist/ui/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/ui/assets/latex-C-cWTeAZ.js +1 -0
- package/dist/ui/assets/layout-Boy8vhSP.js +1 -0
- package/dist/ui/assets/lean-XBlWyCtg.js +1 -0
- package/dist/ui/assets/less-BfCpw3nA.js +1 -0
- package/dist/ui/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/ui/assets/linear-B_KCGlU8.js +1 -0
- package/dist/ui/assets/liquid-D3W5UaiH.js +1 -0
- package/dist/ui/assets/log-Cc5clBb7.js +1 -0
- package/dist/ui/assets/logo-IuBKFhSY.js +1 -0
- package/dist/ui/assets/lua-CvWAzNxB.js +1 -0
- package/dist/ui/assets/luau-Du5NY7AG.js +1 -0
- package/dist/ui/assets/make-Bvotw-X0.js +1 -0
- package/dist/ui/assets/markdown-UIAJJxZW.js +1 -0
- package/dist/ui/assets/marko-z0MBrx5-.js +1 -0
- package/dist/ui/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/ui/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/ui/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/ui/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/ui/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/ui/assets/matlab-D9-PGadD.js +1 -0
- package/dist/ui/assets/mdc-DB_EDNY_.js +1 -0
- package/dist/ui/assets/mdx-sdHcTMYB.js +1 -0
- package/dist/ui/assets/mermaid-Ci6OQyBP.js +1 -0
- package/dist/ui/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/ui/assets/min-light-CTRr51gU.js +1 -0
- package/dist/ui/assets/mindmap-definition-RKZ34NQL-Dmpnosj8.js +96 -0
- package/dist/ui/assets/mipsasm-BC5c_5Pe.js +1 -0
- package/dist/ui/assets/mojo-Tz6hzZYG.js +1 -0
- package/dist/ui/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/ui/assets/move-DB_GagMm.js +1 -0
- package/dist/ui/assets/narrat-DLbgOhZU.js +1 -0
- package/dist/ui/assets/nextflow-B0XVJmRM.js +1 -0
- package/dist/ui/assets/nginx-D_VnBJ67.js +1 -0
- package/dist/ui/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/ui/assets/nim-ZlGxZxc3.js +1 -0
- package/dist/ui/assets/nix-shcSOmrb.js +1 -0
- package/dist/ui/assets/nord-Ddv68eIx.js +1 -0
- package/dist/ui/assets/nushell-D4Tzg5kh.js +1 -0
- package/dist/ui/assets/objective-c-Deuh7S70.js +1 -0
- package/dist/ui/assets/objective-cpp-BUEGK8hf.js +1 -0
- package/dist/ui/assets/ocaml-BNioltXt.js +1 -0
- package/dist/ui/assets/one-dark-pro-GBQ2dnAY.js +1 -0
- package/dist/ui/assets/one-light-PoHY5YXO.js +1 -0
- package/dist/ui/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/ui/assets/pascal-JqZropPD.js +1 -0
- package/dist/ui/assets/perl-CHQXSrWU.js +1 -0
- package/dist/ui/assets/php-B5ebYQev.js +1 -0
- package/dist/ui/assets/pieDiagram-4H26LBE5-DWfhPrxk.js +30 -0
- package/dist/ui/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/ui/assets/plsql-LKU2TuZ1.js +1 -0
- package/dist/ui/assets/po-BFLt1xDp.js +1 -0
- package/dist/ui/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/ui/assets/polar-DKykz6zU.js +1 -0
- package/dist/ui/assets/postcss-B3ZDOciz.js +1 -0
- package/dist/ui/assets/powerquery-CSHBycmS.js +1 -0
- package/dist/ui/assets/powershell-BIEUsx6d.js +1 -0
- package/dist/ui/assets/prisma-B48N-Iqd.js +1 -0
- package/dist/ui/assets/prolog-BY-TUvya.js +1 -0
- package/dist/ui/assets/proto-zocC4JxJ.js +1 -0
- package/dist/ui/assets/pug-CM9l7STV.js +1 -0
- package/dist/ui/assets/puppet-Cza_XSSt.js +1 -0
- package/dist/ui/assets/purescript-Bg-kzb6g.js +1 -0
- package/dist/ui/assets/python-DhUJRlN_.js +1 -0
- package/dist/ui/assets/qml-D8XfuvdV.js +1 -0
- package/dist/ui/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/ui/assets/qss-DhMKtDLN.js +1 -0
- package/dist/ui/assets/quadrantDiagram-W4KKPZXB-C9C_4UTm.js +7 -0
- package/dist/ui/assets/r-CwjWoCRV.js +1 -0
- package/dist/ui/assets/racket-CzouJOBO.js +1 -0
- package/dist/ui/assets/raku-B1bQXN8T.js +1 -0
- package/dist/ui/assets/razor-CNLDkMZG.js +1 -0
- package/dist/ui/assets/red-bN70gL4F.js +1 -0
- package/dist/ui/assets/reg-5LuOXUq_.js +1 -0
- package/dist/ui/assets/regexp-DWJ3fJO_.js +1 -0
- package/dist/ui/assets/rel-DJlmqQ1C.js +1 -0
- package/dist/ui/assets/requirementDiagram-4Y6WPE33-Rti8bvFJ.js +84 -0
- package/dist/ui/assets/riscv-QhoSD0DR.js +1 -0
- package/dist/ui/assets/rose-pine-CmCqftbK.js +1 -0
- package/dist/ui/assets/rose-pine-dawn-Ds-gbosJ.js +1 -0
- package/dist/ui/assets/rose-pine-moon-CjDtw9vr.js +1 -0
- package/dist/ui/assets/rst-4NLicBqY.js +1 -0
- package/dist/ui/assets/ruby-DeZ3UC14.js +1 -0
- package/dist/ui/assets/rust-Be6lgOlo.js +1 -0
- package/dist/ui/assets/sankeyDiagram-5OEKKPKP-DKJ1CJ1F.js +40 -0
- package/dist/ui/assets/sas-BmTFh92c.js +1 -0
- package/dist/ui/assets/sass-BJ4Li9vH.js +1 -0
- package/dist/ui/assets/scala-DQVVAn-B.js +1 -0
- package/dist/ui/assets/scheme-BJGe-b2p.js +1 -0
- package/dist/ui/assets/scss-C31hgJw-.js +1 -0
- package/dist/ui/assets/sdbl-BLhTXw86.js +1 -0
- package/dist/ui/assets/sequenceDiagram-3UESZ5HK-BCJdo3Yk.js +162 -0
- package/dist/ui/assets/shaderlab-B7qAK45m.js +1 -0
- package/dist/ui/assets/shellscript-atvbtKCR.js +1 -0
- package/dist/ui/assets/shellsession-C_rIy8kc.js +1 -0
- package/dist/ui/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/ui/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/ui/assets/smalltalk-DkLiglaE.js +1 -0
- package/dist/ui/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/ui/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/ui/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/ui/assets/solidity-C1w2a3ep.js +1 -0
- package/dist/ui/assets/soy-C-lX7w71.js +1 -0
- package/dist/ui/assets/sparql-bYkjHRlG.js +1 -0
- package/dist/ui/assets/splunk-Cf8iN4DR.js +1 -0
- package/dist/ui/assets/sql-COK4E0Yg.js +1 -0
- package/dist/ui/assets/ssh-config-BknIz3MU.js +1 -0
- package/dist/ui/assets/stata-DorPZHa4.js +1 -0
- package/dist/ui/assets/stateDiagram-AJRCARHV-BxlCyIOF.js +1 -0
- package/dist/ui/assets/stateDiagram-v2-BHNVJYJU-cIykpKBe.js +1 -0
- package/dist/ui/assets/stylus-BeQkCIfX.js +1 -0
- package/dist/ui/assets/svelte-MSaWC3Je.js +1 -0
- package/dist/ui/assets/swift-BSxZ-RaX.js +1 -0
- package/dist/ui/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/ui/assets/system-verilog-C7L56vO4.js +1 -0
- package/dist/ui/assets/systemd-CUnW07Te.js +1 -0
- package/dist/ui/assets/talonscript-C1XDQQGZ.js +1 -0
- package/dist/ui/assets/tasl-CQjiPCtT.js +1 -0
- package/dist/ui/assets/tcl-DQ1-QYvQ.js +1 -0
- package/dist/ui/assets/templ-dwX3ZSMB.js +1 -0
- package/dist/ui/assets/terraform-BbSNqyBO.js +1 -0
- package/dist/ui/assets/tex-rYs2v40G.js +1 -0
- package/dist/ui/assets/timeline-definition-PNZ67QCA-BBlZb3oG.js +120 -0
- package/dist/ui/assets/tokyo-night-DBQeEorK.js +1 -0
- package/dist/ui/assets/toml-CB2ApiWb.js +1 -0
- package/dist/ui/assets/ts-tags-CipyTH0X.js +1 -0
- package/dist/ui/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/ui/assets/tsx-B6W0miNI.js +1 -0
- package/dist/ui/assets/turtle-BMR_PYu6.js +1 -0
- package/dist/ui/assets/twig-NC5TFiHP.js +1 -0
- package/dist/ui/assets/typescript-Dj6nwHGl.js +1 -0
- package/dist/ui/assets/typespec-BpWG_bgh.js +1 -0
- package/dist/ui/assets/typst-BVUVsWT6.js +1 -0
- package/dist/ui/assets/v-CAQ2eGtk.js +1 -0
- package/dist/ui/assets/vala-BFOHcciG.js +1 -0
- package/dist/ui/assets/vb-CdO5JTpU.js +1 -0
- package/dist/ui/assets/vennDiagram-CIIHVFJN-C-Nr9zGX.js +34 -0
- package/dist/ui/assets/verilog-CJaU5se_.js +1 -0
- package/dist/ui/assets/vesper-BEBZ7ncR.js +1 -0
- package/dist/ui/assets/vhdl-DYoNaHQp.js +1 -0
- package/dist/ui/assets/viml-m4uW47V2.js +1 -0
- package/dist/ui/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/ui/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/ui/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/ui/assets/vue-BuYVFjOK.js +1 -0
- package/dist/ui/assets/vue-html-xdeiXROB.js +1 -0
- package/dist/ui/assets/vyper-nyqBNV6O.js +1 -0
- package/dist/ui/assets/wardley-L42UT6IY-Bu2DsPJv.js +173 -0
- package/dist/ui/assets/wardleyDiagram-YWT4CUSO-Xlk_Tv4m.js +78 -0
- package/dist/ui/assets/wasm-C6j12Q_x.js +1 -0
- package/dist/ui/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/ui/assets/wenyan-7A4Fjokl.js +1 -0
- package/dist/ui/assets/wgsl-CB0Krxn9.js +1 -0
- package/dist/ui/assets/wikitext-DCE3LsBG.js +1 -0
- package/dist/ui/assets/wolfram-C3FkfJm5.js +1 -0
- package/dist/ui/assets/xml-e3z08dGr.js +1 -0
- package/dist/ui/assets/xsl-Dd0NUgwM.js +1 -0
- package/dist/ui/assets/xychartDiagram-2RQKCTM6-DF_rfRUs.js +7 -0
- package/dist/ui/assets/yaml-CVw76BM1.js +1 -0
- package/dist/ui/assets/zenscript-HnGAYVZD.js +1 -0
- package/dist/ui/assets/zig-BVz_zdnA.js +1 -0
- package/dist/ui/index.html +17 -0
- package/package.json +49 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-BM42HDAG-B8S6fvC9.js","./graph-BlwPajkw.js","./layout-Boy8vhSP.js","./cose-bilkent-S5V4N54A-B47jq-Qy.js","./cytoscape.esm-CUqq0XTU.js","./c4Diagram-AAUBKEIU-CVMRi7xO.js","./chunk-ND2GUHAM-Dt_b_VFL.js","./flowDiagram-I6XJVG4X-BijjyFdb.js","./chunk-FMBD7UC4-BhHjdiID.js","./chunk-55IACEB6-u-aLoWTA.js","./chunk-2J33WTMH-CjoczKe2.js","./channel-DskATRfv.js","./erDiagram-TEJ5UH35-Cx3ooJxy.js","./gitGraphDiagram-PVQCEYII-BeQbA8KU.js","./chunk-4BX2VUAB-zlxS7kMe.js","./chunk-QZHKN3VN-ljd83veX.js","./wardley-L42UT6IY-Bu2DsPJv.js","./ganttDiagram-6RSMTGT7-BYSSlI1j.js","./linear-B_KCGlU8.js","./init-Gi6I4Gst.js","./defaultLocale-DX6XiGOO.js","./infoDiagram-5YYISTIA-C_uVe1ld.js","./pieDiagram-4H26LBE5-DWfhPrxk.js","./arc-Bq1jVAKi.js","./ordinal-Cboi1Yqb.js","./quadrantDiagram-W4KKPZXB-C9C_4UTm.js","./xychartDiagram-2RQKCTM6-DF_rfRUs.js","./requirementDiagram-4Y6WPE33-Rti8bvFJ.js","./sequenceDiagram-3UESZ5HK-BCJdo3Yk.js","./classDiagram-4FO5ZUOK-C45wsrAC.js","./chunk-727SXJPM-CPXGcGn3.js","./classDiagram-v2-Q7XG4LA2-C45wsrAC.js","./stateDiagram-AJRCARHV-BxlCyIOF.js","./chunk-AQP2D5EJ-DSRK_fjR.js","./stateDiagram-v2-BHNVJYJU-cIykpKBe.js","./journeyDiagram-JHISSGLW-B7NJ1JZJ.js","./timeline-definition-PNZ67QCA-BBlZb3oG.js","./mindmap-definition-RKZ34NQL-Dmpnosj8.js","./kanban-definition-UN3LZRKU-B6pVc1c6.js","./sankeyDiagram-5OEKKPKP-DKJ1CJ1F.js","./diagram-LMA3HP47-fkQGkC6F.js","./diagram-2AECGRRQ-DdSf8QGx.js","./blockDiagram-GPEHLZMM-5XkEXQwI.js","./diagram-5GNKFQAL-DjNbvgIh.js","./architectureDiagram-3BPJPVTR-R4fhdlee.js","./diagram-KO2AKTUF-C_EbhXEU.js","./diagram-OG6HWLK6-ild2cowO.js","./wardleyDiagram-YWT4CUSO-Xlk_Tv4m.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var SS=Object.defineProperty;var TS=(e,t,r)=>t in e?SS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var At=(e,t,r)=>TS(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function r(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(n){if(n.ep)return;n.ep=!0;const o=r(n);fetch(n.href,o)}})();var _S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O0={exports:{}},Uh={},I0={exports:{}},xt={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Sa=Symbol.for("react.element"),BS=Symbol.for("react.portal"),LS=Symbol.for("react.fragment"),ES=Symbol.for("react.strict_mode"),FS=Symbol.for("react.profiler"),AS=Symbol.for("react.provider"),MS=Symbol.for("react.context"),$S=Symbol.for("react.forward_ref"),OS=Symbol.for("react.suspense"),IS=Symbol.for("react.memo"),PS=Symbol.for("react.lazy"),Hg=Symbol.iterator;function DS(e){return e===null||typeof e!="object"?null:(e=Hg&&e[Hg]||e["@@iterator"],typeof e=="function"?e:null)}var P0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D0=Object.assign,R0={};function Go(e,t,r){this.props=e,this.context=t,this.refs=R0,this.updater=r||P0}Go.prototype.isReactComponent={};Go.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function N0(){}N0.prototype=Go.prototype;function _f(e,t,r){this.props=e,this.context=t,this.refs=R0,this.updater=r||P0}var Bf=_f.prototype=new N0;Bf.constructor=_f;D0(Bf,Go.prototype);Bf.isPureReactComponent=!0;var jg=Array.isArray,z0=Object.prototype.hasOwnProperty,Lf={current:null},W0={key:!0,ref:!0,__self:!0,__source:!0};function q0(e,t,r){var i,n={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)z0.call(t,i)&&!W0.hasOwnProperty(i)&&(n[i]=t[i]);var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){for(var l=Array(a),h=0;h<a;h++)l[h]=arguments[h+2];n.children=l}if(e&&e.defaultProps)for(i in a=e.defaultProps,a)n[i]===void 0&&(n[i]=a[i]);return{$$typeof:Sa,type:e,key:o,ref:s,props:n,_owner:Lf.current}}function RS(e,t){return{$$typeof:Sa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ef(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sa}function NS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Ug=/\/+/g;function zc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?NS(""+e.key):t.toString(36)}function xl(e,t,r,i,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Sa:case BS:s=!0}}if(s)return s=e,n=n(s),e=i===""?"."+zc(s,0):i,jg(n)?(r="",e!=null&&(r=e.replace(Ug,"$&/")+"/"),xl(n,t,r,"",function(h){return h})):n!=null&&(Ef(n)&&(n=RS(n,r+(!n.key||s&&s.key===n.key?"":(""+n.key).replace(Ug,"$&/")+"/")+e)),t.push(n)),1;if(s=0,i=i===""?".":i+":",jg(e))for(var a=0;a<e.length;a++){o=e[a];var l=i+zc(o,a);s+=xl(o,t,r,l,n)}else if(l=DS(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=i+zc(o,a++),s+=xl(o,t,r,l,n);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ja(e,t,r){if(e==null)return e;var i=[],n=0;return xl(e,i,"","",function(o){return t.call(r,o,n++)}),i}function zS(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $e={current:null},kl={transition:null},WS={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:kl,ReactCurrentOwner:Lf};function H0(){throw Error("act(...) is not supported in production builds of React.")}xt.Children={map:ja,forEach:function(e,t,r){ja(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ja(e,function(){t++}),t},toArray:function(e){return ja(e,function(t){return t})||[]},only:function(e){if(!Ef(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xt.Component=Go;xt.Fragment=LS;xt.Profiler=FS;xt.PureComponent=_f;xt.StrictMode=ES;xt.Suspense=OS;xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WS;xt.act=H0;xt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=D0({},e.props),n=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Lf.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)z0.call(t,l)&&!W0.hasOwnProperty(l)&&(i[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){a=Array(l);for(var h=0;h<l;h++)a[h]=arguments[h+2];i.children=a}return{$$typeof:Sa,type:e.type,key:n,ref:o,props:i,_owner:s}};xt.createContext=function(e){return e={$$typeof:MS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:AS,_context:e},e.Consumer=e};xt.createElement=q0;xt.createFactory=function(e){var t=q0.bind(null,e);return t.type=e,t};xt.createRef=function(){return{current:null}};xt.forwardRef=function(e){return{$$typeof:$S,render:e}};xt.isValidElement=Ef;xt.lazy=function(e){return{$$typeof:PS,_payload:{_status:-1,_result:e},_init:zS}};xt.memo=function(e,t){return{$$typeof:IS,type:e,compare:t===void 0?null:t}};xt.startTransition=function(e){var t=kl.transition;kl.transition={};try{e()}finally{kl.transition=t}};xt.unstable_act=H0;xt.useCallback=function(e,t){return $e.current.useCallback(e,t)};xt.useContext=function(e){return $e.current.useContext(e)};xt.useDebugValue=function(){};xt.useDeferredValue=function(e){return $e.current.useDeferredValue(e)};xt.useEffect=function(e,t){return $e.current.useEffect(e,t)};xt.useId=function(){return $e.current.useId()};xt.useImperativeHandle=function(e,t,r){return $e.current.useImperativeHandle(e,t,r)};xt.useInsertionEffect=function(e,t){return $e.current.useInsertionEffect(e,t)};xt.useLayoutEffect=function(e,t){return $e.current.useLayoutEffect(e,t)};xt.useMemo=function(e,t){return $e.current.useMemo(e,t)};xt.useReducer=function(e,t,r){return $e.current.useReducer(e,t,r)};xt.useRef=function(e){return $e.current.useRef(e)};xt.useState=function(e){return $e.current.useState(e)};xt.useSyncExternalStore=function(e,t,r){return $e.current.useSyncExternalStore(e,t,r)};xt.useTransition=function(){return $e.current.useTransition()};xt.version="18.3.1";I0.exports=xt;var Ne=I0.exports;const qS=$0(Ne);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var HS=Ne,jS=Symbol.for("react.element"),US=Symbol.for("react.fragment"),YS=Object.prototype.hasOwnProperty,VS=HS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GS={key:!0,ref:!0,__self:!0,__source:!0};function j0(e,t,r){var i,n={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(i in t)YS.call(t,i)&&!GS.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)n[i]===void 0&&(n[i]=t[i]);return{$$typeof:jS,type:e,key:o,ref:s,props:n,_owner:VS.current}}Uh.Fragment=US;Uh.jsx=j0;Uh.jsxs=j0;O0.exports=Uh;var rt=O0.exports,Mu={},U0={exports:{}},Je={},Y0={exports:{}},V0={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(B,S){var I=B.length;B.push(S);t:for(;0<I;){var V=I-1>>>1,it=B[V];if(0<n(it,S))B[V]=S,B[I]=it,I=V;else break t}}function r(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var S=B[0],I=B.pop();if(I!==S){B[0]=I;t:for(var V=0,it=B.length,pt=it>>>1;V<pt;){var dt=2*(V+1)-1,kt=B[dt],_t=dt+1,qt=B[_t];if(0>n(kt,I))_t<it&&0>n(qt,kt)?(B[V]=qt,B[_t]=I,V=_t):(B[V]=kt,B[dt]=I,V=dt);else if(_t<it&&0>n(qt,I))B[V]=qt,B[_t]=I,V=_t;else break t}}return S}function n(B,S){var I=B.sortIndex-S.sortIndex;return I!==0?I:B.id-S.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],h=[],c=1,u=null,f=3,d=!1,g=!1,p=!1,C=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(B){for(var S=r(h);S!==null;){if(S.callback===null)i(h);else if(S.startTime<=B)i(h),S.sortIndex=S.expirationTime,t(l,S);else break;S=r(h)}}function b(B){if(p=!1,k(B),!g)if(r(l)!==null)g=!0,F(w);else{var S=r(h);S!==null&&P(b,S.startTime-B)}}function w(B,S){g=!1,p&&(p=!1,y(L),L=-1),d=!0;var I=f;try{for(k(S),u=r(l);u!==null&&(!(u.expirationTime>S)||B&&!O());){var V=u.callback;if(typeof V=="function"){u.callback=null,f=u.priorityLevel;var it=V(u.expirationTime<=S);S=e.unstable_now(),typeof it=="function"?u.callback=it:u===r(l)&&i(l),k(S)}else i(l);u=r(l)}if(u!==null)var pt=!0;else{var dt=r(h);dt!==null&&P(b,dt.startTime-S),pt=!1}return pt}finally{u=null,f=I,d=!1}}var T=!1,E=null,L=-1,W=5,M=-1;function O(){return!(e.unstable_now()-M<W)}function j(){if(E!==null){var B=e.unstable_now();M=B;var S=!0;try{S=E(!0,B)}finally{S?H():(T=!1,E=null)}}else T=!1}var H;if(typeof x=="function")H=function(){x(j)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,$=D.port2;D.port1.onmessage=j,H=function(){$.postMessage(null)}}else H=function(){C(j,0)};function F(B){E=B,T||(T=!0,H())}function P(B,S){L=C(function(){B(e.unstable_now())},S)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){g||d||(g=!0,F(w))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(B){switch(f){case 1:case 2:case 3:var S=3;break;default:S=f}var I=f;f=S;try{return B()}finally{f=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,S){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var I=f;f=B;try{return S()}finally{f=I}},e.unstable_scheduleCallback=function(B,S,I){var V=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?V+I:V):I=V,B){case 1:var it=-1;break;case 2:it=250;break;case 5:it=1073741823;break;case 4:it=1e4;break;default:it=5e3}return it=I+it,B={id:c++,callback:S,priorityLevel:B,startTime:I,expirationTime:it,sortIndex:-1},I>V?(B.sortIndex=I,t(h,B),r(l)===null&&B===r(h)&&(p?(y(L),L=-1):p=!0,P(b,I-V))):(B.sortIndex=it,t(l,B),g||d||(g=!0,F(w))),B},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(B){var S=f;return function(){var I=f;f=S;try{return B.apply(this,arguments)}finally{f=I}}}})(V0);Y0.exports=V0;var XS=Y0.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var QS=Ne,Ke=XS;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var G0=new Set,Xs={};function An(e,t){$o(e,t),$o(e+"Capture",t)}function $o(e,t){for(Xs[e]=t,e=0;e<t.length;e++)G0.add(t[e])}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=Object.prototype.hasOwnProperty,KS=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Yg={},Vg={};function ZS(e){return $u.call(Vg,e)?!0:$u.call(Yg,e)?!1:KS.test(e)?Vg[e]=!0:(Yg[e]=!0,!1)}function JS(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tT(e,t,r,i){if(t===null||typeof t>"u"||JS(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oe(e,t,r,i,n,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Oe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Oe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Oe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Oe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Oe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Oe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Oe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Oe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Oe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ff=/[\-:]([a-z])/g;function Af(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ff,Af);pe[t]=new Oe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ff,Af);pe[t]=new Oe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ff,Af);pe[t]=new Oe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Oe(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Oe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Mf(e,t,r,i){var n=pe.hasOwnProperty(t)?pe[t]:null;(n!==null?n.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tT(t,r,n,i)&&(r=null),i||n===null?ZS(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,i=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,i?e.setAttributeNS(i,t,r):e.setAttribute(t,r))))}var pi=QS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ua=Symbol.for("react.element"),Xn=Symbol.for("react.portal"),Qn=Symbol.for("react.fragment"),$f=Symbol.for("react.strict_mode"),Ou=Symbol.for("react.profiler"),X0=Symbol.for("react.provider"),Q0=Symbol.for("react.context"),Of=Symbol.for("react.forward_ref"),Iu=Symbol.for("react.suspense"),Pu=Symbol.for("react.suspense_list"),If=Symbol.for("react.memo"),wi=Symbol.for("react.lazy"),K0=Symbol.for("react.offscreen"),Gg=Symbol.iterator;function os(e){return e===null||typeof e!="object"?null:(e=Gg&&e[Gg]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,Wc;function vs(e){if(Wc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Wc=t&&t[1]||""}return`
|
|
35
|
+
`+Wc+e}var qc=!1;function Hc(e,t){if(!e||qc)return"";qc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var i=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){i=h}e.call(t.prototype)}else{try{throw Error()}catch(h){i=h}e()}}catch(h){if(h&&i&&typeof h.stack=="string"){for(var n=h.stack.split(`
|
|
36
|
+
`),o=i.stack.split(`
|
|
37
|
+
`),s=n.length-1,a=o.length-1;1<=s&&0<=a&&n[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(n[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||n[s]!==o[a]){var l=`
|
|
38
|
+
`+n[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{qc=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?vs(e):""}function eT(e){switch(e.tag){case 5:return vs(e.type);case 16:return vs("Lazy");case 13:return vs("Suspense");case 19:return vs("SuspenseList");case 0:case 2:case 15:return e=Hc(e.type,!1),e;case 11:return e=Hc(e.type.render,!1),e;case 1:return e=Hc(e.type,!0),e;default:return""}}function Du(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Qn:return"Fragment";case Xn:return"Portal";case Ou:return"Profiler";case $f:return"StrictMode";case Iu:return"Suspense";case Pu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Q0:return(e.displayName||"Context")+".Consumer";case X0:return(e._context.displayName||"Context")+".Provider";case Of:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case If:return t=e.displayName||null,t!==null?t:Du(e.type)||"Memo";case wi:t=e._payload,e=e._init;try{return Du(e(t))}catch{}}return null}function rT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Du(t);case 8:return t===$f?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iT(e){var t=Z0(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){i=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ya(e){e._valueTracker||(e._valueTracker=iT(e))}function J0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=Z0(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function jl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ru(e,t){var r=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Xg(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=qi(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tC(e,t){t=t.checked,t!=null&&Mf(e,"checked",t,!1)}function Nu(e,t){tC(e,t);var r=qi(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zu(e,t.type,r):t.hasOwnProperty("defaultValue")&&zu(e,t.type,qi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qg(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function zu(e,t,r){(t!=="number"||jl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var bs=Array.isArray;function ho(e,t,r,i){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&i&&(e[r].defaultSelected=!0)}else{for(r=""+qi(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,i&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Wu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Kg(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(U(92));if(bs(r)){if(1<r.length)throw Error(U(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:qi(r)}}function eC(e,t){var r=qi(t.value),i=qi(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function Zg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Va,iC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,i,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,i,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Va=Va||document.createElement("div"),Va.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Va.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qs(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Os={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nT=["Webkit","ms","Moz","O"];Object.keys(Os).forEach(function(e){nT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Os[t]=Os[e]})});function nC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Os.hasOwnProperty(e)&&Os[e]?(""+t).trim():t+"px"}function oC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,n=nC(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,n):e[r]=n}}var oT=Wt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hu(e,t){if(t){if(oT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function ju(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uu=null;function Pf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yu=null,co=null,uo=null;function Jg(e){if(e=Ba(e)){if(typeof Yu!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Qh(t),Yu(e.stateNode,e.type,t))}}function sC(e){co?uo?uo.push(e):uo=[e]:co=e}function aC(){if(co){var e=co,t=uo;if(uo=co=null,Jg(e),t)for(e=0;e<t.length;e++)Jg(t[e])}}function lC(e,t){return e(t)}function hC(){}var jc=!1;function cC(e,t,r){if(jc)return e(t,r);jc=!0;try{return lC(e,t,r)}finally{jc=!1,(co!==null||uo!==null)&&(hC(),aC())}}function Ks(e,t){var r=e.stateNode;if(r===null)return null;var i=Qh(r);if(i===null)return null;r=i[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(U(231,t,typeof r));return r}var Vu=!1;if(li)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Vu=!1}function sT(e,t,r,i,n,o,s,a,l){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(c){this.onError(c)}}var Is=!1,Ul=null,Yl=!1,Gu=null,aT={onError:function(e){Is=!0,Ul=e}};function lT(e,t,r,i,n,o,s,a,l){Is=!1,Ul=null,sT.apply(aT,arguments)}function hT(e,t,r,i,n,o,s,a,l){if(lT.apply(this,arguments),Is){if(Is){var h=Ul;Is=!1,Ul=null}else throw Error(U(198));Yl||(Yl=!0,Gu=h)}}function Mn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function uC(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function tm(e){if(Mn(e)!==e)throw Error(U(188))}function cT(e){var t=e.alternate;if(!t){if(t=Mn(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,i=t;;){var n=r.return;if(n===null)break;var o=n.alternate;if(o===null){if(i=n.return,i!==null){r=i;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===r)return tm(n),e;if(o===i)return tm(n),t;o=o.sibling}throw Error(U(188))}if(r.return!==i.return)r=n,i=o;else{for(var s=!1,a=n.child;a;){if(a===r){s=!0,r=n,i=o;break}if(a===i){s=!0,i=n,r=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===r){s=!0,r=o,i=n;break}if(a===i){s=!0,i=o,r=n;break}a=a.sibling}if(!s)throw Error(U(189))}}if(r.alternate!==i)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function dC(e){return e=cT(e),e!==null?fC(e):null}function fC(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=fC(e);if(t!==null)return t;e=e.sibling}return null}var pC=Ke.unstable_scheduleCallback,em=Ke.unstable_cancelCallback,uT=Ke.unstable_shouldYield,dT=Ke.unstable_requestPaint,Gt=Ke.unstable_now,fT=Ke.unstable_getCurrentPriorityLevel,Df=Ke.unstable_ImmediatePriority,gC=Ke.unstable_UserBlockingPriority,Vl=Ke.unstable_NormalPriority,pT=Ke.unstable_LowPriority,mC=Ke.unstable_IdlePriority,Yh=null,Wr=null;function gT(e){if(Wr&&typeof Wr.onCommitFiberRoot=="function")try{Wr.onCommitFiberRoot(Yh,e,void 0,(e.current.flags&128)===128)}catch{}}var wr=Math.clz32?Math.clz32:CT,mT=Math.log,yT=Math.LN2;function CT(e){return e>>>=0,e===0?32:31-(mT(e)/yT|0)|0}var Ga=64,Xa=4194304;function ws(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gl(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,n=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var a=s&~n;a!==0?i=ws(a):(o&=s,o!==0&&(i=ws(o)))}else s=r&~n,s!==0?i=ws(s):o!==0&&(i=ws(o));if(i===0)return 0;if(t!==0&&t!==i&&!(t&n)&&(n=i&-i,o=t&-t,n>=o||n===16&&(o&4194240)!==0))return t;if(i&4&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)r=31-wr(t),n=1<<r,i|=e[r],t&=~n;return i}function xT(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kT(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-wr(o),a=1<<s,l=n[s];l===-1?(!(a&r)||a&i)&&(n[s]=xT(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Xu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yC(){var e=Ga;return Ga<<=1,!(Ga&4194240)&&(Ga=64),e}function Uc(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ta(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wr(t),e[t]=r}function vT(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-wr(r),o=1<<n;t[n]=0,i[n]=-1,e[n]=-1,r&=~o}}function Rf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-wr(r),n=1<<i;n&t|e[i]&t&&(e[i]|=t),r&=~n}}var Ft=0;function CC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var xC,Nf,kC,vC,bC,Qu=!1,Qa=[],Mi=null,$i=null,Oi=null,Zs=new Map,Js=new Map,_i=[],bT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rm(e,t){switch(e){case"focusin":case"focusout":Mi=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":Zs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Js.delete(t.pointerId)}}function as(e,t,r,i,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:o,targetContainers:[n]},t!==null&&(t=Ba(t),t!==null&&Nf(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function wT(e,t,r,i,n){switch(t){case"focusin":return Mi=as(Mi,e,t,r,i,n),!0;case"dragenter":return $i=as($i,e,t,r,i,n),!0;case"mouseover":return Oi=as(Oi,e,t,r,i,n),!0;case"pointerover":var o=n.pointerId;return Zs.set(o,as(Zs.get(o)||null,e,t,r,i,n)),!0;case"gotpointercapture":return o=n.pointerId,Js.set(o,as(Js.get(o)||null,e,t,r,i,n)),!0}return!1}function wC(e){var t=ln(e.target);if(t!==null){var r=Mn(t);if(r!==null){if(t=r.tag,t===13){if(t=uC(r),t!==null){e.blockedOn=t,bC(e.priority,function(){kC(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ku(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Uu=i,r.target.dispatchEvent(i),Uu=null}else return t=Ba(r),t!==null&&Nf(t),e.blockedOn=r,!1;t.shift()}return!0}function im(e,t,r){vl(e)&&r.delete(t)}function ST(){Qu=!1,Mi!==null&&vl(Mi)&&(Mi=null),$i!==null&&vl($i)&&($i=null),Oi!==null&&vl(Oi)&&(Oi=null),Zs.forEach(im),Js.forEach(im)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Qu||(Qu=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,ST)))}function ta(e){function t(n){return ls(n,e)}if(0<Qa.length){ls(Qa[0],e);for(var r=1;r<Qa.length;r++){var i=Qa[r];i.blockedOn===e&&(i.blockedOn=null)}}for(Mi!==null&&ls(Mi,e),$i!==null&&ls($i,e),Oi!==null&&ls(Oi,e),Zs.forEach(t),Js.forEach(t),r=0;r<_i.length;r++)i=_i[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<_i.length&&(r=_i[0],r.blockedOn===null);)wC(r),r.blockedOn===null&&_i.shift()}var fo=pi.ReactCurrentBatchConfig,Xl=!0;function TT(e,t,r,i){var n=Ft,o=fo.transition;fo.transition=null;try{Ft=1,zf(e,t,r,i)}finally{Ft=n,fo.transition=o}}function _T(e,t,r,i){var n=Ft,o=fo.transition;fo.transition=null;try{Ft=4,zf(e,t,r,i)}finally{Ft=n,fo.transition=o}}function zf(e,t,r,i){if(Xl){var n=Ku(e,t,r,i);if(n===null)eu(e,t,i,Ql,r),rm(e,i);else if(wT(n,e,t,r,i))i.stopPropagation();else if(rm(e,i),t&4&&-1<bT.indexOf(e)){for(;n!==null;){var o=Ba(n);if(o!==null&&xC(o),o=Ku(e,t,r,i),o===null&&eu(e,t,i,Ql,r),o===n)break;n=o}n!==null&&i.stopPropagation()}else eu(e,t,i,null,r)}}var Ql=null;function Ku(e,t,r,i){if(Ql=null,e=Pf(i),e=ln(e),e!==null)if(t=Mn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=uC(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ql=e,null}function SC(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fT()){case Df:return 1;case gC:return 4;case Vl:case pT:return 16;case mC:return 536870912;default:return 16}default:return 16}}var Li=null,Wf=null,bl=null;function TC(){if(bl)return bl;var e,t=Wf,r=t.length,i,n="value"in Li?Li.value:Li.textContent,o=n.length;for(e=0;e<r&&t[e]===n[e];e++);var s=r-e;for(i=1;i<=s&&t[r-i]===n[o-i];i++);return bl=n.slice(e,1<i?1-i:void 0)}function wl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ka(){return!0}function nm(){return!1}function tr(e){function t(r,i,n,o,s){this._reactName=r,this._targetInst=n,this.type=i,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ka:nm,this.isPropagationStopped=nm,this}return Wt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Ka)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Ka)},persist:function(){},isPersistent:Ka}),t}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qf=tr(Xo),_a=Wt({},Xo,{view:0,detail:0}),BT=tr(_a),Yc,Vc,hs,Vh=Wt({},_a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hs&&(hs&&e.type==="mousemove"?(Yc=e.screenX-hs.screenX,Vc=e.screenY-hs.screenY):Vc=Yc=0,hs=e),Yc)},movementY:function(e){return"movementY"in e?e.movementY:Vc}}),om=tr(Vh),LT=Wt({},Vh,{dataTransfer:0}),ET=tr(LT),FT=Wt({},_a,{relatedTarget:0}),Gc=tr(FT),AT=Wt({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),MT=tr(AT),$T=Wt({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OT=tr($T),IT=Wt({},Xo,{data:0}),sm=tr(IT),PT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},RT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=RT[e])?!!t[e]:!1}function Hf(){return NT}var zT=Wt({},_a,{key:function(e){if(e.key){var t=PT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?DT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hf,charCode:function(e){return e.type==="keypress"?wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WT=tr(zT),qT=Wt({},Vh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),am=tr(qT),HT=Wt({},_a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hf}),jT=tr(HT),UT=Wt({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),YT=tr(UT),VT=Wt({},Vh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GT=tr(VT),XT=[9,13,27,32],jf=li&&"CompositionEvent"in window,Ps=null;li&&"documentMode"in document&&(Ps=document.documentMode);var QT=li&&"TextEvent"in window&&!Ps,_C=li&&(!jf||Ps&&8<Ps&&11>=Ps),lm=" ",hm=!1;function BC(e,t){switch(e){case"keyup":return XT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function LC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kn=!1;function KT(e,t){switch(e){case"compositionend":return LC(t);case"keypress":return t.which!==32?null:(hm=!0,lm);case"textInput":return e=t.data,e===lm&&hm?null:e;default:return null}}function ZT(e,t){if(Kn)return e==="compositionend"||!jf&&BC(e,t)?(e=TC(),bl=Wf=Li=null,Kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _C&&t.locale!=="ko"?null:t.data;default:return null}}var JT={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!JT[e.type]:t==="textarea"}function EC(e,t,r,i){sC(i),t=Kl(t,"onChange"),0<t.length&&(r=new qf("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Ds=null,ea=null;function t_(e){zC(e,0)}function Gh(e){var t=to(e);if(J0(t))return e}function e_(e,t){if(e==="change")return t}var FC=!1;if(li){var Xc;if(li){var Qc="oninput"in document;if(!Qc){var um=document.createElement("div");um.setAttribute("oninput","return;"),Qc=typeof um.oninput=="function"}Xc=Qc}else Xc=!1;FC=Xc&&(!document.documentMode||9<document.documentMode)}function dm(){Ds&&(Ds.detachEvent("onpropertychange",AC),ea=Ds=null)}function AC(e){if(e.propertyName==="value"&&Gh(ea)){var t=[];EC(t,ea,e,Pf(e)),cC(t_,t)}}function r_(e,t,r){e==="focusin"?(dm(),Ds=t,ea=r,Ds.attachEvent("onpropertychange",AC)):e==="focusout"&&dm()}function i_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gh(ea)}function n_(e,t){if(e==="click")return Gh(t)}function o_(e,t){if(e==="input"||e==="change")return Gh(t)}function s_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Br=typeof Object.is=="function"?Object.is:s_;function ra(e,t){if(Br(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var n=r[i];if(!$u.call(t,n)||!Br(e[n],t[n]))return!1}return!0}function fm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pm(e,t){var r=fm(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=fm(r)}}function MC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $C(){for(var e=window,t=jl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=jl(e.document)}return t}function Uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function a_(e){var t=$C(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&MC(r.ownerDocument.documentElement,r)){if(i!==null&&Uf(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,o=Math.min(i.start,n);i=i.end===void 0?o:Math.min(i.end,n),!e.extend&&o>i&&(n=i,i=o,o=n),n=pm(r,o);var s=pm(r,i);n&&s&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var l_=li&&"documentMode"in document&&11>=document.documentMode,Zn=null,Zu=null,Rs=null,Ju=!1;function gm(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ju||Zn==null||Zn!==jl(i)||(i=Zn,"selectionStart"in i&&Uf(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Rs&&ra(Rs,i)||(Rs=i,i=Kl(Zu,"onSelect"),0<i.length&&(t=new qf("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=Zn)))}function Za(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Jn={animationend:Za("Animation","AnimationEnd"),animationiteration:Za("Animation","AnimationIteration"),animationstart:Za("Animation","AnimationStart"),transitionend:Za("Transition","TransitionEnd")},Kc={},OC={};li&&(OC=document.createElement("div").style,"AnimationEvent"in window||(delete Jn.animationend.animation,delete Jn.animationiteration.animation,delete Jn.animationstart.animation),"TransitionEvent"in window||delete Jn.transitionend.transition);function Xh(e){if(Kc[e])return Kc[e];if(!Jn[e])return e;var t=Jn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in OC)return Kc[e]=t[r];return e}var IC=Xh("animationend"),PC=Xh("animationiteration"),DC=Xh("animationstart"),RC=Xh("transitionend"),NC=new Map,mm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Gi(e,t){NC.set(e,t),An(t,[e])}for(var Zc=0;Zc<mm.length;Zc++){var Jc=mm[Zc],h_=Jc.toLowerCase(),c_=Jc[0].toUpperCase()+Jc.slice(1);Gi(h_,"on"+c_)}Gi(IC,"onAnimationEnd");Gi(PC,"onAnimationIteration");Gi(DC,"onAnimationStart");Gi("dblclick","onDoubleClick");Gi("focusin","onFocus");Gi("focusout","onBlur");Gi(RC,"onTransitionEnd");$o("onMouseEnter",["mouseout","mouseover"]);$o("onMouseLeave",["mouseout","mouseover"]);$o("onPointerEnter",["pointerout","pointerover"]);$o("onPointerLeave",["pointerout","pointerover"]);An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));An("onBeforeInput",["compositionend","keypress","textInput","paste"]);An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),u_=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ss));function ym(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,hT(i,t,void 0,e),e.currentTarget=null}function zC(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],n=i.event;i=i.listeners;t:{var o=void 0;if(t)for(var s=i.length-1;0<=s;s--){var a=i[s],l=a.instance,h=a.currentTarget;if(a=a.listener,l!==o&&n.isPropagationStopped())break t;ym(n,a,h),o=l}else for(s=0;s<i.length;s++){if(a=i[s],l=a.instance,h=a.currentTarget,a=a.listener,l!==o&&n.isPropagationStopped())break t;ym(n,a,h),o=l}}}if(Yl)throw e=Gu,Yl=!1,Gu=null,e}function Ot(e,t){var r=t[nd];r===void 0&&(r=t[nd]=new Set);var i=e+"__bubble";r.has(i)||(WC(t,e,2,!1),r.add(i))}function tu(e,t,r){var i=0;t&&(i|=4),WC(r,e,i,t)}var Ja="_reactListening"+Math.random().toString(36).slice(2);function ia(e){if(!e[Ja]){e[Ja]=!0,G0.forEach(function(r){r!=="selectionchange"&&(u_.has(r)||tu(r,!1,e),tu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ja]||(t[Ja]=!0,tu("selectionchange",!1,t))}}function WC(e,t,r,i){switch(SC(t)){case 1:var n=TT;break;case 4:n=_T;break;default:n=zf}r=n.bind(null,t,r,e),n=void 0,!Vu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),i?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function eu(e,t,r,i,n){var o=i;if(!(t&1)&&!(t&2)&&i!==null)t:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var a=i.stateNode.containerInfo;if(a===n||a.nodeType===8&&a.parentNode===n)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;s=s.return}for(;a!==null;){if(s=ln(a),s===null)return;if(l=s.tag,l===5||l===6){i=o=s;continue t}a=a.parentNode}}i=i.return}cC(function(){var h=o,c=Pf(r),u=[];t:{var f=NC.get(e);if(f!==void 0){var d=qf,g=e;switch(e){case"keypress":if(wl(r)===0)break t;case"keydown":case"keyup":d=WT;break;case"focusin":g="focus",d=Gc;break;case"focusout":g="blur",d=Gc;break;case"beforeblur":case"afterblur":d=Gc;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=ET;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=jT;break;case IC:case PC:case DC:d=MT;break;case RC:d=YT;break;case"scroll":d=BT;break;case"wheel":d=GT;break;case"copy":case"cut":case"paste":d=OT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=am}var p=(t&4)!==0,C=!p&&e==="scroll",y=p?f!==null?f+"Capture":null:f;p=[];for(var x=h,k;x!==null;){k=x;var b=k.stateNode;if(k.tag===5&&b!==null&&(k=b,y!==null&&(b=Ks(x,y),b!=null&&p.push(na(x,b,k)))),C)break;x=x.return}0<p.length&&(f=new d(f,g,null,r,c),u.push({event:f,listeners:p}))}}if(!(t&7)){t:{if(f=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",f&&r!==Uu&&(g=r.relatedTarget||r.fromElement)&&(ln(g)||g[hi]))break t;if((d||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,d?(g=r.relatedTarget||r.toElement,d=h,g=g?ln(g):null,g!==null&&(C=Mn(g),g!==C||g.tag!==5&&g.tag!==6)&&(g=null)):(d=null,g=h),d!==g)){if(p=om,b="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(p=am,b="onPointerLeave",y="onPointerEnter",x="pointer"),C=d==null?f:to(d),k=g==null?f:to(g),f=new p(b,x+"leave",d,r,c),f.target=C,f.relatedTarget=k,b=null,ln(c)===h&&(p=new p(y,x+"enter",g,r,c),p.target=k,p.relatedTarget=C,b=p),C=b,d&&g)e:{for(p=d,y=g,x=0,k=p;k;k=Nn(k))x++;for(k=0,b=y;b;b=Nn(b))k++;for(;0<x-k;)p=Nn(p),x--;for(;0<k-x;)y=Nn(y),k--;for(;x--;){if(p===y||y!==null&&p===y.alternate)break e;p=Nn(p),y=Nn(y)}p=null}else p=null;d!==null&&Cm(u,f,d,p,!1),g!==null&&C!==null&&Cm(u,C,g,p,!0)}}t:{if(f=h?to(h):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var w=e_;else if(cm(f))if(FC)w=o_;else{w=i_;var T=r_}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=n_);if(w&&(w=w(e,h))){EC(u,w,r,c);break t}T&&T(e,f,h),e==="focusout"&&(T=f._wrapperState)&&T.controlled&&f.type==="number"&&zu(f,"number",f.value)}switch(T=h?to(h):window,e){case"focusin":(cm(T)||T.contentEditable==="true")&&(Zn=T,Zu=h,Rs=null);break;case"focusout":Rs=Zu=Zn=null;break;case"mousedown":Ju=!0;break;case"contextmenu":case"mouseup":case"dragend":Ju=!1,gm(u,r,c);break;case"selectionchange":if(l_)break;case"keydown":case"keyup":gm(u,r,c)}var E;if(jf)t:{switch(e){case"compositionstart":var L="onCompositionStart";break t;case"compositionend":L="onCompositionEnd";break t;case"compositionupdate":L="onCompositionUpdate";break t}L=void 0}else Kn?BC(e,r)&&(L="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(L="onCompositionStart");L&&(_C&&r.locale!=="ko"&&(Kn||L!=="onCompositionStart"?L==="onCompositionEnd"&&Kn&&(E=TC()):(Li=c,Wf="value"in Li?Li.value:Li.textContent,Kn=!0)),T=Kl(h,L),0<T.length&&(L=new sm(L,e,null,r,c),u.push({event:L,listeners:T}),E?L.data=E:(E=LC(r),E!==null&&(L.data=E)))),(E=QT?KT(e,r):ZT(e,r))&&(h=Kl(h,"onBeforeInput"),0<h.length&&(c=new sm("onBeforeInput","beforeinput",null,r,c),u.push({event:c,listeners:h}),c.data=E))}zC(u,t)})}function na(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Kl(e,t){for(var r=t+"Capture",i=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=Ks(e,r),o!=null&&i.unshift(na(e,o,n)),o=Ks(e,t),o!=null&&i.push(na(e,o,n))),e=e.return}return i}function Nn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Cm(e,t,r,i,n){for(var o=t._reactName,s=[];r!==null&&r!==i;){var a=r,l=a.alternate,h=a.stateNode;if(l!==null&&l===i)break;a.tag===5&&h!==null&&(a=h,n?(l=Ks(r,o),l!=null&&s.unshift(na(r,l,a))):n||(l=Ks(r,o),l!=null&&s.push(na(r,l,a)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var d_=/\r\n?/g,f_=/\u0000|\uFFFD/g;function xm(e){return(typeof e=="string"?e:""+e).replace(d_,`
|
|
39
|
+
`).replace(f_,"")}function tl(e,t,r){if(t=xm(t),xm(e)!==t&&r)throw Error(U(425))}function Zl(){}var td=null,ed=null;function rd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var id=typeof setTimeout=="function"?setTimeout:void 0,p_=typeof clearTimeout=="function"?clearTimeout:void 0,km=typeof Promise=="function"?Promise:void 0,g_=typeof queueMicrotask=="function"?queueMicrotask:typeof km<"u"?function(e){return km.resolve(null).then(e).catch(m_)}:id;function m_(e){setTimeout(function(){throw e})}function ru(e,t){var r=t,i=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(i===0){e.removeChild(n),ta(t);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=n}while(r);ta(t)}function Ii(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function vm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Qo=Math.random().toString(36).slice(2),zr="__reactFiber$"+Qo,oa="__reactProps$"+Qo,hi="__reactContainer$"+Qo,nd="__reactEvents$"+Qo,y_="__reactListeners$"+Qo,C_="__reactHandles$"+Qo;function ln(e){var t=e[zr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[hi]||r[zr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=vm(e);e!==null;){if(r=e[zr])return r;e=vm(e)}return t}e=r,r=e.parentNode}return null}function Ba(e){return e=e[zr]||e[hi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function to(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Qh(e){return e[oa]||null}var od=[],eo=-1;function Xi(e){return{current:e}}function It(e){0>eo||(e.current=od[eo],od[eo]=null,eo--)}function $t(e,t){eo++,od[eo]=e.current,e.current=t}var Hi={},we=Xi(Hi),qe=Xi(!1),xn=Hi;function Oo(e,t){var r=e.type.contextTypes;if(!r)return Hi;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in r)n[o]=t[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function He(e){return e=e.childContextTypes,e!=null}function Jl(){It(qe),It(we)}function bm(e,t,r){if(we.current!==Hi)throw Error(U(168));$t(we,t),$t(qe,r)}function qC(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var n in i)if(!(n in t))throw Error(U(108,rT(e)||"Unknown",n));return Wt({},r,i)}function th(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,xn=we.current,$t(we,e),$t(qe,qe.current),!0}function wm(e,t,r){var i=e.stateNode;if(!i)throw Error(U(169));r?(e=qC(e,t,xn),i.__reactInternalMemoizedMergedChildContext=e,It(qe),It(we),$t(we,e)):It(qe),$t(qe,r)}var ri=null,Kh=!1,iu=!1;function HC(e){ri===null?ri=[e]:ri.push(e)}function x_(e){Kh=!0,HC(e)}function Qi(){if(!iu&&ri!==null){iu=!0;var e=0,t=Ft;try{var r=ri;for(Ft=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}ri=null,Kh=!1}catch(n){throw ri!==null&&(ri=ri.slice(e+1)),pC(Df,Qi),n}finally{Ft=t,iu=!1}}return null}var ro=[],io=0,eh=null,rh=0,nr=[],or=0,kn=null,ii=1,ni="";function nn(e,t){ro[io++]=rh,ro[io++]=eh,eh=e,rh=t}function jC(e,t,r){nr[or++]=ii,nr[or++]=ni,nr[or++]=kn,kn=e;var i=ii;e=ni;var n=32-wr(i)-1;i&=~(1<<n),r+=1;var o=32-wr(t)+n;if(30<o){var s=n-n%5;o=(i&(1<<s)-1).toString(32),i>>=s,n-=s,ii=1<<32-wr(t)+n|r<<n|i,ni=o+e}else ii=1<<o|r<<n|i,ni=e}function Yf(e){e.return!==null&&(nn(e,1),jC(e,1,0))}function Vf(e){for(;e===eh;)eh=ro[--io],ro[io]=null,rh=ro[--io],ro[io]=null;for(;e===kn;)kn=nr[--or],nr[or]=null,ni=nr[--or],nr[or]=null,ii=nr[--or],nr[or]=null}var Xe=null,Ge=null,Dt=!1,Cr=null;function UC(e,t){var r=sr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Sm(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Xe=e,Ge=Ii(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Xe=e,Ge=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=kn!==null?{id:ii,overflow:ni}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=sr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Xe=e,Ge=null,!0):!1;default:return!1}}function sd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ad(e){if(Dt){var t=Ge;if(t){var r=t;if(!Sm(e,t)){if(sd(e))throw Error(U(418));t=Ii(r.nextSibling);var i=Xe;t&&Sm(e,t)?UC(i,r):(e.flags=e.flags&-4097|2,Dt=!1,Xe=e)}}else{if(sd(e))throw Error(U(418));e.flags=e.flags&-4097|2,Dt=!1,Xe=e}}}function Tm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Xe=e}function el(e){if(e!==Xe)return!1;if(!Dt)return Tm(e),Dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!rd(e.type,e.memoizedProps)),t&&(t=Ge)){if(sd(e))throw YC(),Error(U(418));for(;t;)UC(e,t),t=Ii(t.nextSibling)}if(Tm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ge=Ii(e.nextSibling);break t}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ge=null}}else Ge=Xe?Ii(e.stateNode.nextSibling):null;return!0}function YC(){for(var e=Ge;e;)e=Ii(e.nextSibling)}function Io(){Ge=Xe=null,Dt=!1}function Gf(e){Cr===null?Cr=[e]:Cr.push(e)}var k_=pi.ReactCurrentBatchConfig;function cs(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(U(309));var i=r.stateNode}if(!i)throw Error(U(147,e));var n=i,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=n.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(U(284));if(!r._owner)throw Error(U(290,e))}return e}function rl(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function _m(e){var t=e._init;return t(e._payload)}function VC(e){function t(y,x){if(e){var k=y.deletions;k===null?(y.deletions=[x],y.flags|=16):k.push(x)}}function r(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function i(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function n(y,x){return y=Ni(y,x),y.index=0,y.sibling=null,y}function o(y,x,k){return y.index=k,e?(k=y.alternate,k!==null?(k=k.index,k<x?(y.flags|=2,x):k):(y.flags|=2,x)):(y.flags|=1048576,x)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,x,k,b){return x===null||x.tag!==6?(x=cu(k,y.mode,b),x.return=y,x):(x=n(x,k),x.return=y,x)}function l(y,x,k,b){var w=k.type;return w===Qn?c(y,x,k.props.children,b,k.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===wi&&_m(w)===x.type)?(b=n(x,k.props),b.ref=cs(y,x,k),b.return=y,b):(b=Fl(k.type,k.key,k.props,null,y.mode,b),b.ref=cs(y,x,k),b.return=y,b)}function h(y,x,k,b){return x===null||x.tag!==4||x.stateNode.containerInfo!==k.containerInfo||x.stateNode.implementation!==k.implementation?(x=uu(k,y.mode,b),x.return=y,x):(x=n(x,k.children||[]),x.return=y,x)}function c(y,x,k,b,w){return x===null||x.tag!==7?(x=mn(k,y.mode,b,w),x.return=y,x):(x=n(x,k),x.return=y,x)}function u(y,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return x=cu(""+x,y.mode,k),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ua:return k=Fl(x.type,x.key,x.props,null,y.mode,k),k.ref=cs(y,null,x),k.return=y,k;case Xn:return x=uu(x,y.mode,k),x.return=y,x;case wi:var b=x._init;return u(y,b(x._payload),k)}if(bs(x)||os(x))return x=mn(x,y.mode,k,null),x.return=y,x;rl(y,x)}return null}function f(y,x,k,b){var w=x!==null?x.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return w!==null?null:a(y,x,""+k,b);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Ua:return k.key===w?l(y,x,k,b):null;case Xn:return k.key===w?h(y,x,k,b):null;case wi:return w=k._init,f(y,x,w(k._payload),b)}if(bs(k)||os(k))return w!==null?null:c(y,x,k,b,null);rl(y,k)}return null}function d(y,x,k,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return y=y.get(k)||null,a(x,y,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ua:return y=y.get(b.key===null?k:b.key)||null,l(x,y,b,w);case Xn:return y=y.get(b.key===null?k:b.key)||null,h(x,y,b,w);case wi:var T=b._init;return d(y,x,k,T(b._payload),w)}if(bs(b)||os(b))return y=y.get(k)||null,c(x,y,b,w,null);rl(x,b)}return null}function g(y,x,k,b){for(var w=null,T=null,E=x,L=x=0,W=null;E!==null&&L<k.length;L++){E.index>L?(W=E,E=null):W=E.sibling;var M=f(y,E,k[L],b);if(M===null){E===null&&(E=W);break}e&&E&&M.alternate===null&&t(y,E),x=o(M,x,L),T===null?w=M:T.sibling=M,T=M,E=W}if(L===k.length)return r(y,E),Dt&&nn(y,L),w;if(E===null){for(;L<k.length;L++)E=u(y,k[L],b),E!==null&&(x=o(E,x,L),T===null?w=E:T.sibling=E,T=E);return Dt&&nn(y,L),w}for(E=i(y,E);L<k.length;L++)W=d(E,y,L,k[L],b),W!==null&&(e&&W.alternate!==null&&E.delete(W.key===null?L:W.key),x=o(W,x,L),T===null?w=W:T.sibling=W,T=W);return e&&E.forEach(function(O){return t(y,O)}),Dt&&nn(y,L),w}function p(y,x,k,b){var w=os(k);if(typeof w!="function")throw Error(U(150));if(k=w.call(k),k==null)throw Error(U(151));for(var T=w=null,E=x,L=x=0,W=null,M=k.next();E!==null&&!M.done;L++,M=k.next()){E.index>L?(W=E,E=null):W=E.sibling;var O=f(y,E,M.value,b);if(O===null){E===null&&(E=W);break}e&&E&&O.alternate===null&&t(y,E),x=o(O,x,L),T===null?w=O:T.sibling=O,T=O,E=W}if(M.done)return r(y,E),Dt&&nn(y,L),w;if(E===null){for(;!M.done;L++,M=k.next())M=u(y,M.value,b),M!==null&&(x=o(M,x,L),T===null?w=M:T.sibling=M,T=M);return Dt&&nn(y,L),w}for(E=i(y,E);!M.done;L++,M=k.next())M=d(E,y,L,M.value,b),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?L:M.key),x=o(M,x,L),T===null?w=M:T.sibling=M,T=M);return e&&E.forEach(function(j){return t(y,j)}),Dt&&nn(y,L),w}function C(y,x,k,b){if(typeof k=="object"&&k!==null&&k.type===Qn&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case Ua:t:{for(var w=k.key,T=x;T!==null;){if(T.key===w){if(w=k.type,w===Qn){if(T.tag===7){r(y,T.sibling),x=n(T,k.props.children),x.return=y,y=x;break t}}else if(T.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===wi&&_m(w)===T.type){r(y,T.sibling),x=n(T,k.props),x.ref=cs(y,T,k),x.return=y,y=x;break t}r(y,T);break}else t(y,T);T=T.sibling}k.type===Qn?(x=mn(k.props.children,y.mode,b,k.key),x.return=y,y=x):(b=Fl(k.type,k.key,k.props,null,y.mode,b),b.ref=cs(y,x,k),b.return=y,y=b)}return s(y);case Xn:t:{for(T=k.key;x!==null;){if(x.key===T)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){r(y,x.sibling),x=n(x,k.children||[]),x.return=y,y=x;break t}else{r(y,x);break}else t(y,x);x=x.sibling}x=uu(k,y.mode,b),x.return=y,y=x}return s(y);case wi:return T=k._init,C(y,x,T(k._payload),b)}if(bs(k))return g(y,x,k,b);if(os(k))return p(y,x,k,b);rl(y,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(r(y,x.sibling),x=n(x,k),x.return=y,y=x):(r(y,x),x=cu(k,y.mode,b),x.return=y,y=x),s(y)):r(y,x)}return C}var Po=VC(!0),GC=VC(!1),ih=Xi(null),nh=null,no=null,Xf=null;function Qf(){Xf=no=nh=null}function Kf(e){var t=ih.current;It(ih),e._currentValue=t}function ld(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function po(e,t){nh=e,Xf=no=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ze=!0),e.firstContext=null)}function lr(e){var t=e._currentValue;if(Xf!==e)if(e={context:e,memoizedValue:t,next:null},no===null){if(nh===null)throw Error(U(308));no=e,nh.dependencies={lanes:0,firstContext:e}}else no=no.next=e;return t}var hn=null;function Zf(e){hn===null?hn=[e]:hn.push(e)}function XC(e,t,r,i){var n=t.interleaved;return n===null?(r.next=r,Zf(t)):(r.next=n.next,n.next=r),t.interleaved=r,ci(e,i)}function ci(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Si=!1;function Jf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function QC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pi(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,wt&2){var n=i.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),i.pending=t,ci(e,r)}return n=i.interleaved,n===null?(t.next=t,Zf(i)):(t.next=n.next,n.next=t),i.interleaved=t,ci(e,r)}function Sl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,Rf(e,r)}}function Bm(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var n=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?n=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?n=o=t:o=o.next=t}else n=o=t;r={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function oh(e,t,r,i){var n=e.updateQueue;Si=!1;var o=n.firstBaseUpdate,s=n.lastBaseUpdate,a=n.shared.pending;if(a!==null){n.shared.pending=null;var l=a,h=l.next;l.next=null,s===null?o=h:s.next=h,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=h:a.next=h,c.lastBaseUpdate=l))}if(o!==null){var u=n.baseState;s=0,c=h=l=null,a=o;do{var f=a.lane,d=a.eventTime;if((i&f)===f){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var g=e,p=a;switch(f=t,d=r,p.tag){case 1:if(g=p.payload,typeof g=="function"){u=g.call(d,u,f);break t}u=g;break t;case 3:g.flags=g.flags&-65537|128;case 0:if(g=p.payload,f=typeof g=="function"?g.call(d,u,f):g,f==null)break t;u=Wt({},u,f);break t;case 2:Si=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[a]:f.push(a))}else d={eventTime:d,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(h=c=d,l=u):c=c.next=d,s|=f;if(a=a.next,a===null){if(a=n.shared.pending,a===null)break;f=a,a=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(c===null&&(l=u),n.baseState=l,n.firstBaseUpdate=h,n.lastBaseUpdate=c,t=n.shared.interleaved,t!==null){n=t;do s|=n.lane,n=n.next;while(n!==t)}else o===null&&(n.shared.lanes=0);bn|=s,e.lanes=s,e.memoizedState=u}}function Lm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],n=i.callback;if(n!==null){if(i.callback=null,i=r,typeof n!="function")throw Error(U(191,n));n.call(i)}}}var La={},qr=Xi(La),sa=Xi(La),aa=Xi(La);function cn(e){if(e===La)throw Error(U(174));return e}function tp(e,t){switch($t(aa,t),$t(sa,e),$t(qr,La),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=qu(t,e)}It(qr),$t(qr,t)}function Do(){It(qr),It(sa),It(aa)}function KC(e){cn(aa.current);var t=cn(qr.current),r=qu(t,e.type);t!==r&&($t(sa,e),$t(qr,r))}function ep(e){sa.current===e&&(It(qr),It(sa))}var Rt=Xi(0);function sh(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nu=[];function rp(){for(var e=0;e<nu.length;e++)nu[e]._workInProgressVersionPrimary=null;nu.length=0}var Tl=pi.ReactCurrentDispatcher,ou=pi.ReactCurrentBatchConfig,vn=0,Nt=null,te=null,oe=null,ah=!1,Ns=!1,la=0,v_=0;function ge(){throw Error(U(321))}function ip(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Br(e[r],t[r]))return!1;return!0}function np(e,t,r,i,n,o){if(vn=o,Nt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Tl.current=e===null||e.memoizedState===null?T_:__,e=r(i,n),Ns){o=0;do{if(Ns=!1,la=0,25<=o)throw Error(U(301));o+=1,oe=te=null,t.updateQueue=null,Tl.current=B_,e=r(i,n)}while(Ns)}if(Tl.current=lh,t=te!==null&&te.next!==null,vn=0,oe=te=Nt=null,ah=!1,t)throw Error(U(300));return e}function op(){var e=la!==0;return la=0,e}function Rr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?Nt.memoizedState=oe=e:oe=oe.next=e,oe}function hr(){if(te===null){var e=Nt.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=oe===null?Nt.memoizedState:oe.next;if(t!==null)oe=t,te=e;else{if(e===null)throw Error(U(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},oe===null?Nt.memoizedState=oe=e:oe=oe.next=e}return oe}function ha(e,t){return typeof t=="function"?t(e):t}function su(e){var t=hr(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var i=te,n=i.baseQueue,o=r.pending;if(o!==null){if(n!==null){var s=n.next;n.next=o.next,o.next=s}i.baseQueue=n=o,r.pending=null}if(n!==null){o=n.next,i=i.baseState;var a=s=null,l=null,h=o;do{var c=h.lane;if((vn&c)===c)l!==null&&(l=l.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),i=h.hasEagerState?h.eagerState:e(i,h.action);else{var u={lane:c,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};l===null?(a=l=u,s=i):l=l.next=u,Nt.lanes|=c,bn|=c}h=h.next}while(h!==null&&h!==o);l===null?s=i:l.next=a,Br(i,t.memoizedState)||(ze=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,r.lastRenderedState=i}if(e=r.interleaved,e!==null){n=e;do o=n.lane,Nt.lanes|=o,bn|=o,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function au(e){var t=hr(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var i=r.dispatch,n=r.pending,o=t.memoizedState;if(n!==null){r.pending=null;var s=n=n.next;do o=e(o,s.action),s=s.next;while(s!==n);Br(o,t.memoizedState)||(ze=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,i]}function ZC(){}function JC(e,t){var r=Nt,i=hr(),n=t(),o=!Br(i.memoizedState,n);if(o&&(i.memoizedState=n,ze=!0),i=i.queue,sp(rx.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||oe!==null&&oe.memoizedState.tag&1){if(r.flags|=2048,ca(9,ex.bind(null,r,i,n,t),void 0,null),ae===null)throw Error(U(349));vn&30||tx(r,t,n)}return n}function tx(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Nt.updateQueue,t===null?(t={lastEffect:null,stores:null},Nt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ex(e,t,r,i){t.value=r,t.getSnapshot=i,ix(t)&&nx(e)}function rx(e,t,r){return r(function(){ix(t)&&nx(e)})}function ix(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Br(e,r)}catch{return!0}}function nx(e){var t=ci(e,1);t!==null&&Sr(t,e,1,-1)}function Em(e){var t=Rr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t.queue=e,e=e.dispatch=S_.bind(null,Nt,e),[t.memoizedState,e]}function ca(e,t,r,i){return e={tag:e,create:t,destroy:r,deps:i,next:null},t=Nt.updateQueue,t===null?(t={lastEffect:null,stores:null},Nt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e)),e}function ox(){return hr().memoizedState}function _l(e,t,r,i){var n=Rr();Nt.flags|=e,n.memoizedState=ca(1|t,r,void 0,i===void 0?null:i)}function Zh(e,t,r,i){var n=hr();i=i===void 0?null:i;var o=void 0;if(te!==null){var s=te.memoizedState;if(o=s.destroy,i!==null&&ip(i,s.deps)){n.memoizedState=ca(t,r,o,i);return}}Nt.flags|=e,n.memoizedState=ca(1|t,r,o,i)}function Fm(e,t){return _l(8390656,8,e,t)}function sp(e,t){return Zh(2048,8,e,t)}function sx(e,t){return Zh(4,2,e,t)}function ax(e,t){return Zh(4,4,e,t)}function lx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hx(e,t,r){return r=r!=null?r.concat([e]):null,Zh(4,4,lx.bind(null,t,e),r)}function ap(){}function cx(e,t){var r=hr();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&ip(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function ux(e,t){var r=hr();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&ip(t,i[1])?i[0]:(e=e(),r.memoizedState=[e,t],e)}function dx(e,t,r){return vn&21?(Br(r,t)||(r=yC(),Nt.lanes|=r,bn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ze=!0),e.memoizedState=r)}function b_(e,t){var r=Ft;Ft=r!==0&&4>r?r:4,e(!0);var i=ou.transition;ou.transition={};try{e(!1),t()}finally{Ft=r,ou.transition=i}}function fx(){return hr().memoizedState}function w_(e,t,r){var i=Ri(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},px(e))gx(t,r);else if(r=XC(e,t,r,i),r!==null){var n=Fe();Sr(r,e,i,n),mx(r,t,i)}}function S_(e,t,r){var i=Ri(e),n={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(px(e))gx(t,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,r);if(n.hasEagerState=!0,n.eagerState=a,Br(a,s)){var l=t.interleaved;l===null?(n.next=n,Zf(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=XC(e,t,n,i),r!==null&&(n=Fe(),Sr(r,e,i,n),mx(r,t,i))}}function px(e){var t=e.alternate;return e===Nt||t!==null&&t===Nt}function gx(e,t){Ns=ah=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mx(e,t,r){if(r&4194240){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,Rf(e,r)}}var lh={readContext:lr,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},T_={readContext:lr,useCallback:function(e,t){return Rr().memoizedState=[e,t===void 0?null:t],e},useContext:lr,useEffect:Fm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,_l(4194308,4,lx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var r=Rr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=Rr();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=w_.bind(null,Nt,e),[i.memoizedState,e]},useRef:function(e){var t=Rr();return e={current:e},t.memoizedState=e},useState:Em,useDebugValue:ap,useDeferredValue:function(e){return Rr().memoizedState=e},useTransition:function(){var e=Em(!1),t=e[0];return e=b_.bind(null,e[1]),Rr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=Nt,n=Rr();if(Dt){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),ae===null)throw Error(U(349));vn&30||tx(i,t,r)}n.memoizedState=r;var o={value:r,getSnapshot:t};return n.queue=o,Fm(rx.bind(null,i,o,e),[e]),i.flags|=2048,ca(9,ex.bind(null,i,o,r,t),void 0,null),r},useId:function(){var e=Rr(),t=ae.identifierPrefix;if(Dt){var r=ni,i=ii;r=(i&~(1<<32-wr(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=la++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=v_++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},__={readContext:lr,useCallback:cx,useContext:lr,useEffect:sp,useImperativeHandle:hx,useInsertionEffect:sx,useLayoutEffect:ax,useMemo:ux,useReducer:su,useRef:ox,useState:function(){return su(ha)},useDebugValue:ap,useDeferredValue:function(e){var t=hr();return dx(t,te.memoizedState,e)},useTransition:function(){var e=su(ha)[0],t=hr().memoizedState;return[e,t]},useMutableSource:ZC,useSyncExternalStore:JC,useId:fx,unstable_isNewReconciler:!1},B_={readContext:lr,useCallback:cx,useContext:lr,useEffect:sp,useImperativeHandle:hx,useInsertionEffect:sx,useLayoutEffect:ax,useMemo:ux,useReducer:au,useRef:ox,useState:function(){return au(ha)},useDebugValue:ap,useDeferredValue:function(e){var t=hr();return te===null?t.memoizedState=e:dx(t,te.memoizedState,e)},useTransition:function(){var e=au(ha)[0],t=hr().memoizedState;return[e,t]},useMutableSource:ZC,useSyncExternalStore:JC,useId:fx,unstable_isNewReconciler:!1};function gr(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function hd(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:Wt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Jh={isMounted:function(e){return(e=e._reactInternals)?Mn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var i=Fe(),n=Ri(e),o=oi(i,n);o.payload=t,r!=null&&(o.callback=r),t=Pi(e,o,n),t!==null&&(Sr(t,e,n,i),Sl(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=Fe(),n=Ri(e),o=oi(i,n);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Pi(e,o,n),t!==null&&(Sr(t,e,n,i),Sl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Fe(),i=Ri(e),n=oi(r,i);n.tag=2,t!=null&&(n.callback=t),t=Pi(e,n,i),t!==null&&(Sr(t,e,i,r),Sl(t,e,i))}};function Am(e,t,r,i,n,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,s):t.prototype&&t.prototype.isPureReactComponent?!ra(r,i)||!ra(n,o):!0}function yx(e,t,r){var i=!1,n=Hi,o=t.contextType;return typeof o=="object"&&o!==null?o=lr(o):(n=He(t)?xn:we.current,i=t.contextTypes,o=(i=i!=null)?Oo(e,n):Hi),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jh,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),t}function Mm(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&Jh.enqueueReplaceState(t,t.state,null)}function cd(e,t,r,i){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Jf(e);var o=t.contextType;typeof o=="object"&&o!==null?n.context=lr(o):(o=He(t)?xn:we.current,n.context=Oo(e,o)),n.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(hd(e,t,o,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&Jh.enqueueReplaceState(n,n.state,null),oh(e,r,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Ro(e,t){try{var r="",i=t;do r+=eT(i),i=i.return;while(i);var n=r}catch(o){n=`
|
|
40
|
+
Error generating stack: `+o.message+`
|
|
41
|
+
`+o.stack}return{value:e,source:t,stack:n,digest:null}}function lu(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ud(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var L_=typeof WeakMap=="function"?WeakMap:Map;function Cx(e,t,r){r=oi(-1,r),r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){ch||(ch=!0,vd=i),ud(e,t)},r}function xx(e,t,r){r=oi(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var n=t.value;r.payload=function(){return i(n)},r.callback=function(){ud(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){ud(e,t),typeof i!="function"&&(Di===null?Di=new Set([this]):Di.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function $m(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new L_;var n=new Set;i.set(t,n)}else n=i.get(t),n===void 0&&(n=new Set,i.set(t,n));n.has(r)||(n.add(r),e=q_.bind(null,e,t,r),t.then(e,e))}function Om(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Im(e,t,r,i,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=oi(-1,1),t.tag=2,Pi(r,t,1))),r.lanes|=1),e)}var E_=pi.ReactCurrentOwner,ze=!1;function Be(e,t,r,i){t.child=e===null?GC(t,null,r,i):Po(t,e.child,r,i)}function Pm(e,t,r,i,n){r=r.render;var o=t.ref;return po(t,n),i=np(e,t,r,i,o,n),r=op(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,ui(e,t,n)):(Dt&&r&&Yf(t),t.flags|=1,Be(e,t,i,n),t.child)}function Dm(e,t,r,i,n){if(e===null){var o=r.type;return typeof o=="function"&&!gp(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,kx(e,t,o,i,n)):(e=Fl(r.type,null,i,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&n)){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:ra,r(s,i)&&e.ref===t.ref)return ui(e,t,n)}return t.flags|=1,e=Ni(o,i),e.ref=t.ref,e.return=t,t.child=e}function kx(e,t,r,i,n){if(e!==null){var o=e.memoizedProps;if(ra(o,i)&&e.ref===t.ref)if(ze=!1,t.pendingProps=i=o,(e.lanes&n)!==0)e.flags&131072&&(ze=!0);else return t.lanes=e.lanes,ui(e,t,n)}return dd(e,t,r,i,n)}function vx(e,t,r){var i=t.pendingProps,n=i.children,o=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$t(so,Ve),Ve|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$t(so,Ve),Ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:r,$t(so,Ve),Ve|=i}else o!==null?(i=o.baseLanes|r,t.memoizedState=null):i=r,$t(so,Ve),Ve|=i;return Be(e,t,n,r),t.child}function bx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function dd(e,t,r,i,n){var o=He(r)?xn:we.current;return o=Oo(t,o),po(t,n),r=np(e,t,r,i,o,n),i=op(),e!==null&&!ze?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,ui(e,t,n)):(Dt&&i&&Yf(t),t.flags|=1,Be(e,t,r,n),t.child)}function Rm(e,t,r,i,n){if(He(r)){var o=!0;th(t)}else o=!1;if(po(t,n),t.stateNode===null)Bl(e,t),yx(t,r,i),cd(t,r,i,n),i=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,h=r.contextType;typeof h=="object"&&h!==null?h=lr(h):(h=He(r)?xn:we.current,h=Oo(t,h));var c=r.getDerivedStateFromProps,u=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";u||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==i||l!==h)&&Mm(t,s,i,h),Si=!1;var f=t.memoizedState;s.state=f,oh(t,i,s,n),l=t.memoizedState,a!==i||f!==l||qe.current||Si?(typeof c=="function"&&(hd(t,r,c,i),l=t.memoizedState),(a=Si||Am(t,r,a,i,f,l,h))?(u||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),s.props=i,s.state=l,s.context=h,i=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{s=t.stateNode,QC(e,t),a=t.memoizedProps,h=t.type===t.elementType?a:gr(t.type,a),s.props=h,u=t.pendingProps,f=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=lr(l):(l=He(r)?xn:we.current,l=Oo(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==u||f!==l)&&Mm(t,s,i,l),Si=!1,f=t.memoizedState,s.state=f,oh(t,i,s,n);var g=t.memoizedState;a!==u||f!==g||qe.current||Si?(typeof d=="function"&&(hd(t,r,d,i),g=t.memoizedState),(h=Si||Am(t,r,h,i,f,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=g),s.props=i,s.state=g,s.context=l,i=h):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return fd(e,t,r,i,o,n)}function fd(e,t,r,i,n,o){bx(e,t);var s=(t.flags&128)!==0;if(!i&&!s)return n&&wm(t,r,!1),ui(e,t,o);i=t.stateNode,E_.current=t;var a=s&&typeof r.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&s?(t.child=Po(t,e.child,null,o),t.child=Po(t,null,a,o)):Be(e,t,a,o),t.memoizedState=i.state,n&&wm(t,r,!0),t.child}function wx(e){var t=e.stateNode;t.pendingContext?bm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bm(e,t.context,!1),tp(e,t.containerInfo)}function Nm(e,t,r,i,n){return Io(),Gf(n),t.flags|=256,Be(e,t,r,i),t.child}var pd={dehydrated:null,treeContext:null,retryLane:0};function gd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sx(e,t,r){var i=t.pendingProps,n=Rt.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(n&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),$t(Rt,n&1),e===null)return ad(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=i.children,e=i.fallback,o?(i=t.mode,o=t.child,s={mode:"hidden",children:s},!(i&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=rc(s,i,0,null),e=mn(e,i,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=gd(r),t.memoizedState=pd,e):lp(t,s));if(n=e.memoizedState,n!==null&&(a=n.dehydrated,a!==null))return F_(e,t,s,i,a,n,r);if(o){o=i.fallback,s=t.mode,n=e.child,a=n.sibling;var l={mode:"hidden",children:i.children};return!(s&1)&&t.child!==n?(i=t.child,i.childLanes=0,i.pendingProps=l,t.deletions=null):(i=Ni(n,l),i.subtreeFlags=n.subtreeFlags&14680064),a!==null?o=Ni(a,o):(o=mn(o,s,r,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,s=e.child.memoizedState,s=s===null?gd(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=pd,i}return o=e.child,e=o.sibling,i=Ni(o,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=r),i.return=t,i.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function lp(e,t){return t=rc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function il(e,t,r,i){return i!==null&&Gf(i),Po(t,e.child,null,r),e=lp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function F_(e,t,r,i,n,o,s){if(r)return t.flags&256?(t.flags&=-257,i=lu(Error(U(422))),il(e,t,s,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=i.fallback,n=t.mode,i=rc({mode:"visible",children:i.children},n,0,null),o=mn(o,n,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Po(t,e.child,null,s),t.child.memoizedState=gd(s),t.memoizedState=pd,o);if(!(t.mode&1))return il(e,t,s,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var a=i.dgst;return i=a,o=Error(U(419)),i=lu(o,i,void 0),il(e,t,s,i)}if(a=(s&e.childLanes)!==0,ze||a){if(i=ae,i!==null){switch(s&-s){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(i.suspendedLanes|s)?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,ci(e,n),Sr(i,e,n,-1))}return pp(),i=lu(Error(U(421))),il(e,t,s,i)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=H_.bind(null,e),n._reactRetry=t,null):(e=o.treeContext,Ge=Ii(n.nextSibling),Xe=t,Dt=!0,Cr=null,e!==null&&(nr[or++]=ii,nr[or++]=ni,nr[or++]=kn,ii=e.id,ni=e.overflow,kn=t),t=lp(t,i.children),t.flags|=4096,t)}function zm(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ld(e.return,t,r)}function hu(e,t,r,i,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:n}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=r,o.tailMode=n)}function Tx(e,t,r){var i=t.pendingProps,n=i.revealOrder,o=i.tail;if(Be(e,t,i.children,r),i=Rt.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,r,t);else if(e.tag===19)zm(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if($t(Rt,i),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&sh(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),hu(t,!1,n,r,o);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&sh(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}hu(t,!0,r,null,o);break;case"together":hu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ui(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),bn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,r=Ni(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ni(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function A_(e,t,r){switch(t.tag){case 3:wx(t),Io();break;case 5:KC(t);break;case 1:He(t.type)&&th(t);break;case 4:tp(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,n=t.memoizedProps.value;$t(ih,i._currentValue),i._currentValue=n;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?($t(Rt,Rt.current&1),t.flags|=128,null):r&t.child.childLanes?Sx(e,t,r):($t(Rt,Rt.current&1),e=ui(e,t,r),e!==null?e.sibling:null);$t(Rt,Rt.current&1);break;case 19:if(i=(r&t.childLanes)!==0,e.flags&128){if(i)return Tx(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),$t(Rt,Rt.current),i)break;return null;case 22:case 23:return t.lanes=0,vx(e,t,r)}return ui(e,t,r)}var _x,md,Bx,Lx;_x=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};md=function(){};Bx=function(e,t,r,i){var n=e.memoizedProps;if(n!==i){e=t.stateNode,cn(qr.current);var o=null;switch(r){case"input":n=Ru(e,n),i=Ru(e,i),o=[];break;case"select":n=Wt({},n,{value:void 0}),i=Wt({},i,{value:void 0}),o=[];break;case"textarea":n=Wu(e,n),i=Wu(e,i),o=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Zl)}Hu(r,i);var s;r=null;for(h in n)if(!i.hasOwnProperty(h)&&n.hasOwnProperty(h)&&n[h]!=null)if(h==="style"){var a=n[h];for(s in a)a.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(Xs.hasOwnProperty(h)?o||(o=[]):(o=o||[]).push(h,null));for(h in i){var l=i[h];if(a=n!=null?n[h]:void 0,i.hasOwnProperty(h)&&l!==a&&(l!=null||a!=null))if(h==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(h,r)),r=l;else h==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(h,l)):h==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(h,""+l):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(Xs.hasOwnProperty(h)?(l!=null&&h==="onScroll"&&Ot("scroll",e),o||a===l||(o=[])):(o=o||[]).push(h,l))}r&&(o=o||[]).push("style",r);var h=o;(t.updateQueue=h)&&(t.flags|=4)}};Lx=function(e,t,r,i){r!==i&&(t.flags|=4)};function us(e,t){if(!Dt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function me(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function M_(e,t,r){var i=t.pendingProps;switch(Vf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return He(t.type)&&Jl(),me(t),null;case 3:return i=t.stateNode,Do(),It(qe),It(we),rp(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(el(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cr!==null&&(Sd(Cr),Cr=null))),md(e,t),me(t),null;case 5:ep(t);var n=cn(aa.current);if(r=t.type,e!==null&&t.stateNode!=null)Bx(e,t,r,i,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(U(166));return me(t),null}if(e=cn(qr.current),el(t)){i=t.stateNode,r=t.type;var o=t.memoizedProps;switch(i[zr]=t,i[oa]=o,e=(t.mode&1)!==0,r){case"dialog":Ot("cancel",i),Ot("close",i);break;case"iframe":case"object":case"embed":Ot("load",i);break;case"video":case"audio":for(n=0;n<Ss.length;n++)Ot(Ss[n],i);break;case"source":Ot("error",i);break;case"img":case"image":case"link":Ot("error",i),Ot("load",i);break;case"details":Ot("toggle",i);break;case"input":Xg(i,o),Ot("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Ot("invalid",i);break;case"textarea":Kg(i,o),Ot("invalid",i)}Hu(r,o),n=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?i.textContent!==a&&(o.suppressHydrationWarning!==!0&&tl(i.textContent,a,e),n=["children",a]):typeof a=="number"&&i.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&tl(i.textContent,a,e),n=["children",""+a]):Xs.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Ot("scroll",i)}switch(r){case"input":Ya(i),Qg(i,o,!0);break;case"textarea":Ya(i),Zg(i);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(i.onclick=Zl)}i=n,t.updateQueue=i,i!==null&&(t.flags|=4)}else{s=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rC(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=s.createElement(r,{is:i.is}):(e=s.createElement(r),r==="select"&&(s=e,i.multiple?s.multiple=!0:i.size&&(s.size=i.size))):e=s.createElementNS(e,r),e[zr]=t,e[oa]=i,_x(e,t,!1,!1),t.stateNode=e;t:{switch(s=ju(r,i),r){case"dialog":Ot("cancel",e),Ot("close",e),n=i;break;case"iframe":case"object":case"embed":Ot("load",e),n=i;break;case"video":case"audio":for(n=0;n<Ss.length;n++)Ot(Ss[n],e);n=i;break;case"source":Ot("error",e),n=i;break;case"img":case"image":case"link":Ot("error",e),Ot("load",e),n=i;break;case"details":Ot("toggle",e),n=i;break;case"input":Xg(e,i),n=Ru(e,i),Ot("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=Wt({},i,{value:void 0}),Ot("invalid",e);break;case"textarea":Kg(e,i),n=Wu(e,i),Ot("invalid",e);break;default:n=i}Hu(r,n),a=n;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?oC(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&iC(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Qs(e,l):typeof l=="number"&&Qs(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xs.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ot("scroll",e):l!=null&&Mf(e,o,l,s))}switch(r){case"input":Ya(e),Qg(e,i,!1);break;case"textarea":Ya(e),Zg(e);break;case"option":i.value!=null&&e.setAttribute("value",""+qi(i.value));break;case"select":e.multiple=!!i.multiple,o=i.value,o!=null?ho(e,!!i.multiple,o,!1):i.defaultValue!=null&&ho(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Zl)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return me(t),null;case 6:if(e&&t.stateNode!=null)Lx(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(U(166));if(r=cn(aa.current),cn(qr.current),el(t)){if(i=t.stateNode,r=t.memoizedProps,i[zr]=t,(o=i.nodeValue!==r)&&(e=Xe,e!==null))switch(e.tag){case 3:tl(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&tl(i.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[zr]=t,t.stateNode=i}return me(t),null;case 13:if(It(Rt),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dt&&Ge!==null&&t.mode&1&&!(t.flags&128))YC(),Io(),t.flags|=98560,o=!1;else if(o=el(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(U(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(U(317));o[zr]=t}else Io(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),o=!1}else Cr!==null&&(Sd(Cr),Cr=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Rt.current&1?ie===0&&(ie=3):pp())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return Do(),md(e,t),e===null&&ia(t.stateNode.containerInfo),me(t),null;case 10:return Kf(t.type._context),me(t),null;case 17:return He(t.type)&&Jl(),me(t),null;case 19:if(It(Rt),o=t.memoizedState,o===null)return me(t),null;if(i=(t.flags&128)!==0,s=o.rendering,s===null)if(i)us(o,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=sh(e),s!==null){for(t.flags|=128,us(o,!1),i=s.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;r!==null;)o=r,e=i,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $t(Rt,Rt.current&1|2),t.child}e=e.sibling}o.tail!==null&&Gt()>No&&(t.flags|=128,i=!0,us(o,!1),t.lanes=4194304)}else{if(!i)if(e=sh(s),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),us(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Dt)return me(t),null}else 2*Gt()-o.renderingStartTime>No&&r!==1073741824&&(t.flags|=128,i=!0,us(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Gt(),t.sibling=null,r=Rt.current,$t(Rt,i?r&1|2:r&1),t):(me(t),null);case 22:case 23:return fp(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Ve&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function $_(e,t){switch(Vf(t),t.tag){case 1:return He(t.type)&&Jl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Do(),It(qe),It(we),rp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ep(t),null;case 13:if(It(Rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return It(Rt),null;case 4:return Do(),null;case 10:return Kf(t.type._context),null;case 22:case 23:return fp(),null;case 24:return null;default:return null}}var nl=!1,ve=!1,O_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function oo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){Yt(e,t,i)}else r.current=null}function yd(e,t,r){try{r()}catch(i){Yt(e,t,i)}}var Wm=!1;function I_(e,t){if(td=Xl,e=$C(),Uf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var n=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break t}var s=0,a=-1,l=-1,h=0,c=0,u=e,f=null;e:for(;;){for(var d;u!==r||n!==0&&u.nodeType!==3||(a=s+n),u!==o||i!==0&&u.nodeType!==3||(l=s+i),u.nodeType===3&&(s+=u.nodeValue.length),(d=u.firstChild)!==null;)f=u,u=d;for(;;){if(u===e)break e;if(f===r&&++h===n&&(a=s),f===o&&++c===i&&(l=s),(d=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=d}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(ed={focusedElem:e,selectionRange:r},Xl=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,C=g.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:gr(t.type,p),C);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(b){Yt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return g=Wm,Wm=!1,g}function zs(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&yd(t,r,o)}n=n.next}while(n!==i)}}function tc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function Cd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Ex(e){var t=e.alternate;t!==null&&(e.alternate=null,Ex(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zr],delete t[oa],delete t[nd],delete t[y_],delete t[C_])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fx(e){return e.tag===5||e.tag===3||e.tag===4}function qm(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||Fx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xd(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Zl));else if(i!==4&&(e=e.child,e!==null))for(xd(e,t,r),e=e.sibling;e!==null;)xd(e,t,r),e=e.sibling}function kd(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(kd(e,t,r),e=e.sibling;e!==null;)kd(e,t,r),e=e.sibling}var ue=null,yr=!1;function vi(e,t,r){for(r=r.child;r!==null;)Ax(e,t,r),r=r.sibling}function Ax(e,t,r){if(Wr&&typeof Wr.onCommitFiberUnmount=="function")try{Wr.onCommitFiberUnmount(Yh,r)}catch{}switch(r.tag){case 5:ve||oo(r,t);case 6:var i=ue,n=yr;ue=null,vi(e,t,r),ue=i,yr=n,ue!==null&&(yr?(e=ue,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ue.removeChild(r.stateNode));break;case 18:ue!==null&&(yr?(e=ue,r=r.stateNode,e.nodeType===8?ru(e.parentNode,r):e.nodeType===1&&ru(e,r),ta(e)):ru(ue,r.stateNode));break;case 4:i=ue,n=yr,ue=r.stateNode.containerInfo,yr=!0,vi(e,t,r),ue=i,yr=n;break;case 0:case 11:case 14:case 15:if(!ve&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var o=n,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&yd(r,t,s),n=n.next}while(n!==i)}vi(e,t,r);break;case 1:if(!ve&&(oo(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(a){Yt(r,t,a)}vi(e,t,r);break;case 21:vi(e,t,r);break;case 22:r.mode&1?(ve=(i=ve)||r.memoizedState!==null,vi(e,t,r),ve=i):vi(e,t,r);break;default:vi(e,t,r)}}function Hm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new O_),t.forEach(function(i){var n=j_.bind(null,e,i);r.has(i)||(r.add(i),i.then(n,n))})}}function pr(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var n=r[i];try{var o=e,s=t,a=s;t:for(;a!==null;){switch(a.tag){case 5:ue=a.stateNode,yr=!1;break t;case 3:ue=a.stateNode.containerInfo,yr=!0;break t;case 4:ue=a.stateNode.containerInfo,yr=!0;break t}a=a.return}if(ue===null)throw Error(U(160));Ax(o,s,n),ue=null,yr=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(h){Yt(n,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Mx(t,e),t=t.sibling}function Mx(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pr(t,e),$r(e),i&4){try{zs(3,e,e.return),tc(3,e)}catch(p){Yt(e,e.return,p)}try{zs(5,e,e.return)}catch(p){Yt(e,e.return,p)}}break;case 1:pr(t,e),$r(e),i&512&&r!==null&&oo(r,r.return);break;case 5:if(pr(t,e),$r(e),i&512&&r!==null&&oo(r,r.return),e.flags&32){var n=e.stateNode;try{Qs(n,"")}catch(p){Yt(e,e.return,p)}}if(i&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&tC(n,o),ju(a,s);var h=ju(a,o);for(s=0;s<l.length;s+=2){var c=l[s],u=l[s+1];c==="style"?oC(n,u):c==="dangerouslySetInnerHTML"?iC(n,u):c==="children"?Qs(n,u):Mf(n,c,u,h)}switch(a){case"input":Nu(n,o);break;case"textarea":eC(n,o);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?ho(n,!!o.multiple,d,!1):f!==!!o.multiple&&(o.defaultValue!=null?ho(n,!!o.multiple,o.defaultValue,!0):ho(n,!!o.multiple,o.multiple?[]:"",!1))}n[oa]=o}catch(p){Yt(e,e.return,p)}}break;case 6:if(pr(t,e),$r(e),i&4){if(e.stateNode===null)throw Error(U(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(p){Yt(e,e.return,p)}}break;case 3:if(pr(t,e),$r(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{ta(t.containerInfo)}catch(p){Yt(e,e.return,p)}break;case 4:pr(t,e),$r(e);break;case 13:pr(t,e),$r(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(up=Gt())),i&4&&Hm(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(ve=(h=ve)||c,pr(t,e),ve=h):pr(t,e),$r(e),i&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!c&&e.mode&1)for(Q=e,c=e.child;c!==null;){for(u=Q=c;Q!==null;){switch(f=Q,d=f.child,f.tag){case 0:case 11:case 14:case 15:zs(4,f,f.return);break;case 1:oo(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){i=f,r=f.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(p){Yt(i,r,p)}}break;case 5:oo(f,f.return);break;case 22:if(f.memoizedState!==null){Um(u);continue}}d!==null?(d.return=f,Q=d):Um(u)}c=c.sibling}t:for(c=null,u=e;;){if(u.tag===5){if(c===null){c=u;try{n=u.stateNode,h?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=u.stateNode,l=u.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=nC("display",s))}catch(p){Yt(e,e.return,p)}}}else if(u.tag===6){if(c===null)try{u.stateNode.nodeValue=h?"":u.memoizedProps}catch(p){Yt(e,e.return,p)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;c===u&&(c=null),u=u.return}c===u&&(c=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:pr(t,e),$r(e),i&4&&Hm(e);break;case 21:break;default:pr(t,e),$r(e)}}function $r(e){var t=e.flags;if(t&2){try{t:{for(var r=e.return;r!==null;){if(Fx(r)){var i=r;break t}r=r.return}throw Error(U(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(Qs(n,""),i.flags&=-33);var o=qm(e);kd(e,o,n);break;case 3:case 4:var s=i.stateNode.containerInfo,a=qm(e);xd(e,a,s);break;default:throw Error(U(161))}}catch(l){Yt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function P_(e,t,r){Q=e,$x(e)}function $x(e,t,r){for(var i=(e.mode&1)!==0;Q!==null;){var n=Q,o=n.child;if(n.tag===22&&i){var s=n.memoizedState!==null||nl;if(!s){var a=n.alternate,l=a!==null&&a.memoizedState!==null||ve;a=nl;var h=ve;if(nl=s,(ve=l)&&!h)for(Q=n;Q!==null;)s=Q,l=s.child,s.tag===22&&s.memoizedState!==null?Ym(n):l!==null?(l.return=s,Q=l):Ym(n);for(;o!==null;)Q=o,$x(o),o=o.sibling;Q=n,nl=a,ve=h}jm(e)}else n.subtreeFlags&8772&&o!==null?(o.return=n,Q=o):jm(e)}}function jm(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||tc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!ve)if(r===null)i.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:gr(t.type,r.memoizedProps);i.componentDidUpdate(n,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Lm(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Lm(t,s,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var c=h.memoizedState;if(c!==null){var u=c.dehydrated;u!==null&&ta(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}ve||t.flags&512&&Cd(t)}catch(f){Yt(t,t.return,f)}}if(t===e){Q=null;break}if(r=t.sibling,r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Um(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Ym(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{tc(4,t)}catch(l){Yt(t,r,l)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var n=t.return;try{i.componentDidMount()}catch(l){Yt(t,n,l)}}var o=t.return;try{Cd(t)}catch(l){Yt(t,o,l)}break;case 5:var s=t.return;try{Cd(t)}catch(l){Yt(t,s,l)}}}catch(l){Yt(t,t.return,l)}if(t===e){Q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Q=a;break}Q=t.return}}var D_=Math.ceil,hh=pi.ReactCurrentDispatcher,hp=pi.ReactCurrentOwner,ar=pi.ReactCurrentBatchConfig,wt=0,ae=null,Kt=null,fe=0,Ve=0,so=Xi(0),ie=0,ua=null,bn=0,ec=0,cp=0,Ws=null,Pe=null,up=0,No=1/0,ei=null,ch=!1,vd=null,Di=null,ol=!1,Ei=null,uh=0,qs=0,bd=null,Ll=-1,El=0;function Fe(){return wt&6?Gt():Ll!==-1?Ll:Ll=Gt()}function Ri(e){return e.mode&1?wt&2&&fe!==0?fe&-fe:k_.transition!==null?(El===0&&(El=yC()),El):(e=Ft,e!==0||(e=window.event,e=e===void 0?16:SC(e.type)),e):1}function Sr(e,t,r,i){if(50<qs)throw qs=0,bd=null,Error(U(185));Ta(e,r,i),(!(wt&2)||e!==ae)&&(e===ae&&(!(wt&2)&&(ec|=r),ie===4&&Bi(e,fe)),je(e,i),r===1&&wt===0&&!(t.mode&1)&&(No=Gt()+500,Kh&&Qi()))}function je(e,t){var r=e.callbackNode;kT(e,t);var i=Gl(e,e===ae?fe:0);if(i===0)r!==null&&em(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(r!=null&&em(r),t===1)e.tag===0?x_(Vm.bind(null,e)):HC(Vm.bind(null,e)),g_(function(){!(wt&6)&&Qi()}),r=null;else{switch(CC(i)){case 1:r=Df;break;case 4:r=gC;break;case 16:r=Vl;break;case 536870912:r=mC;break;default:r=Vl}r=Wx(r,Ox.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Ox(e,t){if(Ll=-1,El=0,wt&6)throw Error(U(327));var r=e.callbackNode;if(go()&&e.callbackNode!==r)return null;var i=Gl(e,e===ae?fe:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=dh(e,i);else{t=i;var n=wt;wt|=2;var o=Px();(ae!==e||fe!==t)&&(ei=null,No=Gt()+500,gn(e,t));do try{z_();break}catch(a){Ix(e,a)}while(!0);Qf(),hh.current=o,wt=n,Kt!==null?t=0:(ae=null,fe=0,t=ie)}if(t!==0){if(t===2&&(n=Xu(e),n!==0&&(i=n,t=wd(e,n))),t===1)throw r=ua,gn(e,0),Bi(e,i),je(e,Gt()),r;if(t===6)Bi(e,i);else{if(n=e.current.alternate,!(i&30)&&!R_(n)&&(t=dh(e,i),t===2&&(o=Xu(e),o!==0&&(i=o,t=wd(e,o))),t===1))throw r=ua,gn(e,0),Bi(e,i),je(e,Gt()),r;switch(e.finishedWork=n,e.finishedLanes=i,t){case 0:case 1:throw Error(U(345));case 2:on(e,Pe,ei);break;case 3:if(Bi(e,i),(i&130023424)===i&&(t=up+500-Gt(),10<t)){if(Gl(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){Fe(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=id(on.bind(null,e,Pe,ei),t);break}on(e,Pe,ei);break;case 4:if(Bi(e,i),(i&4194240)===i)break;for(t=e.eventTimes,n=-1;0<i;){var s=31-wr(i);o=1<<s,s=t[s],s>n&&(n=s),i&=~o}if(i=n,i=Gt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*D_(i/1960))-i,10<i){e.timeoutHandle=id(on.bind(null,e,Pe,ei),i);break}on(e,Pe,ei);break;case 5:on(e,Pe,ei);break;default:throw Error(U(329))}}}return je(e,Gt()),e.callbackNode===r?Ox.bind(null,e):null}function wd(e,t){var r=Ws;return e.current.memoizedState.isDehydrated&&(gn(e,t).flags|=256),e=dh(e,t),e!==2&&(t=Pe,Pe=r,t!==null&&Sd(t)),e}function Sd(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function R_(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var n=r[i],o=n.getSnapshot;n=n.value;try{if(!Br(o(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bi(e,t){for(t&=~cp,t&=~ec,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-wr(t),i=1<<r;e[r]=-1,t&=~i}}function Vm(e){if(wt&6)throw Error(U(327));go();var t=Gl(e,0);if(!(t&1))return je(e,Gt()),null;var r=dh(e,t);if(e.tag!==0&&r===2){var i=Xu(e);i!==0&&(t=i,r=wd(e,i))}if(r===1)throw r=ua,gn(e,0),Bi(e,t),je(e,Gt()),r;if(r===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Pe,ei),je(e,Gt()),null}function dp(e,t){var r=wt;wt|=1;try{return e(t)}finally{wt=r,wt===0&&(No=Gt()+500,Kh&&Qi())}}function wn(e){Ei!==null&&Ei.tag===0&&!(wt&6)&&go();var t=wt;wt|=1;var r=ar.transition,i=Ft;try{if(ar.transition=null,Ft=1,e)return e()}finally{Ft=i,ar.transition=r,wt=t,!(wt&6)&&Qi()}}function fp(){Ve=so.current,It(so)}function gn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,p_(r)),Kt!==null)for(r=Kt.return;r!==null;){var i=r;switch(Vf(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Jl();break;case 3:Do(),It(qe),It(we),rp();break;case 5:ep(i);break;case 4:Do();break;case 13:It(Rt);break;case 19:It(Rt);break;case 10:Kf(i.type._context);break;case 22:case 23:fp()}r=r.return}if(ae=e,Kt=e=Ni(e.current,null),fe=Ve=t,ie=0,ua=null,cp=ec=bn=0,Pe=Ws=null,hn!==null){for(t=0;t<hn.length;t++)if(r=hn[t],i=r.interleaved,i!==null){r.interleaved=null;var n=i.next,o=r.pending;if(o!==null){var s=o.next;o.next=n,i.next=s}r.pending=i}hn=null}return e}function Ix(e,t){do{var r=Kt;try{if(Qf(),Tl.current=lh,ah){for(var i=Nt.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}ah=!1}if(vn=0,oe=te=Nt=null,Ns=!1,la=0,hp.current=null,r===null||r.return===null){ie=1,ua=t,Kt=null;break}t:{var o=e,s=r.return,a=r,l=t;if(t=fe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var h=l,c=a,u=c.tag;if(!(c.mode&1)&&(u===0||u===11||u===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=Om(s);if(d!==null){d.flags&=-257,Im(d,s,a,o,t),d.mode&1&&$m(o,h,t),t=d,l=h;var g=t.updateQueue;if(g===null){var p=new Set;p.add(l),t.updateQueue=p}else g.add(l);break t}else{if(!(t&1)){$m(o,h,t),pp();break t}l=Error(U(426))}}else if(Dt&&a.mode&1){var C=Om(s);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Im(C,s,a,o,t),Gf(Ro(l,a));break t}}o=l=Ro(l,a),ie!==4&&(ie=2),Ws===null?Ws=[o]:Ws.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=Cx(o,l,t);Bm(o,y);break t;case 1:a=l;var x=o.type,k=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(Di===null||!Di.has(k)))){o.flags|=65536,t&=-t,o.lanes|=t;var b=xx(o,a,t);Bm(o,b);break t}}o=o.return}while(o!==null)}Rx(r)}catch(w){t=w,Kt===r&&r!==null&&(Kt=r=r.return);continue}break}while(!0)}function Px(){var e=hh.current;return hh.current=lh,e===null?lh:e}function pp(){(ie===0||ie===3||ie===2)&&(ie=4),ae===null||!(bn&268435455)&&!(ec&268435455)||Bi(ae,fe)}function dh(e,t){var r=wt;wt|=2;var i=Px();(ae!==e||fe!==t)&&(ei=null,gn(e,t));do try{N_();break}catch(n){Ix(e,n)}while(!0);if(Qf(),wt=r,hh.current=i,Kt!==null)throw Error(U(261));return ae=null,fe=0,ie}function N_(){for(;Kt!==null;)Dx(Kt)}function z_(){for(;Kt!==null&&!uT();)Dx(Kt)}function Dx(e){var t=zx(e.alternate,e,Ve);e.memoizedProps=e.pendingProps,t===null?Rx(e):Kt=t,hp.current=null}function Rx(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=$_(r,t),r!==null){r.flags&=32767,Kt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ie=6,Kt=null;return}}else if(r=M_(r,t,Ve),r!==null){Kt=r;return}if(t=t.sibling,t!==null){Kt=t;return}Kt=t=e}while(t!==null);ie===0&&(ie=5)}function on(e,t,r){var i=Ft,n=ar.transition;try{ar.transition=null,Ft=1,W_(e,t,r,i)}finally{ar.transition=n,Ft=i}return null}function W_(e,t,r,i){do go();while(Ei!==null);if(wt&6)throw Error(U(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(vT(e,o),e===ae&&(Kt=ae=null,fe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ol||(ol=!0,Wx(Vl,function(){return go(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=ar.transition,ar.transition=null;var s=Ft;Ft=1;var a=wt;wt|=4,hp.current=null,I_(e,r),Mx(r,e),a_(ed),Xl=!!td,ed=td=null,e.current=r,P_(r),dT(),wt=a,Ft=s,ar.transition=o}else e.current=r;if(ol&&(ol=!1,Ei=e,uh=n),o=e.pendingLanes,o===0&&(Di=null),gT(r.stateNode),je(e,Gt()),t!==null)for(i=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],i(n.value,{componentStack:n.stack,digest:n.digest});if(ch)throw ch=!1,e=vd,vd=null,e;return uh&1&&e.tag!==0&&go(),o=e.pendingLanes,o&1?e===bd?qs++:(qs=0,bd=e):qs=0,Qi(),null}function go(){if(Ei!==null){var e=CC(uh),t=ar.transition,r=Ft;try{if(ar.transition=null,Ft=16>e?16:e,Ei===null)var i=!1;else{if(e=Ei,Ei=null,uh=0,wt&6)throw Error(U(331));var n=wt;for(wt|=4,Q=e.current;Q!==null;){var o=Q,s=o.child;if(Q.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var h=a[l];for(Q=h;Q!==null;){var c=Q;switch(c.tag){case 0:case 11:case 15:zs(8,c,o)}var u=c.child;if(u!==null)u.return=c,Q=u;else for(;Q!==null;){c=Q;var f=c.sibling,d=c.return;if(Ex(c),c===h){Q=null;break}if(f!==null){f.return=d,Q=f;break}Q=d}}}var g=o.alternate;if(g!==null){var p=g.child;if(p!==null){g.child=null;do{var C=p.sibling;p.sibling=null,p=C}while(p!==null)}}Q=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Q=s;else t:for(;Q!==null;){if(o=Q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:zs(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,Q=y;break t}Q=o.return}}var x=e.current;for(Q=x;Q!==null;){s=Q;var k=s.child;if(s.subtreeFlags&2064&&k!==null)k.return=s,Q=k;else t:for(s=x;Q!==null;){if(a=Q,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:tc(9,a)}}catch(w){Yt(a,a.return,w)}if(a===s){Q=null;break t}var b=a.sibling;if(b!==null){b.return=a.return,Q=b;break t}Q=a.return}}if(wt=n,Qi(),Wr&&typeof Wr.onPostCommitFiberRoot=="function")try{Wr.onPostCommitFiberRoot(Yh,e)}catch{}i=!0}return i}finally{Ft=r,ar.transition=t}}return!1}function Gm(e,t,r){t=Ro(r,t),t=Cx(e,t,1),e=Pi(e,t,1),t=Fe(),e!==null&&(Ta(e,1,t),je(e,t))}function Yt(e,t,r){if(e.tag===3)Gm(e,e,r);else for(;t!==null;){if(t.tag===3){Gm(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Di===null||!Di.has(i))){e=Ro(r,e),e=xx(t,e,1),t=Pi(t,e,1),e=Fe(),t!==null&&(Ta(t,1,e),je(t,e));break}}t=t.return}}function q_(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),t=Fe(),e.pingedLanes|=e.suspendedLanes&r,ae===e&&(fe&r)===r&&(ie===4||ie===3&&(fe&130023424)===fe&&500>Gt()-up?gn(e,0):cp|=r),je(e,t)}function Nx(e,t){t===0&&(e.mode&1?(t=Xa,Xa<<=1,!(Xa&130023424)&&(Xa=4194304)):t=1);var r=Fe();e=ci(e,t),e!==null&&(Ta(e,t,r),je(e,r))}function H_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Nx(e,r)}function j_(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(U(314))}i!==null&&i.delete(t),Nx(e,r)}var zx;zx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)ze=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return ze=!1,A_(e,t,r);ze=!!(e.flags&131072)}else ze=!1,Dt&&t.flags&1048576&&jC(t,rh,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Bl(e,t),e=t.pendingProps;var n=Oo(t,we.current);po(t,r),n=np(null,t,i,e,n,r);var o=op();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,He(i)?(o=!0,th(t)):o=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Jf(t),n.updater=Jh,t.stateNode=n,n._reactInternals=t,cd(t,i,e,r),t=fd(null,t,i,!0,o,r)):(t.tag=0,Dt&&o&&Yf(t),Be(null,t,n,r),t=t.child),t;case 16:i=t.elementType;t:{switch(Bl(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=Y_(i),e=gr(i,e),n){case 0:t=dd(null,t,i,e,r);break t;case 1:t=Rm(null,t,i,e,r);break t;case 11:t=Pm(null,t,i,e,r);break t;case 14:t=Dm(null,t,i,gr(i.type,e),r);break t}throw Error(U(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:gr(i,n),dd(e,t,i,n,r);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:gr(i,n),Rm(e,t,i,n,r);case 3:t:{if(wx(t),e===null)throw Error(U(387));i=t.pendingProps,o=t.memoizedState,n=o.element,QC(e,t),oh(t,i,null,r);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){n=Ro(Error(U(423)),t),t=Nm(e,t,i,r,n);break t}else if(i!==n){n=Ro(Error(U(424)),t),t=Nm(e,t,i,r,n);break t}else for(Ge=Ii(t.stateNode.containerInfo.firstChild),Xe=t,Dt=!0,Cr=null,r=GC(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Io(),i===n){t=ui(e,t,r);break t}Be(e,t,i,r)}t=t.child}return t;case 5:return KC(t),e===null&&ad(t),i=t.type,n=t.pendingProps,o=e!==null?e.memoizedProps:null,s=n.children,rd(i,n)?s=null:o!==null&&rd(i,o)&&(t.flags|=32),bx(e,t),Be(e,t,s,r),t.child;case 6:return e===null&&ad(t),null;case 13:return Sx(e,t,r);case 4:return tp(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Po(t,null,i,r):Be(e,t,i,r),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:gr(i,n),Pm(e,t,i,n,r);case 7:return Be(e,t,t.pendingProps,r),t.child;case 8:return Be(e,t,t.pendingProps.children,r),t.child;case 12:return Be(e,t,t.pendingProps.children,r),t.child;case 10:t:{if(i=t.type._context,n=t.pendingProps,o=t.memoizedProps,s=n.value,$t(ih,i._currentValue),i._currentValue=s,o!==null)if(Br(o.value,s)){if(o.children===n.children&&!qe.current){t=ui(e,t,r);break t}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=oi(-1,r&-r),l.tag=2;var h=o.updateQueue;if(h!==null){h=h.shared;var c=h.pending;c===null?l.next=l:(l.next=c.next,c.next=l),h.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),ld(o.return,r,t),a.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(U(341));s.lanes|=r,a=s.alternate,a!==null&&(a.lanes|=r),ld(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Be(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,po(t,r),n=lr(n),i=i(n),t.flags|=1,Be(e,t,i,r),t.child;case 14:return i=t.type,n=gr(i,t.pendingProps),n=gr(i.type,n),Dm(e,t,i,n,r);case 15:return kx(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:gr(i,n),Bl(e,t),t.tag=1,He(i)?(e=!0,th(t)):e=!1,po(t,r),yx(t,i,n),cd(t,i,n,r),fd(null,t,i,!0,e,r);case 19:return Tx(e,t,r);case 22:return vx(e,t,r)}throw Error(U(156,t.tag))};function Wx(e,t){return pC(e,t)}function U_(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sr(e,t,r,i){return new U_(e,t,r,i)}function gp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y_(e){if(typeof e=="function")return gp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Of)return 11;if(e===If)return 14}return 2}function Ni(e,t){var r=e.alternate;return r===null?(r=sr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Fl(e,t,r,i,n,o){var s=2;if(i=e,typeof e=="function")gp(e)&&(s=1);else if(typeof e=="string")s=5;else t:switch(e){case Qn:return mn(r.children,n,o,t);case $f:s=8,n|=8;break;case Ou:return e=sr(12,r,t,n|2),e.elementType=Ou,e.lanes=o,e;case Iu:return e=sr(13,r,t,n),e.elementType=Iu,e.lanes=o,e;case Pu:return e=sr(19,r,t,n),e.elementType=Pu,e.lanes=o,e;case K0:return rc(r,n,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X0:s=10;break t;case Q0:s=9;break t;case Of:s=11;break t;case If:s=14;break t;case wi:s=16,i=null;break t}throw Error(U(130,e==null?e:typeof e,""))}return t=sr(s,r,t,n),t.elementType=e,t.type=i,t.lanes=o,t}function mn(e,t,r,i){return e=sr(7,e,i,t),e.lanes=r,e}function rc(e,t,r,i){return e=sr(22,e,i,t),e.elementType=K0,e.lanes=r,e.stateNode={isHidden:!1},e}function cu(e,t,r){return e=sr(6,e,null,t),e.lanes=r,e}function uu(e,t,r){return t=sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function V_(e,t,r,i,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uc(0),this.expirationTimes=Uc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uc(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function mp(e,t,r,i,n,o,s,a,l){return e=new V_(e,t,r,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=sr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jf(o),e}function G_(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Xn,key:i==null?null:""+i,children:e,containerInfo:t,implementation:r}}function qx(e){if(!e)return Hi;e=e._reactInternals;t:{if(Mn(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(He(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var r=e.type;if(He(r))return qC(e,r,t)}return t}function Hx(e,t,r,i,n,o,s,a,l){return e=mp(r,i,!0,e,n,o,s,a,l),e.context=qx(null),r=e.current,i=Fe(),n=Ri(r),o=oi(i,n),o.callback=t??null,Pi(r,o,n),e.current.lanes=n,Ta(e,n,i),je(e,i),e}function ic(e,t,r,i){var n=t.current,o=Fe(),s=Ri(n);return r=qx(r),t.context===null?t.context=r:t.pendingContext=r,t=oi(o,s),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=Pi(n,t,s),e!==null&&(Sr(e,n,s,o),Sl(e,n,s)),s}function fh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Xm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function yp(e,t){Xm(e,t),(e=e.alternate)&&Xm(e,t)}function X_(){return null}var jx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cp(e){this._internalRoot=e}nc.prototype.render=Cp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));ic(e,t,null,null)};nc.prototype.unmount=Cp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wn(function(){ic(null,e,null,null)}),t[hi]=null}};function nc(e){this._internalRoot=e}nc.prototype.unstable_scheduleHydration=function(e){if(e){var t=vC();e={blockedOn:null,target:e,priority:t};for(var r=0;r<_i.length&&t!==0&&t<_i[r].priority;r++);_i.splice(r,0,e),r===0&&wC(e)}};function xp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function oc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qm(){}function Q_(e,t,r,i,n){if(n){if(typeof i=="function"){var o=i;i=function(){var h=fh(s);o.call(h)}}var s=Hx(t,i,e,0,null,!1,!1,"",Qm);return e._reactRootContainer=s,e[hi]=s.current,ia(e.nodeType===8?e.parentNode:e),wn(),s}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var a=i;i=function(){var h=fh(l);a.call(h)}}var l=mp(e,0,!1,null,null,!1,!1,"",Qm);return e._reactRootContainer=l,e[hi]=l.current,ia(e.nodeType===8?e.parentNode:e),wn(function(){ic(t,l,r,i)}),l}function sc(e,t,r,i,n){var o=r._reactRootContainer;if(o){var s=o;if(typeof n=="function"){var a=n;n=function(){var l=fh(s);a.call(l)}}ic(t,s,e,n)}else s=Q_(r,t,e,n,i);return fh(s)}xC=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ws(t.pendingLanes);r!==0&&(Rf(t,r|1),je(t,Gt()),!(wt&6)&&(No=Gt()+500,Qi()))}break;case 13:wn(function(){var i=ci(e,1);if(i!==null){var n=Fe();Sr(i,e,1,n)}}),yp(e,1)}};Nf=function(e){if(e.tag===13){var t=ci(e,134217728);if(t!==null){var r=Fe();Sr(t,e,134217728,r)}yp(e,134217728)}};kC=function(e){if(e.tag===13){var t=Ri(e),r=ci(e,t);if(r!==null){var i=Fe();Sr(r,e,t,i)}yp(e,t)}};vC=function(){return Ft};bC=function(e,t){var r=Ft;try{return Ft=e,t()}finally{Ft=r}};Yu=function(e,t,r){switch(t){case"input":if(Nu(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var n=Qh(i);if(!n)throw Error(U(90));J0(i),Nu(i,n)}}}break;case"textarea":eC(e,r);break;case"select":t=r.value,t!=null&&ho(e,!!r.multiple,t,!1)}};lC=dp;hC=wn;var K_={usingClientEntryPoint:!1,Events:[Ba,to,Qh,sC,aC,dp]},ds={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Z_={bundleType:ds.bundleType,version:ds.version,rendererPackageName:ds.rendererPackageName,rendererConfig:ds.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dC(e),e===null?null:e.stateNode},findFiberByHostInstance:ds.findFiberByHostInstance||X_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{Yh=sl.inject(Z_),Wr=sl}catch{}}Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K_;Je.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xp(t))throw Error(U(200));return G_(e,t,null,r)};Je.createRoot=function(e,t){if(!xp(e))throw Error(U(299));var r=!1,i="",n=jx;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=mp(e,1,!1,null,null,r,!1,i,n),e[hi]=t.current,ia(e.nodeType===8?e.parentNode:e),new Cp(t)};Je.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=dC(t),e=e===null?null:e.stateNode,e};Je.flushSync=function(e){return wn(e)};Je.hydrate=function(e,t,r){if(!oc(t))throw Error(U(200));return sc(null,e,t,!0,r)};Je.hydrateRoot=function(e,t,r){if(!xp(e))throw Error(U(405));var i=r!=null&&r.hydratedSources||null,n=!1,o="",s=jx;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Hx(t,null,e,1,r??null,n,!1,o,s),e[hi]=t.current,ia(e),i)for(e=0;e<i.length;e++)r=i[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new nc(t)};Je.render=function(e,t,r){if(!oc(t))throw Error(U(200));return sc(null,e,t,!1,r)};Je.unmountComponentAtNode=function(e){if(!oc(e))throw Error(U(40));return e._reactRootContainer?(wn(function(){sc(null,null,e,!1,function(){e._reactRootContainer=null,e[hi]=null})}),!0):!1};Je.unstable_batchedUpdates=dp;Je.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!oc(r))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return sc(e,t,r,!1,i)};Je.version="18.3.1-next-f1338f8080-20240426";function Ux(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),U0.exports=Je;var J_=U0.exports,Km=J_;Mu.createRoot=Km.createRoot,Mu.hydrateRoot=Km.hydrateRoot;function tB(e){const t=new Date(e),i=new Date().getTime()-t.getTime(),n=Math.floor(i/6e4),o=Math.floor(n/60),s=Math.floor(o/24);return n<1?"just now":n<60?`${n} minute${n===1?"":"s"} ago`:o<24?`${o} hour${o===1?"":"s"} ago`:`${s} day${s===1?"":"s"} ago`}function eB({dossier:e}){return rt.jsxs("header",{className:"header",children:[rt.jsxs("div",{className:"header-left",children:[rt.jsxs("div",{className:"wordmark",children:[rt.jsx("span",{className:"wordmark-glyph",children:"◈"}),"VIBE-SPLAIN"]}),rt.jsx("div",{className:"project-path",children:e.projectRoot})]}),rt.jsxs("div",{className:"header-center",children:["Analyzed ",tB(e.scannedAt)]}),rt.jsxs("div",{className:"header-right",children:[e.stalePaths.length>0&&rt.jsxs("span",{className:"stale-badge",children:["⚠ ",e.stalePaths.length," STALE"]}),rt.jsx("button",{className:"refresh-btn",onClick:()=>window.location.reload(),children:"↺ Refresh"})]})]})}function rB({pillars:e,wildCount:t,activePillar:r,onSelect:i}){return rt.jsxs("div",{className:"tab-bar",children:[e.map(n=>rt.jsxs("button",{className:`tab ${r===n.name?"active":""}`,onClick:()=>i(n.name),children:[n.name,rt.jsx("span",{className:"tab-count",children:n.cardCount})]},n.name)),t>0&&rt.jsxs("button",{className:`tab wild ${r==="Wild Discoveries"?"active":""}`,onClick:()=>i("Wild Discoveries"),children:["⚡ Wild Discoveries",rt.jsx("span",{className:"tab-count",children:t})]})]})}const iB="modulepreload",nB=function(e,t){return new URL(e,t).href},Zm={},vt=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=Promise.allSettled(r.map(h=>{if(h=nB(h,i),h in Zm)return;Zm[h]=!0;const c=h.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!i)for(let g=s.length-1;g>=0;g--){const p=s[g];if(p.href===h&&(!c||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${h}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":iB,c||(d.as="script"),d.crossOrigin="",d.href=h,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((g,p)=>{d.addEventListener("load",g),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return n.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var Yx={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(_S,function(){var r=1e3,i=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",h="day",c="week",u="month",f="quarter",d="year",g="date",p="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|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,x={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(D){var $=["th","st","nd","rd"],F=D%100;return"["+D+($[(F-20)%10]||$[F]||$[0])+"]"}},k=function(D,$,F){var P=String(D);return!P||P.length>=$?D:""+Array($+1-P.length).join(F)+D},b={s:k,z:function(D){var $=-D.utcOffset(),F=Math.abs($),P=Math.floor(F/60),B=F%60;return($<=0?"+":"-")+k(P,2,"0")+":"+k(B,2,"0")},m:function D($,F){if($.date()<F.date())return-D(F,$);var P=12*(F.year()-$.year())+(F.month()-$.month()),B=$.clone().add(P,u),S=F-B<0,I=$.clone().add(P+(S?-1:1),u);return+(-(P+(F-B)/(S?B-I:I-B))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:u,y:d,w:c,d:h,D:g,h:l,m:a,s,ms:o,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},w="en",T={};T[w]=x;var E="$isDayjsObject",L=function(D){return D instanceof j||!(!D||!D[E])},W=function D($,F,P){var B;if(!$)return w;if(typeof $=="string"){var S=$.toLowerCase();T[S]&&(B=S),F&&(T[S]=F,B=S);var I=$.split("-");if(!B&&I.length>1)return D(I[0])}else{var V=$.name;T[V]=$,B=V}return!P&&B&&(w=B),B||!P&&w},M=function(D,$){if(L(D))return D.clone();var F=typeof $=="object"?$:{};return F.date=D,F.args=arguments,new j(F)},O=b;O.l=W,O.i=L,O.w=function(D,$){return M(D,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var j=function(){function D(F){this.$L=W(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[E]=!0}var $=D.prototype;return $.parse=function(F){this.$d=function(P){var B=P.date,S=P.utc;if(B===null)return new Date(NaN);if(O.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var I=B.match(C);if(I){var V=I[2]-1||0,it=(I[7]||"0").substring(0,3);return S?new Date(Date.UTC(I[1],V,I[3]||1,I[4]||0,I[5]||0,I[6]||0,it)):new Date(I[1],V,I[3]||1,I[4]||0,I[5]||0,I[6]||0,it)}}return new Date(B)}(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return O},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(F,P){var B=M(F);return this.startOf(P)<=B&&B<=this.endOf(P)},$.isAfter=function(F,P){return M(F)<this.startOf(P)},$.isBefore=function(F,P){return this.endOf(P)<M(F)},$.$g=function(F,P,B){return O.u(F)?this[P]:this.set(B,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,P){var B=this,S=!!O.u(P)||P,I=O.p(F),V=function(er,nt){var K=O.w(B.$u?Date.UTC(B.$y,nt,er):new Date(B.$y,nt,er),B);return S?K:K.endOf(h)},it=function(er,nt){return O.w(B.toDate()[er].apply(B.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(nt)),B)},pt=this.$W,dt=this.$M,kt=this.$D,_t="set"+(this.$u?"UTC":"");switch(I){case d:return S?V(1,0):V(31,11);case u:return S?V(1,dt):V(0,dt+1);case c:var qt=this.$locale().weekStart||0,Ue=(pt<qt?pt+7:pt)-qt;return V(S?kt-Ue:kt+(6-Ue),dt);case h:case g:return it(_t+"Hours",0);case l:return it(_t+"Minutes",1);case a:return it(_t+"Seconds",2);case s:return it(_t+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,P){var B,S=O.p(F),I="set"+(this.$u?"UTC":""),V=(B={},B[h]=I+"Date",B[g]=I+"Date",B[u]=I+"Month",B[d]=I+"FullYear",B[l]=I+"Hours",B[a]=I+"Minutes",B[s]=I+"Seconds",B[o]=I+"Milliseconds",B)[S],it=S===h?this.$D+(P-this.$W):P;if(S===u||S===d){var pt=this.clone().set(g,1);pt.$d[V](it),pt.init(),this.$d=pt.set(g,Math.min(this.$D,pt.daysInMonth())).$d}else V&&this.$d[V](it);return this.init(),this},$.set=function(F,P){return this.clone().$set(F,P)},$.get=function(F){return this[O.p(F)]()},$.add=function(F,P){var B,S=this;F=Number(F);var I=O.p(P),V=function(dt){var kt=M(S);return O.w(kt.date(kt.date()+Math.round(dt*F)),S)};if(I===u)return this.set(u,this.$M+F);if(I===d)return this.set(d,this.$y+F);if(I===h)return V(1);if(I===c)return V(7);var it=(B={},B[a]=i,B[l]=n,B[s]=r,B)[I]||1,pt=this.$d.getTime()+F*it;return O.w(pt,this)},$.subtract=function(F,P){return this.add(-1*F,P)},$.format=function(F){var P=this,B=this.$locale();if(!this.isValid())return B.invalidDate||p;var S=F||"YYYY-MM-DDTHH:mm:ssZ",I=O.z(this),V=this.$H,it=this.$m,pt=this.$M,dt=B.weekdays,kt=B.months,_t=B.meridiem,qt=function(nt,K,Et,mt){return nt&&(nt[K]||nt(P,S))||Et[K].slice(0,mt)},Ue=function(nt){return O.s(V%12||12,nt,"0")},er=_t||function(nt,K,Et){var mt=nt<12?"AM":"PM";return Et?mt.toLowerCase():mt};return S.replace(y,function(nt,K){return K||function(Et){switch(Et){case"YY":return String(P.$y).slice(-2);case"YYYY":return O.s(P.$y,4,"0");case"M":return pt+1;case"MM":return O.s(pt+1,2,"0");case"MMM":return qt(B.monthsShort,pt,kt,3);case"MMMM":return qt(kt,pt);case"D":return P.$D;case"DD":return O.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return qt(B.weekdaysMin,P.$W,dt,2);case"ddd":return qt(B.weekdaysShort,P.$W,dt,3);case"dddd":return dt[P.$W];case"H":return String(V);case"HH":return O.s(V,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return er(V,it,!0);case"A":return er(V,it,!1);case"m":return String(it);case"mm":return O.s(it,2,"0");case"s":return String(P.$s);case"ss":return O.s(P.$s,2,"0");case"SSS":return O.s(P.$ms,3,"0");case"Z":return I}return null}(nt)||I.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,P,B){var S,I=this,V=O.p(P),it=M(F),pt=(it.utcOffset()-this.utcOffset())*i,dt=this-it,kt=function(){return O.m(I,it)};switch(V){case d:S=kt()/12;break;case u:S=kt();break;case f:S=kt()/3;break;case c:S=(dt-pt)/6048e5;break;case h:S=(dt-pt)/864e5;break;case l:S=dt/n;break;case a:S=dt/i;break;case s:S=dt/r;break;default:S=dt}return B?S:O.a(S)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return T[this.$L]},$.locale=function(F,P){if(!F)return this.$L;var B=this.clone(),S=W(F,P,!0);return S&&(B.$L=S),B},$.clone=function(){return O.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},D}(),H=j.prototype;return M.prototype=H,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",h],["$M",u],["$y",d],["$D",g]].forEach(function(D){H[D[1]]=function($){return this.$g($,D[0],D[1])}}),M.extend=function(D,$){return D.$i||(D($,j,M),D.$i=!0),M},M.locale=W,M.isDayjs=L,M.unix=function(D){return M(1e3*D)},M.en=T[w],M.Ls=T,M.p={},M})})(Yx);var oB=Yx.exports;const sB=$0(oB);var Vx=Object.defineProperty,m=(e,t)=>Vx(e,"name",{value:t,configurable:!0}),aB=(e,t)=>{for(var r in t)Vx(e,r,{get:t[r],enumerable:!0})},Qr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},q={trace:m((...e)=>{},"trace"),debug:m((...e)=>{},"debug"),info:m((...e)=>{},"info"),warn:m((...e)=>{},"warn"),error:m((...e)=>{},"error"),fatal:m((...e)=>{},"fatal")},kp=m(function(e="fatal"){let t=Qr.fatal;typeof e=="string"?e.toLowerCase()in Qr&&(t=Qr[e]):typeof e=="number"&&(t=e),q.trace=()=>{},q.debug=()=>{},q.info=()=>{},q.warn=()=>{},q.error=()=>{},q.fatal=()=>{},t<=Qr.fatal&&(q.fatal=console.error?console.error.bind(console,ir("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ir("FATAL"))),t<=Qr.error&&(q.error=console.error?console.error.bind(console,ir("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ir("ERROR"))),t<=Qr.warn&&(q.warn=console.warn?console.warn.bind(console,ir("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ir("WARN"))),t<=Qr.info&&(q.info=console.info?console.info.bind(console,ir("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ir("INFO"))),t<=Qr.debug&&(q.debug=console.debug?console.debug.bind(console,ir("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ir("DEBUG"))),t<=Qr.trace&&(q.trace=console.debug?console.debug.bind(console,ir("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ir("TRACE")))},"setLogLevel"),ir=m(e=>`%c${sB().format("ss.SSS")} : ${e} : `,"format");const Al={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,o=2*r-n;switch(i){case"r":return Al.hue2rgb(o,n,e+1/3)*255;case"g":return Al.hue2rgb(o,n,e)*255;case"b":return Al.hue2rgb(o,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),o=Math.min(e,t,r),s=(n+o)/2;if(i==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(i==="s")return l*100;switch(n){case e:return((t-r)/a+(t<r?6:0))*60;case t:return((r-e)/a+2)*60;case r:return((e-t)/a+4)*60;default:return-1}}},lB={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},hB={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},ut={channel:Al,lang:lB,unit:hB},bi={};for(let e=0;e<=255;e++)bi[e]=ut.unit.dec2hex(e);const Ce={ALL:0,RGB:1,HSL:2};class cB{constructor(){this.type=Ce.ALL}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=Ce.ALL}is(t){return this.type===t}}class uB{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new cB}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ce.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=ut.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=ut.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=ut.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=ut.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=ut.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=ut.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ce.HSL)&&r!==void 0?r:(this._ensureHSL(),ut.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ce.HSL)&&r!==void 0?r:(this._ensureHSL(),ut.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ce.HSL)&&r!==void 0?r:(this._ensureHSL(),ut.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ce.RGB)&&r!==void 0?r:(this._ensureRGB(),ut.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ce.RGB)&&r!==void 0?r:(this._ensureRGB(),ut.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ce.RGB)&&r!==void 0?r:(this._ensureRGB(),ut.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ce.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ce.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ce.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ce.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ce.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ce.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ac=new uB({r:0,g:0,b:0,a:0},"transparent"),mo={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(mo.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,h=o?0:-1,c=s?255:15;return ac.set({r:(i>>l*(h+3)&c)*a,g:(i>>l*(h+2)&c)*a,b:(i>>l*(h+1)&c)*a,a:o?(i&c)*a/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${bi[Math.round(t)]}${bi[Math.round(r)]}${bi[Math.round(i)]}${bi[Math.round(n*255)]}`:`#${bi[Math.round(t)]}${bi[Math.round(r)]}${bi[Math.round(i)]}`}},un={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:e=>{const t=e.match(un.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return ut.channel.clamp.h(parseFloat(r)*.9);case"rad":return ut.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return ut.channel.clamp.h(parseFloat(r)*360)}}return ut.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(un.re);if(!r)return;const[,i,n,o,s,a]=r;return ac.set({h:un._hue2deg(i),s:ut.channel.clamp.s(parseFloat(n)),l:ut.channel.clamp.l(parseFloat(o)),a:s?ut.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${ut.lang.round(t)}, ${ut.lang.round(r)}%, ${ut.lang.round(i)}%, ${n})`:`hsl(${ut.lang.round(t)}, ${ut.lang.round(r)}%, ${ut.lang.round(i)}%)`}},Hs={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:e=>{e=e.toLowerCase();const t=Hs.colors[e];if(t)return mo.parse(t)},stringify:e=>{const t=mo.stringify(e);for(const r in Hs.colors)if(Hs.colors[r]===t)return r}},Ts={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Ts.re);if(!r)return;const[,i,n,o,s,a,l,h,c]=r;return ac.set({r:ut.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:ut.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:ut.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?ut.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${ut.lang.round(t)}, ${ut.lang.round(r)}, ${ut.lang.round(i)}, ${ut.lang.round(n)})`:`rgb(${ut.lang.round(t)}, ${ut.lang.round(r)}, ${ut.lang.round(i)})`}},jr={format:{keyword:Hs,hex:mo,rgb:Ts,rgba:Ts,hsl:un,hsla:un},parse:e=>{if(typeof e!="string")return e;const t=mo.parse(e)||Ts.parse(e)||un.parse(e)||Hs.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ce.HSL)||e.data.r===void 0?un.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ts.stringify(e):mo.stringify(e)},Gx=(e,t)=>{const r=jr.parse(e);for(const i in t)r[i]=ut.channel.clamp[i](t[i]);return jr.stringify(r)},zi=(e,t,r=0,i=1)=>{if(typeof e!="number")return Gx(e,{a:t});const n=ac.set({r:ut.channel.clamp.r(e),g:ut.channel.clamp.g(t),b:ut.channel.clamp.b(r),a:ut.channel.clamp.a(i)});return jr.stringify(n)},dB=e=>{const{r:t,g:r,b:i}=jr.parse(e),n=.2126*ut.channel.toLinear(t)+.7152*ut.channel.toLinear(r)+.0722*ut.channel.toLinear(i);return ut.lang.round(n)},fB=e=>dB(e)>=.5,Er=e=>!fB(e),Xx=(e,t,r)=>{const i=jr.parse(e),n=i[t],o=ut.channel.clamp[t](n+r);return n!==o&&(i[t]=o),jr.stringify(i)},R=(e,t)=>Xx(e,"l",t),N=(e,t)=>Xx(e,"l",-t),v=(e,t)=>{const r=jr.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return Gx(e,i)},pB=(e,t,r=50)=>{const{r:i,g:n,b:o,a:s}=jr.parse(e),{r:a,g:l,b:h,a:c}=jr.parse(t),u=r/100,f=u*2-1,d=s-c,p=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,C=1-p,y=i*p+a*C,x=n*p+l*C,k=o*p+h*C,b=s*u+c*(1-u);return zi(y,x,k,b)},A=(e,t=100)=>{const r=jr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,pB(r,e,t)};/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */function Jm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function gB(e){if(Array.isArray(e))return e}function mB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,o,s,a=[],l=!0,h=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(i=o.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(c){h=!0,n=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw n}}return a}}function yB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CB(e,t){return gB(e)||mB(e,t)||xB(e,t)||yB()}function xB(e,t){if(e){if(typeof e=="string")return Jm(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jm(e,t):void 0}}const Qx=Object.entries,ty=Object.setPrototypeOf,kB=Object.isFrozen,vB=Object.getPrototypeOf,bB=Object.getOwnPropertyDescriptor;let Ae=Object.freeze,cr=Object.seal,Un=Object.create,Kx=typeof Reflect<"u"&&Reflect,Td=Kx.apply,_d=Kx.construct;Ae||(Ae=function(t){return t});cr||(cr=function(t){return t});Td||(Td=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];return t.apply(r,n)});_d||(_d=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const Kr=Zt(Array.prototype.forEach),wB=Zt(Array.prototype.lastIndexOf),ey=Zt(Array.prototype.pop),zn=Zt(Array.prototype.push),SB=Zt(Array.prototype.splice),_e=Array.isArray,_s=Zt(String.prototype.toLowerCase),du=Zt(String.prototype.toString),ry=Zt(String.prototype.match),Wn=Zt(String.prototype.replace),iy=Zt(String.prototype.indexOf),TB=Zt(String.prototype.trim),_B=Zt(Number.prototype.toString),BB=Zt(Boolean.prototype.toString),ny=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),oy=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),Ut=Zt(Object.prototype.hasOwnProperty),fs=Zt(Object.prototype.toString),he=Zt(RegExp.prototype.test),tn=LB(TypeError);function Zt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return Td(e,t,i)}}function LB(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return _d(e,r)}}function gt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_s;if(ty&&ty(e,null),!_e(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const o=r(n);o!==n&&(kB(t)||(t[i]=o),n=o)}e[n]=!0}return e}function EB(e){for(let t=0;t<e.length;t++)Ut(e,t)||(e[t]=null);return e}function ye(e){const t=Un(null);for(const i of Qx(e)){var r=CB(i,2);const n=r[0],o=r[1];Ut(e,n)&&(_e(o)?t[n]=EB(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=ye(o):t[n]=o)}return t}function FB(e){switch(typeof e){case"string":return e;case"number":return _B(e);case"boolean":return BB(e);case"bigint":return ny?ny(e):"0";case"symbol":return oy?oy(e):"Symbol()";case"undefined":return fs(e);case"function":case"object":{if(e===null)return fs(e);const t=e,r=Ir(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:fs(i)}return fs(e)}default:return fs(e)}}function Ir(e,t){for(;e!==null;){const i=bB(e,t);if(i){if(i.get)return Zt(i.get);if(typeof i.value=="function")return Zt(i.value)}e=vB(e)}function r(){return null}return r}function AB(e){try{return he(e,""),!0}catch{return!1}}const sy=Ae(["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","search","section","select","shadow","slot","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"]),fu=Ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),pu=Ae(["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"]),MB=Ae(["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"]),gu=Ae(["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"]),$B=Ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ay=Ae(["#text"]),ly=Ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),mu=Ae(["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","mask-type","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"]),hy=Ae(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),al=Ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),OB=cr(/{{[\w\W]*|^[\w\W]*}}/g),IB=cr(/<%[\w\W]*|^[\w\W]*%>/g),PB=cr(/\${[\w\W]*/g),DB=cr(/^data-[\-\w.\u00B7-\uFFFF]+$/),RB=cr(/^aria-[\-\w]+$/),cy=cr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NB=cr(/^(?:\w+script|data):/i),zB=cr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),WB=cr(/^html$/i),qB=cr(/^[a-z][.\w]*(-[.\w]+)+$/i),Or={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},HB=function(){return typeof window>"u"?null:window},jB=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},uy=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Zx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:HB();const t=X=>Zx(X);if(t.version="3.4.9",t.removed=[],!e||!e.document||e.document.nodeType!==Or.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,n=i.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,s=e.Node,a=e.Element,l=e.NodeFilter,h=e.NamedNodeMap;h===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,u=e.trustedTypes,f=a.prototype,d=Ir(f,"cloneNode"),g=Ir(f,"remove"),p=Ir(f,"nextSibling"),C=Ir(f,"childNodes"),y=Ir(f,"parentNode"),x=Ir(f,"shadowRoot"),k=Ir(f,"attributes"),b=s&&s.prototype?Ir(s.prototype,"nodeType"):null,w=s&&s.prototype?Ir(s.prototype,"nodeName"):null;if(typeof o=="function"){const X=r.createElement("template");X.content&&X.content.ownerDocument&&(r=X.content.ownerDocument)}let T,E="",L,W=!1,M=0;const O=function(){if(M>0)throw tn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(_){O(),M++;try{return T.createHTML(_)}finally{M--}},H=function(_){O(),M++;try{return T.createScriptURL(_)}finally{M--}},D=function(){return W||(L=jB(u,n),W=!0),L},$=r,F=$.implementation,P=$.createNodeIterator,B=$.createDocumentFragment,S=$.getElementsByTagName,I=i.importNode;let V=uy();t.isSupported=typeof Qx=="function"&&typeof y=="function"&&F&&F.createHTMLDocument!==void 0;const it=OB,pt=IB,dt=PB,kt=DB,_t=RB,qt=NB,Ue=zB,er=qB;let nt=cy,K=null;const Et=gt({},[...sy,...fu,...pu,...gu,...ay]);let mt=null;const dr=gt({},[...ly,...mu,...hy,...al]);let Bt=Object.seal(Un(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}})),Ci=null,es=null;const rr=Object.seal(Un(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let bg=!0,_c=!0,wg=!1,Sg=!0,xi=!1,rs=!0,Zi=!1,Bc=!1,Lc=!1,On=!1,Ra=!1,Na=!1,Tg=!0,_g=!1;const Bg="user-content-";let Ec=!0,Fc=!1,In={},Ar=null;const Ac=gt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Lg=null;const Eg=gt({},["audio","video","img","source","image","track"]);let Mc=null;const Fg=gt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),za="http://www.w3.org/1998/Math/MathML",Wa="http://www.w3.org/2000/svg",Mr="http://www.w3.org/1999/xhtml";let Pn=Mr,$c=!1,Oc=null;const gS=gt({},[za,Wa,Mr],du);let Ic=gt({},["mi","mo","mn","ms","mtext"]),Pc=gt({},["annotation-xml"]);const mS=gt({},["title","style","font","a","script"]);let is=null;const yS=["application/xhtml+xml","text/html"],CS="text/html";let Ht=null,Dn=null;const xS=r.createElement("form"),Ag=function(_){return _ instanceof RegExp||_ instanceof Function},Dc=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Dn&&Dn===_)return;(!_||typeof _!="object")&&(_={}),_=ye(_),is=yS.indexOf(_.PARSER_MEDIA_TYPE)===-1?CS:_.PARSER_MEDIA_TYPE,Ht=is==="application/xhtml+xml"?du:_s,K=Ut(_,"ALLOWED_TAGS")&&_e(_.ALLOWED_TAGS)?gt({},_.ALLOWED_TAGS,Ht):Et,mt=Ut(_,"ALLOWED_ATTR")&&_e(_.ALLOWED_ATTR)?gt({},_.ALLOWED_ATTR,Ht):dr,Oc=Ut(_,"ALLOWED_NAMESPACES")&&_e(_.ALLOWED_NAMESPACES)?gt({},_.ALLOWED_NAMESPACES,du):gS,Mc=Ut(_,"ADD_URI_SAFE_ATTR")&&_e(_.ADD_URI_SAFE_ATTR)?gt(ye(Fg),_.ADD_URI_SAFE_ATTR,Ht):Fg,Lg=Ut(_,"ADD_DATA_URI_TAGS")&&_e(_.ADD_DATA_URI_TAGS)?gt(ye(Eg),_.ADD_DATA_URI_TAGS,Ht):Eg,Ar=Ut(_,"FORBID_CONTENTS")&&_e(_.FORBID_CONTENTS)?gt({},_.FORBID_CONTENTS,Ht):Ac,Ci=Ut(_,"FORBID_TAGS")&&_e(_.FORBID_TAGS)?gt({},_.FORBID_TAGS,Ht):ye({}),es=Ut(_,"FORBID_ATTR")&&_e(_.FORBID_ATTR)?gt({},_.FORBID_ATTR,Ht):ye({}),In=Ut(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?ye(_.USE_PROFILES):_.USE_PROFILES:!1,bg=_.ALLOW_ARIA_ATTR!==!1,_c=_.ALLOW_DATA_ATTR!==!1,wg=_.ALLOW_UNKNOWN_PROTOCOLS||!1,Sg=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xi=_.SAFE_FOR_TEMPLATES||!1,rs=_.SAFE_FOR_XML!==!1,Zi=_.WHOLE_DOCUMENT||!1,On=_.RETURN_DOM||!1,Ra=_.RETURN_DOM_FRAGMENT||!1,Na=_.RETURN_TRUSTED_TYPE||!1,Lc=_.FORCE_BODY||!1,Tg=_.SANITIZE_DOM!==!1,_g=_.SANITIZE_NAMED_PROPS||!1,Ec=_.KEEP_CONTENT!==!1,Fc=_.IN_PLACE||!1,nt=AB(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:cy,Pn=typeof _.NAMESPACE=="string"?_.NAMESPACE:Mr,Ic=Ut(_,"MATHML_TEXT_INTEGRATION_POINTS")&&_.MATHML_TEXT_INTEGRATION_POINTS&&typeof _.MATHML_TEXT_INTEGRATION_POINTS=="object"?ye(_.MATHML_TEXT_INTEGRATION_POINTS):gt({},["mi","mo","mn","ms","mtext"]),Pc=Ut(_,"HTML_INTEGRATION_POINTS")&&_.HTML_INTEGRATION_POINTS&&typeof _.HTML_INTEGRATION_POINTS=="object"?ye(_.HTML_INTEGRATION_POINTS):gt({},["annotation-xml"]);const z=Ut(_,"CUSTOM_ELEMENT_HANDLING")&&_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING=="object"?ye(_.CUSTOM_ELEMENT_HANDLING):Un(null);if(Bt=Un(null),Ut(z,"tagNameCheck")&&Ag(z.tagNameCheck)&&(Bt.tagNameCheck=z.tagNameCheck),Ut(z,"attributeNameCheck")&&Ag(z.attributeNameCheck)&&(Bt.attributeNameCheck=z.attributeNameCheck),Ut(z,"allowCustomizedBuiltInElements")&&typeof z.allowCustomizedBuiltInElements=="boolean"&&(Bt.allowCustomizedBuiltInElements=z.allowCustomizedBuiltInElements),xi&&(_c=!1),Ra&&(On=!0),In&&(K=gt({},ay),mt=Un(null),In.html===!0&&(gt(K,sy),gt(mt,ly)),In.svg===!0&&(gt(K,fu),gt(mt,mu),gt(mt,al)),In.svgFilters===!0&&(gt(K,pu),gt(mt,mu),gt(mt,al)),In.mathMl===!0&&(gt(K,gu),gt(mt,hy),gt(mt,al))),rr.tagCheck=null,rr.attributeCheck=null,Ut(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?rr.tagCheck=_.ADD_TAGS:_e(_.ADD_TAGS)&&(K===Et&&(K=ye(K)),gt(K,_.ADD_TAGS,Ht))),Ut(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?rr.attributeCheck=_.ADD_ATTR:_e(_.ADD_ATTR)&&(mt===dr&&(mt=ye(mt)),gt(mt,_.ADD_ATTR,Ht))),Ut(_,"ADD_URI_SAFE_ATTR")&&_e(_.ADD_URI_SAFE_ATTR)&>(Mc,_.ADD_URI_SAFE_ATTR,Ht),Ut(_,"FORBID_CONTENTS")&&_e(_.FORBID_CONTENTS)&&(Ar===Ac&&(Ar=ye(Ar)),gt(Ar,_.FORBID_CONTENTS,Ht)),Ut(_,"ADD_FORBID_CONTENTS")&&_e(_.ADD_FORBID_CONTENTS)&&(Ar===Ac&&(Ar=ye(Ar)),gt(Ar,_.ADD_FORBID_CONTENTS,Ht)),Ec&&(K["#text"]=!0),Zi&>(K,["html","head","body"]),K.table&&(gt(K,["tbody"]),delete Ci.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Y=T;T=_.TRUSTED_TYPES_POLICY;try{E=j("")}catch(ct){throw T=Y,ct}}else _.TRUSTED_TYPES_POLICY===null?(T=void 0,E=""):(T===void 0&&(T=D()),T&&typeof E=="string"&&(E=j("")));(V.uponSanitizeElement.length>0||V.uponSanitizeAttribute.length>0)&&K===Et&&(K=ye(K)),V.uponSanitizeAttribute.length>0&&mt===dr&&(mt=ye(mt)),Ae&&Ae(_),Dn=_},Mg=gt({},[...fu,...pu,...MB]),$g=gt({},[...gu,...$B]),kS=function(_){let z=y(_);(!z||!z.tagName)&&(z={namespaceURI:Pn,tagName:"template"});const Y=_s(_.tagName),ct=_s(z.tagName);return Oc[_.namespaceURI]?_.namespaceURI===Wa?z.namespaceURI===Mr?Y==="svg":z.namespaceURI===za?Y==="svg"&&(ct==="annotation-xml"||Ic[ct]):!!Mg[Y]:_.namespaceURI===za?z.namespaceURI===Mr?Y==="math":z.namespaceURI===Wa?Y==="math"&&Pc[ct]:!!$g[Y]:_.namespaceURI===Mr?z.namespaceURI===Wa&&!Pc[ct]||z.namespaceURI===za&&!Ic[ct]?!1:!$g[Y]&&(mS[Y]||!Mg[Y]):!!(is==="application/xhtml+xml"&&Oc[_.namespaceURI]):!1},fr=function(_){zn(t.removed,{element:_});try{y(_).removeChild(_)}catch{if(g(_),!y(_))throw tn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Og=function(_){const z=C?C(_):_.childNodes;if(z){const ct=[];Kr(z,ft=>{zn(ct,ft)}),Kr(ct,ft=>{try{g(ft)}catch{}})}const Y=k?k(_):null;if(Y)for(let ct=Y.length-1;ct>=0;--ct){const ft=Y[ct],yt=ft&&ft.name;if(typeof yt=="string")try{_.removeAttribute(yt)}catch{}}},Ji=function(_,z){try{zn(t.removed,{attribute:z.getAttributeNode(_),from:z})}catch{zn(t.removed,{attribute:null,from:z})}if(z.removeAttribute(_),_==="is")if(On||Ra)try{fr(z)}catch{}else try{z.setAttribute(_,"")}catch{}},vS=function(_){const z=k?k(_):_.attributes;if(z)for(let Y=z.length-1;Y>=0;--Y){const ct=z[Y],ft=ct&&ct.name;if(!(typeof ft!="string"||mt[Ht(ft)]))try{_.removeAttribute(ft)}catch{}}},bS=function(_){const z=[_];for(;z.length>0;){const Y=z.pop();(b?b(Y):Y.nodeType)===Or.element&&vS(Y);const ft=C?C(Y):Y.childNodes;if(ft)for(let yt=ft.length-1;yt>=0;--yt)z.push(ft[yt])}},Ig=function(_){let z=null,Y=null;if(Lc)_="<remove></remove>"+_;else{const yt=ry(_,/^[\r\n\t ]+/);Y=yt&&yt[0]}is==="application/xhtml+xml"&&Pn===Mr&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ct=T?j(_):_;if(Pn===Mr)try{z=new c().parseFromString(ct,is)}catch{}if(!z||!z.documentElement){z=F.createDocument(Pn,"template",null);try{z.documentElement.innerHTML=$c?E:ct}catch{}}const ft=z.body||z.documentElement;return _&&Y&&ft.insertBefore(r.createTextNode(Y),ft.childNodes[0]||null),Pn===Mr?S.call(z,Zi?"html":"body")[0]:Zi?z.documentElement:ft},Pg=function(_){return P.call(_.ownerDocument||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Rc=function(_){var z,Y;_.normalize();const ct=P.call(_.ownerDocument||_,_,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let ft=ct.nextNode();for(;ft;){let Jt=ft.data;Kr([it,pt,dt],Mt=>{Jt=Wn(Jt,Mt," ")}),ft.data=Jt,ft=ct.nextNode()}const yt=(z=(Y=_.querySelectorAll)===null||Y===void 0?void 0:Y.call(_,"template"))!==null&&z!==void 0?z:[];Kr(Array.from(yt),Jt=>{Rn(Jt.content)&&Rc(Jt.content)})},qa=function(_){const z=w?w(_):null;return typeof z!="string"||Ht(z)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==k(_)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==b(_)||_.childNodes!==C(_)},Rn=function(_){if(!b||typeof _!="object"||_===null)return!1;try{return b(_)===Or.documentFragment}catch{return!1}},ns=function(_){if(!b||typeof _!="object"||_===null)return!1;try{return typeof b(_)=="number"}catch{return!1}};function Xr(X,_,z){Kr(X,Y=>{Y.call(t,_,z,Dn)})}const Dg=function(_){let z=null;if(Xr(V.beforeSanitizeElements,_,null),qa(_))return fr(_),!0;const Y=Ht(w?w(_):_.nodeName);if(Xr(V.uponSanitizeElement,_,{tagName:Y,allowedTags:K}),rs&&_.hasChildNodes()&&!ns(_.firstElementChild)&&he(/<[/\w!]/g,_.innerHTML)&&he(/<[/\w!]/g,_.textContent)||rs&&_.namespaceURI===Mr&&Y==="style"&&ns(_.firstElementChild)||_.nodeType===Or.progressingInstruction||rs&&_.nodeType===Or.comment&&he(/<[/\w]/g,_.data))return fr(_),!0;if(Ci[Y]||!(rr.tagCheck instanceof Function&&rr.tagCheck(Y))&&!K[Y]){if(!Ci[Y]&&Ng(Y)&&(Bt.tagNameCheck instanceof RegExp&&he(Bt.tagNameCheck,Y)||Bt.tagNameCheck instanceof Function&&Bt.tagNameCheck(Y)))return!1;if(Ec&&!Ar[Y]){const ft=y(_),yt=C(_);if(yt&&ft){const Jt=yt.length;for(let Mt=Jt-1;Mt>=0;--Mt){const Vt=Fc?yt[Mt]:d(yt[Mt],!0);ft.insertBefore(Vt,p(_))}}}return fr(_),!0}return(b?b(_):_.nodeType)===Or.element&&!kS(_)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&he(/<\/no(script|embed|frames)/i,_.innerHTML)?(fr(_),!0):(xi&&_.nodeType===Or.text&&(z=_.textContent,Kr([it,pt,dt],ft=>{z=Wn(z,ft," ")}),_.textContent!==z&&(zn(t.removed,{element:_.cloneNode()}),_.textContent=z)),Xr(V.afterSanitizeElements,_,null),!1)},Rg=function(_,z,Y){if(es[z]||Tg&&(z==="id"||z==="name")&&(Y in r||Y in xS))return!1;const ct=mt[z]||rr.attributeCheck instanceof Function&&rr.attributeCheck(z,_);if(!(_c&&!es[z]&&he(kt,z))){if(!(bg&&he(_t,z))){if(!ct||es[z]){if(!(Ng(_)&&(Bt.tagNameCheck instanceof RegExp&&he(Bt.tagNameCheck,_)||Bt.tagNameCheck instanceof Function&&Bt.tagNameCheck(_))&&(Bt.attributeNameCheck instanceof RegExp&&he(Bt.attributeNameCheck,z)||Bt.attributeNameCheck instanceof Function&&Bt.attributeNameCheck(z,_))||z==="is"&&Bt.allowCustomizedBuiltInElements&&(Bt.tagNameCheck instanceof RegExp&&he(Bt.tagNameCheck,Y)||Bt.tagNameCheck instanceof Function&&Bt.tagNameCheck(Y))))return!1}else if(!Mc[z]){if(!he(nt,Wn(Y,Ue,""))){if(!((z==="src"||z==="xlink:href"||z==="href")&&_!=="script"&&iy(Y,"data:")===0&&Lg[_])){if(!(wg&&!he(qt,Wn(Y,Ue,"")))){if(Y)return!1}}}}}}return!0},wS=gt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ng=function(_){return!wS[_s(_)]&&he(er,_)},zg=function(_){Xr(V.beforeSanitizeAttributes,_,null);const z=_.attributes;if(!z||qa(_))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:mt,forceKeepAttr:void 0};let ct=z.length;for(;ct--;){const ft=z[ct],yt=ft.name,Jt=ft.namespaceURI,Mt=ft.value,Vt=Ht(yt),ki=Mt;let ne=yt==="value"?ki:TB(ki);if(Y.attrName=Vt,Y.attrValue=ne,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Xr(V.uponSanitizeAttribute,_,Y),ne=Y.attrValue,_g&&(Vt==="id"||Vt==="name")&&iy(ne,Bg)!==0&&(Ji(yt,_),ne=Bg+ne),rs&&he(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ne)){Ji(yt,_);continue}if(Vt==="attributename"&&ry(ne,"href")){Ji(yt,_);continue}if(Y.forceKeepAttr)continue;if(!Y.keepAttr){Ji(yt,_);continue}if(!Sg&&he(/\/>/i,ne)){Ji(yt,_);continue}xi&&Kr([it,pt,dt],qg=>{ne=Wn(ne,qg," ")});const Wg=Ht(_.nodeName);if(!Rg(Wg,Vt,ne)){Ji(yt,_);continue}if(T&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!Jt)switch(u.getAttributeType(Wg,Vt)){case"TrustedHTML":{ne=j(ne);break}case"TrustedScriptURL":{ne=H(ne);break}}if(ne!==ki)try{Jt?_.setAttributeNS(Jt,yt,ne):_.setAttribute(yt,ne),qa(_)?fr(_):ey(t.removed)}catch{Ji(yt,_)}}Xr(V.afterSanitizeAttributes,_,null)},Ha=function(_){let z=null;const Y=Pg(_);for(Xr(V.beforeSanitizeShadowDOM,_,null);z=Y.nextNode();)if(Xr(V.uponSanitizeShadowNode,z,null),Dg(z),zg(z),Rn(z.content)&&Ha(z.content),(b?b(z):z.nodeType)===Or.element){const ft=x?x(z):z.shadowRoot;Rn(ft)&&(Nc(ft),Ha(ft))}Xr(V.afterSanitizeShadowDOM,_,null)},Nc=function(_){const z=[{node:_,shadow:null}];for(;z.length>0;){const Y=z.pop();if(Y.shadow){Ha(Y.shadow);continue}const ct=Y.node,yt=(b?b(ct):ct.nodeType)===Or.element,Jt=C?C(ct):ct.childNodes;if(Jt)for(let Mt=Jt.length-1;Mt>=0;--Mt)z.push({node:Jt[Mt],shadow:null});if(yt){const Mt=w?w(ct):null;if(typeof Mt=="string"&&Ht(Mt)==="template"){const Vt=ct.content;Rn(Vt)&&z.push({node:Vt,shadow:null})}}if(yt){const Mt=x?x(ct):ct.shadowRoot;Rn(Mt)&&z.push({node:null,shadow:Mt},{node:Mt,shadow:null})}}};return t.sanitize=function(X){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=null,Y=null,ct=null,ft=null;if($c=!X,$c&&(X="<!-->"),typeof X!="string"&&!ns(X)&&(X=FB(X),typeof X!="string"))throw tn("dirty is not a string, aborting");if(!t.isSupported)return X;Bc||Dc(_),t.removed=[];const yt=Fc&&typeof X!="string"&&ns(X);if(yt){const Vt=w?w(X):X.nodeName;if(typeof Vt=="string"){const ki=Ht(Vt);if(!K[ki]||Ci[ki])throw tn("root node is forbidden and cannot be sanitized in-place")}if(qa(X))throw tn("root node is clobbered and cannot be sanitized in-place");try{Nc(X)}catch(ki){throw Og(X),ki}}else if(ns(X))z=Ig("<!---->"),Y=z.ownerDocument.importNode(X,!0),Y.nodeType===Or.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?z=Y:z.appendChild(Y),Nc(Y);else{if(!On&&!xi&&!Zi&&X.indexOf("<")===-1)return T&&Na?j(X):X;if(z=Ig(X),!z)return On?null:Na?E:""}z&&Lc&&fr(z.firstChild);const Jt=Pg(yt?X:z);try{for(;ct=Jt.nextNode();)Dg(ct),zg(ct),Rn(ct.content)&&Ha(ct.content)}catch(Vt){throw yt&&Og(X),Vt}if(yt)return Kr(t.removed,Vt=>{Vt.element&&bS(Vt.element)}),xi&&Rc(X),X;if(On){if(xi&&Rc(z),Ra)for(ft=B.call(z.ownerDocument);z.firstChild;)ft.appendChild(z.firstChild);else ft=z;return(mt.shadowroot||mt.shadowrootmode)&&(ft=I.call(i,ft,!0)),ft}let Mt=Zi?z.outerHTML:z.innerHTML;return Zi&&K["!doctype"]&&z.ownerDocument&&z.ownerDocument.doctype&&z.ownerDocument.doctype.name&&he(WB,z.ownerDocument.doctype.name)&&(Mt="<!DOCTYPE "+z.ownerDocument.doctype.name+`>
|
|
43
|
+
`+Mt),xi&&Kr([it,pt,dt],Vt=>{Mt=Wn(Mt,Vt," ")}),T&&Na?j(Mt):Mt},t.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dc(X),Bc=!0},t.clearConfig=function(){Dn=null,Bc=!1,T=L,E=""},t.isValidAttribute=function(X,_,z){Dn||Dc({});const Y=Ht(X),ct=Ht(_);return Rg(Y,ct,z)},t.addHook=function(X,_){typeof _=="function"&&zn(V[X],_)},t.removeHook=function(X,_){if(_!==void 0){const z=wB(V[X],_);return z===-1?void 0:SB(V[X],z,1)[0]}return ey(V[X])},t.removeHooks=function(X){V[X]=[]},t.removeAllHooks=function(){V=uy()},t}var zo=Zx(),Jx=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,js=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,UB=/\s*%%.*\n/gm,xo,t1=(xo=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},m(xo,"UnknownDiagramError"),xo),Sn={},vp=m(function(e,t){e=e.replace(Jx,"").replace(js,"").replace(UB,`
|
|
44
|
+
`);for(const[r,{detector:i}]of Object.entries(Sn))if(i(e,t))return r;throw new t1(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Bd=m((...e)=>{for(const{id:t,detector:r,loader:i}of e)e1(t,r,i)},"registerLazyLoadedDiagrams"),e1=m((e,t,r)=>{Sn[e]&&q.warn(`Detector with key ${e} already exists. Overwriting.`),Sn[e]={detector:t,loader:r},q.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),YB=m(e=>Sn[e].loader,"getDiagramLoader"),Ld=m((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>Ld(e,o,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(o=>{typeof t[o]=="object"&&t[o]!==null&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=Ld(e[o],t[o],{depth:r-1,clobber:i})):(i||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},"assignWithDepth"),ee=Ld,Yr="#ffffff",Vr="#f2f2f2",ht=m((e,t)=>t?v(e,{s:-40,l:10}):v(e,{s:-40,l:-10}),"mkBorder"),ko,VB=(ko=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,o,s,a,l,h,c,u,f,d,g,p,C,y,x,k,b,w,T,E,L,W,M,O,j,H,D,$,F,P,B,S;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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?N(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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(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||R(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.vertLineColor=this.vertLineColor||"navy",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.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||N(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||N(this.mainBkg,10)):(this.rowOdd=this.rowOdd||R(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||R(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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.darkMode)for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScale"+I]=N(this["cScale"+I],75);else for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScale"+I]=N(this["cScale"+I],25);for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScaleInv"+I]=this["cScaleInv"+I]||A(this["cScale"+I]);for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this.darkMode?this["cScalePeer"+I]=this["cScalePeer"+I]||R(this["cScale"+I],10):this["cScalePeer"+I]=this["cScalePeer"+I]||N(this["cScale"+I],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let I=0;I<this.THEME_COLOR_LIMIT;I++)this["cScaleLabel"+I]=this["cScaleLabel"+I]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let I=0;I<5;I++)this["surface"+I]=this["surface"+I]||v(this.mainBkg,{h:180,s:-15,l:t*(5+I*3)}),this["surfacePeer"+I]=this["surfacePeer"+I]||v(this.mainBkg,{h:180,s:-15,l:t*(8+I*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||v(this.primaryColor,{h:64}),this.fillType3=this.fillType3||v(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||v(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||v(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||v(this.primaryColor,{h:128}),this.fillType7=this.fillType7||v(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||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-10}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||v(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.venn1=this.venn1??v(this.primaryColor,{l:-30}),this.venn2=this.venn2??v(this.secondaryColor,{l:-30}),this.venn3=this.venn3??v(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??v(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??v(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??v(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??v(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??v(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((a=this.radar)==null?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((f=this.wardley)==null?void 0:f.backgroundColor)||this.background,axisColor:((d=this.wardley)==null?void 0:d.axisColor)||this.lineColor,axisTextColor:((g=this.wardley)==null?void 0:g.axisTextColor)||this.primaryTextColor,gridColor:((p=this.wardley)==null?void 0:p.gridColor)||this.gridColor,componentFill:((C=this.wardley)==null?void 0:C.componentFill)||this.background,componentStroke:((y=this.wardley)==null?void 0:y.componentStroke)||this.lineColor,componentLabelColor:((x=this.wardley)==null?void 0:x.componentLabelColor)||this.primaryTextColor,linkStroke:((k=this.wardley)==null?void 0:k.linkStroke)||this.lineColor,evolutionStroke:((b=this.wardley)==null?void 0:b.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((w=this.wardley)==null?void 0:w.annotationStroke)||this.lineColor,annotationTextColor:((T=this.wardley)==null?void 0:T.annotationTextColor)||this.primaryTextColor,annotationFill:((E=this.wardley)==null?void 0:E.annotationFill)||this.background},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||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((L=this.xyChart)==null?void 0:L.backgroundColor)||this.background,titleColor:((W=this.xyChart)==null?void 0:W.titleColor)||this.primaryTextColor,dataLabelColor:((M=this.xyChart)==null?void 0:M.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((O=this.xyChart)==null?void 0:O.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((j=this.xyChart)==null?void 0:j.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((H=this.xyChart)==null?void 0:H.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((D=this.xyChart)==null?void 0:D.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:(($=this.xyChart)==null?void 0:$.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((P=this.xyChart)==null?void 0:P.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((B=this.xyChart)==null?void 0:B.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((S=this.xyChart)==null?void 0:S.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?N(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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(ko,"Theme"),ko),GB=m(e=>{const t=new VB;return t.calculate(e),t},"getThemeVariables"),vo,XB=(vo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=A(this.background),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.tertiaryColor),this.lineColor=A(this.background),this.textColor=A(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(A("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=zi(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.radius=5,this.strokeWidth=1,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.clusterBkg="#302F3D",this.sectionBkgColor=N("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=N(this.sectionBkgColor,10),this.taskBorderColor=zi(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=zi(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.vertLineColor="#00BFFF",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||R(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||N(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,n,o,s,a,l,h,c,u,f,d,g,p,C,y,x,k,b,w,T,E,L,W,M,O,j,H,D,$,F,P,B;this.secondBkg=R(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=R(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=R(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=A(this.doneTaskBkgColor),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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330});for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||A(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScalePeer"+S]=this["cScalePeer"+S]||R(this["cScale"+S],10);for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||v(this.mainBkg,{h:30,s:-30,l:-(-10+S*4)}),this["surfacePeer"+S]=this["surfacePeer"+S]||v(this.mainBkg,{h:30,s:-30,l:-(-7+S*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["pie"+S]=this["cScale"+S];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,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";for(let S=0;S<8;S++)this["venn"+(S+1)]=this["venn"+(S+1)]??R(this["cScale"+S],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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:((d=this.radar)==null?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((b=this.radar)==null?void 0:b.graticuleOpacity)||.3,legendBoxSize:((w=this.radar)==null?void 0:w.legendBoxSize)||12,legendFontSize:((T=this.radar)==null?void 0:T.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((E=this.wardley)==null?void 0:E.backgroundColor)||this.background,axisColor:((L=this.wardley)==null?void 0:L.axisColor)||this.lineColor,axisTextColor:((W=this.wardley)==null?void 0:W.axisTextColor)||this.primaryTextColor,gridColor:((M=this.wardley)==null?void 0:M.gridColor)||this.gridColor,componentFill:((O=this.wardley)==null?void 0:O.componentFill)||this.mainBkg,componentStroke:((j=this.wardley)==null?void 0:j.componentStroke)||this.lineColor,componentLabelColor:((H=this.wardley)==null?void 0:H.componentLabelColor)||this.primaryTextColor,linkStroke:((D=this.wardley)==null?void 0:D.linkStroke)||this.lineColor,evolutionStroke:(($=this.wardley)==null?void 0:$.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((F=this.wardley)==null?void 0:F.annotationStroke)||this.lineColor,annotationTextColor:((P=this.wardley)==null?void 0:P.annotationTextColor)||this.primaryTextColor,annotationFill:((B=this.wardley)==null?void 0:B.annotationFill)||this.mainBkg},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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=R(this.secondaryColor,20),this.git1=R(this.pie2||this.secondaryColor,20),this.git2=R(this.pie3||this.tertiaryColor,20),this.git3=R(this.pie4||v(this.primaryColor,{h:-30}),20),this.git4=R(this.pie5||v(this.primaryColor,{h:-60}),20),this.git5=R(this.pie6||v(this.primaryColor,{h:-90}),10),this.git6=R(this.pie7||v(this.primaryColor,{h:60}),10),this.git7=R(this.pie8||v(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||A(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||A(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.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||R("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||R("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||R("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||R("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||R(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||R(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||R(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||R(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(vo,"Theme"),vo),QB=m(e=>{const t=new XB;return t.calculate(e),t},"getThemeVariables"),bo,KB=(bo=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=v(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.tertiaryColor),this.lineColor=A(this.background),this.textColor=A(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ht(this.primaryColor,this.darkMode),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.radius=5,this.strokeWidth=1,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.clusterBkg="#FBFBFF",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.vertLineColor="calculated",this.sectionBkgColor=zi(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.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",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.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,n,o,s,a,l,h,c,u,f,d,g,p,C,y,x,k,b,w,T,E,L,W,M,O,j,H,D,$,F,P,B;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||N(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||N(this.tertiaryColor,40);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=N(this["cScale"+S],10),this["cScalePeer"+S]=this["cScalePeer"+S]||N(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||v(this["cScale"+S],{h:180});for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||v(this.mainBkg,{h:30,l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||v(this.mainBkg,{h:30,l:-(7+S*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||A(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||A(this.labelTextColor);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||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=this.border1,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||R(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||R(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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||v(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-30}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||v(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||v(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.venn1=this.venn1??v(this.primaryColor,{l:-30}),this.venn2=this.venn2??v(this.secondaryColor,{l:-30}),this.venn3=this.venn3??v(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??v(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??v(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??v(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??v(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??v(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((a=this.radar)==null?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((c=this.radar)==null?void 0:c.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((u=this.wardley)==null?void 0:u.backgroundColor)||this.background,axisColor:((f=this.wardley)==null?void 0:f.axisColor)||this.lineColor,axisTextColor:((d=this.wardley)==null?void 0:d.axisTextColor)||this.primaryTextColor,gridColor:((g=this.wardley)==null?void 0:g.gridColor)||this.gridColor,componentFill:((p=this.wardley)==null?void 0:p.componentFill)||this.background,componentStroke:((C=this.wardley)==null?void 0:C.componentStroke)||this.lineColor,componentLabelColor:((y=this.wardley)==null?void 0:y.componentLabelColor)||this.primaryTextColor,linkStroke:((x=this.wardley)==null?void 0:x.linkStroke)||this.lineColor,evolutionStroke:((k=this.wardley)==null?void 0:k.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((b=this.wardley)==null?void 0:b.annotationStroke)||this.lineColor,annotationTextColor:((w=this.wardley)==null?void 0:w.annotationTextColor)||this.primaryTextColor,annotationFill:((T=this.wardley)==null?void 0:T.annotationFill)||this.background},this.xyChart={backgroundColor:((E=this.xyChart)==null?void 0:E.backgroundColor)||this.background,titleColor:((L=this.xyChart)==null?void 0:L.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((M=this.xyChart)==null?void 0:M.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((O=this.xyChart)==null?void 0:O.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((j=this.xyChart)==null?void 0:j.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((H=this.xyChart)==null?void 0:H.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((D=this.xyChart)==null?void 0:D.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(($=this.xyChart)==null?void 0:$.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((F=this.xyChart)==null?void 0:F.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((B=this.xyChart)==null?void 0:B.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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||N(A(this.git0),25),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||A(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||A(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(bo,"Theme"),bo),ZB=m(e=>{const t=new KB;return t.calculate(e),t},"getThemeVariables"),wo,JB=(wo=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=R("#cde498",10),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.primaryColor),this.lineColor=A(this.background),this.textColor=A(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,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.vertLineColor="#00BFFF",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.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,n,o,s,a,l,h,c,u,f,d,g,p,C,y,x,k,b,w,T,E,L,W,M,O,j,H,D,$,F,P,B;this.actorBorder=N(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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||N(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||N(this.tertiaryColor,40);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScale"+S]=N(this["cScale"+S],10),this["cScalePeer"+S]=this["cScalePeer"+S]||N(this["cScale"+S],25);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||v(this["cScale"+S],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||v(this.mainBkg,{h:30,s:-30,l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||v(this.mainBkg,{h:30,s:-30,l:-(8+S*5)});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||R(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||R(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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(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||v(this.primaryColor,{l:-30}),this.pie5=this.pie5||v(this.secondaryColor,{l:-30}),this.pie6=this.pie6||v(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||v(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.venn1=this.venn1??v(this.primaryColor,{l:-30}),this.venn2=this.venn2??v(this.secondaryColor,{l:-30}),this.venn3=this.venn3??v(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??v(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??v(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??v(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??v(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??v(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((a=this.radar)==null?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((c=this.radar)==null?void 0:c.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((u=this.wardley)==null?void 0:u.backgroundColor)||this.background,axisColor:((f=this.wardley)==null?void 0:f.axisColor)||this.lineColor,axisTextColor:((d=this.wardley)==null?void 0:d.axisTextColor)||this.primaryTextColor,gridColor:((g=this.wardley)==null?void 0:g.gridColor)||this.gridColor,componentFill:((p=this.wardley)==null?void 0:p.componentFill)||this.background,componentStroke:((C=this.wardley)==null?void 0:C.componentStroke)||this.lineColor,componentLabelColor:((y=this.wardley)==null?void 0:y.componentLabelColor)||this.primaryTextColor,linkStroke:((x=this.wardley)==null?void 0:x.linkStroke)||this.lineColor,evolutionStroke:((k=this.wardley)==null?void 0:k.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((b=this.wardley)==null?void 0:b.annotationStroke)||this.lineColor,annotationTextColor:((w=this.wardley)==null?void 0:w.annotationTextColor)||this.primaryTextColor,annotationFill:((T=this.wardley)==null?void 0:T.annotationFill)||this.background},this.xyChart={backgroundColor:((E=this.xyChart)==null?void 0:E.backgroundColor)||this.background,titleColor:((L=this.xyChart)==null?void 0:L.titleColor)||this.primaryTextColor,dataLabelColor:((W=this.xyChart)==null?void 0:W.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((M=this.xyChart)==null?void 0:M.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((O=this.xyChart)==null?void 0:O.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((j=this.xyChart)==null?void 0:j.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((H=this.xyChart)==null?void 0:H.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((D=this.xyChart)==null?void 0:D.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(($=this.xyChart)==null?void 0:$.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((F=this.xyChart)==null?void 0:F.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((P=this.xyChart)==null?void 0:P.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((B=this.xyChart)==null?void 0:B.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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||A(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||A(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(wo,"Theme"),wo),tL=m(e=>{const t=new JB;return t.calculate(e),t},"getThemeVariables"),So,eL=(So=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=R(this.contrast,55),this.background="#ffffff",this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.tertiaryColor),this.lineColor=A(this.background),this.textColor=A(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.radius=5,this.strokeWidth=1,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.vertLineColor="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.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||R(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,n,o,s,a,l,h,c,u,f,d,g,p,C,y,x,k,b,w,T,E,L,W,M,O,j,H,D,$,F,P,B;this.secondBkg=R(this.contrast,55),this.border2=this.contrast,this.actorBorder=R(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 S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleInv"+S]=this["cScaleInv"+S]||A(this["cScale"+S]);for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this.darkMode?this["cScalePeer"+S]=this["cScalePeer"+S]||R(this["cScale"+S],10):this["cScalePeer"+S]=this["cScalePeer"+S]||N(this["cScale"+S],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["cScaleLabel"+S]=this["cScaleLabel"+S]||this.scaleLabelColor;for(let S=0;S<5;S++)this["surface"+S]=this["surface"+S]||v(this.mainBkg,{l:-(5+S*5)}),this["surfacePeer"+S]=this["surfacePeer"+S]||v(this.mainBkg,{l:-(8+S*5)});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=R(this.contrast,30),this.sectionBkgColor2=R(this.contrast,30),this.taskBorderColor=N(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=R(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=N(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=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=v(this.primaryColor,{h:64}),this.fillType3=v(this.secondaryColor,{h:64}),this.fillType4=v(this.primaryColor,{h:-64}),this.fillType5=v(this.secondaryColor,{h:-64}),this.fillType6=v(this.primaryColor,{h:128}),this.fillType7=v(this.secondaryColor,{h:128});for(let S=0;S<this.THEME_COLOR_LIMIT;S++)this["pie"+S]=this["cScale"+S];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";for(let S=0;S<8;S++)this["venn"+(S+1)]=this["venn"+(S+1)]??this["cScale"+S];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((d=this.radar)==null?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:((g=this.radar)==null?void 0:g.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((x=this.radar)==null?void 0:x.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((b=this.radar)==null?void 0:b.graticuleOpacity)||.3,legendBoxSize:((w=this.radar)==null?void 0:w.legendBoxSize)||12,legendFontSize:((T=this.radar)==null?void 0:T.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((E=this.wardley)==null?void 0:E.backgroundColor)||this.background,axisColor:((L=this.wardley)==null?void 0:L.axisColor)||this.lineColor,axisTextColor:((W=this.wardley)==null?void 0:W.axisTextColor)||this.primaryTextColor,gridColor:((M=this.wardley)==null?void 0:M.gridColor)||this.gridColor,componentFill:((O=this.wardley)==null?void 0:O.componentFill)||this.background,componentStroke:((j=this.wardley)==null?void 0:j.componentStroke)||this.lineColor,componentLabelColor:((H=this.wardley)==null?void 0:H.componentLabelColor)||this.primaryTextColor,linkStroke:((D=this.wardley)==null?void 0:D.linkStroke)||this.lineColor,evolutionStroke:(($=this.wardley)==null?void 0:$.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((F=this.wardley)==null?void 0:F.annotationStroke)||this.lineColor,annotationTextColor:((P=this.wardley)==null?void 0:P.annotationTextColor)||this.primaryTextColor,annotationFill:((B=this.wardley)==null?void 0:B.annotationFill)||this.background},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=N(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||v(this.primaryColor,{h:-30}),this.git4=this.pie5||v(this.primaryColor,{h:-60}),this.git5=this.pie6||v(this.primaryColor,{h:-90}),this.git6=this.pie7||v(this.primaryColor,{h:60}),this.git7=this.pie8||v(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(So,"Theme"),So),rL=m(e=>{const t=new eL;return t.calculate(e),t},"getThemeVariables"),To,iL=(To=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var o,s,a,l,h,c,u,f,d,g,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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?N(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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=v(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||R(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||v(t,{h:30}),this.cScale4=this.cScale4||v(t,{h:60}),this.cScale5=this.cScale5||v(t,{h:90}),this.cScale6=this.cScale6||v(t,{h:120}),this.cScale7=this.cScale7||v(t,{h:150}),this.cScale8=this.cScale8||v(t,{h:210,l:150}),this.cScale9=this.cScale9||v(t,{h:270}),this.cScale10=this.cScale10||v(t,{h:300}),this.cScale11=this.cScale11||v(t,{h:330}),this.darkMode)for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=N(this["cScale"+C],75);else for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=N(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||A(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||R(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||N(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||v(this.mainBkg,{h:180,s:-15,l:n*(5+C*3)}),this["surfacePeer"+C]=this["surfacePeer"+C]||v(this.mainBkg,{h:180,s:-15,l:n*(8+C*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||v(t,{h:64}),this.fillType3=this.fillType3||v(r,{h:64}),this.fillType4=this.fillType4||v(t,{h:-64}),this.fillType5=this.fillType5||v(r,{h:-64}),this.fillType6=this.fillType6||v(t,{h:128}),this.fillType7=this.fillType7||v(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||v(t,{l:-10}),this.pie5=this.pie5||v(r,{l:-10}),this.pie6=this.pie6||v(i,{l:-10}),this.pie7=this.pie7||v(t,{h:60,l:-10}),this.pie8=this.pie8||v(t,{h:-60,l:-10}),this.pie9=this.pie9||v(t,{h:120,l:0}),this.pie10=this.pie10||v(t,{h:60,l:-20}),this.pie11=this.pie11||v(t,{h:-60,l:-20}),this.pie12=this.pie12||v(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||v(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||v(t,{h:-30}),this.git4=this.git4||v(t,{h:-60}),this.git5=this.git5||v(t,{h:-90}),this.git6=this.git6||v(t,{h:60}),this.git7=this.git7||v(t,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(To,"Theme"),To),nL=m(e=>{const t=new iL;return t.calculate(e),t},"getThemeVariables"),_o,oL=(_o=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=A(this.background),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(A("#323D47"),10),this.border1="#ccc",this.border2=zi(255,255,255,.25),this.arrowheadColor=A(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,n,o,s,a,l,h,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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.border1,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?N(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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(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||R(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=N(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=N(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||A(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||R(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||N(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||v(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||v(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||v(this.primaryColor,{h:64}),this.fillType3=this.fillType3||v(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||v(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||v(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||v(this.primaryColor,{h:128}),this.fillType7=this.fillType7||v(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||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-10}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||v(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(_o,"Theme"),_o),sL=m(e=>{const t=new oL;return t.calculate(e),t},"getThemeVariables"),Bo,aL=(Bo=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ht("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var o,s,a,l,h,c,u,f,d,g,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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?N(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=v(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||R(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,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.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=this.mainBkg;if(this.darkMode)for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=N(this["cScale"+C],75);else for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScale"+C]=N(this["cScale"+C],25);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||A(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||R(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||N(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||v(this.mainBkg,{h:180,s:-15,l:n*(5+C*3)}),this["surfacePeer"+C]=this["surfacePeer"+C]||v(this.mainBkg,{h:180,s:-15,l:n*(8+C*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||v(t,{h:64}),this.fillType3=this.fillType3||v(r,{h:64}),this.fillType4=this.fillType4||v(t,{h:-64}),this.fillType5=this.fillType5||v(r,{h:-64}),this.fillType6=this.fillType6||v(t,{h:128}),this.fillType7=this.fillType7||v(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||v(t,{l:-10}),this.pie5=this.pie5||v(r,{l:-10}),this.pie6=this.pie6||v(i,{l:-10}),this.pie7=this.pie7||v(t,{h:60,l:-10}),this.pie8=this.pie8||v(t,{h:-60,l:-10}),this.pie9=this.pie9||v(t,{h:120,l:0}),this.pie10=this.pie10||v(t,{h:60,l:-20}),this.pie11=this.pie11||v(t,{h:-60,l:-20}),this.pie12=this.pie12||v(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||v(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||v(t,{h:-30}),this.git4=this.git4||v(t,{h:-60}),this.git5=this.git5||v(t,{h:-90}),this.git6=this.git6||v(t,{h:60}),this.git7=this.git7||v(t,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Bo,"Theme"),Bo),lL=m(e=>{const t=new aL;return t.calculate(e),t},"getThemeVariables"),Lo,hL=(Lo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=A(this.background),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(A("#323D47"),10),this.border1="#ccc",this.border2=zi(255,255,255,.25),this.arrowheadColor=A(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,n,o,s,a,l,h,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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.border1,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?N(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(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||R(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,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.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||v(this.primaryColor,{h:30}),this.cScale4=this.cScale4||v(this.primaryColor,{h:60}),this.cScale5=this.cScale5||v(this.primaryColor,{h:90}),this.cScale6=this.cScale6||v(this.primaryColor,{h:120}),this.cScale7=this.cScale7||v(this.primaryColor,{h:150}),this.cScale8=this.cScale8||v(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||v(this.primaryColor,{h:270}),this.cScale10=this.cScale10||v(this.primaryColor,{h:300}),this.cScale11=this.cScale11||v(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=N(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=N(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||A(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||R(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||N(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||v(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||v(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||v(this.primaryColor,{h:64}),this.fillType3=this.fillType3||v(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||v(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||v(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||v(this.primaryColor,{h:128}),this.fillType7=this.fillType7||v(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||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-10}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||v(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Lo,"Theme"),Lo),cL=m(e=>{const t=new hL;return t.calculate(e),t},"getThemeVariables"),Eo,uL=(Eo=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ht(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var o,s,a,l,h,c,u,f,d,g,p;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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?N(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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=v(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||R(t,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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleInv"+C]=this["cScaleInv"+C]||A(this["cScale"+C]);for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this.darkMode?this["cScalePeer"+C]=this["cScalePeer"+C]||R(this["cScale"+C],10):this["cScalePeer"+C]=this["cScalePeer"+C]||N(this["cScale"+C],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let C=0;C<this.THEME_COLOR_LIMIT;C++)this["cScaleLabel"+C]=this["cScaleLabel"+C]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let C=0;C<5;C++)this["surface"+C]=this["surface"+C]||v(this.mainBkg,{h:180,s:-15,l:n*(5+C*3)}),this["surfacePeer"+C]=this["surfacePeer"+C]||v(this.mainBkg,{h:180,s:-15,l:n*(8+C*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||v(t,{h:64}),this.fillType3=this.fillType3||v(r,{h:64}),this.fillType4=this.fillType4||v(t,{h:-64}),this.fillType5=this.fillType5||v(r,{h:-64}),this.fillType6=this.fillType6||v(t,{h:128}),this.fillType7=this.fillType7||v(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||v(t,{l:-10}),this.pie5=this.pie5||v(r,{l:-10}),this.pie6=this.pie6||v(i,{l:-10}),this.pie7=this.pie7||v(t,{h:60,l:-10}),this.pie8=this.pie8||v(t,{h:-60,l:-10}),this.pie9=this.pie9||v(t,{h:120,l:0}),this.pie10=this.pie10||v(t,{h:60,l:-20}),this.pie11=this.pie11||v(t,{h:-60,l:-20}),this.pie12=this.pie12||v(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||v(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((g=this.xyChart)==null?void 0:g.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?N(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||v(t,{h:-30}),this.git4=this.git4||v(t,{h:-60}),this.git5=this.git5||v(t,{h:-90}),this.git6=this.git6||v(t,{h:60}),this.git7=this.git7||v(t,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Eo,"Theme"),Eo),dL=m(e=>{const t=new uL;return t.calculate(e),t},"getThemeVariables"),Fo,fL=(Fo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=A(this.background),this.secondaryBorderColor=ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ht(this.tertiaryColor,this.darkMode),this.primaryTextColor=A(this.primaryColor),this.secondaryTextColor=A(this.secondaryColor),this.tertiaryTextColor=A(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(A("#323D47"),10),this.border1="#ccc",this.border2=zi(255,255,255,.25),this.arrowheadColor=A(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,n,o,s,a,l,h,c,u,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||v(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||v(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ht(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ht(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ht(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ht(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||A(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||A(this.tertiaryColor),this.lineColor=this.lineColor||A(this.background),this.arrowheadColor=this.arrowheadColor||A(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.border1,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?N(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",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||N(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||A(this.lineColor),this.rootLabelColor="#FFFFFF",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||R(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,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.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||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||A(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||R(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||N(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=N(this["cScale"+d],75);const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||v(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||v(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||v(this.primaryColor,{h:64}),this.fillType3=this.fillType3||v(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||v(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||v(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||v(this.primaryColor,{h:128}),this.fillType7=this.fillType7||v(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||v(this.primaryColor,{l:-10}),this.pie5=this.pie5||v(this.secondaryColor,{l:-10}),this.pie6=this.pie6||v(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||v(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||v(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||v(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||v(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||v(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||v(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||v(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||v(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||v(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||v(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||v(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||v(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Er(this.quadrant1Fill)?R(this.quadrant1Fill):N(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?N(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||v(this.primaryColor,{h:-30}),this.git4=this.git4||v(this.primaryColor,{h:-60}),this.git5=this.git5||v(this.primaryColor,{h:-90}),this.git6=this.git6||v(this.primaryColor,{h:60}),this.git7=this.git7||v(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=N(this.git0,25),this.git1=N(this.git1,25),this.git2=N(this.git2,25),this.git3=N(this.git3,25),this.git4=N(this.git4,25),this.git5=N(this.git5,25),this.git6=N(this.git6,25),this.git7=N(this.git7,25)),this.gitInv0=this.gitInv0||A(this.git0),this.gitInv1=this.gitInv1||A(this.git1),this.gitInv2=this.gitInv2||A(this.git2),this.gitInv3=this.gitInv3||A(this.git3),this.gitInv4=this.gitInv4||A(this.git4),this.gitInv5=this.gitInv5||A(this.git5),this.gitInv6=this.gitInv6||A(this.git6),this.gitInv7=this.gitInv7||A(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Yr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Vr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Fo,"Theme"),Fo),pL=m(e=>{const t=new fL;return t.calculate(e),t},"getThemeVariables"),si={base:{getThemeVariables:GB},dark:{getThemeVariables:QB},default:{getThemeVariables:ZB},forest:{getThemeVariables:tL},neutral:{getThemeVariables:rL},neo:{getThemeVariables:nL},"neo-dark":{getThemeVariables:sL},redux:{getThemeVariables:lL},"redux-dark":{getThemeVariables:cL},"redux-color":{getThemeVariables:dL},"redux-dark-color":{getThemeVariables:pL}},Te={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},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,maxLabelWidth:360,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"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},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,showDataLabel:!1,showDataLabelOutsideBar:!1,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,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},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:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},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},r1={...Te,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:si.default.getThemeVariables(),sequence:{...Te.sequence,messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:m(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:m(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...Te.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Te.c4,useWidth:void 0,personFont:m(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Te.flowchart,inheritDir:!1},external_personFont:m(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:m(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:m(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:m(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:m(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:m(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:m(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:m(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:m(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:m(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:m(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:m(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:m(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:m(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:m(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:m(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:m(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:m(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:m(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:m(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Te.pie,useWidth:984},xyChart:{...Te.xyChart,useWidth:void 0},requirement:{...Te.requirement,useWidth:void 0},packet:{...Te.packet},eventmodeling:{...Te.eventmodeling},treeView:{...Te.treeView,useWidth:void 0},radar:{...Te.radar},ishikawa:{...Te.ishikawa},sankey:{...Te.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Te.venn}},i1=m((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...i1(e[i],"")]:[...r,t+i],[]),"keyify"),gL=new Set(i1(r1,"")),n1=r1,ph=m(e=>{if(q.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>ph(t));return}for(const t of Object.keys(e)){if(q.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!gL.has(t)||e[t]==null){q.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){if(t==="nodeColors"){const i=/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i;for(const n of Object.keys(e[t]))(typeof e[t][n]!="string"||!i.test(e[t][n]))&&(q.debug("sanitize deleting invalid color:",n,e[t][n]),delete e[t][n])}else q.debug("sanitizing object",t),ph(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(q.debug("sanitizing css option",t),e[t]=o1(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}q.debug("After sanitization",e)}},"sanitizeDirective"),o1=m(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Wo=Object.freeze(n1),gi=m(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),De=ee({},Wo),gh,Tn=[],Us=ee({},Wo),lc=m((e,t)=>{let r=ee({},e),i={};for(const n of t)l1(n),i=ee(i,n);if(r=ee(r,i),i.theme&&i.theme in si){const n=ee({},gh),o=ee(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in si&&(r.themeVariables=si[r.theme].getThemeVariables(o))}return Us=r,c1(Us),Us},"updateCurrentConfig"),mL=m(e=>(De=ee({},Wo),De=ee(De,e),e.theme&&si[e.theme]&&(De.themeVariables=si[e.theme].getThemeVariables(e.themeVariables)),lc(De,Tn),De),"setSiteConfig"),yL=m(e=>{gh=ee({},e)},"saveConfigFromInitialize"),CL=m(e=>(De=ee(De,e),lc(De,Tn),De),"updateSiteConfig"),s1=m(()=>ee({},De),"getSiteConfig"),a1=m(e=>(c1(e),ee(Us,e),zt()),"setConfig"),zt=m(()=>ee({},Us),"getConfig"),l1=m(e=>{e&&(["secure",...De.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(q.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&l1(e[t])}))},"sanitize"),xL=m(e=>{var t;ph(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Tn.push(e),lc(De,Tn)},"addDirective"),mh=m((e=De)=>{Tn=[],lc(e,Tn)},"reset"),kL={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},dy={},h1=m(e=>{dy[e]||(q.warn(kL[e]),dy[e]=!0)},"issueWarning"),c1=m(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&h1("LAZY_LOAD_DEPRECATED")},"checkConfig"),WD=m(()=>{let e={};gh&&(e=ee(e,gh));for(const t of Tn)e=ee(e,t);return e},"getUserDefinedConfig"),Me=m(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&h1("FLOWCHART_HTML_LABELS_DEPRECATED"),gi(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),Ea=/<br\s*\/?>/gi,vL=m(e=>e?f1(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),bL=(()=>{let e=!1;return()=>{e||(u1(),e=!0)}})();function u1(){const e="data-temp-href-target";zo.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),zo.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}m(u1,"setupDompurifyHooks");var d1=m(e=>(bL(),zo.sanitize(e)),"removeScript"),fy=m((e,t)=>{if(Me(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=d1(e):r!=="loose"&&(e=f1(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=_L(e))}return e},"sanitizeMore"),Lr=m((e,t)=>e&&(t.dompurifyConfig?e=zo.sanitize(fy(e,t),t.dompurifyConfig).toString():e=zo.sanitize(fy(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),wL=m((e,t)=>typeof e=="string"?Lr(e,t):e.flat().map(r=>Lr(r,t)),"sanitizeTextOrArray"),SL=m(e=>Ea.test(e),"hasBreaks"),TL=m(e=>e.split(Ea),"splitBreaks"),_L=m(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),f1=m(e=>e.replace(Ea,"#br#"),"breakToPlaceholder"),BL=m(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),LL=m(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),EL=m(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),py=m(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const o=t[i-1],s=t[i+1];FL(o,s)&&(n=o+","+s,i++,r.pop())}r.push(AL(n))}return r.join("")},"parseGenericTypes"),Ed=m((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),FL=m((e,t)=>{const r=Ed(e,"~"),i=Ed(t,"~");return r===1&&i===1},"shouldCombineSets"),AL=m(e=>{const t=Ed(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),o=i.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)i[n]="<",i[o]=">",n=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),gy=m(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Fd=/\$\$(.*)\$\$/g,da=m(e=>{var t;return(((t=e.match(Fd))==null?void 0:t.length)??0)>0},"hasKatex"),qD=m(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await p1(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),ML=m(async(e,t)=>{if(!da(e))return e;if(!(gy()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Fd,"MathML is unsupported in this environment.");{const{default:r}=await vt(async()=>{const{default:n}=await import("./katex-C5jXJg4s.js");return{default:n}},[],import.meta.url),i=t.forceLegacyMathML||!gy()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Ea).map(n=>da(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Fd,(n,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),p1=m(async(e,t)=>Lr(await ML(e,t),t),"renderKatexSanitized"),Fa={getRows:vL,sanitizeText:Lr,sanitizeTextOrArray:wL,hasBreaks:SL,splitBreaks:TL,lineBreakRegex:Ea,removeScript:d1,getUrl:BL,evaluate:gi,getMax:LL,getMin:EL},$L=m(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),OL=m(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),g1=m(function(e,t,r,i){const n=OL(t,r,i);$L(e,n)},"configureSvgSize"),IL=m(function(e,t,r,i){const n=t.node().getBBox(),o=n.width,s=n.height;q.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;q.info(`Graph bounds: ${a}x${l}`,e),a=o+r*2,l=s+r*2,q.info(`Calculated bounds: ${a}x${l}`),g1(t,l,a,i);const h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox"),Ml={};function Ad(e){return[...e.cssRules].map(t=>t.cssText).join(`
|
|
45
|
+
`)}m(Ad,"cssStyleSheetToString");var PL=m((e,t,r,i)=>{let n="";return e in Ml&&Ml[e]?n=Ml[e]({...r,svgId:i}):q.warn(`No theme found for ${e}`),` & {
|
|
46
|
+
font-family: ${r.fontFamily};
|
|
47
|
+
font-size: ${r.fontSize};
|
|
48
|
+
fill: ${r.textColor}
|
|
49
|
+
}
|
|
50
|
+
@keyframes edge-animation-frame {
|
|
51
|
+
from {
|
|
52
|
+
stroke-dashoffset: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
@keyframes dash {
|
|
56
|
+
to {
|
|
57
|
+
stroke-dashoffset: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
& .edge-animation-slow {
|
|
61
|
+
stroke-dasharray: 9,5 !important;
|
|
62
|
+
stroke-dashoffset: 900;
|
|
63
|
+
animation: dash 50s linear infinite;
|
|
64
|
+
stroke-linecap: round;
|
|
65
|
+
}
|
|
66
|
+
& .edge-animation-fast {
|
|
67
|
+
stroke-dasharray: 9,5 !important;
|
|
68
|
+
stroke-dashoffset: 900;
|
|
69
|
+
animation: dash 20s linear infinite;
|
|
70
|
+
stroke-linecap: round;
|
|
71
|
+
}
|
|
72
|
+
/* Classes common for multiple diagrams */
|
|
73
|
+
|
|
74
|
+
& .error-icon {
|
|
75
|
+
fill: ${r.errorBkgColor};
|
|
76
|
+
}
|
|
77
|
+
& .error-text {
|
|
78
|
+
fill: ${r.errorTextColor};
|
|
79
|
+
stroke: ${r.errorTextColor};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
& .edge-thickness-normal {
|
|
83
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
84
|
+
}
|
|
85
|
+
& .edge-thickness-thick {
|
|
86
|
+
stroke-width: 3.5px
|
|
87
|
+
}
|
|
88
|
+
& .edge-pattern-solid {
|
|
89
|
+
stroke-dasharray: 0;
|
|
90
|
+
}
|
|
91
|
+
& .edge-thickness-invisible {
|
|
92
|
+
stroke-width: 0;
|
|
93
|
+
fill: none;
|
|
94
|
+
}
|
|
95
|
+
& .edge-pattern-dashed{
|
|
96
|
+
stroke-dasharray: 3;
|
|
97
|
+
}
|
|
98
|
+
.edge-pattern-dotted {
|
|
99
|
+
stroke-dasharray: 2;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
& .marker {
|
|
103
|
+
fill: ${r.lineColor};
|
|
104
|
+
stroke: ${r.lineColor};
|
|
105
|
+
}
|
|
106
|
+
& .marker.cross {
|
|
107
|
+
stroke: ${r.lineColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& svg {
|
|
111
|
+
font-family: ${r.fontFamily};
|
|
112
|
+
font-size: ${r.fontSize};
|
|
113
|
+
}
|
|
114
|
+
& p {
|
|
115
|
+
margin: 0
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
${n}
|
|
119
|
+
.node .neo-node {
|
|
120
|
+
stroke: ${r.nodeBorder};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
124
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
125
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
[data-look="neo"].node path {
|
|
130
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
131
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[data-look="neo"].node .outer-path {
|
|
135
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
[data-look="neo"].node .neo-line path {
|
|
139
|
+
stroke: ${r.nodeBorder};
|
|
140
|
+
filter: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
[data-look="neo"].node circle{
|
|
144
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
145
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-look="neo"].node circle .state-start{
|
|
149
|
+
fill: #000000;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[data-look="neo"].icon-shape .icon {
|
|
153
|
+
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
154
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
158
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
159
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
${t}
|
|
163
|
+
`},"getStyles"),DL=m((e,t)=>{t!==void 0&&(Ml[e]=t)},"addStylesForDiagram"),RL=PL,m1={};aB(m1,{clear:()=>NL,getAccDescription:()=>HL,getAccTitle:()=>WL,getDiagramTitle:()=>UL,setAccDescription:()=>qL,setAccTitle:()=>zL,setDiagramTitle:()=>jL});var bp="",wp="",Sp="",Tp=m(e=>Lr(e,zt()),"sanitizeText"),NL=m(()=>{bp="",Sp="",wp=""},"clear"),zL=m(e=>{bp=Tp(e).replace(/^\s+/g,"")},"setAccTitle"),WL=m(()=>bp,"getAccTitle"),qL=m(e=>{Sp=Tp(e).replace(/\n\s+/g,`
|
|
164
|
+
`)},"setAccDescription"),HL=m(()=>Sp,"getAccDescription"),jL=m(e=>{wp=Tp(e)},"setDiagramTitle"),UL=m(()=>wp,"getDiagramTitle"),my=q,YL=kp,St=zt,HD=a1,jD=Wo,_p=m(e=>Lr(e,St()),"sanitizeText"),VL=IL,GL=m(()=>m1,"getCommonDb"),yh={},Ch=m((e,t,r)=>{var i;yh[e]&&my.warn(`Diagram with id ${e} already registered. Overwriting.`),yh[e]=t,r&&e1(e,r),DL(e,t.styles),(i=t.injectUtils)==null||i.call(t,my,YL,St,_p,VL,GL(),()=>{})},"registerDiagram"),Md=m(e=>{if(e in yh)return yh[e];throw new XL(e)},"getDiagram"),Ao,XL=(Ao=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},m(Ao,"DiagramNotFoundError"),Ao),QL={value:()=>{}};function y1(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new $l(r)}function $l(e){this._=e}function KL(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}$l.prototype=y1.prototype={constructor:$l,on:function(e,t){var r=this._,i=KL(e+"",r),n,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((n=(e=i[o]).type)&&(n=ZL(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(n=(e=i[o]).type)r[n]=yy(r[n],e.name,t);else if(t==null)for(n in r)r[n]=yy(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new $l(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,o;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,n=o.length;i<n;++i)o[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,o=i.length;n<o;++n)i[n].value.apply(t,r)}};function ZL(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function yy(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=QL,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var $d="http://www.w3.org/1999/xhtml";const Cy={svg:"http://www.w3.org/2000/svg",xhtml:$d,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Cy.hasOwnProperty(t)?{space:Cy[t],local:e}:e}function JL(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===$d&&t.documentElement.namespaceURI===$d?t.createElement(e):t.createElementNS(r,e)}}function tE(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function C1(e){var t=hc(e);return(t.local?tE:JL)(t)}function eE(){}function Bp(e){return e==null?eE:function(){return this.querySelector(e)}}function rE(e){typeof e!="function"&&(e=Bp(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var o=t[n],s=o.length,a=i[n]=new Array(s),l,h,c=0;c<s;++c)(l=o[c])&&(h=e.call(l,l.__data__,c,o))&&("__data__"in l&&(h.__data__=l.__data__),a[c]=h);return new Ze(i,this._parents)}function iE(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function nE(){return[]}function x1(e){return e==null?nE:function(){return this.querySelectorAll(e)}}function oE(e){return function(){return iE(e.apply(this,arguments))}}function sE(e){typeof e=="function"?e=oE(e):e=x1(e);for(var t=this._groups,r=t.length,i=[],n=[],o=0;o<r;++o)for(var s=t[o],a=s.length,l,h=0;h<a;++h)(l=s[h])&&(i.push(e.call(l,l.__data__,h,s)),n.push(l));return new Ze(i,n)}function k1(e){return function(){return this.matches(e)}}function v1(e){return function(t){return t.matches(e)}}var aE=Array.prototype.find;function lE(e){return function(){return aE.call(this.children,e)}}function hE(){return this.firstElementChild}function cE(e){return this.select(e==null?hE:lE(typeof e=="function"?e:v1(e)))}var uE=Array.prototype.filter;function dE(){return Array.from(this.children)}function fE(e){return function(){return uE.call(this.children,e)}}function pE(e){return this.selectAll(e==null?dE:fE(typeof e=="function"?e:v1(e)))}function gE(e){typeof e!="function"&&(e=k1(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var o=t[n],s=o.length,a=i[n]=[],l,h=0;h<s;++h)(l=o[h])&&e.call(l,l.__data__,h,o)&&a.push(l);return new Ze(i,this._parents)}function b1(e){return new Array(e.length)}function mE(){return new Ze(this._enter||this._groups.map(b1),this._parents)}function xh(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}xh.prototype={constructor:xh,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function yE(e){return function(){return e}}function CE(e,t,r,i,n,o){for(var s=0,a,l=t.length,h=o.length;s<h;++s)(a=t[s])?(a.__data__=o[s],i[s]=a):r[s]=new xh(e,o[s]);for(;s<l;++s)(a=t[s])&&(n[s]=a)}function xE(e,t,r,i,n,o,s){var a,l,h=new Map,c=t.length,u=o.length,f=new Array(c),d;for(a=0;a<c;++a)(l=t[a])&&(f[a]=d=s.call(l,l.__data__,a,t)+"",h.has(d)?n[a]=l:h.set(d,l));for(a=0;a<u;++a)d=s.call(e,o[a],a,o)+"",(l=h.get(d))?(i[a]=l,l.__data__=o[a],h.delete(d)):r[a]=new xh(e,o[a]);for(a=0;a<c;++a)(l=t[a])&&h.get(f[a])===l&&(n[a]=l)}function kE(e){return e.__data__}function vE(e,t){if(!arguments.length)return Array.from(this,kE);var r=t?xE:CE,i=this._parents,n=this._groups;typeof e!="function"&&(e=yE(e));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),h=0;h<o;++h){var c=i[h],u=n[h],f=u.length,d=bE(e.call(c,c&&c.__data__,h,i)),g=d.length,p=a[h]=new Array(g),C=s[h]=new Array(g),y=l[h]=new Array(f);r(c,u,p,C,y,d,t);for(var x=0,k=0,b,w;x<g;++x)if(b=p[x]){for(x>=k&&(k=x+1);!(w=C[k])&&++k<g;);b._next=w||null}}return s=new Ze(s,i),s._enter=a,s._exit=l,s}function bE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wE(){return new Ze(this._exit||this._groups.map(b1),this._parents)}function SE(e,t,r){var i=this.enter(),n=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?o.remove():r(o),i&&n?i.merge(n).order():n}function TE(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,o=i.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var h=r[l],c=i[l],u=h.length,f=a[l]=new Array(u),d,g=0;g<u;++g)(d=h[g]||c[g])&&(f[g]=d);for(;l<n;++l)a[l]=r[l];return new Ze(a,this._parents)}function _E(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,o=i[n],s;--n>=0;)(s=i[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function BE(e){e||(e=LE);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),o=0;o<i;++o){for(var s=r[o],a=s.length,l=n[o]=new Array(a),h,c=0;c<a;++c)(h=s[c])&&(l[c]=h);l.sort(t)}return new Ze(n,this._parents).order()}function LE(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function EE(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function FE(){return Array.from(this)}function AE(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,o=i.length;n<o;++n){var s=i[n];if(s)return s}return null}function ME(){let e=0;for(const t of this)++e;return e}function $E(){return!this.node()}function OE(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],o=0,s=n.length,a;o<s;++o)(a=n[o])&&e.call(a,a.__data__,o,n);return this}function IE(e){return function(){this.removeAttribute(e)}}function PE(e){return function(){this.removeAttributeNS(e.space,e.local)}}function DE(e,t){return function(){this.setAttribute(e,t)}}function RE(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function NE(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function zE(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function WE(e,t){var r=hc(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?PE:IE:typeof t=="function"?r.local?zE:NE:r.local?RE:DE)(r,t))}function w1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qE(e){return function(){this.style.removeProperty(e)}}function HE(e,t,r){return function(){this.style.setProperty(e,t,r)}}function jE(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function UE(e,t,r){return arguments.length>1?this.each((t==null?qE:typeof t=="function"?jE:HE)(e,t,r??"")):qo(this.node(),e)}function qo(e,t){return e.style.getPropertyValue(t)||w1(e).getComputedStyle(e,null).getPropertyValue(t)}function YE(e){return function(){delete this[e]}}function VE(e,t){return function(){this[e]=t}}function GE(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function XE(e,t){return arguments.length>1?this.each((t==null?YE:typeof t=="function"?GE:VE)(e,t)):this.node()[e]}function S1(e){return e.trim().split(/^|\s+/)}function Lp(e){return e.classList||new T1(e)}function T1(e){this._node=e,this._names=S1(e.getAttribute("class")||"")}T1.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function _1(e,t){for(var r=Lp(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function B1(e,t){for(var r=Lp(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function QE(e){return function(){_1(this,e)}}function KE(e){return function(){B1(this,e)}}function ZE(e,t){return function(){(t.apply(this,arguments)?_1:B1)(this,e)}}function JE(e,t){var r=S1(e+"");if(arguments.length<2){for(var i=Lp(this.node()),n=-1,o=r.length;++n<o;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?ZE:t?QE:KE)(r,t))}function tF(){this.textContent=""}function eF(e){return function(){this.textContent=e}}function rF(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function iF(e){return arguments.length?this.each(e==null?tF:(typeof e=="function"?rF:eF)(e)):this.node().textContent}function nF(){this.innerHTML=""}function oF(e){return function(){this.innerHTML=e}}function sF(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function aF(e){return arguments.length?this.each(e==null?nF:(typeof e=="function"?sF:oF)(e)):this.node().innerHTML}function lF(){this.nextSibling&&this.parentNode.appendChild(this)}function hF(){return this.each(lF)}function cF(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function uF(){return this.each(cF)}function dF(e){var t=typeof e=="function"?e:C1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fF(){return null}function pF(e,t){var r=typeof e=="function"?e:C1(e),i=t==null?fF:typeof t=="function"?t:Bp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function gF(){var e=this.parentNode;e&&e.removeChild(this)}function mF(){return this.each(gF)}function yF(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function CF(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xF(e){return this.select(e?CF:yF)}function kF(e){return arguments.length?this.property("__data__",e):this.node().__data__}function vF(e){return function(t){e.call(this,t,this.__data__)}}function bF(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function wF(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,o;r<n;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function SF(e,t,r){return function(){var i=this.__on,n,o=vF(t);if(i){for(var s=0,a=i.length;s<a;++s)if((n=i[s]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=r),n.value=t;return}}this.addEventListener(e.type,o,r),n={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(n):this.__on=[n]}}function TF(e,t,r){var i=bF(e+""),n,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,h=a.length,c;l<h;++l)for(n=0,c=a[l];n<o;++n)if((s=i[n]).type===c.type&&s.name===c.name)return c.value}return}for(a=t?SF:wF,n=0;n<o;++n)this.each(a(i[n],t,r));return this}function L1(e,t,r){var i=w1(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function _F(e,t){return function(){return L1(this,e,t)}}function BF(e,t){return function(){return L1(this,e,t.apply(this,arguments))}}function LF(e,t){return this.each((typeof t=="function"?BF:_F)(e,t))}function*EF(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,o=i.length,s;n<o;++n)(s=i[n])&&(yield s)}var E1=[null];function Ze(e,t){this._groups=e,this._parents=t}function Aa(){return new Ze([[document.documentElement]],E1)}function FF(){return this}Ze.prototype=Aa.prototype={constructor:Ze,select:rE,selectAll:sE,selectChild:cE,selectChildren:pE,filter:gE,data:vE,enter:mE,exit:wE,join:SE,merge:TE,selection:FF,order:_E,sort:BE,call:EE,nodes:FE,node:AE,size:ME,empty:$E,each:OE,attr:WE,style:UE,property:XE,classed:JE,text:iF,html:aF,raise:hF,lower:uF,append:dF,insert:pF,remove:mF,clone:xF,datum:kF,on:TF,dispatch:LF,[Symbol.iterator]:EF};function Ct(e){return typeof e=="string"?new Ze([[document.querySelector(e)]],[document.documentElement]):new Ze([[e]],E1)}function Ep(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function F1(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Ma(){}var fa=.7,kh=1/fa,yo="\\s*([+-]?\\d+)\\s*",pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",AF=/^#([0-9a-f]{3,8})$/,MF=new RegExp(`^rgb\\(${yo},${yo},${yo}\\)$`),$F=new RegExp(`^rgb\\(${Hr},${Hr},${Hr}\\)$`),OF=new RegExp(`^rgba\\(${yo},${yo},${yo},${pa}\\)$`),IF=new RegExp(`^rgba\\(${Hr},${Hr},${Hr},${pa}\\)$`),PF=new RegExp(`^hsl\\(${pa},${Hr},${Hr}\\)$`),DF=new RegExp(`^hsla\\(${pa},${Hr},${Hr},${pa}\\)$`),xy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ep(Ma,ga,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ky,formatHex:ky,formatHex8:RF,formatHsl:NF,formatRgb:vy,toString:vy});function ky(){return this.rgb().formatHex()}function RF(){return this.rgb().formatHex8()}function NF(){return A1(this).formatHsl()}function vy(){return this.rgb().formatRgb()}function ga(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=AF.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?by(t):r===3?new We(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ll(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ll(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=MF.exec(e))?new We(t[1],t[2],t[3],1):(t=$F.exec(e))?new We(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=OF.exec(e))?ll(t[1],t[2],t[3],t[4]):(t=IF.exec(e))?ll(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=PF.exec(e))?Ty(t[1],t[2]/100,t[3]/100,1):(t=DF.exec(e))?Ty(t[1],t[2]/100,t[3]/100,t[4]):xy.hasOwnProperty(e)?by(xy[e]):e==="transparent"?new We(NaN,NaN,NaN,0):null}function by(e){return new We(e>>16&255,e>>8&255,e&255,1)}function ll(e,t,r,i){return i<=0&&(e=t=r=NaN),new We(e,t,r,i)}function zF(e){return e instanceof Ma||(e=ga(e)),e?(e=e.rgb(),new We(e.r,e.g,e.b,e.opacity)):new We}function Od(e,t,r,i){return arguments.length===1?zF(e):new We(e,t,r,i??1)}function We(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Ep(We,Od,F1(Ma,{brighter(e){return e=e==null?kh:Math.pow(kh,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fa:Math.pow(fa,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(yn(this.r),yn(this.g),yn(this.b),vh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wy,formatHex:wy,formatHex8:WF,formatRgb:Sy,toString:Sy}));function wy(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}`}function WF(){return`#${dn(this.r)}${dn(this.g)}${dn(this.b)}${dn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Sy(){const e=vh(this.opacity);return`${e===1?"rgb(":"rgba("}${yn(this.r)}, ${yn(this.g)}, ${yn(this.b)}${e===1?")":`, ${e})`}`}function vh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dn(e){return e=yn(e),(e<16?"0":"")+e.toString(16)}function Ty(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new vr(e,t,r,i)}function A1(e){if(e instanceof vr)return new vr(e.h,e.s,e.l,e.opacity);if(e instanceof Ma||(e=ga(e)),!e)return new vr;if(e instanceof vr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),o=Math.max(t,r,i),s=NaN,a=o-n,l=(o+n)/2;return a?(t===o?s=(r-i)/a+(r<i)*6:r===o?s=(i-t)/a+2:s=(t-r)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new vr(s,a,l,e.opacity)}function qF(e,t,r,i){return arguments.length===1?A1(e):new vr(e,t,r,i??1)}function vr(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Ep(vr,qF,F1(Ma,{brighter(e){return e=e==null?kh:Math.pow(kh,e),new vr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fa:Math.pow(fa,e),new vr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new We(yu(e>=240?e-240:e+120,n,i),yu(e,n,i),yu(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new vr(_y(this.h),hl(this.s),hl(this.l),vh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=vh(this.opacity);return`${e===1?"hsl(":"hsla("}${_y(this.h)}, ${hl(this.s)*100}%, ${hl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _y(e){return e=(e||0)%360,e<0?e+360:e}function hl(e){return Math.max(0,Math.min(1,e||0))}function yu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Fp=e=>()=>e;function M1(e,t){return function(r){return e+r*t}}function HF(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function UD(e,t){var r=t-e;return r?M1(e,r>180||r<-180?r-360*Math.round(r/360):r):Fp(isNaN(e)?t:e)}function jF(e){return(e=+e)==1?$1:function(t,r){return r-t?HF(t,r,e):Fp(isNaN(t)?r:t)}}function $1(e,t){var r=t-e;return r?M1(e,r):Fp(isNaN(e)?t:e)}const By=function e(t){var r=jF(t);function i(n,o){var s=r((n=Od(n)).r,(o=Od(o)).r),a=r(n.g,o.g),l=r(n.b,o.b),h=$1(n.opacity,o.opacity);return function(c){return n.r=s(c),n.g=a(c),n.b=l(c),n.opacity=h(c),n+""}}return i.gamma=e,i}(1);function Ti(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Id=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cu=new RegExp(Id.source,"g");function UF(e){return function(){return e}}function YF(e){return function(t){return e(t)+""}}function VF(e,t){var r=Id.lastIndex=Cu.lastIndex=0,i,n,o,s=-1,a=[],l=[];for(e=e+"",t=t+"";(i=Id.exec(e))&&(n=Cu.exec(t));)(o=n.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:Ti(i,n)})),r=Cu.lastIndex;return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?YF(l[0].x):UF(t):(t=l.length,function(h){for(var c=0,u;c<t;++c)a[(u=l[c]).i]=u.x(h);return a.join("")})}var Ly=180/Math.PI,Pd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function O1(e,t,r,i,n,o){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(a=Math.sqrt(r*r+i*i))&&(r/=a,i/=a,l/=a),e*i<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(t,e)*Ly,skewX:Math.atan(l)*Ly,scaleX:s,scaleY:a}}var cl;function GF(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Pd:O1(t.a,t.b,t.c,t.d,t.e,t.f)}function XF(e){return e==null||(cl||(cl=document.createElementNS("http://www.w3.org/2000/svg","g")),cl.setAttribute("transform",e),!(e=cl.transform.baseVal.consolidate()))?Pd:(e=e.matrix,O1(e.a,e.b,e.c,e.d,e.e,e.f))}function I1(e,t,r,i){function n(h){return h.length?h.pop()+" ":""}function o(h,c,u,f,d,g){if(h!==u||c!==f){var p=d.push("translate(",null,t,null,r);g.push({i:p-4,x:Ti(h,u)},{i:p-2,x:Ti(c,f)})}else(u||f)&&d.push("translate("+u+t+f+r)}function s(h,c,u,f){h!==c?(h-c>180?c+=360:c-h>180&&(h+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:Ti(h,c)})):c&&u.push(n(u)+"rotate("+c+i)}function a(h,c,u,f){h!==c?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:Ti(h,c)}):c&&u.push(n(u)+"skewX("+c+i)}function l(h,c,u,f,d,g){if(h!==u||c!==f){var p=d.push(n(d)+"scale(",null,",",null,")");g.push({i:p-4,x:Ti(h,u)},{i:p-2,x:Ti(c,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(h,c){var u=[],f=[];return h=e(h),c=e(c),o(h.translateX,h.translateY,c.translateX,c.translateY,u,f),s(h.rotate,c.rotate,u,f),a(h.skewX,c.skewX,u,f),l(h.scaleX,h.scaleY,c.scaleX,c.scaleY,u,f),h=c=null,function(d){for(var g=-1,p=f.length,C;++g<p;)u[(C=f[g]).i]=C.x(d);return u.join("")}}}var QF=I1(GF,"px, ","px)","deg)"),KF=I1(XF,", ",")",")"),Ho=0,Bs=0,ps=0,P1=1e3,bh,Ls,wh=0,_n=0,cc=0,ma=typeof performance=="object"&&performance.now?performance:Date,D1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ap(){return _n||(D1(ZF),_n=ma.now()+cc)}function ZF(){_n=0}function Sh(){this._call=this._time=this._next=null}Sh.prototype=R1.prototype={constructor:Sh,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ap():+r)+(t==null?0:+t),!this._next&&Ls!==this&&(Ls?Ls._next=this:bh=this,Ls=this),this._call=e,this._time=r,Dd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Dd())}};function R1(e,t,r){var i=new Sh;return i.restart(e,t,r),i}function JF(){Ap(),++Ho;for(var e=bh,t;e;)(t=_n-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ho}function Ey(){_n=(wh=ma.now())+cc,Ho=Bs=0;try{JF()}finally{Ho=0,e3(),_n=0}}function t3(){var e=ma.now(),t=e-wh;t>P1&&(cc-=t,wh=e)}function e3(){for(var e,t=bh,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:bh=r);Ls=e,Dd(i)}function Dd(e){if(!Ho){Bs&&(Bs=clearTimeout(Bs));var t=e-_n;t>24?(e<1/0&&(Bs=setTimeout(Ey,e-ma.now()-cc)),ps&&(ps=clearInterval(ps))):(ps||(wh=ma.now(),ps=setInterval(t3,P1)),Ho=1,D1(Ey))}}function Fy(e,t,r){var i=new Sh;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var r3=y1("start","end","cancel","interrupt"),i3=[],N1=0,Ay=1,Rd=2,Ol=3,My=4,Nd=5,Il=6;function uc(e,t,r,i,n,o){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;n3(e,r,{name:t,index:i,group:n,on:r3,tween:i3,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:N1})}function Mp(e,t){var r=Fr(e,t);if(r.state>N1)throw new Error("too late; already scheduled");return r}function Gr(e,t){var r=Fr(e,t);if(r.state>Ol)throw new Error("too late; already running");return r}function Fr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function n3(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=R1(o,0,r.time);function o(h){r.state=Ay,r.timer.restart(s,r.delay,r.time),r.delay<=h&&s(h-r.delay)}function s(h){var c,u,f,d;if(r.state!==Ay)return l();for(c in i)if(d=i[c],d.name===r.name){if(d.state===Ol)return Fy(s);d.state===My?(d.state=Il,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=Il,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(Fy(function(){r.state===Ol&&(r.state=My,r.timer.restart(a,r.delay,r.time),a(h))}),r.state=Rd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Rd){for(r.state=Ol,n=new Array(f=r.tween.length),c=0,u=-1;c<f;++c)(d=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function a(h){for(var c=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(l),r.state=Nd,1),u=-1,f=n.length;++u<f;)n[u].call(e,c);r.state===Nd&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Il,r.timer.stop(),delete i[t];for(var h in i)return;delete e.__transition}}function o3(e,t){var r=e.__transition,i,n,o=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){o=!1;continue}n=i.state>Rd&&i.state<Nd,i.state=Il,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}o&&delete e.__transition}}function s3(e){return this.each(function(){o3(this,e)})}function a3(e,t){var r,i;return function(){var n=Gr(this,e),o=n.tween;if(o!==r){i=r=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}n.tween=i}}function l3(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var o=Gr(this,e),s=o.tween;if(s!==i){n=(i=s).slice();for(var a={name:t,value:r},l=0,h=n.length;l<h;++l)if(n[l].name===t){n[l]=a;break}l===h&&n.push(a)}o.tween=n}}function h3(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Fr(this.node(),r).tween,n=0,o=i.length,s;n<o;++n)if((s=i[n]).name===e)return s.value;return null}return this.each((t==null?a3:l3)(r,e,t))}function $p(e,t,r){var i=e._id;return e.each(function(){var n=Gr(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Fr(n,i).value[t]}}function z1(e,t){var r;return(typeof t=="number"?Ti:t instanceof ga?By:(r=ga(t))?(t=r,By):VF)(e,t)}function c3(e){return function(){this.removeAttribute(e)}}function u3(e){return function(){this.removeAttributeNS(e.space,e.local)}}function d3(e,t,r){var i,n=r+"",o;return function(){var s=this.getAttribute(e);return s===n?null:s===i?o:o=t(i=s,r)}}function f3(e,t,r){var i,n=r+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===n?null:s===i?o:o=t(i=s,r)}}function p3(e,t,r){var i,n,o;return function(){var s,a=r(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===i&&l===n?o:(n=l,o=t(i=s,a)))}}function g3(e,t,r){var i,n,o;return function(){var s,a=r(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===i&&l===n?o:(n=l,o=t(i=s,a)))}}function m3(e,t){var r=hc(e),i=r==="transform"?KF:z1;return this.attrTween(e,typeof t=="function"?(r.local?g3:p3)(r,i,$p(this,"attr."+e,t)):t==null?(r.local?u3:c3)(r):(r.local?f3:d3)(r,i,t))}function y3(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function C3(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function x3(e,t){var r,i;function n(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&C3(e,o)),r}return n._value=t,n}function k3(e,t){var r,i;function n(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&y3(e,o)),r}return n._value=t,n}function v3(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=hc(e);return this.tween(r,(i.local?x3:k3)(i,t))}function b3(e,t){return function(){Mp(this,e).delay=+t.apply(this,arguments)}}function w3(e,t){return t=+t,function(){Mp(this,e).delay=t}}function S3(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?b3:w3)(t,e)):Fr(this.node(),t).delay}function T3(e,t){return function(){Gr(this,e).duration=+t.apply(this,arguments)}}function _3(e,t){return t=+t,function(){Gr(this,e).duration=t}}function B3(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?T3:_3)(t,e)):Fr(this.node(),t).duration}function L3(e,t){if(typeof t!="function")throw new Error;return function(){Gr(this,e).ease=t}}function E3(e){var t=this._id;return arguments.length?this.each(L3(t,e)):Fr(this.node(),t).ease}function F3(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Gr(this,e).ease=r}}function A3(e){if(typeof e!="function")throw new Error;return this.each(F3(this._id,e))}function M3(e){typeof e!="function"&&(e=k1(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var o=t[n],s=o.length,a=i[n]=[],l,h=0;h<s;++h)(l=o[h])&&e.call(l,l.__data__,h,o)&&a.push(l);return new di(i,this._parents,this._name,this._id)}function $3(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,o=Math.min(i,n),s=new Array(i),a=0;a<o;++a)for(var l=t[a],h=r[a],c=l.length,u=s[a]=new Array(c),f,d=0;d<c;++d)(f=l[d]||h[d])&&(u[d]=f);for(;a<i;++a)s[a]=t[a];return new di(s,this._parents,this._name,this._id)}function O3(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function I3(e,t,r){var i,n,o=O3(t)?Mp:Gr;return function(){var s=o(this,e),a=s.on;a!==i&&(n=(i=a).copy()).on(t,r),s.on=n}}function P3(e,t){var r=this._id;return arguments.length<2?Fr(this.node(),r).on.on(e):this.each(I3(r,e,t))}function D3(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function R3(){return this.on("end.remove",D3(this._id))}function N3(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Bp(e));for(var i=this._groups,n=i.length,o=new Array(n),s=0;s<n;++s)for(var a=i[s],l=a.length,h=o[s]=new Array(l),c,u,f=0;f<l;++f)(c=a[f])&&(u=e.call(c,c.__data__,f,a))&&("__data__"in c&&(u.__data__=c.__data__),h[f]=u,uc(h[f],t,r,f,h,Fr(c,r)));return new di(o,this._parents,t,r)}function z3(e){var t=this._name,r=this._id;typeof e!="function"&&(e=x1(e));for(var i=this._groups,n=i.length,o=[],s=[],a=0;a<n;++a)for(var l=i[a],h=l.length,c,u=0;u<h;++u)if(c=l[u]){for(var f=e.call(c,c.__data__,u,l),d,g=Fr(c,r),p=0,C=f.length;p<C;++p)(d=f[p])&&uc(d,t,r,p,f,g);o.push(f),s.push(c)}return new di(o,s,t,r)}var W3=Aa.prototype.constructor;function q3(){return new W3(this._groups,this._parents)}function H3(e,t){var r,i,n;return function(){var o=qo(this,e),s=(this.style.removeProperty(e),qo(this,e));return o===s?null:o===r&&s===i?n:n=t(r=o,i=s)}}function W1(e){return function(){this.style.removeProperty(e)}}function j3(e,t,r){var i,n=r+"",o;return function(){var s=qo(this,e);return s===n?null:s===i?o:o=t(i=s,r)}}function U3(e,t,r){var i,n,o;return function(){var s=qo(this,e),a=r(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),qo(this,e))),s===l?null:s===i&&l===n?o:(n=l,o=t(i=s,a))}}function Y3(e,t){var r,i,n,o="style."+t,s="end."+o,a;return function(){var l=Gr(this,e),h=l.on,c=l.value[o]==null?a||(a=W1(t)):void 0;(h!==r||n!==c)&&(i=(r=h).copy()).on(s,n=c),l.on=i}}function V3(e,t,r){var i=(e+="")=="transform"?QF:z1;return t==null?this.styleTween(e,H3(e,i)).on("end.style."+e,W1(e)):typeof t=="function"?this.styleTween(e,U3(e,i,$p(this,"style."+e,t))).each(Y3(this._id,e)):this.styleTween(e,j3(e,i,t),r).on("end.style."+e,null)}function G3(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function X3(e,t,r){var i,n;function o(){var s=t.apply(this,arguments);return s!==n&&(i=(n=s)&&G3(e,s,r)),i}return o._value=t,o}function Q3(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,X3(e,t,r??""))}function K3(e){return function(){this.textContent=e}}function Z3(e){return function(){var t=e(this);this.textContent=t??""}}function J3(e){return this.tween("text",typeof e=="function"?Z3($p(this,"text",e)):K3(e==null?"":e+""))}function t5(e){return function(t){this.textContent=e.call(this,t)}}function e5(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&t5(n)),t}return i._value=e,i}function r5(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,e5(e))}function i5(){for(var e=this._name,t=this._id,r=q1(),i=this._groups,n=i.length,o=0;o<n;++o)for(var s=i[o],a=s.length,l,h=0;h<a;++h)if(l=s[h]){var c=Fr(l,t);uc(l,e,r,h,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new di(i,this._parents,e,r)}function n5(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};r.each(function(){var h=Gr(this,i),c=h.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),h.on=t}),n===0&&o()})}var o5=0;function di(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function q1(){return++o5}var Zr=Aa.prototype;di.prototype={constructor:di,select:N3,selectAll:z3,selectChild:Zr.selectChild,selectChildren:Zr.selectChildren,filter:M3,merge:$3,selection:q3,transition:i5,call:Zr.call,nodes:Zr.nodes,node:Zr.node,size:Zr.size,empty:Zr.empty,each:Zr.each,on:P3,attr:m3,attrTween:v3,style:V3,styleTween:Q3,text:J3,textTween:r5,remove:R3,tween:h3,delay:S3,duration:B3,ease:E3,easeVarying:A3,end:n5,[Symbol.iterator]:Zr[Symbol.iterator]};function s5(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var a5={time:null,delay:0,duration:250,ease:s5};function l5(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function h5(e){var t,r;e instanceof di?(t=e._id,e=e._name):(t=q1(),(r=a5).time=Ap(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,o=0;o<n;++o)for(var s=i[o],a=s.length,l,h=0;h<a;++h)(l=s[h])&&uc(l,e,t,h,s,r||l5(l,t));return new di(i,this._parents,e,t)}Aa.prototype.interrupt=s3;Aa.prototype.transition=h5;const zd=Math.PI,Wd=2*zd,sn=1e-6,c5=Wd-sn;function H1(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function u5(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return H1;const r=10**t;return function(i){this._+=i[0];for(let n=1,o=i.length;n<o;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class d5{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?H1:u5(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,o,s){this._append`C${+t},${+r},${+i},${+n},${this._x1=+o},${this._y1=+s}`}arcTo(t,r,i,n,o){if(t=+t,r=+r,i=+i,n=+n,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=i-t,h=n-r,c=s-t,u=a-r,f=c*c+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>sn)if(!(Math.abs(u*l-h*c)>sn)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-s,g=n-a,p=l*l+h*h,C=d*d+g*g,y=Math.sqrt(p),x=Math.sqrt(f),k=o*Math.tan((zd-Math.acos((p+f-C)/(2*y*x)))/2),b=k/x,w=k/y;Math.abs(b-1)>sn&&this._append`L${t+b*c},${r+b*u}`,this._append`A${o},${o},0,0,${+(u*d>c*g)},${this._x1=t+w*l},${this._y1=r+w*h}`}}arc(t,r,i,n,o,s){if(t=+t,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(n),l=i*Math.sin(n),h=t+a,c=r+l,u=1^s,f=s?n-o:o-n;this._x1===null?this._append`M${h},${c}`:(Math.abs(this._x1-h)>sn||Math.abs(this._y1-c)>sn)&&this._append`L${h},${c}`,i&&(f<0&&(f=f%Wd+Wd),f>c5?this._append`A${i},${i},0,1,${u},${t-a},${r-l}A${i},${i},0,1,${u},${this._x1=h},${this._y1=c}`:f>sn&&this._append`A${i},${i},0,${+(f>=zd)},${u},${this._x1=t+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function qn(e){return function(){return e}}const YD=Math.abs,VD=Math.atan2,GD=Math.cos,XD=Math.max,QD=Math.min,KD=Math.sin,ZD=Math.sqrt,$y=1e-12,Op=Math.PI,Oy=Op/2,JD=2*Op;function tR(e){return e>1?0:e<-1?Op:Math.acos(e)}function eR(e){return e>=1?Oy:e<=-1?-Oy:Math.asin(e)}function f5(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new d5(t)}function p5(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j1(e){this._context=e}j1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ys(e){return new j1(e)}function g5(e){return e[0]}function m5(e){return e[1]}function y5(e,t){var r=qn(!0),i=null,n=Ys,o=null,s=f5(a);e=typeof e=="function"?e:e===void 0?g5:qn(e),t=typeof t=="function"?t:t===void 0?m5:qn(t);function a(l){var h,c=(l=p5(l)).length,u,f=!1,d;for(i==null&&(o=n(d=s())),h=0;h<=c;++h)!(h<c&&r(u=l[h],h,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,h,l),+t(u,h,l));if(d)return o=null,d+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:qn(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:qn(+l),a):t},a.defined=function(l){return arguments.length?(r=typeof l=="function"?l:qn(!!l),a):r},a.curve=function(l){return arguments.length?(n=l,i!=null&&(o=n(i)),a):n},a.context=function(l){return arguments.length?(l==null?i=o=null:o=n(i=l),a):i},a}class U1{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Y1(e){return new U1(e,!0)}function V1(e){return new U1(e,!1)}function ji(){}function Th(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function dc(e){this._context=e}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Th(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Th(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qd(e){return new dc(e)}function G1(e){this._context=e}G1.prototype={areaStart:ji,areaEnd:ji,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Th(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function C5(e){return new G1(e)}function X1(e){this._context=e}X1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Th(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x5(e){return new X1(e)}function Q1(e,t){this._basis=new dc(e),this._beta=t}Q1.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],o=e[r]-i,s=t[r]-n,a=-1,l;++a<=r;)l=a/r,this._basis.point(this._beta*e[a]+(1-this._beta)*(i+l*o),this._beta*t[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const k5=function e(t){function r(i){return t===1?new dc(i):new Q1(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function _h(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Ip(e,t){this._context=e,this._k=(1-t)/6}Ip.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_h(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_h(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const K1=function e(t){function r(i){return new Ip(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Pp(e,t){this._context=e,this._k=(1-t)/6}Pp.prototype={areaStart:ji,areaEnd:ji,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_h(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const v5=function e(t){function r(i){return new Pp(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Dp(e,t){this._context=e,this._k=(1-t)/6}Dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_h(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const b5=function e(t){function r(i){return new Dp(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Rp(e,t,r){var i=e._x1,n=e._y1,o=e._x2,s=e._y2;if(e._l01_a>$y){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>$y){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*h+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*h+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(i,n,o,s,e._x2,e._y2)}function Z1(e,t){this._context=e,this._alpha=t}Z1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Rp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const J1=function e(t){function r(i){return t?new Z1(i,t):new Ip(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function tk(e,t){this._context=e,this._alpha=t}tk.prototype={areaStart:ji,areaEnd:ji,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Rp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const w5=function e(t){function r(i){return t?new tk(i,t):new Pp(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function ek(e,t){this._context=e,this._alpha=t}ek.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rp(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const S5=function e(t){function r(i){return t?new ek(i,t):new Dp(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function rk(e){this._context=e}rk.prototype={areaStart:ji,areaEnd:ji,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function T5(e){return new rk(e)}function Iy(e){return e<0?-1:1}function Py(e,t,r){var i=e._x1-e._x0,n=t-e._x1,o=(e._y1-e._y0)/(i||n<0&&-0),s=(r-e._y1)/(n||i<0&&-0),a=(o*n+s*i)/(i+n);return(Iy(o)+Iy(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Dy(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function xu(e,t,r){var i=e._x0,n=e._y0,o=e._x1,s=e._y1,a=(o-i)/3;e._context.bezierCurveTo(i+a,n+a*t,o-a,s-a*r,o,s)}function Bh(e){this._context=e}Bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xu(this,this._t0,Dy(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,xu(this,Dy(this,r=Py(this,e,t)),r);break;default:xu(this,this._t0,r=Py(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ik(e){this._context=new nk(e)}(ik.prototype=Object.create(Bh.prototype)).point=function(e,t){Bh.prototype.point.call(this,t,e)};function nk(e){this._context=e}nk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,o){this._context.bezierCurveTo(t,e,i,r,o,n)}};function ok(e){return new Bh(e)}function sk(e){return new ik(e)}function ak(e){this._context=e}ak.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=Ry(e),n=Ry(t),o=0,s=1;s<r;++o,++s)this._context.bezierCurveTo(i[0][o],n[0][o],i[1][o],n[1][o],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ry(e){var t,r=e.length-1,i,n=new Array(r),o=new Array(r),s=new Array(r);for(n[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/o[t-1],o[t]-=i,s[t]-=i*s[t-1];for(n[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)n[t]=(s[t]-n[t+1])/o[t];for(o[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-n[t+1];return[n,o]}function lk(e){return new ak(e)}function fc(e,t){this._context=e,this._t=t}fc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function hk(e){return new fc(e,.5)}function ck(e){return new fc(e,0)}function uk(e){return new fc(e,1)}function Es(e,t,r){this.k=e,this.x=t,this.y=r}Es.prototype={constructor:Es,scale:function(e){return e===1?this:new Es(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Es(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Es.prototype;var _5=m(e=>{var n;const{securityLevel:t}=St();let r=Ct("body");if(t==="sandbox"){const s=((n=Ct(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=Ct(s.body)}return r.select(`#${e}`)},"selectSvgElement");function Np(e){return typeof e>"u"||e===null}m(Np,"isNothing");function dk(e){return typeof e=="object"&&e!==null}m(dk,"isObject");function fk(e){return Array.isArray(e)?e:Np(e)?[]:[e]}m(fk,"toArray");function pk(e,t){var r,i,n,o;if(t)for(o=Object.keys(t),r=0,i=o.length;r<i;r+=1)n=o[r],e[n]=t[n];return e}m(pk,"extend");function gk(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}m(gk,"repeat");function mk(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}m(mk,"isNegativeZero");var B5=Np,L5=dk,E5=fk,F5=gk,A5=mk,M5=pk,re={isNothing:B5,isObject:L5,toArray:E5,repeat:F5,isNegativeZero:A5,extend:M5};function zp(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
165
|
+
|
|
166
|
+
`+e.mark.snippet),i+" "+r):i}m(zp,"formatError");function jo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=zp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}m(jo,"YAMLException$1");jo.prototype=Object.create(Error.prototype);jo.prototype.constructor=jo;jo.prototype.toString=m(function(t){return this.name+": "+zp(this,t)},"toString");var Re=jo;function Pl(e,t,r,i,n){var o="",s="",a=Math.floor(n/2)-1;return i-t>a&&(o=" ... ",t=i-a+o.length),r-i>a&&(s=" ...",r=i+a-s.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+s,pos:i-t+o.length}}m(Pl,"getLine");function Dl(e,t){return re.repeat(" ",t-e.length)+e}m(Dl,"padStart");function yk(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],o,s=-1;o=r.exec(e.buffer);)n.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var a="",l,h,c=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)h=Pl(e.buffer,i[s-l],n[s-l],e.position-(i[s]-i[s-l]),u),a=re.repeat(" ",t.indent)+Dl((e.line-l+1).toString(),c)+" | "+h.str+`
|
|
167
|
+
`+a;for(h=Pl(e.buffer,i[s],n[s],e.position,u),a+=re.repeat(" ",t.indent)+Dl((e.line+1).toString(),c)+" | "+h.str+`
|
|
168
|
+
`,a+=re.repeat("-",t.indent+c+3+h.pos)+`^
|
|
169
|
+
`,l=1;l<=t.linesAfter&&!(s+l>=n.length);l++)h=Pl(e.buffer,i[s+l],n[s+l],e.position-(i[s]-i[s+l]),u),a+=re.repeat(" ",t.indent)+Dl((e.line+l+1).toString(),c)+" | "+h.str+`
|
|
170
|
+
`;return a.replace(/\n$/,"")}m(yk,"makeSnippet");var $5=yk,O5=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],I5=["scalar","sequence","mapping"];function Ck(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}m(Ck,"compileStyleAliases");function xk(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(O5.indexOf(r)===-1)throw new Re('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Ck(t.styleAliases||null),I5.indexOf(this.kind)===-1)throw new Re('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}m(xk,"Type$1");var be=xk;function Hd(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(o,s){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(n=s)}),r[n]=i}),r}m(Hd,"compileList");function kk(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(m(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}m(kk,"compileMap");function Lh(e){return this.extend(e)}m(Lh,"Schema$1");Lh.prototype.extend=m(function(t){var r=[],i=[];if(t instanceof be)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Re("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof be))throw new Re("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Re("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new Re("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof be))throw new Re("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Lh.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Hd(n,"implicit"),n.compiledExplicit=Hd(n,"explicit"),n.compiledTypeMap=kk(n.compiledImplicit,n.compiledExplicit),n},"extend");var P5=Lh,D5=new be("tag:yaml.org,2002:str",{kind:"scalar",construct:m(function(e){return e!==null?e:""},"construct")}),R5=new be("tag:yaml.org,2002:seq",{kind:"sequence",construct:m(function(e){return e!==null?e:[]},"construct")}),N5=new be("tag:yaml.org,2002:map",{kind:"mapping",construct:m(function(e){return e!==null?e:{}},"construct")}),z5=new P5({explicit:[D5,R5,N5]});function vk(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}m(vk,"resolveYamlNull");function bk(){return null}m(bk,"constructYamlNull");function wk(e){return e===null}m(wk,"isNull");var W5=new be("tag:yaml.org,2002:null",{kind:"scalar",resolve:vk,construct:bk,predicate:wk,represent:{canonical:m(function(){return"~"},"canonical"),lowercase:m(function(){return"null"},"lowercase"),uppercase:m(function(){return"NULL"},"uppercase"),camelcase:m(function(){return"Null"},"camelcase"),empty:m(function(){return""},"empty")},defaultStyle:"lowercase"});function Sk(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}m(Sk,"resolveYamlBoolean");function Tk(e){return e==="true"||e==="True"||e==="TRUE"}m(Tk,"constructYamlBoolean");function _k(e){return Object.prototype.toString.call(e)==="[object Boolean]"}m(_k,"isBoolean");var q5=new be("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Sk,construct:Tk,predicate:_k,represent:{lowercase:m(function(e){return e?"true":"false"},"lowercase"),uppercase:m(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:m(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function Bk(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}m(Bk,"isHexCode");function Lk(e){return 48<=e&&e<=55}m(Lk,"isOctCode");function Ek(e){return 48<=e&&e<=57}m(Ek,"isDecCode");function Fk(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Bk(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!Lk(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!Ek(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}m(Fk,"resolveYamlInteger");function Ak(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}m(Ak,"constructYamlInteger");function Mk(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!re.isNegativeZero(e)}m(Mk,"isInteger");var H5=new be("tag:yaml.org,2002:int",{kind:"scalar",resolve:Fk,construct:Ak,predicate:Mk,represent:{binary:m(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:m(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:m(function(e){return e.toString(10)},"decimal"),hexadecimal:m(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),j5=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $k(e){return!(e===null||!j5.test(e)||e[e.length-1]==="_")}m($k,"resolveYamlFloat");function Ok(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}m(Ok,"constructYamlFloat");var U5=/^[-+]?[0-9]+e/;function Ik(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(re.isNegativeZero(e))return"-0.0";return r=e.toString(10),U5.test(r)?r.replace("e",".e"):r}m(Ik,"representYamlFloat");function Pk(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||re.isNegativeZero(e))}m(Pk,"isFloat");var Y5=new be("tag:yaml.org,2002:float",{kind:"scalar",resolve:$k,construct:Ok,predicate:Pk,represent:Ik,defaultStyle:"lowercase"}),Dk=z5.extend({implicit:[W5,q5,H5,Y5]}),V5=Dk,Rk=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Nk=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 zk(e){return e===null?!1:Rk.exec(e)!==null||Nk.exec(e)!==null}m(zk,"resolveYamlTimestamp");function Wk(e){var t,r,i,n,o,s,a,l=0,h=null,c,u,f;if(t=Rk.exec(e),t===null&&(t=Nk.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],u=+(t[11]||0),h=(c*60+u)*6e4,t[9]==="-"&&(h=-h)),f=new Date(Date.UTC(r,i,n,o,s,a,l)),h&&f.setTime(f.getTime()-h),f}m(Wk,"constructYamlTimestamp");function qk(e){return e.toISOString()}m(qk,"representYamlTimestamp");var G5=new be("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:zk,construct:Wk,instanceOf:Date,represent:qk});function Hk(e){return e==="<<"||e===null}m(Hk,"resolveYamlMerge");var X5=new be("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hk}),Wp=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
171
|
+
\r`;function jk(e){if(e===null)return!1;var t,r,i=0,n=e.length,o=Wp;for(r=0;r<n;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}m(jk,"resolveYamlBinary");function Uk(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,o=Wp,s=0,a=[];for(t=0;t<n;t++)t%4===0&&t&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(i.charAt(t));return r=n%4*6,r===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):r===18?(a.push(s>>10&255),a.push(s>>2&255)):r===12&&a.push(s>>4&255),new Uint8Array(a)}m(Uk,"constructYamlBinary");function Yk(e){var t="",r=0,i,n,o=e.length,s=Wp;for(i=0;i<o;i++)i%3===0&&i&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[i];return n=o%3,n===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):n===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):n===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}m(Yk,"representYamlBinary");function Vk(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}m(Vk,"isBinary");var Q5=new be("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jk,construct:Uk,predicate:Vk,represent:Yk}),K5=Object.prototype.hasOwnProperty,Z5=Object.prototype.toString;function Gk(e){if(e===null)return!0;var t=[],r,i,n,o,s,a=e;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],s=!1,Z5.call(n)!=="[object Object]")return!1;for(o in n)if(K5.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}m(Gk,"resolveYamlOmap");function Xk(e){return e!==null?e:[]}m(Xk,"constructYamlOmap");var J5=new be("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Gk,construct:Xk}),tA=Object.prototype.toString;function Qk(e){if(e===null)return!0;var t,r,i,n,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],tA.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;o[t]=[n[0],i[n[0]]]}return!0}m(Qk,"resolveYamlPairs");function Kk(e){if(e===null)return[];var t,r,i,n,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),o[t]=[n[0],i[n[0]]];return o}m(Kk,"constructYamlPairs");var eA=new be("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Qk,construct:Kk}),rA=Object.prototype.hasOwnProperty;function Zk(e){if(e===null)return!0;var t,r=e;for(t in r)if(rA.call(r,t)&&r[t]!==null)return!1;return!0}m(Zk,"resolveYamlSet");function Jk(e){return e!==null?e:{}}m(Jk,"constructYamlSet");var iA=new be("tag:yaml.org,2002:set",{kind:"mapping",resolve:Zk,construct:Jk}),t2=V5.extend({implicit:[G5,X5],explicit:[Q5,J5,eA,iA]}),Ui=Object.prototype.hasOwnProperty,Eh=1,e2=2,r2=3,Fh=4,ku=1,nA=2,Ny=3,oA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sA=/[\x85\u2028\u2029]/,aA=/[,\[\]\{\}]/,i2=/^(?:!|!!|![a-z\-]+!)$/i,n2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function jd(e){return Object.prototype.toString.call(e)}m(jd,"_class");function Tr(e){return e===10||e===13}m(Tr,"is_EOL");function Wi(e){return e===9||e===32}m(Wi,"is_WHITE_SPACE");function Le(e){return e===9||e===32||e===10||e===13}m(Le,"is_WS_OR_EOL");function fn(e){return e===44||e===91||e===93||e===123||e===125}m(fn,"is_FLOW_INDICATOR");function o2(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}m(o2,"fromHexCode");function s2(e){return e===120?2:e===117?4:e===85?8:0}m(s2,"escapedHexLen");function a2(e){return 48<=e&&e<=57?e-48:-1}m(a2,"fromDecimalCode");function Ud(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
172
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}m(Ud,"simpleEscapeSequence");function l2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}m(l2,"charFromCodepoint");function qp(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}m(qp,"setProperty");var h2=new Array(256),c2=new Array(256);for(en=0;en<256;en++)h2[en]=Ud(en)?1:0,c2[en]=Ud(en);var en;function u2(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||t2,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}m(u2,"State$1");function Hp(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=$5(r),new Re(t,r)}m(Hp,"generateError");function ot(e,t){throw Hp(e,t)}m(ot,"throwError");function ya(e,t){e.onWarning&&e.onWarning.call(null,Hp(e,t))}m(ya,"throwWarning");var zy={YAML:m(function(t,r,i){var n,o,s;t.version!==null&&ot(t,"duplication of %YAML directive"),i.length!==1&&ot(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&ot(t,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&ot(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ya(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:m(function(t,r,i){var n,o;i.length!==2&&ot(t,"TAG directive accepts exactly two arguments"),n=i[0],o=i[1],i2.test(n)||ot(t,"ill-formed tag handle (first argument) of the TAG directive"),Ui.call(t.tagMap,n)&&ot(t,'there is a previously declared suffix for "'+n+'" tag handle'),n2.test(o)||ot(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{ot(t,"tag prefix is malformed: "+o)}t.tagMap[n]=o},"handleTagDirective")};function ai(e,t,r,i){var n,o,s,a;if(t<r){if(a=e.input.slice(t,r),i)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||ot(e,"expected valid JSON character");else oA.test(a)&&ot(e,"the stream contains non-printable characters");e.result+=a}}m(ai,"captureSegment");function Yd(e,t,r,i){var n,o,s,a;for(re.isObject(r)||ot(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,a=n.length;s<a;s+=1)o=n[s],Ui.call(t,o)||(qp(t,o,r[o]),i[o]=!0)}m(Yd,"mergeMappings");function pn(e,t,r,i,n,o,s,a,l){var h,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),h=0,c=n.length;h<c;h+=1)Array.isArray(n[h])&&ot(e,"nested arrays are not supported inside keys"),typeof n=="object"&&jd(n[h])==="[object Object]"&&(n[h]="[object Object]");if(typeof n=="object"&&jd(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(h=0,c=o.length;h<c;h+=1)Yd(e,t,o[h],r);else Yd(e,t,o,r);else!e.json&&!Ui.call(r,n)&&Ui.call(t,n)&&(e.line=s||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,ot(e,"duplicated mapping key")),qp(t,n,o),delete r[n];return t}m(pn,"storeMappingPair");function pc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ot(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}m(pc,"readLineBreak");function Xt(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Wi(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Tr(n))for(pc(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&ya(e,"deficient indentation"),i}m(Xt,"skipSeparationSpace");function $a(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Le(r)))}m($a,"testDocumentSeparator");function gc(e,t){t===1?e.result+=" ":t>1&&(e.result+=re.repeat(`
|
|
173
|
+
`,t-1))}m(gc,"writeFoldedLines");function d2(e,t,r){var i,n,o,s,a,l,h,c,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Le(d)||fn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Le(n)||r&&fn(n)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,a=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Le(n)||r&&fn(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Le(i))break}else{if(e.position===e.lineStart&&$a(e)||r&&fn(d))break;if(Tr(d))if(l=e.line,h=e.lineStart,c=e.lineIndent,Xt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=h,e.lineIndent=c;break}}a&&(ai(e,o,s,!1),gc(e,e.line-l),o=s=e.position,a=!1),Wi(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return ai(e,o,s,!1),e.result?!0:(e.kind=u,e.result=f,!1)}m(d2,"readPlainScalar");function f2(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ai(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Tr(r)?(ai(e,i,n,!0),gc(e,Xt(e,!1,t)),i=n=e.position):e.position===e.lineStart&&$a(e)?ot(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);ot(e,"unexpected end of the stream within a single quoted scalar")}m(f2,"readSingleQuotedScalar");function p2(e,t){var r,i,n,o,s,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ai(e,r,e.position,!0),e.position++,!0;if(a===92){if(ai(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Tr(a))Xt(e,!1,t);else if(a<256&&h2[a])e.result+=c2[a],e.position++;else if((s=s2(a))>0){for(n=s,o=0;n>0;n--)a=e.input.charCodeAt(++e.position),(s=o2(a))>=0?o=(o<<4)+s:ot(e,"expected hexadecimal character");e.result+=l2(o),e.position++}else ot(e,"unknown escape sequence");r=i=e.position}else Tr(a)?(ai(e,r,i,!0),gc(e,Xt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&$a(e)?ot(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ot(e,"unexpected end of the stream within a double quoted scalar")}m(p2,"readDoubleQuotedScalar");function g2(e,t){var r=!0,i,n,o,s=e.tag,a,l=e.anchor,h,c,u,f,d,g=Object.create(null),p,C,y,x;if(x=e.input.charCodeAt(e.position),x===91)c=93,d=!1,a=[];else if(x===123)c=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),x=e.input.charCodeAt(++e.position);x!==0;){if(Xt(e,!0,t),x=e.input.charCodeAt(e.position),x===c)return e.position++,e.tag=s,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=a,!0;r?x===44&&ot(e,"expected the node content, but found ','"):ot(e,"missed comma between flow collection entries"),C=p=y=null,u=f=!1,x===63&&(h=e.input.charCodeAt(e.position+1),Le(h)&&(u=f=!0,e.position++,Xt(e,!0,t))),i=e.line,n=e.lineStart,o=e.position,Bn(e,t,Eh,!1,!0),C=e.tag,p=e.result,Xt(e,!0,t),x=e.input.charCodeAt(e.position),(f||e.line===i)&&x===58&&(u=!0,x=e.input.charCodeAt(++e.position),Xt(e,!0,t),Bn(e,t,Eh,!1,!0),y=e.result),d?pn(e,a,g,C,p,y,i,n,o):u?a.push(pn(e,null,g,C,p,y,i,n,o)):a.push(p),Xt(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(r=!0,x=e.input.charCodeAt(++e.position)):r=!1}ot(e,"unexpected end of the stream within a flow collection")}m(g2,"readFlowCollection");function m2(e,t){var r,i,n=ku,o=!1,s=!1,a=t,l=0,h=!1,c,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)ku===n?n=u===43?Ny:nA:ot(e,"repeat of a chomping mode identifier");else if((c=a2(u))>=0)c===0?ot(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ot(e,"repeat of an indentation width identifier"):(a=t+c-1,s=!0);else break;if(Wi(u)){do u=e.input.charCodeAt(++e.position);while(Wi(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Tr(u)&&u!==0)}for(;u!==0;){for(pc(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!s||e.lineIndent<a)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>a&&(a=e.lineIndent),Tr(u)){l++;continue}if(e.lineIndent<a){n===Ny?e.result+=re.repeat(`
|
|
174
|
+
`,o?1+l:l):n===ku&&o&&(e.result+=`
|
|
175
|
+
`);break}for(i?Wi(u)?(h=!0,e.result+=re.repeat(`
|
|
176
|
+
`,o?1+l:l)):h?(h=!1,e.result+=re.repeat(`
|
|
177
|
+
`,l+1)):l===0?o&&(e.result+=" "):e.result+=re.repeat(`
|
|
178
|
+
`,l):e.result+=re.repeat(`
|
|
179
|
+
`,o?1+l:l),o=!0,s=!0,l=0,r=e.position;!Tr(u)&&u!==0;)u=e.input.charCodeAt(++e.position);ai(e,r,e.position,!1)}return!0}m(m2,"readBlockScalar");function Vd(e,t){var r,i=e.tag,n=e.anchor,o=[],s,a=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ot(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Le(s))));){if(a=!0,e.position++,Xt(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Bn(e,t,r2,!1,!0),o.push(e.result),Xt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)ot(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=o,!0):!1}m(Vd,"readBlockSequence");function y2(e,t,r){var i,n,o,s,a,l,h=e.tag,c=e.anchor,u={},f=Object.create(null),d=null,g=null,p=null,C=!1,y=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),x=e.input.charCodeAt(e.position);x!==0;){if(!C&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ot(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,(x===63||x===58)&&Le(i))x===63?(C&&(pn(e,u,f,d,g,null,s,a,l),d=g=p=null),y=!0,C=!0,n=!0):C?(C=!1,n=!0):ot(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=i;else{if(s=e.line,a=e.lineStart,l=e.position,!Bn(e,r,e2,!1,!0))break;if(e.line===o){for(x=e.input.charCodeAt(e.position);Wi(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),Le(x)||ot(e,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(pn(e,u,f,d,g,null,s,a,l),d=g=p=null),y=!0,C=!1,n=!1,d=e.tag,g=e.result;else if(y)ot(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=c,!0}else if(y)ot(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=c,!0}if((e.line===o||e.lineIndent>t)&&(C&&(s=e.line,a=e.lineStart,l=e.position),Bn(e,t,Fh,!0,n)&&(C?g=e.result:p=e.result),C||(pn(e,u,f,d,g,p,s,a,l),d=g=p=null),Xt(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&x!==0)ot(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return C&&pn(e,u,f,d,g,null,s,a,l),y&&(e.tag=h,e.anchor=c,e.kind="mapping",e.result=u),y}m(y2,"readBlockMapping");function C2(e){var t,r=!1,i=!1,n,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ot(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,n="!!",s=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ot(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Le(s);)s===33&&(i?ot(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),i2.test(n)||ot(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),aA.test(o)&&ot(e,"tag suffix cannot contain flow indicator characters")}o&&!n2.test(o)&&ot(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{ot(e,"tag name is malformed: "+o)}return r?e.tag=o:Ui.call(e.tagMap,n)?e.tag=e.tagMap[n]+o:n==="!"?e.tag="!"+o:n==="!!"?e.tag="tag:yaml.org,2002:"+o:ot(e,'undeclared tag handle "'+n+'"'),!0}m(C2,"readTagProperty");function x2(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ot(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Le(r)&&!fn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ot(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}m(x2,"readAnchorProperty");function k2(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Le(i)&&!fn(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ot(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ui.call(e.anchorMap,r)||ot(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Xt(e,!0,-1),!0}m(k2,"readAlias");function Bn(e,t,r,i,n){var o,s,a,l=1,h=!1,c=!1,u,f,d,g,p,C;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=a=Fh===r||r2===r,i&&Xt(e,!0,-1)&&(h=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;C2(e)||x2(e);)Xt(e,!0,-1)?(h=!0,a=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=h||n),(l===1||Fh===r)&&(Eh===r||e2===r?p=t:p=t+1,C=e.position-e.lineStart,l===1?a&&(Vd(e,C)||y2(e,C,p))||g2(e,p)?c=!0:(s&&m2(e,p)||f2(e,p)||p2(e,p)?c=!0:k2(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&ot(e,"alias node should not have any properties")):d2(e,p,Eh===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&Vd(e,C))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ot(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,f=e.implicitTypes.length;u<f;u+=1)if(g=e.implicitTypes[u],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ui.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(e.tag.slice(0,d[u].tag.length)===d[u].tag){g=d[u];break}g||ot(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ot(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ot(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}m(Bn,"composeNode");function v2(e){var t=e.position,r,i,n,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(Xt(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Le(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&ot(e,"directive name must not be less than one character in length");s!==0;){for(;Wi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Tr(s));break}if(Tr(s))break;for(r=e.position;s!==0&&!Le(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&pc(e),Ui.call(zy,i)?zy[i](e,i,n):ya(e,'unknown document directive "'+i+'"')}if(Xt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Xt(e,!0,-1)):o&&ot(e,"directives end mark is expected"),Bn(e,e.lineIndent-1,Fh,!1,!0),Xt(e,!0,-1),e.checkLineBreaks&&sA.test(e.input.slice(t,e.position))&&ya(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&$a(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Xt(e,!0,-1));return}if(e.position<e.length-1)ot(e,"end of the stream or a document separator is expected");else return}m(v2,"readDocument");function jp(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
180
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new u2(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,ot(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)v2(r);return r.documents}m(jp,"loadDocuments");function lA(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=jp(e,r);if(typeof t!="function")return i;for(var n=0,o=i.length;n<o;n+=1)t(i[n])}m(lA,"loadAll$1");function b2(e,t){var r=jp(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Re("expected a single document in the stream, but found more")}}m(b2,"load$1");var hA=b2,cA={load:hA},w2=Object.prototype.toString,S2=Object.prototype.hasOwnProperty,Up=65279,uA=9,Ca=10,dA=13,fA=32,pA=33,gA=34,Gd=35,mA=37,yA=38,CA=39,xA=42,T2=44,kA=45,Ah=58,vA=61,bA=62,wA=63,SA=64,_2=91,B2=93,TA=96,L2=123,_A=124,E2=125,Se={};Se[0]="\\0";Se[7]="\\a";Se[8]="\\b";Se[9]="\\t";Se[10]="\\n";Se[11]="\\v";Se[12]="\\f";Se[13]="\\r";Se[27]="\\e";Se[34]='\\"';Se[92]="\\\\";Se[133]="\\N";Se[160]="\\_";Se[8232]="\\L";Se[8233]="\\P";var BA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],LA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function F2(e,t){var r,i,n,o,s,a,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,o=i.length;n<o;n+=1)s=i[n],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&S2.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[s]=a;return r}m(F2,"compileStyleMap");function A2(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Re("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+re.repeat("0",i-t.length)+t}m(A2,"encodeHex");var EA=1,xa=2;function M2(e){this.schema=e.schema||t2,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=re.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=F2(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?xa:EA,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}m(M2,"State");function Xd(e,t){for(var r=re.repeat(" ",t),i=0,n=-1,o="",s,a=e.length;i<a;)n=e.indexOf(`
|
|
181
|
+
`,i),n===-1?(s=e.slice(i),i=a):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
|
|
182
|
+
`&&(o+=r),o+=s;return o}m(Xd,"indentString");function Mh(e,t){return`
|
|
183
|
+
`+re.repeat(" ",e.indent*t)}m(Mh,"generateNextLine");function $2(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}m($2,"testImplicitResolving");function ka(e){return e===fA||e===uA}m(ka,"isWhitespace");function Uo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Up||65536<=e&&e<=1114111}m(Uo,"isPrintable");function Qd(e){return Uo(e)&&e!==Up&&e!==dA&&e!==Ca}m(Qd,"isNsCharOrWhitespace");function Kd(e,t,r){var i=Qd(e),n=i&&!ka(e);return(r?i:i&&e!==T2&&e!==_2&&e!==B2&&e!==L2&&e!==E2)&&e!==Gd&&!(t===Ah&&!n)||Qd(t)&&!ka(t)&&e===Gd||t===Ah&&n}m(Kd,"isPlainSafe");function O2(e){return Uo(e)&&e!==Up&&!ka(e)&&e!==kA&&e!==wA&&e!==Ah&&e!==T2&&e!==_2&&e!==B2&&e!==L2&&e!==E2&&e!==Gd&&e!==yA&&e!==xA&&e!==pA&&e!==_A&&e!==vA&&e!==bA&&e!==CA&&e!==gA&&e!==mA&&e!==SA&&e!==TA}m(O2,"isPlainSafeFirst");function I2(e){return!ka(e)&&e!==Ah}m(I2,"isPlainSafeLast");function ao(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}m(ao,"codePointAt");function Yp(e){var t=/^\n* /;return t.test(e)}m(Yp,"needIndentIndicator");var P2=1,Zd=2,D2=3,R2=4,Yn=5;function N2(e,t,r,i,n,o,s,a){var l,h=0,c=null,u=!1,f=!1,d=i!==-1,g=-1,p=O2(ao(e,0))&&I2(ao(e,e.length-1));if(t||s)for(l=0;l<e.length;h>=65536?l+=2:l++){if(h=ao(e,l),!Uo(h))return Yn;p=p&&Kd(h,c,a),c=h}else{for(l=0;l<e.length;h>=65536?l+=2:l++){if(h=ao(e,l),h===Ca)u=!0,d&&(f=f||l-g-1>i&&e[g+1]!==" ",g=l);else if(!Uo(h))return Yn;p=p&&Kd(h,c,a),c=h}f=f||d&&l-g-1>i&&e[g+1]!==" "}return!u&&!f?p&&!s&&!n(e)?P2:o===xa?Yn:Zd:r>9&&Yp(e)?Yn:s?o===xa?Yn:Zd:f?R2:D2}m(N2,"chooseScalarStyle");function z2(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===xa?'""':"''";if(!e.noCompatMode&&(BA.indexOf(t)!==-1||LA.test(t)))return e.quotingType===xa?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=i||e.flowLevel>-1&&r>=e.flowLevel;function l(h){return $2(e,h)}switch(m(l,"testAmbiguity"),N2(t,a,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,n)){case P2:return t;case Zd:return"'"+t.replace(/'/g,"''")+"'";case D2:return"|"+Jd(t,e.indent)+tf(Xd(t,o));case R2:return">"+Jd(t,e.indent)+tf(Xd(W2(t,s),o));case Yn:return'"'+q2(t)+'"';default:throw new Re("impossible error: invalid scalar style")}}()}m(z2,"writeScalar");function Jd(e,t){var r=Yp(e)?String(t):"",i=e[e.length-1]===`
|
|
184
|
+
`,n=i&&(e[e.length-2]===`
|
|
185
|
+
`||e===`
|
|
186
|
+
`),o=n?"+":i?"":"-";return r+o+`
|
|
187
|
+
`}m(Jd,"blockHeader");function tf(e){return e[e.length-1]===`
|
|
188
|
+
`?e.slice(0,-1):e}m(tf,"dropEndingNewline");function W2(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var h=e.indexOf(`
|
|
189
|
+
`);return h=h!==-1?h:e.length,r.lastIndex=h,ef(e.slice(0,h),t)}(),n=e[0]===`
|
|
190
|
+
`||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],l=s[2];o=l[0]===" ",i+=a+(!n&&!o&&l!==""?`
|
|
191
|
+
`:"")+ef(l,t),n=o}return i}m(W2,"foldString");function ef(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,o,s=0,a=0,l="";i=r.exec(e);)a=i.index,a-n>t&&(o=s>n?s:a,l+=`
|
|
192
|
+
`+e.slice(n,o),n=o+1),s=a;return l+=`
|
|
193
|
+
`,e.length-n>t&&s>n?l+=e.slice(n,s)+`
|
|
194
|
+
`+e.slice(s+1):l+=e.slice(n),l.slice(1)}m(ef,"foldLine");function q2(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=ao(e,n),i=Se[r],!i&&Uo(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||A2(r);return t}m(q2,"escapeString");function H2(e,t,r){var i="",n=e.tag,o,s,a;for(o=0,s=r.length;o<s;o+=1)a=r[o],e.replacer&&(a=e.replacer.call(r,String(o),a)),(Ur(e,t,a,!1,!1)||typeof a>"u"&&Ur(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}m(H2,"writeFlowSequence");function rf(e,t,r,i){var n="",o=e.tag,s,a,l;for(s=0,a=r.length;s<a;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(Ur(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Ur(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Mh(e,t)),e.dump&&Ca===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=o,e.dump=n||"[]"}m(rf,"writeBlockSequence");function j2(e,t,r){var i="",n=e.tag,o=Object.keys(r),s,a,l,h,c;for(s=0,a=o.length;s<a;s+=1)c="",i!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=o[s],h=r[l],e.replacer&&(h=e.replacer.call(r,l,h)),Ur(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ur(e,t,h,!1,!1)&&(c+=e.dump,i+=c));e.tag=n,e.dump="{"+i+"}"}m(j2,"writeFlowMapping");function U2(e,t,r,i){var n="",o=e.tag,s=Object.keys(r),a,l,h,c,u,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Re("sortKeys must be a boolean or a function");for(a=0,l=s.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Mh(e,t)),h=s[a],c=r[h],e.replacer&&(c=e.replacer.call(r,h,c)),Ur(e,t+1,h,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Ca===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=Mh(e,t)),Ur(e,t+1,c,!0,u)&&(e.dump&&Ca===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=o,e.dump=n||"{}"}m(U2,"writeBlockMapping");function nf(e,t,r){var i,n,o,s,a,l;for(n=r?e.explicitTypes:e.implicitTypes,o=0,s=n.length;o<s;o+=1)if(a=n[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,w2.call(a.represent)==="[object Function]")i=a.represent(t,l);else if(S2.call(a.represent,l))i=a.represent[l](t,l);else throw new Re("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}m(nf,"detectType");function Ur(e,t,r,i,n,o,s){e.tag=null,e.dump=r,nf(e,r,!1)||nf(e,r,!0);var a=w2.call(e.dump),l=i,h;i&&(i=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,f;if(c&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")i&&Object.keys(e.dump).length!==0?(U2(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(j2(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?rf(e,t-1,e.dump,n):rf(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(H2(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&z2(e,e.dump,t,o,l);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Re("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}m(Ur,"writeNode");function Y2(e,t){var r=[],i=[],n,o;for($h(e,r,i),n=0,o=i.length;n<o;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(o)}m(Y2,"getDuplicateReferences");function $h(e,t,r){var i,n,o;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,o=e.length;n<o;n+=1)$h(e[n],t,r);else for(i=Object.keys(e),n=0,o=i.length;n<o;n+=1)$h(e[i[n]],t,r)}m($h,"inspectNode");function FA(e,t){t=t||{};var r=new M2(t);r.noRefs||Y2(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Ur(r,0,i,!0,!0)?r.dump+`
|
|
195
|
+
`:""}m(FA,"dump$1");function AA(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}m(AA,"renamed");var MA=Dk,$A=cA.load;/*! Bundled license information:
|
|
196
|
+
|
|
197
|
+
js-yaml/dist/js-yaml.mjs:
|
|
198
|
+
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
199
|
+
*/var gs=m((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),ke={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Wy={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Fs(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Pt(e),t=Pt(t);const[r,i]=[e.x,e.y],[n,o]=[t.x,t.y],s=n-r,a=o-i;return{angle:Math.atan(a/s),deltaX:s,deltaY:a}}m(Fs,"calculateDeltaAndAngle");var Pt=m(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),OA=m(e=>({x:m(function(t,r,i){let n=0;const o=Pt(i[0]).x<Pt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(ke,e.arrowTypeStart)){const{angle:d,deltaX:g}=Fs(i[0],i[1]);n=ke[e.arrowTypeStart]*Math.cos(d)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ke,e.arrowTypeEnd)){const{angle:d,deltaX:g}=Fs(i[i.length-1],i[i.length-2]);n=ke[e.arrowTypeEnd]*Math.cos(d)*(g>=0?1:-1)}const s=Math.abs(Pt(t).x-Pt(i[i.length-1]).x),a=Math.abs(Pt(t).y-Pt(i[i.length-1]).y),l=Math.abs(Pt(t).x-Pt(i[0]).x),h=Math.abs(Pt(t).y-Pt(i[0]).y),c=ke[e.arrowTypeStart],u=ke[e.arrowTypeEnd],f=1;if(s<u&&s>0&&a<u){let d=u+f-s;d*=o==="right"?-1:1,n-=d}if(l<c&&l>0&&h<c){let d=c+f-l;d*=o==="right"?-1:1,n+=d}return Pt(t).x+n},"x"),y:m(function(t,r,i){let n=0;const o=Pt(i[0]).y<Pt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(ke,e.arrowTypeStart)){const{angle:d,deltaY:g}=Fs(i[0],i[1]);n=ke[e.arrowTypeStart]*Math.abs(Math.sin(d))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ke,e.arrowTypeEnd)){const{angle:d,deltaY:g}=Fs(i[i.length-1],i[i.length-2]);n=ke[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(g>=0?1:-1)}const s=Math.abs(Pt(t).y-Pt(i[i.length-1]).y),a=Math.abs(Pt(t).x-Pt(i[i.length-1]).x),l=Math.abs(Pt(t).y-Pt(i[0]).y),h=Math.abs(Pt(t).x-Pt(i[0]).x),c=ke[e.arrowTypeStart],u=ke[e.arrowTypeEnd],f=1;if(s<u&&s>0&&a<u){let d=u+f-s;d*=o==="up"?-1:1,n-=d}if(l<c&&l>0&&h<c){let d=c+f-l;d*=o==="up"?-1:1,n+=d}return Pt(t).y+n},"y")}),"getLineFunctionsWithOffset"),V2={},se={};Object.defineProperty(se,"__esModule",{value:!0});se.BLANK_URL=se.relativeFirstCharacters=se.whitespaceEscapeCharsRegex=se.urlSchemeRegex=se.ctrlCharactersRegex=se.htmlCtrlEntityRegex=se.htmlEntitiesRegex=se.invalidProtocolRegex=void 0;se.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;se.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;se.htmlCtrlEntityRegex=/&(newline|tab);/gi;se.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;se.urlSchemeRegex=/^.+(:|:)/gim;se.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;se.relativeFirstCharacters=[".","/"];se.BLANK_URL="about:blank";Object.defineProperty(V2,"__esModule",{value:!0});var IA=V2.sanitizeUrl=NA,xe=se;function PA(e){return xe.relativeFirstCharacters.indexOf(e[0])>-1}function DA(e){var t=e.replace(xe.ctrlCharactersRegex,"");return t.replace(xe.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function RA(e){return URL.canParse(e)}function qy(e){try{return decodeURIComponent(e)}catch{return e}}function NA(e){if(!e)return xe.BLANK_URL;var t,r=qy(e.trim());do r=DA(r).replace(xe.htmlCtrlEntityRegex,"").replace(xe.ctrlCharactersRegex,"").replace(xe.whitespaceEscapeCharsRegex,"").trim(),r=qy(r),t=r.match(xe.ctrlCharactersRegex)||r.match(xe.htmlEntitiesRegex)||r.match(xe.htmlCtrlEntityRegex)||r.match(xe.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return xe.BLANK_URL;if(PA(i))return i;var n=i.trimStart(),o=n.match(xe.urlSchemeRegex);if(!o)return i;var s=o[0].toLowerCase().trim();if(xe.invalidProtocolRegex.test(s))return xe.BLANK_URL;var a=n.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return a;if(s==="http:"||s==="https:"){if(!RA(a))return xe.BLANK_URL;var l=new URL(a);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return a}function vu(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const i=e[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${i}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function zA(){}function G2(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Vp(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const WA="[object RegExp]",X2="[object String]",Q2="[object Number]",K2="[object Boolean]",Z2="[object Arguments]",qA="[object Symbol]",HA="[object Date]",jA="[object Map]",UA="[object Set]",YA="[object Array]",VA="[object ArrayBuffer]",GA="[object Object]",XA="[object DataView]",QA="[object Uint8Array]",KA="[object Uint8ClampedArray]",ZA="[object Uint16Array]",JA="[object Uint32Array]",tM="[object Int8Array]",eM="[object Int16Array]",rM="[object Int32Array]",iM="[object Float32Array]",nM="[object Float64Array]",Hy=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}()||Function("return this")();function Gp(e){return typeof Hy.Buffer<"u"&&Hy.Buffer.isBuffer(e)}function oM(e){return Number.isSafeInteger(e)&&e>=0}function J2(e){return e!=null&&typeof e!="function"&&oM(e.length)}function sM(e){return e==="__proto__"}function Xp(e){return e==null||typeof e!="object"&&typeof e!="function"}function Qp(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function aM(e,t){return lo(e,void 0,e,new Map,t)}function lo(e,t,r,i=new Map,n=void 0){const o=n==null?void 0:n(e,t,r,i);if(o!==void 0)return o;if(Xp(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const s=new Array(e.length);i.set(e,s);for(let a=0;a<e.length;a++)s[a]=lo(e[a],a,r,i,n);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){const s=new Map;i.set(e,s);for(const[a,l]of e)s.set(a,lo(l,a,r,i,n));return s}if(e instanceof Set){const s=new Set;i.set(e,s);for(const a of e)s.add(lo(a,void 0,r,i,n));return s}if(Gp(e))return e.subarray();if(Qp(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,s);for(let a=0;a<e.length;a++)s[a]=lo(e[a],a,r,i,n);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,s),mr(s,e,r,i,n),s}if(typeof File<"u"&&e instanceof File){const s=new File([e],e.name,{type:e.type});return i.set(e,s),mr(s,e,r,i,n),s}if(typeof Blob<"u"&&e instanceof Blob){const s=new Blob([e],{type:e.type});return i.set(e,s),mr(s,e,r,i,n),s}if(e instanceof Error){const s=structuredClone(e);return i.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,s.constructor=e.constructor,mr(s,e,r,i,n),s}if(e instanceof Boolean){const s=new Boolean(e.valueOf());return i.set(e,s),mr(s,e,r,i,n),s}if(e instanceof Number){const s=new Number(e.valueOf());return i.set(e,s),mr(s,e,r,i,n),s}if(e instanceof String){const s=new String(e.valueOf());return i.set(e,s),mr(s,e,r,i,n),s}if(typeof e=="object"&&lM(e)){const s=Object.create(Object.getPrototypeOf(e));return i.set(e,s),mr(s,e,r,i,n),s}return e}function mr(e,t,r=e,i,n){const o=[...Object.keys(t),...G2(t)];for(let s=0;s<o.length;s++){const a=o[s],l=Object.getOwnPropertyDescriptor(e,a);(l==null||l.writable)&&(e[a]=lo(t[a],a,r,i,n))}}function lM(e){switch(Vp(e)){case Z2:case YA:case VA:case XA:case K2:case HA:case iM:case nM:case tM:case eM:case rM:case jA:case Q2:case GA:case WA:case UA:case X2:case qA:case QA:case KA:case ZA:case JA:return!0;default:return!1}}function hM(e,t){return aM(e,(r,i,n,o)=>{if(typeof e=="object"){if(Vp(e)==="[object Object]"&&typeof e.constructor!="function"){const s={};return o.set(e,s),mr(s,e,n,o),s}switch(Object.prototype.toString.call(e)){case Q2:case X2:case K2:{const s=new e.constructor(e==null?void 0:e.valueOf());return mr(s,e),s}case Z2:{const s={};return mr(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}function jy(e){return hM(e)}function of(e){return e!==null&&typeof e=="object"&&Vp(e)==="[object Arguments]"}function sf(e){return typeof e=="object"&&e!==null}function cM(e){return sf(e)&&J2(e)}function Oa(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);const s=e.apply(this,i);return r.cache=o.set(n,s)||o,s};return r.cache=new(Oa.Cache||Map),r}Oa.Cache=Map;function Rl(e){return Qp(e)}function uM(e){const t=e==null?void 0:e.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function dM(e){if(Xp(e))return e;if(Array.isArray(e)||Qp(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function fM(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let n=e;for(let o=0;o<r.length;o++){const s=r[o];n=Nl(n,s,i,new Map)}return n}function Nl(e,t,r,i){if(Xp(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return dM(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)t[o]=t[o]??void 0}const n=[...Object.keys(t),...G2(t)];for(let o=0;o<n.length;o++){const s=n[o];if(sM(s))continue;let a=t[s],l=e[s];if(of(a)&&(a={...a}),of(l)&&(l={...l}),Gp(a)&&(a=jy(a)),Array.isArray(a))if(Array.isArray(l)){const c=[],u=Reflect.ownKeys(l);for(let f=0;f<u.length;f++){const d=u[f];c[d]=l[d]}l=c}else if(cM(l)){const c=[];for(let u=0;u<l.length;u++)c[u]=l[u];l=c}else l=[];const h=r(l,a,s,e,t,i);h!==void 0?e[s]=h:Array.isArray(a)||sf(l)&&sf(a)&&(vu(l)||vu(a)||Rl(l)||Rl(a))?e[s]=Nl(l,a,r,i):l==null&&vu(a)?e[s]=Nl({},a,r,i):l==null&&Rl(a)?e[s]=jy(a):(l===void 0||a!==void 0)&&(e[s]=a)}return e}function pM(e,...t){return fM(e,...t,zA)}function Uy(e){if(e==null)return!0;if(J2(e))return typeof e.splice!="function"&&typeof e!="string"&&!Gp(e)&&!Rl(e)&&!of(e)?!1:e.length===0;if(typeof e=="object"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return uM(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var gM="",mM={curveBasis:qd,curveBasisClosed:C5,curveBasisOpen:x5,curveBumpX:Y1,curveBumpY:V1,curveBundle:k5,curveCardinalClosed:v5,curveCardinalOpen:b5,curveCardinal:K1,curveCatmullRomClosed:w5,curveCatmullRomOpen:S5,curveCatmullRom:J1,curveLinear:Ys,curveLinearClosed:T5,curveMonotoneX:ok,curveMonotoneY:sk,curveNatural:lk,curveStep:hk,curveStepAfter:uk,curveStepBefore:ck},yM=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,CM=m(function(e,t){const r=tv(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(a=>a.args);ph(s),i=ee(i,[...s])}else i=r.args;if(!i)return;let n=vp(e,t);const o="config";return i[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[o],delete i[o]),i},"detectInit"),tv=m(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${yM.source})(?=[}][%]{2}).*
|
|
200
|
+
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),q.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const s=[];for(;(o=js.exec(e))!==null;)if(o.index===js.lastIndex&&js.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((i=o[2])!=null&&i.match(t))){const a=o[1]?o[1]:o[2],l=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;s.push({type:a,args:l})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(n){return q.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),xM=m(function(e){return e.replace(js,"")},"removeDirectives"),kM=m(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Kp(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return mM[r]??t}m(Kp,"interpolateToCurve");function ev(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?IA(r):r}m(ev,"formatUrl");var vM=m((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let o=window;for(let s=0;s<i;s++)if(o=o[r[s]],!o){q.error(`Function name: ${e} not found in window`);return}o[n](...t)},"runFunc");function Zp(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}m(Zp,"distance");function rv(e){let t,r=0;e.forEach(n=>{r+=Zp(n,t),t=n});const i=r/2;return Jp(e,i)}m(rv,"traverseEdge");function iv(e){return e.length===1?e[0]:rv(e)}m(iv,"calcLabelPosition");var Yy=m((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Jp=m((e,t)=>{let r,i=t;for(const n of e){if(r){const o=Zp(n,r);if(o===0)return r;if(o<i)i-=o;else{const s=i/o;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:Yy((1-s)*r.x+s*n.x,5),y:Yy((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),bM=m((e,t,r)=>{q.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=Jp(t,25),o=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(t[0].x+n.x)/2,a.y=-Math.cos(s)*o+(t[0].y+n.y)/2,a},"calcCardinalityPosition");function nv(e,t,r){const i=structuredClone(r);q.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,o=Jp(i,n),s=10+e*.5,a=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(i[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(i[0].y+o.y)/2):t==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(i[0].y+o.y)/2-5):t==="end_left"?(l.x=Math.sin(a)*s+(i[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(i[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(i[0].x+o.x)/2,l.y=-Math.cos(a)*s+(i[0].y+o.y)/2),l}m(nv,"calcTerminalLabelPosition");function ov(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}m(ov,"getStylesFromArray");var Vy=0,wM=m(()=>(Vy++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Vy),"generateId");function sv(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}m(sv,"makeRandomHex");var SM=m(e=>sv(e.length),"random"),TM=m(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"),_M=m(function(e,t){const r=t.text.replace(Fa.lineBreakRegex," "),[,i]=mc(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const o=n.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),n},"drawSimpleText"),BM=Oa((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Fa.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let o="";return i.forEach((s,a)=>{const l=fi(`${s} `,r),h=fi(o,r);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=LM(s,t,"-",r);n.push(o,...f),o=d}else h+l>=t?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===i.length&&n.push(o)}),n.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),LM=Oa((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if(fi(h,i)>=t){const u=l+1,f=n.length===u,d=`${h}${r}`;o.push(f?h:d),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function av(e,t){return tg(e,t).height}m(av,"calculateTextHeight");function fi(e,t){return tg(e,t).width}m(fi,"calculateTextWidth");var tg=Oa((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,o]=mc(r),s=["sans-serif",i],a=e.split(Fa.lineBreakRegex),l=[],h=Ct("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const f of s){let d=0;const g={width:0,height:0,lineHeight:0};for(const p of a){const C=TM();C.text=p||gM;const y=_M(c,C).style("font-size",o).style("font-weight",n).style("font-family",f),x=(y._groups||y)[0][0].getBBox();if(x.width===0&&x.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,x.width)),d=Math.round(x.height),g.height+=d,g.lineHeight=Math.round(Math.max(g.lineHeight,d))}l.push(g)}c.remove();const u=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;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Mo,EM=(Mo=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},m(Mo,"InitIDGenerator"),Mo),ul,FM=m(function(e){return ul=ul||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ul.innerHTML=e,unescape(ul.textContent)},"entityDecode");function eg(e){return"str"in e}m(eg,"isDetailedError");var AM=m((e,t,r,i)=>{var o;if(!i)return;const n=(o=e.node())==null?void 0:o.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),mc=m(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function rg(e,t){return pM({},e,t)}m(rg,"cleanAndMerge");var br={assignWithDepth:ee,wrapLabel:BM,calculateTextHeight:av,calculateTextWidth:fi,calculateTextDimensions:tg,cleanAndMerge:rg,detectInit:CM,detectDirective:tv,isSubstringInArray:kM,interpolateToCurve:Kp,calcLabelPosition:iv,calcCardinalityPosition:bM,calcTerminalLabelPosition:nv,formatUrl:ev,getStylesFromArray:ov,generateId:wM,random:SM,runFunc:vM,entityDecode:FM,insertTitle:AM,isLabelCoordinateInPath:lv,parseFontSize:mc,InitIDGenerator:EM},MM=m(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Ln=m(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),rR=m((e,t,{counter:r=0,prefix:i,suffix:n},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function le(e){return e??null}m(le,"handleUndefinedAttr");function lv(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return n.includes(r.toString())||n.includes(i.toString())}m(lv,"isLabelCoordinateInPath");var ig=m(({flowchart:e})=>{var n,o;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function hv(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(o=>{function s(){if(n.style.display="flex",n.style.flexDirection="column",i){const a=St().fontSize?St().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[h=n1.fontSize]=mc(a),c=h*l+"px";n.style.minWidth=c,n.style.maxWidth=c}else n.style.width="100%";o(n)}m(s,"setupImage"),setTimeout(()=>{n.complete&&s()}),n.addEventListener("error",s),n.addEventListener("load",s)})))}m(hv,"configureLabelImages");var $M=m(e=>{const{handDrawnSeed:t}=St();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),Ko=m(e=>{const t=OM([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),OM=m(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),cv=m(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),tt=m(e=>{const{stylesArray:t}=Ko(e),r=[],i=[],n=[],o=[];return t.forEach(s=>{const a=s[0];cv(a)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),a.includes("stroke")&&n.push(s.join(":")+" !important"),a==="fill"&&o.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:o}},"styles2String"),J=m((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=St(),{nodeBorder:n,mainBkg:o}=r,{stylesMap:s}=Ko(e);return Object.assign({roughness:.7,fill:s.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:((l=s.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:IM(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),IM=m(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const PM=Object.freeze({left:0,top:0,width:16,height:16}),Oh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),uv=Object.freeze({...PM,...Oh}),DM=Object.freeze({...uv,body:"",hidden:!1}),RM=Object.freeze({width:null,height:null}),NM=Object.freeze({...RM,...Oh}),zM=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const a=n.pop(),l=n.pop(),h={provider:n.length>0?n[0]:i,prefix:l,name:a};return bu(h)?h:null}const o=n[0],s=o.split("-");if(s.length>1){const a={provider:i,prefix:s.shift(),name:s.join("-")};return bu(a)?a:null}if(r&&i===""){const a={provider:i,prefix:"",name:o};return bu(a,r)?a:null}return null},bu=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function WM(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function Gy(e,t){const r=WM(e,t);for(const i in DM)i in Oh?i in e&&!(i in r)&&(r[i]=Oh[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function qM(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function o(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;const a=i[s]&&i[s].parent,l=a&&o(a);l&&(n[s]=[a].concat(l))}return n[s]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(o),n}function Xy(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let o={};function s(a){o=Gy(i[a]||n[a],o)}return s(t),r.forEach(s),Gy(e,o)}function HM(e,t){if(e.icons[t])return Xy(e,t,[]);const r=qM(e,[t])[t];return r?Xy(e,t,r):null}const jM=/(-?[0-9.]*[0-9]+[0-9.]*)/g,UM=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Qy(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(jM);if(i===null||!i.length)return e;const n=[];let o=i.shift(),s=UM.test(o);for(;;){if(s){const a=parseFloat(o);isNaN(a)?n.push(o):n.push(Math.ceil(a*t*r)/r)}else n.push(o);if(o=i.shift(),o===void 0)return n.join("");s=!s}}function YM(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),o=e.indexOf("</"+t);if(n===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;r+=e.slice(n+1,o).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}function VM(e,t){return e?"<defs>"+e+"</defs>"+t:t}function GM(e,t,r){const i=YM(e);return VM(i.defs,t+i.content+r)}const XM=e=>e==="unset"||e==="undefined"||e==="none";function QM(e,t){const r={...uv,...e},i={...NM,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach(p=>{const C=[],y=p.hFlip,x=p.vFlip;let k=p.rotate;y?x?k+=2:(C.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),C.push("scale(-1 1)"),n.top=n.left=0):x&&(C.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),C.push("scale(1 -1)"),n.top=n.left=0);let b;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:b=n.height/2+n.top,C.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:C.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:b=n.width/2+n.left,C.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}k%2===1&&(n.left!==n.top&&(b=n.left,n.left=n.top,n.top=b),n.width!==n.height&&(b=n.width,n.width=n.height,n.height=b)),C.length&&(o=GM(o,'<g transform="'+C.join(" ")+'">',"</g>"))});const s=i.width,a=i.height,l=n.width,h=n.height;let c,u;s===null?(u=a===null?"1em":a==="auto"?h:a,c=Qy(u,l/h)):(c=s==="auto"?l:s,u=a===null?Qy(c,h/l):a==="auto"?h:a);const f={},d=(p,C)=>{XM(C)||(f[p]=C.toString())};d("width",c),d("height",u);const g=[n.left,n.top,l,h];return f.viewBox=g.join(" "),{attributes:f,viewBox:g,body:o}}const KM=/\sid="(\S+)"/g,Ky=new Map;function ZM(e){e=e.replace(/[0-9]+$/,"")||"a";const t=Ky.get(e)||0;return Ky.set(e,t+1),t?`${e}${t}`:e}function JM(e){const t=[];let r;for(;r=KM.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const o=ZM(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function t$(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function ng(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $n=ng();function dv(e){$n=e}var Vs={exec:()=>null};function Tt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Ee.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}var e$=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ee={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},r$=/^(?:[ \t]*(?:\n|$))+/,i$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,n$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ia=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,o$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,og=/(?:[*+-]|\d{1,9}[.)])/,fv=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,pv=Tt(fv).replace(/bull/g,og).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),s$=Tt(fv).replace(/bull/g,og).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),sg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,a$=/^[^\n]+/,ag=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,l$=Tt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ag).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),h$=Tt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,og).getRegex(),yc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",lg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,c$=Tt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",lg).replace("tag",yc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gv=Tt(sg).replace("hr",Ia).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yc).getRegex(),u$=Tt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gv).getRegex(),hg={blockquote:u$,code:i$,def:l$,fences:n$,heading:o$,hr:Ia,html:c$,lheading:pv,list:h$,newline:r$,paragraph:gv,table:Vs,text:a$},Zy=Tt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ia).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yc).getRegex(),d$={...hg,lheading:s$,table:Zy,paragraph:Tt(sg).replace("hr",Ia).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Zy).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",yc).getRegex()},f$={...hg,html:Tt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",lg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Vs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tt(sg).replace("hr",Ia).replace("heading",` *#{1,6} *[^
|
|
201
|
+
]`).replace("lheading",pv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},p$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,g$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mv=/^( {2,}|\\)\n(?!\s*$)/,m$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cc=/[\p{P}\p{S}]/u,cg=/[\s\p{P}\p{S}]/u,yv=/[^\s\p{P}\p{S}]/u,y$=Tt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,cg).getRegex(),Cv=/(?!~)[\p{P}\p{S}]/u,C$=/(?!~)[\s\p{P}\p{S}]/u,x$=/(?:[^\s\p{P}\p{S}]|~)/u,k$=Tt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",e$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),xv=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,v$=Tt(xv,"u").replace(/punct/g,Cc).getRegex(),b$=Tt(xv,"u").replace(/punct/g,Cv).getRegex(),kv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",w$=Tt(kv,"gu").replace(/notPunctSpace/g,yv).replace(/punctSpace/g,cg).replace(/punct/g,Cc).getRegex(),S$=Tt(kv,"gu").replace(/notPunctSpace/g,x$).replace(/punctSpace/g,C$).replace(/punct/g,Cv).getRegex(),T$=Tt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yv).replace(/punctSpace/g,cg).replace(/punct/g,Cc).getRegex(),_$=Tt(/\\(punct)/,"gu").replace(/punct/g,Cc).getRegex(),B$=Tt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),L$=Tt(lg).replace("(?:-->|$)","-->").getRegex(),E$=Tt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",L$).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ih=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,F$=Tt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ih).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vv=Tt(/^!?\[(label)\]\[(ref)\]/).replace("label",Ih).replace("ref",ag).getRegex(),bv=Tt(/^!?\[(ref)\](?:\[\])?/).replace("ref",ag).getRegex(),A$=Tt("reflink|nolink(?!\\()","g").replace("reflink",vv).replace("nolink",bv).getRegex(),Jy=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ug={_backpedal:Vs,anyPunctuation:_$,autolink:B$,blockSkip:k$,br:mv,code:g$,del:Vs,emStrongLDelim:v$,emStrongRDelimAst:w$,emStrongRDelimUnd:T$,escape:p$,link:F$,nolink:bv,punctuation:y$,reflink:vv,reflinkSearch:A$,tag:E$,text:m$,url:Vs},M$={...ug,link:Tt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ih).getRegex(),reflink:Tt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ih).getRegex()},af={...ug,emStrongRDelimAst:S$,emStrongLDelim:b$,url:Tt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Jy).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Tt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Jy).getRegex()},$$={...af,br:Tt(mv).replace("{2,}","*").getRegex(),text:Tt(af.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},dl={normal:hg,gfm:d$,pedantic:f$},ms={normal:ug,gfm:af,breaks:$$,pedantic:M$},O$={"&":"&","<":"<",">":">",'"':""","'":"'"},t0=e=>O$[e];function Pr(e,t){if(t){if(Ee.escapeTest.test(e))return e.replace(Ee.escapeReplace,t0)}else if(Ee.escapeTestNoEncode.test(e))return e.replace(Ee.escapeReplaceNoEncode,t0);return e}function e0(e){try{e=encodeURI(e).replace(Ee.percentDecode,"%")}catch{return null}return e}function r0(e,t){var o;let r=e.replace(Ee.findPipe,(s,a,l)=>{let h=!1,c=a;for(;--c>=0&&l[c]==="\\";)h=!h;return h?"|":" |"}),i=r.split(Ee.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((o=i.at(-1))!=null&&o.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(Ee.slashPipe,"|");return i}function ys(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function I$(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function i0(e,t,r,i,n){let o=t.href,s=t.title||null,a=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:s,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,l}function P$(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
202
|
+
`).map(o=>{let s=o.match(r.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=n.length?o.slice(n.length):o}).join(`
|
|
203
|
+
`)}var Ph=class{constructor(t){At(this,"options");At(this,"rules");At(this,"lexer");this.options=t||$n}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:ys(i,`
|
|
204
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=P$(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=ys(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:ys(r[0],`
|
|
205
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=ys(r[0],`
|
|
206
|
+
`).split(`
|
|
207
|
+
`),n="",o="",s=[];for(;i.length>0;){let a=!1,l=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))l.push(i[h]),a=!0;else if(!a)l.push(i[h]);else break;i=i.slice(h);let c=l.join(`
|
|
208
|
+
`),u=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
209
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
210
|
+
${c}`:c,o=o?`${o}
|
|
211
|
+
${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=f,i.length===0)break;let d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let g=d,p=g.raw+`
|
|
212
|
+
`+i.join(`
|
|
213
|
+
`),C=this.blockquote(p);s[s.length-1]=C,n=n.substring(0,n.length-g.raw.length)+C.raw,o=o.substring(0,o.length-g.text.length)+C.text;break}else if((d==null?void 0:d.type)==="list"){let g=d,p=g.raw+`
|
|
214
|
+
`+i.join(`
|
|
215
|
+
`),C=this.list(p);s[s.length-1]=C,n=n.substring(0,n.length-d.raw.length)+C.raw,o=o.substring(0,o.length-g.raw.length)+C.raw,i=p.substring(s.at(-1).raw.length).split(`
|
|
216
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,o={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let s=this.rules.other.listItemRegex(i),a=!1;for(;t;){let h=!1,c="",u="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;c=r[0],t=t.substring(c.length);let f=r[2].split(`
|
|
217
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),d=t.split(`
|
|
218
|
+
`,1)[0],g=!f.trim(),p=0;if(this.options.pedantic?(p=2,u=f.trimStart()):g?p=r[1].length+1:(p=r[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=f.slice(p),p+=r[1].length),g&&this.rules.other.blankLine.test(d)&&(c+=d+`
|
|
219
|
+
`,t=t.substring(d.length+1),h=!0),!h){let x=this.rules.other.nextBulletRegex(p),k=this.rules.other.hrRegex(p),b=this.rules.other.fencesBeginRegex(p),w=this.rules.other.headingBeginRegex(p),T=this.rules.other.htmlBeginRegex(p);for(;t;){let E=t.split(`
|
|
220
|
+
`,1)[0],L;if(d=E,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),L=d):L=d.replace(this.rules.other.tabCharGlobal," "),b.test(d)||w.test(d)||T.test(d)||x.test(d)||k.test(d))break;if(L.search(this.rules.other.nonSpaceChar)>=p||!d.trim())u+=`
|
|
221
|
+
`+L.slice(p);else{if(g||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(f)||w.test(f)||k.test(f))break;u+=`
|
|
222
|
+
`+d}!g&&!d.trim()&&(g=!0),c+=E+`
|
|
223
|
+
`,t=t.substring(E.length+1),f=L.slice(p)}}o.loose||(a?o.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let C=null,y;this.options.gfm&&(C=this.rules.other.listIsTask.exec(u),C&&(y=C[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:c,task:!!C,checked:y,loose:!1,text:u,tokens:[]}),o.raw+=c}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let h=0;h<o.items.length;h++)if(this.lexer.state.top=!1,o.items[h].tokens=this.lexer.blockTokens(o.items[h].text,[]),!o.loose){let c=o.items[h].tokens.filter(f=>f.type==="space"),u=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=u}if(o.loose)for(let h=0;h<o.items.length;h++)o.items[h].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:o}}}table(t){var a;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=r0(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(a=r[3])!=null&&a.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
224
|
+
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let l of n)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<i.length;l++)s.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:s.align[l]});for(let l of o)s.rows.push(r0(l,s.header.length).map((h,c)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
225
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=ys(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=I$(r[2],"()");if(s===-2)return;if(s>-1){let a=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,a).trim(),r[3]=""}}let n=r[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],o=s[3])}else o=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),i0(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[n.toLowerCase()];if(!o){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return i0(i,o,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...n[0]].length-1,s,a,l=o,h=0,c=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,r=r.slice(-1*t.length+o);(n=c.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(a=[...s].length,n[3]||n[4]){l+=a;continue}else if((n[5]||n[6])&&o%3&&!((o+a)%3)){h+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+h);let u=[...n[0]][0].length,f=t.slice(0,o+n.index+u+a);if(Math.min(o,a)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,o;if(r[2]==="@")n=r[0],o="mailto:"+n;else{let s;do s=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(s!==r[0]);n=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},xr=class lf{constructor(t){At(this,"tokens");At(this,"options");At(this,"state");At(this,"tokenizer");At(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||$n,this.options.tokenizer=this.options.tokenizer||new Ph,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ee,block:dl.normal,inline:ms.normal};this.options.pedantic?(r.block=dl.pedantic,r.inline=ms.pedantic):this.options.gfm&&(r.block=dl.gfm,this.options.breaks?r.inline=ms.breaks:r.inline=ms.gfm),this.tokenizer.rules=r}static get rules(){return{block:dl,inline:ms}}static lex(t,r){return new lf(r).lex(t)}static lexInline(t,r){return new lf(r).inlineTokens(t)}lex(t){t=t.replace(Ee.carriageReturn,`
|
|
226
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var n,o,s;for(this.options.pedantic&&(t=t.replace(Ee.tabCharGlobal," ").replace(Ee.spaceLine,""));t;){let a;if((o=(n=this.options.extensions)==null?void 0:n.block)!=null&&o.some(h=>(a=h.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let h=r.at(-1);a.raw.length===1&&h!==void 0?h.raw+=`
|
|
227
|
+
`:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
228
|
+
`)?"":`
|
|
229
|
+
`)+a.raw,h.text+=`
|
|
230
|
+
`+a.text,this.inlineQueue.at(-1).src=h.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
231
|
+
`)?"":`
|
|
232
|
+
`)+a.raw,h.text+=`
|
|
233
|
+
`+a.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let h=1/0,c=t.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},c),typeof u=="number"&&u>=0&&(h=Math.min(h,u))}),h<1/0&&h>=0&&(l=t.substring(0,h+1))}if(this.state.top&&(a=this.tokenizer.paragraph(l))){let h=r.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
234
|
+
`)?"":`
|
|
235
|
+
`)+a.raw,h.text+=`
|
|
236
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(a),i=l.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
237
|
+
`)?"":`
|
|
238
|
+
`)+a.raw,h.text+=`
|
|
239
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(a);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,h,c,u,f;let i=t,n=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)o=n[2]?n[2].length:0,i=i.slice(0,n.index+o)+"["+"a".repeat(n[0].length-o-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((h=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:h.call({lexer:this},i))??i;let s=!1,a="";for(;t;){s||(a=""),s=!1;let d;if((u=(c=this.options.extensions)==null?void 0:c.inline)!=null&&u.some(p=>(d=p.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let p=r.at(-1);d.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=d.raw,p.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,a)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let g=t;if((f=this.options.extensions)!=null&&f.startInline){let p=1/0,C=t.slice(1),y;this.options.extensions.startInline.forEach(x=>{y=x.call({lexer:this},C),typeof y=="number"&&y>=0&&(p=Math.min(p,y))}),p<1/0&&p>=0&&(g=t.substring(0,p+1))}if(d=this.tokenizer.inlineText(g)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(a=d.raw.slice(-1)),s=!0;let p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=d.raw,p.text+=d.text):r.push(d);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},Dh=class{constructor(t){At(this,"options");At(this,"parser");this.options=t||$n}space(t){return""}code({text:t,lang:r,escaped:i}){var s;let n=(s=(r||"").match(Ee.notSpaceStart))==null?void 0:s[0],o=t.replace(Ee.endingNewline,"")+`
|
|
240
|
+
`;return n?'<pre><code class="language-'+Pr(n)+'">'+(i?o:Pr(o,!0))+`</code></pre>
|
|
241
|
+
`:"<pre><code>"+(i?o:Pr(o,!0))+`</code></pre>
|
|
242
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
243
|
+
${this.parser.parse(t)}</blockquote>
|
|
244
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
245
|
+
`}hr(t){return`<hr>
|
|
246
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let a=0;a<t.items.length;a++){let l=t.items[a];n+=this.listitem(l)}let o=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+o+s+`>
|
|
247
|
+
`+n+"</"+o+`>
|
|
248
|
+
`}listitem(t){var i;let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+Pr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
249
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
250
|
+
`}table(t){let r="",i="";for(let o=0;o<t.header.length;o++)i+=this.tablecell(t.header[o]);r+=this.tablerow({text:i});let n="";for(let o=0;o<t.rows.length;o++){let s=t.rows[o];i="";for(let a=0;a<s.length;a++)i+=this.tablecell(s[a]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
251
|
+
<thead>
|
|
252
|
+
`+r+`</thead>
|
|
253
|
+
`+n+`</table>
|
|
254
|
+
`}tablerow({text:t}){return`<tr>
|
|
255
|
+
${t}</tr>
|
|
256
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
257
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Pr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),o=e0(t);if(o===null)return n;t=o;let s='<a href="'+t+'"';return r&&(s+=' title="'+Pr(r)+'"'),s+=">"+n+"</a>",s}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let o=e0(t);if(o===null)return Pr(i);t=o;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${Pr(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Pr(t.text)}},dg=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},kr=class hf{constructor(t){At(this,"options");At(this,"renderer");At(this,"textRenderer");this.options=t||$n,this.options.renderer=this.options.renderer||new Dh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new dg}static parse(t,r){return new hf(r).parse(t)}static parseInline(t,r){return new hf(r).parseInline(t)}parse(t,r=!0){var n,o;let i="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&o[a.type]){let h=a,c=this.options.extensions.renderers[h.type].call({parser:this},h);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){i+=c||"";continue}}let l=a;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"def":{i+=this.renderer.def(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let h=l,c=this.renderer.text(h);for(;s+1<t.length&&t[s+1].type==="text";)h=t[++s],c+=`
|
|
258
|
+
`+this.renderer.text(h);r?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):i+=c;continue}default:{let h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(t,r=this.renderer){var n,o;let i="";for(let s=0;s<t.length;s++){let a=t[s];if((o=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&o[a.type]){let h=this.options.extensions.renderers[a.type].call({parser:this},a);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=h||"";continue}}let l=a;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{let h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},Cl,As=(Cl=class{constructor(t){At(this,"options");At(this,"block");this.options=t||$n}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?xr.lex:xr.lexInline}provideParser(){return this.block?kr.parse:kr.parseInline}},At(Cl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),At(Cl,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Cl),D$=class{constructor(...t){At(this,"defaults",ng());At(this,"options",this.setOptions);At(this,"parse",this.parseMarkdown(!0));At(this,"parseInline",this.parseMarkdown(!1));At(this,"Parser",kr);At(this,"Renderer",Dh);At(this,"TextRenderer",dg);At(this,"Lexer",xr);At(this,"Tokenizer",Ph);At(this,"Hooks",As);this.use(...t)}walkTokens(t,r){var n,o;let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let a=s;for(let l of a.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of a.rows)for(let h of l)i=i.concat(this.walkTokens(h.tokens,r));break}case"list":{let a=s;i=i.concat(this.walkTokens(a.items,r));break}default:{let a=s;(o=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&o[a.type]?this.defaults.extensions.childTokens[a.type].forEach(l=>{let h=a[l].flat(1/0);i=i.concat(this.walkTokens(h,r))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=r.renderers[o.name];s?r.renderers[o.name]=function(...a){let l=o.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[o.level];s?s.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),n.extensions=r),i.renderer){let o=this.defaults.renderer||new Dh(this.defaults);for(let s in i.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,l=i.renderer[a],h=o[a];o[a]=(...c)=>{let u=l.apply(o,c);return u===!1&&(u=h.apply(o,c)),u||""}}n.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new Ph(this.defaults);for(let s in i.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=i.tokenizer[a],h=o[a];o[a]=(...c)=>{let u=l.apply(o,c);return u===!1&&(u=h.apply(o,c)),u}}n.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new As;for(let s in i.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,l=i.hooks[a],h=o[a];As.passThroughHooks.has(s)?o[a]=c=>{if(this.defaults.async&&As.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(o,c);return h.call(o,f)})();let u=l.call(o,c);return h.call(o,u)}:o[a]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(o,c);return f===!1&&(f=await h.apply(o,c)),f})();let u=l.apply(o,c);return u===!1&&(u=h.apply(o,c)),u}}n.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),o&&(l=l.concat(o.call(this,a))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return xr.lex(t,r??this.defaults)}parser(t,r){return kr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},o={...this.defaults,...n},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let a=o.hooks?await o.hooks.preprocess(r):r,l=await(o.hooks?await o.hooks.provideLexer():t?xr.lex:xr.lexInline)(a,o),h=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(h,o.walkTokens));let c=await(o.hooks?await o.hooks.provideParser():t?kr.parse:kr.parseInline)(h,o);return o.hooks?await o.hooks.postprocess(c):c})().catch(s);try{o.hooks&&(r=o.hooks.preprocess(r));let a=(o.hooks?o.hooks.provideLexer():t?xr.lex:xr.lexInline)(r,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():t?kr.parse:kr.parseInline)(a,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(a){return s(a)}}}onError(t,r){return i=>{if(i.message+=`
|
|
259
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Pr(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},En=new D$;function Lt(e,t){return En.parse(e,t)}Lt.options=Lt.setOptions=function(e){return En.setOptions(e),Lt.defaults=En.defaults,dv(Lt.defaults),Lt};Lt.getDefaults=ng;Lt.defaults=$n;Lt.use=function(...e){return En.use(...e),Lt.defaults=En.defaults,dv(Lt.defaults),Lt};Lt.walkTokens=function(e,t){return En.walkTokens(e,t)};Lt.parseInline=En.parseInline;Lt.Parser=kr;Lt.parser=kr.parse;Lt.Renderer=Dh;Lt.TextRenderer=dg;Lt.Lexer=xr;Lt.lexer=xr.lex;Lt.Tokenizer=Ph;Lt.Hooks=As;Lt.parse=Lt;Lt.options;Lt.setOptions;Lt.use;Lt.walkTokens;Lt.parseInline;kr.parse;xr.lex;function wv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(a,l){var h=l.match(/\n([\t ]+|(?!\s).)/g);return h?a.concat(h.map(function(c){var u,f;return(f=(u=c.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):a},[]);if(n.length){var o=new RegExp(`
|
|
260
|
+
[ ]{`.concat(Math.min.apply(Math,n),"}"),"g");i=i.map(function(a){return a.replace(o,`
|
|
261
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(a,l){var h=s.match(/(?:^|\n)( *)$/),c=h?h[1]:"",u=a;typeof a=="string"&&a.includes(`
|
|
262
|
+
`)&&(u=String(a).split(`
|
|
263
|
+
`).map(function(f,d){return d===0?f:"".concat(c).concat(f)}).join(`
|
|
264
|
+
`)),s+=u+i[l+1]}),s}var R$={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},cf=new Map,Sv=new Map,N$=m(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(q.debug("Registering icon pack:",t.name),"loader"in t)Sv.set(t.name,t.loader);else if("icons"in t)cf.set(t.name,t.icons);else throw q.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Tv=m(async(e,t)=>{const r=zM(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=cf.get(i);if(!n){const s=Sv.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},cf.set(i,n)}catch(a){throw q.error(a),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=HM(n,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),z$=m(async e=>{try{return await Tv(e),!0}catch{return!1}},"isIconAvailable"),Pa=m(async(e,t,r)=>{let i;try{i=await Tv(e,t==null?void 0:t.fallbackPrefix)}catch(s){q.error(s),i=R$}const n=QM(i,t),o=t$(JM(n.body),{...n.attributes,...r});return Lr(o,zt())},"getIconSVG");function _v(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
265
|
+
`).replace(/\n{2,}/g,`
|
|
266
|
+
`);return wv(i)}m(_v,"preprocessMarkdown");function Bv(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}m(Bv,"nonMarkdownToLines");function Lv(e,t={}){const r=_v(e,t),i=Lt.lexer(r),n=[[]];let o=0;function s(a,l="normal"){a.type==="text"?a.text.split(`
|
|
267
|
+
`).forEach((c,u)=>{u!==0&&(o++,n.push([])),c.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&n[o].push({content:f,type:l})})}):a.type==="strong"||a.type==="em"?a.tokens.forEach(h=>{s(h,a.type)}):a.type==="html"&&n[o].push({content:a.text,type:"normal"})}return m(s,"processNode"),i.forEach(a=>{var l;a.type==="paragraph"?(l=a.tokens)==null||l.forEach(h=>{s(h)}):a.type==="html"?n[o].push({content:a.text,type:"normal"}):n[o].push({content:a.raw,type:"normal"})}),n}m(Lv,"markdownToLines");function Ev(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}m(Ev,"nonMarkdownToHTML");function Fv(e,{markdownAutoWrap:t}={}){const r=Lt.lexer(e);function i(n){var o,s,a;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(o=n.tokens)==null?void 0:o.map(i).join("")}</strong>`:n.type==="em"?`<em>${(s=n.tokens)==null?void 0:s.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(a=n.tokens)==null?void 0:a.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(q.warn(`Unsupported markdown: ${n.type}`),n.raw)}return m(i,"output"),r.map(i).join("")}m(Fv,"markdownToHTML");function Av(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}m(Av,"splitTextToChars");function Mv(e,t){const r=Av(t.content);return fg(e,[],r,t.type)}m(Mv,"splitWordToFitWidth");function fg(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...o]=r,s=[...t,n];return e([{content:s.join(""),type:i}])?fg(e,s,o,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}m(fg,"splitWordToFitWidthRecursion");function $v(e,t){if(e.some(({content:r})=>r.includes(`
|
|
268
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Rh(e,t)}m($v,"splitLineToFitWidth");function Rh(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(o),t(s))return Rh(e,t,r,s);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){const[a,l]=Mv(t,o);r.push([a]),l.content&&e.unshift(l)}return Rh(e,t,r)}m(Rh,"splitLineToFitWidthRecursion");function uf(e,t){t&&e.attr("style",t)}m(uf,"applyStyle");var n0=16384;async function Ov(e,t,r,i,n=!1,o=zt()){const s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,n0)}px`),s.attr("height",`${Math.min(10*r,n0)}px`);const a=s.append("xhtml:div"),l=da(t.label)?await p1(t.label.replace(Fa.lineBreakRegex,`
|
|
269
|
+
`),o):Lr(t.label,o),h=t.isNode?"nodeLabel":"edgeLabel",c=a.append("span");c.html(l),uf(c,t.labelStyle),c.attr("class",`${h} ${i}`),uf(a,t.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(a.style("max-width",r+"px"),a.style("text-align","center")),a.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&a.attr("class","labelBkg");let u=a.node().getBoundingClientRect();return u.width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),u=a.node().getBoundingClientRect()),s.node()}m(Ov,"addHtmlSpan");function xc(e,t,r,i=!1){const n=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}m(xc,"createTspan");function Iv(e,t,r){const i=e.append("text"),n=xc(i,1,t);kc(n,r);const o=n.node().getComputedTextLength();return i.remove(),o}m(Iv,"computeWidthOfText");function W$(e,t,r){var s;const i=e.append("text"),n=xc(i,1,t);kc(n,[{content:r,type:"normal"}]);const o=(s=n.node())==null?void 0:s.getBoundingClientRect();return o&&i.remove(),o}m(W$,"computeDimensionOfText");function Pv(e,t,r,i=!1,n=!1){const s=t.append("g"),a=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1");n&&l.attr("text-anchor","middle");let h=0;for(const c of r){const u=m(d=>Iv(s,1.1,d)<=e,"checkWidth"),f=u(c)?[c]:$v(c,u);for(const d of f){const g=xc(l,h,1.1,n);kc(g,d),h++}}if(i){const c=l.node().getBBox(),u=2;return a.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),s.node()}else return l.node()}m(Pv,"createFormattedText");function df(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}m(df,"decodeHTMLEntities");function kc(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(df(r.content)):n.text(" "+df(r.content))})}m(kc,"updateTextContentAndStyles");async function Dv(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,o,s)=>(r.push((async()=>{const a=`${o}:${s}`;return await z$(a)?await Pa(a,void 0,{class:"label-icon"}):`<i class='${Lr(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}m(Dv,"replaceIconSubstring");var mi=m(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:o=!0,markdown:s=!0,isNode:a=!0,width:l=200,addSvgBackground:h=!1}={},c)=>{if(q.debug("XYZ createText",t,r,i,n,o,a,"addSvgBackground: ",h),o){const u=s?Fv(t,c):Ev(t),f=await Dv(Ln(u),c),d=t.replace(/\\\\/g,"\\"),g={isNode:a,label:da(t)?d:f,labelStyle:r.replace("fill:","color:")};return await Ov(e,g,l,n,h,c)}else{const u=Ln(t.replace(/<br\s*\/?>/g,"<br/>")),f=s?Lv(u.replace("<br>","<br/>"),c):Bv(u),d=Pv(l,e,f,t?h:!1,!a);if(a){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ct(d).attr("style",g)}else{const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Ct(d).select("rect").attr("style",g.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ct(d).select("text").attr("style",p)}return i?Ct(d).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Ct(d).selectAll("tspan.text-outer-tspan").classed("row",!0),d}},"createText");function wu(e,t,r){if(e&&e.length){const[i,n]=t,o=Math.PI/180*r,s=Math.cos(o),a=Math.sin(o);for(const l of e){const[h,c]=l;l[0]=(h-i)*s-(c-n)*a+i,l[1]=(h-i)*a+(c-n)*s+n}}}function q$(e,t){return e[0]===t[0]&&e[1]===t[1]}function H$(e,t,r,i=1){const n=r,o=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,a=[0,0];if(n)for(const h of s)wu(h,a,n);const l=function(h,c,u){const f=[];for(const x of h){const k=[...x];q$(k[0],k[k.length-1])||k.push([k[0][0],k[0][1]]),k.length>2&&f.push(k)}const d=[];c=Math.max(c,.1);const g=[];for(const x of f)for(let k=0;k<x.length-1;k++){const b=x[k],w=x[k+1];if(b[1]!==w[1]){const T=Math.min(b[1],w[1]);g.push({ymin:T,ymax:Math.max(b[1],w[1]),x:T===b[1]?b[0]:w[0],islope:(w[0]-b[0])/(w[1]-b[1])})}}if(g.sort((x,k)=>x.ymin<k.ymin?-1:x.ymin>k.ymin?1:x.x<k.x?-1:x.x>k.x?1:x.ymax===k.ymax?0:(x.ymax-k.ymax)/Math.abs(x.ymax-k.ymax)),!g.length)return d;let p=[],C=g[0].ymin,y=0;for(;p.length||g.length;){if(g.length){let x=-1;for(let k=0;k<g.length&&!(g[k].ymin>C);k++)x=k;g.splice(0,x+1).forEach(k=>{p.push({s:C,edge:k})})}if(p=p.filter(x=>!(x.edge.ymax<=C)),p.sort((x,k)=>x.edge.x===k.edge.x?0:(x.edge.x-k.edge.x)/Math.abs(x.edge.x-k.edge.x)),(u!==1||y%c==0)&&p.length>1)for(let x=0;x<p.length;x+=2){const k=x+1;if(k>=p.length)break;const b=p[x].edge,w=p[k].edge;d.push([[Math.round(b.x),C],[Math.round(w.x),C]])}C+=u,p.forEach(x=>{x.edge.x=x.edge.x+u*x.edge.islope}),y++}return d}(s,o,i);if(n){for(const h of s)wu(h,a,-n);(function(h,c,u){const f=[];h.forEach(d=>f.push(...d)),wu(f,c,u)})(l,a,-n)}return l}function Da(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=n),H$(e,n,i,o||1)}class pg{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Da(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function vc(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class j$ extends pg{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=Da(t,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,s=[],a=.5*i*Math.cos(o),l=.5*i*Math.sin(o);for(const[h,c]of n)vc([h,c])&&s.push([[h[0]-a,h[1]+l],[...c]],[[h[0]+a,h[1]-l],[...c]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class U$ extends pg{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,n);return i.ops=i.ops.concat(o.ops),i}}class Y${constructor(t){this.helper=t}fillPolygons(t,r){const i=Da(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const s=n/4;for(const a of t){const l=vc(a),h=l/n,c=Math.ceil(h)-1,u=l-c*n,f=(a[0][0]+a[1][0])/2-n/4,d=Math.min(a[0][1],a[1][1]);for(let g=0;g<c;g++){const p=d+u+g*n,C=f-s+2*Math.random()*s,y=p-s+2*Math.random()*s,x=this.helper.ellipse(C,y,o,o,r);i.push(...x.ops)}}return{type:"fillSketch",ops:i}}}class V${constructor(t){this.helper=t}fillPolygons(t,r){const i=Da(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach(s=>{const a=vc(s),l=Math.floor(a/(i+n)),h=(a+n-l*(i+n))/2;let c=s[0],u=s[1];c[0]>u[0]&&(c=s[1],u=s[0]);const f=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let d=0;d<l;d++){const g=d*(i+n),p=g+i,C=[c[0]+g*Math.cos(f)+h*Math.cos(f),c[1]+g*Math.sin(f)+h*Math.sin(f)],y=[c[0]+p*Math.cos(f)+h*Math.cos(f),c[1]+p*Math.sin(f)+h*Math.sin(f)];o.push(...this.helper.doubleLineOps(C[0],C[1],y[0],y[1],r))}}),o}}class G${constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,o=Da(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(o,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach(o=>{const s=vc(o),a=Math.round(s/(2*r));let l=o[0],h=o[1];l[0]>h[0]&&(l=o[1],h=o[0]);const c=Math.atan((h[1]-l[1])/(h[0]-l[0]));for(let u=0;u<a;u++){const f=2*u*r,d=2*(u+1)*r,g=Math.sqrt(2*Math.pow(r,2)),p=[l[0]+f*Math.cos(c),l[1]+f*Math.sin(c)],C=[l[0]+d*Math.cos(c),l[1]+d*Math.sin(c)],y=[p[0]+g*Math.cos(c+Math.PI/4),p[1]+g*Math.sin(c+Math.PI/4)];n.push(...this.helper.doubleLineOps(p[0],p[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],C[0],C[1],i))}}),n}}const Ie={};class X${constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const Q$=0,Su=1,o0=2,fl={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 Tu(e,t){return e.type===t}function gg(e){const t=[],r=function(s){const a=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:Q$,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:Su,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return a[a.length]={type:o0,text:""},a}(e);let i="BOD",n=0,o=r[n];for(;!Tu(o,o0);){let s=0;const a=[];if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return gg("M0,0"+e);n++,s=fl[o.text],i=o.text}else Tu(o,Su)?s=fl[i]:(n++,s=fl[o.text],i=o.text);if(!(n+s<r.length))throw new Error("Path data ended short");for(let l=n;l<n+s;l++){const h=r[l];if(!Tu(h,Su))throw new Error("Param not a number: "+i+","+h.text);a[a.length]=+h.text}if(typeof fl[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:a};t.push(l),n+=s,o=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function Rv(e){let t=0,r=0,i=0,n=0;const o=[];for(const{key:s,data:a}of e)switch(s){case"M":o.push({key:"M",data:[...a]}),[t,r]=a,[i,n]=a;break;case"m":t+=a[0],r+=a[1],o.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":o.push({key:"L",data:[...a]}),[t,r]=a;break;case"l":t+=a[0],r+=a[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...a]}),t=a[4],r=a[5];break;case"c":{const l=a.map((h,c)=>c%2?h+r:h+t);o.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":o.push({key:"Q",data:[...a]}),t=a[2],r=a[3];break;case"q":{const l=a.map((h,c)=>c%2?h+r:h+t);o.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":o.push({key:"A",data:[...a]}),t=a[5],r=a[6];break;case"a":t+=a[5],r+=a[6],o.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],t,r]});break;case"H":o.push({key:"H",data:[...a]}),t=a[0];break;case"h":t+=a[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...a]}),r=a[0];break;case"v":r+=a[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...a]}),t=a[2],r=a[3];break;case"s":{const l=a.map((h,c)=>c%2?h+r:h+t);o.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":o.push({key:"T",data:[...a]}),t=a[0],r=a[1];break;case"t":t+=a[0],r+=a[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=i,r=n}return o}function Nv(e){const t=[];let r="",i=0,n=0,o=0,s=0,a=0,l=0;for(const{key:h,data:c}of e){switch(h){case"M":t.push({key:"M",data:[...c]}),[i,n]=c,[o,s]=c;break;case"C":t.push({key:"C",data:[...c]}),i=c[4],n=c[5],a=c[2],l=c[3];break;case"L":t.push({key:"L",data:[...c]}),[i,n]=c;break;case"H":i=c[0],t.push({key:"L",data:[i,n]});break;case"V":n=c[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-a),f=n+(n-l)):(u=i,f=n),t.push({key:"C",data:[u,f,...c]}),a=c[0],l=c[1],i=c[2],n=c[3];break}case"T":{const[u,f]=c;let d=0,g=0;r==="Q"||r==="T"?(d=i+(i-a),g=n+(n-l)):(d=i,g=n);const p=i+2*(d-i)/3,C=n+2*(g-n)/3,y=u+2*(d-u)/3,x=f+2*(g-f)/3;t.push({key:"C",data:[p,C,y,x,u,f]}),a=d,l=g,i=u,n=f;break}case"Q":{const[u,f,d,g]=c,p=i+2*(u-i)/3,C=n+2*(f-n)/3,y=d+2*(u-d)/3,x=g+2*(f-g)/3;t.push({key:"C",data:[p,C,y,x,d,g]}),a=u,l=f,i=d,n=g;break}case"A":{const u=Math.abs(c[0]),f=Math.abs(c[1]),d=c[2],g=c[3],p=c[4],C=c[5],y=c[6];u===0||f===0?(t.push({key:"C",data:[i,n,C,y,C,y]}),i=C,n=y):(i!==C||n!==y)&&(zv(i,n,C,y,u,f,d,g,p).forEach(function(x){t.push({key:"C",data:x})}),i=C,n=y);break}case"Z":t.push({key:"Z",data:[]}),i=o,n=s}r=h}return t}function Cs(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function zv(e,t,r,i,n,o,s,a,l,h){const c=(u=s,Math.PI*u/180);var u;let f=[],d=0,g=0,p=0,C=0;if(h)[d,g,p,C]=h;else{[e,t]=Cs(e,t,-c),[r,i]=Cs(r,i,-c);const H=(e-r)/2,D=(t-i)/2;let $=H*H/(n*n)+D*D/(o*o);$>1&&($=Math.sqrt($),n*=$,o*=$);const F=n*n,P=o*o,B=F*P-F*D*D-P*H*H,S=F*D*D+P*H*H,I=(a===l?-1:1)*Math.sqrt(Math.abs(B/S));p=I*n*D/o+(e+r)/2,C=I*-o*H/n+(t+i)/2,d=Math.asin(parseFloat(((t-C)/o).toFixed(9))),g=Math.asin(parseFloat(((i-C)/o).toFixed(9))),e<p&&(d=Math.PI-d),r<p&&(g=Math.PI-g),d<0&&(d=2*Math.PI+d),g<0&&(g=2*Math.PI+g),l&&d>g&&(d-=2*Math.PI),!l&&g>d&&(g-=2*Math.PI)}let y=g-d;if(Math.abs(y)>120*Math.PI/180){const H=g,D=r,$=i;g=l&&g>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=zv(r=p+n*Math.cos(g),i=C+o*Math.sin(g),D,$,n,o,s,0,l,[g,H,p,C])}y=g-d;const x=Math.cos(d),k=Math.sin(d),b=Math.cos(g),w=Math.sin(g),T=Math.tan(y/4),E=4/3*n*T,L=4/3*o*T,W=[e,t],M=[e+E*k,t-L*x],O=[r+E*w,i-L*b],j=[r,i];if(M[0]=2*W[0]-M[0],M[1]=2*W[1]-M[1],h)return[M,O,j].concat(f);{f=[M,O,j].concat(f);const H=[];for(let D=0;D<f.length;D+=3){const $=Cs(f[D][0],f[D][1],c),F=Cs(f[D+1][0],f[D+1][1],c),P=Cs(f[D+2][0],f[D+2][1],c);H.push([$[0],$[1],F[0],F[1],P[0],P[1]])}return H}}const K$={randOffset:function(e,t){return lt(e,t)},randOffsetWithRange:function(e,t,r){return Nh(e,t,r)},ellipse:function(e,t,r,i,n){const o=qv(r,i,n);return ff(e,t,n,o).opset},doubleLineOps:function(e,t,r,i,n){return Yi(e,t,r,i,n,!0)}};function Wv(e,t,r,i,n){return{type:"path",ops:Yi(e,t,r,i,n)}}function zl(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let o=0;o<i-1;o++)n.push(...Yi(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&n.push(...Yi(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?Wv(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function Z$(e,t,r,i,n){return function(o,s){return zl(o,!0,s)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function s0(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=pl(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:pl(r[0],1.5*(1+.22*t.roughness),h0(t));for(let o=1;o<r.length;o++){const s=r[o];if(s.length){const a=pl(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:pl(s,1.5*(1+.22*t.roughness),h0(t));for(const h of a)h.op!=="move"&&i.push(h);for(const h of l)h.op!=="move"&&n.push(h)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function qv(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/n;let s=Math.abs(e/2),a=Math.abs(t/2);const l=1-r.curveFitting;return s+=lt(s*l,r),a+=lt(a*l,r),{increment:o,rx:s,ry:a}}function ff(e,t,r,i){const[n,o]=c0(i.increment,e,t,i.rx,i.ry,1,i.increment*Nh(.1,Nh(.4,1,r),r),r);let s=zh(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[a]=c0(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=zh(a,null,r);s=s.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function a0(e,t,r,i,n,o,s,a,l){const h=e,c=t;let u=Math.abs(r/2),f=Math.abs(i/2);u+=lt(.01*u,l),f+=lt(.01*f,l);let d=n,g=o;for(;d<0;)d+=2*Math.PI,g+=2*Math.PI;g-d>2*Math.PI&&(d=0,g=2*Math.PI);const p=2*Math.PI/l.curveStepCount,C=Math.min(p/2,(g-d)/2),y=u0(C,h,c,u,f,d,g,1,l);if(!l.disableMultiStroke){const x=u0(C,h,c,u,f,d,g,1.5,l);y.push(...x)}return s&&(a?y.push(...Yi(h,c,h+u*Math.cos(d),c+f*Math.sin(d),l),...Yi(h,c,h+u*Math.cos(g),c+f*Math.sin(g),l)):y.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+u*Math.cos(d),c+f*Math.sin(d)]})),{type:"path",ops:y}}function l0(e,t){const r=Nv(Rv(gg(e))),i=[];let n=[0,0],o=[0,0];for(const{key:s,data:a}of r)switch(s){case"M":o=[a[0],a[1]],n=[a[0],a[1]];break;case"L":i.push(...Yi(o[0],o[1],a[0],a[1],t)),o=[a[0],a[1]];break;case"C":{const[l,h,c,u,f,d]=a;i.push(...J$(l,h,c,u,f,d,o,t)),o=[f,d];break}case"Z":i.push(...Yi(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]]}return{type:"path",ops:i}}function _u(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+lt(n,t),i[0][1]+lt(n,t)]});for(let s=1;s<o;s++)r.push({op:"lineTo",data:[i[s][0]+lt(n,t),i[s][1]+lt(n,t)]})}}return{type:"fillPath",ops:r}}function Hn(e,t){return function(r,i){let n=r.fillStyle||"hachure";if(!Ie[n])switch(n){case"zigzag":Ie[n]||(Ie[n]=new j$(i));break;case"cross-hatch":Ie[n]||(Ie[n]=new U$(i));break;case"dots":Ie[n]||(Ie[n]=new Y$(i));break;case"dashed":Ie[n]||(Ie[n]=new V$(i));break;case"zigzag-line":Ie[n]||(Ie[n]=new G$(i));break;default:n="hachure",Ie[n]||(Ie[n]=new pg(i))}return Ie[n]}(t,K$).fillPolygons(e,t)}function h0(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Hv(e){return e.randomizer||(e.randomizer=new X$(e.seed||0)),e.randomizer.next()}function Nh(e,t,r,i=1){return r.roughness*i*(Hv(r)*(t-e)+e)}function lt(e,t,r=1){return Nh(-e,e,t,r)}function Yi(e,t,r,i,n,o=!1){const s=o?n.disableMultiStrokeFill:n.disableMultiStroke,a=pf(e,t,r,i,n,!0,!1);if(s)return a;const l=pf(e,t,r,i,n,!0,!0);return a.concat(l)}function pf(e,t,r,i,n,o,s){const a=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(a);let h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>a&&(c=l/10);const u=c/2,f=.2+.2*Hv(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,g=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=lt(d,n,h),g=lt(g,n,h);const p=[],C=()=>lt(u,n,h),y=()=>lt(c,n,h),x=n.preserveVertices;return s?p.push({op:"move",data:[e+(x?0:C()),t+(x?0:C())]}):p.push({op:"move",data:[e+(x?0:lt(c,n,h)),t+(x?0:lt(c,n,h))]}),s?p.push({op:"bcurveTo",data:[d+e+(r-e)*f+C(),g+t+(i-t)*f+C(),d+e+2*(r-e)*f+C(),g+t+2*(i-t)*f+C(),r+(x?0:C()),i+(x?0:C())]}):p.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),g+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),g+t+2*(i-t)*f+y(),r+(x?0:y()),i+(x?0:y())]}),p}function pl(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+lt(t,r),e[0][1]+lt(t,r)]),i.push([e[0][0]+lt(t,r),e[0][1]+lt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+lt(t,r),e[n][1]+lt(t,r)]),n===e.length-1&&i.push([e[n][0]+lt(t,r),e[n][1]+lt(t,r)]);return zh(i,null,r)}function zh(e,t,r){const i=e.length,n=[];if(i>3){const o=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let a=1;a+2<i;a++){const l=e[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*e[a+1][0]-s*e[a-1][0])/6,l[1]+(s*e[a+1][1]-s*e[a-1][1])/6],o[2]=[e[a+1][0]+(s*e[a][0]-s*e[a+2][0])/6,e[a+1][1]+(s*e[a][1]-s*e[a+2][1])/6],o[3]=[e[a+1][0],e[a+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...pf(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function c0(e,t,r,i,n,o,s,a){const l=[],h=[];if(a.roughness===0){e/=4,h.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let c=0;c<=2*Math.PI;c+=e){const u=[t+i*Math.cos(c),r+n*Math.sin(c)];l.push(u),h.push(u)}h.push([t+i*Math.cos(0),r+n*Math.sin(0)]),h.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const c=lt(.5,a)-Math.PI/2;h.push([lt(o,a)+t+.9*i*Math.cos(c-e),lt(o,a)+r+.9*n*Math.sin(c-e)]);const u=2*Math.PI+c-.01;for(let f=c;f<u;f+=e){const d=[lt(o,a)+t+i*Math.cos(f),lt(o,a)+r+n*Math.sin(f)];l.push(d),h.push(d)}h.push([lt(o,a)+t+i*Math.cos(c+2*Math.PI+.5*s),lt(o,a)+r+n*Math.sin(c+2*Math.PI+.5*s)]),h.push([lt(o,a)+t+.98*i*Math.cos(c+s),lt(o,a)+r+.98*n*Math.sin(c+s)]),h.push([lt(o,a)+t+.9*i*Math.cos(c+.5*s),lt(o,a)+r+.9*n*Math.sin(c+.5*s)])}return[h,l]}function u0(e,t,r,i,n,o,s,a,l){const h=o+lt(.1,l),c=[];c.push([lt(a,l)+t+.9*i*Math.cos(h-e),lt(a,l)+r+.9*n*Math.sin(h-e)]);for(let u=h;u<=s;u+=e)c.push([lt(a,l)+t+i*Math.cos(u),lt(a,l)+r+n*Math.sin(u)]);return c.push([t+i*Math.cos(s),r+n*Math.sin(s)]),c.push([t+i*Math.cos(s),r+n*Math.sin(s)]),zh(c,null,l)}function J$(e,t,r,i,n,o,s,a){const l=[],h=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let c=[0,0];const u=a.disableMultiStroke?1:2,f=a.preserveVertices;for(let d=0;d<u;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:lt(h[0],a)),s[1]+(f?0:lt(h[0],a))]}),c=f?[n,o]:[n+lt(h[d],a),o+lt(h[d],a)],l.push({op:"bcurveTo",data:[e+lt(h[d],a),t+lt(h[d],a),r+lt(h[d],a),i+lt(h[d],a),c[0],c[1]]});return l}function xs(e){return[...e]}function d0(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(xs(e[0]),xs(e[1]),xs(e[2]),xs(e[2]));else{const n=[];n.push(e[0],e[0]);for(let a=1;a<e.length;a++)n.push(e[a]),a===e.length-1&&n.push(e[a]);const o=[],s=1-t;i.push(xs(n[0]));for(let a=1;a+2<n.length;a++){const l=n[a];o[0]=[l[0],l[1]],o[1]=[l[0]+(s*n[a+1][0]-s*n[a-1][0])/6,l[1]+(s*n[a+1][1]-s*n[a-1][1])/6],o[2]=[n[a+1][0]+(s*n[a][0]-s*n[a+2][0])/6,n[a+1][1]+(s*n[a][1]-s*n[a+2][1])/6],o[3]=[n[a+1][0],n[a+1][1]],i.push(o[1],o[2],o[3])}}return i}function Wl(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function t4(e,t,r){const i=Wl(t,r);if(i===0)return Wl(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),Wl(e,an(t,r,n))}function an(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function gf(e,t,r,i){const n=i||[];if(function(a,l){const h=a[l+0],c=a[l+1],u=a[l+2],f=a[l+3];let d=3*c[0]-2*h[0]-f[0];d*=d;let g=3*c[1]-2*h[1]-f[1];g*=g;let p=3*u[0]-2*f[0]-h[0];p*=p;let C=3*u[1]-2*f[1]-h[1];return C*=C,d<p&&(d=p),g<C&&(g=C),d+g}(e,t)<r){const a=e[t+0];n.length?(o=n[n.length-1],s=a,Math.sqrt(Wl(o,s))>1&&n.push(a)):n.push(a),n.push(e[t+3])}else{const l=e[t+0],h=e[t+1],c=e[t+2],u=e[t+3],f=an(l,h,.5),d=an(h,c,.5),g=an(c,u,.5),p=an(f,d,.5),C=an(d,g,.5),y=an(p,C,.5);gf([l,f,p,y],0,r,n),gf([y,C,g,u],0,r,n)}var o,s;return n}function e4(e,t){return Wh(e,0,e.length,t)}function Wh(e,t,r,i,n){const o=n||[],s=e[t],a=e[r-1];let l=0,h=1;for(let c=t+1;c<r-1;++c){const u=t4(e[c],s,a);u>l&&(l=u,h=c)}return Math.sqrt(l)>i?(Wh(e,t,h+1,i,o),Wh(e,h,r,i,o)):(o.length||o.push(s),o.push(a)),o}function Bu(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let o=0;o<n;o++)gf(e,3*o,t,i);return r&&r>0?Wh(i,0,i.length,r):i}const Ye="none";class qh{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,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,o){const s=this._o(o);return this._d("line",[Wv(t,r,i,n,s)],s)}rectangle(t,r,i,n,o){const s=this._o(o),a=[],l=Z$(t,r,i,n,s);if(s.fill){const h=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];s.fillStyle==="solid"?a.push(_u([h],s)):a.push(Hn([h],s))}return s.stroke!==Ye&&a.push(l),this._d("rectangle",a,s)}ellipse(t,r,i,n,o){const s=this._o(o),a=[],l=qv(i,n,s),h=ff(t,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const c=ff(t,r,s,l).opset;c.type="fillPath",a.push(c)}else a.push(Hn([h.estimatedPoints],s));return s.stroke!==Ye&&a.push(h.opset),this._d("ellipse",a,s)}circle(t,r,i,n){const o=this.ellipse(t,r,i,i,n);return o.shape="circle",o}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[zl(t,!1,i)],i)}arc(t,r,i,n,o,s,a=!1,l){const h=this._o(l),c=[],u=a0(t,r,i,n,o,s,a,!0,h);if(a&&h.fill)if(h.fillStyle==="solid"){const f=Object.assign({},h);f.disableMultiStroke=!0;const d=a0(t,r,i,n,o,s,!0,!1,f);d.type="fillPath",c.push(d)}else c.push(function(f,d,g,p,C,y,x){const k=f,b=d;let w=Math.abs(g/2),T=Math.abs(p/2);w+=lt(.01*w,x),T+=lt(.01*T,x);let E=C,L=y;for(;E<0;)E+=2*Math.PI,L+=2*Math.PI;L-E>2*Math.PI&&(E=0,L=2*Math.PI);const W=(L-E)/x.curveStepCount,M=[];for(let O=E;O<=L;O+=W)M.push([k+w*Math.cos(O),b+T*Math.sin(O)]);return M.push([k+w*Math.cos(L),b+T*Math.sin(L)]),M.push([k,b]),Hn([M],x)}(t,r,i,n,o,s,h));return h.stroke!==Ye&&c.push(u),this._d("arc",c,h)}curve(t,r){const i=this._o(r),n=[],o=s0(t,i);if(i.fill&&i.fill!==Ye)if(i.fillStyle==="solid"){const s=s0(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],a=t;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const h of l)h.length<3?s.push(...h):h.length===3?s.push(...Bu(d0([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):s.push(...Bu(d0(h),10,(1+i.roughness)/2))}s.length&&n.push(Hn([s],i))}return i.stroke!==Ye&&n.push(o),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],o=zl(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(_u([t],i)):n.push(Hn([t],i))),i.stroke!==Ye&&n.push(o),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=i.fill&&i.fill!=="transparent"&&i.fill!==Ye,s=i.stroke!==Ye,a=!!(i.simplification&&i.simplification<1),l=function(c,u,f){const d=Nv(Rv(gg(c))),g=[];let p=[],C=[0,0],y=[];const x=()=>{y.length>=4&&p.push(...Bu(y,u)),y=[]},k=()=>{x(),p.length&&(g.push(p),p=[])};for(const{key:w,data:T}of d)switch(w){case"M":k(),C=[T[0],T[1]],p.push(C);break;case"L":x(),p.push([T[0],T[1]]);break;case"C":if(!y.length){const E=p.length?p[p.length-1]:C;y.push([E[0],E[1]])}y.push([T[0],T[1]]),y.push([T[2],T[3]]),y.push([T[4],T[5]]);break;case"Z":x(),p.push([C[0],C[1]])}if(k(),!f)return g;const b=[];for(const w of g){const T=e4(w,f);T.length&&b.push(T)}return b}(t,1,a?4-4*(i.simplification||1):(1+i.roughness)/2),h=l0(t,i);if(o)if(i.fillStyle==="solid")if(l.length===1){const c=l0(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else n.push(_u(l,i));else n.push(Hn(l,i));return s&&(a?l.forEach(c=>{n.push(zl(c,!1,i))}):n.push(h)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const o=typeof r=="number"&&r>=0?n.data.map(s=>+s.toFixed(r)):n.data;switch(n.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const o of r){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Ye};break;case"fillPath":s={d:this.opsToPath(o),stroke:Ye,strokeWidth:0,fill:i.fill||Ye};break;case"fillSketch":s=this.fillSketch(o,i)}s&&n.push(s)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Ye,strokeWidth:i,fill:Ye}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class r4{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new qh(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,s,o),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const a=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,o,a),n.restore();break}case"fillSketch":this.fillSketch(n,s,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const o of r.ops){const s=typeof i=="number"&&i>=0?o.data.map(a=>+a.toFixed(i)):o.data;switch(o.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,o){const s=this.gen.line(t,r,i,n,o);return this.draw(s),s}rectangle(t,r,i,n,o){const s=this.gen.rectangle(t,r,i,n,o);return this.draw(s),s}ellipse(t,r,i,n,o){const s=this.gen.ellipse(t,r,i,n,o);return this.draw(s),s}circle(t,r,i,n){const o=this.gen.circle(t,r,i,n);return this.draw(o),o}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,o,s,a=!1,l){const h=this.gen.arc(t,r,i,n,o,s,a,l);return this.draw(h),h}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const gl="http://www.w3.org/2000/svg";class i4{constructor(t,r){this.svg=t,this.gen=new qh(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,o=n.createElementNS(gl,"g"),s=t.options.fixedDecimalPlaceDigits;for(const a of r){let l=null;switch(a.type){case"path":l=n.createElementNS(gl,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS(gl,"path"),l.setAttribute("d",this.opsToPath(a,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,a,i)}l&&o.appendChild(l)}return o}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const o=t.createElementNS(gl,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",n+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,o){const s=this.gen.line(t,r,i,n,o);return this.draw(s)}rectangle(t,r,i,n,o){const s=this.gen.rectangle(t,r,i,n,o);return this.draw(s)}ellipse(t,r,i,n,o){const s=this.gen.ellipse(t,r,i,n,o);return this.draw(s)}circle(t,r,i,n){const o=this.gen.circle(t,r,i,n);return this.draw(o)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,o,s,a=!1,l){const h=this.gen.arc(t,r,i,n,o,s,a,l);return this.draw(h)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var Z={canvas:(e,t)=>new r4(e,t),svg:(e,t)=>new i4(e,t),generator:e=>new qh(e),newSeed:()=>qh.newSeed()},at=m(async(e,t,r)=>{var d,g;let i;const n=t.useHtmlLabels||gi((d=St())==null?void 0:d.htmlLabels);r?i=r:i="node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=o.insert("g").attr("class","label").attr("style",le(t.labelStyle));let a;t.label===void 0?a="":a=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,h=t.labelType==="markdown",c=await mi(s,Lr(Ln(a),St()),{useHtmlLabels:n,width:t.width||((g=St().flowchart)==null?void 0:g.wrappingWidth),classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:h},St());let u=c.getBBox();const f=((t==null?void 0:t.padding)??0)/2;if(n){const p=c.children[0],C=Ct(c);await hv(p,a),u=p.getBoundingClientRect(),C.attr("width",u.width),C.attr("height",u.height)}return n?s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):s.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:o,bbox:u,halfPadding:f,label:s}},"labelHelper"),Lu=m(async(e,t,r)=>{var l,h;const i=r.useHtmlLabels??Me(St()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await mi(n,Lr(Ln(t),St()),{useHtmlLabels:i,width:r.width||((h=(l=St())==null?void 0:l.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=o.getBBox();const a=r.padding/2;if(Me(St())){const c=o.children[0],u=Ct(o);s=c.getBoundingClientRect(),u.attr("width",s.width),u.attr("height",s.height)}return i?n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):n.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:a,label:n}},"insertLabel"),et=m((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),st=m((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function bt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}m(bt,"createPathFromPoints");function Vi(e,t,r,i,n,o){const s=[],l=r-e,h=i-t,c=l/o,u=2*Math.PI/c,f=t+h/2;for(let d=0;d<=50;d++){const g=d/50,p=e+g*l,C=f+n*Math.sin(u*(p-e));s.push({x:p,y:C})}return s}m(Vi,"generateFullSineWavePoints");function va(e,t,r,i,n,o){const s=[],a=n*Math.PI/180,c=(o*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}m(va,"generateCirclePoints");function mf(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const n=t.find(l=>l.getAttribute("fill")!=="none"),o=t.find(l=>l.getAttribute("stroke")!=="none"),s=m((l,h)=>(l==null?void 0:l.getAttribute(h))??void 0,"getAttr");if(n){const l={fill:s(n,"fill"),"fill-opacity":s(n,"fill-opacity")??"1"};Object.entries(l).forEach(([h,c])=>{c&&r.setAttribute(h,c)})}if(o){const l={stroke:s(o,"stroke"),"stroke-width":s(o,"stroke-width")??"1","stroke-opacity":s(o,"stroke-opacity")??"1"};Object.entries(l).forEach(([h,c])=>{c&&r.setAttribute(h,c)})}const a=document.createElementNS("http://www.w3.org/2000/svg","g");return a.appendChild(r),a}m(mf,"mergePaths");var n4=m((e,t)=>{var r=e.x,i=e.y,n=t.x-r,o=t.y-i,s=e.width/2,a=e.height/2,l,h;return Math.abs(o)*s>Math.abs(n)*a?(o<0&&(a=-a),l=o===0?0:a*n/o,h=a):(n<0&&(s=-s),l=s,h=n===0?0:s*o/n),{x:r+l,y:i+h}},"intersectRect"),Zo=n4,o4=m(async(e,t,r,i=!1,n=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);const s=St(),a=Me(s);return await mi(e,o,{style:r,isTitle:i,useHtmlLabels:a,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Fi=o4,Ki=m((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),jv=m(async(e,t)=>{q.info("Creating subgraph rect for ",t.id,t);const r=St(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:o,clusterBorder:s}=i,{labelStyles:a,nodeStyles:l,borderStyles:h,backgroundStyles:c}=tt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=Me(r),d=u.insert("g").attr("class","cluster-label ");let g;t.labelType==="markdown"?g=await mi(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}):g=await Fi(d,t.label,t.labelStyle||"",!1,!0);let p=g.getBBox();if(Me(r)){const E=g.children[0],L=Ct(g);p=E.getBoundingClientRect(),L.attr("width",p.width),L.attr("height",p.height)}const C=t.width<=p.width+t.padding?p.width+t.padding:t.width;t.width<=p.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,x=t.x-C/2,k=t.y-y/2;q.trace("Data ",t,JSON.stringify(t));let b;if(t.look==="handDrawn"){const E=Z.svg(u),L=J(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:n}),W=E.path(Ki(x,k,C,y,0),L);b=u.insert(()=>(q.debug("Rough node insert CXC",W),W),":first-child"),b.select("path:nth-child(2)").attr("style",h.join(";")),b.select("path").attr("style",c.join(";").replace("fill","stroke"))}else b=u.insert("rect",":first-child"),b.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",x).attr("y",k).attr("width",C).attr("height",y);const{subGraphTitleTopMargin:w}=ig(r);if(d.attr("transform",`translate(${t.x-p.width/2}, ${t.y-t.height/2+w})`),a){const E=d.select("span");E&&E.attr("style",a)}const T=b.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=p.height-t.padding/2,t.intersect=function(E){return Zo(t,E)},{cluster:u,labelBBox:p}},"rect"),s4=m((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),n=0*t.padding,o=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(a){return Zo(t,a)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),a4=m(async(e,t)=>{const r=St(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:o,compositeBackground:s,compositeTitleBackground:a,nodeBorder:l}=i,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),c=h.insert("g",":first-child"),u=h.insert("g").attr("class","cluster-label");let f=h.append("rect");const d=await Fi(u,t.label,t.labelStyle,void 0,!0);let g=d.getBBox();if(Me(r)){const W=d.children[0],M=Ct(d);g=W.getBoundingClientRect(),M.attr("width",g.width),M.attr("height",g.height)}const p=0*t.padding,C=p/2,y=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+p;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height+p,k=t.height+p-g.height-6,b=t.x-y/2,w=t.y-x/2;t.width=y;const T=t.y-t.height/2-C+g.height+2;let E;if(t.look==="handDrawn"){const W=t.cssClasses.includes("statediagram-cluster-alt"),M=Z.svg(h),O=t.rx||t.ry?M.path(Ki(b,w,y,x,10),{roughness:.7,fill:a,fillStyle:"solid",stroke:l,seed:n}):M.rectangle(b,w,y,x,{seed:n});E=h.insert(()=>O,":first-child");const j=M.rectangle(b,T,y,k,{fill:W?o:s,fillStyle:W?"hachure":"solid",stroke:l,seed:n});E=h.insert(()=>O,":first-child"),f=h.insert(()=>j)}else E=c.insert("rect",":first-child"),E.attr("class","outer").attr("x",b).attr("y",w).attr("width",y).attr("height",x).attr("data-look",t.look),f.attr("class","inner").attr("x",b).attr("y",T).attr("width",y).attr("height",k);u.attr("transform",`translate(${t.x-g.width/2}, ${w+1-(Me(r)?0:3)})`);const L=E.node().getBBox();return t.height=L.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(W){return Zo(t,W)},{cluster:h,labelBBox:g}},"roundedWithTitle"),l4=m(async(e,t)=>{q.info("Creating subgraph rect for ",t.id,t);const r=St(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:o,clusterBorder:s}=i,{labelStyles:a,nodeStyles:l,borderStyles:h,backgroundStyles:c}=tt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=Me(r),d=u.insert("g").attr("class","cluster-label "),g=await mi(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let p=g.getBBox();if(Me(r)){const E=g.children[0],L=Ct(g);p=E.getBoundingClientRect(),L.attr("width",p.width),L.attr("height",p.height)}const C=t.width<=p.width+t.padding?p.width+t.padding:t.width;t.width<=p.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,x=t.x-C/2,k=t.y-y/2;q.trace("Data ",t,JSON.stringify(t));let b;if(t.look==="handDrawn"){const E=Z.svg(u),L=J(t,{roughness:.7,fill:o,stroke:s,fillWeight:4,seed:n}),W=E.path(Ki(x,k,C,y,t.rx),L);b=u.insert(()=>(q.debug("Rough node insert CXC",W),W),":first-child"),b.select("path:nth-child(2)").attr("style",h.join(";")),b.select("path").attr("style",c.join(";").replace("fill","stroke"))}else b=u.insert("rect",":first-child"),b.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",x).attr("y",k).attr("width",C).attr("height",y);const{subGraphTitleTopMargin:w}=ig(r);if(d.attr("transform",`translate(${t.x-p.width/2}, ${t.y-t.height/2+w})`),a){const E=d.select("span");E&&E.attr("style",a)}const T=b.node().getBBox();return t.offsetX=0,t.width=T.width,t.height=T.height,t.offsetY=p.height-t.padding/2,t.intersect=function(E){return Zo(t,E)},{cluster:u,labelBBox:p}},"kanbanSection"),h4=m((e,t)=>{const r=St(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:o}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),a=s.insert("g",":first-child"),l=0*t.padding,h=t.width+l;t.diff=-t.padding;const c=t.height+l,u=t.x-h/2,f=t.y-c/2;t.width=h;let d;if(t.look==="handDrawn"){const C=Z.svg(s).rectangle(u,f,h,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:n});d=s.insert(()=>C,":first-child")}else{d=a.insert("rect",":first-child");let p="outer";t.look,p="divider",d.attr("class",p).attr("x",u).attr("y",f).attr("width",h).attr("height",c).attr("data-look",t.look)}const g=d.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(p){return Zo(t,p)},{cluster:s,labelBBox:{}}},"divider"),c4=jv,u4={rect:jv,squareRect:c4,roundedWithTitle:a4,noteGroup:s4,divider:h4,kanbanSection:l4},Uv=new Map,d4=m(async(e,t)=>{const r=t.shape||"rect",i=await u4[r](e,t);return Uv.set(t.id,i),i},"insertCluster"),lR=m(()=>{Uv=new Map},"clear");function Yv(e,t){return e.intersect(t)}m(Yv,"intersectNode");var f4=Yv;function Vv(e,t,r,i){var n=e.x,o=e.y,s=n-i.x,a=o-i.y,l=Math.sqrt(t*t*a*a+r*r*s*s),h=Math.abs(t*r*s/l);i.x<n&&(h=-h);var c=Math.abs(t*r*a/l);return i.y<o&&(c=-c),{x:n+h,y:o+c}}m(Vv,"intersectEllipse");var Gv=Vv;function Xv(e,t,r){return Gv(e,t,t,r)}m(Xv,"intersectCircle");var p4=Xv;function Qv(e,t,r,i){{const n=t.y-e.y,o=e.x-t.x,s=t.x*e.y-e.x*t.y,a=n*r.x+o*r.y+s,l=n*i.x+o*i.y+s,h=1e-6;if(a!==0&&l!==0&&yf(a,l))return;const c=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=c*e.x+u*e.y+f,g=c*t.x+u*t.y+f;if(Math.abs(d)<h&&Math.abs(g)<h&&yf(d,g))return;const p=n*u-c*o;if(p===0)return;const C=Math.abs(p/2);let y=o*f-u*s;const x=y<0?(y-C)/p:(y+C)/p;y=c*s-n*f;const k=y<0?(y-C)/p:(y+C)/p;return{x,y:k}}}m(Qv,"intersectLine");function yf(e,t){return e*t>0}m(yf,"sameSign");var g4=Qv;function Kv(e,t,r){let i=e.x,n=e.y,o=[],s=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(c){s=Math.min(s,c.x),a=Math.min(a,c.y)}):(s=Math.min(s,t.x),a=Math.min(a,t.y));let l=i-e.width/2-s,h=n-e.height/2-a;for(let c=0;c<t.length;c++){let u=t[c],f=t[c<t.length-1?c+1:0],d=g4(e,r,{x:l+u.x,y:h+u.y},{x:l+f.x,y:h+f.y});d&&o.push(d)}return o.length?(o.length>1&&o.sort(function(c,u){let f=c.x-r.x,d=c.y-r.y,g=Math.sqrt(f*f+d*d),p=u.x-r.x,C=u.y-r.y,y=Math.sqrt(p*p+C*C);return g<y?-1:g===y?0:1}),o[0]):e}m(Kv,"intersectPolygon");var m4=Kv,G={node:f4,circle:p4,ellipse:Gv,polygon:m4,rect:Zo};function Zv(e,t){const{labelStyles:r}=tt(t);t.labelStyle=r;const i=st(t);let n=i;i||(n="anchor");const o=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=1,{cssStyles:a}=t,l=Z.svg(o),h=J(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const c=l.circle(0,0,s*2,h),u=o.insert(()=>c,":first-child");return u.attr("class","anchor").attr("style",le(a)),et(t,u),t.intersect=function(f){return q.info("Circle intersect",t,s,f),G.circle(t,s,f)},o}m(Zv,"anchor");function Cf(e,t,r,i,n,o,s){const l=(e+r)/2,h=(t+i)/2,c=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,g=f/o,p=Math.sqrt(d**2+g**2);if(p>1)throw new Error("The given radii are too small to create an arc between the points.");const C=Math.sqrt(1-p**2),y=l+C*o*Math.sin(c)*(s?-1:1),x=h-C*n*Math.cos(c)*(s?-1:1),k=Math.atan2((t-x)/o,(e-y)/n);let w=Math.atan2((i-x)/o,(r-y)/n)-k;s&&w<0&&(w+=2*Math.PI),!s&&w>0&&(w-=2*Math.PI);const T=[];for(let E=0;E<20;E++){const L=E/19,W=k+L*w,M=y+n*Math.cos(W),O=x+o*Math.sin(W);T.push({x:M,y:O})}return T}m(Cf,"generateArcPoints");function Jv(e,t,r){const[i,n]=[t,r].sort((o,s)=>s-o);return n*(1-Math.sqrt(1-(e/i/2)**2))}m(Jv,"calculateArcSagitta");async function tb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n,a=m(W=>W+s,"calcTotalHeight"),l=m(W=>{const M=W/2;return[M/(2.5+W/50),M]},"calcEllipseRadius"),{shapeSvg:h,bbox:c}=await at(e,t,st(t)),u=a(t!=null&&t.height?t==null?void 0:t.height:c.height),[f,d]=l(u),g=Jv(u,f,d),C=(t!=null&&t.width?t==null?void 0:t.width:c.width)+o*2+g-g,y=u,{cssStyles:x}=t,k=[{x:C/2,y:-y/2},{x:-C/2,y:-y/2},...Cf(-C/2,-y/2,-C/2,y/2,f,d,!1),{x:C/2,y:y/2},...Cf(C/2,y/2,C/2,-y/2,f,d,!0)],b=Z.svg(h),w=J(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const T=bt(k),E=b.path(T,w),L=h.insert(()=>E,":first-child");return L.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${f/2}, 0)`),et(t,L),t.intersect=function(W){return G.polygon(t,k,W)},h}m(tb,"bowTieRect");function yi(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}m(yi,"insertPolygonShape");var ml=12;async function eb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?28:n,s=t.look==="neo"?24:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?o*2:o+ml),c=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?s*2:s),u=0,f=h,d=-c,g=0,p=[{x:u+ml,y:d},{x:f,y:d},{x:f,y:g},{x:u,y:g},{x:u,y:d+ml},{x:u+ml,y:d}];let C;const{cssStyles:y}=t;if(t.look==="handDrawn"){const x=Z.svg(a),k=J(t,{}),b=bt(p),w=x.path(b,k);C=a.insert(()=>w,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),y&&C.attr("style",y)}else C=yi(a,h,c,p);return i&&C.attr("style",i),et(t,C),t.intersect=function(x){return G.polygon(t,p,x)},a}m(eb,"card");function rb(e,t){const{nodeStyles:r}=tt(t);t.label="";const i=e.insert("g").attr("class",st(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,o=Math.max(28,t.width??0),s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],a=Z.svg(i),l=J(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=bt(s),c=a.path(h,l),u=i.insert(()=>c,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return G.polygon(t,s,f)},i}m(rb,"choice");async function mg(e,t,r){const{labelStyles:i,nodeStyles:n}=tt(t);t.labelStyle=i;const{shapeSvg:o,bbox:s,halfPadding:a}=await at(e,t,st(t)),l=16,h=(r==null?void 0:r.padding)??a,c=t.look==="neo"?s.width/2+l*2:s.width/2+h;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=Z.svg(o),g=J(t,{}),p=d.circle(0,0,c*2,g);u=o.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",le(f))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0);return et(t,u),t.calcIntersect=function(d,g){const p=d.width/2;return G.circle(d,p,g)},t.intersect=function(d){return q.info("Circle intersect",t,c,d),G.circle(t,c,d)},o}m(mg,"circle");function ib(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},o={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},a={x:i/2*t,y:-(i/2)*r};return`M ${o.x},${o.y} L ${a.x},${a.y}
|
|
270
|
+
M ${n.x},${n.y} L ${s.x},${s.y}`}m(ib,"createLine");function nb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",st(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,a=Z.svg(n),l=J(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=a.circle(0,0,o*2,l),c=ib(o),u=a.path(c,l),f=n.insert(()=>h,":first-child");return f.insert(()=>u),f.attr("class","outer-path"),s&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),et(t,f),t.intersect=function(d){return q.info("crossedCircle intersect",t,{radius:o,point:d}),G.circle(t,o,d)},n}m(nb,"crossedCircle");function Jr(e,t,r,i=100,n=0,o=180){const s=[],a=n*Math.PI/180,c=(o*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}m(Jr,"generateCirclePoints");async function ob(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await at(e,t,st(t)),a=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,h=o.width+a,c=o.height+l,u=Math.max(5,c*.1),{cssStyles:f}=t,d=[...Jr(h/2,-c/2,u,30,-90,0),{x:-h/2-u,y:u},...Jr(h/2+u*2,-u,u,20,-180,-270),...Jr(h/2+u*2,u,u,20,-90,-180),{x:-h/2-u,y:-c/2},...Jr(h/2,c/2,u,20,0,90)],g=[{x:h/2,y:-c/2-u},{x:-h/2,y:-c/2-u},...Jr(h/2,-c/2,u,20,-90,0),{x:-h/2-u,y:-u},...Jr(h/2+h*.1,-u,u,20,-180,-270),...Jr(h/2+h*.1,u,u,20,-90,-180),{x:-h/2-u,y:c/2},...Jr(h/2,c/2,u,20,0,90),{x:-h/2,y:c/2+u},{x:h/2,y:c/2+u}],p=Z.svg(n),C=J(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=bt(d).replace("Z",""),k=p.path(x,C),b=bt(g),w=p.path(b,{...C}),T=n.insert("g",":first-child");return T.insert(()=>w,":first-child").attr("stroke-opacity",0),T.insert(()=>k,":first-child"),T.attr("class","text"),f&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${u}, 0)`),s.attr("transform",`translate(${-h/2+u-(o.x-(o.left??0))},${-c/2+(t.padding??0)/2-(o.y-(o.top??0))})`),et(t,T),t.intersect=function(E){return G.polygon(t,g,E)},n}m(ob,"curlyBraceLeft");function ti(e,t,r,i=100,n=0,o=180){const s=[],a=n*Math.PI/180,c=(o*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:d,y:g})}return s}m(ti,"generateCirclePoints");async function sb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await at(e,t,st(t)),a=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,h=o.width+(t.look==="neo"?a*2:a),c=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,c*.1),{cssStyles:f}=t,d=[...ti(h/2,-c/2,u,20,-90,0),{x:h/2+u,y:-u},...ti(h/2+u*2,-u,u,20,-180,-270),...ti(h/2+u*2,u,u,20,-90,-180),{x:h/2+u,y:c/2},...ti(h/2,c/2,u,20,0,90)],g=[{x:-h/2,y:-c/2-u},{x:h/2,y:-c/2-u},...ti(h/2,-c/2,u,20,-90,0),{x:h/2+u,y:-u},...ti(h/2+u*2,-u,u,20,-180,-270),...ti(h/2+u*2,u,u,20,-90,-180),{x:h/2+u,y:c/2},...ti(h/2,c/2,u,20,0,90),{x:h/2,y:c/2+u},{x:-h/2,y:c/2+u}],p=Z.svg(n),C=J(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=bt(d).replace("Z",""),k=p.path(x,C),b=bt(g),w=p.path(b,{...C}),T=n.insert("g",":first-child");return T.insert(()=>w,":first-child").attr("stroke-opacity",0),T.insert(()=>k,":first-child"),T.attr("class","text"),f&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${-u}, 0)`),s.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-c/2+(t.padding??0)/2-(o.y-(o.top??0))})`),et(t,T),t.intersect=function(E){return G.polygon(t,g,E)},n}m(sb,"curlyBraceRight");function ce(e,t,r,i=100,n=0,o=180){const s=[],a=n*Math.PI/180,c=(o*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),g=t+r*Math.sin(f);s.push({x:-d,y:-g})}return s}m(ce,"generateCirclePoints");async function ab(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await at(e,t,st(t)),a=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,h=o.width+(t.look==="neo"?a*2:a),c=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,c*.1),{cssStyles:f}=t,d=[...ce(h/2,-c/2,u,30,-90,0),{x:-h/2-u,y:u},...ce(h/2+u*2,-u,u,20,-180,-270),...ce(h/2+u*2,u,u,20,-90,-180),{x:-h/2-u,y:-c/2},...ce(h/2,c/2,u,20,0,90)],g=[...ce(-h/2+u+u/2,-c/2,u,20,-90,-180),{x:h/2-u/2,y:u},...ce(-h/2-u/2,-u,u,20,0,90),...ce(-h/2-u/2,u,u,20,-90,0),{x:h/2-u/2,y:-u},...ce(-h/2+u+u/2,c/2,u,30,-180,-270)],p=[{x:h/2,y:-c/2-u},{x:-h/2,y:-c/2-u},...ce(h/2,-c/2,u,20,-90,0),{x:-h/2-u,y:-u},...ce(h/2+u*2,-u,u,20,-180,-270),...ce(h/2+u*2,u,u,20,-90,-180),{x:-h/2-u,y:c/2},...ce(h/2,c/2,u,20,0,90),{x:-h/2,y:c/2+u},{x:h/2-u-u/2,y:c/2+u},...ce(-h/2+u+u/2,-c/2,u,20,-90,-180),{x:h/2-u/2,y:u},...ce(-h/2-u/2,-u,u,20,0,90),...ce(-h/2-u/2,u,u,20,-90,0),{x:h/2-u/2,y:-u},...ce(-h/2+u+u/2,c/2,u,30,-180,-270)],C=Z.svg(n),y=J(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const k=bt(d).replace("Z",""),b=C.path(k,y),T=bt(g).replace("Z",""),E=C.path(T,y),L=bt(p),W=C.path(L,{...y}),M=n.insert("g",":first-child");return M.insert(()=>W,":first-child").attr("stroke-opacity",0),M.insert(()=>b,":first-child"),M.insert(()=>E,":first-child"),M.attr("class","text"),f&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${u-u/4}, 0)`),s.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-c/2+(t.padding??0)/2-(o.y-(o.top??0))})`),et(t,M),t.intersect=function(O){return G.polygon(t,p,O)},n}m(ab,"curlyBraces");async function lb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n,a=20,l=5,{shapeSvg:h,bbox:c}=await at(e,t,st(t)),u=Math.max(a,(c.width+o*2)*1.25,(t==null?void 0:t.width)??0),f=Math.max(l,c.height+s*2,(t==null?void 0:t.height)??0),d=f/2,{cssStyles:g}=t,p=Z.svg(h),C=J(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const y=u,x=f,k=y-d,b=x/4,w=[{x:k,y:0},{x:b,y:0},{x:0,y:x/2},{x:b,y:x},{x:k,y:x},...va(-k,-x/2,d,50,270,90)],T=bt(w),E=p.path(T,C),L=h.insert(()=>E,":first-child");return L.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&L.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&L.selectChildren("path").attr("style",i),L.attr("transform",`translate(${-u/2}, ${-f/2})`),et(t,L),t.intersect=function(W){return G.polygon(t,w,W)},h}m(lb,"curvedTrapezoid");var y4=m((e,t,r,i,n,o)=>[`M${e},${t+o}`,`a${n},${o} 0,0,0 ${r},0`,`a${n},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),C4=m((e,t,r,i,n,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${n},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),x4=m((e,t,r,i,n,o)=>[`M${e-r/2},${-i/2}`,`a${n},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),f0=8,p0=8;async function hb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?24:n,s=t.look==="neo"?24:n;if(t.width||t.height){const C=t.width??0;t.width=(t.width??0)-s,t.width<p0&&(t.width=p0);const x=C/2/(2.5+C/50);t.height=(t.height??0)-o-x*3,t.height<f0&&(t.height=f0)}const{shapeSvg:a,bbox:l,label:h}=await at(e,t,st(t)),c=(t.width?t.width:l.width)+s,u=c/2,f=u/(2.5+c/50),d=(t.height?t.height:l.height)+o+f;let g;const{cssStyles:p}=t;if(t.look==="handDrawn"){const C=Z.svg(a),y=C4(0,0,c,d,u,f),x=x4(0,f,c,d,u,f),k=J(t,{}),b=C.path(y,k),w=C.path(x,J(t,{fill:"none"}));g=a.insert(()=>w,":first-child"),g=a.insert(()=>b,":first-child"),g.attr("class","basic label-container"),p&&g.attr("style",p)}else{const C=y4(0,0,c,d,u,f);g=a.insert("path",":first-child").attr("d",C).attr("class","basic label-container outer-path").attr("style",le(p)).attr("style",i)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-c/2}, ${-(d/2+f)})`),et(t,g),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(t.padding??0)/1.5-(l.y-(l.top??0))})`),t.intersect=function(C){const y=G.rect(t,C),x=y.x-(t.x??0);if(u!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-f)){let k=f*f*(1-x*x/(u*u));k>0&&(k=Math.sqrt(k)),k=f-k,C.y-(t.y??0)>0&&(k=-k),y.y+=k}return y},a}m(hb,"cylinder");async function Jo(e,t,r){const{labelStyles:i,nodeStyles:n}=tt(t);t.labelStyle=i;const{shapeSvg:o,bbox:s}=await at(e,t,st(t)),a=Math.max(s.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(s.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),h=-a/2,c=-l/2;let u,{rx:f,ry:d}=t;const{cssStyles:g}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const p=Z.svg(o),C=J(t,{}),y=f||d?p.path(Ki(h,c,a,l,f||0),C):p.rectangle(h,c,a,l,C);u=o.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",le(g))}else u=o.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",le(f)).attr("ry",le(d)).attr("x",h).attr("y",c).attr("width",a).attr("height",l);return et(t,u),t.calcIntersect=function(p,C){return G.rect(p,C)},t.intersect=function(p){return G.rect(t,p)},o}m(Jo,"drawRect");async function cb(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:n,padding:o,width:s,height:a}=t,l={rx:0,ry:0,labelPaddingX:i??(o??0)*2,labelPaddingY:n??o??0},h=await Jo(e,t,l);if(t.look==="handDrawn"){const d=Z.svg(h),g=J(t,{}),p=h.select(".basic.label-container > path:nth-child(2)"),C=p.node();if(!C)return h;let y=null;if(C instanceof SVGGraphicsElement)y=C.getBBox();else return h;return h.insert(()=>d.line(y.x,y.y,y.x+y.width,y.y,g),".basic.label-container g.label"),h.insert(()=>d.line(y.x,y.y+y.height,y.x+y.width,y.y+y.height,g),".basic.label-container g.label"),p.remove(),h}const c=h.select(".basic.label-container"),u=(Number(c.attr("width"))||s)??0,f=(Number(c.attr("height"))||a)??0;return u>0&&f>0&&c.attr("stroke-dasharray",`${u} ${f}`),h}m(cb,"datastore");async function ub(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=a.width+n,c=a.height+o,u=c*.2,f=-h/2,d=-c/2-u/2,{cssStyles:g}=t,p=Z.svg(s),C=J(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const y=[{x:f,y:d+u},{x:-f,y:d+u},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+u}],x=p.polygon(y.map(b=>[b.x,b.y]),C),k=s.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),l.attr("transform",`translate(${f+(t.padding??0)/2-(a.x-(a.left??0))}, ${d+u+(t.padding??0)/2-(a.y-(a.top??0))})`),et(t,k),t.intersect=function(b){return G.rect(t,b)},s}m(ub,"dividedRectangle");async function db(e,t){var d,g;const{labelStyles:r,nodeStyles:i}=tt(t),n=t.look==="neo"?12:5;t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(s??0),c=h-n;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const p=Z.svg(a),C=J(t,{roughness:.2,strokeWidth:2.5}),y=J(t,{roughness:.2,strokeWidth:1.5}),x=p.circle(0,0,h*2,C),k=p.circle(0,0,c*2,y);u=a.insert("g",":first-child"),u.attr("class",le(t.cssClasses)).attr("style",le(f)),(d=u.node())==null||d.appendChild(x),(g=u.node())==null||g.appendChild(k)}else{u=a.insert("g",":first-child");const p=u.insert("circle",":first-child"),C=u.insert("circle");u.attr("class","basic label-container").attr("style",i),p.attr("class","outer-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0),C.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return et(t,u),t.intersect=function(p){return q.info("DoubleCircle intersect",t,h,p),G.circle(t,h,p)},a}m(db,"doublecircle");function fb(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=tt(t);t.label="",t.labelStyle=i;const o=e.insert("g").attr("class",st(t)).attr("id",t.domId??t.id),s=7,{cssStyles:a}=t,l=Z.svg(o),{nodeBorder:h}=r,c=J(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const u=l.circle(0,0,s*2,c),f=o.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${h} !important;`),a&&a.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",a),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),et(t,f),t.intersect=function(d){return q.info("filledCircle intersect",t,{radius:s,point:d}),G.circle(t,s,d)},o}m(fb,"filledCircle");var g0=10,m0=10;async function pb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<g0&&(t.height=g0),t.width=((t==null?void 0:t.width)??0)-o-o/2,t.width<m0&&(t.width=m0));const{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=(t!=null&&t.width?t==null?void 0:t.width:a.width)+(o??0),c=t!=null&&t.height?t==null?void 0:t.height:h+a.height,u=c,f=[{x:0,y:-c},{x:u,y:-c},{x:u/2,y:0}],{cssStyles:d}=t,g=Z.svg(s),p=J(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const C=bt(f),y=g.path(C,p),x=s.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");return d&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),t.width=h,t.height=c,et(t,x),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-c/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(k){return q.info("Triangle intersect",t,f,k),G.polygon(t,f,k)},s}m(pb,"flippedTriangle");function gb(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:o}=tt(t);t.label="";const s=e.insert("g").attr("class",st(t)).attr("id",t.domId??t.id),{cssStyles:a}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),h=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),h=Math.max(70,(t==null?void 0:t.height)??0));const c=-1*l/2,u=-1*h/2,f=Z.svg(s),d=J(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const g=f.rectangle(c,u,l,h,d),p=s.insert(()=>g,":first-child");a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),et(t,p);const C=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=C/2||0,t.height+=C/2||0),t.intersect=function(y){return G.rect(t,y)},s}m(gb,"forkJoin");async function mb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=15,o=10,s=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-a*2,t.height<o&&(t.height=o),t.width=((t==null?void 0:t.width)??0)-s*2,t.width<n&&(t.width=n));const{shapeSvg:l,bbox:h}=await at(e,t,st(t)),c=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,h.width))+s*2,u=(t!=null&&t.height?t==null?void 0:t.height:Math.max(o,h.height))+a*2,f=u/2,{cssStyles:d}=t,g=Z.svg(l),p=J(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const C=[{x:-c/2,y:-u/2},{x:c/2-f,y:-u/2},...va(-c/2+f,0,f,50,90,270),{x:c/2-f,y:u/2},{x:-c/2,y:u/2}],y=bt(C),x=g.path(y,p),k=l.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),et(t,k),t.intersect=function(b){return q.info("Pill intersect",t,{radius:f,point:b}),G.polygon(t,C,b)},l}m(mb,"halfRoundedRectangle");var k4=m((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function yb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const o=t.padding??0,s=70,a=32,l=t.look==="neo"?s:o,h=t.look==="neo"?a:o;if(t.width||t.height){const k=(t.height??0)/n;t.width=((t==null?void 0:t.width)??0)-2*k-h,t.height=(t.height??0)-l}const{shapeSvg:c,bbox:u}=await at(e,t,st(t)),f=(t!=null&&t.height?t==null?void 0:t.height:u.height)+l,d=f/n,g=(t!=null&&t.width?t==null?void 0:t.width:u.width)+2*d+h,p=[{x:d,y:0},{x:g-d,y:0},{x:g,y:-f/2},{x:g-d,y:-f},{x:d,y:-f},{x:0,y:-f/2}];let C;const{cssStyles:y}=t;if(t.look==="handDrawn"){const x=Z.svg(c),k=J(t,{}),b=k4(0,0,g,f,d),w=x.path(b,k);C=c.insert(()=>w,":first-child").attr("transform",`translate(${-g/2}, ${f/2})`),y&&C.attr("style",y)}else C=yi(c,g,f,p);return i&&C.attr("style",i),t.width=g,t.height=f,et(t,C),t.intersect=function(x){return G.polygon(t,p,x)},c}m(yb,"hexagon");async function Cb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await at(e,t,st(t)),o=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:a}=t,l=Z.svg(n),h=J(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const c=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],u=bt(c),f=l.path(u,h),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container outer-path"),a&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",a),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-o/2}, ${-s/2})`),et(t,d),t.intersect=function(g){return q.info("Pill intersect",t,{points:c}),G.polygon(t,c,g)},n}m(Cb,"hourglass");async function xb(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=tt(t);t.labelStyle=n;const o=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(o,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,label:u}=await at(e,t,"icon-shape default"),f=t.pos==="t",d=a,g=a,{nodeBorder:p}=r,{stylesMap:C}=Ko(t),y=-g/2,x=-d/2,k=t.label?8:0,b=Z.svg(h),w=J(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const T=b.rectangle(y,x,g,d,w),E=Math.max(g,c.width),L=d+c.height+k,W=b.rectangle(-E/2,-L/2,E,L,{...w,fill:"transparent",stroke:"none"}),M=h.insert(()=>T,":first-child"),O=h.insert(()=>W);if(t.icon){const j=h.append("g");j.html(`<g>${await Pa(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const H=j.node().getBBox(),D=H.width,$=H.height,F=H.x,P=H.y;j.attr("transform",`translate(${-D/2-F},${f?c.height/2+k/2-$/2-P:-c.height/2-k/2-$/2-P})`),j.attr("style",`color: ${C.get("stroke")??p};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${f?-L/2:L/2-c.height})`),M.attr("transform",`translate(0,${f?c.height/2+k/2:-c.height/2-k/2})`),et(t,O),t.intersect=function(j){if(q.info("iconSquare intersect",t,j),!t.label)return G.rect(t,j);const H=t.x??0,D=t.y??0,$=t.height??0;let F=[];return f?F=[{x:H-c.width/2,y:D-$/2},{x:H+c.width/2,y:D-$/2},{x:H+c.width/2,y:D-$/2+c.height+k},{x:H+g/2,y:D-$/2+c.height+k},{x:H+g/2,y:D+$/2},{x:H-g/2,y:D+$/2},{x:H-g/2,y:D-$/2+c.height+k},{x:H-c.width/2,y:D-$/2+c.height+k}]:F=[{x:H-g/2,y:D-$/2},{x:H+g/2,y:D-$/2},{x:H+g/2,y:D-$/2+d},{x:H+c.width/2,y:D-$/2+d},{x:H+c.width/2/2,y:D+$/2},{x:H-c.width/2,y:D+$/2},{x:H-c.width/2,y:D-$/2+d},{x:H-g/2,y:D-$/2+d}],G.polygon(t,F,j)},h}m(xb,"icon");async function kb(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=tt(t);t.labelStyle=n;const o=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(o,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,label:u}=await at(e,t,"icon-shape default"),f=20,d=t.label?8:0,g=t.pos==="t",{nodeBorder:p,mainBkg:C}=r,{stylesMap:y}=Ko(t),x=Z.svg(h),k=J(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=y.get("fill");k.stroke=b??C;const w=h.append("g");t.icon&&w.html(`<g>${await Pa(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const T=w.node().getBBox(),E=T.width,L=T.height,W=T.x,M=T.y,O=Math.max(E,L)*Math.SQRT2+f*2,j=x.circle(0,0,O,k),H=Math.max(O,c.width),D=O+c.height+d,$=x.rectangle(-H/2,-D/2,H,D,{...k,fill:"transparent",stroke:"none"}),F=h.insert(()=>j,":first-child"),P=h.insert(()=>$);return w.attr("transform",`translate(${-E/2-W},${g?c.height/2+d/2-L/2-M:-c.height/2-d/2-L/2-M})`),w.attr("style",`color: ${y.get("stroke")??p};`),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${g?-D/2:D/2-c.height})`),F.attr("transform",`translate(0,${g?c.height/2+d/2:-c.height/2-d/2})`),et(t,P),t.intersect=function(B){return q.info("iconSquare intersect",t,B),G.rect(t,B)},h}m(kb,"iconCircle");async function vb(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=tt(t);t.labelStyle=n;const o=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(o,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,halfPadding:u,label:f}=await at(e,t,"icon-shape default"),d=t.pos==="t",g=a+u*2,p=a+u*2,{nodeBorder:C,mainBkg:y}=r,{stylesMap:x}=Ko(t),k=-p/2,b=-g/2,w=t.label?8:0,T=Z.svg(h),E=J(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const L=x.get("fill");E.stroke=L??y;const W=T.path(Ki(k,b,p,g,5),E),M=Math.max(p,c.width),O=g+c.height+w,j=T.rectangle(-M/2,-O/2,M,O,{...E,fill:"transparent",stroke:"none"}),H=h.insert(()=>W,":first-child").attr("class","icon-shape2"),D=h.insert(()=>j);if(t.icon){const $=h.append("g");$.html(`<g>${await Pa(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const F=$.node().getBBox(),P=F.width,B=F.height,S=F.x,I=F.y;$.attr("transform",`translate(${-P/2-S},${d?c.height/2+w/2-B/2-I:-c.height/2-w/2-B/2-I})`),$.attr("style",`color: ${x.get("stroke")??C};`)}return f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${d?-O/2:O/2-c.height})`),H.attr("transform",`translate(0,${d?c.height/2+w/2:-c.height/2-w/2})`),et(t,D),t.intersect=function($){if(q.info("iconSquare intersect",t,$),!t.label)return G.rect(t,$);const F=t.x??0,P=t.y??0,B=t.height??0;let S=[];return d?S=[{x:F-c.width/2,y:P-B/2},{x:F+c.width/2,y:P-B/2},{x:F+c.width/2,y:P-B/2+c.height+w},{x:F+p/2,y:P-B/2+c.height+w},{x:F+p/2,y:P+B/2},{x:F-p/2,y:P+B/2},{x:F-p/2,y:P-B/2+c.height+w},{x:F-c.width/2,y:P-B/2+c.height+w}]:S=[{x:F-p/2,y:P-B/2},{x:F+p/2,y:P-B/2},{x:F+p/2,y:P-B/2+g},{x:F+c.width/2,y:P-B/2+g},{x:F+c.width/2/2,y:P+B/2},{x:F-c.width/2,y:P+B/2},{x:F-c.width/2,y:P-B/2+g},{x:F-p/2,y:P-B/2+g}],G.polygon(t,S,$)},h}m(vb,"iconRounded");async function bb(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=tt(t);t.labelStyle=n;const o=t.assetHeight??48,s=t.assetWidth??48,a=Math.max(o,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,halfPadding:u,label:f}=await at(e,t,"icon-shape default"),d=t.pos==="t",g=a+u*2,p=a+u*2,{nodeBorder:C,mainBkg:y}=r,{stylesMap:x}=Ko(t),k=-p/2,b=-g/2,w=t.label?8:0,T=Z.svg(h),E=J(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const L=x.get("fill");E.stroke=L??y;const W=T.path(Ki(k,b,p,g,.1),E),M=Math.max(p,c.width),O=g+c.height+w,j=T.rectangle(-M/2,-O/2,M,O,{...E,fill:"transparent",stroke:"none"}),H=h.insert(()=>W,":first-child"),D=h.insert(()=>j);if(t.icon){const $=h.append("g");$.html(`<g>${await Pa(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const F=$.node().getBBox(),P=F.width,B=F.height,S=F.x,I=F.y;$.attr("transform",`translate(${-P/2-S},${d?c.height/2+w/2-B/2-I:-c.height/2-w/2-B/2-I})`),$.attr("style",`color: ${x.get("stroke")??C};`)}return f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${d?-O/2:O/2-c.height})`),H.attr("transform",`translate(0,${d?c.height/2+w/2:-c.height/2-w/2})`),et(t,D),t.intersect=function($){if(q.info("iconSquare intersect",t,$),!t.label)return G.rect(t,$);const F=t.x??0,P=t.y??0,B=t.height??0;let S=[];return d?S=[{x:F-c.width/2,y:P-B/2},{x:F+c.width/2,y:P-B/2},{x:F+c.width/2,y:P-B/2+c.height+w},{x:F+p/2,y:P-B/2+c.height+w},{x:F+p/2,y:P+B/2},{x:F-p/2,y:P+B/2},{x:F-p/2,y:P-B/2+c.height+w},{x:F-c.width/2,y:P-B/2+c.height+w}]:S=[{x:F-p/2,y:P-B/2},{x:F+p/2,y:P-B/2},{x:F+p/2,y:P-B/2+g},{x:F+c.width/2,y:P-B/2+g},{x:F+c.width/2/2,y:P+B/2},{x:F-c.width/2,y:P+B/2},{x:F-c.width/2,y:P-B/2+g},{x:F-p/2,y:P-B/2+g}],G.polygon(t,S,$)},h}m(bb,"iconSquare");async function wb(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/o;const{labelStyles:s}=tt(t);t.labelStyle=s;const a=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?a??0:0,(t==null?void 0:t.assetWidth)??n),h=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,c=t.constraint==="on"?h/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(h,a??0);const{shapeSvg:u,bbox:f,label:d}=await at(e,t,"image-shape default"),g=t.pos==="t",p=-h/2,C=-c/2,y=t.label?8:0,x=Z.svg(u),k=J(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const b=x.rectangle(p,C,h,c,k),w=Math.max(h,f.width),T=c+f.height+y,E=x.rectangle(-w/2,-T/2,w,T,{...k,fill:"none",stroke:"none"}),L=u.insert(()=>b,":first-child"),W=u.insert(()=>E);if(t.img){const M=u.append("image");M.attr("href",t.img),M.attr("width",h),M.attr("height",c),M.attr("preserveAspectRatio","none"),M.attr("transform",`translate(${-h/2},${g?T/2-c:-T/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-c/2-f.height/2-y/2:c/2-f.height/2+y/2})`),L.attr("transform",`translate(0,${g?f.height/2+y/2:-f.height/2-y/2})`),et(t,W),t.intersect=function(M){if(q.info("iconSquare intersect",t,M),!t.label)return G.rect(t,M);const O=t.x??0,j=t.y??0,H=t.height??0;let D=[];return g?D=[{x:O-f.width/2,y:j-H/2},{x:O+f.width/2,y:j-H/2},{x:O+f.width/2,y:j-H/2+f.height+y},{x:O+h/2,y:j-H/2+f.height+y},{x:O+h/2,y:j+H/2},{x:O-h/2,y:j+H/2},{x:O-h/2,y:j-H/2+f.height+y},{x:O-f.width/2,y:j-H/2+f.height+y}]:D=[{x:O-h/2,y:j-H/2},{x:O+h/2,y:j-H/2},{x:O+h/2,y:j-H/2+c},{x:O+f.width/2,y:j-H/2+c},{x:O+f.width/2/2,y:j+H/2},{x:O-f.width/2,y:j+H/2},{x:O-f.width/2,y:j-H/2+c},{x:O-h/2,y:j-H/2+c}],G.polygon(t,D,M)},u}m(wb,"imageSquare");async function Sb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=n,s=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=Math.max(l.width+(s??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l.height+(o??0)*2,(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=Z.svg(a),p=J(t,{}),C=bt(u),y=g.path(C,p);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),d&&f.attr("style",d)}else f=yi(a,h,c,u);return i&&f.attr("style",i),t.width=h,t.height=c,et(t,f),t.intersect=function(g){return G.polygon(t,u,g)},a}m(Sb,"inv_trapezoid");async function Tb(e,t){const{shapeSvg:r,bbox:i,label:n}=await at(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),et(t,o),t.intersect=function(l){return G.rect(t,l)},r}m(Tb,"labelRect");async function _b(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=n,s=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=((t==null?void 0:t.height)??l.height)+o,c=((t==null?void 0:t.width)??l.width)+s,u=[{x:0,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:-(3*h)/6,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=Z.svg(a),p=J(t,{}),C=bt(u),y=g.path(C,p);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=yi(a,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,et(t,f),t.intersect=function(g){return G.polygon(t,u,g)},a}m(_b,"lean_left");async function Bb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=n,s=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=((t==null?void 0:t.height)??l.height)+o,c=((t==null?void 0:t.width)??l.width)+s,u=[{x:-3*h/6,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:0,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=Z.svg(a),p=J(t,{}),C=bt(u),y=g.path(C,p);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=yi(a,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,et(t,f),t.intersect=function(g){return G.polygon(t,u,g)},a}m(Bb,"lean_right");function Lb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",st(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,s=Math.max(35,(t==null?void 0:t.width)??0),a=Math.max(35,(t==null?void 0:t.height)??0),l=7,h=[{x:s,y:0},{x:0,y:a+l/2},{x:s-2*l,y:a+l/2},{x:0,y:2*a},{x:s,y:a-l/2},{x:2*l,y:a-l/2}],c=Z.svg(n),u=J(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=bt(h),d=c.path(f,u),g=n.insert(()=>d,":first-child");return g.attr("class","outer-path"),o&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",i),g.attr("transform",`translate(-${s/2},${-a})`),et(t,g),t.intersect=function(p){return q.info("lightningBolt intersect",t,p),G.polygon(t,h,p)},n}m(Lb,"lightningBolt");var v4=m((e,t,r,i,n,o,s)=>[`M${e},${t+o}`,`a${n},${o} 0,0,0 ${r},0`,`a${n},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+s}`,`a${n},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),b4=m((e,t,r,i,n,o,s)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${n},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+s}`,`a${n},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),w4=m((e,t,r,i,n,o)=>[`M${e-r/2},${-i/2}`,`a${n},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),y0=10,C0=10;async function Eb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?24:n;if(t.width||t.height){const y=t.width??0;t.width=(t.width??0)-o,t.width<C0&&(t.width=C0);const k=y/2/(2.5+y/50);t.height=(t.height??0)-s-k*3,t.height<y0&&(t.height=y0)}const{shapeSvg:a,bbox:l,label:h}=await at(e,t,st(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,u=c/2,f=u/(2.5+c/50),d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+f+s*2,g=d*.1;let p;const{cssStyles:C}=t;if(t.look==="handDrawn"){const y=Z.svg(a),x=b4(0,0,c,d,u,f,g),k=w4(0,f,c,d,u,f),b=J(t,{}),w=y.path(x,b),T=y.path(k,b);a.insert(()=>T,":first-child").attr("class","line"),p=a.insert(()=>w,":first-child"),p.attr("class","basic label-container"),C&&p.attr("style",C)}else{const y=v4(0,0,c,d,u,f,g);p=a.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",le(C)).attr("style",i)}return p.attr("label-offset-y",f),p.attr("transform",`translate(${-c/2}, ${-(d/2+f)})`),et(t,p),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),t.intersect=function(y){const x=G.rect(t,y),k=x.x-(t.x??0);if(u!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-f)){let b=f*f*(1-k*k/(u*u));b>0&&(b=Math.sqrt(b)),b=f-b,y.y-(t.y??0)>0&&(b=-b),x.y+=b}return x},a}m(Eb,"linedCylinder");async function Fb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n;if(t.width||t.height){const b=t.width;t.width=(b??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10)}const{shapeSvg:a,bbox:l,label:h}=await at(e,t,st(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(o??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(s??0)*2,f=t.look==="neo"?u/4:u/8,d=u+f,{cssStyles:g}=t,p=Z.svg(a),C=J(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const y=[{x:-c/2-c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:d/2},...Vi(-c/2-c/2*.1,d/2,c/2+c/2*.1,d/2,f,.8),{x:c/2+c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:-d/2},{x:-c/2,y:-d/2},{x:-c/2,y:d/2*1.1},{x:-c/2,y:-d/2}],x=p.polygon(y.map(b=>[b.x,b.y]),C),k=a.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-c/2+(t.padding??0)+c/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-f/2-(l.y-(l.top??0))})`),et(t,k),t.intersect=function(b){return G.polygon(t,y,b)},a}m(Fb,"linedWaveEdgedRect");async function Ab(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n,a=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-2*a,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-2*a,10));const{shapeSvg:l,bbox:h,label:c}=await at(e,t,st(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+o*2+2*a,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+s*2+2*a,d=u-2*a,g=f-2*a,p=-d/2,C=-g/2,{cssStyles:y}=t,x=Z.svg(l),k=J(t,{}),b=[{x:p-a,y:C+a},{x:p-a,y:C+g+a},{x:p+d-a,y:C+g+a},{x:p+d-a,y:C+g},{x:p+d,y:C+g},{x:p+d,y:C+g-a},{x:p+d+a,y:C+g-a},{x:p+d+a,y:C-a},{x:p+a,y:C-a},{x:p+a,y:C},{x:p,y:C},{x:p,y:C+a}],w=[{x:p,y:C+a},{x:p+d-a,y:C+a},{x:p+d-a,y:C+g},{x:p+d,y:C+g},{x:p+d,y:C},{x:p,y:C}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=bt(b);let E=x.path(T,k);const L=bt(w);let W=x.path(L,k);t.look!=="handDrawn"&&(E=mf(E),W=mf(W));const M=l.insert("g",":first-child");return M.insert(()=>E),M.insert(()=>W),M.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(h.width/2)-a-(h.x-(h.left??0))}, ${-(h.height/2)+a-(h.y-(h.top??0))})`),et(t,M),t.intersect=function(O){return G.polygon(t,b,O)},l}m(Ab,"multiRect");async function Mb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await at(e,t,st(t)),a=t.padding??0,l=t.look==="neo"?16:a,h=t.look==="neo"?12:a;let c=!0;(t.width||t.height)&&(c=!1,t.width=((t==null?void 0:t.width)??0)-l*2,t.height=((t==null?void 0:t.height)??0)-h*3);const u=Math.max(o.width,(t==null?void 0:t.width)??0)+l*2,f=Math.max(o.height,(t==null?void 0:t.height)??0)+h*3,d=t.look==="neo"?f/4:f/8,g=f+(c?d/2:-d/2),p=-u/2,C=-g/2,y=10,{cssStyles:x}=t,k=Vi(p-y,C+g+y,p+u-y,C+g+y,d,.8),b=k==null?void 0:k[k.length-1],w=[{x:p-y,y:C+y},{x:p-y,y:C+g+y},...k,{x:p+u-y,y:b.y-y},{x:p+u,y:b.y-y},{x:p+u,y:b.y-2*y},{x:p+u+y,y:b.y-2*y},{x:p+u+y,y:C-y},{x:p+y,y:C-y},{x:p+y,y:C},{x:p,y:C},{x:p,y:C+y}],T=[{x:p,y:C+y},{x:p+u-y,y:C+y},{x:p+u-y,y:b.y-y},{x:p+u,y:b.y-y},{x:p+u,y:C},{x:p,y:C}],E=Z.svg(n),L=J(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const W=bt(w),M=E.path(W,L),O=bt(T),j=E.path(O,L),H=n.insert(()=>M,":first-child");return H.insert(()=>j),H.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",i),H.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-(o.width/2)-y-(o.x-(o.left??0))}, ${-(o.height/2)+y-d/2-(o.y-(o.top??0))})`),et(t,H),t.intersect=function(D){return G.polygon(t,w,D)},n}m(Mb,"multiWaveEdgedRectangle");async function $b(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=tt(t);t.labelStyle=i,t.useHtmlLabels||Me(zt())||(t.centerLabel=!0);const{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-h/2,f=-c/2,{cssStyles:d}=t,g=Z.svg(s),p=J(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const C=g.rectangle(u,f,h,c,p),y=s.insert(()=>C,":first-child");return y.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),d&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),et(t,y),t.intersect=function(x){return G.rect(t,x)},s}m($b,"note");var S4=m((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function Ob(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o}=await at(e,t,st(t)),s=o.width+(t.padding??0),a=o.height+(t.padding??0),l=s+a,h=.5,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=Z.svg(n),g=J(t,{}),p=S4(0,0,l),C=d.path(p,g);u=n.insert(()=>C,":first-child").attr("transform",`translate(${-l/2+h}, ${l/2})`),f&&u.attr("style",f)}else u=yi(n,l,l,c),u.attr("transform",`translate(${-l/2+h}, ${l/2})`);return i&&u.attr("style",i),et(t,u),t.calcIntersect=function(d,g){const p=d.width,C=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],y=G.polygon(d,C,g);return{x:y.x-.5,y:y.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}m(Ob,"question");async function Ib(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?21:n??0,s=t.look==="neo"?12:n??0,{shapeSvg:a,bbox:l,label:h}=await at(e,t,st(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?o*2:o),u=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?s*2:s),f=-c/2,d=-u/2,g=d/2,p=[{x:f+g,y:d},{x:f,y:0},{x:f+g,y:-d},{x:-f,y:-d},{x:-f,y:d}],{cssStyles:C}=t,y=Z.svg(a),x=J(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=bt(p),b=y.path(k,x),w=a.insert(()=>b,":first-child");return w.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${-g/2},0)`),h.attr("transform",`translate(${-g/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),et(t,w),t.intersect=function(T){return G.polygon(t,p,T)},a}m(Ib,"rect_left_inv_arrow");async function Pb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const o=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=o.insert("g"),a=o.insert("g").attr("class","label").attr("style",i),l=t.description,h=t.label,c=await Fi(a,h,t.labelStyle,!0,!0);let u={width:0,height:0};if(Me(St())){const L=c.children[0],W=Ct(c);u=L.getBoundingClientRect(),W.attr("width",u.width),W.attr("height",u.height)}q.info("Text 2",l);const f=l||[],d=c.getBBox(),g=await Fi(a,Array.isArray(f)?f.join("<br/>"):f,t.labelStyle,!0,!0),p=g.children[0],C=Ct(g);u=p.getBoundingClientRect(),C.attr("width",u.width),C.attr("height",u.height);const y=(t.padding||0)/2;Ct(g).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+y+5)+")"),Ct(c).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=a.node().getBBox(),a.attr("transform","translate("+-u.width/2+", "+(-u.height/2-y+3)+")");const x=u.width+(t.padding||0),k=u.height+(t.padding||0),b=-u.width/2-y,w=-u.height/2-y;let T,E;if(t.look==="handDrawn"){const L=Z.svg(o),W=J(t,{}),M=L.path(Ki(b,w,x,k,t.rx||0),W),O=L.line(-u.width/2-y,-u.height/2-y+d.height+y,u.width/2+y,-u.height/2-y+d.height+y,W);E=o.insert(()=>(q.debug("Rough node insert CXC",M),O),":first-child"),T=o.insert(()=>(q.debug("Rough node insert CXC",M),M),":first-child")}else T=s.insert("rect",":first-child"),E=s.insert("line"),T.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-y).attr("y",-u.height/2-y).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),E.attr("class","divider").attr("x1",-u.width/2-y).attr("x2",u.width/2+y).attr("y1",-u.height/2-y+d.height+y).attr("y2",-u.height/2-y+d.height+y);return et(t,T),t.intersect=function(L){return G.rect(t,L)},o}m(Pb,"rectWithTitle");async function Db(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,n={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return Jo(e,t,n)}m(Db,"roundedRect");var rn=8;async function Rb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=((t==null?void 0:t.width)??a.width)+n*2+(t.look==="neo"?rn:rn*2),c=((t==null?void 0:t.height)??a.height)+o*2,u=h-rn,f=c,d=rn-h/2,g=-c/2,{cssStyles:p}=t,C=Z.svg(s),y=J(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const x=[{x:d,y:g},{x:d+u,y:g},{x:d+u,y:g+f},{x:d-rn,y:g+f},{x:d-rn,y:g},{x:d,y:g},{x:d,y:g+f}],k=C.polygon(x.map(w=>[w.x,w.y]),y),b=s.insert(()=>k,":first-child");return b.attr("class","basic label-container outer-path").attr("style",le(p)),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),p&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),l.attr("transform",`translate(${rn/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),et(t,b),t.intersect=function(w){return G.rect(t,w)},s}m(Rb,"shadedProcess");async function Nb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-o*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-s*2,10));const{shapeSvg:a,bbox:l,label:h}=await at(e,t,st(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,u=((t!=null&&t.height?t==null?void 0:t.height:l.height)+s*2)*1.5,f=c,d=u/1.5,g=-f/2,p=-d/2,{cssStyles:C}=t,y=Z.svg(a),x=J(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=[{x:g,y:p},{x:g,y:p+d},{x:g+f,y:p+d},{x:g+f,y:p-d/2}],b=bt(k),w=y.path(b,x),T=a.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",C),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),T.attr("transform",`translate(0, ${d/4})`),h.attr("transform",`translate(${-f/2+(t.padding??0)-(l.x-(l.left??0))}, ${-d/4+(t.padding??0)-(l.y-(l.top??0))})`),et(t,T),t.intersect=function(E){return G.polygon(t,k,E)},a}m(Nb,"slopedRect");async function zb(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,o={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return Jo(e,t,o)}m(zb,"squareRect");async function Wb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?20:n,s=t.look==="neo"?12:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=l.height+(t.look==="neo"?s*2:s),c=l.width+h/4+(t.look==="neo"?o*2:o),u=h/2,{cssStyles:f}=t,d=Z.svg(a),g=J(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const p=[{x:-c/2+u,y:-h/2},{x:c/2-u,y:-h/2},...va(-c/2+u,0,u,50,90,270),{x:c/2-u,y:h/2},...va(c/2-u,0,u,50,270,450)],C=bt(p),y=d.path(C,g),x=a.insert(()=>y,":first-child");return x.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",i),et(t,x),t.intersect=function(k){return G.polygon(t,p,k)},a}m(Wb,"stadium");async function qb(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return Jo(e,t,r)}m(qb,"state");function Hb(e,t,{config:{themeVariables:r}}){var x,k;const{labelStyles:i,nodeStyles:n}=tt(t);t.labelStyle=i;const{cssStyles:o}=t,{lineColor:s,stateBorder:a,nodeBorder:l,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const c=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=Z.svg(c),f=J(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=u.circle(0,0,t.width,{...f,stroke:s,strokeWidth:2}),g=a??l,p=(t.width??0)*5/14,C=u.circle(0,0,p,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>d,":first-child");if(y.insert(()=>C),t.look!=="handDrawn"&&y.attr("class","outer-path"),o&&y.selectAll("path").attr("style",o),n&&y.selectAll("path").attr("style",n),t.width<25&&h&&t.look!=="handDrawn"){const b=((k=(x=e.node())==null?void 0:x.ownerSVGElement)==null?void 0:k.id)??"",w=b?`${b}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${w})`)}return et(t,y),t.intersect=function(b){return G.circle(t,(t.width??0)/2,b)},c}m(Hb,"stateEnd");function jb(e,t,{config:{themeVariables:r}}){var a,l;const{lineColor:i,nodeShadow:n}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s;if(t.look==="handDrawn"){const c=Z.svg(o).circle(0,0,t.width,$M(i));s=o.insert(()=>c),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else s=o.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&n&&t.look!=="handDrawn"){const h=((l=(a=e.node())==null?void 0:a.ownerSVGElement)==null?void 0:l.id)??"",c=h?`${h}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${c})`)}return et(t,s),t.intersect=function(h){return G.circle(t,(t.width??7)/2,h)},o}m(jb,"stateStart");var jn=8;async function Ub(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,o=t.look==="neo"?28:n,s=t.look==="neo"?12:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=((t==null?void 0:t.width)??l.width)+2*jn+o,c=((t==null?void 0:t.height)??l.height)+s,u=h-2*jn,f=c,d=-h/2,g=-c/2,p=[{x:0,y:0},{x:u,y:0},{x:u,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(t.look==="handDrawn"){const C=Z.svg(a),y=J(t,{}),x=C.rectangle(d,g,u+16,f,y),k=C.line(d+jn,g,d+jn,g+f,y),b=C.line(d+jn+u,g,d+jn+u,g+f,y);a.insert(()=>k,":first-child"),a.insert(()=>b,":first-child");const w=a.insert(()=>x,":first-child"),{cssStyles:T}=t;w.attr("class","basic label-container").attr("style",le(T)),et(t,w)}else{const C=yi(a,u,f,p);i&&C.attr("style",i),et(t,C)}return t.intersect=function(C){return G.polygon(t,p,C)},a}m(Ub,"subroutine");var Eu=.2;async function Yb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-s*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-Eu*(t.height+s*2),10));const{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+s*2,c=Eu*h,u=Eu*h,d=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2+c-c,g=h,p=-d/2,C=-g/2,{cssStyles:y}=t,x=Z.svg(a),k=J(t,{}),b=[{x:p-c/2,y:C},{x:p+d+c/2,y:C},{x:p+d+c/2,y:C+g},{x:p-c/2,y:C+g}],w=[{x:p+d-c/2,y:C+g},{x:p+d+c/2,y:C+g},{x:p+d+c/2,y:C+g-u}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=bt(b),E=x.path(T,k),L=bt(w),W=x.path(L,{...k,fillStyle:"solid"}),M=a.insert(()=>W,":first-child");return M.insert(()=>E,":first-child"),M.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),et(t,M),t.intersect=function(O){return G.polygon(t,b,O)},a}m(Yb,"taggedRect");async function Vb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await at(e,t,st(t)),a=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=l/8,c=.2*a,u=.2*l,f=l+h,{cssStyles:d}=t,g=Z.svg(n),p=J(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const C=[{x:-a/2-a/2*.1,y:f/2},...Vi(-a/2-a/2*.1,f/2,a/2+a/2*.1,f/2,h,.8),{x:a/2+a/2*.1,y:-f/2},{x:-a/2-a/2*.1,y:-f/2}],y=-a/2+a/2*.1,x=-f/2-u*.4,k=[{x:y+a-c,y:(x+l)*1.3},{x:y+a,y:x+l-u},{x:y+a,y:(x+l)*.9},...Vi(y+a,(x+l)*1.25,y+a-c,(x+l)*1.3,-l*.02,.5)],b=bt(C),w=g.path(b,p),T=bt(k),E=g.path(T,{...p,fillStyle:"solid"}),L=n.insert(()=>E,":first-child");return L.insert(()=>w,":first-child"),L.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-a/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-h/2-(o.y-(o.top??0))})`),et(t,L),t.intersect=function(W){return G.polygon(t,C,W)},n}m(Vb,"taggedWaveEdgedRectangle");async function Gb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o}=await at(e,t,st(t)),s=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)||0),a=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)||0),l=-s/2,h=-a/2,c=n.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",s).attr("height",a),et(t,c),t.intersect=function(u){return G.rect(t,u)},n}m(Gb,"text");var T4=m((e,t,r,i,n,o)=>`M${e},${t}
|
|
271
|
+
a${n},${o} 0,0,1 0,${-i}
|
|
272
|
+
l${r},0
|
|
273
|
+
a${n},${o} 0,0,1 0,${i}
|
|
274
|
+
M${r},${-i}
|
|
275
|
+
a${n},${o} 0,0,0 0,${i}
|
|
276
|
+
l${-r},0`,"createCylinderPathD"),_4=m((e,t,r,i,n,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${o} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),B4=m((e,t,r,i,n,o)=>[`M${e+r/2},${-i/2}`,`a${n},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),x0=5,k0=10;async function Xb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?12:n/2;if(t.width||t.height){const p=t.height??0;t.height=(t.height??0)-o,t.height<x0&&(t.height=x0);const y=p/2/(2.5+p/50);t.width=(t.width??0)-o-y*3,t.width<k0&&(t.width=k0)}const{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=(t.height?t.height:a.height)+o,c=h/2,u=c/(2.5+h/50),f=(t.width?t.width:a.width)+u+o,{cssStyles:d}=t;let g;if(t.look==="handDrawn"){const p=Z.svg(s),C=_4(0,0,f,h,u,c),y=B4(0,0,f,h,u,c),x=p.path(C,J(t,{})),k=p.path(y,J(t,{fill:"none"}));g=s.insert(()=>k,":first-child"),g=s.insert(()=>x,":first-child"),g.attr("class","basic label-container"),d&&g.attr("style",d)}else{const p=T4(0,0,f,h,u,c);g=s.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",le(d)).attr("style",i),g.attr("class","basic label-container outer-path"),d&&g.selectAll("path").attr("style",d),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",u),g.attr("transform",`translate(${-f/2}, ${h/2} )`),l.attr("transform",`translate(${-(a.width/2)-u-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),et(t,g),t.intersect=function(p){const C=G.rect(t,p),y=C.y-(t.y??0);if(c!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(C.x-(t.x??0))>(t.width??0)/2-u)){let x=u*u*(1-y*y/(c*c));x!=0&&(x=Math.sqrt(Math.abs(x))),x=u-x,p.x-(t.x??0)>0&&(x=-x),C.x+=x}return C},s}m(Xb,"tiltedCylinder");async function Qb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=(t.look==="neo",n),s=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=((t==null?void 0:t.height)??l.height)+o,c=((t==null?void 0:t.width)??l.width)+s,u=[{x:-3*h/6,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:0,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=Z.svg(a),p=J(t,{}),C=bt(u),y=g.path(C,p);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=yi(a,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,et(t,f),t.intersect=function(g){return G.polygon(t,u,g)},a}m(Qb,"trapezoid");async function Kb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n,a=15,l=5;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.height<l&&(t.height=l),t.width=(t.width??0)-o*2,t.width<a&&(t.width=a));const{shapeSvg:h,bbox:c}=await at(e,t,st(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+o*2,f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+s*2,{cssStyles:d}=t,g=Z.svg(h),p=J(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const C=[{x:-u/2*.8,y:-f/2},{x:u/2*.8,y:-f/2},{x:u/2,y:-f/2*.6},{x:u/2,y:f/2},{x:-u/2,y:f/2},{x:-u/2,y:-f/2*.6}],y=bt(C),x=g.path(y,p),k=h.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),et(t,k),t.intersect=function(b){return G.polygon(t,C,b)},h}m(Kb,"trapezoidalPentagon");var v0=10,b0=10;async function Zb(e,t){var b;const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-o)/2,t.width<b0&&(t.width=b0),t.height=(t==null?void 0:t.height)??0,t.height<v0&&(t.height=v0));const{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=gi((b=St().flowchart)==null?void 0:b.htmlLabels),c=(t!=null&&t.width?t==null?void 0:t.width:a.width)+o,u=t!=null&&t.height?t==null?void 0:t.height:c+a.height,f=u,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-u}],{cssStyles:g}=t,p=Z.svg(s),C=J(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const y=bt(d),x=p.path(y,C),k=s.insert(()=>x,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=u,et(t,k),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${u/2-(a.height+(t.padding??0)/(h?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(w){return q.info("Triangle intersect",t,d,w),G.polygon(t,d,w)},s}m(Zb,"triangle");async function Jb(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?12:n;let a=!0;(t.width||t.height)&&(a=!1,t.width=((t==null?void 0:t.width)??0)-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:h,label:c}=await at(e,t,st(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(o??0)*2,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(s??0)*2,d=t.look==="neo"?f/4:f/8,g=f+(a?d:-d),{cssStyles:p}=t,y=14-u,x=y>0?y/2:0,k=Z.svg(l),b=J(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const w=[{x:-u/2-x,y:g/2},...Vi(-u/2-x,g/2,u/2+x,g/2,d,.8),{x:u/2+x,y:-g/2},{x:-u/2-x,y:-g/2}],T=bt(w),E=k.path(T,b),L=l.insert(()=>E,":first-child");return L.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-u/2+(t.padding??0)-(h.x-(h.left??0))},${-f/2+(t.padding??0)-d-(h.y-(h.top??0))})`),et(t,L),t.intersect=function(W){return G.polygon(t,w,W)},l}m(Jb,"waveEdgedRectangle");async function tw(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.padding??0,o=t.look==="neo"?16:n,s=t.look==="neo"?20:n;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const b=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-b*(20/9)),t.width=t.width-o*2}const{shapeSvg:a,bbox:l}=await at(e,t,st(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+s,u=c/8,f=c+u*2,{cssStyles:d}=t,g=Z.svg(a),p=J(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const C=[{x:-h/2,y:f/2},...Vi(-h/2,f/2,h/2,f/2,u,1),{x:h/2,y:-f/2},...Vi(h/2,-f/2,-h/2,-f/2,u,-1)],y=bt(C),x=g.path(y,p),k=a.insert(()=>x,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),et(t,k),t.intersect=function(b){return G.polygon(t,C,b)},a}m(tw,"waveRectangle");var jt=10;async function ew(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-jt,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-jt,10));const{shapeSvg:s,bbox:a,label:l}=await at(e,t,st(t)),h=(t!=null&&t.width?t==null?void 0:t.width:a.width)+n*2+jt,c=(t!=null&&t.height?t==null?void 0:t.height:a.height)+o*2+jt,u=h-jt,f=c-jt,d=-u/2,g=-f/2,{cssStyles:p}=t,C=Z.svg(s),y=J(t,{}),x=[{x:d-jt,y:g-jt},{x:d-jt,y:g+f},{x:d+u,y:g+f},{x:d+u,y:g-jt}],k=`M${d-jt},${g-jt} L${d+u},${g-jt} L${d+u},${g+f} L${d-jt},${g+f} L${d-jt},${g-jt}
|
|
277
|
+
M${d-jt},${g} L${d+u},${g}
|
|
278
|
+
M${d},${g-jt} L${d},${g+f}`;t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=C.path(k,y),w=s.insert(()=>b,":first-child");return w.attr("transform",`translate(${jt/2}, ${jt/2})`),w.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(a.width/2)+jt/2-(a.x-(a.left??0))}, ${-(a.height/2)+jt/2-(a.y-(a.top??0))})`),et(t,w),t.intersect=function(T){return G.polygon(t,x,T)},s}m(ew,"windowPane");var w0=new Set(["redux-color","redux-dark-color"]),L4=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function yg(e,t){var _t,qt,Ue,er;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=zt(),{rowEven:o,rowOdd:s,nodeBorder:a,borderColorArray:l}=n;if(t.look==="handDrawn"){const{themeVariables:nt}=zt(),{background:K}=nt,Et={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${K}`]};await yg(e,Et)}const h=zt();t.useHtmlLabels=h.htmlLabels;let c=((_t=h.er)==null?void 0:_t.diagramPadding)??10,u=((qt=h.er)==null?void 0:qt.entityPadding)??6;const{cssStyles:f}=t,{labelStyles:d,nodeStyles:g}=tt(t);if(r.attributes.length===0&&t.label){const nt={rx:0,ry:0,labelPaddingX:c,labelPaddingY:c*1.5};fi(t.label,h)+nt.labelPaddingX*2<h.er.minEntityWidth&&(t.width=h.er.minEntityWidth);const K=await Jo(e,t,nt);if(i!=null&&w0.has(i)){const Et=r.colorIndex??0;K.attr("data-color-id",`color-${Et%l.length}`)}if(!gi(h.htmlLabels)){const Et=K.select("text"),mt=(Ue=Et.node())==null?void 0:Ue.getBBox();Et.attr("transform",`translate(${-mt.width/2}, 0)`)}return K}h.htmlLabels||(c*=1.25,u*=1.25);let p=st(t);p||(p="node default");const C=e.insert("g").attr("class",p).attr("id",t.domId||t.id),y=await Vn(C,t.label??"",h,0,0,["name"],d);y.height+=u;let x=0;const k=[],b=[];let w=0,T=0,E=0,L=0,W=!0,M=!0;for(const nt of r.attributes){const K=await Vn(C,nt.type,h,0,x,["attribute-type"],d);w=Math.max(w,K.width+c);const Et=await Vn(C,nt.name,h,0,x,["attribute-name"],d);T=Math.max(T,Et.width+c);const mt=await Vn(C,nt.keys.join(),h,0,x,["attribute-keys"],d);E=Math.max(E,mt.width+c);const dr=await Vn(C,nt.comment,h,0,x,["attribute-comment"],d);L=Math.max(L,dr.width+c);const Bt=Math.max(K.height,Et.height,mt.height,dr.height)+u;b.push({yOffset:x,rowHeight:Bt}),x+=Bt}let O=4;E<=c&&(W=!1,E=0,O--),L<=c&&(M=!1,L=0,O--);const j=C.node().getBBox();if(y.width+c*2-(w+T+E+L)>0){const nt=y.width+c*2-(w+T+E+L);w+=nt/O,T+=nt/O,E>0&&(E+=nt/O),L>0&&(L+=nt/O)}const H=w+T+E+L,D=Z.svg(C),$=J(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let F=0;b.length>0&&(F=b.reduce((nt,K)=>nt+((K==null?void 0:K.rowHeight)??0),0));const P=Math.max(j.width+c*2,(t==null?void 0:t.width)||0,H),B=Math.max((F??0)+y.height,(t==null?void 0:t.height)||0),S=-P/2,I=-B/2;if(C.selectAll("g:not(:first-child)").each((nt,K,Et)=>{const mt=Ct(Et[K]),dr=mt.attr("transform");let Bt=0,Ci=0;if(dr){const rr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(dr);rr&&(Bt=parseFloat(rr[1]),Ci=parseFloat(rr[2]),mt.attr("class").includes("attribute-name")?Bt+=w:mt.attr("class").includes("attribute-keys")?Bt+=w+T:mt.attr("class").includes("attribute-comment")&&(Bt+=w+T+E))}mt.attr("transform",`translate(${S+c/2+Bt}, ${Ci+I+y.height+u/2})`)}),C.select(".name").attr("transform","translate("+-y.width/2+", "+(I+u/2)+")"),i!=null&&w0.has(i)){const nt=r.colorIndex??0;C.attr("data-color-id",`color-${nt%l.length}`)}const V=D.rectangle(S,I,P,B,$),it=C.insert(()=>V,":first-child").attr("class","outer-path").attr("style",f.join(""));k.push(0);for(const[nt,K]of b.entries()){const mt=(nt+1)%2===0&&K.yOffset!==0,dr=D.rectangle(S,y.height+I+(K==null?void 0:K.yOffset),P,K==null?void 0:K.rowHeight,{...$,fill:mt?o:s,stroke:a});C.insert(()=>dr,"g.label").attr("style",f.join("")).attr("class",`row-rect-${mt?"even":"odd"}`)}const pt=1e-4;let dt=Gn(S,y.height+I,P+S,y.height+I,pt),kt=D.polygon(dt.map(nt=>[nt.x,nt.y]),$);if(C.insert(()=>kt).attr("class","divider"),dt=Gn(w+S,y.height+I,w+S,B+I,pt),kt=D.polygon(dt.map(nt=>[nt.x,nt.y]),$),C.insert(()=>kt).attr("class","divider"),W){const nt=w+T+S;dt=Gn(nt,y.height+I,nt,B+I,pt),kt=D.polygon(dt.map(K=>[K.x,K.y]),$),C.insert(()=>kt).attr("class","divider")}if(M){const nt=w+T+E+S;dt=Gn(nt,y.height+I,nt,B+I,pt),kt=D.polygon(dt.map(K=>[K.x,K.y]),$),C.insert(()=>kt).attr("class","divider")}for(const nt of k){const K=y.height+I+nt;dt=Gn(S,K,P+S,K,pt),kt=D.polygon(dt.map(Et=>[Et.x,Et.y]),$),C.insert(()=>kt).attr("class","divider")}if(et(t,it),g&&t.look!=="handDrawn")if(i!=null&&L4.has(i))C.selectAll("path").attr("style",g);else{const nt=g.split(";"),K=(er=nt==null?void 0:nt.filter(Et=>Et.includes("stroke")))==null?void 0:er.map(Et=>`${Et}`).join("; ");C.selectAll("path").attr("style",K??""),C.selectAll(".row-rect-even path").attr("style",g)}return t.intersect=function(nt){return G.rect(t,nt)},C}m(yg,"erBox");async function Vn(e,t,r,i=0,n=0,o=[],s=""){const a=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);t!==py(t)&&(t=py(t),t=t.replaceAll("<","<").replaceAll(">",">"));const l=a.node().appendChild(await mi(a,t,{width:fi(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let c=l.children[0];for(c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">");c.childNodes[0];)c=c.childNodes[0],c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">")}let h=l.getBBox();if(gi(r.htmlLabels)){const c=l.children[0];c.style.textAlign="start";const u=Ct(l);h=c.getBoundingClientRect(),u.attr("width",h.width),u.attr("height",h.height)}return h}m(Vn,"addText");function Gn(e,t,r,i,n){return e===r?[{x:e-n/2,y:t},{x:e+n/2,y:t},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:e,y:t-n/2},{x:e,y:t+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}m(Gn,"lineToPolygon");async function rw(e,t,r,i,n=r.class.padding??12){const o=i?0:3,s=e.insert("g").attr("class",st(t)).attr("id",t.domId||t.id);let a=null,l=null,h=null,c=null,u=0,f=0,d=0;if(a=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const x=t.annotations[0];await Ms(a,{text:`«${x}»`},0),u=a.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Ms(l,t,0,["font-weight: bolder"]);const g=l.node().getBBox();f=g.height,h=s.insert("g").attr("class","members-group text");let p=0;for(const x of t.members){const k=await Ms(h,x,p,[x.parseClassifier()]);p+=k+o}d=h.node().getBBox().height,d<=0&&(d=n/2),c=s.insert("g").attr("class","methods-group text");let C=0;for(const x of t.methods){const k=await Ms(c,x,C,[x.parseClassifier()]);C+=k+o}let y=s.node().getBBox();if(a!==null){const x=a.node().getBBox();a.attr("transform",`translate(${-x.width/2})`)}return l.attr("transform",`translate(${-g.width/2}, ${u})`),y=s.node().getBBox(),h.attr("transform",`translate(0, ${u+f+n*2})`),y=s.node().getBBox(),c.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),y=s.node().getBBox(),{shapeSvg:s,bbox:y}}m(rw,"textHelper");async function Ms(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=zt();let s="useHtmlLabels"in t?t.useHtmlLabels:gi(o.htmlLabels)??!0,a="";"text"in t?a=t.text:a=t.label,!s&&a.startsWith("\\")&&(a=a.substring(1)),da(a)&&(s=!0);const l=await mi(n,_p(Ln(a)),{width:fi(a,o)+50,classes:"markdown-node-label",useHtmlLabels:s},o);let h,c=1;if(s){const u=l.children[0],f=Ct(l);c=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(c+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const g=a.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(p=>new Promise(C=>{function y(){var x;if(p.style.display="flex",p.style.flexDirection="column",g){const k=((x=o.fontSize)==null?void 0:x.toString())??window.getComputedStyle(document.body).fontSize,w=parseInt(k,10)*5+"px";p.style.minWidth=w,p.style.maxWidth=w}else p.style.width="100%";C(p)}m(y,"setupImage"),setTimeout(()=>{p.complete&&y()}),p.addEventListener("error",y),p.addEventListener("load",y)})))}h=u.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Ct(l).selectAll("tspan").attr("font-weight",""),c=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(u.textContent=a[0]+a.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),a[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),h=l.getBBox()}return n.attr("transform","translate(0,"+(-h.height/(2*c)+r)+")"),h.height}m(Ms,"addText");async function iw(e,t){var D,$;const r=St(),{themeVariables:i}=r,{useGradient:n}=i,o=r.class.padding??12,s=o,a=t.useHtmlLabels??gi(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:h,bbox:c}=await rw(e,t,r,a,s),{labelStyles:u,nodeStyles:f}=tt(t);t.labelStyle=u,t.cssStyles=l.styles||"";const d=((D=l.styles)==null?void 0:D.join(";"))||f||"";t.cssStyles||(t.cssStyles=d.replaceAll("!important","").split(";"));const g=l.members.length===0&&l.methods.length===0&&!(($=r.class)!=null&&$.hideEmptyMembersBox),p=Z.svg(h),C=J(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const y=Math.max(t.width??0,c.width);let x=Math.max(t.height??0,c.height);const k=(t.height??0)>c.height;l.members.length===0&&l.methods.length===0?x+=s:l.members.length>0&&l.methods.length===0&&(x+=s*2);const b=-y/2,w=-x/2;let T=g?o*2:l.members.length===0&&l.methods.length===0?-o:0;k&&(T=o*2);const E=p.rectangle(b-o,w-o-(g?o:l.members.length===0&&l.methods.length===0?-o/2:0),y+2*o,x+2*o+T,C),L=h.insert(()=>E,":first-child");L.attr("class","basic label-container outer-path");const W=L.node().getBBox(),M=h.select(".annotation-group").node().getBBox().height-(g?o/2:0)||0,O=h.select(".label-group").node().getBBox().height-(g?o/2:0)||0,j=h.select(".members-group").node().getBBox().height-(g?o/2:0)||0,H=(M+O+w+o-(w-o-(g?o:l.members.length===0&&l.methods.length===0?-o/2:0)))/2;if(h.selectAll(".text").each((F,P,B)=>{var dt,kt;const S=Ct(B[P]),I=S.attr("transform");let V=0;if(I){const qt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(I);qt&&(V=parseFloat(qt[2]))}let it=V+w+o-(g?o:l.members.length===0&&l.methods.length===0?-o/2:0);if(S.attr("class").includes("methods-group")){const _t=Math.max(j,s/2);k?it=Math.max(H,M+O+_t+w+s*2+o)+s*2:it=M+O+_t+w+s*4+o}l.members.length===0&&l.methods.length===0&&((dt=r.class)!=null&&dt.hideEmptyMembersBox)&&(l.annotations.length>0?it=V-s:it=V),a||(it-=4);let pt=b;(S.attr("class").includes("label-group")||S.attr("class").includes("annotation-group"))&&(pt=-((kt=S.node())==null?void 0:kt.getBBox().width)/2||0,h.selectAll("text").each(function(_t,qt,Ue){window.getComputedStyle(Ue[qt]).textAnchor==="middle"&&(pt=0)})),S.attr("transform",`translate(${pt}, ${it})`)}),l.members.length>0||l.methods.length>0||g){const F=M+O+w+o,P=p.line(W.x,F,W.x+W.width,F+.001,C);h.insert(()=>P).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(g||l.members.length>0||l.methods.length>0){const F=M+O+j+w+s*2+o,P=p.line(W.x,k?Math.max(H,F):F,W.x+W.width,(k?Math.max(H,F):F)+.001,C);h.insert(()=>P).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(l.look!=="handDrawn"&&h.selectAll("path").attr("style",d),L.select(":nth-child(2)").attr("style",d),h.selectAll(".divider").select("path").attr("style",d),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",d),!a){const F=RegExp(/color\s*:\s*([^;]*)/),P=F.exec(d);if(P){const B=P[0].replace("color","fill");h.selectAll("tspan").attr("style",B)}else if(u){const B=F.exec(u);if(B){const S=B[0].replace("color","fill");h.selectAll("tspan").attr("style",S)}}}return et(t,L),t.intersect=function(F){return G.rect(t,F)},h}m(iw,"classBox");async function nw(e,t){var W,M;const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const n=t,o=t,s=20,a=20,l="verifyMethod"in t,h=st(t),{themeVariables:c}=St(),{borderColorArray:u,requirementEdgeLabelBackground:f}=c,d=e.insert("g").attr("class",h).attr("id",t.domId??t.id);let g;l?g=await Dr(d,`<<${n.type}>>`,0,t.labelStyle):g=await Dr(d,"<<Element>>",0,t.labelStyle);let p=g;const C=await Dr(d,n.name,p,t.labelStyle+"; font-weight: bold;");if(p+=C+a,l){const O=await Dr(d,`${n.requirementId?`ID: ${n.requirementId}`:""}`,p,t.labelStyle);p+=O;const j=await Dr(d,`${n.text?`Text: ${n.text}`:""}`,p,t.labelStyle);p+=j;const H=await Dr(d,`${n.risk?`Risk: ${n.risk}`:""}`,p,t.labelStyle);p+=H,await Dr(d,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,p,t.labelStyle)}else{const O=await Dr(d,`${o.type?`Type: ${o.type}`:""}`,p,t.labelStyle);p+=O,await Dr(d,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,p,t.labelStyle)}const y=(((W=d.node())==null?void 0:W.getBBox().width)??200)+s,x=(((M=d.node())==null?void 0:M.getBBox().height)??200)+s,k=-y/2,b=-x/2,w=Z.svg(d),T=J(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const E=w.rectangle(k,b,y,x,T),L=d.insert(()=>E,":first-child");if(L.attr("class","basic label-container outer-path").attr("style",i),u!=null&&u.length){const O=t.colorIndex??0;d.attr("data-color-id",`color-${O%u.length}`)}if(d.selectAll(".label").each((O,j,H)=>{const D=Ct(H[j]),$=D.attr("transform");let F=0,P=0;if($){const V=RegExp(/translate\(([^,]+),([^)]+)\)/).exec($);V&&(F=parseFloat(V[1]),P=parseFloat(V[2]))}const B=P-x/2;let S=k+s/2;(j===0||j===1)&&(S=F),D.attr("transform",`translate(${S}, ${B+s})`)}),p>g+C+a){const O=b+g+C+a;let j;if(t.look==="neo"){const $=[[k,O],[k+y,O],[k+y,O+.001],[k,O+.001]];j=w.polygon($,T)}else j=w.line(k,O,k+y,O,T);d.insert(()=>j).attr("class","divider")}return et(t,L),t.intersect=function(O){return G.rect(t,O)},i&&t.look!=="handDrawn"&&(f||u!=null&&u.length)&&d.selectAll("path").attr("style",i),d}m(nw,"requirementBox");async function Dr(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),o=St(),s=o.htmlLabels??!0,a=await mi(n,_p(Ln(t)),{width:fi(t,o)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},o);let l;if(s){const h=a.children[0],c=Ct(a);l=h.getBoundingClientRect(),c.attr("width",l.width),c.attr("height",l.height)}else{const h=a.children[0];for(const c of h.children)i&&c.setAttribute("style",i);l=a.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}m(Dr,"addText");var E4=m(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function ow(e,t,{config:r}){var j,H;const{labelStyles:i,nodeStyles:n}=tt(t);t.labelStyle=i||"";const o=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:a,bbox:l,label:h}=await at(e,t,st(t)),c=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((j=r==null?void 0:r.kanban)!=null&&j.ticketBaseUrl)&&(u=(H=r==null?void 0:r.kanban)==null?void 0:H.ticketBaseUrl.replace("#TICKET#",t.ticket),f=a.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let g,p;f?{label:g,bbox:p}=await Lu(f,"ticket"in t&&t.ticket||"",d):{label:g,bbox:p}=await Lu(a,"ticket"in t&&t.ticket||"",d);const{label:C,bbox:y}=await Lu(a,"assigned"in t&&t.assigned||"",d);t.width=s;const x=10,k=(t==null?void 0:t.width)||0,b=Math.max(p.height,y.height)/2,w=Math.max(l.height+x*2,(t==null?void 0:t.height)||0)+b,T=-k/2,E=-w/2;h.attr("transform","translate("+(c-k/2)+", "+(-b-l.height/2)+")"),g.attr("transform","translate("+(c-k/2)+", "+(-b+l.height/2)+")"),C.attr("transform","translate("+(c+k/2-y.width-2*o)+", "+(-b+l.height/2)+")");let L;const{rx:W,ry:M}=t,{cssStyles:O}=t;if(t.look==="handDrawn"){const D=Z.svg(a),$=J(t,{}),F=W||M?D.path(Ki(T,E,k,w,W||0),$):D.rectangle(T,E,k,w,$);L=a.insert(()=>F,":first-child"),L.attr("class","basic label-container").attr("style",O||null)}else{L=a.insert("rect",":first-child"),L.attr("class","basic label-container __APA__").attr("style",n).attr("rx",W??5).attr("ry",M??5).attr("x",T).attr("y",E).attr("width",k).attr("height",w);const D="priority"in t&&t.priority;if(D){const $=a.append("line"),F=T+2,P=E+Math.floor((W??0)/2),B=E+w-Math.floor((W??0)/2);$.attr("x1",F).attr("y1",P).attr("x2",F).attr("y2",B).attr("stroke-width","4").attr("stroke",E4(D))}}return et(t,L),t.height=w,t.intersect=function(D){return G.rect(t,D)},a}m(ow,"kanbanItem");async function sw(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,halfPadding:s,label:a}=await at(e,t,st(t)),l=o.width+10*s,h=o.height+8*s,c=.15*l,{cssStyles:u}=t,f=o.width+20,d=o.height+20,g=Math.max(l,f),p=Math.max(h,d);a.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let C;const y=`M0 0
|
|
279
|
+
a${c},${c} 1 0,0 ${g*.25},${-1*p*.1}
|
|
280
|
+
a${c},${c} 1 0,0 ${g*.25},0
|
|
281
|
+
a${c},${c} 1 0,0 ${g*.25},0
|
|
282
|
+
a${c},${c} 1 0,0 ${g*.25},${p*.1}
|
|
283
|
+
|
|
284
|
+
a${c},${c} 1 0,0 ${g*.15},${p*.33}
|
|
285
|
+
a${c*.8},${c*.8} 1 0,0 0,${p*.34}
|
|
286
|
+
a${c},${c} 1 0,0 ${-1*g*.15},${p*.33}
|
|
287
|
+
|
|
288
|
+
a${c},${c} 1 0,0 ${-1*g*.25},${p*.15}
|
|
289
|
+
a${c},${c} 1 0,0 ${-1*g*.25},0
|
|
290
|
+
a${c},${c} 1 0,0 ${-1*g*.25},0
|
|
291
|
+
a${c},${c} 1 0,0 ${-1*g*.25},${-1*p*.15}
|
|
292
|
+
|
|
293
|
+
a${c},${c} 1 0,0 ${-1*g*.1},${-1*p*.33}
|
|
294
|
+
a${c*.8},${c*.8} 1 0,0 0,${-1*p*.34}
|
|
295
|
+
a${c},${c} 1 0,0 ${g*.1},${-1*p*.33}
|
|
296
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const x=Z.svg(n),k=J(t,{}),b=x.path(y,k);C=n.insert(()=>b,":first-child"),C.attr("class","basic label-container").attr("style",le(u))}else C=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return C.attr("transform",`translate(${-g/2}, ${-p/2})`),et(t,C),t.calcIntersect=function(x,k){return G.rect(x,k)},t.intersect=function(x){return q.info("Bang intersect",t,x),G.rect(t,x)},n}m(sw,"bang");async function aw(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,halfPadding:s,label:a}=await at(e,t,st(t)),l=o.width+2*s,h=o.height+2*s,c=.15*l,u=.25*l,f=.35*l,d=.2*l,{cssStyles:g}=t;let p;const C=`M0 0
|
|
297
|
+
a${c},${c} 0 0,1 ${l*.25},${-1*l*.1}
|
|
298
|
+
a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
|
|
299
|
+
a${u},${u} 1 0,1 ${l*.35},${l*.2}
|
|
300
|
+
|
|
301
|
+
a${c},${c} 1 0,1 ${l*.15},${h*.35}
|
|
302
|
+
a${d},${d} 1 0,1 ${-1*l*.15},${h*.65}
|
|
303
|
+
|
|
304
|
+
a${u},${c} 1 0,1 ${-1*l*.25},${l*.15}
|
|
305
|
+
a${f},${f} 1 0,1 ${-1*l*.5},0
|
|
306
|
+
a${c},${c} 1 0,1 ${-1*l*.25},${-1*l*.15}
|
|
307
|
+
|
|
308
|
+
a${c},${c} 1 0,1 ${-1*l*.1},${-1*h*.35}
|
|
309
|
+
a${d},${d} 1 0,1 ${l*.1},${-1*h*.65}
|
|
310
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const y=Z.svg(n),x=J(t,{}),k=y.path(C,x);p=n.insert(()=>k,":first-child"),p.attr("class","basic label-container").attr("style",le(g))}else p=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return a.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),p.attr("transform",`translate(${-l/2}, ${-h/2})`),et(t,p),t.calcIntersect=function(y,x){return G.rect(y,x)},t.intersect=function(y){return q.info("Cloud intersect",t,y),G.rect(t,y)},n}m(aw,"cloud");async function lw(e,t){const{labelStyles:r,nodeStyles:i}=tt(t);t.labelStyle=r;const{shapeSvg:n,bbox:o,halfPadding:s,label:a}=await at(e,t,st(t)),l=o.width+8*s,h=o.height+2*s,c=5,u=t.look==="neo"?`
|
|
311
|
+
M${-l/2} ${h/2-c}
|
|
312
|
+
v${-h+2*c}
|
|
313
|
+
q0,-${c} ${c},-${c}
|
|
314
|
+
h${l-2*c}
|
|
315
|
+
q${c},0 ${c},${c}
|
|
316
|
+
v${h-c}
|
|
317
|
+
H${-l/2}
|
|
318
|
+
Z
|
|
319
|
+
`:`
|
|
320
|
+
M${-l/2} ${h/2-c}
|
|
321
|
+
v${-h+2*c}
|
|
322
|
+
q0,-${c} ${c},-${c}
|
|
323
|
+
h${l-2*c}
|
|
324
|
+
q${c},0 ${c},${c}
|
|
325
|
+
v${h-2*c}
|
|
326
|
+
q0,${c} ${-c},${c}
|
|
327
|
+
h${-(l-2*c)}
|
|
328
|
+
q${-c},0 ${-c},${-c}
|
|
329
|
+
Z
|
|
330
|
+
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const f=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",h/2).attr("x2",l/2).attr("y2",h/2),a.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),n.append(()=>a.node()),et(t,f),t.calcIntersect=function(d,g){return G.rect(d,g)},t.intersect=function(d){return G.rect(t,d)},n}m(lw,"defaultMindmapNode");async function hw(e,t){const r={padding:t.padding??0};return mg(e,t,r)}m(hw,"mindmapCircle");var F4=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:zb},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Db},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Wb},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ub},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:hb},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:cb},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:mg},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:sw},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:aw},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Ob},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:yb},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Bb},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:_b},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Qb},{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:Sb},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:db},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Gb},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:eb},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Rb},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:jb},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Hb},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:gb},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Cb},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ob},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:sb},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ab},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Lb},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Jb},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:mb},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Xb},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Eb},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:lb},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ub},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Zb},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ew},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:fb},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Kb},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:pb},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Nb},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Mb},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Ab},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:tb},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:nb},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Vb},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Yb},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tw},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Ib},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Fb}],A4=m(()=>{const t=[...Object.entries({state:qb,choice:rb,note:$b,rectWithTitle:Pb,labelRect:Tb,iconSquare:bb,iconCircle:kb,icon:xb,iconRounded:vb,imageSquare:wb,anchor:Zv,kanbanItem:ow,mindmapCircle:hw,defaultMindmapNode:lw,classBox:iw,erBox:yg,requirementBox:nw}),...F4.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),cw=A4();function M4(e){return e in cw}m(M4,"isValidShape");var bc=new Map;async function uw(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?cw[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),n=await o(i,t,r)}else n=await o(e,t,r),i=n;return i.attr("data-look",le(t.look)),t.tooltip&&n.attr("title",t.tooltip),bc.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}m(uw,"insertNode");var hR=m((e,t)=>{bc.set(t.id,e)},"setNodeElem"),cR=m(()=>{bc.clear()},"clear"),uR=m(e=>{const t=bc.get(e.id);q.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),$4=m((e,t,r,i,n,o=!1,s)=>{t.arrowTypeStart&&S0(e,"start",t.arrowTypeStart,r,i,n,o,s),t.arrowTypeEnd&&S0(e,"end",t.arrowTypeEnd,r,i,n,o,s)},"addEdgeMarkers"),O4={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},I4=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],S0=m((e,t,r,i,n,o,s=!1,a)=>{var g;const l=O4[r],h=l&&I4.includes(l.type);if(!l){q.warn(`Unknown arrow type: ${r}`);return}const c=l.type,d=`${n}_${o}-${c}${t==="start"?"Start":"End"}${s&&h?"-margin":""}`;if(a&&a.trim()!==""){const p=a.replace(/[^\dA-Za-z]/g,"_"),C=`${d}_${p}`;if(!document.getElementById(C)){const y=document.getElementById(d);if(y){const x=y.cloneNode(!0);x.id=C,x.querySelectorAll("path, circle, line").forEach(b=>{b.setAttribute("stroke",a),l.fill&&b.setAttribute("fill",a)}),(g=y.parentNode)==null||g.appendChild(x)}}e.attr(`marker-${t}`,`url(${i}#${C})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},"addEdgeMarker"),P4=m(e=>{var t,r;return typeof e=="string"?e:(r=(t=St())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),Hh=new Map,de=new Map,dR=m(()=>{Hh.clear(),de.clear()},"clear"),ks=m(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),D4=m(async(e,t)=>{const r=St();let i=Me(r);const{labelStyles:n}=tt(t);t.labelStyle=n;const o=e.insert("g").attr("class","edgeLabel"),s=o.insert("g").attr("class","label").attr("data-id",t.id),a=t.labelType==="markdown",h=await mi(e,t.label,{style:ks(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:a,width:a?void 0:void 0},r);s.node().appendChild(h),q.info("abc82",t,t.labelType);let c=h.getBBox(),u=c;if(i){const d=h.children[0],g=Ct(h);c=d.getBoundingClientRect(),u=c,g.attr("width",c.width),g.attr("height",c.height)}else{const d=Ct(h).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}s.attr("transform",gs(u,i)),Hh.set(t.id,o),t.width=c.width,t.height=c.height;let f;if(t.startLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Fi(g,t.startLabelLeft,ks(t.labelStyle)||"",!1,!1);f=p;let C=p.getBBox();if(i){const y=p.children[0],x=Ct(p);C=y.getBoundingClientRect(),x.attr("width",C.width),x.attr("height",C.height)}g.attr("transform",gs(C,i)),de.get(t.id)||de.set(t.id,{}),de.get(t.id).startLeft=d,$s(f,t.startLabelLeft)}if(t.startLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Fi(g,t.startLabelRight,ks(t.labelStyle)||"",!1,!1);f=p;let C=p.getBBox();if(i){const y=p.children[0],x=Ct(p);C=y.getBoundingClientRect(),x.attr("width",C.width),x.attr("height",C.height)}g.attr("transform",gs(C,i)),de.get(t.id)||de.set(t.id,{}),de.get(t.id).startRight=d,$s(f,t.startLabelRight)}if(t.endLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Fi(d,t.endLabelLeft,ks(t.labelStyle)||"",!1,!1);f=p;let C=p.getBBox();if(i){const y=p.children[0],x=Ct(p);C=y.getBoundingClientRect(),x.attr("width",C.width),x.attr("height",C.height)}g.attr("transform",gs(C,i)),de.get(t.id)||de.set(t.id,{}),de.get(t.id).endLeft=d,$s(f,t.endLabelLeft)}if(t.endLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner"),p=await Fi(d,t.endLabelRight,ks(t.labelStyle)||"",!1,!1);f=p;let C=p.getBBox();if(i){const y=p.children[0],x=Ct(p);C=y.getBoundingClientRect(),x.attr("width",C.width),x.attr("height",C.height)}g.attr("transform",gs(C,i)),de.get(t.id)||de.set(t.id,{}),de.get(t.id).endRight=d,$s(f,t.endLabelRight)}return h},"insertEdgeLabel");function $s(e,t){Me(St())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}m($s,"setTerminalWidth");var R4=m((e,t)=>{q.debug("Moving label abc88 ",e.id,e.label,Hh.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=St(),{subGraphTitleTotalMargin:n}=ig(i);if(e.label){const o=Hh.get(e.id);let s=e.x,a=e.y;if(r){const l=br.calcLabelPosition(r);q.debug("Moving label "+e.label+" from (",s,",",a,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,a=l.y)}o.attr("transform",`translate(${s}, ${a+n/2})`)}if(e.startLabelLeft){const o=de.get(e.id).startLeft;let s=e.x,a=e.y;if(r){const l=br.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=l.x,a=l.y}o.attr("transform",`translate(${s}, ${a})`)}if(e.startLabelRight){const o=de.get(e.id).startRight;let s=e.x,a=e.y;if(r){const l=br.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=l.x,a=l.y}o.attr("transform",`translate(${s}, ${a})`)}if(e.endLabelLeft){const o=de.get(e.id).endLeft;let s=e.x,a=e.y;if(r){const l=br.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=l.x,a=l.y}o.attr("transform",`translate(${s}, ${a})`)}if(e.endLabelRight){const o=de.get(e.id).endRight;let s=e.x,a=e.y;if(r){const l=br.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=l.x,a=l.y}o.attr("transform",`translate(${s}, ${a})`)}},"positionEdgeLabel"),N4=m((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),o=Math.abs(t.y-i),s=e.width/2,a=e.height/2;return n>=s||o>=a},"outsideNode"),z4=m((e,t,r)=>{q.debug(`intersection calc abc89:
|
|
331
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
332
|
+
insidePoint : ${JSON.stringify(r)}
|
|
333
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,o=Math.abs(i-r.x),s=e.width/2;let a=r.x<t.x?s-o:s+o;const l=e.height/2,h=Math.abs(t.y-r.y),c=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*s>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;a=c*u/h;const f={x:r.x<t.x?r.x+a:r.x-c+a,y:r.y<t.y?r.y+h-u:r.y-h+u};return a===0&&(f.x=t.x,f.y=t.y),c===0&&(f.x=t.x),h===0&&(f.y=t.y),q.debug(`abc89 top/bottom calc, Q ${h}, q ${u}, R ${c}, r ${a}`,f),f}else{r.x<t.x?a=t.x-s-i:a=i-s-t.x;let u=h*a/c,f=r.x<t.x?r.x+c-a:r.x-c+a,d=r.y<t.y?r.y+u:r.y-u;return q.debug(`sides calc abc89, Q ${h}, q ${u}, R ${c}, r ${a}`,{_x:f,_y:d}),a===0&&(f=t.x,d=t.y),c===0&&(f=t.x),h===0&&(d=t.y),{x:f,y:d}}},"intersection"),T0=m((e,t)=>{q.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(o=>{if(q.info("abc88 checking point",o,t),!N4(t,o)&&!n){const s=z4(t,i,o);q.debug("abc88 inside",o,i,s),q.debug("abc88 intersection",s,t);let a=!1;r.forEach(l=>{a=a||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?q.warn("abc88 no intersect",s,r):r.push(s),n=!0}else q.warn("abc88 outside",o,i),i=o,n||r.push(o)}),q.debug("returning points",r),r},"cutPathAtIntersect");function dw(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],o=e[i],s=e[i+1];(n.x===o.x&&o.y===s.y&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-n.y)>5||n.y===o.y&&o.x===s.x&&Math.abs(o.x-n.x)>5&&Math.abs(o.y-s.y)>5)&&(t.push(o),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}m(dw,"extractCornerPoints");var _0=m(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,o=Math.sqrt(i*i+n*n),s=r/o;return{x:t.x-s*i,y:t.y-s*n}},"findAdjacentPoint"),W4=m(function(e){const{cornerPointPositions:t}=dw(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],o=e[i+1],s=e[i],a=_0(n,s,5),l=_0(o,s,5),h=l.x-a.x,c=l.y-a.y;r.push(a);const u=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(o.x-n.x)>10&&Math.abs(o.y-n.y)>=10){q.debug("Corner point fixing",Math.abs(o.x-n.x),Math.abs(o.y-n.y));const d=5;s.x===a.x?f={x:h<0?a.x-d+u:a.x+d-u,y:c<0?a.y-u:a.y+u}:f={x:h<0?a.x-u:a.x+u,y:c<0?a.y-d+u:a.y+d-u}}else q.debug("Corner point skipping fixing",Math.abs(o.x-n.x),Math.abs(o.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),q4=m((e,t,r)=>{const i=e-t-r,n=2,o=2,s=n+o,a=Math.floor(i/s),l=Array(a).fill(`${n} ${o}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),H4=m(function(e,t,r,i,n,o,s,a=!1){var P;if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=St();let h=t.points,c=!1;const u=n;var f=o;const d=[];for(const B in t.cssCompiledStyles)cv(B)||d.push(t.cssCompiledStyles[B]);q.debug("UIO intersect check",t.points,f.x,u.x),f.intersect&&u.intersect&&!a&&(h=h.slice(1,t.points.length-1),h.unshift(u.intersect(h[0])),q.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],f,f.intersect(h[h.length-1])),h.push(f.intersect(h[h.length-1])));const g=btoa(JSON.stringify(h));t.toCluster&&(q.info("to cluster abc88",r.get(t.toCluster)),h=T0(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(q.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=T0(h.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let p=h.filter(B=>!Number.isNaN(B.y));const C=P4(t.curve);C!=="rounded"&&(p=W4(p));let y=Ys;switch(C){case"linear":y=Ys;break;case"basis":y=qd;break;case"cardinal":y=K1;break;case"bumpX":y=Y1;break;case"bumpY":y=V1;break;case"catmullRom":y=J1;break;case"monotoneX":y=ok;break;case"monotoneY":y=sk;break;case"natural":y=lk;break;case"step":y=hk;break;case"stepAfter":y=uk;break;case"stepBefore":y=ck;break;case"rounded":y=Ys;break;default:y=qd}const{x,y:k}=OA(t),b=y5().x(x).y(k).curve(y);let w;switch(t.thickness){case"normal":w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-invisible";break;default:w="edge-thickness-normal"}switch(t.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed";break;default:w+=" edge-pattern-solid"}let T,E=C==="rounded"?fw(pw(p,t),5):b(p);const L=Array.isArray(t.style)?t.style:[t.style];let W=L.find(B=>B==null?void 0:B.startsWith("stroke:")),M="";t.animate&&(M="edge-animation-fast"),t.animation&&(M="edge-animation-"+t.animation);let O=!1;if(t.look==="handDrawn"){const B=Z.svg(e);Object.assign([],p);const S=B.path(E,{roughness:.3,seed:l});w+=" transition",T=Ct(S).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(M?" "+M:"")).attr("style",L?L.reduce((V,it)=>V+";"+it,""):"");let I=T.attr("d");T.attr("d",I),e.node().appendChild(T.node())}else{const B=d.join(";"),S=L?L.reduce((kt,_t)=>kt+_t+";",""):"",I=(B?B+";"+S+";":S)+";"+(L?L.reduce((kt,_t)=>kt+";"+_t,""):"");T=e.append("path").attr("d",E).attr("id",`${s}-${t.id}`).attr("class"," "+w+(t.classes?" "+t.classes:"")+(M?" "+M:"")).attr("style",I),W=(P=I.match(/stroke:([^;]+)/))==null?void 0:P[1],O=t.animate===!0||!!t.animation||B.includes("animation");const V=T.node(),it=typeof V.getTotalLength=="function"?V.getTotalLength():0,pt=Wy[t.arrowTypeStart]||0,dt=Wy[t.arrowTypeEnd]||0;if(t.look==="neo"&&!O){const _t=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?q4(it,pt,dt):`0 ${pt} ${it-pt-dt} ${dt}`}; stroke-dashoffset: 0;`;T.attr("style",_t+T.attr("style"))}}T.attr("data-edge",!0),T.attr("data-et","edge"),T.attr("data-id",t.id),T.attr("data-points",g),T.attr("data-look",le(t.look)),t.showPoints&&p.forEach(B=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",B.x).attr("cy",B.y)});let j="";(St().flowchart.arrowMarkerAbsolute||St().state.arrowMarkerAbsolute)&&(j=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,j=j.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),q.info("arrowTypeStart",t.arrowTypeStart),q.info("arrowTypeEnd",t.arrowTypeEnd);const H=!O&&(t==null?void 0:t.look)==="neo";$4(T,t,j,s,i,H,W);const D=Math.floor(h.length/2),$=h[D];br.isLabelCoordinateInPath($,T.attr("d"))||(c=!0);let F={};return c&&(F.updatedPath=h),F.originalPath=t.points,F},"insertEdge");function fw(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let o=0;o<i;o++){const s=e[o],a=e[o-1],l=e[o+1];if(o===0)r+=`M${s.x},${s.y}`;else if(o===i-1)r+=`L${s.x},${s.y}`;else{const h=s.x-a.x,c=s.y-a.y,u=l.x-s.x,f=l.y-s.y,d=Math.hypot(h,c),g=Math.hypot(u,f);if(d<n||g<n){r+=`L${s.x},${s.y}`;continue}const p=h/d,C=c/d,y=u/g,x=f/g,k=p*y+C*x,b=Math.max(-1,Math.min(1,k)),w=Math.acos(b);if(w<n||Math.abs(Math.PI-w)<n){r+=`L${s.x},${s.y}`;continue}const T=Math.min(t/Math.sin(w/2),d/2,g/2),E=s.x-p*T,L=s.y-C*T,W=s.x+y*T,M=s.y+x*T;r+=`L${E},${L}`,r+=`Q${s.x},${s.y} ${W},${M}`}}return r}m(fw,"generateRoundedPath");function xf(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}m(xf,"calculateDeltaAndAngle");function pw(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&ke[t.arrowTypeStart]){const n=ke[t.arrowTypeStart],o=e[0],s=e[1],{angle:a}=xf(o,s),l=n*Math.cos(a),h=n*Math.sin(a);r[0].x=o.x+l,r[0].y=o.y+h}const i=e.length;if(i>=2&&ke[t.arrowTypeEnd]){const n=ke[t.arrowTypeEnd],o=e[i-1],s=e[i-2],{angle:a}=xf(s,o),l=n*Math.cos(a),h=n*Math.sin(a);r[i-1].x=o.x-l,r[i-1].y=o.y-h}return r}m(pw,"applyMarkerOffsetsToPoints");var j4=m((e,t,r,i)=>{t.forEach(n=>{fO[n](e,r,i)})},"insertMarkers"),U4=m((e,t,r)=>{q.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Y4=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),V4=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),G4=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),X4=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),Q4=m((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),K4=m((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Z4=m((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),J4=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),tO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{transitionColor:o}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),eO=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),rO=m((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).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 n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),iO=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),nO=m((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).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 n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),oO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{strokeWidth:o}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),sO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{strokeWidth:o,mainBkg:s}=n,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");a.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),a.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),aO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{strokeWidth:o}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),lO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{strokeWidth:o,mainBkg:s}=n,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");a.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),hO=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
334
|
+
L20,10
|
|
335
|
+
M20,10
|
|
336
|
+
L0,20`)},"requirement_arrow"),cO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{strokeWidth:o}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
337
|
+
L20,10
|
|
338
|
+
M20,10
|
|
339
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),uO=m((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-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"),dO=m((e,t,r)=>{const i=zt(),{themeVariables:n}=i,{strokeWidth:o}=n,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),fO={extension:U4,composition:Y4,aggregation:V4,dependency:G4,lollipop:X4,point:Q4,circle:K4,cross:Z4,barb:J4,barbNeo:tO,only_one:eO,zero_or_one:rO,one_or_more:iO,zero_or_more:nO,only_one_neo:oO,zero_or_one_neo:sO,one_or_more_neo:aO,zero_or_more_neo:lO,requirement_arrow:hO,requirement_contains:uO,requirement_arrow_neo:cO,requirement_contains_neo:dO},pO=j4,gO={common:Fa,getConfig:zt,insertCluster:d4,insertEdge:H4,insertEdgeLabel:D4,insertMarkers:pO,insertNode:uw,interpolateToCurve:Kp,labelHelper:at,log:q,positionEdgeLabel:R4},ba={},gw=m(e=>{for(const t of e)ba[t.name]=t},"registerLayoutLoaders"),mO=m(()=>{gw([{name:"dagre",loader:m(async()=>await vt(()=>import("./dagre-BM42HDAG-B8S6fvC9.js"),__vite__mapDeps([0,1,2]),import.meta.url),"loader")},{name:"cose-bilkent",loader:m(async()=>await vt(()=>import("./cose-bilkent-S5V4N54A-B47jq-Qy.js"),__vite__mapDeps([3,4]),import.meta.url),"loader")}])},"registerDefaultLayoutLoaders");mO();var fR=m(async(e,t)=>{if(!(e.layoutAlgorithm in ba))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const c of e.nodes){const u=c.domId||c.id;c.domId=`${e.diagramId}-${u}`}const r=ba[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:o}=e.config,{useGradient:s,gradientStart:a,gradientStop:l}=o,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),s){const c=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");c.append("svg:stop").attr("offset","0%").attr("stop-color",a).attr("stop-opacity",1),c.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,gO,{algorithm:r.algorithm})},"render"),pR=m((e="",{fallback:t="dagre"}={})=>{if(e in ba)return e;if(t in ba)return q.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),Cg="comm",mw="rule",yw="decl",yO="@media",CO="@import",xO="@supports",kO="@namespace",kf="@keyframes",Cw="@layer",vO="@scope",bO=Math.abs,Gs=String.fromCharCode;function xw(e){return e.trim()}function vf(e,t,r){return e.replace(t,r)}function Co(e,t){return e.charCodeAt(t)|0}function Yo(e,t,r){return e.slice(t,r)}function Nr(e){return e.length}function kw(e){return e.length}function yl(e,t){return t.push(e),e}var wc=1,Vo=1,vw=0,ur=0,Qt=0,ts="";function xg(e,t,r,i,n,o,s,a){return{value:e,root:t,parent:r,type:i,props:n,children:o,line:wc,column:Vo,length:s,return:"",siblings:a}}function wO(){return Qt}function SO(){return Qt=ur>0?Co(ts,--ur):0,Vo--,Qt===10&&(Vo=1,wc--),Qt}function _r(){return Qt=ur<vw?Co(ts,ur++):0,Vo++,Qt===10&&(Vo=1,wc++),Qt}function Ai(){return Co(ts,ur)}function ql(){return ur}function Sc(e,t){return Yo(ts,e,t)}function wa(e){switch(e){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 TO(e){return wc=Vo=1,vw=Nr(ts=e),ur=0,[]}function _O(e){return ts="",e}function Fu(e){return xw(Sc(ur-1,bf(e===91?e+2:e===40?e+1:e)))}function BO(e){for(;(Qt=Ai())&&Qt<33;)_r();return wa(e)>2||wa(Qt)>3?"":" "}function LO(e,t){for(;--t&&_r()&&!(Qt<48||Qt>102||Qt>57&&Qt<65||Qt>70&&Qt<97););return Sc(e,ql()+(t<6&&Ai()==32&&_r()==32))}function bf(e){for(;_r();)switch(Qt){case e:return ur;case 34:case 39:e!==34&&e!==39&&bf(Qt);break;case 40:e===41&&bf(e);break;case 92:_r();break}return ur}function EO(e,t){for(;_r()&&e+Qt!==57;)if(e+Qt===84&&Ai()===47)break;return"/*"+Sc(t,ur-1)+"*"+Gs(e===47?e:_r())}function FO(e){for(;!wa(Ai());)_r();return Sc(e,ur)}function AO(e){return _O(Hl("",null,null,null,[""],e=TO(e),0,[0],e))}function Hl(e,t,r,i,n,o,s,a,l){for(var h=0,c=0,u=s,f=0,d=0,g=0,p=1,C=1,y=1,x=0,k=0,b="",w=n,T=o,E=i,L=b;C;)switch(g=k,k=_r()){case 40:g!=108&&Co(L,u-1)==58?(x++,L+="("):L+=Fu(k);break;case 41:x--,L+=")";break;case 34:case 39:case 91:L+=Fu(k);break;case 9:case 10:case 13:case 32:if(x>0){L+=Gs(k);break}L+=BO(g);break;case 92:L+=LO(ql()-1,7);continue;case 47:switch(Ai()){case 42:case 47:yl(MO(EO(_r(),ql()),t,r,l),l),(wa(g||1)==5||wa(Ai()||1)==5)&&Nr(L)&&Yo(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*p:a[h++]=Nr(L)*y;case 125*p:case 59:case 0:if(x>0&&k){L+=Gs(k);break}switch(k){case 0:case 125:C=0;case 59+c:y==-1&&(L=vf(L,/\f/g,"")),d>0&&(Nr(L)-u||p===0)&&yl(d>32?L0(L+";",i,r,u-1,l):L0(vf(L," ","")+";",i,r,u-2,l),l);break;case 59:L+=";";default:if(yl(E=B0(L,t,r,h,c,n,a,b,w=[],T=[],u,o),o),k===123)if(c===0)Hl(L,t,E,E,w,o,u,a,T);else{switch(f){case 99:if(Co(L,3)===110)break;case 108:if(Co(L,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Hl(e,E,E,i&&yl(B0(e,E,E,0,0,n,a,b,n,w=[],u,T),T),n,T,u,a,i?w:T):Hl(L,E,E,E,[""],T,0,a,T)}}h=c=d=0,p=y=1,b=L="",u=s;break;case 58:u=1+Nr(L),d=g;default:if(p<1){if(k==123)--p;else if(k==125&&p++==0&&SO()==125)continue}switch(L+=Gs(k),k*p){case 38:y=c>0?1:(L+="\f",-1);break;case 44:if(x>0)break;a[h++]=(Nr(L)-1)*y,y=1;break;case 64:Ai()===45&&(L+=Fu(_r())),f=Ai(),c=u=Nr(b=L+=FO(ql())),k++;break;case 45:g===45&&Nr(L)==2&&(p=0)}}return o}function B0(e,t,r,i,n,o,s,a,l,h,c,u){for(var f=n-1,d=n===0?o:[""],g=kw(d),p=0,C=0,y=0;p<i;++p)for(var x=0,k=Yo(e,f+1,f=bO(C=s[p])),b=e;x<g;++x)(b=xw(C>0?d[x]+" "+k:vf(k,/&\f/g,d[x])))&&(l[y++]=b);return xg(e,t,r,n===0?mw:a,l,h,c,u)}function MO(e,t,r,i){return xg(e,t,r,Cg,Gs(wO()),Yo(e,2,-2),0,i)}function L0(e,t,r,i,n){return xg(e,t,r,yw,Yo(e,0,i),Yo(e,i+1,-1),i,n)}function wf(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function $O(e,t,r,i){switch(e.type){case Cw:if(e.children.length)break;case CO:case kO:case yw:return e.return=e.return||e.value;case Cg:return"";case kf:return e.return=e.value+"{"+wf(e.children,i)+"}";case mw:if(!Nr(e.value=e.props.join(",")))return""}return Nr(r=wf(e.children,i))?e.return=e.value+"{"+r+"}":""}function OO(e){var t=kw(e);return function(r,i,n,o){for(var s="",a=0;a<t;a++)s+=e[a](r,i,n,o)||"";return s}}var bw="c4",IO=m(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),PO=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./c4Diagram-AAUBKEIU-CVMRi7xO.js");return{diagram:t}},__vite__mapDeps([5,6]),import.meta.url);return{id:bw,diagram:e}},"loader"),DO={id:bw,detector:IO,loader:PO},RO=DO,ww="flowchart",NO=m((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),zO=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X-BijjyFdb.js");return{diagram:t}},__vite__mapDeps([7,8,6,9,10,11]),import.meta.url);return{id:ww,diagram:e}},"loader"),WO={id:ww,detector:NO,loader:zO},qO=WO,Sw="flowchart-v2",HO=m((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),jO=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X-BijjyFdb.js");return{diagram:t}},__vite__mapDeps([7,8,6,9,10,11]),import.meta.url);return{id:Sw,diagram:e}},"loader"),UO={id:Sw,detector:HO,loader:jO},YO=UO,Tw="er",VO=m(e=>/^\s*erDiagram/.test(e),"detector"),GO=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./erDiagram-TEJ5UH35-Cx3ooJxy.js");return{diagram:t}},__vite__mapDeps([12,9,10,11]),import.meta.url);return{id:Tw,diagram:e}},"loader"),XO={id:Tw,detector:VO,loader:GO},QO=XO,_w="gitGraph",KO=m(e=>/^\s*gitGraph/.test(e),"detector"),ZO=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-PVQCEYII-BeQbA8KU.js");return{diagram:t}},__vite__mapDeps([13,14,15,16]),import.meta.url);return{id:_w,diagram:e}},"loader"),JO={id:_w,detector:KO,loader:ZO},tI=JO,Bw="gantt",eI=m(e=>/^\s*gantt/.test(e),"detector"),rI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./ganttDiagram-6RSMTGT7-BYSSlI1j.js");return{diagram:t}},__vite__mapDeps([17,18,19,20]),import.meta.url);return{id:Bw,diagram:e}},"loader"),iI={id:Bw,detector:eI,loader:rI},nI=iI,Lw="info",oI=m(e=>/^\s*info/.test(e),"detector"),sI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./infoDiagram-5YYISTIA-C_uVe1ld.js");return{diagram:t}},__vite__mapDeps([21,16]),import.meta.url);return{id:Lw,diagram:e}},"loader"),aI={id:Lw,detector:oI,loader:sI},Ew="pie",lI=m(e=>/^\s*pie/.test(e),"detector"),hI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./pieDiagram-4H26LBE5-DWfhPrxk.js");return{diagram:t}},__vite__mapDeps([22,14,16,23,24,19]),import.meta.url);return{id:Ew,diagram:e}},"loader"),cI={id:Ew,detector:lI,loader:hI},Fw="quadrantChart",uI=m(e=>/^\s*quadrantChart/.test(e),"detector"),dI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./quadrantDiagram-W4KKPZXB-C9C_4UTm.js");return{diagram:t}},__vite__mapDeps([25,18,19,20]),import.meta.url);return{id:Fw,diagram:e}},"loader"),fI={id:Fw,detector:uI,loader:dI},pI=fI,Aw="xychart",gI=m(e=>/^\s*xychart(-beta)?/.test(e),"detector"),mI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./xychartDiagram-2RQKCTM6-DF_rfRUs.js");return{diagram:t}},__vite__mapDeps([26,19,24,18,20]),import.meta.url);return{id:Aw,diagram:e}},"loader"),yI={id:Aw,detector:gI,loader:mI},CI=yI,Mw="requirement",xI=m(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),kI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./requirementDiagram-4Y6WPE33-Rti8bvFJ.js");return{diagram:t}},__vite__mapDeps([27,9,10]),import.meta.url);return{id:Mw,diagram:e}},"loader"),vI={id:Mw,detector:xI,loader:kI},bI=vI,$w="sequence",wI=m(e=>/^\s*sequenceDiagram/.test(e),"detector"),SI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./sequenceDiagram-3UESZ5HK-BCJdo3Yk.js");return{diagram:t}},__vite__mapDeps([28,6,15]),import.meta.url);return{id:$w,diagram:e}},"loader"),TI={id:$w,detector:wI,loader:SI},_I=TI,Ow="class",BI=m((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),LI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./classDiagram-4FO5ZUOK-C45wsrAC.js");return{diagram:t}},__vite__mapDeps([29,30,8,6,9,10]),import.meta.url);return{id:Ow,diagram:e}},"loader"),EI={id:Ow,detector:BI,loader:LI},FI=EI,Iw="classDiagram",AI=m((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),MI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./classDiagram-v2-Q7XG4LA2-C45wsrAC.js");return{diagram:t}},__vite__mapDeps([31,30,8,6,9,10]),import.meta.url);return{id:Iw,diagram:e}},"loader"),$I={id:Iw,detector:AI,loader:MI},OI=$I,Pw="state",II=m((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),PI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./stateDiagram-AJRCARHV-BxlCyIOF.js");return{diagram:t}},__vite__mapDeps([32,33,9,10,1,2]),import.meta.url);return{id:Pw,diagram:e}},"loader"),DI={id:Pw,detector:II,loader:PI},RI=DI,Dw="stateDiagram",NI=m((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),zI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-BHNVJYJU-cIykpKBe.js");return{diagram:t}},__vite__mapDeps([34,33,9,10]),import.meta.url);return{id:Dw,diagram:e}},"loader"),WI={id:Dw,detector:NI,loader:zI},qI=WI,Rw="journey",HI=m(e=>/^\s*journey/.test(e),"detector"),jI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./journeyDiagram-JHISSGLW-B7NJ1JZJ.js");return{diagram:t}},__vite__mapDeps([35,8,6,23]),import.meta.url);return{id:Rw,diagram:e}},"loader"),UI={id:Rw,detector:HI,loader:jI},YI=UI,VI=m((e,t,r)=>{q.debug(`rendering svg for syntax error
|
|
340
|
+
`);const i=_5(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),g1(i,100,512,!0),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),n.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"),Nw={draw:VI},GI=Nw,XI={db:{},renderer:Nw,parser:{parse:m(()=>{},"parse")}},QI=XI,zw="flowchart-elk",KI=m((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),ZI=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X-BijjyFdb.js");return{diagram:t}},__vite__mapDeps([7,8,6,9,10,11]),import.meta.url);return{id:zw,diagram:e}},"loader"),JI={id:zw,detector:KI,loader:ZI},tP=JI,Ww="timeline",eP=m(e=>/^\s*timeline/.test(e),"detector"),rP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./timeline-definition-PNZ67QCA-BBlZb3oG.js");return{diagram:t}},__vite__mapDeps([36,23]),import.meta.url);return{id:Ww,diagram:e}},"loader"),iP={id:Ww,detector:eP,loader:rP},nP=iP,qw="mindmap",oP=m(e=>/^\s*mindmap/.test(e),"detector"),sP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./mindmap-definition-RKZ34NQL-Dmpnosj8.js");return{diagram:t}},__vite__mapDeps([37,9,10]),import.meta.url);return{id:qw,diagram:e}},"loader"),aP={id:qw,detector:oP,loader:sP},lP=aP,Hw="kanban",hP=m(e=>/^\s*kanban/.test(e),"detector"),cP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./kanban-definition-UN3LZRKU-B6pVc1c6.js");return{diagram:t}},__vite__mapDeps([38,8]),import.meta.url);return{id:Hw,diagram:e}},"loader"),uP={id:Hw,detector:hP,loader:cP},dP=uP,jw="sankey",fP=m(e=>/^\s*sankey(-beta)?/.test(e),"detector"),pP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./sankeyDiagram-5OEKKPKP-DKJ1CJ1F.js");return{diagram:t}},__vite__mapDeps([39,24,19]),import.meta.url);return{id:jw,diagram:e}},"loader"),gP={id:jw,detector:fP,loader:pP},mP=gP,Uw="packet",yP=m(e=>/^\s*packet(-beta)?/.test(e),"detector"),CP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./diagram-LMA3HP47-fkQGkC6F.js");return{diagram:t}},__vite__mapDeps([40,14,16]),import.meta.url);return{id:Uw,diagram:e}},"loader"),xP={id:Uw,detector:yP,loader:CP},Yw="radar",kP=m(e=>/^\s*radar-beta/.test(e),"detector"),vP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./diagram-2AECGRRQ-DdSf8QGx.js");return{diagram:t}},__vite__mapDeps([41,14,16]),import.meta.url);return{id:Yw,diagram:e}},"loader"),bP={id:Yw,detector:kP,loader:vP},Vw="block",wP=m(e=>/^\s*block(-beta)?/.test(e),"detector"),SP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./blockDiagram-GPEHLZMM-5XkEXQwI.js");return{diagram:t}},__vite__mapDeps([42,8,1,11]),import.meta.url);return{id:Vw,diagram:e}},"loader"),TP={id:Vw,detector:wP,loader:SP},_P=TP,Gw="treeView",BP=m(e=>/^\s*treeView-beta/.test(e),"detector"),LP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./diagram-5GNKFQAL-DjNbvgIh.js");return{diagram:t}},__vite__mapDeps([43,14,15,16]),import.meta.url);return{id:Gw,diagram:e}},"loader"),EP={id:Gw,detector:BP,loader:LP},FP=EP,Xw="architecture",AP=m(e=>/^\s*architecture/.test(e),"detector"),MP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./architectureDiagram-3BPJPVTR-R4fhdlee.js");return{diagram:t}},__vite__mapDeps([44,14,16,4]),import.meta.url);return{id:Xw,diagram:e}},"loader"),$P={id:Xw,detector:AP,loader:MP},OP=$P,Qw="eventmodeling",IP=m(e=>/^\s*eventmodeling/.test(e),"detector"),PP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./diagram-KO2AKTUF-C_EbhXEU.js");return{diagram:t}},__vite__mapDeps([45,14,16]),import.meta.url);return{id:Qw,diagram:e}},"loader"),DP={id:Qw,detector:IP,loader:PP},RP=DP,Kw="ishikawa",NP=m(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),zP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-YF4QCWOH-hzDmyxpo.js");return{diagram:t}},[],import.meta.url);return{id:Kw,diagram:e}},"loader"),WP={id:Kw,detector:NP,loader:zP},Zw="venn",qP=m(e=>/^\s*venn-beta/.test(e),"detector"),HP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./vennDiagram-CIIHVFJN-C-Nr9zGX.js");return{diagram:t}},[],import.meta.url);return{id:Zw,diagram:e}},"loader"),jP={id:Zw,detector:qP,loader:HP},UP=jP,Jw="treemap",YP=m(e=>/^\s*treemap/.test(e),"detector"),VP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./diagram-OG6HWLK6-ild2cowO.js");return{diagram:t}},__vite__mapDeps([46,10,14,16,20,24,19]),import.meta.url);return{id:Jw,diagram:e}},"loader"),GP={id:Jw,detector:YP,loader:VP},tS="wardley-beta",XP=m(e=>/^\s*wardley-beta/i.test(e),"detector"),QP=m(async()=>{const{diagram:e}=await vt(async()=>{const{diagram:t}=await import("./wardleyDiagram-YWT4CUSO-Xlk_Tv4m.js");return{diagram:t}},__vite__mapDeps([47,14,16]),import.meta.url);return{id:tS,diagram:e}},"loader"),KP={id:tS,detector:XP,loader:QP},ZP=KP,E0=!1,Tc=m(()=>{E0||(E0=!0,Ch("error",QI,e=>e.toLowerCase().trim()==="error"),Ch("---",{db:{clear:m(()=>{},"clear")},styles:{},renderer:{draw:m(()=>{},"draw")},parser:{parse:m(()=>{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:m(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Bd(tP,lP,OP),Bd(RO,dP,OI,FI,QO,nI,aI,cI,bI,_I,YO,qO,nP,tI,qI,RI,YI,pI,mP,xP,CI,_P,RP,FP,bP,WP,GP,UP,ZP))},"addDiagrams"),JP=m(async()=>{q.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Sn).map(async([r,{detector:i,loader:n}])=>{if(n)try{Md(r)}catch{try{const{diagram:o,id:s}=await n();Ch(s,o,i)}catch(o){throw q.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Sn[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){q.error(`Failed to load ${t.length} external diagrams`);for(const r of t)q.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),tD="graphics-document document";function eS(e,t){e.attr("role",tD),t!==""&&e.attr("aria-roledescription",t)}m(eS,"setA11yDiagramInfo");function rS(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}m(rS,"addSVGa11yTitleDescription");var Cn,Sf=(Cn=class{constructor(t,r,i,n,o){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=o}static async fromText(t,r={}){var h,c;const i=zt(),n=vp(t,i);t=MM(t)+`
|
|
341
|
+
`;try{Md(n)}catch{const u=YB(n);if(!u)throw new t1(`Diagram ${n} not found.`);const{id:f,diagram:d}=await u();Ch(f,d)}const{db:o,parser:s,renderer:a,init:l}=Md(n);return s.parser&&(s.parser.yy=o),(h=o.clear)==null||h.call(o),l==null||l(i),r.title&&((c=o.setDiagramTitle)==null||c.call(o,r.title)),await s.parse(t),new Cn(n,t,o,s,a)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},m(Cn,"Diagram"),Cn),F0=[],eD=m(()=>{F0.forEach(e=>{e()}),F0=[]},"attachFunctions"),rD=m(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function iS(e){const t=e.match(Jx);if(!t)return{text:e,metadata:{}};let r=$A(t[1],{schema:MA})??{};r=typeof r=="object"&&!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:e.slice(t[0].length),metadata:i}}m(iS,"extractFrontMatter");var iD=m(e=>e.replace(/\r\n?/g,`
|
|
342
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),nD=m(e=>{const{text:t,metadata:r}=iS(e),{displayMode:i,title:n,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:n,config:o,text:t}},"processFrontmatter"),oD=m(e=>{const t=br.detectInit(e)??{},r=br.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:xM(e),directive:t}},"processDirectives");function kg(e){const t=iD(e),r=nD(t),i=oD(r.text),n=rg(r.config,i.directive);return e=rD(i.text),{code:e,title:r.title,config:n}}m(kg,"preprocessDiagram");function nS(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}m(nS,"toBase64");var sD=5e4,aD="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",lD="sandbox",hD="loose",cD="http://www.w3.org/2000/svg",uD="http://www.w3.org/1999/xlink",dD="http://www.w3.org/1999/xhtml",fD="100%",pD="100%",gD="border:0;margin:0;",mD="margin:0",yD="allow-top-navigation-by-user-activation allow-popups",CD='The "iframe" tag is not supported by your browser.',xD=["foreignobject"],kD=["dominant-baseline"];function vg(e){const t=kg(e);return mh(),xL(t.config??{}),t}m(vg,"processAndSetConfigs");async function oS(e,t){Tc();try{const{code:r,config:i}=vg(e);return{diagramType:(await aS(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}m(oS,"parse");var A0=m((e,t,r=[])=>{const i=o1(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),vD=m((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const a=Me(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{Uy(l.styles)||a.forEach(h=>{r.insertRule(A0(l.id,h,l.styles),r.cssRules.length)}),Uy(l.textStyles)||r.insertRule(A0(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(h=>h.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const n=new CSSStyleSheet;n.replaceSync(e.themeCSS),i=Ad(n)+`
|
|
343
|
+
`}else i+=`${e.themeCSS}
|
|
344
|
+
`;return i+Ad(r)},"createCssStyles"),bD=m((e,t)=>wf(AO(`${e}{${t}}`),OO([m(function(i,n,o,s){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===kf)return;i.props=i.props.map(a=>a.startsWith(e)?a:`${e} ${a}`)}else i.type.startsWith("@")&&([...[yO,xO,Cw,vO,"@container","@starting-style"],kf].includes(i.type)||(q.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=Cg))},"addNamespace"),$O])),"compileCSS"),wD=m((e,t,r,i)=>{const n=vD(e,r),o=RL(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return bD(i,o)},"createUserStyles"),SD=m((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Ln(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),TD=m((e="",t)=>{var n,o;const r=(o=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":pD,i=nS(`<body style="${mD}">${e}</body>`);return`<iframe style="width:${fD};height:${r};${gD}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${yD}">
|
|
345
|
+
${CD}
|
|
346
|
+
</iframe>`},"putIntoIFrame"),M0=m((e,t,r,i,n)=>{const o=e.append("div");o.attr("id",r),i&&o.attr("style",i);const s=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",cD);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function Tf(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}m(Tf,"sandboxedIframe");var _D=m((e,t,r,i)=>{var n,o,s;(n=e.getElementById(t))==null||n.remove(),(o=e.getElementById(r))==null||o.remove(),(s=e.getElementById(i))==null||s.remove()},"removeExistingElements"),BD=m(async function(e,t,r){var j,H,D,$,F,P;Tc();const i=vg(t);t=i.code;const n=zt();q.debug(n),t.length>((n==null?void 0:n.maxTextSize)??sD)&&(t=aD);const o=`#${e}`,s="i"+e,a="#"+s,l="d"+e,h="#"+l,c=m(()=>{const S=Ct(f?a:h).node();S&&"remove"in S&&S.remove()},"removeTempElements");let u=Ct(document.body);const f=n.securityLevel===lD,d=n.securityLevel===hD,g=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const B=Tf(Ct(r),s);u=Ct(B.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Ct(r);M0(u,e,l,`font-family: ${g}`,uD)}else{if(_D(document,e,l,s),f){const B=Tf(Ct(document.body),s);u=Ct(B.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Ct("body");M0(u,e,l)}let p,C;try{p=await Sf.fromText(t,{title:i.title})}catch(B){if(n.suppressErrorRendering)throw c(),B;p=await Sf.fromText("error"),C=B}const y=u.select(h).node(),x=p.type,k=y.firstChild,b=k.firstChild,w=(H=(j=p.renderer).getClasses)==null?void 0:H.call(j,t,p),T=wD(n,x,w,o),E=document.createElement("style");E.innerHTML=T,k.insertBefore(E,b);try{await p.renderer.draw(t,e,"11.15.0",p)}catch(B){throw n.suppressErrorRendering?c():GI.draw(t,e,"11.15.0"),B}const L=u.select(`${h} svg`),W=($=(D=p.db).getAccTitle)==null?void 0:$.call(D),M=(P=(F=p.db).getAccDescription)==null?void 0:P.call(F);lS(x,L,W,M),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",dD);let O=u.select(h).node().innerHTML;if(q.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),O=SD(O,f,gi(n.arrowMarkerAbsolute)),f){const B=u.select(h+" svg").node();O=TD(O,B)}else d||(O=zo.sanitize(O,{ADD_TAGS:xD,ADD_ATTR:kD,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(eD(),C)throw C;return c(),{diagramType:x,svg:O,bindFunctions:p.db.bindFunctions}},"render");function sS(e={}){var i;const t=ee({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),yL(t),t!=null&&t.theme&&t.theme in si?t.themeVariables=si[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=si.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?mL(t):s1();kp(r.logLevel),Tc()}m(sS,"initialize");var aS=m((e,t={})=>{const{code:r}=kg(e);return Sf.fromText(r,t)},"getDiagramFromText");function lS(e,t,r,i){eS(t,e),rS(t,r,i,t.attr("id"))}m(lS,"addA11yInfo");var Fn=Object.freeze({render:BD,parse:oS,getDiagramFromText:aS,initialize:sS,getConfig:zt,setConfig:a1,getSiteConfig:s1,updateSiteConfig:CL,reset:m(()=>{mh()},"reset"),globalReset:m(()=>{mh(Wo)},"globalReset"),defaultConfig:Wo});kp(zt().logLevel);mh(zt());var LD=m((e,t,r)=>{q.warn(e),eg(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),hS=m(async function(e={querySelector:".mermaid"}){try{await ED(e)}catch(t){if(eg(t)&&q.error(t.str),Qe.parseError&&Qe.parseError(t),!e.suppressErrors)throw q.error("Use the suppressErrors option to suppress these errors"),t}},"run"),ED=m(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Fn.getConfig();q.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");q.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(q.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),Fn.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const o=new br.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){if(q.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=l.innerHTML,s=wv(br.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const c=br.detectInit(s);c&&q.debug("Detected early reinit: ",c);try{const{svg:u,bindFunctions:f}=await fS(h,s,l);l.innerHTML=u,e&&await e(h),f&&f(l)}catch(u){LD(u,a,Qe.parseError)}}if(a.length>0)throw a[0]},"runThrowsErrors"),cS=m(function(e){Fn.initialize(e)},"initialize"),FD=m(async function(e,t,r){q.warn("mermaid.init is deprecated. Please use run instead."),e&&cS(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await hS(i)},"init"),AD=m(async(e,{lazyLoad:t=!0}={})=>{Tc(),Bd(...e),t===!1&&await JP()},"registerExternalDiagrams"),uS=m(function(){if(Qe.startOnLoad){const{startOnLoad:e}=Fn.getConfig();e&&Qe.run().catch(t=>q.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",uS,!1);var MD=m(function(e){Qe.parseError=e},"setParseErrorHandler"),jh=[],Au=!1,dS=m(async()=>{if(!Au){for(Au=!0;jh.length>0;){const e=jh.shift();if(e)try{await e()}catch(t){q.error("Error executing queue",t)}}Au=!1}},"executeQueue"),$D=m(async(e,t)=>new Promise((r,i)=>{const n=m(()=>new Promise((o,s)=>{Fn.parse(e,t).then(a=>{o(a),r(a)},a=>{var l;q.error("Error parsing",a),(l=Qe.parseError)==null||l.call(Qe,a),s(a),i(a)})}),"performCall");jh.push(n),dS().catch(i)}),"parse"),fS=m((e,t,r)=>new Promise((i,n)=>{const o=m(()=>new Promise((s,a)=>{Fn.render(e,t,r).then(l=>{s(l),i(l)},l=>{var h;q.error("Error parsing",l),(h=Qe.parseError)==null||h.call(Qe,l),a(l),n(l)})}),"performCall");jh.push(o),dS().catch(n)}),"render"),OD=m(()=>Object.keys(Sn).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Qe={startOnLoad:!0,mermaidAPI:Fn,parse:$D,render:fS,init:FD,run:hS,registerExternalDiagrams:AD,registerLayoutLoaders:gw,initialize:cS,parseError:void 0,contentLoaded:uS,setParseErrorHandler:MD,detectType:vp,registerIconPacks:N$,getRegisteredDiagramsMetadata:OD},pS=Qe;/*! Check if previously processed *//*!
|
|
347
|
+
* Wait for document loaded before starting the execution
|
|
348
|
+
*/pS.initialize({startOnLoad:!1,theme:"dark",themeVariables:{primaryColor:"#1a1e2a",primaryTextColor:"#e8eaf0",primaryBorderColor:"#00e5cc",lineColor:"#4a5568",secondaryColor:"#13161e",tertiaryColor:"#0d0f14",edgeLabelBackground:"#13161e",fontFamily:"JetBrains Mono, monospace",fontSize:"13px"},flowchart:{curve:"basis"}});function ID({chart:e}){const t=Ne.useRef(null),[r,i]=Ne.useState(""),[n,o]=Ne.useState(null);return Ne.useEffect(()=>{const s=`mermaid-${Math.random().toString(36).slice(2)}`;pS.render(s,e).then(({svg:a})=>i(a)).catch(()=>o("Could not render diagram"))},[e]),n?null:r?rt.jsx("div",{className:"mermaid-container",ref:t,dangerouslySetInnerHTML:{__html:r}}):rt.jsx("div",{className:"diagram-loading",children:"Rendering diagram..."})}function PD({card:e,onViewEvidence:t}){return rt.jsxs("div",{className:`decision-card ${e.status==="stale"?"stale":""}`,children:[rt.jsxs("div",{className:"card-header",children:[rt.jsx("div",{className:"card-title",children:e.title}),rt.jsx("span",{className:`card-status ${e.status}`,children:e.status==="fresh"?"● Fresh":"⚠ Stale"})]}),rt.jsx("p",{className:"card-narrative",children:e.narrative}),e.diagram&&rt.jsx(ID,{chart:e.diagram}),rt.jsxs("div",{className:"card-footer",children:[rt.jsx("button",{className:"evidence-btn",onClick:t,children:"View Evidence"}),rt.jsxs("span",{className:"evidence-count",children:[e.evidence.length," file",e.evidence.length!==1?"s":""]})]})]})}function DD(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function RD({evidence:e,onClose:t}){const[r,i]=Ne.useState(new Map),n=Ne.useRef(null);return Ne.useEffect(()=>{vt(()=>import("./index-DCM2k-QB.js"),[],import.meta.url).then(async({createHighlighter:o})=>{const s=await o({themes:["tokyo-night"],langs:["typescript","javascript","tsx","jsx"]});n.current=s}).catch(o=>{console.error("Failed to load Shiki:",o)})},[]),Ne.useEffect(()=>{if(!e||!n.current)return;const o=new Map;for(const s of e){const a=s.file.endsWith(".tsx")?"tsx":s.file.endsWith(".jsx")?"jsx":s.file.endsWith(".ts")?"typescript":"javascript";try{const c=n.current.codeToHtml(s.snippet,{lang:a,theme:"tokyo-night"}).split(`
|
|
349
|
+
`).map((u,f)=>{const d=s.startLine+f;return d>=s.startLine&&d<=s.endLine?`<span class="evidence-highlight">${u}</span>`:u});o.set(`${s.file}:${s.startLine}-${s.endLine}`,c.join(`
|
|
350
|
+
`))}catch{o.set(`${s.file}:${s.startLine}-${s.endLine}`,`<pre><code>${DD(s.snippet)}</code></pre>`)}}i(o)},[e]),e?rt.jsxs("aside",{className:"evidence-sidebar",children:[rt.jsxs("div",{className:"sidebar-header",children:[rt.jsx("span",{className:"sidebar-title",children:"Evidence"}),rt.jsx("button",{className:"sidebar-close",onClick:t,children:"✕"})]}),e.map((o,s)=>{const a=`${o.file}:${o.startLine}-${o.endLine}`,l=o.file.split("/"),h=l.pop()||"",c=l;return rt.jsxs("div",{className:"evidence-item",children:[rt.jsxs("div",{className:"evidence-breadcrumb",children:[c.map((u,f)=>rt.jsxs("span",{children:[u,rt.jsx("span",{className:"separator",children:" / "})]},f)),rt.jsx("span",{className:"filename",children:h}),rt.jsxs("span",{className:"lines",children:["[Lines ",o.startLine,"–",o.endLine,"]"]})]}),rt.jsx("div",{className:"code-block",children:r.has(a)?rt.jsx("div",{dangerouslySetInnerHTML:{__html:r.get(a)}}):rt.jsx("pre",{children:rt.jsx("code",{children:o.snippet})})})]},s)})]}):rt.jsx("aside",{className:"evidence-sidebar",children:rt.jsxs("div",{className:"sidebar-empty",children:[rt.jsx("div",{className:"sidebar-empty-icon",children:"🔍"}),rt.jsx("div",{className:"sidebar-empty-text",children:'Click "View Evidence" on a Decision Card to inspect the source code.'})]})})}function ND(){var a,l;const[e]=Ne.useState(()=>window.__VIBE_DOSSIER__),[t,r]=Ne.useState(((a=e==null?void 0:e.pillars[0])==null?void 0:a.name)??"Wild Discoveries"),[i,n]=Ne.useState(null);if(!e)return rt.jsxs("div",{className:"empty-state",style:{height:"100vh"},children:[rt.jsx("div",{className:"empty-state-icon",children:"◈"}),rt.jsx("div",{className:"empty-state-title",children:"No Dossier Data"}),rt.jsxs("div",{className:"empty-state-text",children:["Run ",rt.jsx("code",{children:"scan_project"})," from your coding agent to generate the architectural dossier."]})]});const s=t==="Wild Discoveries"?e.wildDiscoveries:((l=e.pillars.find(h=>h.name===t))==null?void 0:l.decisions)??[];return rt.jsxs("div",{className:"app-layout",children:[rt.jsx(eB,{dossier:e}),rt.jsx(rB,{pillars:e.pillars,wildCount:e.wildDiscoveries.length,activePillar:t,onSelect:r}),rt.jsx("main",{className:"main-content",children:s.length===0?rt.jsxs("div",{className:"empty-state",children:[rt.jsx("div",{className:"empty-state-icon",children:"📋"}),rt.jsx("div",{className:"empty-state-title",children:"No Decision Cards Yet"}),rt.jsx("div",{className:"empty-state-text",children:"Your coding agent will create Decision Cards for this pillar after analyzing the high-gravity files."})]}):s.map(h=>rt.jsx(PD,{card:h,onViewEvidence:()=>n(h.evidence)},h.id))}),rt.jsx(RD,{evidence:i,onClose:()=>n(null)})]})}Mu.createRoot(document.getElementById("root")).render(rt.jsx(qS.StrictMode,{children:rt.jsx(ND,{})}));export{m1 as $,jD as A,zi as B,aB as C,zt as D,VL as E,rg as F,n1 as G,SM as H,_5 as I,MA as J,ZB as K,da as L,qD as M,mc as N,BL as O,p1 as P,py as Q,y5 as R,qd as S,wM as T,Ea as U,Er as V,R as W,N as X,IL as Y,gM as Z,m as _,WL as a,H4 as a$,f5 as a0,Oy as a1,$y as a2,JD as a3,GD as a4,KD as a5,QD as a6,YD as a7,Op as a8,ZD as a9,jA as aA,rM as aB,eM as aC,tM as aD,nM as aE,iM as aF,HA as aG,K2 as aH,XA as aI,VA as aJ,YA as aK,Z2 as aL,OA as aM,Me as aN,mi as aO,gs as aP,ig as aQ,ov as aR,Ln as aS,hv as aT,Xx as aU,pO as aV,cR as aW,dR as aX,lR as aY,et as aZ,hR as a_,VD as aa,qn as ab,eR as ac,tR as ad,XD as ae,d4 as af,uw as ag,uR as ah,ut as ai,jr as aj,tg as ak,Z as al,W$ as am,Xp as an,Vp as ao,Rl as ap,JA as aq,ZA as ar,KA as as,QA as at,qA as au,X2 as av,UA as aw,WA as ax,GA as ay,Q2 as az,zL as b,R4 as b0,D4 as b1,p5 as b2,WD as b3,_S as b4,$0 as b5,Pa as b6,N$ as b7,R$ as b8,Fp as b9,Ti as ba,ga as bb,By as bc,VF as bd,tt as be,cv as bf,We as bg,zF as bh,Ep as bi,F1 as bj,Ma as bk,$1 as bl,UD as bm,sB as bn,vt as bo,St as c,Ct as d,g1 as e,ee as f,HL as g,fi as h,Lr as i,IA as j,Fa as k,q as l,av as m,HD as n,pR as o,jL as p,UL as q,fR as r,qL as s,$A as t,br as u,M4 as v,BM as w,rR as x,zo as y,NL as z};
|